Overview

URLc4adbk4m41qwkxamst.com/partners/casino-reg?cid=1883637623&pid=156181&sip=0
IP 18.193.128.9 (Germany)
ASN#16509 AMAZON-02
UserAgentMozilla/5.0 (X11; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0
Referer
Report completed2022-11-26 15:13:49 UTC
StatusLoading report..
IDS alerts0
Blocklist alert17
urlquery alerts No alerts detected
Tags None

Domain Summary (32)

Fully Qualifying Domain Name Rank First Seen Last Seen IP Comment
c4adbk4m41qwkxamst.com (17) 0 2022-10-26 15:28:32 UTC 2022-11-26 06:11:27 UTC 18.193.128.9 Unknown ranking
contile.services.mozilla.com (1) 1114 2021-05-27 18:32:35 UTC 2022-11-26 05:33:16 UTC 34.117.237.239
my.rtmark.net (2) 9054 2017-08-22 14:11:49 UTC 2022-11-26 05:56:01 UTC 139.45.195.8
connect.facebook.net (1) 139 2012-05-22 02:51:28 UTC 2020-02-17 13:26:09 UTC 31.13.72.12
www.gstatic.com (1) 0 2016-07-26 09:37:06 UTC 2022-11-26 09:57:59 UTC 142.250.74.163 Domain (gstatic.com) ranked at: 540
front.cdn-mb.com (1) 769991 2021-03-29 08:31:30 UTC 2022-11-26 07:11:14 UTC 172.67.160.69
ocsp.digicert.com (8) 86 2012-05-21 07:02:23 UTC 2020-05-02 20:58:10 UTC 93.184.220.29
content-signature-2.cdn.mozilla.net (1) 1152 No data No data 34.160.144.191
static.scarabresearch.com (2) 14309 2020-04-02 00:04:38 UTC 2022-11-26 08:45:51 UTC 54.230.111.73
rstat.rockmostbet.com (6) 596584 2019-06-28 07:50:38 UTC 2022-11-26 07:11:14 UTC 162.55.5.93
region1.google-analytics.com (1) 0 2022-03-17 11:26:33 UTC 2022-11-26 08:39:14 UTC 216.239.34.36 Domain (google-analytics.com) ranked at: 8401
code.jivosite.com (2) 30079 2015-11-25 07:41:07 UTC 2020-05-07 12:02:14 UTC 92.223.126.57
img-getpocket.cdn.mozilla.net (7) 1631 2018-06-21 23:36:00 UTC 2020-02-19 04:43:25 UTC 34.120.237.76
cdn.scarabresearch.com (1) 11242 2017-09-05 21:00:57 UTC 2022-11-24 14:12:31 UTC 54.230.111.92
www.google-analytics.com (1) 40 2012-10-03 01:04:21 UTC 2022-11-26 11:34:11 UTC 142.250.74.174
push.services.mozilla.com (1) 2140 2014-10-24 08:27:06 UTC 2020-05-03 10:09:39 UTC 35.163.38.240
mostauthor.com (10) 927193 2019-12-26 14:28:29 UTC 2022-11-26 07:11:15 UTC 185.26.99.196
webchannel-content.eservice.emarsys.net (1) 13932 2019-10-25 07:15:02 UTC 2022-11-26 08:45:51 UTC 34.117.30.199
ocsp.pki.goog (13) 175 2018-07-01 06:43:07 UTC 2020-05-02 20:58:16 UTC 142.250.74.35
www.facebook.com (1) 99 2012-05-21 00:23:41 UTC 2021-06-08 06:38:51 UTC 31.13.72.36
node-sber1-az1-6.jivosite.com (1) 0 2022-10-10 05:34:32 UTC 2022-11-26 07:11:16 UTC 188.72.107.240 Domain (jivosite.com) ranked at: 16281
www.googletagmanager.com (2) 75 2013-05-22 02:07:37 UTC 2022-11-26 11:26:18 UTC 142.250.74.168
mc.yandex.ru (7) 2672 2012-05-21 09:38:30 UTC 2022-11-26 05:59:03 UTC 87.250.250.119
ocsp2.globalsign.com (1) 1544 2012-05-23 18:10:04 UTC 2020-03-15 21:19:16 UTC 104.18.21.226
fonts.googleapis.com (1) 8877 2013-06-10 20:14:26 UTC 2022-11-26 07:22:52 UTC 142.250.74.10
ocsp.globalsign.com (1) 2075 2012-07-20 17:46:16 UTC 2020-05-02 20:58:10 UTC 104.18.21.226
www.google.com (1) 7 2016-03-22 03:56:07 UTC 2022-11-26 09:58:02 UTC 142.250.74.164
fonts.gstatic.com (1) 0 2014-09-09 00:40:21 UTC 2022-11-26 10:10:14 UTC 216.58.207.195 Domain (gstatic.com) ranked at: 540
www.google.no (2) 25607 2016-04-05 19:50:59 UTC 2022-11-26 06:57:52 UTC 142.250.74.3
r3.o.lencr.org (12) 344 No data No data 23.36.76.226
firefox.settings.services.mozilla.com (2) 867 2020-06-04 20:08:41 UTC 2022-11-26 05:33:20 UTC 34.102.187.140
code.jivo.ru (7) 0 No data No data 92.223.124.24 Domain (jivo.ru) ranked at: 411224

Network Intrusion Detection Systemsinfo

Suricata /w Emerging Threats Pro
 No alerts detected

Blocklists

OpenPhish
 No alerts detected

PhishTank
 No alerts detected

Fortinet's Web Filter
 No alerts detected

mnemonic secure dns
 No alerts detected

Quad9 DNS
Scan Date Severity Indicator Comment
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed
2022-11-26 2 c4adbk4m41qwkxamst.com Sinkholed


Files

No files detected

Recent reports on same IP/ASN/Domain/Screenshot

Last 5 reports on IP: 18.193.128.9
Date UQ / IDS / BL URL IP
2022-11-29 04:18:19 +0000 0 - 0 - 16 c4adbk4m41qwkxamst.com/partners/casino-reg?ci (...) 18.193.128.9
2022-11-29 03:14:40 +0000 0 - 0 - 16 c4adbk4m41qwkxamst.com/partners/casino-reg?ci (...) 18.193.128.9
2022-11-28 16:10:48 +0000 0 - 0 - 18 c4adbk4m41qwkxamst.com/partners/casino-reg 18.193.128.9
2022-11-28 04:01:07 +0000 0 - 0 - 15 c4adbk4m41qwkxamst.com/partners/casino-reg?ci (...) 18.193.128.9
2022-11-27 22:20:50 +0000 0 - 0 - 18 c4adbk4m41qwkxamst.com/partners/casino-reg?ci (...) 18.193.128.9


Last 5 reports on ASN: AMAZON-02
Date UQ / IDS / BL URL IP
2023-02-05 13:23:59 +0000 0 - 1 - 7 nhw3staging.serenitybirthstudio.com/wp-conten (...) 100.21.95.251
2023-02-05 13:21:33 +0000 0 - 0 - 2 www.webfun.website/landingpages/dc2f0020-7f76 (...) 54.230.111.93
2023-02-05 13:17:59 +0000 0 - 2 - 3 nhw3staging.serenitybirthstudio.com/wp-conten (...) 100.21.95.251
2023-02-05 13:16:21 +0000 0 - 0 - 2 34.210.24.194/ 34.210.24.194
2023-02-05 13:16:20 +0000 0 - 0 - 2 35.155.127.42/ 35.155.127.42


Last 5 reports on domain: c4adbk4m41qwkxamst.com
Date UQ / IDS / BL URL IP
2022-12-20 15:59:27 +0000 0 - 0 - 18 c4adbk4m41qwkxamst.com/partners/casino-reg?ci (...) 3.73.127.68
2022-12-20 14:19:51 +0000 0 - 0 - 15 c4adbk4m41qwkxamst.com/partners/casino-reg?ci (...) 3.73.127.68
2022-12-20 09:04:57 +0000 0 - 0 - 16 c4adbk4m41qwkxamst.com/partners/casino-reg 3.73.127.68
2022-12-19 07:58:29 +0000 0 - 0 - 16 c4adbk4m41qwkxamst.com/partners/casino-reg 3.73.127.68
2022-11-29 04:18:19 +0000 0 - 0 - 16 c4adbk4m41qwkxamst.com/partners/casino-reg?ci (...) 18.193.128.9


Last 5 reports with similar screenshot
Date UQ / IDS / BL URL IP
2022-12-20 15:59:27 +0000 0 - 0 - 18 c4adbk4m41qwkxamst.com/partners/casino-reg?ci (...) 3.73.127.68
2022-12-20 14:20:54 +0000 0 - 0 - 16 8a1e2ftbmb.com/eWFs/0/0/0/0/0/7786eh97sc8du3yb35 3.73.123.143
2022-12-20 14:19:51 +0000 0 - 0 - 15 c4adbk4m41qwkxamst.com/partners/casino-reg?ci (...) 3.73.127.68
2022-12-20 09:04:57 +0000 0 - 0 - 16 c4adbk4m41qwkxamst.com/partners/casino-reg 3.73.127.68
2022-12-18 22:07:04 +0000 0 - 0 - 16 8a1e2ftbmb.com/eWFs/0/0/0/0/0/7a77eh98pqqc8vr47e 3.73.123.143

JavaScript

Executed Scripts (35)

Executed Evals (14)
#1 JavaScript::Eval (size: 193) - SHA256: 22bcfea5b7044d98bb49ab8d2bec4b0604c5e63a018aaed28fb30b12973502c3
(function() {
    try {
        var b = ga.getAll(),
            c;
        var a = 0;
        for (c = b.length; a < c; a += 1)
            if (b[a].get("trackingId") === google_tag_manager["GTM-5PMSX62"].macro(4)) return b[a].get("userId")
    } catch (d) {}
    return "false"
})();
#2 JavaScript::Eval (size: 64) - SHA256: cc158dc49db31ac40a09769c14f1e96ce12d8ee44ddb54a5321c32cd0536ef78
0,
function(y, e, K) {
    (e = (K = u((e = u(y), y)), y.u[e] && v(y, e)), V)(K, y, e)
}
#3 JavaScript::Eval (size: 194) - SHA256: a95597b6cdff566d9495d74d4b99bcd88c8fb18171f6288b356e650a7a745426
(function() {
    try {
        var b = ga.getAll(),
            c;
        var a = 0;
        for (c = b.length; a < c; a += 1)
            if (b[a].get("trackingId") === google_tag_manager["GTM-5PMSX62"].macro(25)) return b[a].get("userId")
    } catch (d) {}
    return "false"
})();
#4 JavaScript::Eval (size: 20928) - SHA256: dd9278d1fc9bc59df7bfb174d658276e63ace0cc52cd089f7e486e207b7b8b89
(function() {
    var p = function(R, n, k) {
            k[V(R, n, k), Rl] = 2796
        },
        nX = function(R, n) {
            return R(function(k) {
                k(n)
            }), [function() {
                return n
            }]
        },
        kz = function(R, n, k, q, c) {
            for (n = (q = (c = n[3] | 0, 0), n[2]) | 0; 14 > q; q++) c = c >>> 8 | c << 24, k = k >>> 8 | k << 24, k += R | 0, c += n | 0, k ^= n + 2298, R = R << 3 | R >>> 29, c ^= q + 2298, R ^= k, n = n << 3 | n >>> 29, n ^= c;
            return [R >>> 24 & 255, R >>> 16 & 255, R >>> 8 & 255, R >>> 0 & 255, k >>> 24 & 255, k >>> 16 & 255, k >>> 8 & 255, k >>> 0 & 255]
        },
        E, L = function(R, n, k, q, c, y, e, K, N, Q, Z, w, U, h) {
            if (y = v(n, 278), y >= n.B) throw [x, 31];
            for (c = (K = 0, q = R, Q = y, n.c0.length); 0 < q;) Z = Q % 8, N = 8 - (Z | 0), N = N < q ? N : q, U = Q >> 3, w = n.i[U], k && (e = n, e.A != Q >> 6 && (e.A = Q >> 6, h = v(e, 358), e.l = kz(e.O, [0, 0, h[1], h[2]], e.A)), w ^= n.l[U & c]), K |= (w >> 8 - (Z | 0) - (N | 0) & (1 << N) - 1) << (q | 0) - (N | 0), Q += N, q -= N;
            return V(278, n, (k = K, (y | 0) + (R | 0))), k
        },
        yB = function(R, n, k, q) {
            try {
                q = R[((n | 0) + 2) % 3], R[n] = (R[n] | 0) - (R[((n | 0) + 1) % 3] | 0) - (q | 0) ^ (1 == n ? q << k : q >>> k)
            } catch (c) {
                throw c;
            }
        },
        eM = function(R, n) {
            return n = P(R), n & 128 && (n = n & 127 | P(R) << 7), n
        },
        qX = function(R, n, k) {
            if ((n = typeof R, "object") == n)
                if (R) {
                    if (R instanceof Array) return "array";
                    if (R instanceof Object) return n;
                    if ("[object Window]" == (k = Object.prototype.toString.call(R), k)) return "object";
                    if ("[object Array]" == k || "number" == typeof R.length && "undefined" != typeof R.splice && "undefined" != typeof R.propertyIsEnumerable && !R.propertyIsEnumerable("splice")) return "array";
                    if ("[object Function]" == k || "undefined" != typeof R.call && "undefined" != typeof R.propertyIsEnumerable && !R.propertyIsEnumerable("call")) return "function"
                } else return "null";
            else if ("function" == n && "undefined" == typeof R.call) return "object";
            return n
        },
        C = function(R, n) {
            R.P.splice(0, 0, n)
        },
        G = function(R, n, k, q, c, y) {
            if (n.C == n)
                for (c = v(n, R), 421 == R ? (R = function(e, K, N, Q) {
                        if (c.mm != (Q = ((K = c.length, K) | 0) - 4 >> 3, Q)) {
                            Q = (c.mm = (N = [0, 0, y[1], y[2]], Q), (Q << 3) - 4);
                            try {
                                c.nk = kz(KX(c, Q), N, KX(c, (Q | 0) + 4))
                            } catch (Z) {
                                throw Z;
                            }
                        }
                        c.push(c.nk[K & 7] ^ e)
                    }, y = v(n, 408)) : R = function(e) {
                        c.push(e)
                    }, q && R(q & 255), n = k.length, q = 0; q < n; q++) R(k[q])
        },
        NX = function(R, n, k, q) {
            for (; R.P.length;) {
                k = (R.F = null, R).P.pop();
                try {
                    q = ca(R, k)
                } catch (c) {
                    r(R, c)
                }
                if (n && R.F) {
                    n = R.F, n(function() {
                        B(true, R, true)
                    });
                    break
                }
            }
            return q
        },
        QB = function(R, n, k, q) {
            return (q = I[R.substring(0, 3) + "_"]) ? q(R.substring(3), n, k) : nX(n, R)
        },
        sk = function(R, n, k, q, c) {
            G(((c = (k = u((c = u((q = n & 4, n &= 3, R)), R)), v(R, c)), q) && (c = pX("" + c)), n && G(k, R, D(2, c.length)), k), R, c)
        },
        l = function(R, n, k, q, c, y, e, K, N) {
            if ((R.C = (((K = (y = (N = (c = (e = 0 < (k || R.X++, R).U && R.S && R.xh && 1 >= R.J && !R.L && !R.F && (!k || 1 < R.Z - n) && 0 == document.hidden, 4 == R.X)) || e ? R.s() : R.T, N - R.T), y) >> 14, R).O && (R.O ^= K * (y << 2)), R).Y += K, K || R.C), c) || e) R.X = 0, R.T = N;
            if (!e || N - R.H < R.U - (q ? 255 : k ? 5 : 2)) return false;
            return !((V(278, (q = v(R, (R.Z = n, k ? 426 : 278)), R), R.B), R.P).push([jM, q, k ? n + 1 : n]), R.F = z, 0)
        },
        Ek = function(R, n, k) {
            if (3 == R.length) {
                for (k = 0; 3 > k; k++) n[k] += R[k];
                for (k = [(R = 0, 13), 8, 13, 12, 16, 5, 3, 10, 15]; 9 > R; R++) n[3](n, R % 3, k[R])
            }
        },
        u = function(R, n) {
            if (R.L) return Zn(R, R.N);
            return n = L(8, R, true), n & 128 && (n ^= 128, R = L(2, R, true), n = (n << 2) + (R | 0)), n
        },
        KX = function(R, n) {
            return R[n] << 24 | R[(n | 0) + 1] << 16 | R[(n | 0) + 2] << 8 | R[(n | 0) + 3]
        },
        we = function(R, n, k, q, c, y, e, K) {
            return (c = d[n.I]((k = [-2, 42, -72, -(y = va, 46), -26, -71, k, 61, (K = q & 7, 9), 2], n.MJ)), c)[n.I] = function(N) {
                e = N, K += 6 + 7 * q, K &= 7
            }, c.concat = function(N) {
                return (N = (e = (N = +(N = R % 16 + 1, k)[K + 59 & 7] * R * N - N * e - -2440 * e + (y() | 0) * N + 1 * R * R * N - 2562 * R * e - 61 * R * R * e + K + 61 * e * e, void 0), k[N]), k[(K + 69 & 7) + (q & 2)] = N, k)[K + (q & 2)] = 42, N
            }, c
        },
        V = function(R, n, k) {
            if (278 == R || 426 == R) n.u[R] ? n.u[R].concat(k) : n.u[R] = h8(n, k);
            else {
                if (n.D && 358 != R) return;
                305 == R || 421 == R || 352 == R || 236 == R || 408 == R ? n.u[R] || (n.u[R] = we(R, n, k, 54)) : n.u[R] = we(R, n, k, 113)
            }
            358 == R && (n.O = L(32, n, false), n.A = void 0)
        },
        P = function(R) {
            return R.L ? Zn(R, R.N) : L(8, R, true)
        },
        B = function(R, n, k, q, c, y) {
            if (n.P.length) {
                (n.S = !(n.S && 0(), 0), n).xh = k;
                try {
                    q = n.s(), n.H = q, n.T = q, n.X = 0, c = NX(n, k), y = n.s() - n.H, n.G += y, y < (R ? 0 : 10) || 0 >= n.g-- || (y = Math.floor(y), n.K.push(254 >= y ? y : 254))
                } finally {
                    n.S = false
                }
                return c
            }
        },
        xz = function(R, n, k, q) {
            for (k = (q = u(n), 0); 0 < R; R--) k = k << 8 | P(n);
            V(q, n, k)
        },
        I, Pa = function(R, n, k, q) {
            return v(R, (LX((q = v(R, 278), R.i && q < R.B ? (V(278, R, R.B), Uk(k, R)) : V(278, R, k), n), R), V(278, R, q), 15))
        },
        Tu = function(R, n, k, q, c) {
            for (c = (q = (k.In = (k.MJ = J8(k.I, (k.v0 = (k.NJ = be, CX), k.c0 = k[F], {get: function() {
                        return this.concat()
                    }
                })), d)[k.I](k.MJ, {
                    value: {
                        value: {}
                    }
                }), []), 0); 128 > c; c++) q[c] = String.fromCharCode(c);
            B((C((C(k, (C(k, (p(340, (V((V(305, k, [160, ((V(307, (V(327, (V(236, k, (p(59, k, (p(127, k, (p(119, (V(421, k, (V(270, k, (p(87, (p(158, (p(396, k, (p(448, k, (k.on = (p(362, (k.E9 = (p((p(250, k, (p(371, (V(15, (p(354, k, (V(352, k, ((p(442, k, (p(227, k, (p(103, k, (p(11, k, (p(121, (V(289, (p(173, (V(409, k, (p(275, k, (p(317, (p(375, k, (p(432, ((p((p(295, (V(278, k, (k.B0 = (k.wE = (k.P0 = function(y) {
                this.C = y
            }, k.u = (k.R = void 0, []), k.F = ((k.O = (k.N = void 0, void 0), k.Y = 1, k.U = 0, (k.Rn = [], k).C = k, c = window.performance || {}, k.j = [], (k.J = 0, k).T = 0, k.B = 0, k.S = ((k.A = void 0, k.X = void 0, k).i = [], k.H = (k.P = (k.xh = false, []), k.g = (k.G = 0, 25), 0), k.L = (k.l = void 0, void 0), k.D = false, k.Z = 8001, false), k).K = [], null), 0), c).timeOrigin || (c.timing || {}).navigationStart || 0, 0)), V(426, k, 0), k), function(y, e, K, N) {
                V((e = v(y, (N = (K = (N = (e = u(y), u(y)), u(y)), v(y, N)), e)), K), y, e in N | 0)
            }), 163), k, function(y, e, K, N) {
                !l(y, e, true, false) && (e = re(y), N = e.Ck, K = e.h, y.C == y || K == y.P0 && N == y) && (V(e.un, y, K.apply(N, e.o)), y.T = y.s())
            }), p)(341, k, function(y, e, K, N) {
                if (N = y.Rn.pop()) {
                    for (K = P(y); 0 < K; K--) e = u(y), N[e] = y.u[e];
                    y.u = (N[236] = y.u[236], N[307] = y.u[307], N)
                } else V(278, y, y.B)
            }), k), function(y, e) {
                (e = v(y, u(y)), Uk)(e, y.C)
            }), function(y, e, K, N) {
                (e = v(y, (N = v((K = (N = u((e = u(y), y)), u(y)), y), N), e)) == N, V)(K, y, +e)
            })), k), function(y) {
                xz(4, y)
            }), function(y, e, K, N, Q, Z) {
                if (!l(y, e, true, true)) {
                    if ("object" == (y = v((N = (Q = v((e = v((N = (e = (Q = (Z = u(y), u)(y), u(y)), u)(y), y), e), y), Q), v(y, N)), y), Z), qX)(y)) {
                        for (K in Z = [], y) Z.push(K);
                        y = Z
                    }
                    for (Z = (e = 0 < e ? e : 1, K = y.length, 0); Z < K; Z += e) Q(y.slice(Z, (Z | 0) + (e | 0)), N)
                }
            })), p(193, k, function(y, e, K, N, Q) {
                0 !== (Q = v(y, (K = (e = v((N = v(y, (N = (Q = u((K = u(y), y)), e = u(y), u(y)), N)), y), e), v(y.C, K)), Q)), K) && (N = Ba(e, N, y, 1, K, Q), K.addEventListener(Q, N, W), V(270, y, [K, Q, N]))
            }), 687)), k), function(y) {
                sk(y, 4)
            }), k), 0), k), function() {}), function(y, e, K, N, Q, Z, w) {
                for (w = (e = (K = (N = u(y), Z = eM(y), Q = "", v(y, 115)), K.length), 0); Z--;) w = ((w | 0) + (eM(y) | 0)) % e, Q += q[K[w]];
                V(N, y, Q)
            })), function(y, e, K) {
                K = v((e = (K = (e = u(y), u(y)), 0 != v(y, e)), y), K), e && V(278, y, K)
            })), function(y, e, K, N, Q) {
                for (K = (e = (N = u(y), eM)(y), 0), Q = []; K < e; K++) Q.push(P(y));
                V(N, y, Q)
            })), function(y, e, K) {
                (e = u((K = u(y), y)), V)(e, y, "" + v(y, K))
            })), V)(408, k, [0, 0, 0]), [])), function(y, e, K, N, Q, Z, w, U, h, T, Y, J) {
                function f(b, a) {
                    for (; e < b;) T |= P(y) << e, e += 8;
                    return T >>= (a = T & (e -= b, (1 << b) - 1), b), a
                }
                for (K = (h = (U = (Y = (e = T = (Z = u(y), 0), f(3) | 0) + 1, f(5)), 0), []), Q = 0; Q < U; Q++) J = f(1), K.push(J), h += J ? 0 : 1;
                for (Q = (N = (h = ((h | 0) - 1).toString(2).length, []), 0); Q < U; Q++) K[Q] || (N[Q] = f(h));
                for (h = 0; h < U; h++) K[h] && (N[h] = u(y));
                for (w = []; Y--;) w.push(v(y, u(y)));
                p(Z, y, function(b, a, O, VB, X) {
                    for (O = (VB = (X = [], []), 0); O < U; O++) {
                        if (a = N[O], !K[O]) {
                            for (; a >= X.length;) X.push(u(b));
                            a = X[a]
                        }
                        VB.push(a)
                    }
                    b.L = h8(b, w.slice()), b.N = h8(b, VB)
                })
            })), k), {}), k), function(y) {
                al(y, 1)
            }), function(y, e, K) {
                l(y, e, true, false) || (e = u(y), K = u(y), V(K, y, function(N) {
                    return eval(N)
                }(Gu(v(y.C, e)))))
            })), 499), k, function(y) {
                sk(y, 3)
            }), 0), k), function(y, e, K, N) {
                K = (N = P((e = u(y), y)), u(y)), V(K, y, v(y, e) >>> N)
            }), 0), function(y, e, K, N) {
                V((e = v(y, (N = v(y, (K = u((N = u(y), y)), N)), K)), K), y, e + N)
            })), function(y, e) {
                y = (e = u(y), v)(y.C, e), y[0].removeEventListener(y[1], y[2], W)
            })), k), function(y, e, K, N, Q) {
                V((K = v(y, (N = (Q = v(y, (Q = (N = (K = (e = u(y), u(y)), u(y)), u)(y), Q)), v(y, N)), K)), e), y, Ba(K, N, y, Q))
            }), k), function(y, e, K) {
                V((K = v(y, (e = (K = u(y), u(y)), K)), K = qX(K), e), y, K)
            }), 0)), S(4))), k), function(y, e, K, N, Q, Z) {
                l(y, e, true, false) || (N = re(y.C), e = N.o, Z = N.Ck, Q = N.h, K = e.length, N = N.un, e = 0 == K ? new Z[Q] : 1 == K ? new Z[Q](e[0]) : 2 == K ? new Z[Q](e[0], e[1]) : 3 == K ? new Z[Q](e[0], e[1], e[2]) : 4 == K ? new Z[Q](e[0], e[1], e[2], e[3]) : 2(), V(N, y, e))
            }), function(y, e, K, N) {
                N = u((e = u(y), y)), K = u(y), y.C == y && (N = v(y, N), K = v(y, K), v(y, e)[N] = K, 358 == e && (y.A = void 0, 2 == N && (y.O = L(32, y, false), y.A = void 0)))
            })), function(y) {
                al(y, 4)
            })), [])), k), H), k), 2048), k).an = 0, 0), 0]), 120), k, k), k), function(y, e, K, N) {
                V((K = v((e = v(y, (N = u((K = u((e = u(y), y)), y)), e)), y), K), N), y, e[K])
            }), p(472, k, function(y, e, K, N) {
                N = (e = u(y), u)(y), K = u(y), V(K, y, v(y, e) || v(y, N))
            }), [Rl])), [A, n])), k), [Il, R]), true), k, true)
        },
        J8 = function(R, n) {
            return d[R](d.prototype, {
                pop: n,
                replace: n,
                length: n,
                document: n,
                splice: n,
                parent: n,
                stack: n,
                floor: n,
                prototype: n,
                console: n,
                call: n,
                propertyIsEnumerable: n
            })
        },
        pX = function(R, n, k, q, c) {
            for (q = (R = R.replace(/\r\n/g, "\n"), n = 0, []), k = 0; n < R.length; n++) c = R.charCodeAt(n), 128 > c ? q[k++] = c : (2048 > c ? q[k++] = c >> 6 | 192 : (55296 == (c & 64512) && n + 1 < R.length && 56320 == (R.charCodeAt(n + 1) & 64512) ? (c = 65536 + ((c & 1023) << 10) + (R.charCodeAt(++n) & 1023), q[k++] = c >> 18 | 240, q[k++] = c >> 12 & 63 | 128) : q[k++] = c >> 12 | 224, q[k++] = c >> 6 & 63 | 128), q[k++] = c & 63 | 128);
            return q
        },
        LX = function(R, n, k, q, c, y) {
            if (!n.R) {
                n.J++;
                try {
                    for (k = (q = (y = void 0, n).B, 0); --R;) try {
                        if ((c = void 0, n).L) y = Zn(n, n.L);
                        else {
                            if (k = v(n, 278), k >= q) break;
                            y = (c = (V(426, n, k), u(n)), v)(n, c)
                        }(y && y[ue] & 2048 ? y(n, R) : M(n, 0, [x, 21, c]), l)(n, R, false, false)
                    } catch (e) {
                        v(n, 409) ? M(n, 22, e) : V(409, n, e)
                    }
                    if (!R) {
                        if (n.Lk) {
                            n.J--, LX(338687074593, n);
                            return
                        }
                        M(n, 0, [x, 33])
                    }
                } catch (e) {
                    try {
                        M(n, 22, e)
                    } catch (K) {
                        r(n, K)
                    }
                }
                n.J--
            }
        },
        Zn = function(R, n) {
            return (n = n.create().shift(), R.L.create()).length || R.N.create().length || (R.L = void 0, R.N = void 0), n
        },
        Dn = function(R, n, k, q) {
            function c() {}
            return {
                invoke: (k = QB((q = void 0, R), function(y) {
                    c && (n && z(n), q = y, c(), c = void 0)
                }, !!n)[0], function(y, e, K, N) {
                    function Q() {
                        q(function(Z) {
                            z(function() {
                                y(Z)
                            })
                        }, K)
                    }
                    if (!e) return e = k(K), y && y(e), e;
                    q ? Q() : (N = c, c = function() {
                        N(), z(Q)
                    })
                })
            }
        },
        v = function(R, n) {
            if (void 0 === (R = R.u[n], R)) throw [x, 30, n];
            if (R.value) return R.create();
            return R.create(1 * n * n + 42 * n + -40), R.prototype
        },
        D = function(R, n, k, q) {
            for (k = (q = (R | 0) - 1, []); 0 <= q; q--) k[(R | 0) - 1 - (q | 0)] = n >> 8 * q & 255;
            return k
        },
        Uk = function(R, n) {
            V(278, ((n.Rn.push(n.u.slice()), n.u)[278] = void 0, n), R)
        },
        r = function(R, n) {
            R.R = ((R.R ? R.R + "~" : "E:") + n.message + ":" + n.stack).slice(0, 2048)
        },
        fX = function(R, n, k) {
            return n.W(function(q) {
                k = q
            }, false, R), k
        },
        Ba = function(R, n, k, q, c, y) {
            function e() {
                if (k.C == k) {
                    if (k.u) {
                        var K = [m, R, n, void 0, c, y, arguments];
                        if (2 == q) var N = B(false, (C(k, K), k), false);
                        else if (1 == q) {
                            var Q = !k.P.length;
                            C(k, K), Q && B(false, k, false)
                        } else N = ca(k, K);
                        return N
                    }
                    c && y && c.removeEventListener(y, e, W)
                }
            }
            return e
        },
        S = function(R, n) {
            for (n = []; R--;) n.push(255 * Math.random() | 0);
            return n
        },
        ca = function(R, n, k, q, c) {
            if (c = n[0], c == g) R.g = 25, R.v(n);
            else if (c == F) {
                q = n[1];
                try {
                    k = R.R || R.v(n)
                } catch (y) {
                    r(R, y), k = R.R
                }
                q(k)
            } else if (c == jM) R.v(n);
            else if (c == A) R.v(n);
            else if (c == Il) {
                try {
                    for (k = 0; k < R.j.length; k++) try {
                        q = R.j[k], q[0][q[1]](q[2])
                    } catch (y) {}
                } catch (y) {}(0, n[R.j = [], 1])(function(y, e) {
                    R.W(y, true, e)
                }, function(y) {
                    (C((y = !R.P.length, R), [ue]), y) && B(false, R, true)
                })
            } else {
                if (c == m) return k = n[2], V(126, R, n[6]), V(15, R, k), R.v(n);
                c == ue ? (R.K = [], R.i = [], R.u = null) : c == Rl && "loading" === H.document.readyState && (R.F = function(y, e) {
                    function K() {
                        e || (e = true, y())
                    }
                    H.document.addEventListener("DOMContentLoaded", (e = false, K), W), H.addEventListener("load", K, W)
                })
            }
        },
        al = function(R, n, k, q) {
            G((k = u(R), q = u(R), q), R, D(n, v(R, k)))
        },
        $z = function(R, n) {
            if ((R = null, n = H.trustedTypes, !n) || !n.createPolicy) return R;
            try {
                R = n.createPolicy("bg", {
                    createHTML: zu,
                    createScript: zu,
                    createScriptURL: zu
                })
            } catch (k) {
                H.console && H.console.error(k.message)
            }
            return R
        },
        zu = function(R) {
            return R
        },
        M = function(R, n, k, q, c, y) {
            if (!R.D) {
                if ((k = v(R, (n = (0 == (q = ((c = void 0, k && k[0] === x) && (c = k[2], n = k[1], k = void 0), v)(R, 236), q).length && (y = v(R, 426) >> 3, q.push(n, y >> 8 & 255, y & 255), void 0 != c && q.push(c & 255)), ""), k && (k.message && (n += k.message), k.stack && (n += ":" + k.stack)), 307)), 3) < k) {
                    R.C = (c = (n = pX((k -= ((n = n.slice(0, (k | 0) - 3), n.length) | 0) + 3, n)), R.C), R);
                    try {
                        G(421, R, D(2, n.length).concat(n), 9)
                    } finally {
                        R.C = c
                    }
                }
                V(307, R, k)
            }
        },
        H = this || self,
        t = function(R, n, k) {
            k = this;
            try {
                Tu(n, R, this)
            } catch (q) {
                r(this, q), n(function(c) {
                    c(k.R)
                })
            }
        },
        h8 = function(R, n, k) {
            return k = d[R.I](R.In), k[R.I] = function() {
                return n
            }, k.concat = function(q) {
                n = q
            }, k
        },
        W = {
            passive: true,
            capture: true
        },
        re = function(R, n, k, q, c, y) {
            for (q = (c = (n = (k = u((y = R[le] || {}, R)), y.un = u(R), y.o = [], R.C == R ? (P(R) | 0) - 1 : 1), u(R)), 0); q < n; q++) y.o.push(u(R));
            for (y.Ck = v(R, c); n--;) y.o[n] = v(R, y.o[n]);
            return y.h = v(R, k), y
        },
        z = H.requestIdleCallback ? function(R) {
            requestIdleCallback(function() {
                R()
            }, {
                timeout: 4
            })
        } : H.setImmediate ? function(R) {
            setImmediate(R)
        } : function(R) {
            setTimeout(R, 0)
        },
        de = function(R, n) {
            n.push(R[0] << 24 | R[1] << 16 | R[2] << 8 | R[3]), n.push(R[4] << 24 | R[5] << 16 | R[6] << 8 | R[7]), n.push(R[8] << 24 | R[9] << 16 | R[10] << 8 | R[11])
        },
        le = String.fromCharCode(105, 110, 116, 101, 103, 67, 104, 101, 99, 107, 66, 121, 112, 97, 115, 115),
        x = ((t.prototype.V = "toString", t.prototype.Lk = false, t).prototype.Qy = void 0, {}),
        g = [],
        Il = [],
        jM = [],
        A = [],
        m = [],
        ue = (t.prototype.kh = void 0, []),
        F = [],
        Rl = [],
        d = (E = ((de, function() {})(S), yB, Ek, t.prototype), E.zc = function() {
            return Math.floor(this.G + (this.s() - this.H))
        }, x.constructor),
        va = (E.s = (t.prototype.I = "create", (E.dE = (E.W = function(R, n, k, q, c) {
            if ((k = "array" === qX(k) ? k : [k], this).R) R(this.R);
            else try {
                q = !this.P.length, c = [], C(this, [g, c, k]), C(this, [F, R, c]), n && !q || B(true, this, n)
            } catch (y) {
                r(this, y), R(this.R)
            }
        }, function(R, n, k, q, c, y) {
            for (c = q = 0, y = []; q < R.length; q++)
                for (c += n, k = k << n | R[q]; 7 < c;) c -= 8, y.push(k >> c & 255);
            return y
        }), (E.eN = (E.s9 = function(R, n, k) {
            return ((n = (n ^= n << 13, n ^= n >> 17, (n ^ n << 5) & k)) || (n = 1), R) ^ n
        }, function(R, n, k, q, c) {
            for (q = c = 0; c < R.length; c++) q += R.charCodeAt(c), q += q << 10, q ^= q >> 6;
            return c = new Number((q += q << 3, q ^= q >> 11, R = q + (q << 15) >>> 0, R & (1 << n) - 1)), c[0] = (R >>> n) % k, c
        }), E.FH = function() {
            return Math.floor(this.s())
        }, window.performance || {}).now) ? function() {
            return this.B0 + window.performance.now()
        } : function() {
            return +new Date
        }), void 0),
        CX = ((t.prototype.v = function(R, n) {
            return n = {}, va = (R = {}, function() {
                    return n == R ? -40 : 9
                }),
                function(k, q, c, y, e, K, N, Q, Z, w, U, h, T, Y, J) {
                    n = (Y = n, R);
                    try {
                        if (h = k[0], h == A) {
                            T = k[1];
                            try {
                                for (Q = (y = atob(T), e = [], K = 0); Q < y.length; Q++) J = y.charCodeAt(Q), 255 < J && (e[K++] = J & 255, J >>= 8), e[K++] = J;
                                V(358, this, (this.B = (this.i = e, this.i).length << 3, [0, 0, 0]))
                            } catch (f) {
                                M(this, 17, f);
                                return
                            }
                            LX(8001, this)
                        } else if (h == g) k[1].push(v(this, 307), v(this, 421).length, v(this, 352).length, v(this, 305).length), V(15, this, k[2]), this.u[349] && Pa(this, 8001, v(this, 349));
                        else {
                            if (h == F) {
                                this.C = (Z = (U = D(2, (v(this, (K = k[2], 305)).length | 0) + 2), this.C), this);
                                try {
                                    w = v(this, 236), 0 < w.length && G(305, this, D(2, w.length).concat(w), 10), G(305, this, D(1, this.Y), 109), G(305, this, D(1, this[F].length)), y = 0, y -= (v(this, 305).length | 0) + 5, y += v(this, 289) & 2047, q = v(this, 421), 4 < q.length && (y -= (q.length | 0) + 3), 0 < y && G(305, this, D(2, y).concat(S(y)), 15), 4 < q.length && G(305, this, D(2, q.length).concat(q), 156)
                                } finally {
                                    this.C = Z
                                }
                                if (c = ((Q = S(2).concat(v(this, 305)), Q[1] = Q[0] ^ 6, Q[3] = Q[1] ^ U[0], Q)[4] = Q[1] ^ U[1], this.rE(Q))) c = "!" + c;
                                else
                                    for (c = "", y = 0; y < Q.length; y++) N = Q[y][this.V](16), 1 == N.length && (N = "0" + N), c += N;
                                return v(this, (v((v((V(307, this, (e = c, K.shift())), this), 421).length = K.shift(), this), 352).length = K.shift(), 305)).length = K.shift(), e
                            }
                            if (h == jM) Pa(this, k[2], k[1]);
                            else if (h == m) return Pa(this, 8001, k[1])
                        }
                    } finally {
                        n = Y
                    }
                }
        }(), t.prototype).rE = function(R, n, k, q) {
            if (n = window.btoa) {
                for (q = (k = 0, ""); k < R.length; k += 8192) q += String.fromCharCode.apply(null, R.slice(k, k + 8192));
                R = n(q).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "")
            } else R = void 0;
            return R
        }, /./);
    (t.prototype.Ax = 0, t.prototype).yy = 0;
    var be, Fn = A.pop.bind((t.prototype[Il] = [0, 0, 1, 1, 0, 1, 1], t).prototype[g]),
        Gu = function(R, n) {
            return (n = $z()) && 1 === R.eval(n.createScript("1")) ? function(k) {
                return n.createScript(k)
            } : function(k) {
                return "" + k
            }
        }(((be = J8(t.prototype.I, {get: (CX[t.prototype.V] = Fn, Fn)
        }), t.prototype).O9 = void 0, H));
    40 < (I = H.botguard || (H.botguard = {}), I.m) || (I.m = 41, I.bg = Dn, I.a = QB), I.bDL_ = function(R, n, k) {
        return k = new t(R, n), [function(q) {
            return fX(q, k)
        }]
    };
}).call(this);
#5 JavaScript::Eval (size: 193) - SHA256: a3b2b69eb1774b494e4a83b7107cbb744baf0037d20cf59756d0eb3ca0300f9e
(function() {
    try {
        var b = ga.getAll(),
            c;
        var a = 0;
        for (c = b.length; a < c; a += 1)
            if (b[a].get("trackingId") === google_tag_manager["GTM-5PMSX62"].macro(2)) return b[a].get("userId")
    } catch (d) {}
    return "false"
})();
#6 JavaScript::Eval (size: 193) - SHA256: bbd6e8b7429fde63bad66647fef2fc58d1034b6372b0de3c6efc996fb3edfab4
(function() {
    try {
        var b = ga.getAll(),
            c;
        var a = 0;
        for (c = b.length; a < c; a += 1)
            if (b[a].get("trackingId") === google_tag_manager["GTM-5PMSX62"].macro(3)) return b[a].get("userId")
    } catch (d) {}
    return "false"
})();
#7 JavaScript::Eval (size: 994) - SHA256: 2dfb233ee46e6886cbbdf26345e921f9df293dab1775add08c8ef91703d0adf6
(function() {
    return function(e) {
        function f() {
            function g(a, c) {
                var b = new Date;
                b.setTime(b.getTime() + 18E5);
                b = "expires\x3d" + b.toUTCString();
                document.cookie = a + "\x3d" + c + ";" + b + ";" + m
            }

            function f() {
                a: {
                    var a = h + "\x3d";
                    var c = decodeURIComponent(document.cookie);
                    c = c.split(";");
                    for (var b = 0; b < c.length; b++) {
                        for (var d = c[b];
                            " " == d.charAt(0);) d = d.substring(1);
                        if (0 == d.indexOf(a)) {
                            a = d.substring(a.length, d.length);
                            break a
                        }
                    }
                    a = ""
                }
                "" === a && (a = n);g(h, a);e.set("dimension5", a)
            }
            var p = "_gaclientid",
                h = "_gasessionid",
                q = "_gahitid",
                m =
                function() {
                    var a = window.location.hostname;
                    return a = "domain\x3d" + a + ";path\x3d/"
                }(),
                k = e.get("clientId"),
                n = function() {
                    var a = new Date;
                    var c = a.getDate().toString();
                    var b = (a.getMonth() + 1).toString();
                    a = a.getFullYear().toString();
                    2 > c.length && (c = "0" + c);
                    2 > b.length && (b = "0" + b);
                    c = a + b + c;
                    b = Math.floor(1E7 * Math.random() + 1).toString();
                    if (8 !== b.length)
                        for (; 8 > b.length;) b = "0" + b;
                    return c + "|" + b
                }(),
                l = function() {
                    var a = Date.now();
                    return a
                }();
            g(p, k);
            e.set("dimension1", k);
            f();
            g(q, l);
            e.set("dimension6", l)
        }
        f()
    }
})();
#8 JavaScript::Eval (size: 22) - SHA256: 9bb0c662c12831d4a6a9d504b2534e28f08b91591da1303a05ad2b3e12a6e49e
0,
function(y) {
    xz(1, y)
}
#9 JavaScript::Eval (size: 194) - SHA256: d66a778d3e45eabe703416f02bf2e2ffb08dfce9a6019ef0d6b6fac1388c0b5e
(function() {
    try {
        var b = ga.getAll(),
            c;
        var a = 0;
        for (c = b.length; a < c; a += 1)
            if (b[a].get("trackingId") === google_tag_manager["GTM-5PMSX62"].macro(24)) return b[a].get("userId")
    } catch (d) {}
    return "false"
})();
#10 JavaScript::Eval (size: 391) - SHA256: 1fd0b64b78935464d6acf535e880f80758729e26205f482445f7fb182340a0da
class� _� extends Array {
    constructor(j = `a`, ...c) {
        const q = (({
            u: e
        }) => {
            return {
                [`${c}`]: Symbol(j)
            };
        })({});
        super(j, q, ...c)
    }
}
new Promise(f => {
    const a = function*() {
        return "\u{20BB7}".match(/./u)[0].length === 2 || !0
    };
    for (let z of a()) {
        const [x, y, w, k] = [new Set(), new WeakSet(), new Map(), new WeakMap()];
        break
    }
    f(new Proxy({}, {get: (h, i) => i in h ? h[i] : "j".repeat(0 o2)
    }))
}).then(t => new� _�(t.d))
#11 JavaScript::Eval (size: 209) - SHA256: 0cfc8f57ea174bb9e3a746405077c0156867dc3a2dc5901ae81c4b52e82a80ab
(function() {
    var a = (a = document.cookie.match(new RegExp("(?:^|; )" + "_ga".replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1") + "\x3d([^;]*)"))) ? decodeURIComponent(a[1]) : void 0;
    a = a.split(".");
    return a = a[2] + "." + a[3]
})();
#12 JavaScript::Eval (size: 15588) - SHA256: 0d4559ba47020dfb3d3229a79fae241152a0337f86a9c8a01bd5add41c1753b7
/* Anti-spam. Want to say hello? Contact (base64) Ym90Z3VhcmQtY29udGFjdEBnb29nbGUuY29t */
(function() {
    var y = this || self,
        e = function(R) {
            return R
        },
        q = function(R, n) {
            if ((n = (R = y.trustedTypes, null), !R) || !R.createPolicy) return n;
            try {
                n = R.createPolicy("bg", {
                    createHTML: e,
                    createScript: e,
                    createScriptURL: e
                })
            } catch (k) {
                y.console && y.console.error(k.message)
            }
            return n
        };
    (0, eval)(function(R, n) {
        return (n = q()) && 1 === R.eval(n.createScript("1")) ? function(k) {
            return n.createScript(k)
        } : function(k) {
            return "" + k
        }
    }(y)(Array(7824 * Math.random() | 0).join("\n") + '(function(){var p=function(R,n,k){k[V(R,n,k),Rl]=2796},nX=function(R,n){return R(function(k){k(n)}),[function(){return n}]},kz=function(R,n,k,q,c){for(n=(q=(c=n[3]|0,0),n[2])|0;14>q;q++)c=c>>>8|c<<24,k=k>>>8|k<<24,k+=R|0,c+=n|0,k^=n+2298,R=R<<3|R>>>29,c^=q+2298,R^=k,n=n<<3|n>>>29,n^=c;return[R>>>24&255,R>>>16&255,R>>>8&255,R>>>0&255,k>>>24&255,k>>>16&255,k>>>8&255,k>>>0&255]},E,L=function(R,n,k,q,c,y,e,K,N,Q,Z,w,U,h){if(y=v(n,278),y>=n.B)throw[x,31];for(c=(K=0,q=R,Q=y,n.c0.length);0<q;)Z=Q%8,N=8-(Z|0),N=N<q?N:q,U=Q>>3,w=n.i[U],k&&(e=n,e.A!=Q>>6&&(e.A=Q>>6,h=v(e,358),e.l=kz(e.O,[0,0,h[1],h[2]],e.A)),w^=n.l[U&c]),K|=(w>>8-(Z|0)-(N|0)&(1<<N)-1)<<(q|0)-(N|0),Q+=N,q-=N;return V(278,n,(k=K,(y|0)+(R|0))),k},yB=function(R,n,k,q){try{q=R[((n|0)+2)%3],R[n]=(R[n]|0)-(R[((n|0)+1)%3]|0)-(q|0)^(1==n?q<<k:q>>>k)}catch(c){throw c;}},eM=function(R,n){return n=P(R),n&128&&(n=n&127|P(R)<<7),n},qX=function(R,n,k){if((n=typeof R,"object")==n)if(R){if(R instanceof Array)return"array";if(R instanceof Object)return n;if("[object Window]"==(k=Object.prototype.toString.call(R),k))return"object";if("[object Array]"==k||"number"==typeof R.length&&"undefined"!=typeof R.splice&&"undefined"!=typeof R.propertyIsEnumerable&&!R.propertyIsEnumerable("splice"))return"array";if("[object Function]"==k||"undefined"!=typeof R.call&&"undefined"!=typeof R.propertyIsEnumerable&&!R.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==n&&"undefined"==typeof R.call)return"object";return n},C=function(R,n){R.P.splice(0,0,n)},G=function(R,n,k,q,c,y){if(n.C==n)for(c=v(n,R),421==R?(R=function(e,K,N,Q){if(c.mm!=(Q=((K=c.length,K)|0)-4>>3,Q)){Q=(c.mm=(N=[0,0,y[1],y[2]],Q),(Q<<3)-4);try{c.nk=kz(KX(c,Q),N,KX(c,(Q|0)+4))}catch(Z){throw Z;}}c.push(c.nk[K&7]^e)},y=v(n,408)):R=function(e){c.push(e)},q&&R(q&255),n=k.length,q=0;q<n;q++)R(k[q])},NX=function(R,n,k,q){for(;R.P.length;){k=(R.F=null,R).P.pop();try{q=ca(R,k)}catch(c){r(R,c)}if(n&&R.F){n=R.F,n(function(){B(true,R,true)});break}}return q},QB=function(R,n,k,q){return(q=I[R.substring(0,3)+"_"])?q(R.substring(3),n,k):nX(n,R)},sk=function(R,n,k,q,c){G(((c=(k=u((c=u((q=n&4,n&=3,R)),R)),v(R,c)),q)&&(c=pX(""+c)),n&&G(k,R,D(2,c.length)),k),R,c)},l=function(R,n,k,q,c,y,e,K,N){if((R.C=(((K=(y=(N=(c=(e=0<(k||R.X++,R).U&&R.S&&R.xh&&1>=R.J&&!R.L&&!R.F&&(!k||1<R.Z-n)&&0==document.hidden,4==R.X))||e?R.s():R.T,N-R.T),y)>>14,R).O&&(R.O^=K*(y<<2)),R).Y+=K,K||R.C),c)||e)R.X=0,R.T=N;if(!e||N-R.H<R.U-(q?255:k?5:2))return false;return!((V(278,(q=v(R,(R.Z=n,k?426:278)),R),R.B),R.P).push([jM,q,k?n+1:n]),R.F=z,0)},Ek=function(R,n,k){if(3==R.length){for(k=0;3>k;k++)n[k]+=R[k];for(k=[(R=0,13),8,13,12,16,5,3,10,15];9>R;R++)n[3](n,R%3,k[R])}},u=function(R,n){if(R.L)return Zn(R,R.N);return n=L(8,R,true),n&128&&(n^=128,R=L(2,R,true),n=(n<<2)+(R|0)),n},KX=function(R,n){return R[n]<<24|R[(n|0)+1]<<16|R[(n|0)+2]<<8|R[(n|0)+3]},we=function(R,n,k,q,c,y,e,K){return(c=d[n.I]((k=[-2,42,-72,-(y=va,46),-26,-71,k,61,(K=q&7,9),2],n.MJ)),c)[n.I]=function(N){e=N,K+=6+7*q,K&=7},c.concat=function(N){return(N=(e=(N=+(N=R%16+1,k)[K+59&7]*R*N-N*e- -2440*e+(y()|0)*N+1*R*R*N-2562*R*e-61*R*R*e+K+61*e*e,void 0),k[N]),k[(K+69&7)+(q&2)]=N,k)[K+(q&2)]=42,N},c},V=function(R,n,k){if(278==R||426==R)n.u[R]?n.u[R].concat(k):n.u[R]=h8(n,k);else{if(n.D&&358!=R)return;305==R||421==R||352==R||236==R||408==R?n.u[R]||(n.u[R]=we(R,n,k,54)):n.u[R]=we(R,n,k,113)}358==R&&(n.O=L(32,n,false),n.A=void 0)},P=function(R){return R.L?Zn(R,R.N):L(8,R,true)},B=function(R,n,k,q,c,y){if(n.P.length){(n.S=!(n.S&&0(),0),n).xh=k;try{q=n.s(),n.H=q,n.T=q,n.X=0,c=NX(n,k),y=n.s()-n.H,n.G+=y,y<(R?0:10)||0>=n.g--||(y=Math.floor(y),n.K.push(254>=y?y:254))}finally{n.S=false}return c}},xz=function(R,n,k,q){for(k=(q=u(n),0);0<R;R--)k=k<<8|P(n);V(q,n,k)},I,Pa=function(R,n,k,q){return v(R,(LX((q=v(R,278),R.i&&q<R.B?(V(278,R,R.B),Uk(k,R)):V(278,R,k),n),R),V(278,R,q),15))},Tu=function(R,n,k,q,c){for(c=(q=(k.In=(k.MJ=J8(k.I,(k.v0=(k.NJ=be,CX),k.c0=k[F],{get:function(){return this.concat()}})),d)[k.I](k.MJ,{value:{value:{}}}),[]),0);128>c;c++)q[c]=String.fromCharCode(c);B((C((C(k,(C(k,(p(340,(V((V(305,k,[160,((V(307,(V(327,(V(236,k,(p(59,k,(p(127,k,(p(119,(V(421,k,(V(270,k,(p(87,(p(158,(p(396,k,(p(448,k,(k.on=(p(362,(k.E9=(p((p(250,k,(p(371,(V(15,(p(354,k,(V(352,k,((p(442,k,(p(227,k,(p(103,k,(p(11,k,(p(121,(V(289,(p(173,(V(409,k,(p(275,k,(p(317,(p(375,k,(p(432,((p((p(295,(V(278,k,(k.B0=(k.wE=(k.P0=function(y){this.C=y},k.u=(k.R=void 0,[]),k.F=((k.O=(k.N=void 0,void 0),k.Y=1,k.U=0,(k.Rn=[],k).C=k,c=window.performance||{},k.j=[],(k.J=0,k).T=0,k.B=0,k.S=((k.A=void 0,k.X=void 0,k).i=[],k.H=(k.P=(k.xh=false,[]),k.g=(k.G=0,25),0),k.L=(k.l=void 0,void 0),k.D=false,k.Z=8001,false),k).K=[],null),0),c).timeOrigin||(c.timing||{}).navigationStart||0,0)),V(426,k,0),k),function(y,e,K,N){V((e=v(y,(N=(K=(N=(e=u(y),u(y)),u(y)),v(y,N)),e)),K),y,e in N|0)}),163),k,function(y,e,K,N){!l(y,e,true,false)&&(e=re(y),N=e.Ck,K=e.h,y.C==y||K==y.P0&&N==y)&&(V(e.un,y,K.apply(N,e.o)),y.T=y.s())}),p)(341,k,function(y,e,K,N){if(N=y.Rn.pop()){for(K=P(y);0<K;K--)e=u(y),N[e]=y.u[e];y.u=(N[236]=y.u[236],N[307]=y.u[307],N)}else V(278,y,y.B)}),k),function(y,e){(e=v(y,u(y)),Uk)(e,y.C)}),function(y,e,K,N){(e=v(y,(N=v((K=(N=u((e=u(y),y)),u(y)),y),N),e))==N,V)(K,y,+e)})),k),function(y){xz(4,y)}),function(y,e,K,N,Q,Z){if(!l(y,e,true,true)){if("object"==(y=v((N=(Q=v((e=v((N=(e=(Q=(Z=u(y),u)(y),u(y)),u)(y),y),e),y),Q),v(y,N)),y),Z),qX)(y)){for(K in Z=[],y)Z.push(K);y=Z}for(Z=(e=0<e?e:1,K=y.length,0);Z<K;Z+=e)Q(y.slice(Z,(Z|0)+(e|0)),N)}})),p(193,k,function(y,e,K,N,Q){0!==(Q=v(y,(K=(e=v((N=v(y,(N=(Q=u((K=u(y),y)),e=u(y),u(y)),N)),y),e),v(y.C,K)),Q)),K)&&(N=Ba(e,N,y,1,K,Q),K.addEventListener(Q,N,W),V(270,y,[K,Q,N]))}),687)),k),function(y){sk(y,4)}),k),0),k),function(){}),function(y,e,K,N,Q,Z,w){for(w=(e=(K=(N=u(y),Z=eM(y),Q="",v(y,115)),K.length),0);Z--;)w=((w|0)+(eM(y)|0))%e,Q+=q[K[w]];V(N,y,Q)})),function(y,e,K){K=v((e=(K=(e=u(y),u(y)),0!=v(y,e)),y),K),e&&V(278,y,K)})),function(y,e,K,N,Q){for(K=(e=(N=u(y),eM)(y),0),Q=[];K<e;K++)Q.push(P(y));V(N,y,Q)})),function(y,e,K){(e=u((K=u(y),y)),V)(e,y,""+v(y,K))})),V)(408,k,[0,0,0]),[])),function(y,e,K,N,Q,Z,w,U,h,T,Y,J){function f(b,a){for(;e<b;)T|=P(y)<<e,e+=8;return T>>=(a=T&(e-=b,(1<<b)-1),b),a}for(K=(h=(U=(Y=(e=T=(Z=u(y),0),f(3)|0)+1,f(5)),0),[]),Q=0;Q<U;Q++)J=f(1),K.push(J),h+=J?0:1;for(Q=(N=(h=((h|0)-1).toString(2).length,[]),0);Q<U;Q++)K[Q]||(N[Q]=f(h));for(h=0;h<U;h++)K[h]&&(N[h]=u(y));for(w=[];Y--;)w.push(v(y,u(y)));p(Z,y,function(b,a,O,VB,X){for(O=(VB=(X=[],[]),0);O<U;O++){if(a=N[O],!K[O]){for(;a>=X.length;)X.push(u(b));a=X[a]}VB.push(a)}b.L=h8(b,w.slice()),b.N=h8(b,VB)})})),k),{}),k),function(y){al(y,1)}),function(y,e,K){l(y,e,true,false)||(e=u(y),K=u(y),V(K,y,function(N){return eval(N)}(Gu(v(y.C,e)))))})),499),k,function(y){sk(y,3)}),0),k),function(y,e,K,N){K=(N=P((e=u(y),y)),u(y)),V(K,y,v(y,e)>>>N)}),0),function(y,e,K,N){V((e=v(y,(N=v(y,(K=u((N=u(y),y)),N)),K)),K),y,e+N)})),function(y,e){y=(e=u(y),v)(y.C,e),y[0].removeEventListener(y[1],y[2],W)})),k),function(y,e,K,N,Q){V((K=v(y,(N=(Q=v(y,(Q=(N=(K=(e=u(y),u(y)),u(y)),u)(y),Q)),v(y,N)),K)),e),y,Ba(K,N,y,Q))}),k),function(y,e,K){V((K=v(y,(e=(K=u(y),u(y)),K)),K=qX(K),e),y,K)}),0)),S(4))),k),function(y,e,K,N,Q,Z){l(y,e,true,false)||(N=re(y.C),e=N.o,Z=N.Ck,Q=N.h,K=e.length,N=N.un,e=0==K?new Z[Q]:1==K?new Z[Q](e[0]):2==K?new Z[Q](e[0],e[1]):3==K?new Z[Q](e[0],e[1],e[2]):4==K?new Z[Q](e[0],e[1],e[2],e[3]):2(),V(N,y,e))}),function(y,e,K,N){N=u((e=u(y),y)),K=u(y),y.C==y&&(N=v(y,N),K=v(y,K),v(y,e)[N]=K,358==e&&(y.A=void 0,2==N&&(y.O=L(32,y,false),y.A=void 0)))})),function(y){al(y,4)})),[])),k),H),k),2048),k).an=0,0),0]),120),k,k),k),function(y,e,K,N){V((K=v((e=v(y,(N=u((K=u((e=u(y),y)),y)),e)),y),K),N),y,e[K])}),p(472,k,function(y,e,K,N){N=(e=u(y),u)(y),K=u(y),V(K,y,v(y,e)||v(y,N))}),[Rl])),[A,n])),k),[Il,R]),true),k,true)},J8=function(R,n){return d[R](d.prototype,{pop:n,replace:n,length:n,document:n,splice:n,parent:n,stack:n,floor:n,prototype:n,console:n,call:n,propertyIsEnumerable:n})},pX=function(R,n,k,q,c){for(q=(R=R.replace(/\\r\\n/g,"\\n"),n=0,[]),k=0;n<R.length;n++)c=R.charCodeAt(n),128>c?q[k++]=c:(2048>c?q[k++]=c>>6|192:(55296==(c&64512)&&n+1<R.length&&56320==(R.charCodeAt(n+1)&64512)?(c=65536+((c&1023)<<10)+(R.charCodeAt(++n)&1023),q[k++]=c>>18|240,q[k++]=c>>12&63|128):q[k++]=c>>12|224,q[k++]=c>>6&63|128),q[k++]=c&63|128);return q},LX=function(R,n,k,q,c,y){if(!n.R){n.J++;try{for(k=(q=(y=void 0,n).B,0);--R;)try{if((c=void 0,n).L)y=Zn(n,n.L);else{if(k=v(n,278),k>=q)break;y=(c=(V(426,n,k),u(n)),v)(n,c)}(y&&y[ue]&2048?y(n,R):M(n,0,[x,21,c]),l)(n,R,false,false)}catch(e){v(n,409)?M(n,22,e):V(409,n,e)}if(!R){if(n.Lk){n.J--,LX(338687074593,n);return}M(n,0,[x,33])}}catch(e){try{M(n,22,e)}catch(K){r(n,K)}}n.J--}},Zn=function(R,n){return(n=n.create().shift(),R.L.create()).length||R.N.create().length||(R.L=void 0,R.N=void 0),n},Dn=function(R,n,k,q){function c(){}return{invoke:(k=QB((q=void 0,R),function(y){c&&(n&&z(n),q=y,c(),c=void 0)},!!n)[0],function(y,e,K,N){function Q(){q(function(Z){z(function(){y(Z)})},K)}if(!e)return e=k(K),y&&y(e),e;q?Q():(N=c,c=function(){N(),z(Q)})})}},v=function(R,n){if(void 0===(R=R.u[n],R))throw[x,30,n];if(R.value)return R.create();return R.create(1*n*n+42*n+-40),R.prototype},D=function(R,n,k,q){for(k=(q=(R|0)-1,[]);0<=q;q--)k[(R|0)-1-(q|0)]=n>>8*q&255;return k},Uk=function(R,n){V(278,((n.Rn.push(n.u.slice()),n.u)[278]=void 0,n),R)},r=function(R,n){R.R=((R.R?R.R+"~":"E:")+n.message+":"+n.stack).slice(0,2048)},fX=function(R,n,k){return n.W(function(q){k=q},false,R),k},Ba=function(R,n,k,q,c,y){function e(){if(k.C==k){if(k.u){var K=[m,R,n,void 0,c,y,arguments];if(2==q)var N=B(false,(C(k,K),k),false);else if(1==q){var Q=!k.P.length;C(k,K),Q&&B(false,k,false)}else N=ca(k,K);return N}c&&y&&c.removeEventListener(y,e,W)}}return e},S=function(R,n){for(n=[];R--;)n.push(255*Math.random()|0);return n},ca=function(R,n,k,q,c){if(c=n[0],c==g)R.g=25,R.v(n);else if(c==F){q=n[1];try{k=R.R||R.v(n)}catch(y){r(R,y),k=R.R}q(k)}else if(c==jM)R.v(n);else if(c==A)R.v(n);else if(c==Il){try{for(k=0;k<R.j.length;k++)try{q=R.j[k],q[0][q[1]](q[2])}catch(y){}}catch(y){}(0,n[R.j=[],1])(function(y,e){R.W(y,true,e)},function(y){(C((y=!R.P.length,R),[ue]),y)&&B(false,R,true)})}else{if(c==m)return k=n[2],V(126,R,n[6]),V(15,R,k),R.v(n);c==ue?(R.K=[],R.i=[],R.u=null):c==Rl&&"loading"===H.document.readyState&&(R.F=function(y,e){function K(){e||(e=true,y())}H.document.addEventListener("DOMContentLoaded",(e=false,K),W),H.addEventListener("load",K,W)})}},al=function(R,n,k,q){G((k=u(R),q=u(R),q),R,D(n,v(R,k)))},$z=function(R,n){if((R=null,n=H.trustedTypes,!n)||!n.createPolicy)return R;try{R=n.createPolicy("bg",{createHTML:zu,createScript:zu,createScriptURL:zu})}catch(k){H.console&&H.console.error(k.message)}return R},zu=function(R){return R},M=function(R,n,k,q,c,y){if(!R.D){if((k=v(R,(n=(0==(q=((c=void 0,k&&k[0]===x)&&(c=k[2],n=k[1],k=void 0),v)(R,236),q).length&&(y=v(R,426)>>3,q.push(n,y>>8&255,y&255),void 0!=c&&q.push(c&255)),""),k&&(k.message&&(n+=k.message),k.stack&&(n+=":"+k.stack)),307)),3)<k){R.C=(c=(n=pX((k-=((n=n.slice(0,(k|0)-3),n.length)|0)+3,n)),R.C),R);try{G(421,R,D(2,n.length).concat(n),9)}finally{R.C=c}}V(307,R,k)}},H=this||self,t=function(R,n,k){k=this;try{Tu(n,R,this)}catch(q){r(this,q),n(function(c){c(k.R)})}},h8=function(R,n,k){return k=d[R.I](R.In),k[R.I]=function(){return n},k.concat=function(q){n=q},k},W={passive:true,capture:true},re=function(R,n,k,q,c,y){for(q=(c=(n=(k=u((y=R[le]||{},R)),y.un=u(R),y.o=[],R.C==R?(P(R)|0)-1:1),u(R)),0);q<n;q++)y.o.push(u(R));for(y.Ck=v(R,c);n--;)y.o[n]=v(R,y.o[n]);return y.h=v(R,k),y},z=H.requestIdleCallback?function(R){requestIdleCallback(function(){R()},{timeout:4})}:H.setImmediate?function(R){setImmediate(R)}:function(R){setTimeout(R,0)},de=function(R,n){n.push(R[0]<<24|R[1]<<16|R[2]<<8|R[3]),n.push(R[4]<<24|R[5]<<16|R[6]<<8|R[7]),n.push(R[8]<<24|R[9]<<16|R[10]<<8|R[11])},le=String.fromCharCode(105,110,116,101,103,67,104,101,99,107,66,121,112,97,115,115),x=((t.prototype.V="toString",t.prototype.Lk=false,t).prototype.Qy=void 0,{}),g=[],Il=[],jM=[],A=[],m=[],ue=(t.prototype.kh=void 0,[]),F=[],Rl=[],d=(E=((de,function(){})(S),yB,Ek,t.prototype),E.zc=function(){return Math.floor(this.G+(this.s()-this.H))},x.constructor),va=(E.s=(t.prototype.I="create",(E.dE=(E.W=function(R,n,k,q,c){if((k="array"===qX(k)?k:[k],this).R)R(this.R);else try{q=!this.P.length,c=[],C(this,[g,c,k]),C(this,[F,R,c]),n&&!q||B(true,this,n)}catch(y){r(this,y),R(this.R)}},function(R,n,k,q,c,y){for(c=q=0,y=[];q<R.length;q++)for(c+=n,k=k<<n|R[q];7<c;)c-=8,y.push(k>>c&255);return y}),(E.eN=(E.s9=function(R,n,k){return((n=(n^=n<<13,n^=n>>17,(n^n<<5)&k))||(n=1),R)^n},function(R,n,k,q,c){for(q=c=0;c<R.length;c++)q+=R.charCodeAt(c),q+=q<<10,q^=q>>6;return c=new Number((q+=q<<3,q^=q>>11,R=q+(q<<15)>>>0,R&(1<<n)-1)),c[0]=(R>>>n)%k,c}),E.FH=function(){return Math.floor(this.s())},window.performance||{}).now)?function(){return this.B0+window.performance.now()}:function(){return+new Date}),void 0),CX=((t.prototype.v=function(R,n){return n={},va=(R={},function(){return n==R?-40:9}),function(k,q,c,y,e,K,N,Q,Z,w,U,h,T,Y,J){n=(Y=n,R);try{if(h=k[0],h==A){T=k[1];try{for(Q=(y=atob(T),e=[],K=0);Q<y.length;Q++)J=y.charCodeAt(Q),255<J&&(e[K++]=J&255,J>>=8),e[K++]=J;V(358,this,(this.B=(this.i=e,this.i).length<<3,[0,0,0]))}catch(f){M(this,17,f);return}LX(8001,this)}else if(h==g)k[1].push(v(this,307),v(this,421).length,v(this,352).length,v(this,305).length),V(15,this,k[2]),this.u[349]&&Pa(this,8001,v(this,349));else{if(h==F){this.C=(Z=(U=D(2,(v(this,(K=k[2],305)).length|0)+2),this.C),this);try{w=v(this,236),0<w.length&&G(305,this,D(2,w.length).concat(w),10),G(305,this,D(1,this.Y),109),G(305,this,D(1,this[F].length)),y=0,y-=(v(this,305).length|0)+5,y+=v(this,289)&2047,q=v(this,421),4<q.length&&(y-=(q.length|0)+3),0<y&&G(305,this,D(2,y).concat(S(y)),15),4<q.length&&G(305,this,D(2,q.length).concat(q),156)}finally{this.C=Z}if(c=((Q=S(2).concat(v(this,305)),Q[1]=Q[0]^6,Q[3]=Q[1]^U[0],Q)[4]=Q[1]^U[1],this.rE(Q)))c="!"+c;else for(c="",y=0;y<Q.length;y++)N=Q[y][this.V](16),1==N.length&&(N="0"+N),c+=N;return v(this,(v((v((V(307,this,(e=c,K.shift())),this),421).length=K.shift(),this),352).length=K.shift(),305)).length=K.shift(),e}if(h==jM)Pa(this,k[2],k[1]);else if(h==m)return Pa(this,8001,k[1])}}finally{n=Y}}}(),t.prototype).rE=function(R,n,k,q){if(n=window.btoa){for(q=(k=0,"");k<R.length;k+=8192)q+=String.fromCharCode.apply(null,R.slice(k,k+8192));R=n(q).replace(/\\+/g,"-").replace(/\\//g,"_").replace(/=/g,"")}else R=void 0;return R},/./);(t.prototype.Ax=0,t.prototype).yy=0;var be,Fn=A.pop.bind((t.prototype[Il]=[0,0,1,1,0,1,1],t).prototype[g]),Gu=function(R,n){return(n=$z())&&1===R.eval(n.createScript("1"))?function(k){return n.createScript(k)}:function(k){return""+k}}(((be=J8(t.prototype.I,{get:(CX[t.prototype.V]=Fn,Fn)}),t.prototype).O9=void 0,H));40<(I=H.botguard||(H.botguard={}),I.m)||(I.m=41,I.bg=Dn,I.a=QB),I.bDL_=function(R,n,k){return k=new t(R,n),[function(q){return fX(q,k)}]};}).call(this);'));
}).call(this);
#13 JavaScript::Eval (size: 15242) - SHA256: 51f8c72e6f6f79871e25bba066a8c056e7ee569cc0f47f46268d1ba9a83b8c28
(function() {
    var p = function(R, n, k) {
            k[V(R, n, k), Rl] = 2796
        },
        nX = function(R, n) {
            return R(function(k) {
                k(n)
            }), [function() {
                return n
            }]
        },
        kz = function(R, n, k, q, c) {
            for (n = (q = (c = n[3] | 0, 0), n[2]) | 0; 14 > q; q++) c = c >>> 8 | c << 24, k = k >>> 8 | k << 24, k += R | 0, c += n | 0, k ^= n + 2298, R = R << 3 | R >>> 29, c ^= q + 2298, R ^= k, n = n << 3 | n >>> 29, n ^= c;
            return [R >>> 24 & 255, R >>> 16 & 255, R >>> 8 & 255, R >>> 0 & 255, k >>> 24 & 255, k >>> 16 & 255, k >>> 8 & 255, k >>> 0 & 255]
        },
        E, L = function(R, n, k, q, c, y, e, K, N, Q, Z, w, U, h) {
            if (y = v(n, 278), y >= n.B) throw [x, 31];
            for (c = (K = 0, q = R, Q = y, n.c0.length); 0 < q;) Z = Q % 8, N = 8 - (Z | 0), N = N < q ? N : q, U = Q >> 3, w = n.i[U], k && (e = n, e.A != Q >> 6 && (e.A = Q >> 6, h = v(e, 358), e.l = kz(e.O, [0, 0, h[1], h[2]], e.A)), w ^= n.l[U & c]), K |= (w >> 8 - (Z | 0) - (N | 0) & (1 << N) - 1) << (q | 0) - (N | 0), Q += N, q -= N;
            return V(278, n, (k = K, (y | 0) + (R | 0))), k
        },
        yB = function(R, n, k, q) {
            try {
                q = R[((n | 0) + 2) % 3], R[n] = (R[n] | 0) - (R[((n | 0) + 1) % 3] | 0) - (q | 0) ^ (1 == n ? q << k : q >>> k)
            } catch (c) {
                throw c;
            }
        },
        eM = function(R, n) {
            return n = P(R), n & 128 && (n = n & 127 | P(R) << 7), n
        },
        qX = function(R, n, k) {
            if ((n = typeof R, "object") == n)
                if (R) {
                    if (R instanceof Array) return "array";
                    if (R instanceof Object) return n;
                    if ("[object Window]" == (k = Object.prototype.toString.call(R), k)) return "object";
                    if ("[object Array]" == k || "number" == typeof R.length && "undefined" != typeof R.splice && "undefined" != typeof R.propertyIsEnumerable && !R.propertyIsEnumerable("splice")) return "array";
                    if ("[object Function]" == k || "undefined" != typeof R.call && "undefined" != typeof R.propertyIsEnumerable && !R.propertyIsEnumerable("call")) return "function"
                } else return "null";
            else if ("function" == n && "undefined" == typeof R.call) return "object";
            return n
        },
        C = function(R, n) {
            R.P.splice(0, 0, n)
        },
        G = function(R, n, k, q, c, y) {
            if (n.C == n)
                for (c = v(n, R), 421 == R ? (R = function(e, K, N, Q) {
                        if (c.mm != (Q = ((K = c.length, K) | 0) - 4 >> 3, Q)) {
                            Q = (c.mm = (N = [0, 0, y[1], y[2]], Q), (Q << 3) - 4);
                            try {
                                c.nk = kz(KX(c, Q), N, KX(c, (Q | 0) + 4))
                            } catch (Z) {
                                throw Z;
                            }
                        }
                        c.push(c.nk[K & 7] ^ e)
                    }, y = v(n, 408)) : R = function(e) {
                        c.push(e)
                    }, q && R(q & 255), n = k.length, q = 0; q < n; q++) R(k[q])
        },
        NX = function(R, n, k, q) {
            for (; R.P.length;) {
                k = (R.F = null, R).P.pop();
                try {
                    q = ca(R, k)
                } catch (c) {
                    r(R, c)
                }
                if (n && R.F) {
                    n = R.F, n(function() {
                        B(true, R, true)
                    });
                    break
                }
            }
            return q
        },
        QB = function(R, n, k, q) {
            return (q = I[R.substring(0, 3) + "_"]) ? q(R.substring(3), n, k) : nX(n, R)
        },
        sk = function(R, n, k, q, c) {
            G(((c = (k = u((c = u((q = n & 4, n &= 3, R)), R)), v(R, c)), q) && (c = pX("" + c)), n && G(k, R, D(2, c.length)), k), R, c)
        },
        l = function(R, n, k, q, c, y, e, K, N) {
            if ((R.C = (((K = (y = (N = (c = (e = 0 < (k || R.X++, R).U && R.S && R.xh && 1 >= R.J && !R.L && !R.F && (!k || 1 < R.Z - n) && 0 == document.hidden, 4 == R.X)) || e ? R.s() : R.T, N - R.T), y) >> 14, R).O && (R.O ^= K * (y << 2)), R).Y += K, K || R.C), c) || e) R.X = 0, R.T = N;
            if (!e || N - R.H < R.U - (q ? 255 : k ? 5 : 2)) return false;
            return !((V(278, (q = v(R, (R.Z = n, k ? 426 : 278)), R), R.B), R.P).push([jM, q, k ? n + 1 : n]), R.F = z, 0)
        },
        Ek = function(R, n, k) {
            if (3 == R.length) {
                for (k = 0; 3 > k; k++) n[k] += R[k];
                for (k = [(R = 0, 13), 8, 13, 12, 16, 5, 3, 10, 15]; 9 > R; R++) n[3](n, R % 3, k[R])
            }
        },
        u = function(R, n) {
            if (R.L) return Zn(R, R.N);
            return n = L(8, R, true), n & 128 && (n ^= 128, R = L(2, R, true), n = (n << 2) + (R | 0)), n
        },
        KX = function(R, n) {
            return R[n] << 24 | R[(n | 0) + 1] << 16 | R[(n | 0) + 2] << 8 | R[(n | 0) + 3]
        },
        we = function(R, n, k, q, c, y, e, K) {
            return (c = d[n.I]((k = [-2, 42, -72, -(y = va, 46), -26, -71, k, 61, (K = q & 7, 9), 2], n.MJ)), c)[n.I] = function(N) {
                e = N, K += 6 + 7 * q, K &= 7
            }, c.concat = function(N) {
                return (N = (e = (N = +(N = R % 16 + 1, k)[K + 59 & 7] * R * N - N * e - -2440 * e + (y() | 0) * N + 1 * R * R * N - 2562 * R * e - 61 * R * R * e + K + 61 * e * e, void 0), k[N]), k[(K + 69 & 7) + (q & 2)] = N, k)[K + (q & 2)] = 42, N
            }, c
        },
        V = function(R, n, k) {
            if (278 == R || 426 == R) n.u[R] ? n.u[R].concat(k) : n.u[R] = h8(n, k);
            else {
                if (n.D && 358 != R) return;
                305 == R || 421 == R || 352 == R || 236 == R || 408 == R ? n.u[R] || (n.u[R] = we(R, n, k, 54)) : n.u[R] = we(R, n, k, 113)
            }
            358 == R && (n.O = L(32, n, false), n.A = void 0)
        },
        P = function(R) {
            return R.L ? Zn(R, R.N) : L(8, R, true)
        },
        B = function(R, n, k, q, c, y) {
            if (n.P.length) {
                (n.S = !(n.S && 0(), 0), n).xh = k;
                try {
                    q = n.s(), n.H = q, n.T = q, n.X = 0, c = NX(n, k), y = n.s() - n.H, n.G += y, y < (R ? 0 : 10) || 0 >= n.g-- || (y = Math.floor(y), n.K.push(254 >= y ? y : 254))
                } finally {
                    n.S = false
                }
                return c
            }
        },
        xz = function(R, n, k, q) {
            for (k = (q = u(n), 0); 0 < R; R--) k = k << 8 | P(n);
            V(q, n, k)
        },
        I, Pa = function(R, n, k, q) {
            return v(R, (LX((q = v(R, 278), R.i && q < R.B ? (V(278, R, R.B), Uk(k, R)) : V(278, R, k), n), R), V(278, R, q), 15))
        },
        Tu = function(R, n, k, q, c) {
            for (c = (q = (k.In = (k.MJ = J8(k.I, (k.v0 = (k.NJ = be, CX), k.c0 = k[F], {get: function() {
                        return this.concat()
                    }
                })), d)[k.I](k.MJ, {
                    value: {
                        value: {}
                    }
                }), []), 0); 128 > c; c++) q[c] = String.fromCharCode(c);
            B((C((C(k, (C(k, (p(340, (V((V(305, k, [160, ((V(307, (V(327, (V(236, k, (p(59, k, (p(127, k, (p(119, (V(421, k, (V(270, k, (p(87, (p(158, (p(396, k, (p(448, k, (k.on = (p(362, (k.E9 = (p((p(250, k, (p(371, (V(15, (p(354, k, (V(352, k, ((p(442, k, (p(227, k, (p(103, k, (p(11, k, (p(121, (V(289, (p(173, (V(409, k, (p(275, k, (p(317, (p(375, k, (p(432, ((p((p(295, (V(278, k, (k.B0 = (k.wE = (k.P0 = function(y) {
                this.C = y
            }, k.u = (k.R = void 0, []), k.F = ((k.O = (k.N = void 0, void 0), k.Y = 1, k.U = 0, (k.Rn = [], k).C = k, c = window.performance || {}, k.j = [], (k.J = 0, k).T = 0, k.B = 0, k.S = ((k.A = void 0, k.X = void 0, k).i = [], k.H = (k.P = (k.xh = false, []), k.g = (k.G = 0, 25), 0), k.L = (k.l = void 0, void 0), k.D = false, k.Z = 8001, false), k).K = [], null), 0), c).timeOrigin || (c.timing || {}).navigationStart || 0, 0)), V(426, k, 0), k), function(y, e, K, N) {
                V((e = v(y, (N = (K = (N = (e = u(y), u(y)), u(y)), v(y, N)), e)), K), y, e in N | 0)
            }), 163), k, function(y, e, K, N) {
                !l(y, e, true, false) && (e = re(y), N = e.Ck, K = e.h, y.C == y || K == y.P0 && N == y) && (V(e.un, y, K.apply(N, e.o)), y.T = y.s())
            }), p)(341, k, function(y, e, K, N) {
                if (N = y.Rn.pop()) {
                    for (K = P(y); 0 < K; K--) e = u(y), N[e] = y.u[e];
                    y.u = (N[236] = y.u[236], N[307] = y.u[307], N)
                } else V(278, y, y.B)
            }), k), function(y, e) {
                (e = v(y, u(y)), Uk)(e, y.C)
            }), function(y, e, K, N) {
                (e = v(y, (N = v((K = (N = u((e = u(y), y)), u(y)), y), N), e)) == N, V)(K, y, +e)
            })), k), function(y) {
                xz(4, y)
            }), function(y, e, K, N, Q, Z) {
                if (!l(y, e, true, true)) {
                    if ("object" == (y = v((N = (Q = v((e = v((N = (e = (Q = (Z = u(y), u)(y), u(y)), u)(y), y), e), y), Q), v(y, N)), y), Z), qX)(y)) {
                        for (K in Z = [], y) Z.push(K);
                        y = Z
                    }
                    for (Z = (e = 0 < e ? e : 1, K = y.length, 0); Z < K; Z += e) Q(y.slice(Z, (Z | 0) + (e | 0)), N)
                }
            })), p(193, k, function(y, e, K, N, Q) {
                0 !== (Q = v(y, (K = (e = v((N = v(y, (N = (Q = u((K = u(y), y)), e = u(y), u(y)), N)), y), e), v(y.C, K)), Q)), K) && (N = Ba(e, N, y, 1, K, Q), K.addEventListener(Q, N, W), V(270, y, [K, Q, N]))
            }), 687)), k), function(y) {
                sk(y, 4)
            }), k), 0), k), function() {}), function(y, e, K, N, Q, Z, w) {
                for (w = (e = (K = (N = u(y), Z = eM(y), Q = "", v(y, 115)), K.length), 0); Z--;) w = ((w | 0) + (eM(y) | 0)) % e, Q += q[K[w]];
                V(N, y, Q)
            })), function(y, e, K) {
                K = v((e = (K = (e = u(y), u(y)), 0 != v(y, e)), y), K), e && V(278, y, K)
            })), function(y, e, K, N, Q) {
                for (K = (e = (N = u(y), eM)(y), 0), Q = []; K < e; K++) Q.push(P(y));
                V(N, y, Q)
            })), function(y, e, K) {
                (e = u((K = u(y), y)), V)(e, y, "" + v(y, K))
            })), V)(408, k, [0, 0, 0]), [])), function(y, e, K, N, Q, Z, w, U, h, T, Y, J) {
                function f(b, a) {
                    for (; e < b;) T |= P(y) << e, e += 8;
                    return T >>= (a = T & (e -= b, (1 << b) - 1), b), a
                }
                for (K = (h = (U = (Y = (e = T = (Z = u(y), 0), f(3) | 0) + 1, f(5)), 0), []), Q = 0; Q < U; Q++) J = f(1), K.push(J), h += J ? 0 : 1;
                for (Q = (N = (h = ((h | 0) - 1).toString(2).length, []), 0); Q < U; Q++) K[Q] || (N[Q] = f(h));
                for (h = 0; h < U; h++) K[h] && (N[h] = u(y));
                for (w = []; Y--;) w.push(v(y, u(y)));
                p(Z, y, function(b, a, O, VB, X) {
                    for (O = (VB = (X = [], []), 0); O < U; O++) {
                        if (a = N[O], !K[O]) {
                            for (; a >= X.length;) X.push(u(b));
                            a = X[a]
                        }
                        VB.push(a)
                    }
                    b.L = h8(b, w.slice()), b.N = h8(b, VB)
                })
            })), k), {}), k), function(y) {
                al(y, 1)
            }), function(y, e, K) {
                l(y, e, true, false) || (e = u(y), K = u(y), V(K, y, function(N) {
                    return eval(N)
                }(Gu(v(y.C, e)))))
            })), 499), k, function(y) {
                sk(y, 3)
            }), 0), k), function(y, e, K, N) {
                K = (N = P((e = u(y), y)), u(y)), V(K, y, v(y, e) >>> N)
            }), 0), function(y, e, K, N) {
                V((e = v(y, (N = v(y, (K = u((N = u(y), y)), N)), K)), K), y, e + N)
            })), function(y, e) {
                y = (e = u(y), v)(y.C, e), y[0].removeEventListener(y[1], y[2], W)
            })), k), function(y, e, K, N, Q) {
                V((K = v(y, (N = (Q = v(y, (Q = (N = (K = (e = u(y), u(y)), u(y)), u)(y), Q)), v(y, N)), K)), e), y, Ba(K, N, y, Q))
            }), k), function(y, e, K) {
                V((K = v(y, (e = (K = u(y), u(y)), K)), K = qX(K), e), y, K)
            }), 0)), S(4))), k), function(y, e, K, N, Q, Z) {
                l(y, e, true, false) || (N = re(y.C), e = N.o, Z = N.Ck, Q = N.h, K = e.length, N = N.un, e = 0 == K ? new Z[Q] : 1 == K ? new Z[Q](e[0]) : 2 == K ? new Z[Q](e[0], e[1]) : 3 == K ? new Z[Q](e[0], e[1], e[2]) : 4 == K ? new Z[Q](e[0], e[1], e[2], e[3]) : 2(), V(N, y, e))
            }), function(y, e, K, N) {
                N = u((e = u(y), y)), K = u(y), y.C == y && (N = v(y, N), K = v(y, K), v(y, e)[N] = K, 358 == e && (y.A = void 0, 2 == N && (y.O = L(32, y, false), y.A = void 0)))
            })), function(y) {
                al(y, 4)
            })), [])), k), H), k), 2048), k).an = 0, 0), 0]), 120), k, k), k), function(y, e, K, N) {
                V((K = v((e = v(y, (N = u((K = u((e = u(y), y)), y)), e)), y), K), N), y, e[K])
            }), p(472, k, function(y, e, K, N) {
                N = (e = u(y), u)(y), K = u(y), V(K, y, v(y, e) || v(y, N))
            }), [Rl])), [A, n])), k), [Il, R]), true), k, true)
        },
        J8 = function(R, n) {
            return d[R](d.prototype, {
                pop: n,
                replace: n,
                length: n,
                document: n,
                splice: n,
                parent: n,
                stack: n,
                floor: n,
                prototype: n,
                console: n,
                call: n,
                propertyIsEnumerable: n
            })
        },
        pX = function(R, n, k, q, c) {
            for (q = (R = R.replace(/\r\n/g, "\n"), n = 0, []), k = 0; n < R.length; n++) c = R.charCodeAt(n), 128 > c ? q[k++] = c : (2048 > c ? q[k++] = c >> 6 | 192 : (55296 == (c & 64512) && n + 1 < R.length && 56320 == (R.charCodeAt(n + 1) & 64512) ? (c = 65536 + ((c & 1023) << 10) + (R.charCodeAt(++n) & 1023), q[k++] = c >> 18 | 240, q[k++] = c >> 12 & 63 | 128) : q[k++] = c >> 12 | 224, q[k++] = c >> 6 & 63 | 128), q[k++] = c & 63 | 128);
            return q
        },
        LX = function(R, n, k, q, c, y) {
            if (!n.R) {
                n.J++;
                try {
                    for (k = (q = (y = void 0, n).B, 0); --R;) try {
                        if ((c = void 0, n).L) y = Zn(n, n.L);
                        else {
                            if (k = v(n, 278), k >= q) break;
                            y = (c = (V(426, n, k), u(n)), v)(n, c)
                        }(y && y[ue] & 2048 ? y(n, R) : M(n, 0, [x, 21, c]), l)(n, R, false, false)
                    } catch (e) {
                        v(n, 409) ? M(n, 22, e) : V(409, n, e)
                    }
                    if (!R) {
                        if (n.Lk) {
                            n.J--, LX(338687074593, n);
                            return
                        }
                        M(n, 0, [x, 33])
                    }
                } catch (e) {
                    try {
                        M(n, 22, e)
                    } catch (K) {
                        r(n, K)
                    }
                }
                n.J--
            }
        },
        Zn = function(R, n) {
            return (n = n.create().shift(), R.L.create()).length || R.N.create().length || (R.L = void 0, R.N = void 0), n
        },
        Dn = function(R, n, k, q) {
            function c() {}
            return {
                invoke: (k = QB((q = void 0, R), function(y) {
                    c && (n && z(n), q = y, c(), c = void 0)
                }, !!n)[0], function(y, e, K, N) {
                    function Q() {
                        q(function(Z) {
                            z(function() {
                                y(Z)
                            })
                        }, K)
                    }
                    if (!e) return e = k(K), y && y(e), e;
                    q ? Q() : (N = c, c = function() {
                        N(), z(Q)
                    })
                })
            }
        },
        v = function(R, n) {
            if (void 0 === (R = R.u[n], R)) throw [x, 30, n];
            if (R.value) return R.create();
            return R.create(1 * n * n + 42 * n + -40), R.prototype
        },
        D = function(R, n, k, q) {
            for (k = (q = (R | 0) - 1, []); 0 <= q; q--) k[(R | 0) - 1 - (q | 0)] = n >> 8 * q & 255;
            return k
        },
        Uk = function(R, n) {
            V(278, ((n.Rn.push(n.u.slice()), n.u)[278] = void 0, n), R)
        },
        r = function(R, n) {
            R.R = ((R.R ? R.R + "~" : "E:") + n.message + ":" + n.stack).slice(0, 2048)
        },
        fX = function(R, n, k) {
            return n.W(function(q) {
                k = q
            }, false, R), k
        },
        Ba = function(R, n, k, q, c, y) {
            function e() {
                if (k.C == k) {
                    if (k.u) {
                        var K = [m, R, n, void 0, c, y, arguments];
                        if (2 == q) var N = B(false, (C(k, K), k), false);
                        else if (1 == q) {
                            var Q = !k.P.length;
                            C(k, K), Q && B(false, k, false)
                        } else N = ca(k, K);
                        return N
                    }
                    c && y && c.removeEventListener(y, e, W)
                }
            }
            return e
        },
        S = function(R, n) {
            for (n = []; R--;) n.push(255 * Math.random() | 0);
            return n
        },
        ca = function(R, n, k, q, c) {
            if (c = n[0], c == g) R.g = 25, R.v(n);
            else if (c == F) {
                q = n[1];
                try {
                    k = R.R || R.v(n)
                } catch (y) {
                    r(R, y), k = R.R
                }
                q(k)
            } else if (c == jM) R.v(n);
            else if (c == A) R.v(n);
            else if (c == Il) {
                try {
                    for (k = 0; k < R.j.length; k++) try {
                        q = R.j[k], q[0][q[1]](q[2])
                    } catch (y) {}
                } catch (y) {}(0, n[R.j = [], 1])(function(y, e) {
                    R.W(y, true, e)
                }, function(y) {
                    (C((y = !R.P.length, R), [ue]), y) && B(false, R, true)
                })
            } else {
                if (c == m) return k = n[2], V(126, R, n[6]), V(15, R, k), R.v(n);
                c == ue ? (R.K = [], R.i = [], R.u = null) : c == Rl && "loading" === H.document.readyState && (R.F = function(y, e) {
                    function K() {
                        e || (e = true, y())
                    }
                    H.document.addEventListener("DOMContentLoaded", (e = false, K), W), H.addEventListener("load", K, W)
                })
            }
        },
        al = function(R, n, k, q) {
            G((k = u(R), q = u(R), q), R, D(n, v(R, k)))
        },
        $z = function(R, n) {
            if ((R = null, n = H.trustedTypes, !n) || !n.createPolicy) return R;
            try {
                R = n.createPolicy("bg", {
                    createHTML: zu,
                    createScript: zu,
                    createScriptURL: zu
                })
            } catch (k) {
                H.console && H.console.error(k.message)
            }
            return R
        },
        zu = function(R) {
            return R
        },
        M = function(R, n, k, q, c, y) {
            if (!R.D) {
                if ((k = v(R, (n = (0 == (q = ((c = void 0, k && k[0] === x) && (c = k[2], n = k[1], k = void 0), v)(R, 236), q).length && (y = v(R, 426) >> 3, q.push(n, y >> 8 & 255, y & 255), void 0 != c && q.push(c & 255)), ""), k && (k.message && (n += k.message), k.stack && (n += ":" + k.stack)), 307)), 3) < k) {
                    R.C = (c = (n = pX((k -= ((n = n.slice(0, (k | 0) - 3), n.length) | 0) + 3, n)), R.C), R);
                    try {
                        G(421, R, D(2, n.length).concat(n), 9)
                    } finally {
                        R.C = c
                    }
                }
                V(307, R, k)
            }
        },
        H = this || self,
        t = function(R, n, k) {
            k = this;
            try {
                Tu(n, R, this)
            } catch (q) {
                r(this, q), n(function(c) {
                    c(k.R)
                })
            }
        },
        h8 = function(R, n, k) {
            return k = d[R.I](R.In), k[R.I] = function() {
                return n
            }, k.concat = function(q) {
                n = q
            }, k
        },
        W = {
            passive: true,
            capture: true
        },
        re = function(R, n, k, q, c, y) {
            for (q = (c = (n = (k = u((y = R[le] || {}, R)), y.un = u(R), y.o = [], R.C == R ? (P(R) | 0) - 1 : 1), u(R)), 0); q < n; q++) y.o.push(u(R));
            for (y.Ck = v(R, c); n--;) y.o[n] = v(R, y.o[n]);
            return y.h = v(R, k), y
        },
        z = H.requestIdleCallback ? function(R) {
            requestIdleCallback(function() {
                R()
            }, {
                timeout: 4
            })
        } : H.setImmediate ? function(R) {
            setImmediate(R)
        } : function(R) {
            setTimeout(R, 0)
        },
        de = function(R, n) {
            n.push(R[0] << 24 | R[1] << 16 | R[2] << 8 | R[3]), n.push(R[4] << 24 | R[5] << 16 | R[6] << 8 | R[7]), n.push(R[8] << 24 | R[9] << 16 | R[10] << 8 | R[11])
        },
        le = String.fromCharCode(105, 110, 116, 101, 103, 67, 104, 101, 99, 107, 66, 121, 112, 97, 115, 115),
        x = ((t.prototype.V = "toString", t.prototype.Lk = false, t).prototype.Qy = void 0, {}),
        g = [],
        Il = [],
        jM = [],
        A = [],
        m = [],
        ue = (t.prototype.kh = void 0, []),
        F = [],
        Rl = [],
        d = (E = ((de, function() {})(S), yB, Ek, t.prototype), E.zc = function() {
            return Math.floor(this.G + (this.s() - this.H))
        }, x.constructor),
        va = (E.s = (t.prototype.I = "create", (E.dE = (E.W = function(R, n, k, q, c) {
            if ((k = "array" === qX(k) ? k : [k], this).R) R(this.R);
            else try {
                q = !this.P.length, c = [], C(this, [g, c, k]), C(this, [F, R, c]), n && !q || B(true, this, n)
            } catch (y) {
                r(this, y), R(this.R)
            }
        }, function(R, n, k, q, c, y) {
            for (c = q = 0, y = []; q < R.length; q++)
                for (c += n, k = k << n | R[q]; 7 < c;) c -= 8, y.push(k >> c & 255);
            return y
        }), (E.eN = (E.s9 = function(R, n, k) {
            return ((n = (n ^= n << 13, n ^= n >> 17, (n ^ n << 5) & k)) || (n = 1), R) ^ n
        }, function(R, n, k, q, c) {
            for (q = c = 0; c < R.length; c++) q += R.charCodeAt(c), q += q << 10, q ^= q >> 6;
            return c = new Number((q += q << 3, q ^= q >> 11, R = q + (q << 15) >>> 0, R & (1 << n) - 1)), c[0] = (R >>> n) % k, c
        }), E.FH = function() {
            return Math.floor(this.s())
        }, window.performance || {}).now) ? function() {
            return this.B0 + window.performance.now()
        } : function() {
            return +new Date
        }), void 0),
        CX = ((t.prototype.v = function(R, n) {
            return n = {}, va = (R = {}, function() {
                    return n == R ? -40 : 9
                }),
                function(k, q, c, y, e, K, N, Q, Z, w, U, h, T, Y, J) {
                    n = (Y = n, R);
                    try {
                        if (h = k[0], h == A) {
                            T = k[1];
                            try {
                                for (Q = (y = atob(T), e = [], K = 0); Q < y.length; Q++) J = y.charCodeAt(Q), 255 < J && (e[K++] = J & 255, J >>= 8), e[K++] = J;
                                V(358, this, (this.B = (this.i = e, this.i).length << 3, [0, 0, 0]))
                            } catch (f) {
                                M(this, 17, f);
                                return
                            }
                            LX(8001, this)
                        } else if (h == g) k[1].push(v(this, 307), v(this, 421).length, v(this, 352).length, v(this, 305).length), V(15, this, k[2]), this.u[349] && Pa(this, 8001, v(this, 349));
                        else {
                            if (h == F) {
                                this.C = (Z = (U = D(2, (v(this, (K = k[2], 305)).length | 0) + 2), this.C), this);
                                try {
                                    w = v(this, 236), 0 < w.length && G(305, this, D(2, w.length).concat(w), 10), G(305, this, D(1, this.Y), 109), G(305, this, D(1, this[F].length)), y = 0, y -= (v(this, 305).length | 0) + 5, y += v(this, 289) & 2047, q = v(this, 421), 4 < q.length && (y -= (q.length | 0) + 3), 0 < y && G(305, this, D(2, y).concat(S(y)), 15), 4 < q.length && G(305, this, D(2, q.length).concat(q), 156)
                                } finally {
                                    this.C = Z
                                }
                                if (c = ((Q = S(2).concat(v(this, 305)), Q[1] = Q[0] ^ 6, Q[3] = Q[1] ^ U[0], Q)[4] = Q[1] ^ U[1], this.rE(Q))) c = "!" + c;
                                else
                                    for (c = "", y = 0; y < Q.length; y++) N = Q[y][this.V](16), 1 == N.length && (N = "0" + N), c += N;
                                return v(this, (v((v((V(307, this, (e = c, K.shift())), this), 421).length = K.shift(), this), 352).length = K.shift(), 305)).length = K.shift(), e
                            }
                            if (h == jM) Pa(this, k[2], k[1]);
                            else if (h == m) return Pa(this, 8001, k[1])
                        }
                    } finally {
                        n = Y
                    }
                }
        }(), t.prototype).rE = function(R, n, k, q) {
            if (n = window.btoa) {
                for (q = (k = 0, ""); k < R.length; k += 8192) q += String.fromCharCode.apply(null, R.slice(k, k + 8192));
                R = n(q).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "")
            } else R = void 0;
            return R
        }, /./);
    (t.prototype.Ax = 0, t.prototype).yy = 0;
    var be, Fn = A.pop.bind((t.prototype[Il] = [0, 0, 1, 1, 0, 1, 1], t).prototype[g]),
        Gu = function(R, n) {
            return (n = $z()) && 1 === R.eval(n.createScript("1")) ? function(k) {
                return n.createScript(k)
            } : function(k) {
                return "" + k
            }
        }(((be = J8(t.prototype.I, {get: (CX[t.prototype.V] = Fn, Fn)
        }), t.prototype).O9 = void 0, H));
    40 < (I = H.botguard || (H.botguard = {}), I.m) || (I.m = 41, I.bg = Dn, I.a = QB), I.bDL_ = function(R, n, k) {
        return k = new t(R, n), [function(q) {
            return fX(q, k)
        }]
    };
}).call(this);
#14 JavaScript::Eval (size: 22) - SHA256: 2ed176c7f9d5b3c8ca6ccdb0e994b6ddc34944c41fc4db7451fd7a3d27fed6f1
0,
function(y) {
    xz(2, y)
}

Executed Writes (1)
#1 JavaScript::Write (size: 1115319) - SHA256: cde9919855ffeceb8c5548efc0d0c2d3108dcd176b352704dfa6507a1a0ee6eb
< !doctype HTML > < head > < meta name = "google"
content = "notranslate" > < meta http - equiv = "X-UA-Compatible"
content = "IE=edge" / > < script type = "text/javascript" > window.onerror = function g(e, t, n, o, r) {
    r && r.error && (r = r.error), r && r instanceof Error || (r = {}), r.stack = r.stack || "empty", r.message = "Bundle init error: " + e + " error.message: " + r.message, r.columnNumber = o, r.lineNumber = n, r.url = t, window.parent.__jivoOnError(r)
};
window.base_langpack = {
    "botListPickerBlock": "K15@8B5 >48= 87 20@80=B>2 >B25B0 87 :=>?>: 2 G0B5",
    "botTransferChat": "80;>3 ?5@52545= =0 >?5@0B>@0",
    "businessCopyright": "87=5A-<5AA5=465@ {0}",
    "byYandex": "G5@57 /=45:A",
    "callback_delayed_button_submit": "0:070BL 72>=>:",
    "callback_delayed_period_as_possible": " 1;8609H55 2@5<O",
    "callback_delayed_period_delimiter": "2",
    "callback_delayed_period_today": "!53>4=O",
    "callback_delayed_period_tomorrow": "02B@0",
    "callback_delayed_submit_fail": "5 C40;>AL 70:070BL 72>=>: =0 C:070==>5 2@5<O. >60;C9AB0, ?>?@>1C9B5 5I5 @07",
    "callback_delayed_submit_success": "!?0A81>!\nK ?5@572>=8< 2 C:070==>5 2@5<O",
    "callback_delayed_title": ">340 20< ?5@572>=8BL?",
    "cancel": "B<5=0",
    "captchaPlaceholder": "2548B5 B5:AB A :0@B8=:8",
    "captchaPlaceholderAgain": "2548B5 B5:AB 5I5 @07",
    "cb_loading": "03@C605BAO...",
    "chat_agent_join": "?5@0B>@ _AGENT_ ?@83;0H5= 2 480;>3",
    "chat_agent_left": "?5@0B>@ _AGENT_  2KH5; 87 480;>30",
    "chat_on_site": "'0B c",
    "cobrowseError": "H81:0 - AAK;:0 CAB0@5;0 8;8 M;5<5=B =5 =0945=",
    "continue": "@>4>;68BL",
    "conversation_with": "45B @073>2>@",
    "cwPopupPutPhone": "AB02LB5 =><5@ B5;5D>=0",
    "cwPopupTime": "5@572>=8< 20< 2 C4>1=>5 2@5<O",
    "cw_callAfter": "5@572>=8< 20< G5@57",
    "cw_callButtonText": "5@572>=8B5 <=5",
    "cw_callHeader": "1@0B=K9 72>=>:",
    "cw_call_forward": "!?0A81> 70 70:07 >1@0B=>3> 72>=:0! 0H8 A>B@C4=8:8 ?5@572>=OB 20< 2 1;8609H55 2@5<O",
    "cw_call_to": "2>=>: =0",
    "cw_code_restrict": " A>60;5=8N, <K =5 <>65< ?>72>=8BL =0 MB>B =><5@",
    "cw_connecting": "!>548=O5<...",
    "cw_enterPhonePlaceholder": "2548B5 20H B5;5D>=",
    "cw_errInfoText": ">?@>1C9B5 ?>72>=8BL 5I5 @07, 8;8 =0?8H8B5 =0< 2 G0B.",
    "cw_form_second": "A5:C=4C",
    "cw_form_secondd": "A5:C=4",
    "cw_form_seconds": "A5:C=4K",
    "cw_pickUpPhone": ">7L<8B5 B@C1:C",
    "cw_rate_limit": "K7>2 =0 C:070==K9 =><5@ =52>7<>65=",
    "cw_reason_all_busy": "A5 >?5@0B>@K 70=OBK",
    "cw_reason_is_busy": "A5 >?5@0B>@K 70=OBK",
    "cw_reason_not_picked_up": "1>=5=B =5 >B25G05B",
    "cw_reason_unavailable": "!5@28A =5 4>ABC?5=",
    "cw_repeatCall": "5@572>=8B5 <=5",
    "cw_repeatCallAgain": "5@572>=8BL 5I5 @07",
    "cw_thxForCall": "!?0A81> 20< 70 72>=>:!",
    "cw_typeInChat": "0?8A0BL 2 G0B",
    "cw_unableToConnect": "5 A<>3;8 A>548=8BLAO?",
    "cw_weCalling": "K 20< 72>=8<",
    "cw_weRecallAfter": "2548B5 =><5@ B5;5D>=0, 8 <K ?5@572>=8< 20< 70",
    "c_callDisconnected": "K7>2 7025@H5=",
    "defCallformTitle": "C6=0�?><>IL? K�?5@572>=8< G5@57 _SEC_�A5:C=4!",
    "defOfflineFormText": "4@02AB2C9B5. \n# 20A 2>7=8:;8 2>?@>AK? K A C4>2>;LAB285< >B25B8<!",
    "defOfflineFormText2": "4@02AB2C9B5. \n# 20A 2>7=8:;8 2>?@>AK? K A C4>2>;LAB285< >B25B8<!",
    "defOfflineFormText_old": "AB02LB5 A2>5 A>>1I5=85 2 MB>9 D>@<5, <K ?>;CG8< 53> =0 e-mail 8 >1O70B5;L=> >B25B8<!",
    "defOfflineWidgetLabel": "B?@02LB5 =0< A>>1I5=85",
    "defOfflineWidgetLabelMobile": "!>>1I5=85",
    "defOnlineWidgetLabel": "0?8H8B5 =0<, <K >=;09=!",
    "defOnlineWidgetLabelMobile": "'0B",
    "defRuleInvitationText": "4@02AB2C9B5! / <>3C 20< G5<-B> ?><>GL?",
    "defRuleRetaining": ">60;C9AB0, ?>4>648B5. !59G0A >?5@0B>@K 70=OBK, => A:>@> :B>-=81C4L >A2>1>48BAO 8 >B25B8B 20<!",
    "defRuleRetainingEmail": "5B 2@5<5=8 640BL >B25B? >;CG8B5 C254><;5=85 =0 ?>GBC!",
    "disconnect_msg": "5B ?>4:;NG5=8O : A5B8...",
    "downloadChatText": "!:0G0BL 8AB>@8N 480;>30",
    "enterEmailPlaceholder": "2548B5 20H email",
    "error_resend": ">B?@028BL 5I5 @07?",
    "error_send": "5 4>AB02;5=>",
    "eula_custom_agreement": "!B02O >B<5B:C, O 40N A2>5 A>3;0A85 =0 >1@01>B:C <>8E ?5@A>=0;L=KE 40==KE 2 A>>B25BAB288 A 70:>=>< 8 ?@8=8<0N CA;>28O",
    "eula_custom_title": "!>3;0A85 =0 >1@01>B:C ?5@A>=0;L=KE 40==KE",
    "eula_link": ">;L7>20B5;LA:>5 A>3;0H5=85",
    "eula_phone": "5@572>=8BL =0 =><5@",
    "file_upl_cancel": "03@C7:0 >B<5=5=0",
    "file_upl_download": "!:0G0BL",
    "file_upl_error": "H81:0 703@C7:8",
    "file_upl_error_max_size": "H81:0  D09; 4>;65= 1KBL =5 1>;LH5 _FILESIZE_",
    "file_upl_error_no_ext": "H81:0  2K15@8B5 D09; A @0AH8@5=85<",
    "file_upl_expired": "!AK;:0 CAB0@5;0",
    "introduce_in_chat": "@54AB02LB5AL 2 G0B5",
    "introduce_or": "8;8",
    "introduce_social": "81> 2>948B5 G5@57",
    "introduce_text": "@54AB02LB5AL, ?>60;C9AB0, ?>:0 >?5@0B>@K ?8HCB 20< >B25B",
    "invalid_email": "525@=K9 04@5A. >60;C9AB0, ?>?@>1C9B5 A=>20.",
    "invoiceEmail": "Email 4;O >B?@02:8 G5:0",
    "label_fb_text": "!>>1I5=85 2 Facebook",
    "label_vk_text": "!>>1I5=85 >=B0:B5",
    "lbAbcText": "Apple !>>1I5=8O",
    "lblCallMe": ">72>=8BL",
    "lblCaptcha": "2548B5 :>4 A :0@B8=:8",
    "lblCaptchaError": "525@=K9 :>4, 22548B5 5I5 @07",
    "lblConnectedToAgent": "0?8H8B5 20H5 A>>1I5=85",
    "lblDeclineFile": "B:;>=8BL",
    "lblDefaultCobrowseComment": "1@0B8B5 2=8<0=85",
    "lblEnterMessageHere": "2548B5 A>>1I5=85",
    "lblEnterMessageOrPhoneHere": "2548B5 A>>1I5=85 8;8 =><5@ B5;5D>=0 (?5@572>=8< <3=>25==>)",
    "lblEvaluateCancel": "B<5=8BL",
    "lblEvaluatePlease": "F5=8B5 :0G5AB2> >1A;C6820=8O",
    "lblEvaluateThanks": "!?0A81> 70 >F5=:C!",
    "lblHangUp": "025@H8BL A>548=5=85",
    "lblIntroduceName": "0H5 8<O",
    "lblIntroduceRequest": "@54AB02LB5AL 2 G0B5",
    "lblIntroduceRequestBefore": "@54AB02LB5AL 8 =0G=8B5 G0B!",
    "lblLeaveMessage": "AB028BL A>>1I5=85",
    "lblMessageHere": "2548B5 A>>1I5=85",
    "lblMessagesApp": "0?8H8B5 =0< 2 Messages App",
    "lblNewMessage": ">2>5 A>>1I5=85!",
    "lblOfflineMessageSend": "!>>1I5=85 >B?@02;5=>",
    "lblOperatorsOnline": "?5@0B>@K >=;09=!",
    "lblPencilHint": "?5@0B>@ =018@05B A>>1I5=85",
    "lblPwrBy": "'0B ?@54>AB02;5= <a href=\"http://www.jivosite.ru/_URL_\" target=\"_blank\"><span class=\"j1\">Jivo</span><span class=\"j2\">Site</span></a>",
    "lblReceiveFile": "@8=OBL",
    "lblReply": "B25B8BL",
    "lblSelectDep": "K15@8B5 >B45;",
    "lblSend": "B?@028BL",
    "lblSendBefore": "0G0BL 480;>3",
    "lblSendingFile": "_AGENT_ ?5@5405B 20< D09;: _FILE_",
    "lblThanks": "!?0A81>! <�",
    "lblThankYouMessage": "!?0A81> 70 20H5 A>>1I5=85! K >1O70B5;L=> A2O65<AO A 20<8 2 1;8609H55 2@5<O",
    "lblTransferred": "80;>3 ?5@540= >?5@0B>@C _AGENT_",
    "lblView": ">A<>B@5BL",
    "lblYourEmail": "0H e-mail",
    "lblYourMessage": "0H5 A>>1I5=85",
    "lblYourPhone": "0H B5;5D>=",
    "lnkCloseThisWindow": "0:@KBL",
    "maintenanceBlockedPlaceholder": "B?@02:0 A>>1I5=89 =54>ABC?=0",
    "maintenanceSystemText": "=8<0=85! K ?@>2>48< ?;0=>2K5 @01>BK =0 A5@25@0E GB>1K A45;0BL G0B ;CGH5.  1;8609H55 2@5<O >= =0G=5B @01>BC A=>20. ;03>40@8< 70 >6840=85.",
    "messageDeleted": "!>>1I5=85 C40;5=>",
    "messageEdit": ">B@540:B8@>20=>",
    "offlineAgentConnected": "?5@0B>@ ?>4:;NG8;AO : 480;>3C",
    "offlineBlockedInputPlaceholder": ">60;C9AB0, C:068B5 20H8 :>=B0:BK",
    "offlineForceOfflineMessage": ">E>65 >?5@0B>@K A59G0A =54>ABC?=K. >60;C9AB0, >AB02LB5 A2>Q A>>1I5=85 8 <K A2O65<AO A 20<8",
    "offlineIntroductionText": "#:068B5 20H8 :>=B0:BK, GB>1K <K A<>3;8 >B25B8BL 20<",
    "offlineSuccessContactsSubmit": ""
    5 ? 5@ L 20 H8 A >> 1 I5 = 8 O = 5 ?> B5@ ONBAO.B25B > ? 5@ 0 B > @ > 2 ? @845 B 2 G0B 8 ?> C : 070 == K < : >= B0 : B0 < .
    ","
    omni_sb_link ":"!0;NB ","
    onlineChat ":" = ;09 = G0B ","
    paymentsInvoice ":"!G5B ","
    paymentsPay ":"
    0 ? ;0 B8BL ","
    paymentsSuccess ":"
    CA ? 5 H => > ? ;0 G5 = ","
    powerBtnMenuTitle ":"
    0 : 20 < C4 > 1 = 55 A = 0 < 8 A2O70BLAO ? ","
    prechatText ":"
    4@ 02 AB2C9B5!","
    prechatText2 ":" = 5 = C6 = 0 ?> < > IL ","
    prechatText3 ":"
    K < > 65 B5 <= 5 ?> < > GL ? ","
    proactiveReplyTitle ":"@
    5 < O > B25B0 2 G0B5 ","
    rateFormCommentTitle ":"
    0 H : > << 5 = B0@ 89 ","
    rateFormFinishText ":"
    04 K,
    GB > 20 < ?> = @028; > AL ","
    rateFormFinishTextNegative ":"
    K AB@ 5 < 8 < AO 45;0 BL;CGH89 A5@ 28 A 4;O 20 A.0 < 5 ABL = 04 G5 < @01 > B0BL.
    ","
    rateFormFinishTitle ":"! ? 0 A81 > 70 > B7K2 ","
    rateFormText ":"
    0 A : > ;L : > 2 K C4 > 2;5 B2 > @5 = K > B25B0 < 8 > ? 5@ 0 B > @0 ? ","
    rateFormTitle ":"
    AB02LB5 > B7K2 ","
    rate_default_condition_name ":"
    chat_finished ","
    rate_default_condition_value ":null,"
    rate_default_rate_type ":"
    two ","
    reconnect_msg ":" = B5@ = 5 B - A > 548 = 5 = 85 2 > AAB0 => 2;5 => ","
    seo_copyrightTextNew ":"
    '0B ?@54>AB02;5= {0}","service_from":"!5@28A >B","social_fb":"2 Facebook","social_get_access":"5 E>B8B5 640BL? \n>;CG8B5 C254><;5=85 2 >=B0:B5!","social_get_access_fb":"5 >1O70B5;L=> 640BL =0 A09B5! K >B?@028< >B25B 2 Messenger","social_get_access_sb":"'
    B > 1 K ? @ > 4 > ;68 BL ? 5@ 5 ? 8 A : C 2 ? @8; > 65 = 88!0;NB,
    = 02548 B5 : 0 < 5@ C A < 0@ BD >= 0 = 0 QR - : > 4 ","
    social_im ":"
    0 ? 8 H8B5 = 0 < ","
    social_online_text ":" ? 5@ 0 B > @K 2 A5B8 8 A : > @ > > B25BOB ","
    social_process_in ":"@ > 4 > ;68 BL 480; > 3 ","
    social_process_in_fb ":"@ > 4 > ;68 BL 2 ","
    social_process_in_sb ":"@ > 4 > ;68 BL ? 5@ 5 ? 8 A : C 2 ","
    social_process_vk ":"@ > 4 > ;68 BL 480; > 3 _ICON_ >= B0 : B5 ","
    social_success_email ":"! ? 0 A81 > ,
    GB > > AB028;8 20 H 04@ 5 A! > 340 ? @845 B > B25B,
    > B ? @028 < 53 > = 0 _EMAIL_ 8 2 MB > B G0B.
    ","
    social_success_fb ":"
    Messenger ?> 4 : ;NG5 = ! = M A;8 2 K C945B5 A A09B0,
    B > A >> 1 I5 = 8 O ? @84 CB 2 MB > B G0B 8 2 Messenger ","
    social_success_sb ":"!0;NB ?> 4 : ;NG5 = ! = M\ n > 65 B5 ? @ > 4 > ;68 BL 2 ? @8; > 65 = 88!0;NB.5@ 5 ? 8 A : 0 A > E@ 0 = O5BAO 2 > 1 > 8E G0B0E ","
    social_success_vk ":"
    #254><;5= 8 O >= B0 : B5 2 : ;NG5 = K! = M A;8 2 K C945B5 A A09B0,
    B > A >> 1 I5 = 8 O ? @84 CB 2 MB > B G0B 8 2 >  >= B0 : B5 ","
    social_text_1 ":"
    1 KG => > B25G05 < < > < 5 = B0;L => ","
    social_text_2 ":"
    1 KG => > B25G05 < 2 B5G5 = 85 = 5 A : > ;L : 8E < 8 = CB ","
    social_text_3 ":"
    1 KG => > B25G05 < 2 B5G5 = 85 G0A0 ","
    social_text_4 ":"
    1 KG => > B25G05 < 2 B5G5 = 85 = 5 A : > ;L : 8E G0A > 2 ","
    social_text_5 ":"
    1 KG => > B25G05 < 2 B5G5 = 85 > 4 => 3 > 4 = O ","
    social_vk ":" >= B0 : B5 ","
    today ":"!53 > 4 = O ","
    webrtc_accept_text ":"@
    8 < 8 B5 72 >= > : G5@ 57 A09B 8 70409 B5;N1 > 9 2 > ? @ > A G5@ 57 < 8 : @ > D >= 8;8 30@ = 8 BC@ C.0 H0 : 0 < 5@ 0 = 5 ?> = 04 > 18 BAO.
    ","
    webrtc_call ":"
    2 >= > : ","
    webrtc_callfinished ":"
    025@ HQ = ","
    webrtc_call_end ":"
    2 >= > : 7025@ H5 = ","
    webrtc_call_inprogress ":"
    45 B 72 >= > : ","
    webrtc_choose_mic ":"
    K15@ 8 B5 < 8: @ > D >= ","
    webrtc_error ":"
    H81: 0 ?> 4: ;NG5 = 8 O ","
    webrtc_from_site ":"
    2 >= > : A A09B0 ","
    webrtc_mic ":"
    8: @ > D >= ","
    webrtc_mic_blocked ":"
    #2K, 2 20H5< 1@0C75@5 >B:;NG5= 4 > ABC ? : < 8: @ > D >= C ","
    webrtc_need_mic_access ":";O@ 073 > 2 > @0@ 07@ 5 H8B5 4 > ABC ? : < 8: @ > D >= C ","
    webrtc_not_now ":"!59 G0A = 5 < > 3 C ","
    webrtc_rejected ":"
    B:; >= 5 = ?> ;L7 > 20 B5;5 < ","
    webrtc_start_call ":"
    0 G0BL 72 >= > : ","
    webrtc_try_again ":" > ? @ > 1 > 20 BL 5 I5@ 07 ","
    webrtc_video_text_message ":" / E > GC ?> ;CG8BL 2845 > : >= AC;LB0F8N ","
    webrtc_video_text_popup ":"
    0: 070 BL 2845 > : >= AC;LB0F8N ","
    webrtc_wrong ":"
    'B>-B> ?>H;> =5 B0:","yesterday":"G5@0"};!function(){var e,t,n,a,r={66419:function(e,t,n){e.exports=n(27698)},77766:function(e,t,n){e.exports=n(8065)},54804:function(e,t,n){e.exports=n(95247)},20116:function(e,t,n){e.exports=n(11955)},62462:function(e,t,n){e.exports=n(96064)},94473:function(e,t,n){e.exports=n(61577)},78580:function(e,t,n){e.exports=n(33778)},69301:function(e,t,n){e.exports=n(73819)},2991:function(e,t,n){e.exports=n(61798)},3649:function(e,t,n){e.exports=n(82073)},47302:function(e,t,n){e.exports=n(62856)},92762:function(e,t,n){e.exports=n(2348)},25843:function(e,t,n){e.exports=n(76361)},89400:function(e,t,n){e.exports=n(62908)},59340:function(e,t,n){e.exports=n(8933)},51942:function(e,t,n){e.exports=n(63383)},26295:function(e,t,n){e.exports=n(86209)},21306:function(e,t,n){e.exports=n(53402)},34074:function(e,t,n){e.exports=n(79427)},39649:function(e,t,n){e.exports=n(62857)},14310:function(e,t,n){e.exports=n(9534)},21611:function(e,t,n){e.exports=n(96507)},86902:function(e,t,n){e.exports=n(23059)},20455:function(e,t,n){e.exports=n(47795)},93476:function(e,t,n){e.exports=n(27460)},1068:function(e,t,n){e.exports=n(61895)},36384:function(e,t,n){e.exports=n(5519)},72388:function(e,t,n){e.exports=n(21194)},65420:function(e,t,n){e.exports=n(92547)},94435:function(e,t,n){e.exports=n(73926)},39969:function(e,t,n){e.exports=n(57641)},52424:function(e,t,n){e.exports=n(72010)},53592:function(e,t,n){e.exports=n(27385)},78363:function(e,t,n){e.exports=n(81522)},19996:function(e,t,n){e.exports=n(32209)},51445:function(e,t,n){e.exports=n(14122)},95683:function(e,t,n){e.exports=n(69447)},11006:function(e,t,n){e.exports=n(56769)},95238:function(e,t,n){e.exports=n(81493)},90:function(e,t,n){e.exports=n(86672)},12088:function(e,t,n){e.exports=n(60269)},189:function(e,t,n){e.exports=n(76094)},44341:function(e,t,n){e.exports=n(73685)},58377:function(e,t,n){e.exports=n(27533)},63263:function(e,t,n){e.exports=n(84710)},24889:function(e,t,n){e.exports=n(74303)},89356:function(e,t,n){e.exports=n(93799)},79542:function(e,t,n){e.exports=n(55122)},69798:function(e,t,n){e.exports=n(29531)},13535:function(e,t,n){e.exports=n(10856)},83863:function(e,t,n){e.exports=n(31524)},51446:function(e,t,n){e.exports=n(86600)},23882:function(e,t,n){e.exports=n(9759)},34243:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a},e.exports.__esModule=!0,e.exports.default=e.exports},57726:function(e,t,n){var a=n(78363);e.exports=function(e){if(a(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},46868:function(e,t,n){var a=n(78363),r=n(34243);e.exports=function(e){if(a(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},5824:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn'
    t been initialised - super() hasn 't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},51161:function(e,t,n){var a=n(69798);function r(e,t,n,r,i,o,l){try{var u=e[o](l),s=u.value}catch(e){return void n(e)}u.done?t(s):a.resolve(s).then(r,i)}e.exports=function(e){return function(){var t=this,n=arguments;return new a((function(a,i){var o=e.apply(t,n);function l(e){r(o,a,i,l,u,"next",e)}function u(e){r(o,a,i,l,u,"throw",e)}l(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},26394:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},74003:function(e,t,n){var a=n(13535),r=n(51445),i=n(5613),o=n(8647);function l(t,n,u){return o()?(e.exports=l=a,e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=l=function(e,t,n){var a=[null];a.push.apply(a,t);var o=new(r(Function).apply(e,a));return n&&i(o,n.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),l.apply(null,arguments)}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports},69198:function(e,t,n){var a=n(44341);function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),a(e,r.key,r)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),a(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},87672:function(e,t,n){var a=n(44341);e.exports=function(e,t,n){return t in e?a(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},5872:function(e,t,n){var a=n(12088);function r(){return e.exports=r=a||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,r.apply(this,arguments)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},31474:function(e,t,n){var a=n(83863),r=n(58377),i=n(16649);function o(){return"undefined"!=typeof Reflect&&a?(e.exports=o=a,e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var a=i(e,t);if(a){var o=r(a,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},66380:function(e,t,n){var a=n(79542),r=n(24889);function i(t){return e.exports=i=a?r:function(e){return e.__proto__||r(e)},e.exports.__esModule=!0,e.exports.default=e.exports,i(t)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},51379:function(e,t,n){var a=n(189),r=n(44341),i=n(5613);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=a(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r(e,"prototype",{writable:!1}),t&&i(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},60530:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},3807:function(e,t,n){var a=n(95683);e.exports=function(e){var t;return-1!==a(t=Function.toString.call(e)).call(t,"[native code]")},e.exports.__esModule=!0,e.exports.default=e.exports},8647:function(e,t,n){var a=n(13535);e.exports=function(){if("undefined"==typeof Reflect||!a)return!1;if(a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(a(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},85400:function(e,t,n){var a=n(51446),r=n(19996),i=n(53592);e.exports=function(e){if(void 0!==a&&null!=r(e)||null!=e["@@iterator"])return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},65056:function(e,t,n){var a=n(51446),r=n(19996);e.exports=function(e,t){var n=null==e?null:void 0!==a&&r(e)||e["@@iterator"];if(null!=n){var i,o,l=[],u=!0,s=!1;try{for(n=n.call(e);!(u=(i=n.next()).done)&&(l.push(i.value),!t||l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{u||null==n.return||n.return()}finally{if(s)throw o}}return l}},e.exports.__esModule=!0,e.exports.default=e.exports},79736:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},76670:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},80122:function(e,t,n){var a=n(63263),r=n(95683),i=n(44590);e.exports=function(e,t){if(null==e)return{};var n,o,l=i(e,t);if(a){var u=a(e);for(o=0;o<u.length;o++)n=u[o],r(t).call(t,n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l},e.exports.__esModule=!0,e.exports.default=e.exports},44590:function(e,t,n){var a=n(89356),r=n(95683);e.exports=function(e,t){if(null==e)return{};var n,i,o={},l=a(e);for(i=0;i<l.length;i++)n=l[i],r(t).call(t,n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},214:function(e,t,n){var a=n(23765).default,r=n(5824);e.exports=function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},5613:function(e,t,n){var a=n(79542);function r(t,n){return e.exports=r=a||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t,n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},18777:function(e,t,n){var a=n(57726),r=n(65056),i=n(79299),o=n(79736);e.exports=function(e,t){return a(e)||r(e,t)||i(e,t)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},16649:function(e,t,n){var a=n(66380);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=a(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},59036:function(e,t,n){var a=n(46868),r=n(85400),i=n(79299),o=n(76670);e.exports=function(e){return a(e)||r(e)||i(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},23765:function(e,t,n){var a=n(51446),r=n(23882);function i(t){return e.exports=i="function"==typeof a&&"symbol"==typeof r?function(e){return typeof e}:function(e){return e&&"function"==typeof a&&e.constructor===a&&e!==a.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,i(t)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},79299:function(e,t,n){var a=n(95238),r=n(53592),i=n(34243);e.exports=function(e,t){var n;if(e){if("string"==typeof e)return i(e,t);var o=a(n=Object.prototype.toString.call(e)).call(n,8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?r(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},74803:function(e,t,n){var a=n(90),r=n(189),i=n(66380),o=n(5613),l=n(3807),u=n(74003);function s(t){var n="function"==typeof a?new a:void 0;return e.exports=s=function(e){if(null===e||!l(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return u(e,arguments,i(this).constructor)}return t.prototype=r(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},93379:function(e){var t={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,n){return"number"!=typeof n||t[e]?n:n+"px"}},24048:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(66660);t.openingParenthesis="([\"' {
        ",t.closingParenthesis=")]\
"'}", t.parenthesis = t.openingParenthesis.split("").map((function(e, n) {
    return "" + e + t.closingParenthesis.charAt(n)
})), t.htmlAttributes = ["src", "data", "href", "cite", "formaction", "icon", "manifest", "poster", "codebase", "background", "profile", "usemap", "itemtype", "action", "longdesc", "classid", "archive"], t.nonLatinAlphabetRanges = "\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC", t.TLDs = a.TLDs
}, 15176: function(e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        });
        var a = n(24048),
            r = n(37182),
            i = n(68103),
            o = n(86371),
            l = function(e) {
                for (var t = [], n = null, r = function() {
                        var r = n.index,
                            l = r + n[0].length,
                            u = n[0];
                        if ("/" === e.charAt(l) && (u += e.charAt(l), l++), a.closingParenthesis.indexOf(e.charAt(l)) > -1 && a.parenthesis.forEach((function(t) {
                                var n = t.charAt(0),
                                    a = t.charAt(1);
                                o.checkParenthesis(n, a, u, e.charAt(l)) && (u += e.charAt(l), l++)
                            })), -1 !== ['""', "''", "()"].indexOf(e.charAt(r - 1) + e.charAt(l)) && o.isInsideAttribute(e.substring(r - o.maximumAttrLength - 15, r))) return "continue";
                        if (e.substring(l, e.length).indexOf("</a>") > -1 && e.substring(0, r).indexOf("<a") > -1 && o.isInsideAnchorTag(u, e, l)) return "continue";
                        if (n[i.iidxes.isURL]) {
                            var s = (n[i.iidxes.url.path] || "") + (n[i.iidxes.url.secondPartOfPath] || "") || void 0,
                                c = n[i.iidxes.url.protocol1] || n[i.iidxes.url.protocol2] || n[i.iidxes.url.protocol3];
                            t.push({
                                start: r,
                                end: l,
                                string: u,
                                isURL: !0,
                                protocol: c,
                                port: n[i.iidxes.url.port],
                                ipv4: n[i.iidxes.url.ipv4Confirmation] ? n[i.iidxes.url.ipv4] : void 0,
                                ipv6: n[i.iidxes.url.ipv6],
                                host: n[i.iidxes.url.byProtocol] ? void 0 : (n[i.iidxes.url.protocolWithDomain] || "").substr((c || "").length),
                                confirmedByProtocol: !!n[i.iidxes.url.byProtocol],
                                path: n[i.iidxes.url.byProtocol] ? void 0 : s,
                                query: n[i.iidxes.url.query] || void 0,
                                fragment: n[i.iidxes.url.fragment] || void 0
                            })
                        } else if (n[i.iidxes.isFile]) {
                            var d = u.substr(8);
                            t.push({
                                start: r,
                                end: l,
                                string: u,
                                isFile: !0,
                                protocol: n[i.iidxes.file.protocol],
                                filename: n[i.iidxes.file.fileName],
                                filePath: d,
                                fileDirectory: d.substr(0, d.length - n[i.iidxes.file.fileName].length)
                            })
                        } else n[i.iidxes.isEmail] ? t.push({
                            start: r,
                            end: l,
                            string: u,
                            isEmail: !0,
                            local: n[i.iidxes.email.local],
                            protocol: n[i.iidxes.email.protocol],
                            host: n[i.iidxes.email.host]
                        }) : t.push({
                            start: r,
                            end: l,
                            string: u
                        })
                    }; null !== (n = i.finalRegex.exec(e));) r();
                return t
            },
            u = function(e) {
                var t = "string" == typeof e ? {
                        input: e,
                        options: void 0,
                        extensions: void 0
                    } : e,
                    n = t.input,
                    a = t.options,
                    i = t.extensions;
                if (i)
                    for (var o = 0; o < i.length; o++) {
                        var u = i[o];
                        n = n.replace(u.test, u.transform)
                    }
                var s = l(n),
                    c = "";
                for (o = 0; o < s.length; o++) c = (c || (0 === o ? n.substring(0, s[o].start) : "")) + r.transform(s[o], a) + (s[o + 1] ? n.substring(s[o].end, s[o + 1].start) : n.substring(s[o].end));
                return c || n
            };
        u.list = function(e) {
            return l(e)
        }, u.validate = {
            ip: function(e) {
                return i.ipRegex.test(e)
            },
            email: function(e) {
                return i.emailRegex.test(e)
            },
            file: function(e) {
                return i.fileRegex.test(e)
            },
            url: function(e) {
                return i.urlRegex.test(e) || i.ipRegex.test(e)
            }
        }, t.default = u
    }, 68103: function(e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        });
        var a = n(24048),
            r = "([a-z0-9]+(-+[a-z0-9]+)*\\.)+(" + a.TLDs + ")",
            i = "a-zA-Z\\d\\-._~\\!$&*+,;=:@%'\"\\[\\]()",
            o = "((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",
            l = "\\[(([a-f0-9:]+:+)+[a-f0-9]+)\\]",
            u = "(https?:|ftps?:)\\/\\/",
            s = "(((" + u + ")?(" + r + "|" + o + "|(" + u + ")(" + l + "|" + ("([a-z0-9]+(-+[a-z0-9]+)*\\.)+([a-z0-9][a-z0-9-]{0," + (Math.max.apply(this, a.TLDs.split("|").map((function(e) {
                return e.length
            }))) - 2) + "}[a-z0-9])") + "))(?!@\\w)(:(\\d{1,5}))?)|(((https?:|ftps?:)\\/\\/)\\S+))",
            c = s + "((((\\/(([" + i + "]+(\\/[" + i + a.nonLatinAlphabetRanges + "]*)*))?)?)((\\?([" + i + "\\/?]*))?)((\\#([" + i + "\\/?]*))?))?\\b((([" + i + "\\/" + a.nonLatinAlphabetRanges + "][a-zA-Z\\d\\-_~+=\\/" + a.nonLatinAlphabetRanges + "]+)?))+)";
        t.email = "\\b(mailto:)?([a-z0-9!#$%&'*+=?^_`{|}~-]+(\\.[a-z0-9!#$%&'*+=?^_`{|}~-]+)*)@(" + r + "|" + o + ")\\b", t.url = "(" + c + ")|(\\b" + s + "(((\\/(([a-zA-Z\\d\\-._~\\!$&*+,;=:@%'\"\\[\\]()]+(\\/[a-zA-Z\\d\\-._~\\!$&*+,;=:@%'\"\\[\\]()]*)*))?)?)((\\?([a-zA-Z\\d\\-._~\\!$&*+,;=:@%'\"\\[\\]()\\/?]*))?)((\\#([a-zA-Z\\d\\-._~\\!$&*+,;=:@%'\"\\[\\]()\\/?]*))?))?\\b(([\\/]?))+)", t.file = "(file:\\/\\/\\/)([a-z]+:(\\/|\\\\)+)?([\\w.]+([\\/\\\\]?)+)+", t.final = "(" + t.url + ")|(" + t.email + ")|(" + t.file + ")", t.finalRegex = new RegExp(t.final, "gi"), t.ipRegex = new RegExp("^(" + o + "|" + l + ")$", "i"), t.emailRegex = new RegExp("^(" + t.email + ")$", "i"), t.fileRegex = new RegExp("^(" + t.file + ")$", "i"), t.urlRegex = new RegExp("^(" + t.url + ")$", "i");
        var d = {
            isURL: 0,
            isEmail: 0,
            isFile: 0,
            file: {
                fileName: 0,
                protocol: 0
            },
            email: {
                protocol: 0,
                local: 0,
                host: 0
            },
            url: {
                ipv4: 0,
                ipv6: 0,
                ipv4Confirmation: 0,
                byProtocol: 0,
                port: 0,
                protocol1: 0,
                protocol2: 0,
                protocol3: 0,
                protocolWithDomain: 0,
                path: 0,
                secondPartOfPath: 0,
                query: 0,
                fragment: 0
            }
        };
        t.iidxes = d;
        for (var f = ["file:///some/file/path/filename.pdf", "mailto:e+_mail.me@sub.domain.com", "http://sub.domain.co.uk:3000/p/a/t/h_(asd)/h?q=abc123#dfdf", "http://www.91(J.com", "http://127.0.0.1:3000/p/a/t_(asd)/h?q=abc123#dfdf", "http://[2a00:1450:4025:401::67]/k/something", "a.org/abc/�_��"].join(" "), p = null, h = 0; null !== (p = t.finalRegex.exec(f));) 0 === h && (d.isFile = p.lastIndexOf(p[0]), d.file.fileName = p.indexOf("filename.pdf"), d.file.protocol = p.indexOf("file:///")), 1 === h && (d.isEmail = p.lastIndexOf(p[0]), d.email.protocol = p.indexOf("mailto:"), d.email.local = p.indexOf("e+_mail.me"), d.email.host = p.indexOf("sub.domain.com")), 2 === h && (d.isURL = p.lastIndexOf(p[0]), d.url.protocol1 = p.indexOf("http://"), d.url.protocolWithDomain = p.indexOf("http://sub.domain.co.uk:3000"), d.url.port = p.indexOf("3000"), d.url.path = p.indexOf("/p/a/t/h_(asd)/h"), d.url.query = p.indexOf("q=abc123"), d.url.fragment = p.indexOf("dfdf")), 3 === h && (d.url.byProtocol = p.lastIndexOf("http://www.91(J.com"), d.url.protocol2 = p.lastIndexOf("http://")), 4 === h && (d.url.ipv4 = p.indexOf("127.0.0.1"), d.url.ipv4Confirmation = p.indexOf("0.")), 5 === h && (d.url.ipv6 = p.indexOf("2a00:1450:4025:401::67"), d.url.protocol3 = p.lastIndexOf("http://")), 6 === h && (d.url.secondPartOfPath = p.indexOf("��")), h++
    }, 66660: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.TLDs = "(AAA|AARP|ABARTH|ABB|ABBOTT|ABBVIE|ABC|ABLE|ABOGADO|ABUDHABI|AC|ACADEMY|ACCENTURE|ACCOUNTANT|ACCOUNTANTS|ACO|ACTOR|AD|ADAC|ADS|ADULT|AE|AEG|AERO|AETNA|AF|AFAMILYCOMPANY|AFL|AFRICA|AG|AGAKHAN|AGENCY|AI|AIG|AIGO|AIRBUS|AIRFORCE|AIRTEL|AKDN|AL|ALFAROMEO|ALIBABA|ALIPAY|ALLFINANZ|ALLSTATE|ALLY|ALSACE|ALSTOM|AM|AMERICANEXPRESS|AMERICANFAMILY|AMEX|AMFAM|AMICA|AMSTERDAM|ANALYTICS|ANDROID|ANQUAN|ANZ|AO|AOL|APARTMENTS|APP|APPLE|AQ|AQUARELLE|AR|ARAB|ARAMCO|ARCHI|ARMY|ARPA|ART|ARTE|AS|ASDA|ASIA|ASSOCIATES|AT|ATHLETA|ATTORNEY|AU|AUCTION|AUDI|AUDIBLE|AUDIO|AUSPOST|AUTHOR|AUTO|AUTOS|AVIANCA|AW|AWS|AX|AXA|AZ|AZURE|BA|BABY|BAIDU|BANAMEX|BANANAREPUBLIC|BAND|BANK|BAR|BARCELONA|BARCLAYCARD|BARCLAYS|BAREFOOT|BARGAINS|BASEBALL|BASKETBALL|BAUHAUS|BAYERN|BB|BBC|BBT|BBVA|BCG|BCN|BD|BE|BEATS|BEAUTY|BEER|BENTLEY|BERLIN|BEST|BESTBUY|BET|BF|BG|BH|BHARTI|BI|BIBLE|BID|BIKE|BING|BINGO|BIO|BIZ|BJ|BLACK|BLACKFRIDAY|BLOCKBUSTER|BLOG|BLOOMBERG|BLUE|BM|BMS|BMW|BN|BNPPARIBAS|BO|BOATS|BOEHRINGER|BOFA|BOM|BOND|BOO|BOOK|BOOKING|BOSCH|BOSTIK|BOSTON|BOT|BOUTIQUE|BOX|BR|BRADESCO|BRIDGESTONE|BROADWAY|BROKER|BROTHER|BRUSSELS|BS|BT|BUDAPEST|BUGATTI|BUILD|BUILDERS|BUSINESS|BUY|BUZZ|BV|BW|BY|BZ|BZH|CA|CAB|CAFE|CAL|CALL|CALVINKLEIN|CAM|CAMERA|CAMP|CANCERRESEARCH|CANON|CAPETOWN|CAPITAL|CAPITALONE|CAR|CARAVAN|CARDS|CARE|CAREER|CAREERS|CARS|CASA|CASE|CASEIH|CASH|CASINO|CAT|CATERING|CATHOLIC|CBA|CBN|CBRE|CBS|CC|CD|CEB|CENTER|CEO|CERN|CF|CFA|CFD|CG|CH|CHANEL|CHANNEL|CHARITY|CHASE|CHAT|CHEAP|CHINTAI|CHRISTMAS|CHROME|CHURCH|CI|CIPRIANI|CIRCLE|CISCO|CITADEL|CITI|CITIC|CITY|CITYEATS|CK|CL|CLAIMS|CLEANING|CLICK|CLINIC|CLINIQUE|CLOTHING|CLOUD|CLUB|CLUBMED|CM|CN|CO|COACH|CODES|COFFEE|COLLEGE|COLOGNE|COM|COMCAST|COMMBANK|COMMUNITY|COMPANY|COMPARE|COMPUTER|COMSEC|CONDOS|CONSTRUCTION|CONSULTING|CONTACT|CONTRACTORS|COOKING|COOKINGCHANNEL|COOL|COOP|CORSICA|COUNTRY|COUPON|COUPONS|COURSES|CPA|CR|CREDIT|CREDITCARD|CREDITUNION|CRICKET|CROWN|CRS|CRUISE|CRUISES|CSC|CU|CUISINELLA|CV|CW|CX|CY|CYMRU|CYOU|CZ|DABUR|DAD|DANCE|DATA|DATE|DATING|DATSUN|DAY|DCLK|DDS|DE|DEAL|DEALER|DEALS|DEGREE|DELIVERY|DELL|DELOITTE|DELTA|DEMOCRAT|DENTAL|DENTIST|DESI|DESIGN|DEV|DHL|DIAMONDS|DIET|DIGITAL|DIRECT|DIRECTORY|DISCOUNT|DISCOVER|DISH|DIY|DJ|DK|DM|DNP|DO|DOCS|DOCTOR|DOG|DOMAINS|DOT|DOWNLOAD|DRIVE|DTV|DUBAI|DUCK|DUNLOP|DUPONT|DURBAN|DVAG|DVR|DZ|EARTH|EAT|EC|ECO|EDEKA|EDU|EDUCATION|EE|EG|EMAIL|EMERCK|ENERGY|ENGINEER|ENGINEERING|ENTERPRISES|EPSON|EQUIPMENT|ER|ERICSSON|ERNI|ES|ESQ|ESTATE|ESURANCE|ET|ETISALAT|EU|EUROVISION|EUS|EVENTS|EXCHANGE|EXPERT|EXPOSED|EXPRESS|EXTRASPACE|FAGE|FAIL|FAIRWINDS|FAITH|FAMILY|FAN|FANS|FARM|FARMERS|FASHION|FAST|FEDEX|FEEDBACK|FERRARI|FERRERO|FI|FIAT|FIDELITY|FIDO|FILM|FINAL|FINANCE|FINANCIAL|FIRE|FIRESTONE|FIRMDALE|FISH|FISHING|FIT|FITNESS|FJ|FK|FLICKR|FLIGHTS|FLIR|FLORIST|FLOWERS|FLY|FM|FO|FOO|FOOD|FOODNETWORK|FOOTBALL|FORD|FOREX|FORSALE|FORUM|FOUNDATION|FOX|FR|FREE|FRESENIUS|FRL|FROGANS|FRONTDOOR|FRONTIER|FTR|FUJITSU|FUJIXEROX|FUN|FUND|FURNITURE|FUTBOL|FYI|GA|GAL|GALLERY|GALLO|GALLUP|GAME|GAMES|GAP|GARDEN|GAY|GB|GBIZ|GD|GDN|GE|GEA|GENT|GENTING|GEORGE|GF|GG|GGEE|GH|GI|GIFT|GIFTS|GIVES|GIVING|GL|GLADE|GLASS|GLE|GLOBAL|GLOBO|GM|GMAIL|GMBH|GMO|GMX|GN|GODADDY|GOLD|GOLDPOINT|GOLF|GOO|GOODYEAR|GOOG|GOOGLE|GOP|GOT|GOV|GP|GQ|GR|GRAINGER|GRAPHICS|GRATIS|GREEN|GRIPE|GROCERY|GROUP|GS|GT|GU|GUARDIAN|GUCCI|GUGE|GUIDE|GUITARS|GURU|GW|GY|HAIR|HAMBURG|HANGOUT|HAUS|HBO|HDFC|HDFCBANK|HEALTH|HEALTHCARE|HELP|HELSINKI|HERE|HERMES|HGTV|HIPHOP|HISAMITSU|HITACHI|HIV|HK|HKT|HM|HN|HOCKEY|HOLDINGS|HOLIDAY|HOMEDEPOT|HOMEGOODS|HOMES|HOMESENSE|HONDA|HORSE|HOSPITAL|HOST|HOSTING|HOT|HOTELES|HOTELS|HOTMAIL|HOUSE|HOW|HR|HSBC|HT|HU|HUGHES|HYATT|HYUNDAI|IBM|ICBC|ICE|ICU|ID|IE|IEEE|IFM|IKANO|IL|IM|IMAMAT|IMDB|IMMO|IMMOBILIEN|IN|INC|INDUSTRIES|INFINITI|INFO|ING|INK|INSTITUTE|INSURANCE|INSURE|INT|INTEL|INTERNATIONAL|INTUIT|INVESTMENTS|IO|IPIRANGA|IQ|IR|IRISH|IS|ISMAILI|IST|ISTANBUL|IT|ITAU|ITV|IVECO|JAGUAR|JAVA|JCB|JCP|JE|JEEP|JETZT|JEWELRY|JIO|JLL|JM|JMP|JNJ|JO|JOBS|JOBURG|JOT|JOY|JP|JPMORGAN|JPRS|JUEGOS|JUNIPER|KAUFEN|KDDI|KE|KERRYHOTELS|KERRYLOGISTICS|KERRYPROPERTIES|KFH|KG|KH|KI|KIA|KIM|KINDER|KINDLE|KITCHEN|KIWI|KM|KN|KOELN|KOMATSU|KOSHER|KP|KPMG|KPN|KR|KRD|KRED|KUOKGROUP|KW|KY|KYOTO|KZ|LA|LACAIXA|LAMBORGHINI|LAMER|LANCASTER|LANCIA|LAND|LANDROVER|LANXESS|LASALLE|LAT|LATINO|LATROBE|LAW|LAWYER|LB|LC|LDS|LEASE|LECLERC|LEFRAK|LEGAL|LEGO|LEXUS|LGBT|LI|LIDL|LIFE|LIFEINSURANCE|LIFESTYLE|LIGHTING|LIKE|LILLY|LIMITED|LIMO|LINCOLN|LINDE|LINK|LIPSY|LIVE|LIVING|LIXIL|LK|LLC|LLP|LOAN|LOANS|LOCKER|LOCUS|LOFT|LOL|LONDON|LOTTE|LOTTO|LOVE|LPL|LPLFINANCIAL|LR|LS|LT|LTD|LTDA|LU|LUNDBECK|LUPIN|LUXE|LUXURY|LV|LY|MA|MACYS|MADRID|MAIF|MAISON|MAKEUP|MAN|MANAGEMENT|MANGO|MAP|MARKET|MARKETING|MARKETS|MARRIOTT|MARSHALLS|MASERATI|MATTEL|MBA|MC|MCKINSEY|MD|ME|MED|MEDIA|MEET|MELBOURNE|MEME|MEMORIAL|MEN|MENU|MERCKMSD|METLIFE|MG|MH|MIAMI|MICROSOFT|MIL|MINI|MINT|MIT|MITSUBISHI|MK|ML|MLB|MLS|MM|MMA|MN|MO|MOBI|MOBILE|MODA|MOE|MOI|MOM|MONASH|MONEY|MONSTER|MORMON|MORTGAGE|MOSCOW|MOTO|MOTORCYCLES|MOV|MOVIE|MP|MQ|MR|MS|MSD|MT|MTN|MTR|MU|MUSEUM|MUTUAL|MV|MW|MX|MY|MZ|NA|NAB|NAGOYA|NAME|NATIONWIDE|NATURA|NAVY|NBA|NC|NE|NEC|NET|NETBANK|NETFLIX|NETWORK|NEUSTAR|NEW|NEWHOLLAND|NEWS|NEXT|NEXTDIRECT|NEXUS|NF|NFL|NG|NGO|NHK|NI|NICO|NIKE|NIKON|NINJA|NISSAN|NISSAY|NL|NO|NOKIA|NORTHWESTERNMUTUAL|NORTON|NOW|NOWRUZ|NOWTV|NP|NR|NRA|NRW|NTT|NU|NYC|NZ|OBI|OBSERVER|OFF|OFFICE|OKINAWA|OLAYAN|OLAYANGROUP|OLDNAVY|OLLO|OM|OMEGA|ONE|ONG|ONL|ONLINE|ONYOURSIDE|OOO|OPEN|ORACLE|ORANGE|ORG|ORGANIC|ORIGINS|OSAKA|OTSUKA|OTT|OVH|PA|PAGE|PANASONIC|PARIS|PARS|PARTNERS|PARTS|PARTY|PASSAGENS|PAY|PCCW|PE|PET|PF|PFIZER|PG|PH|PHARMACY|PHD|PHILIPS|PHONE|PHOTO|PHOTOGRAPHY|PHOTOS|PHYSIO|PICS|PICTET|PICTURES|PID|PIN|PING|PINK|PIONEER|PIZZA|PK|PL|PLACE|PLAY|PLAYSTATION|PLUMBING|PLUS|PM|PN|PNC|POHL|POKER|POLITIE|PORN|POST|PR|PRAMERICA|PRAXI|PRESS|PRIME|PRO|PROD|PRODUCTIONS|PROF|PROGRESSIVE|PROMO|PROPERTIES|PROPERTY|PROTECTION|PRU|PRUDENTIAL|PS|PT|PUB|PW|PWC|PY|QA|QPON|QUEBEC|QUEST|QVC|RACING|RADIO|RAID|RE|READ|REALESTATE|REALTOR|REALTY|RECIPES|RED|REDSTONE|REDUMBRELLA|REHAB|REISE|REISEN|REIT|RELIANCE|REN|RENT|RENTALS|REPAIR|REPORT|REPUBLICAN|REST|RESTAURANT|REVIEW|REVIEWS|REXROTH|RICH|RICHARDLI|RICOH|RIGHTATHOME|RIL|RIO|RIP|RMIT|RO|ROCHER|ROCKS|RODEO|ROGERS|ROOM|RS|RSVP|RU|RUGBY|RUHR|RUN|RW|RWE|RYUKYU|SA|SAARLAND|SAFE|SAFETY|SAKURA|SALE|SALON|SAMSCLUB|SAMSUNG|SANDVIK|SANDVIKCOROMANT|SANOFI|SAP|SARL|SAS|SAVE|SAXO|SB|SBI|SBS|SC|SCA|SCB|SCHAEFFLER|SCHMIDT|SCHOLARSHIPS|SCHOOL|SCHULE|SCHWARZ|SCIENCE|SCJOHNSON|SCOR|SCOT|SD|SE|SEARCH|SEAT|SECURE|SECURITY|SEEK|SELECT|SENER|SERVICES|SES|SEVEN|SEW|SEX|SEXY|SFR|SG|SH|SHANGRILA|SHARP|SHAW|SHELL|SHIA|SHIKSHA|SHOES|SHOP|SHOPPING|SHOUJI|SHOW|SHOWTIME|SHRIRAM|SI|SILK|SINA|SINGLES|SITE|SJ|SK|SKI|SKIN|SKY|SKYPE|SL|SLING|SM|SMART|SMILE|SN|SNCF|SO|SOCCER|SOCIAL|SOFTBANK|SOFTWARE|SOHU|SOLAR|SOLUTIONS|SONG|SONY|SOY|SPACE|SPORT|SPOT|SPREADBETTING|SR|SRL|SS|ST|STADA|STAPLES|STAR|STATEBANK|STATEFARM|STC|STCGROUP|STOCKHOLM|STORAGE|STORE|STREAM|STUDIO|STUDY|STYLE|SU|SUCKS|SUPPLIES|SUPPLY|SUPPORT|SURF|SURGERY|SUZUKI|SV|SWATCH|SWIFTCOVER|SWISS|SX|SY|SYDNEY|SYMANTEC|SYSTEMS|SZ|TAB|TAIPEI|TALK|TAOBAO|TARGET|TATAMOTORS|TATAR|TATTOO|TAX|TAXI|TC|TCI|TD|TDK|TEAM|TECH|TECHNOLOGY|TEL|TEMASEK|TENNIS|TEVA|TF|TG|TH|THD|THEATER|THEATRE|TIAA|TICKETS|TIENDA|TIFFANY|TIPS|TIRES|TIROL|TJ|TJMAXX|TJX|TK|TKMAXX|TL|TM|TMALL|TN|TO|TODAY|TOKYO|TOOLS|TOP|TORAY|TOSHIBA|TOTAL|TOURS|TOWN|TOYOTA|TOYS|TR|TRADE|TRADING|TRAINING|TRAVEL|TRAVELCHANNEL|TRAVELERS|TRAVELERSINSURANCE|TRUST|TRV|TT|TUBE|TUI|TUNES|TUSHU|TV|TVS|TW|TZ|UA|UBANK|UBS|UG|UK|UNICOM|UNIVERSITY|UNO|UOL|UPS|US|UY|UZ|VA|VACATIONS|VANA|VANGUARD|VC|VE|VEGAS|VENTURES|VERISIGN|VERSICHERUNG|VET|VG|VI|VIAJES|VIDEO|VIG|VIKING|VILLAS|VIN|VIP|VIRGIN|VISA|VISION|VIVA|VIVO|VLAANDEREN|VN|VODKA|VOLKSWAGEN|VOLVO|VOTE|VOTING|VOTO|VOYAGE|VU|VUELOS|WALES|WALMART|WALTER|WANG|WANGGOU|WATCH|WATCHES|WEATHER|WEATHERCHANNEL|WEBCAM|WEBER|WEBSITE|WED|WEDDING|WEIBO|WEIR|WF|WHOSWHO|WIEN|WIKI|WILLIAMHILL|WIN|WINDOWS|WINE|WINNERS|WME|WOLTERSKLUWER|WOODSIDE|WORK|WORKS|WORLD|WOW|WS|WTC|WTF|XBOX|XEROX|XFINITY|XIHUAN|XIN|XN--11B4C3D|XN--1CK2E1B|XN--1QQW23A|XN--2SCRJ9C|XN--30RR7Y|XN--3BST00M|XN--3DS443G|XN--3E0B707E|XN--3HCRJ9C|XN--3OQ18VL8PN36A|XN--3PXU8K|XN--42C2D9A|XN--45BR5CYL|XN--45BRJ9C|XN--45Q11C|XN--4GBRIM|XN--54B7FTA0CC|XN--55QW42G|XN--55QX5D|XN--5SU34J936BGSG|XN--5TZM5G|XN--6FRZ82G|XN--6QQ986B3XL|XN--80ADXHKS|XN--80AO21A|XN--80AQECDR1A|XN--80ASEHDB|XN--80ASWG|XN--8Y0A063A|XN--90A3AC|XN--90AE|XN--90AIS|XN--9DBQ2A|XN--9ET52U|XN--9KRT00A|XN--B4W605FERD|XN--BCK1B9A5DRE4C|XN--C1AVG|XN--C2BR7G|XN--CCK2B3B|XN--CG4BKI|XN--CLCHC0EA0B2G2A9GCD|XN--CZR694B|XN--CZRS0T|XN--CZRU2D|XN--D1ACJ3B|XN--D1ALF|XN--E1A4C|XN--ECKVDTC9D|XN--EFVY88H|XN--FCT429K|XN--FHBEI|XN--FIQ228C5HS|XN--FIQ64B|XN--FIQS8S|XN--FIQZ9S|XN--FJQ720A|XN--FLW351E|XN--FPCRJ9C3D|XN--FZC2C9E2C|XN--FZYS8D69UVGM|XN--G2XX48C|XN--GCKR3F0F|XN--GECRJ9C|XN--GK3AT1E|XN--H2BREG3EVE|XN--H2BRJ9C|XN--H2BRJ9C8C|XN--HXT814E|XN--I1B6B1A6A2E|XN--IMR513N|XN--IO0A7I|XN--J1AEF|XN--J1AMH|XN--J6W193G|XN--JLQ61U9W7B|XN--JVR189M|XN--KCRX77D1X4A|XN--KPRW13D|XN--KPRY57D|XN--KPU716F|XN--KPUT3I|XN--L1ACC|XN--LGBBAT1AD8J|XN--MGB9AWBF|XN--MGBA3A3EJT|XN--MGBA3A4F16A|XN--MGBA7C0BBN0A|XN--MGBAAKC7DVF|XN--MGBAAM7A8H|XN--MGBAB2BD|XN--MGBAH1A3HJKRD|XN--MGBAI9AZGQP6J|XN--MGBAYH7GPA|XN--MGBBH1A|XN--MGBBH1A71E|XN--MGBC0A9AZCG|XN--MGBCA7DZDO|XN--MGBCPQ6GPA1A|XN--MGBERP4A5D4AR|XN--MGBGU82A|XN--MGBI4ECEXP|XN--MGBPL2FH|XN--MGBT3DHD|XN--MGBTX2B|XN--MGBX4CD0AB|XN--MIX891F|XN--MK1BU44C|XN--MXTQ1M|XN--NGBC5AZD|XN--NGBE9E0A|XN--NGBRX|XN--NODE|XN--NQV7F|XN--NQV7FS00EMA|XN--NYQY26A|XN--O3CW4H|XN--OGBPF8FL|XN--OTU796D|XN--P1ACF|XN--P1AI|XN--PBT977C|XN--PGBS0DH|XN--PSSY2U|XN--Q7CE6A|XN--Q9JYB4C|XN--QCKA1PMC|XN--QXA6A|XN--QXAM|XN--RHQV96G|XN--ROVU88B|XN--RVC1E0AM3E|XN--S9BRJ9C|XN--SES554G|XN--T60B56A|XN--TCKWE|XN--TIQ49XQYJ|XN--UNUP4Y|XN--VERMGENSBERATER-CTB|XN--VERMGENSBERATUNG-PWB|XN--VHQUV|XN--VUQ861B|XN--W4R85EL8FHU5DNRA|XN--W4RS40L|XN--WGBH1C|XN--WGBL6A|XN--XHQ521B|XN--XKC2AL3HYE2A|XN--XKC2DL3A5EE0H|XN--Y9A3AQ|XN--YFRO4I67O|XN--YGBI2AMMX|XN--ZFR164B|XXX|XYZ|YACHTS|YAHOO|YAMAXUN|YANDEX|YE|YODOBASHI|YOGA|YOKOHAMA|YOU|YOUTUBE|YT|YUN|ZA|ZAPPOS|ZARA|ZERO|ZIP|ZM|ZONE|ZUERICH|ZW|TEST)"
    }, 37182: function(e, t) {
        "use strict";

        function n(e, t, n) {
            return "function" == typeof n ? n(e, t) : n
        }
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.transform = function(e, t) {
            var a = "",
                r = 1 / 0,
                i = {},
                o = !1;
            if (t && t.specialTransform)
                for (var l = 0; l < t.specialTransform.length; l++) {
                    var u = t.specialTransform[l];
                    if (u.test.test(e.string)) return u.transform(e.string, e)
                }
            return t && t.exclude && n(e.string, e, t.exclude) ? e.string : (t && t.protocol && (a = n(e.string, e, t.protocol)), e.protocol ? a = "" : a || (a = e.isEmail ? "mailto:" : e.isFile ? "file:///" : "http://"), t && t.truncate && (r = n(e.string, e, t.truncate)), t && t.middleTruncation && (o = n(e.string, e, t.middleTruncation)), t && t.attributes && (i = n(e.string, e, t.attributes)), "<a " + Object.keys(i).map((function(e) {
                return !0 === i[e] ? e : e + '="' + i[e] + '" '
            })).join(" ") + 'href="' + a + e.string + '">' + (e.string.length > r ? o ? e.string.substring(0, Math.floor(r / 2)) + "&" + e.string.substring(e.string.length - Math.ceil(r / 2), e.string.length) : e.string.substring(0, r) + "&" : e.string) + "</a>")
        }
    }, 86371: function(e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        });
        var a = n(24048);
        t.checkParenthesis = function(e, t, n, a) {
            return a === t && (n.split(e).length - n.split(t).length == 1 || e === t && n.split(e).length % 2 == 0 || void 0)
        }, t.maximumAttrLength = a.htmlAttributes.sort((function(e, t) {
            return t.length - e.length
        }))[0].length, t.isInsideAttribute = function(e) {
            return /\s[a-z0-9-]+=('|")$/i.test(e) || /: ?url\(('|")?$/i.test(e)
        }, t.isInsideAnchorTag = function(e, t, n) {
            for (var a = e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"), r = new RegExp("(?=(<a))(?!([\\s\\S]*)(<\\/a>)(" + a + "))[\\s\\S]*?(" + a + ")(?!\"|')", "gi"), i = null; null !== (i = r.exec(t));) {
                if (i.index + i[0].length === n) return !0
            }
            return !1
        }
    }, 54720: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var i = r(n(3649)),
            o = r(n(23765)),
            l = r(n(26394)),
            u = r(n(69198)),
            s = r(n(51379)),
            c = r(n(214)),
            d = r(n(66380)),
            f = r(n(98661)),
            p = n(9393);

        function h(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, d.default)(e);
                if (t) {
                    var i = (0, d.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, c.default)(this, n)
            }
        }
        var v = r(n(4855)).default.name("BaseComponent"),
            g = n(89766).EventEmitter,
            m = function(e) {
                (0, s.default)(n, e);
                var t = h(n);

                function n(e) {
                    var a;
                    return (0, l.default)(this, n), (a = t.call(this, e)).listeners = [], a.emitter = new g, a
                }
                return (0, u.default)(n, [{
                    key: "subscribe",
                    value: function(e, t) {
                        return this.emitter.addListener(e, t)
                    }
                }, {
                    key: "trigger",
                    value: function(e, t) {
                        this.emitter.emit(e, t)
                    }
                }, {
                    key: "delegate",
                    value: function(e, t) {
                        return function(n) {
                            for (var a = n.target; a !== n.currentTarget;) {
                                var r = a.getAttribute("dgName");
                                if (r && r === e) return n.delegateTarget = a, t(n);
                                a = a.parentNode
                            }
                        }
                    }
                }, {
                    key: "on",
                    value: function() {
                        var e, t = (0, i.default)(Array.prototype).call(arguments),
                            n = t[0],
                            a = "JivoStore" == n.__type ? t[1] : t[2],
                            r = "JivoStore" == n.__type ? "update" : t[1];
                        if ("object" != (0, o.default)(r))
                            if ("function" == typeof n.on ? e = "on" : "function" == typeof n.addListener && (e = "addListener"), e) {
                                var l = n[e](r, a);
                                this.listeners.push({
                                    type: e,
                                    target: n,
                                    event: r,
                                    callback: a,
                                    subscription: l
                                })
                            } else v.error("error cant find type");
                        else
                            for (var u in r) "string" == typeof u && this.on(n, u, r[u])
                    }
                }, {
                    key: "off",
                    value: function() {
                        for (var e; e = this.listeners.shift();) {
                            var t;
                            t = "on" == e.type ? "off" : "removeListener", e.target[t] ? e.target[t](e.event, e.callback) : e.subscription && "function" == typeof e.subscription.remove ? e.subscription.remove() : v.error("error cant find type")
                        }
                    }
                }, {
                    key: "getClasses",
                    value: function(e) {
                        var t = {},
                            n = e.styles || {};
                        return (0, p.each)(n, (function(n, a) {
                            t[a] = {};
                            var r = "";
                            n[1] && (t[a].style = n[1]), (0, p.each)(n[0], (function(t, n) {
                                r += t ? (e.style ? e.style[n] : n) + " " : ""
                            })), " " === r.charAt(r.length - 1) && (r = r.substr(0, r.length - 1)), t[a].className = r
                        })), t
                    }
                }, {
                    key: "getRenderData",
                    value: function() {}
                }, {
                    key: "renderData",
                    value: function() {}
                }, {
                    key: "render",
                    value: function() {
                        var e = this.getRenderData(),
                            t = this.getClasses(e);
                        return this.renderData(e.data || {}, t)
                    }
                }, {
                    key: "componentWillUnmount",
                    value: function() {
                        this.off(), this.emitter.removeAllListeners()
                    }
                }]), n
            }(f.default.Component);
        t.default = m
    }, 50789: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.ApiProvider = void 0;
        var r = a(n(77766)),
            i = a(n(26394)),
            o = a(n(69198)),
            l = n(97615),
            u = n(44145),
            s = n(69882),
            c = n(95911),
            d = a(n(1039)),
            f = n(31343),
            p = new(function() {
                function e() {
                    (0, i.default)(this, e)
                }
                return (0, o.default)(e, [{
                    key: "getCustomerIoInvites",
                    value: function(e, t) {
                        var n, a = l.EnvironmentManager.isDevelopment() && d.default.mockRequests && d.default.mockRequests.customerIO ? "/configs/development/customerIO.json" : this.getApiHost() + (0, r.default)(n = "/api/".concat("1", "/sites/").concat(d.default.site_id, "/widgets/")).call(n, d.default.widget_id, "/invitation/"),
                            i = {
                                user_token: e
                            };
                        this.sendApiRequest(a, i, t)
                    }
                }, {
                    key: "acceptWebRTCCall",
                    value: function(e, t) {
                        var n, a, i = (0, u.getClient)(),
                            o = this.getTelephonyHost() + (0, r.default)(n = (0, r.default)(a = "/api/".concat("1", "/sites/").concat(d.default.site_id, "/widgets/")).call(a, d.default.widget_id, "/clients/")).call(n, i.clientId.split(".")[0], "/telephony/widget-call/accept"),
                            l = {
                                call_id: e
                            };
                        this.sendPostApiRequest(o, l, t)
                    }
                }, {
                    key: "declineWebRTCCall",
                    value: function(e, t) {
                        var n, a, i = (0, u.getClient)(),
                            o = this.getTelephonyHost() + (0, r.default)(n = (0, r.default)(a = "/api/".concat("1", "/sites/").concat(d.default.site_id, "/widgets/")).call(a, d.default.widget_id, "/clients/")).call(n, i.clientId.split(".")[0], "/telephony/widget-call/decline"),
                            l = {
                                call_id: e
                            };
                        this.sendPostApiRequest(o, l, t)
                    }
                }, {
                    key: "sendApiRequest",
                    value: function(e, t, n) {
                        c.xhrRequest.get(e, n, {
                            params: t
                        })
                    }
                }, {
                    key: "sendPostApiRequest",
                    value: function(e, t, n) {
                        c.xhrRequest.post(e, n, {
                            headers: {
                                "Content-Type": f.CONTENT_TYPE.X_WWW_FORM
                            },
                            body: t
                        })
                    }
                }, {
                    key: "getApiHost",
                    value: function() {
                        return (0, s.getProtocol)() + "//" + d.default.api_host
                    }
                }, {
                    key: "getTelephonyHost",
                    value: function() {
                        return (0, s.getProtocol)() + "//" + d.default.tel_host
                    }
                }]), e
            }());
        t.ApiProvider = p
    }, 86961: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(77766)),
            i = a(n(26394)),
            o = a(n(69198)),
            l = n(83778),
            u = n(97615),
            s = n(44145),
            c = n(95911),
            d = a(n(1039)),
            f = function() {
                function e() {
                    (0, i.default)(this, e)
                }
                return (0, o.default)(e, null, [{
                    key: "getStatus",
                    value: function(e) {
                        this.getChatServerData("status", {}, e)
                    }
                }, {
                    key: "getVisitorNumber",
                    value: function(e) {
                        this.getChatServerData("visitor_number", {}, e)
                    }
                }, {
                    key: "getMessages",
                    value: function(e, t) {
                        this.getChatServerData("messages", e, t)
                    }
                }, {
                    key: "getChatServerData",
                    value: function(e, t, n) {
                        var a, i, o, u = (0, s.getClient)(),
                            c = u.visitorId ? "/".concat(u.visitorId) : "",
                            f = this.shouldMockRequest(e) ? "/configs/development/".concat(e, ".json") : (0, l.chatServerHost)() + (0, r.default)(a = (0, r.default)(i = (0, r.default)(o = "/widget/".concat(e, "/")).call(o, d.default.site_id, "/")).call(i, d.default.widget_id)).call(a, c);
                        this.sendChatServerRequest(f, t, n)
                    }
                }, {
                    key: "getHistoryMessages",
                    value: function(e, t, n) {
                        var a, i, o = (0, s.getClient)(),
                            u = this.shouldMockRequest("new_messages") ? "/configs/development/".concat("new_messages", ".json") : (0, l.chatServerHost)() + (0, r.default)(a = (0, r.default)(i = "/client/".concat(d.default.site_id, "/")).call(i, d.default.widget_id, "/")).call(a, e),
                            c = {
                                "x-jv-client-id": o.clientId,
                                "x-visitor-id": o.visitorId
                            };
                        this.sendChatServerRequest(u, t, n, c)
                    }
                }, {
                    key: "sendChatServerRequest",
                    value: function(e, t, n, a) {
                        c.xhrRequest.get(e, n, {
                            headers: a,
                            params: t
                        })
                    }
                }, {
                    key: "shouldMockRequest",
                    value: function(e) {
                        return u.EnvironmentManager.isDevelopment() && d.default.mockRequests && d.default.mockRequests[e]
                    }
                }]), e
            }();
        t.default = f
    }, 44733: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.isJvKeyForStoreToGet = t.StorageProvider = void 0;
        var r = a(n(77766)),
            i = a(n(20116)),
            o = a(n(18777)),
            l = a(n(1039)),
            u = n(38632),
            s = n(10895),
            c = n(39731),
            d = n(38392),
            f = n(53401),
            p = l.default.widget_id,
            h = function(e) {
                return function(e) {
                    return /^jv_/.test(e)
                }((0, o.default)(e, 1)[0])
            },
            v = function(e) {
                return /^jv_store/.test(e)
            };
        t.isJvKeyForStoreToGet = v;
        var g = function(e, t) {
                var n, a, i = (0, r.default)(n = "jv_".concat(e, "_")).call(n, p);
                return t ? (0, r.default)(a = "".concat(i, "_")).call(a, t) : i
            },
            m = function(e) {
                if (function(e) {
                        return /^store_[a-z]*$/.test(e)
                    }(e)) {
                    var t = (0, c.splitString)(e, "_"),
                        n = (0, o.default)(t, 2),
                        a = n[0],
                        r = n[1];
                    return g(a, r)
                }
                return g(e)
            },
            _ = {get: function(e) {
                    return u.parentLS.get(m(e))
                },
                set: function(e, t) {
                    return u.parentLS.set(m(e), t)
                },
                remove: function(e) {
                    return u.parentLS.remove(m(e))
                },
                migrate: (0, s.compose)((function(e) {
                    return e.forEach((function(e) {
                        var t = (0, o.default)(e, 2),
                            n = t[0],
                            a = t[1],
                            r = v(n) ? (0, c.splitString)(n, "_")[0] : n;
                        u.parentLS.set(r, a), (0, f.deleteCookie)(n)
                    }))
                }), (function(e) {
                    return (0, i.default)(e).call(e, h)
                }), f.splitCookieOnEntries),
                createKeyForStore: function(e) {
                    return "store_".concat(e)
                },
                duplicateClientStateInCookie: function(e) {
                    var t = g("store", "client_".concat(p)),
                        n = (0, d.pick)(e, "client_id", "jv_sess_id", "user_token", "visitorId");
                    return (0, f.setCookie)(t, n)
                }
            };
        t.StorageProvider = _
    }, 20758: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(26394)),
            i = a(n(69198)),
            o = n(16016),
            l = n(21951),
            u = n(44733),
            s = n(69882),
            c = n(9393),
            d = n(90991),
            f = a(n(1039)),
            p = n(52028),
            h = n(89766).EventEmitter,
            v = 1500,
            g = new(function() {
                function e(t) {
                    var n = this;
                    if ((0, r.default)(this, e), this.readMessages = {}, this.lastBufferUpdatedTime = (new Date).getTime(), this.initBufferFn = (0, d.debounce)(this.initBuffer.bind(this), 500), this.initBuffer(), this.emitter = new h, !(0, s.isWixEditor)() && !p.isDesignerEditor) {
                        var a = (0, s.getPageWindow)();
                        (0, l.addListener)(a, "storage", (function(e) {
                            (e || a.event).key === "jv_eBuffer_" + f.default.widget_id && n.parseNewEvents()
                        }))
                    }
                }
                return (0, i.default)(e, [{
                    key: "initBuffer",
                    value: function() {
                        var e = this,
                            t = u.StorageProvider.get("eBuffer") || [],
                            n = this.filterOldEvents(t);
                        (0, c.each)(n, (function(t) {
                            e.readMessages[t.id]
                        })), t.length !== n.length && u.StorageProvider.set("eBuffer", n)
                    }
                }, {
                    key: "sendEvent",
                    value: function(e, t) {
                        var n = this,
                            a = {
                                time: (new Date).getTime(),
                                id: (0, o.generateGUIDCount)(2),
                                name: e,
                                data: t || {}
                            },
                            r = this.filterOldEvents(u.StorageProvider.get("eBuffer") || []);
                        r.push(a), this.readMessages[a.id] = !0, u.StorageProvider.set("eBuffer", r), setTimeout((function() {
                            n.initBufferFn()
                        }), 1505)
                    }
                }, {
                    key: "filterOldEvents",
                    value: function(e) {
                        var t = this,
                            n = [];
                        return (0, c.each)(e, (function(e) {
                            (new Date).getTime() - e.time > v ? delete t.readMessages[e.id] : n.push(e)
                        })), n
                    }
                }, {
                    key: "parseNewEvents",
                    value: function() {
                        var e = this,
                            t = u.StorageProvider.get("eBuffer");
                        t && (0, c.each)(t, (function(t) {
                            !e.readMessages[t.id] && (new Date).getTime() - t.time < v && e.triggerEvent(t)
                        }))
                    }
                }, {
                    key: "triggerEvent",
                    value: function(e) {
                        this.readMessages[e.id] = !0, this.emitter.emit("tabsEvent_" + e.name, e.data)
                    }
                }, {
                    key: "on",
                    value: function(e, t) {
                        return this.emitter.addListener("tabsEvent_" + e, t)
                    }
                }]), e
            }());
        t.default = g
    }, 34973: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(69301)),
            i = a(n(47302)),
            o = a(n(62462)),
            l = a(n(92762)),
            u = a(n(26394)),
            s = a(n(69198)),
            c = a(n(6131)),
            d = n(16016),
            f = n(44733),
            p = n(92560),
            h = n(90991),
            v = n(9393),
            g = a(n(20758)),
            m = n(52028),
            _ = n(97615),
            y = a(n(4855)).default.name("ArrayStore"),
            b = n(89766).EventEmitter,
            E = function() {
                function e(t) {
                    (0, u.default)(this, e), this.settings = t, this.emitter = new b, this.store = [], this.initArrayStore(), this.protectOthersTabs(), this.triggerFn = (0, h.debounce)(this.trigger, 100)
                }
                return (0, s.default)(e, [{
                    key: "initArrayStore",
                    value: function() {
                        var e = this,
                            t = f.StorageProvider.get(this.settings.name + "_items") || [];
                        (0, v.each)(t, (function(t) {
                            if (f.StorageProvider.get(t)) {
                                var n = new(e.settings.itemClass || c.default)({
                                    type: e.settings.type,
                                    name: t,
                                    keys: (0, r.default)(e.settings)
                                });
                                e.addTriggers(n), e.store.push(n), (0, i.default)(e).call(e)
                            }
                        }))
                    }
                }, {
                    key: "addTriggers",
                    value: function(e) {
                        var t = this;
                        e.on("all", (function() {
                            t.trigger("update", e)
                        })), e.on("destroy", this.onRemoveItem.bind(this, e))
                    }
                }, {
                    key: "push",
                    value: function(e) {
                        var t = this.createInst(e);
                        return this.addTriggers(t), t.set(e), this.store.push(t), (0, i.default)(this).call(this), this.backup(t), this.triggerFn("create", t), t.unStorage && t.unStorage() || g.default.sendEvent("".concat(this.settings.name, "_addArrayItem"), {
                            name: t.getName()
                        }), t
                    }
                }, {
                    key: "createInst",
                    value: function(e) {
                        var t = this.settings.type;
                        (e.body && e.body.unsave || m.isDesignerEditor) && (t = "memory");
                        for (var n = {}, a = this.settings.itemClass || c.default, i = 0; i < 3 && !((n = new a({
                                type: t,
                                name: (0, d.generateGUIDCount)(2),
                                keys: (0, r.default)(this.settings)
                            })) instanceof a); i++);
                        return n
                    }
                }, {
                    key: "sort",
                    value: function() {}
                }, {
                    key: "pushAll",
                    value: function(e) {
                        var t = this,
                            n = [];
                        return (0, v.each)(e, (function(e) {
                            n.push(t.push(e))
                        })), n
                    }
                }, {
                    key: "getAll",
                    value: function() {
                        return this.store
                    }
                }, {
                    key: "toJSON",
                    value: function() {
                        var e = [];
                        return (0, v.each)(this.store, (function(t) {
                            e.push(t.toJSON())
                        })), e
                    }
                }, {
                    key: "each",
                    value: function(e) {
                        (0, v.each)(this.store, (function(t) {
                            e(t.toJSON(), t)
                        }))
                    }
                }, {
                    key: "onRemoveItem",
                    value: function(e) {
                        var t, n, a = (0, o.default)(t = this.store).call(t, (function(t) {
                            return t === e
                        }));
                        (0, l.default)(n = this.store).call(n, a, 1), this.trigger("remove"), this.backup(), g.default.sendEvent("".concat(this.settings.name, "_removeArrayItem"), {
                            name: e.getName()
                        })
                    }
                }, {
                    key: "backup",
                    value: function() {
                        var e = [];
                        (0, v.each)(this.store, (function(t) {
                            t.unStorage && t.unStorage() || e.push(t.getName())
                        })), f.StorageProvider.set(this.settings.name + "_items", e.length ? e : [])
                    }
                }, {
                    key: "protectOthersTabs",
                    value: function() {
                        var e = this;
                        g.default.on("".concat(this.settings.name, "_addArrayItem"), (function(t) {
                            var n = new(e.settings.itemClass || c.default)({
                                type: e.settings.type,
                                name: t.name,
                                keys: (0, r.default)(e.settings)
                            });
                            (0, p.isEmpty)(n) ? y.warn("".concat(e.settings.name, "_addArrayItem inst is empty!"), t, n): (e.addTriggers(n), e.store.push(n), (0, i.default)(e).call(e), e.trigger("create", n, !0))
                        })), g.default.on("".concat(this.settings.name, "_removeArrayItem"), (function(t) {
                            var n, a, r = (0, o.default)(n = e.store).call(n, (function(e) {
                                return e.getName() === t.name
                            }));
                            r >= 0 && ((0, l.default)(a = e.store).call(a, r, 1), (0, i.default)(e).call(e), e.trigger("remove"))
                        }))
                    }
                }, {
                    key: "trigger",
                    value: function(e, t, n) {
                        var a = this;
                        setTimeout((function() {
                            a.emitter.emit(e, t, n)
                        }), 0)
                    }
                }, {
                    key: "itemTrigger",
                    value: function() {}
                }, {
                    key: "on",
                    value: function(e, t) {
                        return this.emitter.addListener(e, t)
                    }
                }, {
                    key: "onItem",
                    value: function(e) {
                        return this.emitter.addListener("".concat(this.settings.name, "_update"), cb)
                    }
                }, {
                    key: "destroy",
                    value: function() {
                        var e = this.store;
                        this.store = [], e.forEach((function(e) {
                            e.destroy()
                        })), this.backup(), this.trigger("remove")
                    }
                }]), e
            }();
        t.default = E, _.EnvironmentManager.isDevelopment() && (window.parent.ArrayStore = E)
    }, 66547: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(26394)),
            i = a(n(69198)),
            o = n(9393),
            l = a(n(73687)),
            u = a(n(4855)).default.name("SessionStore", "color: grey"),
            s = "sess_",
            c = new(function() {
                function e() {
                    (0, r.default)(this, e), u.log("init session store"), this.sessionKeysList = this.initSessionKeysList(), this.startTimer()
                }
                return (0, i.default)(e, [{
                    key: "initSessionKeysList",
                    value: function() {
                        return l.default.getKeysByPrefix(l.default.getPrefix() + s)
                    }
                }, {
                    key: "set",
                    value: function(e, t) {
                        -1 === this.sessionKeysList.indexOf(e) && this.sessionKeysList.push(e), l.default.set(s + e, t, 43200)
                    }
                }, {
                    key: "get",
                    value: function(e) {
                        return l.default.get(s + e)
                    }
                }, {
                    key: "startTimer",
                    value: function() {
                        var e = this;
                        setInterval((function() {
                            u.log("startTimer", e.sessionKeysList), (0, o.each)(e.sessionKeysList, (function(t) {
                                var n = e.get(t);
                                n && (u.log("update session", t, n), e.set(t, n))
                            }))
                        }), 6e4)
                    }
                }]), e
            }());
        t.default = c
    }, 6131: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(69301)),
            i = a(n(59340)),
            o = a(n(77766)),
            l = a(n(23765)),
            u = a(n(26394)),
            s = a(n(69198)),
            c = n(16016),
            d = a(n(20758)),
            f = n(44733),
            p = n(97615),
            h = n(60277),
            v = n(90991),
            g = n(9393),
            m = a(n(4855)).default.name("Store"),
            _ = n(89766).EventEmitter,
            y = [],
            b = function() {
                function e(t) {
                    if ((0, u.default)(this, e), this.registrName(t.name)) return m.warn("Dublicate name for Store keyName"), {};
                    this.settings = t, this.store = this.getDefaultKeys(), this.emitter = new _, "session" === t.type ? this.initSessionStore() : "default" === t.type ? this.initDefaultStore() : "memory" === t.type && this.initMemoryStore(), this.protectOthersTabs(), this.allKeysUpdateDebounce = (0, v.debounce)(this.allKeysUpdate, 150)
                }
                return (0, s.default)(e, [{
                    key: "registrName",
                    value: function(e) {
                        return y.indexOf(e) > -1 || (y.push(e), !1)
                    }
                }, {
                    key: "initDefaultStore",
                    value: function() {
                        var e = f.StorageProvider.get(this.settings.name) || {};
                        this.store = (0, h.extend)(this.store, e)
                    }
                }, {
                    key: "initMemoryStore",
                    value: function() {}
                }, {
                    key: "initSessionStore",
                    value: function() {
                        var e = f.StorageProvider.get(this.settings.name) || {};
                        if (e) {
                            m.log("resetSession store");
                            var t = (0, c.generateGUIDCount)(2);
                            (e = this.store)._id = t, e._clearTime = (new Date).getTime() + 5e3, f.StorageProvider.set(this.settings.name, e), d.default.sendEvent("".concat(this.settings.name, "_resetSessionStore"))
                        }
                        this.store = e
                    }
                }, {
                    key: "getDefaultKeys",
                    value: function() {
                        var e = {};
                        return (0, g.each)((0, r.default)(this.settings), (function(t, n) {
                            "function" == typeof t ? e[n] = t() : null !== t && "{}" !== (0, i.default)(t) && (e[n] = t)
                        })), e
                    }
                }, {
                    key: "isDeepName",
                    value: function(e) {
                        return "string" == typeof e && e.split(".").length > 1
                    }
                }, {
                    key: "getDeepName",
                    value: function(e) {
                        var t = e.split(".");
                        return this.isDeepName(e) ? t : [e]
                    }
                }, {
                    key: "set",
                    value: function(e, t) {
                        var n = this;
                        if ("object" !== (0, l.default)(e)) return this.setKey(e, t);
                        (0, g.each)(e, (function(e, t) {
                            n.set(t, e)
                        }))
                    }
                }, {
                    key: "setDeepKey",
                    value: function(e, t, n) {
                        if ("string" == typeof n && (n = n.split(".")), !(n.length > 1)) return null === t ? delete e[n[0]] : e[n[0]] = t, t;
                        var a = n.shift();
                        null != e[a] && "object" === (0, l.default)(e[a]) || (e[a] = {}), this.setDeepKey(e[a], t, n)
                    }
                }, {
                    key: "setKey",
                    value: function(e, t, n) {
                        return void 0 === (0, r.default)(this.settings)[this.getDeepName(e)[0]] ? (m.error("Error: set not initialized key " + e), null) : (this.get(e) === t || (this.isDeepName(e) ? this.setDeepKey(this.store, t, e) : null === t ? delete this.store[e] : this.store[e] = t, this.trigger(e, t), n || this.triggerAndBackup(e)), t)
                    }
                }, {
                    key: "get",
                    value: function(e) {
                        return this.isDeepName(e) ? void 0 === (0, r.default)(this.settings)[this.getDeepName(e)[0]] ? (m.error("Error: get not initialized key " + e), null) : this.findObj(this.store, e) : void 0 === (0, r.default)(this.settings)[e] ? (m.error("Error: get not initialized key " + e), null) : this.store[e] || null
                    }
                }, {
                    key: "findObj",
                    value: function(e, t) {
                        var n, a = t.split("."),
                            r = e;
                        for (n = 0; n < a.length; ++n) {
                            if (null == r[a[n]]) return null;
                            r = r[a[n]]
                        }
                        return r
                    }
                }, {
                    key: "destroy",
                    value: function() {
                        this.trigger("destroy"), f.StorageProvider.remove(this.settings.name), this.store = {}, this.emitter.removeAllListeners()
                    }
                }, {
                    key: "toJSON",
                    value: function() {
                        return this.store
                    }
                }, {
                    key: "triggerAndBackup",
                    value: function(e) {
                        "memory" !== this.settings.type && (this.unStorage && this.unStorage() || f.StorageProvider.set(this.settings.name, this.store), d.default.sendEvent("".concat(this.settings.name, "_updateStore"), {
                            name: this.settings.name,
                            keyName: e,
                            val: this.get(e) || null
                        }))
                    }
                }, {
                    key: "allKeysUpdate",
                    value: function() {
                        this.emitter.emit("".concat(this.settings.name, "_change_all"), this.store)
                    }
                }, {
                    key: "trigger",
                    value: function(e, t) {
                        var n;
                        this.emitter.emit((0, o.default)(n = "".concat(this.settings.name, "_change_")).call(n, e), t), this.allKeysUpdateDebounce()
                    }
                }, {
                    key: "on",
                    value: function(e, t) {
                        var n;
                        return this.emitter.addListener((0, o.default)(n = "".concat(this.settings.name, "_change_")).call(n, e), t)
                    }
                }, {
                    key: "protectOthersTabs",
                    value: function() {
                        var e = this;
                        d.default.on("".concat(this.settings.name, "_updateStore"), (function(t) {
                            t.name === e.settings.name && e.setKey(t.keyName, t.val, !0)
                        })), d.default.on("".concat(this.settings.name, "_resetSessionStore"), (function() {
                            e.store = {}
                        }))
                    }
                }, {
                    key: "getName",
                    value: function() {
                        return this.settings.name
                    }
                }]), e
            }(),
            E = b;
        t.default = E, p.EnvironmentManager.isDevelopment() && (window.parent.Store = b)
    }, 73687: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(26394)),
            i = a(n(69198)),
            o = n(9393),
            l = a(n(1039)),
            u = n(44733),
            s = n(38632),
            c = a(n(4855)).default.name("TempStore", "color: grey"),
            d = "temp_",
            f = new(function() {
                function e() {
                    (0, r.default)(this, e), this.cleanExpiredKeys()
                }
                return (0, i.default)(e, [{
                    key: "set",
                    value: function(e, t, n) {
                        if (c.log("set", e, t, n), !n) throw new Error("cant set in TempStore without seconds");
                        if (null === t) return c.log("remove key on data", e), void u.StorageProvider.remove(d + e);
                        t = {
                            val: t,
                            expire: (new Date).setTime((new Date).getTime() + 1e3 * n)
                        }, u.StorageProvider.set(d + e, t)
                    }
                }, {
                    key: "get",
                    value: function(e) {
                        var t = u.StorageProvider.get(d + e);
                        return t && t.expire ? t.expire < (new Date).getTime() ? null : t.val : t
                    }
                }, {
                    key: "cleanExpiredKeys",
                    value: function() {
                        var e = this.getKeysByPrefix(d);
                        (0, o.each)(e, (function(e) {
                            var t = d + e,
                                n = u.StorageProvider.get(t);
                            n && n.expire && n.expire < (new Date).getTime() && (c.log("delete key on init expire:", t), u.StorageProvider.remove(t))
                        }))
                    }
                }, {
                    key: "getKeysByPrefix",
                    value: function(e) {
                        var t = [],
                            n = s.parentLS;
                        if (n)
                            for (var a in n)
                                if (a && 0 == a.search(new RegExp("^jv_" + e))) {
                                    var r = a.replace("jv_".concat(e), "").replace("_".concat(l.default.widget_id), "");
                                    t.push(r)
                                }
                        return t
                    }
                }, {
                    key: "getPrefix",
                    value: function() {
                        return d
                    }
                }]), e
            }());
        t.default = f
    }, 53049: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.TestName = void 0;
        t.TestName = {}
    }, 47245: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.Component = void 0;
        t.Component = {
            ROOT_COMPONENT: "RootComponent",
            CALL_CONTAINER: "CallContainer",
            CHAT_CONTAINER: "ChatContainer",
            DRAG: "Drag",
            INTRODUCE: "Introduce",
            WIDGET_CONTAINER: "WidgetContainer",
            WIDGET_CONTAINER_COMPONENT: "WidgetContainerComponent",
            INPUT: "Input",
            AUTORESIZER: "autoResizer",
            CHAT_INPUT: "ChatInput",
            CHAT_INTRODUCE: "ChatIntroduce",
            SCROLL_CONTAINER: "ScrollContainer",
            PRECHAT: "PrechatMessage",
            LABEL: "Label",
            HEADER: "Header",
            MORE_BUTTON: "MoreButton",
            MOUSE_TRACK: "MouseTrack",
            CHAT_BODY: "ChatBody",
            SOUND_AGENT_MESSAGE: "SOUND_AGENT_MESSAGE",
            SOUND_NOTIFICATION: "SOUND_NOTIFICATION",
            SOUND_OUTGOING_MESSAGE: "SOUND_OUTGOING_MESSAGE",
            MESSAGES_CONTAINER: "MESSAGES_CONTAINER",
            MOBILE_CONTAINER: "MOBILE_CONTAINER",
            RATE_FORM: "RateForm"
        }
    }, 4425: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.ChatMode = void 0;
        t.ChatMode = {
            OFFLINE: "offline",
            ONLINE: "online"
        }
    }, 94537: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.ContactsType = void 0;
        t.ContactsType = {
            DURING_CHAT_NO_CLOSE: -1,
            DURING_CHAT: 0,
            BEFORE_CHAT: 1,
            DISABLED: 2,
            SOCIAL: 3
        }
    }, 18073: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.emojiList = void 0;
        t.emojiList = {
            angel: "1f607",
            unicorn_face: "1f984",
            confused: "1f615",
            rage: "1f621",
            imp: "1f608",
            disappointed: "1f61e",
            kissing_heart: "1f618",
            yum: "1f60b",
            disappointed_relieved: "1f625",
            weary: "1f629",
            grin: "1f601",
            laughing: "1f606",
            wink: "1f609",
            sunglasses: "1f60e",
            neutral_face: "1f610",
            winking_eye: "1f61c",
            hushed: "1f62e",
            thumbsup: "1f44d",
            thumbsdown: "1f44e",
            smile: "1f603"
        }
    }, 87884: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.Environment = void 0;
        t.Environment = {
            PRODUCTION: "production",
            DEVELOPMENT: "development",
            TESTING: "testing"
        }
    }, 12494: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.FileUploadError = void 0;
        t.FileUploadError = {
            FILE_SIZE_EXCEEDED: "FILE_SIZE_EXCEEDED",
            RESTRICTED_FILE_TYPE: "RESTRICTED_FILE_TYPE",
            NO_EXTENSION: "NO_EXTENSION",
            REQUEST_FAILED: "REQUEST_FAILED",
            UPLOAD_CANCELED: "UPLOAD_CANCELED"
        }
    }, 3571: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.Feature = void 0;
        t.Feature = {
            RECAPTCHA: "recaptcha"
        }
    }, 57930: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.Locator = void 0;
        t.Locator = {
            LABEL_COPYRIGHT_POPUP: "LABEL_COPYRIGHT_POPUP",
            HEADER: "HEADER",
            HEADER_TEXT: "HEADER_TEXT",
            HEADER_LEAF: "HEADER_LEAF",
            HEADER_AGENT_NAME: "HEADER_AGENT_NAME",
            HEADER_AGENT_POSITION: "HEADER_AGENT_POSITION",
            HEADER_AGENT_AVATAR: "HEADER_AGENT_AVATAR",
            HEADER_CALLBACK_BUTTON: "HEADER_CALLBACK_BUTTON",
            CHAT_COPYRIGHT: "CHAT_COPYRIGHT",
            INPUT: "INPUT",
            INPUT_SUBMIT: "INPUT_SUBMIT",
            FILE_UPLOAD: "FILE_UPLOAD",
            CONTACTS_FORM: "CONTACTS_FORM",
            CONTACTS_FORM_NAME: "CONTACTS_FORM_NAME",
            CONTACTS_FORM_PHONE: "CONTACTS_FORM_PHONE",
            CONTACTS_FORM_EMAIL: "CONTACTS_FORM_EMAIL",
            CONTACTS_FORM_SUBMIT: "CONTACTS_FORM_SUBMIT",
            CONTACTS_FORM_INPUT: "CONTACTS_FORM_INPUT",
            CALLBACK_BUTTON: "CALLBACK_BUTTON",
            CALLBACK_VIDEO_BUTTON: "CALLBACK_VIDEO_BUTTON",
            WA_BUTTON: "WA_BUTTON",
            CLOSE_BUTTON: "CLOSE_BUTTON",
            POWER_BUTTON: "POWER_BUTTON",
            MOBILE_POPUP_CLOSE_BUTTON: "MOBILE_POPUP_CLOSE_BUTTON",
            INPUT_MORE_BTN: "INPUT_MORE_BTN",
            INPUT_EMOJI_PANEL: "INPUT_EMOJI_PANEL",
            INPUT_UPLOAD_ICON: "INPUT_UPLOAD_ICON",
            RATE_TITLE: "RATE_TITLE",
            RATE_FORM_TEXT: "RATE_FORM_TEXT",
            RATE_COMMENT_TITLE: "RATE_COMMENT_TITLE",
            RATE_FORM_INPUT: "RATE_FORM_INPUT",
            RATE_SUBMIT_BUTTON: "RATE_SUBMIT_BUTTON",
            RATE_POSITIVE_SUBMIT_TEXT: "RATE_POSITIVE_SUBMIT_TEXT",
            RATE_FORM_CLOSE_ICON: "RATE_FORM_CLOSE_ICON",
            RATE_GOOD: "RATE_GOOD",
            RATE_GOODNORMAL: "RATE_GOODNORMAL",
            RATE_NORMAL: "RATE_NORMAL",
            RATE_BADNORMAL: "RATE_BADNORMAL",
            RATE_BAD: "RATE_BAD",
            PRECHAT_BUTTON: "PRECHAT_BUTTON_"
        }
    }, 81152: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.MessageType = t.MessageStatus = t.MessageName = t.MessageInitiator = t.MediaType = t.MediaStatus = void 0;
        t.MessageType = {
            MESSAGE: "message",
            PROACTIVE: "proactive",
            MEDIA: "media",
            COBROWSE: "cobrowse",
            INVOICE: "invoice",
            SYSTEM: "system",
            PREFORM: "botsystem",
            FORM: "form",
            TEMPORARY: "temporary",
            SOCIAL: "social",
            EMAIL: "email",
            SEPARATOR: "separator",
            FOR_TEST: "fortest",
            PRECHAT: "prechat",
            BOT: "bot",
            INVITE: "invite",
            EMPTY: null,
            LISTPICKER: "keyboard",
            WEB_RTC_CALL: "webrtccall",
            RATE_FORM: "rateform",
            CALL: "call"
        };
        t.MessageStatus = {
            SENT: "sended",
            DELIVERED: "delivered",
            READ: "read",
            NOT_DELIVERED: "notDelivered",
            FAILED: "failed",
            DELETED: "deleted",
            EMPTY: null
        };
        t.MessageInitiator = {
            AGENT: "agent",
            CLIENT: "client",
            SYSTEM: "system",
            FORM: "bot",
            BOT: "bot_agent",
            EMPTY: null
        };
        t.MediaStatus = {
            UPLOADING: "uploading",
            COMPLETE: "complete",
            ERROR: "error",
            EXPIRED: "expired"
        };
        t.MediaType = {
            VIDEO: "video",
            PHOTO: "photo",
            LOCATION: "location",
            VOICE: "voice",
            STICKER: "sticker",
            RICH_LINK: "rich_link"
        };
        t.MessageName = {
            DELAYED_CALL_SUCCESS: "delayedCallSuccess",
            CALL_END: "callEnd",
            CALL_MESSAGE_START: "callMessageStart"
        }
    }, 31343: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.REQUEST_OPTIONS = t.METHODS = t.CONTENT_TYPE = t.ACCEPT = void 0;
        t.METHODS = {
            GET: "GET",
            POST: "POST",
            PUT: "PUT",
            DELETE: "DELETE",
            PATCH: "PATCH",
            HEAD: "HEAD"
        };
        t.ACCEPT = "application/json, text/plain, */*";
        t.CONTENT_TYPE = {
            X_WWW_FORM: "application/x-www-form-urlencoded",
            APP_JSON: "application/json"
        };
        t.REQUEST_OPTIONS = {
            body: null,
            headers: {},
            responseType: "json",
            timeout: 3e3,
            withCredentials: !1,
            validateStatus: function(e) {
                return e >= 200 && e < 300
            },
            onTimeout: null,
            onUpload: null,
            onDownload: null
        }
    }, 62168: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.PermissionStatus = t.Permission = void 0;
        t.PermissionStatus = {
            UNKNOWN: 0,
            ALLOWED: 1,
            BLOCKED: 2
        };
        t.Permission = {
            AUDIO: "audio",
            VIDEO: "video"
        }
    }, 15174: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.RateType = t.RateState = t.RateIconType = t.RateIconMap = t.RateConditions = t.RateColors = void 0;
        var n = {
            BAD: "bad",
            BAD_NORMAL: "badnormal",
            NORMAL: "normal",
            GOOD_NORMAL: "goodnormal",
            GOOD: "good"
        };
        t.RateState = n;
        t.RateConditions = {
            MESSAGE_COUNT: "message_count",
            CHAT_FINISHED: "chat_finished"
        };
        t.RateType = {
            TWO: "two",
            THREE: "three",
            FIVE: "five"
        };
        t.RateIconType = {
            SMILE: "smile",
            STAR: "star"
        };
        var a = {
            three: [n.BAD, n.NORMAL, n.GOOD],
            five: [n.BAD, n.BAD_NORMAL, n.NORMAL, n.GOOD_NORMAL, n.GOOD]
        };
        t.RateIconMap = a;
        t.RateColors = {
            color: "#FFCE00",
            color2: "#EE9547",
            hoverColor: "#FFDB5E",
            disabledColor: "#D1D5DA",
            disabledColor2: "#83878C"
        }
    }, 22271: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.Regexp = void 0;
        t.Regexp = {
            SERVICEZONE_DOMAIN: /^https:\/\/servicezone+\S+jivosite.com/
        }
    }, 47060: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.RouterEvent = t.RouteList = t.Route = void 0;
        var n = {
            HIDDEN: "hidden",
            LABEL: "label",
            LABEL_INVITATION: "label/invitation",
            DEPARTMENTS: "departments",
            INTRODUCE: "introduce",
            MOBILE_MENU: "mobilemenu",
            CHAT: "chat",
            CHAT_MIN: "chat/min",
            CHAT_EULA: "chat/eula",
            CHAT_SOCIAL: "chat/social",
            CHAT_INTRODUCE: "chat/introduce",
            CHAT_EVAL: "chat/eval",
            CHAT_CALL: "chat/call",
            CHAT_SETUP_CALL: "chat/setupcall",
            CALL: "call",
            CALL_EULA: "call/eula",
            CALL_POPUP: "call/popup",
            DEBUG: "debug"
        };
        t.Route = n;
        t.RouterEvent = {
            Submit: "submit",
            Cancel: "cancel",
            CloseWindow: "closeWindow",
            Hide: "hide",
            Navigate: "navigate",
            Error: "error",
            ToChat: "toChat",
            ToCall: "toCall",
            ToSocial: "toSocial",
            ToIntroduce: "toIntroduce",
            ToEula: "toEula",
            ApiOpen: "apiOpen",
            ToDebug: "toDebug",
            ToLabelInvitation: "toLabelInvitation",
            ToMobileMenu: "toMobileMenu",
            ToCallPopup: "toCallPopup",
            ToCallSetup: "ToCallSetup"
        };
        var a = [];
        for (var r in n) n.hasOwnProperty(r) && a.push(n[r]);
        var i = a;
        t.RouteList = i
    }, 51542: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.Shards = void 0;
        t.Shards = {
            SBER: "sber1"
        }
    }, 47138: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.WebRTCCallStatus = t.DelayedCallStatus = t.ChatState = t.CallStatus = t.CallPopupStatus = void 0;
        t.ChatState = {
            NOT_STARTED_OR_CLOSED: "NOT_STARTED_OR_CLOSED",
            STARTED: "STARTED",
            ACCEPTED: "ACCEPTED"
        };
        t.CallStatus = {
            WAIT: "cw_wait",
            CONNECTING: "cw_connecting",
            CONNECTED: "cw_connected",
            ENDED: "cw_call_end",
            ERROR: "cw_error"
        };
        t.DelayedCallStatus = {
            WAIT: 0,
            SUCCESS: 1,
            MAX_REQUESTS_LIMIT: 2,
            NOT_WORK_TIME: 3,
            BAD_CALLBACK_TIME: 4,
            BLOCKED: 5,
            BAD_DIRECTION: 6
        };
        t.WebRTCCallStatus = {
            INITIAL: 0,
            ACCEPTED: 1,
            DECLINED: 2,
            ERROR: 3,
            ENDED: 4
        };
        t.CallPopupStatus = {
            ENABLED: "enabled",
            DISABLED: "disabled",
            ONLY_TRIGGERS: "only_triggers",
            ONLY_BUTTON_CLICK: "only_button_click"
        }
    }, 71047: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.STORAGE_TYPE = t.STORAGE_STATUS = t.STORAGED_ID = void 0;
        t.STORAGED_ID = {
            APP: "app",
            CALLBACK: "callback",
            CLIENT: "client",
            POSITION: "position"
        };
        t.STORAGE_STATUS = {
            AVAILABLE: "available",
            UNAVAILABLE: "unavailable",
            EXCEED: "exceed"
        };
        t.STORAGE_TYPE = {
            LOCAL: "localStorage",
            SESSION: "sessionStorage"
        }
    }, 83170: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.TelemetryName = t.RateLimit = void 0;
        t.TelemetryName = {
            STARTUP_OK: "startup_ok",
            RESUME_OK: "resume_ok",
            NEWOFFLINE_FIRST_MESSAGE: "offline_first_message",
            NEWOFFLINE_FORM_SUBMIT: "offline_form_submit",
            NEWOFFLINE_MESSAGE_AFTER_FORM: "offline_message_after_form",
            NEWOFFLINE_AGENT_ACCEPT: "offline_agent_accept",
            NEWOFFLINE_FORCE_OFFLINE: "offline_force_offline",
            CHAT_ACCEPTED: "chat_accepted",
            CHAT_ACCEPTED_CONTACTS: "chat_accepted_contacts",
            STARTUP_ERROR: "startup_error",
            CALL_END: "cw_call_end",
            CALL_ERROR: "cw_call_error",
            FORCE_OFFLINE: "force_offline",
            SOCIAL_HAS_INTEGRATION: "social_receive_has_integration_",
            CHAT_INTRODUCE_SOCIAL: "chat_introduce_social",
            CALL_START: "cw_start_call",
            API_CALL_OPEN: "cw_api_call_open",
            INTRODUCE: "introduce",
            EULA_SHOWN: "eula_shown",
            EULA_ACCEPTED: "eula_accepted",
            OFFLINE_SENT: "offline_sent",
            CLIENT_MESSAGE_SEND_ERROR: "client_message_send_error",
            CHAT_INTRODUCE: "chat_introduce",
            CHAT_INVITE: "chat_invite",
            INVITE_ACCEPTED: "invite_accepted",
            COBROWSE_SUCCESS: "cobrowse_success",
            COBROWSE_FAILED: "cobrowse_failed",
            CLIENT_MESSAGE_FLUSH_BUFFER: "client_message_flush_buffer",
            CLIENT_MESSAGE_SPAM: "client_message_spam",
            CDN_LOAD_TIME: "cdn_load_time",
            IN_IFRAME_STARTED: "in_iframe_started",
            API_GET_MESSAGES_REQUEST: "api_get_messages_request",
            API_GET_MESSAGES_ERROR: "api_get_messages_error",
            API_GET_MESSAGES_RECEIVED: "api_get_messages_received",
            FILE_UPLOAD_ERROR: "file_upload_error",
            FILE_UPLOAD_ERROR_NO_MIME_TYPE: "file_upload_error_no_mime_type",
            CW_BUTTON_CLICK: "cw_button_click",
            WA_BUTTON_CLICK: "wa_button_click",
            WIDGET_CLOSE_CLICK: "widget_close_click",
            SITE_CUSTOM_COPYRIGHT: "site_custom_copyright",
            EULA_CANCEL_BTN: "eula_cancel_btn",
            EULA_LINK_CLICKED: "eula_link_clicked",
            FILE_UPLOAD_SUCCESS: "file_upload_success",
            FILE_UPLOAD_CANCELED: "file_upload_canceled",
            FILE_UPLOAD_NO_LOCATION: "file_upload_no_location",
            MOBILE_CHAT_CLOSE: "mobile_chat_close",
            MOBILE_CLOSE_CALLBACK: "mobile_close_callback",
            EMOJI_OPEN_SMILE_LIST: "emoji_open_smile_list",
            EMOJI_INSERT_SMILE: "emoji_insert_smile",
            WIDGET_CLICK: "widget_click",
            LABEL_BUTTONS_SHOW: "label_buttons_show",
            LABEL_BUTTONS_CHAT: "label_buttons_chat",
            LABEL_BUTTONS_CALL: "label_buttons_call",
            LABEL_BUTTONS: "label_buttons_",
            LABEL_BUTTONS_WA: "label_buttons_wa",
            LABEL_BUTTONS_SB: "label_buttons_sb",
            LABEL_BUTTONS_TG: "label_buttons_tg",
            COBROWSE_CLICK_BUTTON: "cobrowse_click_button",
            EMAIL_MESSAGE_SUBMITTED: "Introduce_message_email_submitted",
            POWERBUTTON_OPEN: "powerbtn_open_",
            POWERBUTTON_OPEN_CHAT: "powerbtn_open_chat",
            POWERBUTTON_OPEN_CALLBACK: "powerbtn_open_callback",
            POWERBUTTON_CLOSE_MENU: "powerbtn_close_menu",
            POWERBUTTON_OPEN_MENU: "powerbtn_open_menu",
            CONTINUE_IN_VK: "Continue_in_VK",
            CONTINUE_IN_FB: "Continue_in_FB",
            ZOOM_OVERLAY_SHOW: "zoom_overlay_show",
            ZOOM_OVERLAY_HIDE: "zoom_overlay_hide",
            WIDGET_STATUS: "widget_status",
            CW_ONLINE_HEADER_BUTTON: "cw_online_header_button",
            CW_OFFLINE_HEADER_BUTTON: "cw_offline_header_button",
            SOCIAL_SHOW_FACEBOOK: "social_show_facebook",
            SOCIAL_SHOW_VK: "social_show_vk",
            SOCIAL_CONFIGURED_NOT_LOGGED: "social_configured_not_logged",
            VISITORS_FAIL: "visitors_fail",
            VISITORS_INVITE: "visitors_invite",
            OFFLINE_INVITE: "offline_invite",
            VISITOR_MSG_SENT: "visitor_msg_sent",
            AGENT_MESSAGE: "agent_message",
            API_OPEN: "api_open",
            API_CLOSE: "api_close",
            API_GET_CONTACT_INFO: "api_getcontactinfo",
            API_GET_VISITOR_NUMBER: "api_getvisitornumber_async",
            API_SET_USER_TOKEN: "api_setusertoken",
            API_SET_CUSTOM_DATA: "api_setcustomdata",
            API_SEND_MESSAGE: "api_sendmessage",
            API_SET_CONTACT_INFO: "api_setcontactinfo",
            API_SET_CONTACT_INFO_BAD_DATA: "api_setcontantactinfo_bad_data",
            API_SHOW_PROACTIVE: "api_showproactiveinvitation",
            API_SEND_OFFLINE_MESSAGE: "api_sendofflinemessage",
            API_SEND_OFFLINE_MESSAGE_BAD_DATA: "api_sendofflinemessage_bad_data",
            API_SET_RULES: "api_setrules",
            API_CHAT_MODE: "api_chatmode",
            API_SET_WIDGET_COLOR: "api_setwidgetcolor",
            API_SEND_PAGE_TITLE: "api_sendpagetitle",
            API_IS_CALLBACK_ENABLED: "api_iscallbackenabled",
            API_GET_UTM: "api_getutm",
            OFFLINE_SENT_FAIL: "offline_sent_fail",
            DEBUG_PANEL_OPENED: "debug_panel_opened",
            MORE_CLICK: "more_click",
            DOWNLOAD_CHAT_LOG_CLICK: "download_chat_log_click",
            ERROR_DOWNLOADING_CHAT_LOG: "error_downloading_chat_log",
            WIDGET_DELETED: "widget_deleted",
            INVITE_CLOSE: "invite_close",
            PRECHAT: "prechat",
            RECEIVE_API_INVITATION: "receive_api_invitation",
            READ_API_INVITATION: "read_api_invitation",
            ANSWER_API_INVITATION: "answer_api_invitation",
            API_INVITATION_OPEN_CHAT: "api_invitation_open_chat",
            CLICK_LINK_API_INVITAION: "click_link_api_invitation",
            BOT_BUTTON_CLICK: "bot_button_click",
            CLIENT_MESSAGE_BOT: "client_message_bot",
            CONFIG_LIMIT: "config_limit",
            VI_STATUS_FAIL: "vi_status_fail",
            MARKDOWN_LINK_CLICK: "markdown_link_click",
            MORE_BTN_CLICK: "more_btn_click",
            BOT_TRANSFER_CHAT: "bot_transfer_chat",
            DELAYED_ERR: "delayed_query_error",
            RECAPTCHA_SUCCESS: "recaptcha_success",
            RECAPTCHA_FAILURE: "recaptcha_failure",
            RECAPTCHA_ERROR: "recaptcha_error",
            BUNDLE_LOADED: "bundle_loaded",
            CWP_SHOW_ON_PROACTIVE: "cwp_show_on_proactive",
            CWP_SUBMIT: "cwp_submit",
            CWP_DISABLED_SUBMIT_CLICK: "cwp_disabled_submit_click",
            CWP_CLOSE_CLICK: "cwp_close_click",
            CW_TO_CHAT_CLICK: "cw_to_chat_click",
            CW_ERROR_SUBMIT_PHONE: "cw_error_submit_phone",
            CW_SELECT_COUNTRY_CLICK: "cw_select_country_click",
            RESEND_CLICK: "resend_click",
            CHAT_VIEW: "chat_view",
            TOP100_HOVER: "top100_hover",
            TOP100_LINK_CLICK: "top100_link_click",
            MEDIA_SIGN: "media_get_sign_success",
            MEDIA_SIGN_ERROR: "media_get_sign_error",
            WEBRTC_ACCEPT_CALL: "webrtc_accept_call",
            WEBRTC_DENY_CALL: "webrtc_deny_all",
            QR_ERROR: "qr_error",
            PAGE_HIDE: "page_hide",
            RATE_FORM_ADD: "rate_form_add",
            RATE_FORM_CLOSE: "rate_form_close",
            RATE_FORM_SUBMIT: "rate_form_submit",
            RATE_FORM_SELECT: "rate_form_select",
            RECONNECTION: "reconnection",
            STORAGE_ERROR: "storage_error",
            LOGO_CLICK: "logo_click",
            ASSET_ERROR: "asset_error"
        };
        t.RateLimit = {
            Low: 1,
            High: 10
        }
    }, 20361: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.ScriptName = void 0;
        t.ScriptName = {
            OPEN_WIDGET: "OPEN_WIDGET",
            CLOSE_WIDGET: "CLOSE_WIDGET",
            MINIMIZE_WIDGET: "MINIMIZE_WIDGET",
            MAXIMIZE_WIDGET: "MAXIMIZE_WIDGET",
            MIN_WIDGET: "MIN_WIDGET"
        }
    }, 26022: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.ClientStatus = void 0;
        t.ClientStatus = {
            ON_CHAT: "on_chat",
            INVITE_SENT: "invite_sent",
            ON_SITE: "on_site",
            PROACTIVE_SHOW: "proactive_show",
            ON_CALL: "on_call"
        }
    }, 40228: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(98661)),
            i = n(88928),
            o = a(n(45697)),
            l = a(n(21135)),
            u = a(n(14945)),
            s = a(n(21651)),
            c = n(58663),
            d = n(47138),
            f = a(n(19955)),
            p = function(e) {
                var t = e.route,
                    n = e.isOnline,
                    a = e.color,
                    o = e.bubbleColor,
                    p = e.button,
                    h = e.baseUrl,
                    v = e.widgetId,
                    g = e.eula,
                    m = e.callTime,
                    _ = e.isDelayedCallback,
                    y = e.callbackAvailable,
                    b = e.delayedCallStatus,
                    E = e.separateForm,
                    T = e.enableRequestVideocall,
                    C = e.videoCall,
                    S = e.callbackStatus,
                    w = e.callbackError,
                    O = e.clientPhone,
                    A = (0, i.useSelector)((function(e) {
                        return e.callback.delayedPeriods
                    }), i.shallowEqual),
                    I = (0, c.getShowButton)(p, y);
                return r.default.createElement(r.default.Fragment, null, I ? r.default.createElement(l.default, {
                    allowedRoutes: (0, c.getCallbackButtonAllowedRoutes)(),
                    currentRoute: t
                }, r.default.createElement(u.default, {
                    isCallButtonEnabled: !0,
                    videoButton: !1,
                    color: (0, c.getCallbackButtonColor)(a),
                    onClick: function() {
                        (0, c.onButtonClick)(!1)
                    }
                })) : null, (0, c.isVideoButton)(T, C, n) ? r.default.createElement(l.default, {
                    allowedRoutes: (0, c.getCallbackButtonAllowedRoutes)(),
                    currentRoute: t
                }, r.default.createElement(u.default, {
                    videoButton: !0,
                    color: (0, c.getCallbackButtonColor)(a),
                    onClick: function() {
                        (0, c.onButtonClick)(!0)
                    },
                    isCallButtonEnabled: I
                })) : null, !y && E == d.CallPopupStatus.DISABLED || !E || f.default.mobileOrTablet() ? null : r.default.createElement(l.default, {
                    allowedRoutes: (0, c.getCallbackPopupAllowedRoutes)(),
                    currentRoute: t
                }, r.default.createElement(s.default, {
                    callTime: m,
                    checkEula: !!g,
                    eulaLink: (0, c.getEulaLink)(h, v),
                    onSubmit: c.onPopupSubmitClick,
                    onClose: c.onPopupCloseClick,
                    isDelayed: !(!_ || !A),
                    delayedCallPeriods: (0, c.getDelayedCallPeriods)(A, {
                        month: "long",
                        day: "numeric"
                    }),
                    delayedCallError: (0, c.getDelayedCallError)(b),
                    onDisabledSubmitClick: c.onDisabledSubmitClick,
                    color: o,
                    status: S,
                    error: w,
                    phone: O
                })))
            };
        p.propTypes = {
            route: o.default.string,
            isOnline: o.default.bool,
            callbackAvailable: o.default.bool,
            isDelayedCallback: o.default.bool,
            callTime: o.default.number,
            color: o.default.string,
            bubbleColor: o.default.string,
            button: o.default.bool,
            baseUrl: o.default.string,
            widgetId: o.default.string,
            eula: o.default.any,
            delayedCallStatus: o.default.any,
            separateForm: o.default.string,
            enableRequestVideocall: o.default.bool,
            videoCall: o.default.number,
            callbackStatus: o.default.oneOfType([o.default.string, function() {
                return null
            }]),
            callbackError: o.default.oneOfType([o.default.string, function() {
                return null
            }]),
            clientPhone: o.default.string
        };
        var h = (0, i.connect)((function(e, t) {
            return {
                route: e.app.route,
                isOnline: e.app.isOnline,
                callbackAvailable: e.callback.available,
                isDelayedCallback: e.callback.isDelayed,
                callbackStatus: e.callback.status,
                callbackError: e.callback.error,
                clientPhone: e.client.phone,
                callTime: e.settings.user.callback.time,
                color: e.settings.user.callbackButtonColor,
                bubbleColor: e.settings.user.bubbleColor,
                button: e.settings.user.callback.button,
                baseUrl: e.settings.system.baseUrl,
                widgetId: e.settings.system.widgetId,
                eula: e.settings.features.eula && !e.client.eulaAccepted,
                delayedCallStatus: e.callback.delayedStatus,
                separateForm: e.callback.separateForm,
                enableRequestVideocall: e.settings.features.enableRequestVideocall,
                videoCall: e.settings.features.modules ? e.settings.features.modules.videoCall : null
            }
        }), {})(p);
        t.default = h
    }, 58663: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.onPopupSubmitClick = t.onPopupCloseClick = t.onDisabledSubmitClick = t.onButtonClick = t.isVideoButton = t.getShowButton = t.getEulaLink = t.getDelayedCallPeriods = t.getDelayedCallError = t.getCallbackPopupAllowedRoutes = t.getCallbackButtonColor = t.getCallbackButtonAllowedRoutes = void 0;
        var r = a(n(78580)),
            i = n(52028),
            o = n(26932),
            l = n(21476),
            u = n(47060),
            s = n(54415),
            c = n(83170),
            d = n(20361),
            f = a(n(19955)),
            p = n(69882),
            h = a(n(91275)),
            v = n(33069),
            g = a(n(71323)),
            m = a(n(138)),
            _ = n(44145),
            y = n(47138),
            b = a(n(84726)),
            E = n(65465),
            T = a(n(2559));
        t.getCallbackButtonAllowedRoutes = function() {
            return [u.Route.LABEL]
        };
        t.onButtonClick = function(e) {
            if (!i.isDesignerEditor) {
                var t;
                if (o.userDispatchers.setCallHeaderText(null), o.appDispatchers.setChatOpenByClient(!0), e) E.messageActions.sendClientMessage((0, b.default)("webrtc_video_text_message")), o.transitionDispatchers.startTransition(d.ScriptName.OPEN_WIDGET), l.Router.next(u.RouterEvent.ToChat);
                else(0, r.default)(t = [y.CallPopupStatus.ENABLED, y.CallPopupStatus.ONLY_BUTTON_CLICK]).call(t, (0, _.getCallback)().separateForm) ? l.Router.next(u.RouterEvent.ToCallPopup) : (o.transitionDispatchers.startTransition(d.ScriptName.OPEN_WIDGET), l.Router.next(u.RouterEvent.ToCall), m.default.trackCallClick());
                s.Monitoring.telemetry(c.TelemetryName.CW_BUTTON_CLICK, {
                    param1: e ? "isVideo" : null
                })
            }
        };
        t.getShowButton = function(e, t) {
            return e && t && !f.default.mobileOrTablet() && !(0, p.isChatPage)() && !(0, p.isAppCobrowse)() || i.isDesignerEditor
        };
        t.isVideoButton = function(e, t, n) {
            return e && t && n && !i.isDesignerEditor && !f.default.mobileOrTablet() && !(0, p.isChatPage)() && !(0, p.isAppCobrowse)()
        };
        t.getCallbackButtonColor = function(e) {
            return e || T.default.GREEN_80
        };
        t.getCallbackPopupAllowedRoutes = function() {
            return [u.Route.CALL_POPUP]
        };
        t.getEulaLink = function(e, t) {
            return window.parent.location.protocol + e + "/script/eula/" + t
        };
        t.onPopupCloseClick = function() {
            s.Monitoring.telemetry(c.TelemetryName.CWP_CLOSE_CLICK), l.Router.next(u.RouterEvent.CloseWindow)
        };
        t.onPopupSubmitClick = function(e, t) {
            g.default.acceptEula(), t ? ((0, v.requestDelayedCall)({
                phone: e,
                dateTime: t
            }), o.transitionDispatchers.startTransition(d.ScriptName.OPEN_WIDGET), l.Router.next(u.RouterEvent.Submit), s.Monitoring.telemetry(c.TelemetryName.CWP_SUBMIT, {
                param1: "delayed"
            })) : (h.default.startCall(e), setTimeout((function() {
                o.transitionDispatchers.startTransition(d.ScriptName.OPEN_WIDGET), l.Router.next(u.RouterEvent.Submit)
            }), 1e3), s.Monitoring.telemetry(c.TelemetryName.CWP_SUBMIT, {
                param1: "direct"
            }))
        };
        t.getDelayedCallPeriods = function(e, t) {
            return (0, v.formatPeriodsToSelectModel)(e, t)
        };
        t.getDelayedCallError = function(e) {
            return (0, v.isErrorStatusCode)(e)
        };
        t.onDisabledSubmitClick = function() {
            s.Monitoring.telemetry(c.TelemetryName.CWP_DISABLED_SUBMIT_CLICK)
        }
    }, 36071: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var i = r(n(77766)),
            o = r(n(94473)),
            l = r(n(26394)),
            u = r(n(69198)),
            s = r(n(51379)),
            c = r(n(214)),
            d = r(n(66380)),
            f = r(n(54720)),
            p = r(n(91275)),
            h = r(n(39976)),
            v = r(n(1039)),
            g = r(n(84726)),
            m = r(n(19955)),
            _ = n(21476),
            y = n(47060),
            b = n(31984),
            E = r(n(71323)),
            T = n(54415),
            C = n(83170);

        function S(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, d.default)(e);
                if (t) {
                    var i = (0, d.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, c.default)(this, n)
            }
        }
        var w = r(n(4855)).default.name("Call"),
            O = function(e) {
                (0, s.default)(n, e);
                var t = S(n);

                function n() {
                    return (0, l.default)(this, n), t.apply(this, arguments)
                }
                return (0, u.default)(n, [{
                    key: "initTimer",
                    value: function(e, t, n) {
                        this.callTimer = h.default, this.callTimer.timerText = e, this.callTimer.seconds = v.default.callback_settings.time, this.callTimer.on("handling", t), this.callTimer.on("tick", n)
                    }
                }, {
                    key: "setTimerNull",
                    value: function() {
                        this.callTimer && this.callTimer.setTimerNull()
                    }
                }, {
                    key: "startTimer",
                    value: function() {
                        this.callTimer && this.callTimer.handle("start_timer")
                    }
                }, {
                    key: "submitPhone",
                    value: function(e, t, n) {
                        var a = this._inputPhone;
                        if (w.log("submitPhone", t, n, a, this._inputPhone), a && a.isValid()) {
                            m.default.tablet() && a && a.base && a.base.blur();
                            var r, o = "+" + a.getFullPhoneNumber(),
                                l = "";
                            if (l = n ? this.getMaskedPhoneByCode(o, n) : (0, b.getMaskedPhone)(o), !this.props.eulaAccepted && v.default.eula) this.phone = o, E.default.showEula((0, i.default)(r = "".concat((0, g.default)("eula_phone"), "<br/>")).call(r, l), null, "cb"), _.Router.next(y.RouterEvent.Submit);
                            else this.setTimerNull(), this.startCall(o, t), T.Monitoring.telemetry(C.TelemetryName.CWP_SUBMIT, {
                                param1: "direct"
                            })
                        } else T.Monitoring.telemetry(C.TelemetryName.CW_ERROR_SUBMIT_PHONE)
                    }
                }, {
                    key: "startCall",
                    value: function(e, t, n) {
                        w.log("start call", e, t), p.default.startCall(e, t, n)
                    }
                }, {
                    key: "getMaskedPhoneByCode",
                    value: function(e, t) {
                        if (w.log("getMaskedPhoneByCode", e, t), !e) return e;
                        var n = this.getPhoneNumberInfoByCode(e, t);
                        return w.log("phoneNumberCode", n), n ? "+" + t + " " + (0, b.getMaskedValue)(n.innerNumber, n.phoneFormat) : null
                    }
                }, {
                    key: "getPhoneNumberInfoByCode",
                    value: function(e, t) {
                        var n = v.default.callback_settings.countries,
                            a = null == n ? void 0 : (0, o.default)(n).call(n, (function(e) {
                                return e.phone_code === t
                            }));
                        return w.log("getPhoneNumberInfoByCode", a, t), a ? (0, b.getPhoneInfo)(a, e) : null
                    }
                }]), n
            }(f.default);
        t.default = O
    }, 81455: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var i = r(n(77766)),
            o = r(n(51942)),
            l = r(n(26394)),
            u = r(n(69198)),
            s = r(n(5824)),
            c = r(n(51379)),
            d = r(n(214)),
            f = r(n(66380)),
            p = r(n(98661)),
            h = n(31984),
            v = r(n(1039)),
            g = r(n(84726)),
            m = r(n(4855)),
            _ = r(n(36071)),
            y = r(n(51313)),
            b = r(n(13639)),
            E = r(n(32325)),
            T = r(n(40704)),
            C = r(n(46528)),
            S = n(21476),
            w = n(47060),
            O = n(65465),
            A = n(88928),
            I = r(n(19955)),
            R = n(92560),
            M = n(54415),
            k = r(n(87538)),
            N = r(n(43893)),
            x = n(81152);

        function P(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, f.default)(e);
                if (t) {
                    var i = (0, f.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, d.default)(this, n)
            }
        }
        var L = m.default.name("CallChat"),
            D = "chat_popup",
            j = function(e) {
                (0, c.default)(n, e);
                var t = P(n);

                function n(e) {
                    var a;
                    return (0, l.default)(this, n), (a = t.call(this, e)).state = {
                        mode: !1,
                        pin: !0,
                        close: !0,
                        error: !1,
                        hide: !1,
                        is_invalid_phone: !1,
                        submit: !1,
                        blocked: !1
                    }, a._blockTimeout = null, a._inputPhone = null, a._timer = null, a.processState = a.processState.bind((0, s.default)(a)), a
                }
                return (0, u.default)(n, [{
                    key: "componentDidUpdate",
                    value: function(e) {
                        this.props.route !== w.Route.LABEL && (this.props.callback !== e.callback && this.processState(), this.props.route === w.Route.CHAT_CALL && this.props.display && !this.state.hide && this._inputPhone && this._inputPhone.focus())
                    }
                }, {
                    key: "componentDidMount",
                    value: function() {
                        var e = this;
                        if ((0, R.isEmpty)(v.default.callback_settings)) L.log("Callwidget not configured yet.");
                        else {
                            this.initTimer(this._timer, (function(t) {
                                L.log("timer_finished", e.state.mode, e._timer), "timer_finished" === t.inputType && "cw_wait" === e.state.mode && e.setState({
                                    mode: "cw_connecting"
                                })
                            }), (function(t) {
                                e.setState({
                                    timer: t.toFixed(1).replace(".", ",")
                                })
                            })), this.processState(!0), this._inputPhone && (this._inputPhone.subscribe("onEnter", (function(t, n) {
                                e.submitCall(t, D, n)
                            })), this._inputPhone.subscribe("onChange", (function() {
                                e.setState({
                                    is_invalid_phone: !e._inputPhone.isValid()
                                })
                            })));
                            S.Router.on("submit_eula_success", (function t(n) {
                                L.log("submit_eula_success", n), n === w.Route.CHAT_CALL && (e.submitPhone(null, D), S.Router.off("submit_eula_success", t), M.Monitoring.telemetry("startCall_eula"))
                            }))
                        }
                    }
                }, {
                    key: "processState",
                    value: function(e) {
                        var t = this.getState(e);
                        (0, A.shallowEqual)(t, this.state) && this.props.callback.status === this.state.mode || this.setState(t)
                    }
                }, {
                    key: "getState",
                    value: function(e) {
                        var t = {
                            mode: this.props.callback.webRTCCallStatus || this.props.callback.status,
                            error: !1,
                            hide: !1,
                            isDelayedCall: !!this.props.callback.isDelayed,
                            delayedCallPeriods: this.props.callback.delayedPeriods,
                            delayedCallStatus: this.props.callback.delayedStatus
                        };
                        switch (t.mode) {
                            case "cw_wait":
                                var n;
                                if (e && !this.props.callback.webRTCCallStatus) O.messageActions.systemCallMessage((0, i.default)(n = "".concat((0, g.default)("cw_call_to"), " ")).call(n, (0, h.getMaskedPhone)(this.props.clientPhone)), x.MessageName.CALL_MESSAGE_START);
                                (0, o.default)(t, {
                                    hide: !1,
                                    pin: !1,
                                    close: !1,
                                    submit: !1
                                }), this.startTimer();
                                break;
                            case "cw_connecting":
                                (0, o.default)(t, {
                                    pin: !1,
                                    close: !1,
                                    hide: !1,
                                    submit: !1
                                }), this.setTimerNull();
                                break;
                            case "cw_connected":
                                t.hide = !0;
                                break;
                            case "cw_error":
                                (0, o.default)(t, {
                                    pin: !I.default.mobileOrTablet(),
                                    close: !0,
                                    submit: !1,
                                    error: this.props.callback.error
                                });
                                break;
                            case "cw_call_end":
                                this.setTimerNull(), (0, o.default)(t, {
                                    pin: !0,
                                    close: !0,
                                    submit: !1
                                })
                        }
                        return t
                    }
                }, {
                    key: "submitCall",
                    value: function(e, t, n) {
                        this.state.blocked || (this.submitPhone(e, t, n), M.Monitoring.telemetry("startCall_enter")), this.startBlockTimeout()
                    }
                }, {
                    key: "submitFormCall",
                    value: function(e) {
                        this.state.blocked || this.submitPhone(e, D, this._inputPhone.getCurrentCode()), this.startBlockTimeout()
                    }
                }, {
                    key: "startBlockTimeout",
                    value: function() {
                        var e = this;
                        this.setState({
                            blocked: !0
                        }, (function() {
                            clearTimeout(e._blockTimeout), e._blockTimeout = setTimeout((function() {
                                e.setState({
                                    blocked: !1
                                })
                            }), 3e3)
                        }))
                    }
                }, {
                    key: "renderInputForm",
                    value: function(e) {
                        var t = this,
                            n = this.state,
                            a = n.isDelayedCall,
                            r = n.delayedCallStatus,
                            i = n.delayedCallPeriods;
                        return a && !this.props.callback.webRTCCallStatus ? p.default.createElement(C.default, {
                            status: this.props.callback.status,
                            error: this.props.callback.error,
                            phone: this.props.clientPhone,
                            statusCode: r,
                            periods: i,
                            color: v.default.bubble_color
                        }) : -1 === ["cw_wait", "cw_connecting", "cw_connected"].indexOf(this.state.mode) ? p.default.createElement("jdiv", null, this.state.error ? p.default.createElement("jdiv", {
                            className: e.text
                        }, this.state.error) : p.default.createElement("jdiv", {
                            className: e.text
                        }, (0, g.default)("cw_weRecallAfter"), " ", v.default.callback_settings.time, " ", (0, g.default)((0, h.getTextSeconds)(v.default.callback_settings.time)), "!"), p.default.createElement("jdiv", {
                            className: e.callBox
                        }, p.default.createElement(y.default, {
                            type: "inForm",
                            status: this.props.callback.status,
                            error: this.props.callback.error,
                            phone: this.props.clientPhone,
                            ref: function(e) {
                                t._inputPhone = e
                            }
                        }), p.default.createElement(b.default, {
                            click: function(e) {
                                return t.submitFormCall(e)
                            },
                            disabled: this.state.blocked || this.state.submit,
                            type: "input-button",
                            iconName: "icon-v-email",
                            ref: function(e) {
                                t._submitBtn = e
                            }
                        }), p.default.createElement("jdiv", {
                            id: "callme-start-call",
                            className: this.state.blocked || this.state.is_invalid_phone || this.state.submit ? "" : "can-call",
                            onPointerDown: function(e) {
                                return t.submitFormCall(e)
                            }
                        }))) : void 0
                    }
                }, {
                    key: "getRenderData",
                    value: function() {
                        return {
                            styles: {
                                main: [{
                                    main: !0
                                }, {
                                    display: "cw_connected" === this.state.mode ? "none" : "block"
                                }],
                                waitBox: [{
                                    waitBox: !0
                                }, {
                                    display: "cw_wait" === this.state.mode ? "block" : "none"
                                }],
                                timerBox: [{
                                    timerBox: !0
                                }]
                            },
                            style: k.default
                        }
                    }
                }, {
                    key: "renderData",
                    value: function(e, t) {
                        if (!(0, R.isEmpty)(v.default.callback_settings)) return p.default.createElement("jdiv", t.main, this.renderInputForm(k.default), p.default.createElement("jdiv", t.waitBox, p.default.createElement("jdiv", {
                            className: k.default.waitText
                        }, " ", (0, g.default)("cw_callAfter")), p.default.createElement("jdiv", t.timerBox, p.default.createElement("jdiv", {
                            className: k.default.count
                        }, this.state.timer || v.default.callback_settings.time)), p.default.createElement("jdiv", {
                            className: k.default.waitText
                        }, " ", (0, g.default)((0, h.getTextSeconds)(v.default.callback_settings.time)))), p.default.createElement("jdiv", {
                            style: {
                                display: "cw_connecting" === this.state.mode ? "block" : "none"
                            }
                        }, p.default.createElement("jdiv", {
                            className: k.default.waitText
                        }, (0, g.default)("cw_connecting")), p.default.createElement("jdiv", {
                            className: k.default.connectBox
                        }, p.default.createElement(T.default, {
                            color: "#fff",
                            iconName: "icon-connect2",
                            className: k.default.connectIcon
                        }), p.default.createElement("jdiv", {
                            className: N.default.pinBox
                        }, p.default.createElement("jdiv", {
                            className: N.default.pin1
                        }), p.default.createElement("jdiv", {
                            className: N.default.pin2
                        }), p.default.createElement("jdiv", {
                            className: N.default.pin3
                        })))), p.default.createElement("jdiv", {
                            className: k.default.pin,
                            style: {
                                display: this.state.pin ? "block" : "none"
                            }
                        }), this.state.close && p.default.createElement(E.default, {
                            onClose: function(e) {
                                e.stopPropagation()
                            }
                        }));
                        L.log("Callwidget not configured yet.")
                    }
                }]), n
            }(_.default),
            B = (0, A.connect)((function(e) {
                return {
                    callback: e.callback,
                    clientPhone: e.client.phone,
                    eulaAccepted: e.client.eulaAccepted,
                    showEula: e.app.showEula
                }
            }))(j);
        t.default = B
    }, 22129: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.CallbackDelayedBodyInfo = t.CallbackChatDelayedBodyInfo = void 0;
        var r = a(n(98661)),
            i = a(n(99645));
        t.CallbackDelayedBodyInfo = function(e) {
            var t = e.children;
            return r.default.createElement("jdiv", {
                className: i.default.bodyInfo
            }, r.default.createElement("jdiv", {
                className: i.default.bodyInfoText,
                dangerouslySetInnerHTML: {
                    __html: t
                }
            }))
        };
        t.CallbackChatDelayedBodyInfo = function(e) {
            var t = e.children;
            return r.default.createElement("jdiv", {
                className: i.default.bodyInfoChat
            }, r.default.createElement("jdiv", {
                className: i.default.bodyInfoChatText,
                dangerouslySetInnerHTML: {
                    __html: t
                }
            }))
        }
    }, 93645: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var i = r(n(26394)),
            o = r(n(69198)),
            l = r(n(5824)),
            u = r(n(51379)),
            s = r(n(214)),
            c = r(n(66380)),
            d = r(n(87672)),
            f = r(n(98661)),
            p = n(33069),
            h = r(n(91275)),
            v = n(21476),
            g = n(80161),
            m = n(54415),
            _ = n(83170);

        function y(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, c.default)(e);
                if (t) {
                    var i = (0, c.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, s.default)(this, n)
            }
        }
        var b = function(e) {
            (0, u.default)(n, e);
            var t = y(n);

            function n(e) {
                var a;
                return (0, i.default)(this, n), a = t.call(this, e), (0, d.default)((0, l.default)(a), "onSubmit", (function() {
                    var e = a.state,
                        t = e.activePeriodIndex,
                        n = e.phoneNumber,
                        r = (e.eulaAccepted, a.state.periods[t].value),
                        i = n;
                    a.state.phoneInvalid || h.default.submitShowEula(i) || (h.default.checkConnection((function() {
                        (0, p.requestDelayedCall)({
                            dateTime: r,
                            phone: i
                        })
                    })), m.Monitoring.telemetry(_.TelemetryName.CWP_SUBMIT, {
                        param1: "delayed"
                    }))
                })), (0, d.default)((0, l.default)(a), "onPeriodChange", (function(e) {
                    var t = e.activeOptionIndex;
                    a.setState({
                        activePeriodIndex: t
                    })
                })), (0, d.default)((0, l.default)(a), "onPhoneChange", (function(e) {
                    var t = e.invalidPhone,
                        n = e.value,
                        r = e.code;
                    a.setState({
                        phoneInvalid: t,
                        phoneNumber: n,
                        phoneCode: r
                    })
                })), a.state = {
                    periods: (0, p.formatPeriodsToSelectModel)(a.props.periods),
                    activePeriodIndex: 0,
                    phoneInvalid: !0
                }, a
            }
            return (0, o.default)(n, [{
                key: "componentDidMount",
                value: function() {
                    g.RouterUtils.needToShowEula() && v.Router.on("submit_eula_success", function() {
                        this.onSubmit()
                    }.bind(this))
                }
            }, {
                key: "componentWillReceiveProps",
                value: function(e) {
                    var t = e.periods,
                        n = e.phone,
                        a = {};
                    a.periods = (0, p.formatPeriodsToSelectModel)(t), n && n !== this.state.phone && (a.phoneNumber = n.replace(/\+/, "")), this.setState(a)
                }
            }]), n
        }(f.default.Component);
        t.default = b
    }, 46528: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var i = r(n(26394)),
            o = r(n(69198)),
            l = r(n(51379)),
            u = r(n(214)),
            s = r(n(66380)),
            c = r(n(98661)),
            d = r(n(84726)),
            f = r(n(51313)),
            p = r(n(87316)),
            h = r(n(66400)),
            v = r(n(93645)),
            g = n(22129),
            m = n(33069),
            _ = r(n(50732)),
            y = n(44145),
            b = n(81152);

        function E(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, s.default)(e);
                if (t) {
                    var i = (0, s.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, u.default)(this, n)
            }
        }
        var T = function(e) {
            (0, l.default)(n, e);
            var t = E(n);

            function n() {
                return (0, i.default)(this, n), t.apply(this, arguments)
            }
            return (0, o.default)(n, [{
                key: "render",
                value: function() {
                    var e = this.props,
                        t = e.statusCode,
                        n = e.color,
                        a = e.status,
                        r = e.error,
                        i = e.phone,
                        o = this.state,
                        l = o.periods,
                        u = o.activePeriodIndex,
                        s = t === m.DELAYED_CALL_STATUS.wait,
                        v = s,
                        E = (0, d.default)("callback_delayed_title");
                    if ((0, m.isErrorStatusCode)(t) && (E = (0, d.default)("callback_delayed_submit_fail")), t === m.DELAYED_CALL_STATUS.success) {
                        var T = (0, y.getLastMessageByName)(b.MessageName.DELAYED_CALL_SUCCESS);
                        return c.default.createElement(g.CallbackChatDelayedBodyInfo, {
                            mode: "chat"
                        }, (null == T ? void 0 : T.text) || (0, d.default)("callback_delayed_submit_success"))
                    }
                    return c.default.createElement("jdiv", {
                        className: _.default.body
                    }, c.default.createElement("jdiv", {
                        className: _.default.message
                    }, E), c.default.createElement(p.default, {
                        theme: "inset",
                        height: "sm",
                        invalid: (0, m.isErrorStatusCode)(t),
                        disabled: s,
                        classNameWrap: _.default.periodSelectWrap,
                        activeOptionIndex: u,
                        options: l,
                        onChange: this.onPeriodChange,
                        color: n
                    }), c.default.createElement(f.default, {
                        type: "inForm",
                        status: a,
                        error: r,
                        phone: i,
                        classNameContainer: _.default.classNameInputPhone,
                        onChange: this.onPhoneChange,
                        onEnter: this.onSubmit
                    }), c.default.createElement(h.default, {
                        height: "sm",
                        widthFluid: !0,
                        disabled: v,
                        onClick: this.onSubmit
                    }, (0, d.default)("callback_delayed_button_submit")))
                }
            }]), n
        }(v.default);
        t.default = T
    }, 48639: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var i = r(n(94473)),
            o = r(n(20116)),
            l = r(n(86902)),
            u = r(n(26394)),
            s = r(n(69198)),
            c = r(n(5824)),
            d = r(n(51379)),
            f = r(n(214)),
            p = r(n(66380)),
            h = r(n(54720)),
            v = n(21951),
            g = n(67597),
            m = n(92560),
            _ = n(45950),
            y = r(n(1039)),
            b = r(n(19955)),
            E = r(n(84726)),
            T = n(31984),
            C = n(97615),
            S = n(21476);

        function w(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, p.default)(e);
                if (t) {
                    var i = (0, p.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, f.default)(this, n)
            }
        }
        var O = function(e) {
            (0, d.default)(n, e);
            var t = w(n);

            function n(e) {
                var a;
                return (0, u.default)(this, n), a = t.call(this, e), (0, m.isEmpty)(y.default.callback_settings) ? (console.log("Callwidget not configured yet."), (0, f.default)(a)) : (a.parseCurrentPhone(), a.initState(), a.documentOnClicked = a.documentOnClicked.bind((0, c.default)(a)), a.documentOnKeyPress = a.documentOnKeyPress.bind((0, c.default)(a)), a._input = null, a.linkRefs = {}, a)
            }
            return (0, s.default)(n, [{
                key: "componentDidUpdate",
                value: function(e) {
                    if ("cw_error" === this.props.status && this.props.error === (0, E.default)("cw_call_forward")) return this.setState({
                        number: ""
                    });
                    this.props.phone !== e.phone && (this.parseCurrentPhone(), this.initState())
                }
            }, {
                key: "componentDidMount",
                value: function() {
                    var e = this;
                    this.state.currentCountry.phone_format && this.setNumber(), S.Router.on("route_change", (function() {
                        e.props.clientPhone && !e.state.number && e.initState()
                    })), this.triggerOnChangeProp()
                }
            }, {
                key: "initState",
                value: function() {
                    this.state = {
                        number: this.getCurrentNumber(),
                        showList: !1,
                        errorPhone: !1,
                        countries: this.getAllowCountries(),
                        currentCountry: this.getCurrentCountry(),
                        placeholder: this.getCurrentCountry().phone_format,
                        color: y.default.bubble_color || "green"
                    }
                }
            }, {
                key: "parseCurrentPhone",
                value: function() {
                    this.props.clientPhone && (this.clientPhoneInfo = (0, T.getPhoneNumberInfo)(this.props.clientPhone))
                }
            }, {
                key: "getCurrentNumber",
                value: function() {
                    return this.clientPhoneInfo ? this.clientPhoneInfo.innerNumber : ""
                }
            }, {
                key: "getAllowCountries",
                value: function() {
                    return this.countries = this.countries || (0, _.sortBy)(y.default.callback_settings.countries, "name")
                }
            }, {
                key: "getCurrentCountry",
                value: function() {
                    var e, t;
                    return this.clientPhoneInfo ? t = this.clientPhoneInfo.countryCode : y.default.geoip && (t = y.default.geoip.split(";")[0]), (0, i.default)(e = this.getAllowCountries()).call(e, (function(e) {
                        return e.code === t
                    })) || this.getAllowCountries()[0]
                }
            }, {
                key: "toggleCountriesList",
                value: function(e) {
                    this.state.countries.length < 2 || (this.state.showList ? this.hideCountriesList() : this.showCountriesList(), e.stopPropagation())
                }
            }, {
                key: "showCountriesList",
                value: function() {
                    this.setState({
                        showList: !0,
                        isFocusedInput: !0
                    }), (0, v.addListener)(window.parent.document, "keypress", this.documentOnKeyPress), (0, v.addListener)(window.parent.document, "click", this.documentOnClicked)
                }
            }, {
                key: "hideCountriesList",
                value: function() {
                    this.setState({
                        showList: !1,
                        isFocusedInput: !1
                    }), (0, v.removeEvent)(window.parent.document, "click", this.documentOnClicked), (0, v.removeEvent)(window.parent.document, "keypress", this.documentOnKeyPress)
                }
            }, {
                key: "validPhoneNumber",
                value: function() {
                    if (this._input && this.state.currentCountry.phone_format) {
                        var e = this.state.currentCountry.phone_format,
                            t = this._input && this._input.value.toString();
                        return (0, T.checkPhoneLength)(t, e, this.state.currentCountry.code)
                    }
                    return this.getFullPhoneNumber().length > 9 && this.getFullPhoneNumber().length < 16
                }
            }, {
                key: "getFullPhoneNumber",
                value: function() {
                    return this.state.currentCountry.phone_code + this.state.number.replace(/\D+/g, "")
                }
            }, {
                key: "getCurrentCode",
                value: function() {
                    return this.state.currentCountry.phone_code
                }
            }, {
                key: "isShowErrorState",
                value: function() {
                    return !this.state.number || 0 === this.state.number.length || !this.validPhoneNumber()
                }
            }, {
                key: "inputOnBlur",
                value: function() {
                    this.setState({
                        isFocusedInput: !1,
                        invalidPhone: this.isShowErrorState()
                    })
                }
            }, {
                key: "inputOnFocus",
                value: function() {
                    this.setState({
                        isFocusedInput: !0,
                        showList: !1
                    })
                }
            }, {
                key: "triggerOnChangeProp",
                value: function() {
                    var e = this.props.onChange;
                    void 0 !== e && e({
                        value: this.getFullPhoneNumber(),
                        invalidPhone: this.isShowErrorState(),
                        code: this.getCurrentCode()
                    })
                }
            }, {
                key: "triggerOnEnterProp",
                value: function() {
                    var e = this.props.onEnter;
                    void 0 !== e && e()
                }
            }, {
                key: "inputOnInput",
                value: function() {
                    var e = this;
                    this.setNumber((function() {
                        e.setState({
                            invalidPhone: e.isShowErrorState()
                        }), e.trigger("onChange", e._input && e._input.value.toString().replace(/\D+/g, "")), e.triggerOnChangeProp()
                    }))
                }
            }, {
                key: "inputPhoneKeyUp",
                value: function(e) {
                    var t = this;
                    this.setNumber((function() {
                        "keyup" !== e.type || 13 !== e.keyCode && 13 !== e.which || (t.validPhoneNumber() ? (t.trigger("onEnter", t.getFullPhoneNumber(), t.state.currentCountry), t.triggerOnEnterProp()) : t.setState({
                            invalidPhone: !0
                        }))
                    }))
                }
            }, {
                key: "codeOnClick",
                value: function() {
                    b.default.desktop() && this._input && this._input.focus()
                }
            }, {
                key: "documentOnKeyPress",
                value: function(e) {
                    var t, n = this.getChar(e),
                        a = (0, o.default)(t = (0, l.default)(this.linkRefs)).call(t, (function(e) {
                            return "link_" === e.substr(0, 5)
                        })),
                        r = (0, i.default)(a).call(a, (function(e) {
                            return e.substr(5, 1).toUpperCase() === n.toUpperCase()
                        }));
                    r && this.linkRefs[r].scrollIntoView(!0)
                }
            }, {
                key: "documentOnClicked",
                value: function(e) {
                    e.target.closest("#countryList") || this.hideCountriesList()
                }
            }, {
                key: "getChar",
                value: function(e) {
                    return null == e.which ? e.keyCode < 32 ? null : String.fromCharCode(e.keyCode) : 0 != e.which && 0 != e.charCode ? e.which < 32 ? null : String.fromCharCode(e.which) : null
                }
            }, {
                key: "countrySelect",
                value: function(e) {
                    var t = this,
                        n = e.delegateTarget && e.delegateTarget.getAttribute("data-code") || e.target.value;
                    this.setNumber((function() {
                        var e, a = (0, i.default)(e = t.state.countries).call(e, (function(e) {
                            return e.code === n
                        }));
                        t.setState({
                            currentCountry: a,
                            showList: !1,
                            placeholder: a.phone_format,
                            invalidPhone: t.isShowErrorState()
                        }), b.default.desktop() && t._input && t._input.focus(), t.triggerOnChangeProp()
                    }))
                }
            }, {
                key: "getFlagIconLink",
                value: function(e) {
                    var t = "/images/flags/".concat(e, ".png");
                    return 'url("' + (C.EnvironmentManager.isDevelopment() ? "/public" + t : (0, g.staticUrl)(t, !0)) + '")'
                }
            }, {
                key: "setNumber",
                value: function(e) {
                    var t = this._input && this._input.value.toString();
                    this.setState({
                        number: this.getMaskedNumber(t)
                    }, (function() {
                        e && e()
                    }))
                }
            }, {
                key: "getMaskedNumber",
                value: function(e) {
                    return (0, T.getMaskedValue)(e, this.state.currentCountry.phone_format)
                }
            }, {
                key: "focus",
                value: function() {
                    b.default.desktop() && this._input && this._input.focus()
                }
            }, {
                key: "isValid",
                value: function() {
                    var e = this.validPhoneNumber();
                    return this.setState({
                        invalidPhone: !e
                    }), e
                }
            }, {
                key: "numberMaxLength",
                value: function() {
                    return this.state.currentCountry.phone_format ? this.state.currentCountry.phone_format.length : 15 - this.state.currentCountry.phone_code.length
                }
            }]), n
        }(h.default);
        t.default = O
    }, 51313: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var i = r(n(2991)),
            o = r(n(5872)),
            l = r(n(26394)),
            u = r(n(69198)),
            s = r(n(51379)),
            c = r(n(214)),
            d = r(n(66380)),
            f = r(n(87672)),
            p = r(n(98661)),
            h = r(n(48639)),
            v = r(n(72953)),
            g = r(n(88155)),
            m = r(n(94184)),
            _ = r(n(40704));

        function y(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, d.default)(e);
                if (t) {
                    var i = (0, d.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, c.default)(this, n)
            }
        }
        var b = function(e) {
            (0, s.default)(n, e);
            var t = y(n);

            function n() {
                return (0, l.default)(this, n), t.apply(this, arguments)
            }
            return (0, u.default)(n, [{
                key: "getRenderData",
                value: function() {
                    return {
                        styles: {
                            container: [{
                                container: !0,
                                __singleMod: "single" === this.props.type,
                                __inFormMod: "inForm" === this.props.type
                            }],
                            inputWrap: [(0, f.default)({
                                inputWrap: !0,
                                __focused: this.state.isFocusedInput,
                                __error: !this.state.isFocusedInput && this.state.invalidPhone,
                                __alone: 1 === this.state.countries.length
                            }, "_" + this.state.color, !(!this.state.color || "green" === this.state.color))],
                            input: [{
                                phoneInput: !0
                            }],
                            countryWrap: [{
                                countryWrap: !0,
                                _isScroll: this.state.countries.length > 4
                            }, {
                                display: this.state.showList ? "block" : "none"
                            }]
                        },
                        style: v.default
                    }
                }
            }, {
                key: "renderCountryList",
                value: function(e, t) {
                    var n, a = this;
                    return p.default.createElement("jdiv", {
                        className: v.default.countryList,
                        onPointerDown: this.delegate("listItem", this.countrySelect.bind(this))
                    }, (0, i.default)(n = this.state.countries).call(n, (function(e, t) {
                        return p.default.createElement("jdiv", {
                            className: v.default.listItem,
                            key: t,
                            dgName: "listItem",
                            "data-code": e.code,
                            ref: function(t) {
                                a.linkRefs["link_" + e.name] = t
                            }
                        }, p.default.createElement("jdiv", {
                            className: v.default.flagIcon + " " + v.default.list,
                            style: {
                                backgroundImage: a.getFlagIconLink(e.code)
                            }
                        }), p.default.createElement("jdiv", {
                            className: v.default.countryName
                        }, e.name), p.default.createElement("jdiv", {
                            className: v.default.countryCode
                        }, "+" + e.phone_code))
                    })))
                }
            }, {
                key: "renderData",
                value: function(e, t) {
                    var n = this,
                        a = (0, m.default)(v.default.flagIcon, this.props.classNameIcon),
                        r = (0, m.default)(t.container.className, this.props.classNameContainer, {});
                    return p.default.createElement("jdiv", (0, o.default)({}, t.container, {
                        className: r
                    }), p.default.createElement("jdiv", t.inputWrap, p.default.createElement("jdiv", {
                        className: v.default.flagWrap,
                        onClick: this.toggleCountriesList.bind(this)
                    }, p.default.createElement("jdiv", {
                        className: a,
                        style: {
                            backgroundImage: this.getFlagIconLink(this.state.currentCountry.code)
                        }
                    }), p.default.createElement("jdiv", {
                        className: v.default.flagArrow,
                        style: {
                            display: this.state.countries.length < 2 ? "none" : null
                        }
                    }, p.default.createElement(_.default, {
                        iconName: "icon-v",
                        color: "#959BA0",
                        hoverColor: "#222D38",
                        className: v.default.iconSelect
                    }))), p.default.createElement("jdiv", {
                        className: v.default.phoneCodeWrap,
                        onClick: this.codeOnClick.bind(this)
                    }, "+" + this.state.currentCountry.phone_code), p.default.createElement("input", (0, o.default)({}, t.input, {
                        onBlur: this.inputOnBlur.bind(this),
                        placeholder: this.state.placeholder,
                        onFocus: this.inputOnFocus.bind(this),
                        type: "text",
                        maxLength: this.numberMaxLength(),
                        value: this.getMaskedNumber(this.state.number),
                        onInput: this.inputOnInput.bind(this),
                        onKeyUp: this.inputPhoneKeyUp.bind(this),
                        "data-gramm": "false",
                        "data-gramm_editor": "false",
                        "data-enable-grammarly": "false",
                        ref: function(e) {
                            n._input = e
                        }
                    })), p.default.createElement("jdiv", t.countryWrap, this.state.countries.length > 4 ? p.default.createElement(g.default, {
                        railClass: v.default.rail,
                        position: "relative"
                    }, this.renderCountryList(e, t)) : this.renderCountryList(e, t))))
                }
            }]), n
        }(h.default);
        t.default = b, (0, f.default)(b, "defaultProps", {
            fillBorderAround: !0
        })
    }, 14945: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(5872)),
            i = a(n(87672)),
            o = a(n(98661)),
            l = a(n(90146)),
            u = a(n(45697)),
            s = a(n(94184)),
            c = n(90361),
            d = n(57930),
            f = a(n(40704)),
            p = a(n(84726)),
            h = n(94019),
            v = function(e) {
                var t, n = e.videoButton,
                    a = e.color,
                    u = e.onClick,
                    v = e.isCallButtonEnabled,
                    g = (0, h.useEnhanced)(),
                    m = g.labelBubble,
                    _ = g.callbackPosition;
                return o.default.createElement("jdiv", {
                    className: (0, s.default)((t = {}, (0, i.default)(t, l.default.wrap, !0), (0, i.default)(t, l.default._show, !0), (0, i.default)(t, l.default._powerBtn, m), (0, i.default)(t, l.default._powerBtnPositionLeft, "left" === _), (0, i.default)(t, "__jivoCallbackBtn", v), (0, i.default)(t, "__jivoVideoBtn", n), t)),
                    style: {
                        backgroundColor: a
                    },
                    onClick: u
                }, o.default.createElement("jdiv", (0, r.default)({
                    className: l.default.button,
                    style: {
                        backgroundColor: a
                    }
                }, (0, c.withLocator)(n ? d.Locator.CALLBACK_VIDEO_BUTTON : d.Locator.CALLBACK_BUTTON))), o.default.createElement("jdiv", {
                    className: l.default.iconWrap
                }, o.default.createElement(f.default, {
                    iconName: n ? "icon-video" : "icon-tube",
                    color: "#fff",
                    className: l.default.logoCallback
                }), n ? o.default.createElement("jdiv", {
                    className: l.default.popup
                }, (0, p.default)("webrtc_video_text_popup")) : null))
            };
        v.propTypes = {
            videoButton: u.default.bool,
            color: u.default.string,
            onClick: u.default.func,
            isCallButtonEnabled: u.default.bool
        };
        var g = o.default.memo(v);
        t.default = g
    }, 94019: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.useEnhanced = function() {
            var e = (0, u.useSelector)(o.selectLabelBubble),
                t = (0, u.useSelector)(o.selectWidgetOrientation),
                n = (0, u.useSelector)(o.selectWidgetPadding),
                a = (0, l.useState)(e ? (0, i.getPowerButtonDesktopPosition)(t, n) : "right"),
                s = (0, r.default)(a, 2),
                c = s[0],
                d = s[1];
            return (0, l.useEffect)((function() {
                e && d((0, i.getPowerButtonDesktopPosition)(t, n))
            }), [t, n]), {
                labelBubble: e,
                callbackPosition: c
            }
        };
        var r = a(n(18777)),
            i = n(80598),
            o = n(87692),
            l = n(98661),
            u = n(88928)
    }, 21651: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(77766)),
            u = o(n(5872)),
            s = o(n(18777)),
            c = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = w(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            d = o(n(13279)),
            f = o(n(45697)),
            p = n(90361),
            h = n(57930),
            v = o(n(40704)),
            g = o(n(51313)),
            m = o(n(66400)),
            _ = o(n(87316)),
            y = o(n(82656)),
            b = n(31984),
            E = n(53285),
            T = o(n(84726)),
            C = n(70010),
            S = n(44145);

        function w(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (w = function(e) {
                return e ? n : t
            })(e)
        }
        o(n(4855)).default.name("CallbackPopup");
        var O = function(e) {
            var t = e.checkEula,
                n = e.callTime,
                a = e.onSubmit,
                r = e.onClose,
                i = (e.eulaLink, e.color),
                o = e.status,
                f = e.error,
                w = e.phone,
                O = e.isDelayed,
                A = e.delayedCallError,
                I = e.delayedCallPeriods,
                R = e.onDisabledSubmitClick,
                M = (0, c.useState)(!1),
                k = (0, s.default)(M, 2),
                N = k[0],
                x = k[1],
                P = (0, c.useState)(!1),
                L = (0, s.default)(P, 2),
                D = L[0],
                j = L[1],
                B = (0, c.useState)(null),
                F = (0, s.default)(B, 2),
                U = F[0],
                H = F[1],
                W = (0, c.useState)(null),
                G = (0, s.default)(W, 2),
                z = G[0],
                V = G[1],
                q = (0, c.useState)(null),
                K = (0, s.default)(q, 2),
                Y = K[0],
                X = K[1],
                Z = (0, c.useState)(null),
                J = (0, s.default)(Z, 2),
                $ = J[0],
                Q = J[1],
                ee = (0, c.useRef)(null),
                te = (0, c.useRef)(null),
                ne = (0, c.useRef)(null);
            (0, c.useEffect)((function() {
                ne && ne.current && ne.current._input && ne.current._input.focus()
            }), []);
            var ae, re, ie, oe = function() {
                    return c.default.createElement("jdiv", {
                        className: d.default.input
                    }, c.default.createElement(g.default, {
                        type: "inForm",
                        status: o,
                        error: f,
                        phone: w,
                        onChange: function(e) {
                            var t = e.value,
                                n = e.invalidPhone;
                            n || H("+" + t), Q(!n)
                        },
                        onEnter: function(e) {
                            le && le()
                        },
                        ref: ne
                    }))
                },
                le = function() {
                    if (t && !N) j(!0);
                    else if (O) {
                        var e;
                        if (!z || !Y) {
                            var n = (0, E.getSelectedDateTime)(ee, te);
                            if (!n) return;
                            return void(a && a(U, n))
                        }
                        a && a(U, (0, l.default)(e = "".concat(z, "|")).call(e, Y))
                    } else a && a(U)
                },
                ue = (0, S.getUserSettings)().callHeaderText || (0, T.default)("cwPopupPutPhone");
            return c.default.createElement("jdiv", {
                className: d.default.wrap
            }, c.default.createElement("jdiv", {
                className: d.default.popup
            }, c.default.createElement("jdiv", {
                className: d.default.hand
            }), c.default.createElement("jdiv", {
                onClick: function() {
                    r && r()
                }
            }, c.default.createElement(v.default, (0, u.default)({
                iconName: "icon-close-chat",
                color: "#7D8999",
                hoverColor: "#7D8999",
                className: d.default.closeIcon
            }, (0, p.withLocator)(h.Locator.CLOSE_BUTTON)))), c.default.createElement("jdiv", {
                className: d.default.contentWrap
            }, c.default.createElement("jdiv", {
                className: d.default.title
            }, ue), O ? c.default.createElement("jdiv", {
                className: d.default.subtitle
            }, (0, T.default)("cwPopupTime")) : c.default.createElement("jdiv", {
                className: d.default.subtitle
            }, (0, T.default)("cw_callAfter"), " ", c.default.createElement("b", null, n), " " + (0, T.default)((0, b.getTextSeconds)(n))), O && I ? (ae = (0, E.getDelayedDays)(I), re = (0, E.getSelectedDay)(ee), ie = (0, E.getDelayedTimes)(I, z || (re ? re.value : null)), c.default.createElement("jdiv", {
                className: d.default.delayedWrap
            }, c.default.createElement("jdiv", {
                className: d.default.periodsWrap
            }, c.default.createElement("jdiv", null, (0, T.default)("lblCallMe")), c.default.createElement(_.default, {
                disabled: !1,
                classNameWrap: d.default.periodSelectWrap,
                invalid: A,
                options: ae,
                theme: "inset",
                onChange: function(e) {
                    var t = e.option;
                    V(t.value)
                },
                ref: ee,
                color: i,
                isCallbackPopup: !0
            }), c.default.createElement("jdiv", null, (0, T.default)("callback_delayed_period_delimiter")), c.default.createElement(_.default, {
                disabled: !1,
                classNameWrap: d.default.periodSelectWrap,
                invalid: A,
                options: ie,
                theme: "inset",
                onChange: function(e) {
                    var t = e.option;
                    X(t.value)
                },
                ref: te,
                color: i
            })), oe())) : oe(), c.default.createElement(m.default, {
                height: "md",
                widthFluid: !0,
                disabled: O && (!z || !Y) || !$ || t && !N || D || A,
                onDisabledClick: function() {
                    R && R()
                },
                onClick: le
            }, O ? (0, T.default)("callback_delayed_button_submit") : (0, T.default)("cw_callButtonText")), function() {
                if (!t) return null;
                var e = (0, C.getEulaState)();
                return c.default.createElement("jdiv", {
                    className: d.default.eula
                }, c.default.createElement(y.default, {
                    checked: N,
                    error: D,
                    onClick: function() {
                        x(!N), j(!1)
                    }
                }), c.default.createElement("jdiv", {
                    className: d.default.eulaText
                }, (0, C.getAgreementText)(e.agreementBasis), (0, C.getEulaLink)((function() {
                    (0, C.trackClick)()
                }))))
            }())))
        };
        O.propTypes = {
            checkEula: f.default.bool,
            callTime: f.default.number,
            onSubmit: f.default.func,
            onClose: f.default.func,
            eulaLink: f.default.string,
            color: f.default.string,
            isDelayed: f.default.bool,
            delayedCallError: f.default.bool,
            delayedCallPeriods: f.default.any,
            status: f.default.oneOfType([f.default.string, f.default.bool]),
            error: f.default.string,
            phone: f.default.string,
            onDisabledSubmitClick: f.default.func
        };
        var A = c.default.memo(O);
        t.default = A
    }, 53285: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.getSelectedTime = t.getSelectedDay = t.getSelectedDateTime = t.getDelayedTimes = t.getDelayedDays = void 0;
        var r = a(n(36384)),
            i = a(n(77766)),
            o = function(e) {
                if (!e) return [];
                for (var t = [], n = new r.default, a = 0; a < e.length; a++) {
                    var i = e[a].label.split(",")[0],
                        o = e[a].value.split("|")[0];
                    n.has(o) || (n.add(o), t.push({
                        label: " 1;8609H55 2@5<O" === i ? "!53>4=O" : i,
                        value: o
                    }))
                }
                return t
            };
        t.getDelayedDays = o;
        t.getDelayedTimes = function(e, t) {
            if (!e) return [];
            if (!t) {
                var n = o(e);
                if (!n.length) return [];
                t = n[0].value
            }
            for (var a = [], r = 0; r < e.length; r++) {
                var i = e[r].label,
                    l = e[r].value.split("|")[0],
                    u = e[r].value.split("|")[1];
                l === t && a.push({
                    label: " 1;8609H55 2@5<O" === i ? i : u,
                    value: u
                })
            }
            return a
        };
        t.getSelectedDay = function(e) {
            return e && e.current ? e.current.props.options[e.current.state.activeOptionIndex] : {
                label: null,
                value: null
            }
        };
        t.getSelectedTime = function(e) {
            return e && e.current ? e.current.props.options[e.current.state.activeOptionIndex] : {
                label: null,
                value: null
            }
        };
        t.getSelectedDateTime = function(e, t) {
            if (e.current && t.current) {
                var n, a = e.current.props.options[e.current.state.activeOptionIndex],
                    r = t.current.props.options[t.current.state.activeOptionIndex];
                if (a && a.value && r && r.value) return (0, i.default)(n = "".concat(a.value, "|")).call(n, r.value)
            }
        }
    }, 79601: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(87672)),
            u = o(n(18777)),
            s = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = x(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            c = n(88928),
            d = o(n(45697)),
            f = o(n(94184)),
            p = n(21721),
            h = n(97615),
            v = n(69882),
            g = n(73549),
            m = n(47060),
            _ = n(21476),
            y = o(n(81455)),
            b = o(n(1039)),
            E = o(n(22866)),
            T = o(n(41963)),
            C = o(n(19955)),
            S = o(n(36207)),
            w = o(n(62887)),
            O = o(n(905)),
            A = o(n(33744)),
            I = o(n(82521)),
            R = o(n(84726)),
            M = o(n(8972)),
            k = o(n(65885)),
            N = o(n(57597));

        function x(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (x = function(e) {
                return e ? n : t
            })(e)
        }
        var P = s.default.lazy((function() {
                return n.e(711).then(n.bind(n, 34285))
            })),
            L = s.default.lazy((function() {
                return n.e(772).then(n.bind(n, 93393))
            })),
            D = [m.Route.CHAT, m.Route.CHAT_CALL, m.Route.CHAT_EULA, m.Route.CHAT_MIN, m.Route.CHAT_SOCIAL, m.Route.CHAT_SETUP_CALL, m.Route.DEPARTMENTS, m.Route.INTRODUCE, m.Route.DEBUG],
            j = [m.Route.CHAT, m.Route.CHAT_CALL, m.Route.CHAT_SOCIAL],
            B = [m.Route.CHAT, m.Route.CHAT_CALL, m.Route.CHAT_SOCIAL],
            F = function(e) {
                var t, n, a, r, i, o = e.canRenderCall,
                    c = e.showHeaderText,
                    d = e.showBody,
                    x = e.isOnline,
                    F = e.widgetId,
                    U = e.hasIntegration,
                    H = e.route,
                    W = e.callbackStatus,
                    G = (0, s.useRef)(null),
                    z = (0, s.useState)({
                        inputHeight: 0
                    }),
                    V = (0, u.default)(z, 2),
                    q = V[0],
                    K = V[1],
                    Y = !C.default.mobileOrTablet() && (_.Router.getCurrentRoute() === m.Route.INTRODUCE || "cw_connected" === W && _.Router.getCurrentRoute() === m.Route.CALL),
                    X = function() {
                        if ("sb" !== U) return b.default.joint && (b.default.joint.vk || b.default.joint.fb || b.default.joint.sb) ? s.default.createElement(g.Path, {
                            paths: [m.Route.CHAT_SOCIAL],
                            withMountTransition: !0,
                            withUnmountTransition: !0,
                            transition: "PopupSlideUpEULA",
                            name: "ChatSocialPopup",
                            duration: 300,
                            cheap: !0
                        }, s.default.createElement("jdiv", {
                            className: N.default.popupFull
                        }, s.default.createElement(k.default, {
                            onClose: function() {
                                _.Router.next(m.RouterEvent.ToChat)
                            }
                        }))) : null
                    },
                    Z = function() {
                        return s.default.createElement(p.DisconnectAlert, {
                            route: m.Route.CHAT
                        }, s.default.createElement("jdiv", {
                            className: N.default.popup
                        }, o ? s.default.createElement(g.Path, {
                            paths: [m.Route.CHAT_CALL],
                            withMountTransition: !0,
                            withUnmountTransition: !0,
                            transition: "Fade",
                            name: "ChatBodyCallPopup",
                            style: {
                                top: 0,
                                position: "absolute",
                                width: "100%"
                            },
                            cheap: !0
                        }, s.default.createElement(y.default, {
                            route: "chat",
                            status: W,
                            display: !0
                        })) : null))
                    };
                return s.default.createElement("jdiv", {
                    className: (0, f.default)((t = {}, (0, l.default)(t, N.default.main, !C.default.mobileOrTablet() && !(0, v.isChatPage)()), (0, l.default)(t, N.default.mobile, C.default.mobileOrTablet() || (0, v.isChatPage)()), (0, l.default)(t, N.default.__static, Y), (0, l.default)(t, N.default.noShadow, !c), t)),
                    ref: G
                }, s.default.createElement(g.Path, {
                    paths: D,
                    name: "ChatHeader",
                    className: N.default.headerBox,
                    isStatic: Y
                }, s.default.createElement("jdiv", {
                    className: N.default.header
                }, s.default.createElement(w.default, {
                    showHeaderText: d
                }))), s.default.createElement(g.Path, {
                    paths: j,
                    name: "ChatBody"
                }, s.default.createElement("jdiv", {
                    className: (0, f.default)((i = {}, (0, l.default)(i, N.default.body, !0), (0, l.default)(i, N.default.show, d), i))
                }, s.default.createElement(M.default, {
                    inputHeight: q.inputHeight
                })), Z(), X()), function() {
                    var e;
                    if (-1 !== B.indexOf(H)) return s.default.createElement(g.Path, {
                        paths: B,
                        name: "ChatInput",
                        transition: "Fade",
                        shouldWait: 0,
                        className: (0, f.default)((e = {}, (0, l.default)(e, N.default.input, !0), (0, l.default)(e, N.default.show, !0), e))
                    }, s.default.createElement(O.default, {
                        onInputChangeHeight: function(e) {
                            q.inputHeight !== e && K({
                                inputHeight: e
                            })
                        }
                    }))
                }(), _.Router.needToShowIntroduceForm() ? s.default.createElement(g.Path, {
                    paths: [m.Route.INTRODUCE],
                    name: "Introduce",
                    withMountTransition: !0,
                    transition: _.Router.getPrevRoute() === m.Route.LABEL ? "FadeWithDelay" : "Fade",
                    waitBeforeUnmount: 100
                }, s.default.createElement("jdiv", {
                    className: (0, f.default)((r = {}, (0, l.default)(r, N.default.body, !0), (0, l.default)(r, N.default.show, d), r))
                }, b.default.new_widget_introduce ? s.default.createElement(I.default, null) : s.default.createElement(A.default, null))) : null, b.default.departments ? s.default.createElement(g.Path, {
                    paths: [m.Route.DEPARTMENTS],
                    name: "Departments",
                    shouldWait: 0,
                    className: (0, f.default)((a = {}, (0, l.default)(a, N.default.body, !0), (0, l.default)(a, N.default.show, d), a))
                }, s.default.createElement(T.default, null)) : null, b.default.eula ? s.default.createElement(g.Path, {
                    paths: [m.Route.CHAT_EULA],
                    withMountTransition: !0,
                    withUnmountTransition: !0,
                    transition: "PopupSlideUpEULA",
                    name: "ChatBodyEulaPopup",
                    fixed: !0,
                    duration: 300,
                    cheap: !0
                }, s.default.createElement("jdiv", {
                    className: N.default.popupFull
                }, s.default.createElement(S.default, {
                    showCallback: function() {},
                    hideCallback: function() {}
                }))) : null, H !== m.Route.DEBUG ? null : s.default.createElement(g.Path, {
                    paths: [m.Route.DEBUG],
                    name: "Debug",
                    shouldWait: 0,
                    className: (0, f.default)((n = {}, (0, l.default)(n, N.default.body, !0), (0, l.default)(n, N.default.show, d), n))
                }, s.default.createElement(s.default.Suspense, {
                    fallback: s.default.createElement("jdiv", {
                        className: N.default.loading
                    }, (0, R.default)("cb_loading"))
                }, s.default.createElement(P, {
                    online: x,
                    version: h.EnvironmentManager.getVersion(),
                    branch: h.EnvironmentManager.getBranch(),
                    widgetId: F,
                    hasErrors: E.default.getInstance().pageHasErrors(),
                    closeButtonClick: function() {
                        _.Router.next(m.RouterEvent.ToChat)
                    }
                }))), H !== m.Route.CHAT_SETUP_CALL ? null : s.default.createElement(g.Path, {
                    paths: [m.Route.CHAT_SETUP_CALL],
                    withMountTransition: !0,
                    withUnmountTransition: !0,
                    transition: "PopupSlideUpEULA",
                    name: "ChatBodySetupCallPopup",
                    fixed: !0,
                    duration: 300,
                    cheap: !0
                }, s.default.createElement("jdiv", {
                    className: N.default.popupFull
                }, s.default.createElement(s.default.Suspense, {
                    fallback: s.default.createElement("jdiv", {
                        className: N.default.loading
                    }, (0, R.default)("cb_loading"))
                }, s.default.createElement(L, null)))))
            };
        F.propTypes = {
            isOnline: d.default.bool,
            canRenderCall: d.default.bool.isRequired,
            showHeaderText: d.default.bool,
            showBody: d.default.bool,
            widgetId: d.default.string,
            hasIntegration: d.default.bool,
            route: d.default.string,
            callbackStatus: d.default.oneOfType([d.default.string, d.default.bool])
        };
        var U = (0, c.connect)((function(e) {
            return {
                isOnline: e.app.isOnline,
                widgetId: e.settings.system.widgetId,
                route: e.app.route,
                callbackStatus: e.callback.status,
                hasIntegration: e.client.hasIntegration
            }
        }))(F);
        t.default = U
    }, 82656: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = a(n(35595)),
            l = a(n(94184)),
            u = a(n(45697)),
            s = function(e) {
                var t, n = e.checked,
                    a = e.error,
                    u = e.onClick;
                return i.default.createElement("jdiv", {
                    className: (0, l.default)((t = {}, (0, r.default)(t, o.default.checkbox, !0), (0, r.default)(t, o.default._checked, n), (0, r.default)(t, o.default._error, a), t)),
                    onClick: function() {
                        u && u()
                    }
                })
            };
        s.propTypes = {
            checked: u.default.bool,
            error: u.default.bool,
            onClick: u.default.func,
            color: u.default.string
        };
        var c = i.default.memo(s);
        t.default = c
    }, 47548: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(5872)),
            i = a(n(87672)),
            o = a(n(98661)),
            l = a(n(94184)),
            u = a(n(45697)),
            s = n(57930),
            c = n(90361),
            d = a(n(4244)),
            f = a(n(5243)),
            p = a(n(40704)),
            h = function(e) {
                var t, n = e.onClick,
                    a = e.drag,
                    u = e.callEnabled,
                    h = e.inCall,
                    v = e.show,
                    g = e.ignoreDragHeight;
                return o.default.createElement(o.default.Fragment, null, o.default.createElement("jdiv", {
                    className: (0, l.default)((t = {}, (0, i.default)(t, f.default.wrap, !0), (0, i.default)(t, f.default.__show, v), (0, i.default)(t, f.default.__call, h), t)),
                    dir: "ltr",
                    id: "jivo_action"
                }, o.default.createElement("jdiv", {
                    className: f.default.closeButton,
                    onClick: n,
                    id: "jivo_close_button"
                }, o.default.createElement(p.default, (0, r.default)({
                    iconName: "icon-close-chat",
                    color: "#7D8999",
                    hoverColor: "#7D8999",
                    className: f.default.closeIcon
                }, (0, c.withLocator)(s.Locator.CLOSE_BUTTON))))), a ? o.default.createElement(d.default, {
                    isNarrow: u,
                    IsIgnoreHeight: g
                }) : null)
            };
        h.propTypes = {
            onClick: u.default.func.isRequired,
            drag: u.default.bool,
            callEnabled: u.default.bool,
            inCall: u.default.bool,
            show: u.default.bool,
            ignoreDragHeight: u.default.bool
        };
        var v = o.default.memo(h);
        t.default = v
    }, 16586: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = a(n(94184)),
            l = a(n(45697)),
            u = a(n(84726)),
            s = a(n(47084)),
            c = function(e) {
                var t, n = e.show,
                    a = void 0 === n ? 0 : n,
                    l = e.isMobile,
                    c = (0, o.default)((t = {}, (0, r.default)(t, s.default.main, !0), (0, r.default)(t, s.default.__mobile, l), t));
                return a ? i.default.createElement("jdiv", {
                    className: c
                }, i.default.createElement("jdiv", {
                    className: s.default.text
                }, (0, u.default)("lblPencilHint"))) : null
            };
        c.propTypes = {
            show: l.default.bool,
            isMobile: l.default.bool
        };
        var d = i.default.memo(c);
        t.default = d
    }, 87736: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = a(n(30123)),
            l = a(n(94184)),
            u = a(n(45697)),
            s = function(e) {
                var t, n, a = e.expanded,
                    u = void 0 !== a && a,
                    s = e.dark,
                    c = void 0 === s || s,
                    d = e.inCall,
                    f = void 0 !== d && d,
                    p = e.inChat,
                    h = void 0 !== p && p,
                    v = e.isMobile,
                    g = void 0 !== v && v,
                    m = e.isTablet,
                    _ = void 0 !== m && m,
                    y = e.url,
                    b = void 0 === y ? null : y,
                    E = e.headerColor,
                    T = void 0 === E ? null : E,
                    C = e.isBot,
                    S = void 0 !== C && C,
                    w = b ? {
                        backgroundImage: "url(".concat(b, ")")
                    } : {},
                    O = (0, l.default)((t = {}, (0, r.default)(t, o.default.avatar, !0), (0, r.default)(t, o.default._connected, !h && f), (0, r.default)(t, o.default._expanded, u), (0, r.default)(t, o.default._mobile, g), (0, r.default)(t, o.default._tablet, _), (0, r.default)(t, o.default._chatStyle, h), t)),
                    A = (0, l.default)((n = {}, (0, r.default)(n, o.default.avatarImg, !0), (0, r.default)(n, o.default.__isBot, !b && S), n));
                return i.default.createElement("jdiv", {
                    className: O
                }, i.default.createElement("jdiv", {
                    className: c ? o.default.darkAvatar : o.default.lightAvatar
                }, i.default.createElement("jdiv", {
                    className: A,
                    style: w
                }), h || S ? null : i.default.createElement("jdiv", {
                    className: o.default.onlineBadge,
                    style: T ? {
                        borderColor: T
                    } : null
                })))
            };
        s.propTypes = {
            expanded: u.default.bool,
            dark: u.default.bool.isRequired,
            inCall: u.default.bool,
            inChat: u.default.bool,
            isMobile: u.default.bool,
            isTablet: u.default.bool,
            url: u.default.string,
            headerColor: u.default.string,
            isBot: u.default.bool
        };
        var c = i.default.memo(s);
        t.default = c
    }, 51120: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = a(n(94184)),
            l = a(n(45697)),
            u = a(n(30123)),
            s = function(e) {
                var t, n = e.isHeader,
                    a = void 0 !== n && n,
                    l = e.url,
                    s = void 0 === l ? null : l,
                    c = (0, o.default)((t = {}, (0, r.default)(t, u.default.botIcon, !0), (0, r.default)(t, u.default.__header, a), t));
                return i.default.createElement("jdiv", {
                    className: c
                }, s && i.default.createElement("jdiv", {
                    className: u.default.img,
                    style: {
                        backgroundImage: "url(".concat(s, ")")
                    }
                }))
            };
        s.propTypes = {
            isHeader: l.default.bool,
            url: l.default.string
        };
        var c = i.default.memo(s);
        t.default = c
    }, 32042: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(2991)),
            i = a(n(87672)),
            o = a(n(98661)),
            l = a(n(30123)),
            u = a(n(94184)),
            s = a(n(45697)),
            c = function(e) {
                var t, n = e.urls,
                    a = e.bgColor,
                    s = e.dark,
                    c = void 0 !== s && s,
                    d = e.expanded,
                    f = void 0 !== d && d,
                    p = e.inCall,
                    h = void 0 !== p && p,
                    v = e.inChat,
                    g = void 0 !== v && v,
                    m = e.isMobile,
                    _ = void 0 !== m && m,
                    y = e.isTablet,
                    b = void 0 !== y && y,
                    E = "_width".concat(n.length),
                    T = (0, u.default)((t = {}, (0, i.default)(t, l.default.avatar, !0), (0, i.default)(t, l.default._connected, !g && h), (0, i.default)(t, l.default._expanded, f), (0, i.default)(t, l.default._mobile, _), (0, i.default)(t, l.default._tablet, b), (0, i.default)(t, l.default._chatStyle, g), (0, i.default)(t, l.default[E], !0), t));
                return o.default.createElement("jdiv", {
                    className: T
                }, o.default.createElement("jdiv", {
                    className: l.default.avatarList
                }, (0, r.default)(n).call(n, (function(e, t) {
                    var r, s;
                    return n.length > 3 && t === n.length - 1 ? o.default.createElement("jdiv", {
                        className: (0, u.default)((r = {}, (0, i.default)(r, l.default.dotsItem, !0), (0, i.default)(r, l.default._dark, c), (0, i.default)(r, l.default._light, !c), r)),
                        style: {
                            borderColor: a
                        }
                    }, o.default.createElement("jdiv", null, "...")) : o.default.createElement("jdiv", {
                        className: (0, u.default)((s = {}, (0, i.default)(s, l.default.avatarItem, !0), (0, i.default)(s, l.default.darkAvatar, c), (0, i.default)(s, l.default.lightAvatar, !c), s)),
                        style: {
                            backgroundColor: a,
                            borderColor: a
                        }
                    }, o.default.createElement("jdiv", {
                        className: l.default.avatarListImg,
                        style: {
                            backgroundImage: e ? "url(".concat(e, ")") : null
                        }
                    }))
                }))))
            };
        c.propTypes = {
            urls: s.default.arrayOf(s.default.string).isRequired,
            bgColor: s.default.string.isRequired,
            dark: s.default.bool.isRequired,
            expanded: s.default.bool,
            inCall: s.default.bool,
            inChat: s.default.bool,
            isMobile: s.default.bool,
            isTablet: s.default.bool
        };
        var d = o.default.memo(c);
        t.default = d
    }, 13639: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var i = r(n(5872)),
            o = r(n(87672)),
            l = r(n(26394)),
            u = r(n(69198)),
            s = r(n(51379)),
            c = r(n(214)),
            d = r(n(66380)),
            f = r(n(98661)),
            p = r(n(54720)),
            h = r(n(40704)),
            v = r(n(1039)),
            g = r(n(19955)),
            m = r(n(4855)),
            _ = n(90361),
            y = n(57930),
            b = n(47713),
            E = r(n(71528));

        function T(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, d.default)(e);
                if (t) {
                    var i = (0, d.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, c.default)(this, n)
            }
        }
        m.default.name("Button");
        var C = v.default.bubble_color || "green",
            S = function(e) {
                (0, s.default)(n, e);
                var t = T(n);

                function n(e) {
                    return (0, l.default)(this, n), t.call(this, e)
                }
                return (0, u.default)(n, [{
                    key: "getRenderData",
                    value: function() {
                        var e, t;
                        return {
                            styles: {
                                button: [(e = {
                                    button: !0
                                }, (0, o.default)(e, "_" + C, !0), (0, o.default)(e, "_disabled", this.props.disabled), (0, o.default)(e, "_medium", this.props.medium), (0, o.default)(e, "__ios", g.default.ios()), e)],
                                inputButton: [(t = {
                                    inputButton: !0
                                }, (0, o.default)(t, "_" + C, !0), (0, o.default)(t, "_disabled", this.props.disabled), (0, o.default)(t, "__mobileChat", this.props.chatMobile), t)]
                            },
                            style: E.default
                        }
                    }
                }, {
                    key: "renderData",
                    value: function(e, t) {
                        var n = this;
                        return "input-button" === this.props.type ? f.default.createElement("jdiv", (0, i.default)({}, t.inputButton, {
                            onClick: this.props.click.bind(this)
                        }), f.default.createElement(h.default, {
                            color: "#fff",
                            iconName: this.props.iconName,
                            className: E.default.buttonIcon
                        })) : f.default.createElement("jdiv", (0, i.default)({}, t.button, (0, b.onClickHandler)((function() {
                            n.props.click()
                        }), !0, !0), {
                            ref: function(e) {
                                n._submitBtn = e
                            }
                        }, (0, _.withLocator)(y.Locator[this.props["data-qa-id"]])), f.default.createElement("jdiv", {
                            className: E.default.text
                        }, this.props.text))
                    }
                }]), n
            }(p.default);
        t.default = S
    }, 32083: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(5872)),
            u = o(n(87672)),
            s = o(n(80122)),
            c = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = v(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            d = o(n(45697)),
            f = o(n(94184)),
            p = o(n(2903)),
            h = ["children", "color", "compact", "component", "disabled", "fullWidth", "leftIcon", "radius", "rightIcon", "size", "type", "uppercase", "variant", "isIos"];

        function v(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (v = function(e) {
                return e ? n : t
            })(e)
        }
        var g = (0, c.forwardRef)((function(e, t) {
            var n, a, r, i = e.children,
                o = e.color,
                d = e.compact,
                v = e.component,
                g = e.disabled,
                m = e.fullWidth,
                _ = e.leftIcon,
                y = e.radius,
                b = e.rightIcon,
                E = e.size,
                T = e.type,
                C = e.uppercase,
                S = e.variant,
                w = e.isIos,
                O = (0, s.default)(e, h),
                A = v || "button",
                I = (0, f.default)((n = {}, (0, u.default)(n, p.default.root, !0), (0, u.default)(n, p.default[S], !0), (0, u.default)(n, p.default.__compact, d), (0, u.default)(n, p.default.__disabled, g && "button" !== v), (0, u.default)(n, p.default.__fullWidth, m), (0, u.default)(n, p.default.__uppercase, C), (0, u.default)(n, p.default.__ios, w), (0, u.default)(n, p.default["__" + o], !0), (0, u.default)(n, p.default["__" + E + "Size"], !0), (0, u.default)(n, p.default["__" + y + "Radius"], !0), n)),
                R = (0, f.default)((a = {}, (0, u.default)(a, p.default.icon, !0), (0, u.default)(a, p.default.__left, _), a)),
                M = (0, f.default)((r = {}, (0, u.default)(r, p.default.icon, !0), (0, u.default)(r, p.default.__right, b), r));
            return c.default.createElement(A, (0, l.default)({
                ref: t,
                type: T,
                disabled: g,
                className: I
            }, O), c.default.createElement("span", {
                className: p.default.content
            }, _ && c.default.createElement("span", {
                className: R
            }, _), i, b && c.default.createElement("span", {
                className: M
            }, b)))
        }));
        g.displayName = "Button", g.defaultProps = {
            color: "green",
            size: "sm",
            radius: "sm",
            type: "button",
            variant: "filled"
        }, g.propTypes = {
            children: d.default.node.isRequired,
            color: d.default.string,
            compact: d.default.bool,
            component: d.default.any,
            disabled: d.default.bool,
            fullWidth: d.default.bool,
            leftIcon: d.default.node,
            rightIcon: d.default.node,
            uppercase: d.default.bool,
            radius: d.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            size: d.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            type: d.default.oneOf(["button", "reset", "submit"]),
            variant: d.default.oneOf(["light", "outline", "subtle", "filled", "default", "white"]),
            isIos: d.default.bool
        };
        var m = g;
        t.default = m
    }, 22048: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var i = r(n(89400)),
            o = r(n(25843)),
            l = r(n(20116)),
            u = r(n(20455)),
            s = r(n(5872)),
            c = r(n(26394)),
            d = r(n(69198)),
            f = r(n(51379)),
            p = r(n(214)),
            h = r(n(66380)),
            v = r(n(98661)),
            g = n(88928),
            m = r(n(54720)),
            _ = r(n(84726)),
            y = r(n(1039)),
            b = r(n(13639)),
            E = r(n(22760)),
            T = n(21476),
            C = n(47060),
            S = r(n(98960)),
            w = n(90361),
            O = n(57930),
            A = n(92560),
            I = n(9393),
            R = n(26932),
            M = r(n(4855)),
            k = n(94537);

        function N(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, h.default)(e);
                if (t) {
                    var i = (0, h.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, p.default)(this, n)
            }
        }
        var x = M.default.name("Buttons"),
            P = function(e) {
                (0, f.default)(n, e);
                var t = N(n);

                function n(e) {
                    var a;
                    return (0, c.default)(this, n), (a = t.call(this, e)).successCallback = e.successCallback || function() {}, a.errorCallback = e.errorCallback || function() {}, a.focusPopupInput = e.focusPopupInput || function() {}, a._submitBtn = null, a._submitBy = null, a
                }
                return (0, d.default)(n, [{
                    key: "submitForm",
                    value: function(e) {
                        if (e && (e.preventDefault(), e.stopPropagation(), this._submitBy = e.view ? "byClick" : "byEnter"), this.props.disabled) x.log("Button is disabled.");
                        else {
                            var t = (0, i.default)(this.props),
                                n = {};
                            this.values = !1, (0, I.each)(t, (function(e) {
                                var t;
                                "name" == e.name && (e.name = "client_name");
                                var a = "string" == typeof e.value ? (0, o.default)(t = e.value).call(t) : e.value;
                                n[e.name] = a || null
                            }));
                            var a = this.isValid(t);
                            if (x.log("submitForm", t, a), a.error) e.preventDefault(), this.errorCallback(a.data), this.values = !1;
                            else {
                                var r = {};
                                (0, I.each)(a.data, (function(e) {
                                    r[e.name] = e.value
                                })), y.default.eula && !this.props.eulaAccepted && this.countNotEmptyValues(r) ? this.values = r : this.resetForm(r)
                            }
                        }
                    }
                }, {
                    key: "componentDidUpdate",
                    value: function(e) {
                        this.props.eulaAccepted !== e.eulaAccepted && y.default.eula && this.props.eulaAccepted && (0, i.default)(this) && (this.resetForm((0, i.default)(this)), this.values = !1)
                    }
                }, {
                    key: "countNotEmptyValues",
                    value: function(e) {
                        var t, n = (0, l.default)(t = (0, u.default)(e)).call(t, (function(e) {
                            return e
                        })).length;
                        return 1 === n && e.message ? 0 : n
                    }
                }, {
                    key: "cancel",
                    value: function() {
                        R.clientDispatchers.setIsIntroduced(!0), T.Router.next(C.RouterEvent.Cancel)
                    }
                }, {
                    key: "isValid",
                    value: function(e) {
                        var t = !1;
                        for (var n in e)
                            if (n) {
                                var a = n;
                                "client_name" == n && (a = "name");
                                var r = y.default.contacts_settings[a] && y.default.contacts_settings[a].required;
                                e[n] && (S.default[n](e[n].value || "") || (0, A.isEmpty)(e[n].value) && !r && "message" !== n ? e[n].error = !1 : (t = !0, e[n].error = !0))
                            }
                        return {
                            data: e,
                            error: t
                        }
                    }
                }, {
                    key: "resetForm",
                    value: function(e) {
                        y.default.eula && !this.props.eulaAccepted && this.countNotEmptyValues(e) || this.setInfo(e)
                    }
                }, {
                    key: "setInfo",
                    value: function(e) {
                        x.log("setInput", e), this._submitBtn.disabled = !0, this.successCallback(e, this._submitBy)
                    }
                }, {
                    key: "getRenderData",
                    value: function() {
                        var e = y.default.contacts_ask === k.ContactsType.BEFORE_CHAT && this.props.isOnline && T.Router.getCurrentRoute() === C.Route.INTRODUCE ? (0, _.default)("lblSendBefore") : (0, _.default)("lblSend");
                        return y.default.eula && !this.props.eulaAccepted && (e = (0, _.default)("continue")), {
                            styles: {},
                            style: E.default,
                            data: {
                                text: e
                            }
                        }
                    }
                }, {
                    key: "renderData",
                    value: function(e, t) {
                        var n = this;
                        return v.default.createElement(v.default.Fragment, null, v.default.createElement(b.default, (0, s.default)({
                            click: this.submitForm.bind(this),
                            text: e.text,
                            ref: function(e) {
                                n._submitBtn = e
                            },
                            disabled: this.props.disabled
                        }, (0, w.withLocator)(O.Locator.CONTACTS_FORM_SUBMIT))))
                    }
                }]), n
            }(m.default),
            L = (0, g.connect)((function(e) {
                return {
                    isOnline: e.app.isOnline,
                    eulaAccepted: e.client.eulaAccepted
                }
            }))(P);
        t.default = L
    }, 36672: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(5872)),
            i = a(n(87672)),
            o = a(n(98661)),
            l = n(68403),
            u = a(n(3501)),
            s = a(n(19955)),
            c = a(n(45697)),
            d = a(n(94184)),
            f = a(n(71207)),
            p = n(47713),
            h = function(e) {
                var t, n = e.hide,
                    a = e.onClick,
                    c = e.icon,
                    h = e.text,
                    v = (0, d.default)((t = {}, (0, i.default)(t, f.default.scrollForm, !0), (0, i.default)(t, f.default.__hide, n), (0, i.default)(t, f.default.__ad, (0, l.showAd)()), (0, i.default)(t, f.default.__mobile, s.default.mobileOrTablet()), t));
                return o.default.createElement("jdiv", (0, r.default)({
                    className: v
                }, (0, p.onClickHandler)(a)), o.default.createElement("jdiv", {
                    className: f.default.textToForm
                }, o.default.createElement(u.default, {
                    icon: c,
                    alone: !1,
                    className: "emojiMessages",
                    style: !0
                }), " ", h))
            };
        h.displayName = "ChatPopupButton", h.propTypes = {
            hide: c.default.bool.isRequired,
            onClick: c.default.func.isRequired,
            icon: c.default.string.isRequired,
            text: c.default.string.isRequired
        };
        var v = h;
        t.default = v
    }, 21721: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.DisconnectAlert = void 0;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = a(n(45697)),
            l = a(n(94184)),
            u = n(47060),
            s = n(36522),
            c = a(n(84726)),
            d = a(n(40375)),
            f = a(n(40704)),
            p = a(n(2559)),
            h = function(e) {
                var t, n, a = e.route,
                    o = e.children,
                    u = (0, s.useEnhanced)(a),
                    h = u.isOnline,
                    v = u.isOffline,
                    g = u.isReconnect,
                    m = u.onTransition,
                    _ = (0, l.default)((t = {}, (0, r.default)(t, d.default.main, !0), (0, r.default)(t, d.default.offline, v), (0, r.default)(t, d.default.reconnect, g), t));
                return i.default.createElement(i.default.Fragment, null, i.default.createElement("jdiv", {
                    className: d.default.container
                }, i.default.createElement("jdiv", {
                    className: (0, l.default)((n = {}, (0, r.default)(n, d.default.wrapper, !0), (0, r.default)(n, d.default.__show, v || g), n))
                }, i.default.createElement("jdiv", {
                    className: _,
                    onTransitionEnd: m
                }, v && (0, c.default)("disconnect_msg"), g && i.default.createElement(i.default.Fragment, null, (0, c.default)("reconnect_msg"), i.default.createElement(f.default, {
                    iconName: "check",
                    color: p.default.GREEN_80,
                    className: d.default.icon
                }))))), h && o ? o : null)
            };
        t.DisconnectAlert = h, h.propTypes = {
            route: o.default.oneOf([u.Route.CHAT, u.Route.CALL, u.Route.INTRODUCE]).isRequired,
            children: o.default.node
        }
    }, 36522: function(e, t, n) {
        "use strict";
        var a = n(86902),
            r = n(14310),
            i = n(20116),
            o = n(34074),
            l = n(39649),
            u = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.useEnhanced = function(e) {
            var t = (0, d.useReducer)(S, C),
                n = (0, s.default)(t, 2),
                a = n[0],
                r = n[1],
                i = (0, g.useIsOnline)(),
                o = (0, f.useSelector)(m.selectChatStarted),
                l = a.stage === b,
                u = a.stage === E,
                c = a.stage === T;
            return (0, d.useEffect)((function() {
                return i || c ? i && u ? r({
                    type: T
                }) : void 0 : r({
                    type: E
                })
            }), [u, i, c]), (0, v.useDidUpdate)((function() {
                o && p.Monitoring.telemetry(h.TelemetryName.RECONNECTION, {
                    param1: e,
                    param2: a.reconnects,
                    param3: Math.floor(a.reconnectTime - a.disconnectTime) / 1e3
                })
            }), [a.reconnectTime]), {
                isOnline: l,
                isOffline: u,
                isReconnect: c,
                onTransition: function(e) {
                    e.stopPropagation(), c && r({
                        type: b
                    })
                }
            }
        };
        var s = u(n(18777)),
            c = u(n(87672)),
            d = n(98661),
            f = n(88928),
            p = n(54415),
            h = n(83170),
            v = n(49862),
            g = n(81366),
            m = n(35233);

        function _(e, t) {
            var n = a(e);
            if (r) {
                var l = r(e);
                t && (l = i(l).call(l, (function(t) {
                    return o(e, t).enumerable
                }))), n.push.apply(n, l)
            }
            return n
        }

        function y(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? _(Object(n), !0).forEach((function(t) {
                    (0, c.default)(e, t, n[t])
                })) : l ? Object.defineProperties(e, l(n)) : _(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, o(n, t))
                }))
            }
            return e
        }
        var b = "online",
            E = "offline",
            T = "reconnect",
            C = {
                stage: b,
                reconnects: 0,
                disconnectTime: null,
                reconnectTime: null
            };

        function S(e, t) {
            switch (t.type) {
                case b:
                    return y(y({}, e), {}, {
                        stage: b
                    });
                case E:
                    return y(y({}, e), {}, {
                        stage: E,
                        disconnectTime: Date.now()
                    });
                case T:
                    return y(y({}, e), {}, {
                        stage: T,
                        reconnects: e.reconnects + 1,
                        reconnectTime: Date.now()
                    });
                default:
                    return e
            }
        }
    }, 96340: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var i = r(n(5872)),
            o = r(n(87672)),
            l = r(n(26394)),
            u = r(n(69198)),
            s = r(n(51379)),
            c = r(n(214)),
            d = r(n(66380)),
            f = r(n(98661)),
            p = n(88928),
            h = r(n(54720)),
            v = r(n(1039)),
            g = n(43025),
            m = r(n(19955)),
            _ = n(90361),
            y = n(57930),
            b = r(n(22760));

        function E(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, d.default)(e);
                if (t) {
                    var i = (0, d.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, c.default)(this, n)
            }
        }
        var T = function(e) {
                (0, s.default)(n, e);
                var t = E(n);

                function n(e) {
                    var a;
                    (0, l.default)(this, n);
                    var r = (a = t.call(this, e)).props.name;
                    return "client_name" === r && (r = "name"), a.state = {
                        text: a.props.clientInfo[a.props.name] ? a.props.clientInfo[a.props.name] : "",
                        error: e.error,
                        key: r
                    }, a.onBlur = e.onBlur || function() {}, a.onFocus = function() {
                        a.setState({
                            error: !1
                        }), e.onFocus && e.onFocus()
                    }, a.handleChange = function(t, n) {
                        n.target.value !== a.props.value && e.handleChange && e.handleChange(t, n)
                    }, a._input = null, a
                }
                return (0, u.default)(n, [{
                    key: "componentDidMount",
                    value: function() {
                        this._input && (this._input.value = this.props.value)
                    }
                }, {
                    key: "getType",
                    value: function(e) {
                        switch (e) {
                            case "phone":
                                return "tel";
                            case "email":
                                return "email";
                            default:
                                return "text"
                        }
                    }
                }, {
                    key: "setValue",
                    value: function(e) {
                        this._input.value = e, this.handleChange(this.props.name, {
                            target: {
                                value: e,
                                required: this.props.required
                            }
                        })
                    }
                }, {
                    key: "needRender",
                    value: function() {
                        return v.default.contacts_settings && v.default.contacts_settings[this.state.key] && v.default.contacts_settings[this.state.key].show || this.props.show
                    }
                }, {
                    key: "getRenderData",
                    value: function() {
                        var e;
                        return {
                            styles: {
                                inputField: [(e = {
                                    inputField: !0,
                                    _error: this.props.submited ? this.props.error : this.props.submited
                                }, (0, o.default)(e, "_" + this.props.color, !(!this.props.color || "green" === this.props.color)), (0, o.default)(e, "__mobile", m.default.mobileOrTablet()), (0, o.default)(e, "__valid", this.props.valid), (0, o.default)(e, "__bluredEmpty", !(this._input && this._input.value)), e)]
                            },
                            style: b.default,
                            data: {
                                placeholder: this.props.placeholder + (this.props.required || v.default.contacts_settings[this.state.key].required ? "*" : "")
                            }
                        }
                    }
                }, {
                    key: "renderData",
                    value: function(e, t) {
                        var n = this;
                        if (this.needRender()) return f.default.createElement("jdiv", {
                            className: b.default.fieldWrap
                        }, f.default.createElement("input", (0, i.default)({}, t.inputField, {
                            type: this.getType(this.state.key),
                            autoComplete: this.getType(this.state.key),
                            onKeyPress: function(e) {
                                e.stopPropagation(), g.getNextSiblingNodeFocus.call(n, e)
                            },
                            onBlur: this.onBlur.bind(this),
                            onFocus: this.onFocus.bind(this),
                            placeholder: e.placeholder,
                            onInput: function(e) {
                                e.stopPropagation(), n.handleChange.call(n, n.props.name, e)
                            },
                            onKeyUp: function(e) {
                                e.stopPropagation(), n.handleChange.call(n, n.props.name, e)
                            },
                            onKeyDown: function(e) {
                                e.stopPropagation()
                            },
                            ref: function(e) {
                                n._input = e
                            }
                        }, (0, _.withLocator)(y.Locator["CONTACTS_FORM_".concat(this.state.key.toUpperCase())]), {
                            maxLength: "email" == this.state.key ? 255 : null
                        })))
                    }
                }]), n
            }(h.default),
            C = (0, p.connect)((function(e) {
                var t = e.client;
                return {
                    clientInfo: {
                        client_name: t.name,
                        phone: t.phone,
                        email: t.email,
                        description: t.description
                    }
                }
            }))(T);
        t.default = C
    }, 43569: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(5872)),
            u = o(n(87672)),
            s = o(n(18777)),
            c = o(n(80122)),
            d = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = b(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            f = o(n(45697)),
            p = o(n(94184)),
            h = n(79641),
            v = n(21733),
            g = n(55330),
            m = o(n(11880)),
            _ = o(n(86762)),
            y = ["color", "component", "disabled", "error", "radius", "required", "size", "variant", "placeholder", "label", "rightSection", "rightSectionWidth", "rightSectionProps", "classNames", "fontSize", "lineHeight", "value"];

        function b(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (b = function(e) {
                return e ? n : t
            })(e)
        }
        var E = (0, d.forwardRef)((function(e, t) {
            var n, a, r, i, o = e.color,
                f = e.component,
                b = e.disabled,
                E = e.error,
                T = e.radius,
                C = e.required,
                S = e.size,
                w = e.variant,
                O = e.placeholder,
                A = e.label,
                I = e.rightSection,
                R = e.rightSectionWidth,
                M = e.rightSectionProps,
                k = e.classNames,
                N = e.fontSize,
                x = e.lineHeight,
                P = e.value,
                L = (0, c.default)(e, y),
                D = f || "input",
                j = (0, d.useState)((function() {
                    return !!P
                })),
                B = (0, s.default)(j, 2),
                F = B[0],
                U = B[1],
                H = (0, d.useState)(""),
                W = (0, s.default)(H, 2),
                G = W[0],
                z = W[1],
                V = (0, d.useRef)(null),
                q = (0, g.useMergeRefs)(V, t),
                K = function(e) {
                    return C ? e + "*" : e
                },
                Y = (0, p.default)((n = {}, (0, u.default)(n, _.default.root, !0), (0, u.default)(n, _.default[w], !0), (0, u.default)(n, _.default.__invalid, E), (0, u.default)(n, _.default["__" + o], o), (0, u.default)(n, _.default["__" + S + "Size"], !0), (0, u.default)(n, _.default["__" + T + "Radius"], !0), (0, u.default)(n, k.input, k.input), (0, u.default)(n, _.default.__withLabel, A), (0, u.default)(n, _.default.__active, F || "" !== P), n)),
                X = (0, p.default)((a = {}, (0, u.default)(a, _.default.label, !0), (0, u.default)(a, _.default["__" + S + "Size"], !0), (0, u.default)(a, _.default["__" + o], o), (0, u.default)(a, _.default.__invalid, E), a)),
                Z = (0, p.default)((r = {}, (0, u.default)(r, _.default.rightSection, I), (0, u.default)(r, k.rightSection, k.rightSection), r)),
                J = (0, p.default)((i = {}, (0, u.default)(i, _.default.error, !0), (0, u.default)(i, _.default["__" + S + "Size"], !0), i));
            return (0, d.useEffect)((function() {
                V.current && !G && z(V.current.style.paddingRight)
            }), [G]), (0, d.useEffect)((function() {
                V.current && V.current.style.setProperty("padding-right", I ? R + "px" : G, "important")
            }), [G, I, R]), (0, d.useEffect)((function() {
                V.current && (0, h.isNumber)(N) && V.current.style.setProperty("font-size", N + "px", "important")
            }), [N]), (0, d.useEffect)((function() {
                V.current && (0, v.isString)(x) && V.current.style.setProperty("line-height", x, "important")
            }), [x]), d.default.createElement(m.default, null, d.default.createElement(m.default, null, d.default.createElement(D, (0, l.default)({
                ref: q,
                className: Y,
                disabled: b,
                placeholder: !A && O ? K(O) : " ",
                value: P,
                onFocus: function() {
                    return U(!0)
                },
                onBlur: function() {
                    return U(!1)
                }
            }, L)), A && d.default.createElement("jdiv", {
                className: X
            }, K(A)), I && d.default.createElement("jdiv", (0, l.default)({}, M, {
                className: Z,
                style: {
                    width: R
                }
            }), I)), (0, v.isString)(E) && d.default.createElement("jdiv", {
                className: J
            }, E))
        }));
        E.displayName = "Input", E.defaultProps = {
            color: "green",
            radius: "sm",
            size: "sm",
            variant: "default",
            rightSectionWidth: 38,
            value: "",
            classNames: {
                input: null,
                rightSection: null
            }
        }, E.propTypes = {
            color: f.default.string,
            component: f.default.any,
            error: f.default.oneOfType([f.default.string, f.default.bool]),
            label: f.default.string,
            placeholder: f.default.string,
            radius: f.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            required: f.default.bool,
            disabled: f.default.bool,
            size: f.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            variant: f.default.oneOf(["default", "filled", "inset", "unstyled"]),
            rightSection: f.default.node,
            rightSectionWidth: f.default.number,
            rightSectionProps: f.default.object,
            value: f.default.string,
            fontSize: f.default.number,
            lineHeight: f.default.string,
            classNames: f.default.shape({
                input: f.default.string,
                rightSection: f.default.string
            })
        };
        var T = E;
        t.default = T
    }, 60165: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var i = r(n(5872)),
            o = r(n(87672)),
            l = r(n(26394)),
            u = r(n(69198)),
            s = r(n(51379)),
            c = r(n(214)),
            d = r(n(66380)),
            f = r(n(98661)),
            p = r(n(54720)),
            h = r(n(1039)),
            v = r(n(19955)),
            g = n(43025),
            m = n(90361),
            _ = n(57930),
            y = r(n(4855)),
            b = r(n(22760)),
            E = n(88928);

        function T(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, d.default)(e);
                if (t) {
                    var i = (0, d.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, c.default)(this, n)
            }
        }
        y.default.name("InputChat");
        var C = function(e) {
                (0, s.default)(n, e);
                var t = T(n);

                function n(e) {
                    var a;
                    (0, l.default)(this, n);
                    var r = (a = t.call(this, e)).props.name;
                    return "client_name" === r && (r = "name"), a.state = {
                        text: a.props.clientInfo[a.props.name] ? a.props.clientInfo[a.props.name] : "",
                        error: e.error,
                        key: r
                    }, a.onFocus = function(t) {
                        a._focused = !0, a.setState({
                            error: !1
                        }), e.onFocus && e.onFocus(t)
                    }, a.onBlur = function(t) {
                        a._focused = !1, e.onBlur && e.onBlur(t)
                    }, a.handleChange = function(t, n) {
                        a.setState({
                            error: !1
                        }), e.handleChange(t, n), e.onChange(t, n)
                    }, a.onSubmit = function() {
                        e.onSubmit && e.onSubmit(a.state.key, e.error)
                    }, a._input = null, a._focused = null, a
                }
                return (0, u.default)(n, [{
                    key: "componentDidMount",
                    value: function() {
                        this._input && (this._input.value = this.props.value)
                    }
                }, {
                    key: "componentWillReceiveProps",
                    value: function(e) {
                        this._input && (this._input.value = e.value)
                    }
                }, {
                    key: "getType",
                    value: function(e) {
                        switch (e) {
                            case "phone":
                                return "tel";
                            case "email":
                                return "email";
                            case "name":
                                return "name";
                            default:
                                return "text"
                        }
                    }
                }, {
                    key: "needRender",
                    value: function() {
                        return h.default.contacts_settings && h.default.contacts_settings[this.state.key] && h.default.contacts_settings[this.state.key].show
                    }
                }, {
                    key: "getRenderData",
                    value: function() {
                        var e, t = this._input && this.props.valid && "" !== this._input.value;
                        return {
                            styles: {
                                inputField: [(e = {
                                    inputField: !0,
                                    _error: this.props.submited ? this.props.error : this.props.submited
                                }, (0, o.default)(e, "_" + this.props.color, !(!this.props.color || "green" === this.props.color)), (0, o.default)(e, "__mobile", v.default.mobileOrTablet()), (0, o.default)(e, "__valid", t), (0, o.default)(e, "__bluredEmpty", !(this._input && this._input.value)), (0, o.default)(e, "__inputChat", !0), e)]
                            },
                            style: b.default,
                            data: {
                                isValid: t,
                                placeholder: this.props.placeholder + (h.default.contacts_settings[this.state.key].required ? "*" : "")
                            }
                        }
                    }
                }, {
                    key: "renderData",
                    value: function(e, t) {
                        var n = this;
                        if (this.needRender()) {
                            var a = this.props.hint && this._input && ("" !== this._input.value || v.default.ie() && this._focused);
                            return f.default.createElement("jdiv", {
                                className: b.default.fieldWrap
                            }, a ? f.default.createElement("jdiv", {
                                className: b.default.hint
                            }, e.placeholder) : null, f.default.createElement("input", (0, i.default)({}, t.inputField, {
                                type: this.getType(this.state.key),
                                name: this.state.key,
                                autoComplete: this.getType(this.state.key),
                                onKeyPress: function(e) {
                                    e.stopPropagation(), e.keyCode && 13 == e.keyCode && e.currentTarget.blur(), g.getNextSiblingNodeFocus.call(n, e)
                                },
                                onBlur: this.onBlur.bind(this),
                                onFocus: this.onFocus.bind(this),
                                placeholder: e.placeholder,
                                onInput: function(e) {
                                    e.stopPropagation(), n.handleChange.call(n, n.props.name, e)
                                },
                                onKeyUp: function(e) {
                                    e.stopPropagation(), n.handleChange.call(n, n.props.name, e)
                                },
                                onKeyDown: function(e) {
                                    e.stopPropagation()
                                },
                                disabled: this.props.disabled,
                                title: e.placeholder,
                                ref: function(e) {
                                    n._input = e
                                }
                            }, (0, m.withLocator)(_.Locator["CONTACTS_FORM_".concat(this.state.key.toUpperCase())]), {
                                maxLength: "email" == this.state.key ? 255 : null
                            })), e.isValid ? f.default.createElement("jdiv", {
                                className: b.default.iconValid
                            }) : null)
                        }
                    }
                }]), n
            }(p.default),
            S = (0, E.connect)((function(e) {
                var t = e.client;
                return {
                    clientInfo: {
                        client_name: t.name,
                        phone: t.phone,
                        email: t.email,
                        description: t.description
                    }
                }
            }))(C);
        t.default = S
    }, 11880: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(5872)),
            i = a(n(80122)),
            o = a(n(98661)),
            l = a(n(45697)),
            u = a(n(44064)),
            s = ["children", "component"],
            c = function(e) {
                var t = e.children,
                    n = e.component,
                    a = (0, i.default)(e, s),
                    l = n || "jdiv";
                return o.default.createElement(l, (0, r.default)({
                    className: u.default.wrapper
                }, a), t)
            };
        c.propTypes = {
            children: l.default.node.isRequired,
            component: l.default.any
        };
        var d = c;
        t.default = d
    }, 46133: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(2991)),
            u = o(n(5872)),
            s = o(n(80122)),
            c = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = m(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            d = o(n(45697)),
            f = n(21733),
            p = o(n(43569)),
            h = o(n(20404)),
            v = o(n(40704)),
            g = ["color", "data", "disabled", "error", "placeholder", "radius", "required", "rightSectionWidth", "size", "value", "variant", "onChange"];

        function m(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (m = function(e) {
                return e ? n : t
            })(e)
        }
        var _ = (0, c.forwardRef)((function(e, t) {
            var n = e.color,
                a = e.data,
                r = e.disabled,
                i = e.error,
                o = e.placeholder,
                d = e.radius,
                m = e.required,
                _ = e.rightSectionWidth,
                y = e.size,
                b = e.value,
                E = e.variant,
                T = e.onChange,
                C = (0, s.default)(e, g),
                S = (0, l.default)(a).call(a, (function(e) {
                    return (0, f.isString)(e) ? {
                        label: e,
                        value: e
                    } : e
                })),
                w = (0, l.default)(S).call(S, (function(e) {
                    return c.default.createElement("option", {
                        key: e.value,
                        value: e.value,
                        disabled: e.disabled
                    }, e.label)
                }));
            return c.default.createElement(p.default, (0, u.default)({
                component: "select",
                ref: t,
                readOnly: !0,
                classNames: {
                    input: h.default.select
                },
                color: n,
                disabled: r,
                error: i,
                radius: d,
                required: m,
                size: y,
                value: b,
                variant: E,
                placeholder: o,
                onChange: function(e) {
                    return T(e.target.value)
                },
                rightSectionWidth: _,
                rightSection: c.default.createElement(v.default, {
                    iconName: "icon-v",
                    color: "#8B9096",
                    hoverColor: "#222D38",
                    className: h.default.dropIcon
                })
            }, C), w)
        }));
        _.displayName = "NativeSelect", _.defaultProps = {
            color: "green",
            radius: "sm",
            size: "sm",
            variant: "default",
            rightSectionWidth: 38
        }, _.propTypes = {
            color: d.default.oneOf(["green", "blue", "grey"]),
            data: d.default.arrayOf(d.default.oneOfType([d.default.string, d.default.shape({
                label: d.default.string,
                value: d.default.oneOfType([d.default.string, d.default.number]),
                disabled: d.default.bool
            })])),
            disabled: d.default.bool,
            error: d.default.oneOfType([d.default.string, d.default.bool]),
            value: d.default.oneOfType([d.default.string, d.default.number]),
            placeholder: d.default.string,
            radius: d.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            required: d.default.bool,
            rightSectionWidth: d.default.number,
            size: d.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            variant: d.default.oneOf(["default", "filled", "inset", "unstyled"]),
            onChange: d.default.func
        };
        var y = _;
        t.default = y
    }, 13114: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(5872)),
            u = o(n(87672)),
            s = o(n(80122)),
            c = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = v(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            d = o(n(45697)),
            f = o(n(94184)),
            p = o(n(80810)),
            h = ["children", "component", "radius", "shadow", "padding", "withBorder", "addClassname"];

        function v(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (v = function(e) {
                return e ? n : t
            })(e)
        }
        var g = (0, c.forwardRef)((function(e, t) {
            var n, a = e.children,
                r = e.component,
                i = e.radius,
                o = e.shadow,
                d = e.padding,
                v = e.withBorder,
                g = e.addClassname,
                m = (0, s.default)(e, h),
                _ = r || "jdiv",
                y = (0, f.default)((n = {}, (0, u.default)(n, p.default.root, !0), (0, u.default)(n, p.default["__" + i + "Radius"], i), (0, u.default)(n, p.default["__" + d + "Padding"], d), (0, u.default)(n, p.default["__" + o + "Shadow"], o), (0, u.default)(n, p.default.__withBorder, v), (0, u.default)(n, g, g), n));
            return c.default.createElement(_, (0, l.default)({
                ref: t,
                className: y
            }, m), a)
        }));
        g.defaultProps = {
            radius: "sm",
            shadow: "sm"
        }, g.displayName = "Paper", g.propTypes = {
            children: d.default.node.isRequired,
            component: d.default.any,
            radius: d.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            padding: d.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            shadow: d.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            withBorder: d.default.bool,
            addClassname: d.default.string
        };
        var m = g;
        t.default = m
    }, 12593: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(86902),
            i = n(14310),
            o = n(20116),
            l = n(34074),
            u = n(39649),
            s = n(52424),
            c = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var d = c(n(5872)),
            f = c(n(87672)),
            p = c(n(59036)),
            h = c(n(18777)),
            v = c(n(77766)),
            g = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = w(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    i = Object.defineProperty && l;
                for (var o in e)
                    if ("default" !== o && Object.prototype.hasOwnProperty.call(e, o)) {
                        var u = i ? l(e, o) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, o, u) : r[o] = e[o]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            m = c(n(45697)),
            _ = c(n(94184)),
            y = n(85455),
            b = n(96231),
            E = n(55004),
            T = n(49862),
            C = c(n(17666)),
            S = c(n(35247));

        function w(e) {
            if ("function" != typeof s) return null;
            var t = new s,
                n = new s;
            return (w = function(e) {
                return e ? n : t
            })(e)
        }

        function O(e, t) {
            var n = r(e);
            if (i) {
                var a = i(e);
                t && (a = o(a).call(a, (function(t) {
                    return l(e, t).enumerable
                }))), n.push.apply(n, a)
            }
            return n
        }

        function A(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? O(Object(n), !0).forEach((function(t) {
                    (0, f.default)(e, t, n[t])
                })) : u ? Object.defineProperties(e, u(n)) : O(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, l(n, t))
                }))
            }
            return e
        }
        var I = function(e) {
            var t, n, a, r = e.arrowSize,
                i = e.arrowStyle,
                o = e.children,
                l = e.forceUpdateDependencies,
                u = e.gutter,
                s = e.modifiers,
                c = e.mounted,
                m = e.placement,
                w = e.position,
                O = e.referenceElement,
                I = e.withArrow,
                R = e.withinPortal,
                M = e.zIndex,
                k = I ? u + r : u,
                N = "center" === m ? w : (0, v.default)(t = "".concat(w, "-")).call(t, m),
                x = (0, g.useState)(null),
                P = (0, h.default)(x, 2),
                L = P[0],
                D = P[1],
                j = (0, y.usePopper)(O, L, {
                    placement: N,
                    modifiers: (0, v.default)(n = [{
                        name: "offset",
                        options: {
                            offset: [0, k]
                        }
                    }]).call(n, (0, p.default)(s))
                }),
                B = j.styles,
                F = j.attributes,
                U = j.forceUpdate;
            (0, T.useDidUpdate)((function() {
                (0, E.isFunction)(U) && U()
            }), l);
            var H = (0, _.default)((a = {}, (0, f.default)(a, S.default.arrow, !0), (0, f.default)(a, S.default["__" + w], !0), a)),
                W = A(A({}, i), (0, b.getArrowStyles)({
                    position: w,
                    placement: m,
                    arrowSize: r
                }));
            return c ? g.default.createElement(C.default, {
                withinPortal: R,
                zIndex: M
            }, g.default.createElement("jdiv", (0, d.default)({
                ref: D,
                style: B.popper
            }, F.popper), g.default.createElement("jdiv", null, o, I && g.default.createElement("jdiv", {
                style: W,
                className: H
            })))) : null
        };
        I.defaultProps = {
            arrowSize: 2,
            forceUpdateDependencies: [],
            gutter: 5,
            modifiers: [],
            placement: "center",
            position: "bottom",
            withArrow: !1,
            withinPortal: !0,
            zIndex: 300
        }, I.propTypes = {
            arrowSize: m.default.number,
            arrowStyle: m.default.object,
            children: m.default.node.isRequired,
            forceUpdateDependencies: m.default.array,
            gutter: m.default.number,
            modifiers: m.default.array,
            mounted: m.default.bool,
            placement: m.default.oneOf(["start", "center", "end"]),
            position: m.default.oneOf(["top", "left", "bottom", "right"]),
            referenceElement: m.default.oneOfType([m.default.element.isRequired, function() {
                return null
            }]),
            withArrow: m.default.bool,
            withinPortal: m.default.bool,
            zIndex: m.default.number
        };
        var R = I;
        t.default = R
    }, 17666: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(98661)),
            i = a(n(45697)),
            o = a(n(10739)),
            l = function(e) {
                var t = e.children,
                    n = e.className,
                    a = e.withinPortal,
                    i = void 0 === a || a,
                    l = e.zIndex,
                    u = void 0 === l ? 300 : l;
                return i ? r.default.createElement(o.default, {
                    className: n,
                    zIndex: u
                }, t) : r.default.createElement("div", {
                    className: n,
                    style: {
                        position: "relative",
                        zIndex: u
                    }
                }, t)
            };
        l.propTypes = {
            children: i.default.node.isRequired,
            className: i.default.string,
            withinPortal: i.default.bool,
            zIndex: i.default.number
        };
        var u = l;
        t.default = u
    }, 96231: function(e, t, n) {
        "use strict";
        var a = n(86902),
            r = n(14310),
            i = n(20116),
            o = n(34074),
            l = n(39649),
            u = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.getArrowStyles = void 0;
        var s = u(n(87672)),
            c = u(n(18777));

        function d(e, t) {
            var n = a(e);
            if (r) {
                var l = r(e);
                t && (l = i(l).call(l, (function(t) {
                    return o(e, t).enumerable
                }))), n.push.apply(n, l)
            }
            return n
        }

        function f(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? d(Object(n), !0).forEach((function(t) {
                    (0, s.default)(e, t, n[t])
                })) : l ? Object.defineProperties(e, l(n)) : d(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, o(n, t))
                }))
            }
            return e
        }
        var p = {
            top: ["left", "bottom", "right"],
            bottom: ["left", "top", "right"],
            left: ["top", "right", "bottom"],
            right: ["top", "left", "bottom"]
        };
        t.getArrowStyles = function(e) {
            var t, n, a, r = e.position,
                i = e.placement,
                o = e.arrowSize,
                l = 2 * o,
                u = "calc(50% - ".concat(o, "px)"),
                d = -o,
                h = {
                    width: l,
                    height: l
                },
                v = (0, c.default)(p[r], 3),
                g = v[0],
                m = v[1],
                _ = v[2];
            switch (i) {
                case "start":
                    return f(f({}, h), {}, (t = {}, (0, s.default)(t, g, l), (0, s.default)(t, m, d), t));
                case "center":
                    return f(f({}, h), {}, (n = {}, (0, s.default)(n, g, u), (0, s.default)(n, m, d), n));
                case "end":
                    return f(f({}, h), {}, (a = {}, (0, s.default)(a, _, l), (0, s.default)(a, m, d), a));
                default:
                    return h
            }
        }
    }, 32325: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(98661)),
            i = a(n(40704)),
            o = a(n(42805)),
            l = n(21476),
            u = n(47060),
            s = a(n(45697)),
            c = function(e) {
                var t = e.onClose;
                return r.default.createElement("jdiv", {
                    className: o.default.popupClose,
                    onClick: function(e) {
                        e.stopPropagation(), l.Router.next(u.RouterEvent.Cancel), t && t(e)
                    }
                }, r.default.createElement(i.default, {
                    className: o.default.closeIcon,
                    iconName: "icon-popup-close",
                    color: "#959DA5",
                    hoverColor: "#222D38"
                }))
            };
        c.propTypes = {
            onClose: s.default.func
        };
        var d = r.default.memo(c);
        t.default = d
    }, 10739: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(18777)),
            u = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = f(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            s = n(98661),
            c = o(n(45697)),
            d = n(21733);

        function f(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (f = function(e) {
                return e ? n : t
            })(e)
        }
        var p = function(e) {
            var t = e.children,
                n = e.className,
                a = e.position,
                r = void 0 === a ? "relative" : a,
                i = e.target,
                o = e.zIndex,
                c = void 0 === o ? 1 : o,
                f = (0, u.useRef)(),
                p = (0, u.useState)(!1),
                h = (0, l.default)(p, 2),
                v = h[0],
                g = h[1];
            return (0, u.useLayoutEffect)((function() {
                return g(!0), f.current = i ? (0, d.isString)(i) ? document.querySelector(i) : i : document.createElement("jdiv"), i || document.body.appendChild(f.current),
                    function() {
                        !i && document.body.removeChild(f.current)
                    }
            }), [i]), v ? (0, s.createPortal)(u.default.createElement("div", {
                className: n,
                style: {
                    position: r,
                    zIndex: c
                }
            }, t), f.current) : null
        };
        p.propTypes = {
            children: c.default.node.isRequired,
            className: c.default.string,
            position: c.default.string,
            target: c.default.element,
            zIndex: c.default.number
        };
        var h = p;
        t.default = h
    }, 88155: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(86902),
            i = n(14310),
            o = n(20116),
            l = n(34074),
            u = n(39649),
            s = n(1068),
            c = n(52424),
            d = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var f = d(n(77766)),
            p = d(n(26394)),
            h = d(n(69198)),
            v = d(n(5824)),
            g = d(n(51379)),
            m = d(n(214)),
            _ = d(n(66380)),
            y = d(n(87672)),
            b = d(n(80122)),
            E = d(n(5872)),
            T = D(n(98661)),
            C = n(21951),
            S = n(69882),
            w = n(43025),
            O = D(n(54087)),
            A = d(n(53879)),
            I = n(61699),
            R = d(n(19955)),
            M = ["style"],
            k = ["style"],
            N = ["style"],
            x = ["style"],
            P = ["onScroll", "onScrollFrame", "onScrollStart", "onScrollStop", "onUpdate", "renderView", "renderTrackHorizontal", "renderTrackVertical", "renderThumbHorizontal", "renderThumbVertical", "tagName", "hideTracksWhenNotNeeded", "autoHide", "autoHideTimeout", "autoHideDuration", "thumbSize", "thumbMinSize", "onlyY", "universal", "autoHeight", "autoHeightMin", "autoHeightMax", "scrollMarginTop", "railClass", "scrollWrapClass", "position", "style", "children"];

        function L(e) {
            if ("function" != typeof c) return null;
            var t = new c,
                n = new c;
            return (L = function(e) {
                return e ? n : t
            })(e)
        }

        function D(e, t) {
            if (!t && e && e.__esModule) return e;
            if (null === e || "object" !== a(e) && "function" != typeof e) return {
                default: e
            };
            var n = L(t);
            if (n && n.has(e)) return n.get(e);
            var r = {},
                i = Object.defineProperty && l;
            for (var o in e)
                if ("default" !== o && Object.prototype.hasOwnProperty.call(e, o)) {
                    var u = i ? l(e, o) : null;
                    u && (u.get || u.set) ? Object.defineProperty(r, o, u) : r[o] = e[o]
                }
            return r.default = e, n && n.set(e, r), r
        }

        function j(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !s) return !1;
                if (s.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(s(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, a = (0, _.default)(e);
                if (t) {
                    var r = (0, _.default)(this).constructor;
                    n = s(a, arguments, r)
                } else n = a.apply(this, arguments);
                return (0, m.default)(this, n)
            }
        }

        function B(e, t) {
            var n = r(e);
            if (i) {
                var a = i(e);
                t && (a = o(a).call(a, (function(t) {
                    return l(e, t).enumerable
                }))), n.push.apply(n, a)
            }
            return n
        }

        function F(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? B(Object(n), !0).forEach((function(t) {
                    (0, y.default)(e, t, n[t])
                })) : u ? Object.defineProperties(e, u(n)) : B(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, l(n, t))
                }))
            }
            return e
        }
        var U, H, W = function() {
                return "string" == typeof maybe
            },
            G = function() {
                return !1
            };
        Math.easeInOutQuad = function(e, t, n, a) {
            return (e /= a / 2) < 1 ? n / 2 * e * e + t : -n / 2 * (--e * (e - 2) - 1) + t
        };
        var z = function(e) {
            (0, g.default)(n, e);
            var t = j(n);

            function n(e) {
                var a, r;
                (0, p.default)(this, n);
                for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), l = 1; l < i; l++) o[l - 1] = arguments[l];
                return (r = t.call.apply(t, (0, f.default)(a = [this, e]).call(a, o))).getScrollLeft = r.getScrollLeft.bind((0, v.default)(r)), r.getScrollTop = r.getScrollTop.bind((0, v.default)(r)), r.getScrollWidth = r.getScrollWidth.bind((0, v.default)(r)), r.getScrollHeight = r.getScrollHeight.bind((0, v.default)(r)), r.getClientWidth = r.getClientWidth.bind((0, v.default)(r)), r.getClientHeight = r.getClientHeight.bind((0, v.default)(r)), r.getValues = r.getValues.bind((0, v.default)(r)), r.getThumbHorizontalWidth = r.getThumbHorizontalWidth.bind((0, v.default)(r)), r.getThumbVerticalHeight = r.getThumbVerticalHeight.bind((0, v.default)(r)), r.getScrollLeftForOffset = r.getScrollLeftForOffset.bind((0, v.default)(r)), r.getScrollTopForOffset = r.getScrollTopForOffset.bind((0, v.default)(r)), r.getScrollDiff = r.getScrollDiff.bind((0, v.default)(r)), r.scrollLeft = r.scrollLeft.bind((0, v.default)(r)), r.scrollTop = r.scrollTop.bind((0, v.default)(r)), r.scrollToLeft = r.scrollToLeft.bind((0, v.default)(r)), r.scrollToTop = r.scrollToTop.bind((0, v.default)(r)), r.scrollToRight = r.scrollToRight.bind((0, v.default)(r)), r.scrollToBottom = r.scrollToBottom.bind((0, v.default)(r)), r.handleTrackMouseEnter = r.handleTrackMouseEnter.bind((0, v.default)(r)), r.handleTrackMouseLeave = r.handleTrackMouseLeave.bind((0, v.default)(r)), r.handleHorizontalTrackMouseDown = r.handleHorizontalTrackMouseDown.bind((0, v.default)(r)), r.handleVerticalTrackMouseDown = r.handleVerticalTrackMouseDown.bind((0, v.default)(r)), r.handleHorizontalThumbMouseDown = r.handleHorizontalThumbMouseDown.bind((0, v.default)(r)), r.handleVerticalThumbMouseDown = r.handleVerticalThumbMouseDown.bind((0, v.default)(r)), r.handleWindowResize = r.handleWindowResize.bind((0, v.default)(r)), r.handleScroll = r.handleScroll.bind((0, v.default)(r)), r.handleMouseWheel = r.handleMouseWheel.bind((0, v.default)(r)), r.handleDrag = r.handleDrag.bind((0, v.default)(r)), r.handleDragEnd = r.handleDragEnd.bind((0, v.default)(r)), r.state = {
                    didMountUniversal: !1
                }, r.ignore = !1, r.callbackCounter = 0, r.view = {}, r
            }
            return (0, h.default)(n, [{
                key: "componentDidMount",
                value: function() {
                    this.addListeners(), this.update(), this.componentDidMountUniversal()
                }
            }, {
                key: "componentDidMountUniversal",
                value: function() {
                    this.props.universal && this.setState({
                        didMountUniversal: !0
                    })
                }
            }, {
                key: "componentDidUpdate",
                value: function() {
                    this.update()
                }
            }, {
                key: "componentWillUnmount",
                value: function() {
                    this.removeListeners(), this.requestFrame && (0, O.cancel)(this.requestFrame), clearTimeout(this.hideTracksTimeout), clearInterval(this.detectScrollingInterval)
                }
            }, {
                key: "setIgnore",
                value: function(e) {
                    this.ignore = e
                }
            }, {
                key: "getIgnore",
                value: function() {
                    return this.ignore
                }
            }, {
                key: "getScrollLeft",
                value: function() {
                    return this.view ? this.view.scrollLeft : 0
                }
            }, {
                key: "getScrollTop",
                value: function() {
                    return this.view.scrollTop
                }
            }, {
                key: "getScrollWidth",
                value: function() {
                    return this.view.scrollWidth
                }
            }, {
                key: "getScrollHeight",
                value: function() {
                    return this.view.scrollHeight
                }
            }, {
                key: "getScrollDiff",
                value: function() {
                    return this.getScrollHeight() - this.getScrollTop() - this.getClientHeight()
                }
            }, {
                key: "hasScroll",
                value: function() {
                    return this.getScrollHeight() > this.getClientHeight()
                }
            }, {
                key: "getClientWidth",
                value: function() {
                    return this.view.clientWidth
                }
            }, {
                key: "getClientHeight",
                value: function() {
                    return this.view.clientHeight
                }
            }, {
                key: "getValues",
                value: function() {
                    var e = this.view,
                        t = e.scrollLeft,
                        n = e.scrollTop,
                        a = e.scrollWidth,
                        r = e.scrollHeight,
                        i = e.clientWidth,
                        o = e.clientHeight;
                    return {
                        left: t / (a - i) || 0,
                        top: n / (r - o) || 0,
                        scrollLeft: t,
                        scrollTop: n,
                        scrollWidth: a,
                        scrollHeight: r,
                        clientWidth: i,
                        clientHeight: o
                    }
                }
            }, {
                key: "getThumbHorizontalWidth",
                value: function() {
                    var e = this.props,
                        t = e.thumbSize,
                        n = e.thumbMinSize,
                        a = this.view,
                        r = a.scrollWidth,
                        i = a.clientWidth,
                        o = (0, w.getInnerWidth)(this.trackHorizontal),
                        l = Math.ceil(i / r * o);
                    return o === l ? 0 : t || Math.max(l, n)
                }
            }, {
                key: "getThumbVerticalHeight",
                value: function() {
                    var e = this.props,
                        t = e.thumbSize,
                        n = e.thumbMinSize,
                        a = this.view,
                        r = a.scrollHeight,
                        i = a.clientHeight,
                        o = (0, w.getInnerHeight)(this.trackVertical),
                        l = Math.ceil(i / r * o);
                    return o === l ? 0 : t || Math.max(l, n)
                }
            }, {
                key: "getScrollLeftForOffset",
                value: function(e) {
                    var t = this.view,
                        n = t.scrollWidth,
                        a = t.clientWidth;
                    return e / ((0, w.getInnerWidth)(this.trackHorizontal) - this.getThumbHorizontalWidth()) * (n - a)
                }
            }, {
                key: "getScrollTopForOffset",
                value: function(e) {
                    var t = this.view,
                        n = t.scrollHeight,
                        a = t.clientHeight;
                    return e / ((0, w.getInnerHeight)(this.trackVertical) - this.getThumbVerticalHeight()) * (n - a)
                }
            }, {
                key: "scrollLeft",
                value: function() {
                    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0;
                    this.view.scrollLeft = e
                }
            }, {
                key: "scrollTop",
                value: function() {
                    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 0;
                    this.view.scrollTop = e
                }
            }, {
                key: "scrollToLeft",
                value: function() {
                    this.view.scrollLeft = 0
                }
            }, {
                key: "scrollToTop",
                value: function() {
                    this.view.scrollTop = 0
                }
            }, {
                key: "scrollToRight",
                value: function() {
                    this.view.scrollLeft = this.view.scrollWidth
                }
            }, {
                key: "scrollToBottom",
                value: function() {
                    if (this.hasScroll()) {
                        var e = this.getScrollHeight();
                        this.view.scrollTop = 0 !== e ? this.view.scrollHeight : e
                    }
                }
            }, {
                key: "setBottomPosition",
                value: function() {
                    U = this.view.childNodes[0].clientHeight - (this.container.parentNode.clientHeight || 254), this.view.style.bottom = U + "px"
                }
            }, {
                key: "addListeners",
                value: function() {
                    if ("undefined" != typeof document) {
                        var e = this.view,
                            t = this.trackHorizontal,
                            n = this.trackVertical,
                            a = this.thumbHorizontal,
                            r = this.thumbVertical,
                            i = this.container;
                        (0, C.addListener)(e, "scroll", this.handleScroll, !0), (0, C.addListener)(e, "mousewheel", this.handleMouseWheel), (0, w.getScrollBarWidth)() && (t && (t.addEventListener("mouseenter", this.handleTrackMouseEnter), t.addEventListener("mouseleave", this.handleTrackMouseLeave), t.addEventListener("mousedown", this.handleHorizontalTrackMouseDown)), i && i.addEventListener("mouseenter", this.handleTrackCheckHide.bind(this)), n && (n.addEventListener("mouseenter", this.handleTrackMouseEnter), n.addEventListener("mouseleave", this.handleTrackMouseLeave), n.addEventListener("mousedown", this.handleVerticalTrackMouseDown)), a && a.addEventListener("mousedown", this.handleHorizontalThumbMouseDown), r && r.addEventListener("mousedown", this.handleVerticalThumbMouseDown), window.addEventListener("resize", this.handleWindowResize))
                    }
                }
            }, {
                key: "removeListeners",
                value: function() {
                    if ("undefined" != typeof document) {
                        var e = this.view,
                            t = this.trackHorizontal,
                            n = this.trackVertical,
                            a = this.thumbHorizontal,
                            r = this.thumbVertical;
                        e.removeEventListener("scroll", this.handleScroll), e.removeEventListener("mousewheel", this.handleMouseWheel), (0, w.getScrollBarWidth)() && (t && (t.removeEventListener("mouseenter", this.handleTrackMouseEnter), t.removeEventListener("mouseleave", this.handleTrackMouseLeave), t.removeEventListener("mousedown", this.handleHorizontalTrackMouseDown)), n && (n.removeEventListener("mouseenter", this.handleTrackMouseEnter), n.removeEventListener("mouseleave", this.handleTrackMouseLeave), n.removeEventListener("mousedown", this.handleVerticalTrackMouseDown)), a && a.removeEventListener("mousedown", this.handleHorizontalThumbMouseDown), r && r.removeEventListener("mousedown", this.handleVerticalThumbMouseDown), window.removeEventListener("resize", this.handleWindowResize), this.teardownDragging())
                    }
                }
            }, {
                key: "handleScroll",
                value: function(e) {
                    var t = this,
                        n = this.props,
                        a = n.onScroll,
                        r = n.onScrollFrame;
                    a && a(e), this.update((function(e) {
                        var n = e.scrollLeft,
                            a = e.scrollTop;
                        t.viewScrollLeft = n, t.viewScrollTop = a, r && r(e)
                    })), this.detectScrolling()
                }
            }, {
                key: "handleTouchMove",
                value: function(e) {
                    if (-1 === ["INPUT", "TEXTAREA"].indexOf(e.target.tagName)) {
                        e.stopPropagation(), e.preventDefault();
                        var t = this.view.childNodes[0].clientHeight - this.container.parentNode.clientHeight,
                            n = U - (e.touches[0].pageY + H);
                        t > n && 0 < n && (U -= e.touches[0].pageY + H, this.view.style.bottom = U + "px")
                    }
                }
            }, {
                key: "handleTouchStart",
                value: function(e) {
                    -1 === ["INPUT", "TEXTAREA", "A"].indexOf(e.target.tagName) && (e.stopPropagation(), e.preventDefault(), H = -1 * e.touches[0].pageY)
                }
            }, {
                key: "handleMouseWheel",
                value: function(e) {
                    e.stopPropagation();
                    var t = e.wheelDelta || e.originalEvent && e.originalEvent.wheelDelta || -e.detail,
                        n = this.view.scrollTop + this.view.clientHeight - this.view.scrollHeight >= 0,
                        a = this.view.scrollTop <= 0;
                    (t < 0 && n || t > 0 && a) && e.preventDefault()
                }
            }, {
                key: "handleScrollStart",
                value: function() {
                    var e = this.props.onScrollStart;
                    e && e(), this.handleScrollStartAutoHide()
                }
            }, {
                key: "handleScrollStartAutoHide",
                value: function() {
                    this.props.autoHide && this.showTracks()
                }
            }, {
                key: "handleScrollStop",
                value: function() {
                    var e = this.props.onScrollStop;
                    e && e(), this.handleScrollStopAutoHide()
                }
            }, {
                key: "handleScrollStopAutoHide",
                value: function() {
                    this.props.autoHide && this.hideTracks()
                }
            }, {
                key: "handleWindowResize",
                value: function() {
                    this.update()
                }
            }, {
                key: "handleHorizontalTrackMouseDown",
                value: function(e) {
                    e.preventDefault();
                    var t = e.target,
                        n = e.clientX,
                        a = t.getBoundingClientRect().left,
                        r = this.getThumbHorizontalWidth(),
                        i = Math.abs(a - n) - r / 2;
                    this.view.scrollLeft = this.getScrollLeftForOffset(i)
                }
            }, {
                key: "handleVerticalTrackMouseDown",
                value: function(e) {
                    e.preventDefault();
                    var t = e.target,
                        n = e.clientY,
                        a = t.getBoundingClientRect().top,
                        r = this.getThumbVerticalHeight(),
                        i = Math.abs(a - n) - r / 2;
                    this.view.scrollTop = this.getScrollTopForOffset(i)
                }
            }, {
                key: "handleHorizontalThumbMouseDown",
                value: function(e) {
                    e.preventDefault(), this.handleDragStart(e);
                    var t = e.target,
                        n = e.clientX,
                        a = t.offsetWidth,
                        r = t.getBoundingClientRect().left;
                    this.prevPageX = a - (n - r)
                }
            }, {
                key: "handleVerticalThumbMouseDown",
                value: function(e) {
                    e.preventDefault(), this.handleDragStart(e);
                    var t = e.target,
                        n = e.clientY,
                        a = t.offsetHeight,
                        r = t.getBoundingClientRect().top;
                    this.prevPageY = a - (n - r)
                }
            }, {
                key: "setupDragging",
                value: function() {
                    var e = (0, S.getPageWindow)().document;
                    (0, A.default)(e.body, I.disableSelectStyle), e.addEventListener("mousemove", this.handleDrag), e.addEventListener("mouseup", this.handleDragEnd), e.onselectstart = G
                }
            }, {
                key: "teardownDragging",
                value: function() {
                    var e = (0, S.getPageWindow)().document;
                    (0, A.default)(e.body, I.disableSelectStyleReset), e.removeEventListener("mousemove", this.handleDrag), e.removeEventListener("mouseup", this.handleDragEnd), e.onselectstart = void 0
                }
            }, {
                key: "handleDragStart",
                value: function(e) {
                    this.dragging = !0, e.stopImmediatePropagation(), this.setupDragging()
                }
            }, {
                key: "handleDrag",
                value: function(e) {
                    if (this.prevPageX) {
                        var t = e.clientX,
                            n = -this.trackHorizontal.getBoundingClientRect().left + t - (this.getThumbHorizontalWidth() - this.prevPageX);
                        this.view.scrollLeft = this.getScrollLeftForOffset(n)
                    }
                    if (this.prevPageY) {
                        var a = e.clientY,
                            r = -this.trackVertical.getBoundingClientRect().top + a - (this.getThumbVerticalHeight() - this.prevPageY);
                        this.view.scrollTop = this.getScrollTopForOffset(r)
                    }
                    return !1
                }
            }, {
                key: "handleDragEnd",
                value: function() {
                    this.dragging = !1, this.prevPageX = this.prevPageY = 0, this.teardownDragging(), this.handleDragEndAutoHide()
                }
            }, {
                key: "handleDragEndAutoHide",
                value: function() {
                    this.props.autoHide && this.hideTracks()
                }
            }, {
                key: "handleTrackCheckHide",
                value: function() {
                    this.props.autoHide && this.view && this.trackVertical && (this.hasScroll() ? this.showTracks() : (0, A.default)(this.trackVertical, {
                        opacity: 0
                    }))
                }
            }, {
                key: "handleTrackMouseEnter",
                value: function() {
                    this.hasScroll() && (this.trackMouseOver = !0, this.handleTrackMouseEnterAutoHide())
                }
            }, {
                key: "handleTrackMouseEnterAutoHide",
                value: function() {
                    this.props.autoHide && this.showTracks()
                }
            }, {
                key: "handleTrackMouseLeave",
                value: function() {
                    this.dragging || (this.trackMouseOver = !1, this.handleTrackMouseLeaveAutoHide())
                }
            }, {
                key: "handleTrackMouseLeaveAutoHide",
                value: function() {
                    this.props.autoHide && this.hideTracks()
                }
            }, {
                key: "showTracks",
                value: function() {
                    clearTimeout(this.hideTracksTimeout), this.trackHorizontal && (0, A.default)(this.trackHorizontal, {
                        opacity: 1
                    }), (0, A.default)(this.trackVertical, {
                        opacity: 1
                    })
                }
            }, {
                key: "hideTracks",
                value: function() {
                    var e = this;
                    if (!this.dragging && !this.scrolling && !this.trackMouseOver) {
                        var t = this.props.autoHideTimeout;
                        clearTimeout(this.hideTracksTimeout), this.hideTracksTimeout = setTimeout((function() {
                            e.trackHorizontal && (0, A.default)(e.trackHorizontal, {
                                opacity: 0
                            }), (0, A.default)(e.trackVertical, {
                                opacity: 0
                            })
                        }), t)
                    }
                }
            }, {
                key: "detectScrolling",
                value: function() {
                    var e = this;
                    this.scrolling || (this.scrolling = !0, this.handleScrollStart(), this.detectScrollingInterval = setInterval((function() {
                        e.lastViewScrollLeft === e.viewScrollLeft && e.lastViewScrollTop === e.viewScrollTop && (clearInterval(e.detectScrollingInterval), e.scrolling = !1, e.handleScrollStop()), e.lastViewScrollLeft = e.viewScrollLeft, e.lastViewScrollTop = e.viewScrollTop
                    }), 100))
                }
            }, {
                key: "raf",
                value: function(e) {
                    var t = this;
                    this.requestFrame && (0, O.cancel)(this.requestFrame);
                    var n = this.enableFallback ? (0, S.getPageWindow)().requestAnimationFrame : O.default;
                    this.requestFrame = n((function() {
                        t.requestFrame = void 0, t.callbackCounter++, e()
                    }))
                }
            }, {
                key: "update",
                value: function(e) {
                    var t = this;
                    this.raf((function() {
                        return t._update(e)
                    })), setTimeout((function() {
                        var e = (0, S.getPageWindow)();
                        !t.callbackCounter && e.requestAnimationFrame && (t.enableFallback = !0)
                    }), 1e3)
                }
            }, {
                key: "_update",
                value: function(e) {
                    var t = this.props,
                        n = t.onUpdate,
                        a = t.hideTracksWhenNotNeeded;
                    if (this.view) {
                        var r = this.getValues();
                        if ((0, w.getScrollBarWidth)()) {
                            if (this.trackHorizontal) {
                                var i = r.scrollLeft,
                                    o = r.clientWidth,
                                    l = r.scrollWidth,
                                    u = (0, w.getInnerWidth)(this.trackHorizontal),
                                    s = this.getThumbHorizontalWidth();
                                "translateX(".concat(i / (l - o) * (u - s), "px)")
                            }
                            var c = r.scrollTop,
                                d = r.clientHeight,
                                f = r.scrollHeight,
                                p = (0, w.getInnerHeight)(this.trackVertical),
                                h = this.getThumbVerticalHeight(),
                                v = {
                                    height: h,
                                    transform: "translateY(".concat(c / (f - d) * (p - h), "px)")
                                };
                            if (a) {
                                if (this.trackHorizontal) {
                                    var g = {
                                        visibility: scrollWidth > clientWidth ? "visible" : "hidden"
                                    };
                                    (0, A.default)(this.trackHorizontal, g)
                                }
                                var m = {
                                    visibility: f > d ? "visible" : "hidden"
                                };
                                (0, A.default)(this.trackVertical, m)
                            }
                            this.thumbHorizontal && (0, A.default)(this.thumbHorizontal, thumbHorizontalStyle), (0, A.default)(this.thumbVertical, v)
                        }
                        n && n(r), "function" == typeof e && e(r)
                    }
                }
            }, {
                key: "render",
                value: function() {
                    var e, t, n = this,
                        a = (0, w.getScrollBarWidth)(),
                        r = this.props,
                        i = (r.onScroll, r.onScrollFrame, r.onScrollStart, r.onScrollStop, r.onUpdate, r.renderView),
                        o = r.renderTrackHorizontal,
                        l = r.renderTrackVertical,
                        u = r.renderThumbHorizontal,
                        s = r.renderThumbVertical,
                        c = r.tagName,
                        d = (r.hideTracksWhenNotNeeded, r.autoHide),
                        p = (r.autoHideTimeout, r.autoHideDuration),
                        h = (r.thumbSize, r.thumbMinSize, r.onlyY),
                        v = r.universal,
                        g = r.autoHeight,
                        m = r.autoHeightMin,
                        _ = r.autoHeightMax,
                        y = (r.scrollMarginTop, r.railClass, r.scrollWrapClass),
                        E = r.position,
                        C = r.style,
                        S = r.children,
                        O = (0, b.default)(r, P),
                        A = this.state.didMountUniversal,
                        M = F(F(F({}, I.containerStyleDefault), g && F(F({}, I.containerStyleAutoHeight), {}, {
                            minHeight: m,
                            maxHeight: _
                        })), C),
                        k = F(F(F(F({}, I.viewStyleDefault), {}, {
                            display: "block",
                            marginRight: a ? -a : 0,
                            marginBottom: !h && a ? -a : 0
                        }, g && F(F({}, I.viewStyleAutoHeight), {}, {
                            minHeight: W() ? (0, f.default)(e = "calc(".concat(m, " + ")).call(e, a, "px)") : m + a,
                            maxHeight: W() ? (0, f.default)(t = "calc(".concat(_, " + ")).call(t, a, "px)") : _ + a
                        })), g && v && !A && {
                            minHeight: m,
                            maxHeight: _
                        }), v && !A && I.viewStyleUniversalInitial);
                    E && (k.position = E), h && (k.overflowX = "hidden", R.default.mobileOrTablet || (k.overflowY = "scroll"));
                    var N = {
                            transition: "opacity ".concat(p, "ms"),
                            opacity: 0
                        },
                        x = F(F(F({}, I.trackHorizontalStyleDefault), d && N), (!a || v && !A) && {
                            display: "none"
                        }),
                        L = F(F(F({}, I.trackVerticalStyleDefault), d && N), (!a || v && !A) && {
                            display: "none"
                        }),
                        D = [(0, T.cloneElement)(i({
                            style: k
                        }, y), {
                            key: "view",
                            ref: function(e) {
                                n.view = e
                            }
                        }, S)];
                    return h || D.push((0, T.cloneElement)(o({
                        style: x
                    }), {
                        key: "trackHorizontal",
                        ref: function(e) {
                            n.trackHorizontal = e
                        }
                    }, (0, T.cloneElement)(u({
                        style: I.thumbHorizontalStyleDefault
                    }), {
                        ref: function(e) {
                            n.thumbHorizontal = e
                        }
                    }))), D.push((0, T.cloneElement)(l({
                        style: L
                    }, this.props.scrollMarginTop, this.props.railClass), {
                        key: "trackVertical",
                        ref: function(e) {
                            n.trackVertical = e
                        }
                    }, (0, T.cloneElement)(s({
                        style: I.thumbVerticalStyleDefault
                    }), {
                        ref: function(e) {
                            n.thumbVertical = e
                        }
                    }))), (0, T.createElement)(c, F(F({}, O), {}, {
                        style: M,
                        ref: function(e) {
                            n.container = e
                        }
                    }), D)
                }
            }]), n
        }(T.Component);
        t.default = z, z.defaultProps = {
            renderView: function(e, t) {
                return T.default.createElement("jdiv", (0, E.default)({
                    className: t
                }, e))
            },
            renderTrackHorizontal: function(e) {
                var t = e.style,
                    n = (0, b.default)(e, M),
                    a = F(F({}, t), {}, {
                        right: 2,
                        bottom: 2,
                        left: 2,
                        borderRadius: 3
                    });
                return T.default.createElement("jdiv", (0, E.default)({
                    style: a
                }, n))
            },
            renderTrackVertical: function(e, t, n) {
                var a = e.style,
                    r = (0, b.default)(e, k),
                    i = F(F({}, a), {}, {
                        right: 3,
                        bottom: 2,
                        top: t || 2,
                        borderRadius: 4,
                        width: 8
                    });
                return T.default.createElement("jdiv", (0, E.default)({
                    className: n,
                    style: i
                }, r))
            },
            renderThumbHorizontal: function(e) {
                var t = e.style,
                    n = (0, b.default)(e, N),
                    a = F(F({}, t), {}, {
                        cursor: "pointer",
                        borderRadius: "inherit",
                        backgroundColor: "#d6dce4"
                    });
                return T.default.createElement("jdiv", (0, E.default)({
                    style: a
                }, n))
            },
            renderThumbVertical: function(e) {
                var t = e.style,
                    n = (0, b.default)(e, x),
                    a = F(F({}, t), {}, {
                        cursor: "pointer",
                        borderRadius: "inherit",
                        backgroundColor: "#d6d4d4"
                    });
                return T.default.createElement("jdiv", (0, E.default)({
                    style: a
                }, n))
            },
            tagName: "jdiv",
            thumbMinSize: 30,
            hideTracksWhenNotNeeded: !0,
            autoHide: !1,
            autoHideTimeout: 1e3,
            autoHideDuration: 200,
            autoHeight: !1,
            autoHeightMin: 0,
            autoHeightMax: 200,
            onlyY: !0,
            universal: !1,
            railClass: "null",
            scrollWrapClass: null
        }
    }, 61699: function(e, t) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.viewStyleUniversalInitial = t.viewStyleDefault = t.viewStyleAutoHeight = t.trackVerticalStyleDefault = t.trackHorizontalStyleDefault = t.thumbVerticalStyleDefault = t.thumbHorizontalStyleDefault = t.disableSelectStyleReset = t.disableSelectStyle = t.containerStyleDefault = t.containerStyleAutoHeight = void 0;
        t.containerStyleDefault = {
            position: "relative",
            overflow: "hidden",
            width: "100%",
            height: "100%",
            display: "block",
            WebkitOverflowScrolling: "touch"
        };
        t.containerStyleAutoHeight = {
            height: "auto"
        };
        t.viewStyleDefault = {
            position: "absolute",
            maxHeight: "100%",
            top: "auto",
            left: 0,
            right: 0,
            bottom: 0,
            overflow: "scroll",
            WebkitOverflowScrolling: "touch"
        };
        var n = {
            position: "relative",
            top: void 0,
            left: void 0,
            right: void 0,
            bottom: void 0
        };
        t.viewStyleAutoHeight = n;
        t.viewStyleUniversalInitial = {
            overflow: "hidden",
            marginRight: 0,
            marginBottom: 0
        };
        t.trackHorizontalStyleDefault = {
            position: "absolute",
            height: 0
        };
        t.trackVerticalStyleDefault = {
            position: "absolute",
            width: 8
        };
        t.thumbHorizontalStyleDefault = {
            position: "relative",
            display: "block",
            height: "100%"
        };
        t.thumbVerticalStyleDefault = {
            position: "relative",
            display: "block",
            width: "100%"
        };
        t.disableSelectStyle = {
            userSelect: "none"
        };
        t.disableSelectStyleReset = {
            userSelect: ""
        }
    }, 33126: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(2991)),
            u = o(n(94473)),
            s = o(n(62462)),
            c = o(n(87672)),
            d = o(n(18777)),
            f = w(n(98661)),
            p = o(n(45697)),
            h = o(n(94184)),
            v = n(55004),
            g = n(21733),
            m = n(49862),
            _ = o(n(43569)),
            y = o(n(11880)),
            b = w(n(59083)),
            E = o(n(43711)),
            T = o(n(42960)),
            C = o(n(40704));

        function S(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (S = function(e) {
                return e ? n : t
            })(e)
        }

        function w(e, t) {
            if (!t && e && e.__esModule) return e;
            if (null === e || "object" !== a(e) && "function" != typeof e) return {
                default: e
            };
            var n = S(t);
            if (n && n.has(e)) return n.get(e);
            var r = {},
                o = Object.defineProperty && i;
            for (var l in e)
                if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                    var u = o ? i(e, l) : null;
                    u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                }
            return r.default = e, n && n.set(e, r), r
        }
        var O = function(e) {
            var t = e.data,
                n = e.itemComponent,
                a = e.color,
                r = e.disabled,
                i = e.error,
                o = e.label,
                p = e.radius,
                S = e.required,
                w = e.size,
                O = e.variant,
                A = e.placeholder,
                I = e.name,
                R = e.gutter,
                M = e.initialValue,
                k = e.initialOpened,
                N = e.shadow,
                x = e.maxDropdownHeight,
                P = e.zIndex,
                L = e.dropdownPosition,
                D = e.positionDependencies,
                j = e.onDropdownOpen,
                B = e.onDropdownClose,
                F = e.rightSectionWidth,
                U = e.withinPortal,
                H = e.onChange,
                W = e.onKeyDown,
                G = e.onFocus,
                z = e.onBlur,
                V = (0, f.useRef)(null),
                q = (0, f.useRef)(null),
                K = (0, f.useRef)({}),
                Y = (0, f.useState)(M),
                X = (0, d.default)(Y, 2),
                Z = X[0],
                J = X[1],
                $ = (0, f.useState)(k),
                Q = (0, d.default)($, 2),
                ee = Q[0],
                te = Q[1],
                ne = (0, f.useState)(-1),
                ae = (0, d.default)(ne, 2),
                re = ae[0],
                ie = ae[1],
                oe = (0, l.default)(t).call(t, (function(e) {
                    return (0, g.isString)(e) ? {
                        label: e,
                        value: e
                    } : e
                })),
                le = (0, u.default)(oe).call(oe, (function(e) {
                    return e.value === Z
                })),
                ue = (0, s.default)(oe).call(oe, (function(e) {
                    return e.value === Z
                })),
                se = (0, f.useState)(null == le ? void 0 : le.label),
                ce = (0, d.default)(se, 2),
                de = ce[0],
                fe = ce[1],
                pe = function(e, t) {
                    var n, a = K.current[null === (n = oe[e]) || void 0 === n ? void 0 : n.value];
                    a && a.parentNode && (a.parentNode.scrollTop = t(a))
                },
                he = function() {
                    return window.setTimeout((function() {
                        pe(ue, (function(e) {
                            return e.offsetTop - (q.current.clientHeight - e.offsetHeight) / 2
                        }))
                    }), 0)
                },
                ve = function(e) {
                    if (ee !== e) {
                        var t = e ? j : B;
                        (0, v.isFunction)(t) && t(), te(e)
                    }
                },
                ge = function(e) {
                    (null == le ? void 0 : le.value) === e.value || (function(e) {
                        J(e.value), fe(e.label), H(e)
                    }(e), ie(-1)), te(!1)
                },
                me = function(e, t, n) {
                    for (var a = e; n(a);)
                        if (a = t(a), !oe[a].disabled) return a;
                    return e
                };
            return (0, m.useDidUpdate)((function() {
                ie(me(-1, (function(e) {
                    return e + 1
                }), (function(e) {
                    return e < oe.length - 1
                })))
            }), [de]), f.default.createElement(y.default, {
                onMouseLeave: function() {
                    return ie(-1)
                }
            }, f.default.createElement("input", {
                type: "hidden",
                name: I,
                value: Z
            }), f.default.createElement(_.default, {
                type: "text",
                ref: V,
                readOnly: !0,
                classNames: {
                    input: (0, h.default)((0, c.default)({}, T.default.input, !r))
                },
                color: a,
                disabled: r,
                error: i,
                radius: p,
                required: S,
                size: w,
                value: de,
                variant: O,
                placeholder: A,
                label: o,
                rightSectionWidth: F,
                rightSection: f.default.createElement(C.default, {
                    iconName: "icon-v",
                    color: "#666666",
                    className: T.default.dropIcon
                }),
                onMouseDown: function() {
                    var e = !ee;
                    ve(e), Z && e && (ie(ue), he())
                },
                onKeyDown: function(e) {
                    switch ((0, v.isFunction)(W) && W(e), e.nativeEvent.code) {
                        case "ArrowUp":
                            e.preventDefault(), ee ? ie((function(e) {
                                var t = me(e, (function(e) {
                                    return e - 1
                                }), (function(e) {
                                    return e > 0
                                }));
                                return pe(t, (function(e) {
                                    return e.offsetTop < q.current.scrollTop ? e.offsetTop - b.DROPDOWN_GAP : q.current.scrollTop
                                })), t
                            })) : (ie(ue), te(!0), he());
                            break;
                        case "ArrowDown":
                            e.preventDefault(), ee ? ie((function(e) {
                                var t = me(e, (function(e) {
                                    return e + 1
                                }), (function(e) {
                                    return e < oe.length - 1
                                }));
                                return pe(t, (function(e) {
                                    var t = e.offsetTop + e.offsetHeight,
                                        n = q.current,
                                        a = n.scrollTop,
                                        r = n.clientHeight;
                                    return t > a + r ? t - r - b.DROPDOWN_GAP : a
                                })), t
                            })) : (ie(ue), te(!0), he());
                            break;
                        case "Escape":
                            e.preventDefault(), te(!1), ie(-1);
                            break;
                        case "Space":
                            oe[re] && ee ? (e.preventDefault(), ge(oe[re])) : (te(!0), ie(ue), he());
                            break;
                        case "Enter":
                            e.preventDefault(), oe[re] && ee && ge(oe[re])
                    }
                },
                onFocus: function(e) {
                    (0, v.isFunction)(G) && G(e), te(!0), he()
                },
                onBlur: function(e) {
                    (0, v.isFunction)(z) && z(e), ve(!1)
                }
            }), f.default.createElement(b.default, {
                ref: q,
                dropdownPosition: L,
                gutter: R,
                maxDropdownHeight: x,
                mounted: oe.length > 0 && ee,
                positionDependencies: D,
                radius: p,
                referenceElement: V.current,
                shadow: N,
                withinPortal: U,
                zIndex: P
            }, (0, l.default)(oe).call(oe, (function(e, t) {
                var r = n || E.default;
                return f.default.createElement(r, {
                    key: e.value,
                    itemsRefs: K,
                    value: e.value,
                    label: e.label,
                    color: a,
                    size: w,
                    radius: p,
                    selected: Z === e.value,
                    hovered: re === t,
                    withinSelected: !!le,
                    onItemSelect: function() {
                        return ge(e)
                    },
                    onItemHover: function() {
                        return ie(t)
                    }
                })
            }))))
        };
        O.defaultProps = {
            color: "green",
            dropdownPosition: "bottom",
            initialOpened: !1,
            initialValue: "",
            rightSectionWidth: 38,
            radius: "sm",
            size: "sm",
            variant: "default",
            withinPortal: !1
        }, O.propTypes = {
            color: p.default.oneOf(["green", "blue", "grey"]),
            data: p.default.arrayOf(p.default.oneOfType([p.default.string, p.default.shape({
                label: p.default.string,
                value: p.default.oneOfType([p.default.string, p.default.number]),
                disabled: p.default.bool
            })])),
            disabled: p.default.bool,
            dropdownPosition: p.default.oneOf(["top", "left", "bottom", "right"]),
            error: p.default.oneOfType([p.default.string, p.default.bool]),
            gutter: p.default.number,
            initialOpened: p.default.bool,
            initialValue: p.default.oneOfType([p.default.string, p.default.number]),
            itemComponent: p.default.func,
            maxDropdownHeight: p.default.number,
            name: p.default.string,
            onDropdownClose: p.default.func,
            onDropdownOpen: p.default.func,
            placeholder: p.default.string,
            label: p.default.string,
            positionDependencies: p.default.array,
            radius: p.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            required: p.default.bool,
            rightSectionWidth: p.default.number,
            shadow: p.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            size: p.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            variant: p.default.oneOf(["default", "filled", "inset", "unstyled"]),
            zIndex: p.default.number,
            withinPortal: p.default.bool,
            onChange: p.default.func,
            onKeyDown: p.default.func,
            onFocus: p.default.func,
            onBlur: p.default.func
        };
        var A = O;
        t.default = A
    }, 59083: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = t.DROPDOWN_GAP = void 0;
        var l = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = f(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            u = o(n(45697)),
            s = o(n(12593)),
            c = o(n(13114)),
            d = o(n(42960));

        function f(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (f = function(e) {
                return e ? n : t
            })(e)
        }
        t.DROPDOWN_GAP = 5;
        var p = (0, l.forwardRef)((function(e, t) {
            var n = e.children,
                a = e.dropdownPosition,
                r = e.gutter,
                i = e.maxDropdownHeight,
                o = e.mounted,
                u = e.positionDependencies,
                f = e.radius,
                p = e.referenceElement,
                h = e.shadow,
                v = e.withinPortal,
                g = e.zIndex;
            return l.default.createElement(s.default, {
                forceUpdateDependencies: u,
                gutter: r,
                mounted: o,
                position: a,
                referenceElement: p,
                withinPortal: v,
                zIndex: g,
                modifiers: [{
                    name: "sameWidth",
                    enabled: !0,
                    phase: "beforeWrite",
                    requires: ["computeStyles"],
                    fn: function(e) {
                        var t = e.state;
                        t.styles.popper.width = "".concat(t.rects.reference.width, "px")
                    },
                    effect: function(e) {
                        var t = e.state;
                        t.elements.popper.style.width = "".concat(t.elements.reference.offsetWidth, "px")
                    }
                }]
            }, l.default.createElement(c.default, {
                withBorder: !0,
                radius: f,
                shadow: h,
                onMouseDown: function(e) {
                    return e.preventDefault()
                }
            }, l.default.createElement("jdiv", {
                ref: t,
                style: {
                    display: "flex",
                    flexDirection: "column",
                    margin: 4,
                    maxHeight: i,
                    overflow: "auto"
                },
                className: d.default.dropDown
            }, n)))
        }));
        p.displayName = "SelectDropdown", p.propTypes = {
            children: u.default.node.isRequired,
            dropdownPosition: u.default.oneOf(["top", "left", "bottom", "right"]).isRequired,
            gutter: u.default.number.isRequired,
            maxDropdownHeight: u.default.number,
            mounted: u.default.bool.isRequired,
            positionDependencies: u.default.array,
            radius: u.default.oneOf(["xs", "sm", "md", "lg", "xl"]).isRequired,
            referenceElement: u.default.oneOfType([u.default.element.isRequired, function() {
                return null
            }]),
            shadow: u.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            withinPortal: u.default.bool.isRequired,
            zIndex: u.default.number
        };
        var h = p;
        t.default = h
    }, 43711: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(5872)),
            u = o(n(87672)),
            s = o(n(80122)),
            c = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = v(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            d = o(n(45697)),
            f = o(n(94184)),
            p = o(n(97629)),
            h = ["color", "disabled", "hovered", "itemsRefs", "label", "radius", "selected", "size", "value", "withinSelected", "onItemSelect", "onItemHover"];

        function v(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (v = function(e) {
                return e ? n : t
            })(e)
        }
        var g = function(e) {
            var t, n = e.color,
                a = e.disabled,
                r = e.hovered,
                i = e.itemsRefs,
                o = e.label,
                d = e.radius,
                v = e.selected,
                g = e.size,
                m = e.value,
                _ = e.withinSelected,
                y = e.onItemSelect,
                b = e.onItemHover,
                E = (0, s.default)(e, h),
                T = (0, c.useRef)();
            (0, c.useEffect)((function() {
                i.current && T.current && (i.current[m] = T.current)
            }), [i, m]);
            var C = (0, f.default)((t = {}, (0, u.default)(t, p.default.root, !0), (0, u.default)(t, p.default.__selected, !a && v), (0, u.default)(t, p.default.__hovered, !a && r), (0, u.default)(t, p.default.__withinSelected, _), (0, u.default)(t, p.default.__disabled, a), (0, u.default)(t, p.default["__" + n], n), (0, u.default)(t, p.default["__" + d + "Radius"], d), (0, u.default)(t, p.default["__" + g + "Size"], g), t));
            return c.default.createElement("jdiv", (0, l.default)({
                ref: T,
                className: C,
                onMouseEnter: b,
                onMouseDown: y
            }, E), o)
        };
        g.propTypes = {
            color: d.default.oneOf(["green", "blue", "grey"]),
            disabled: d.default.bool,
            hovered: d.default.bool,
            itemsRefs: d.default.shape({
                current: d.default.any
            }).isRequired,
            label: d.default.string.isRequired,
            radius: d.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            selected: d.default.bool,
            size: d.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            value: d.default.oneOfType([d.default.string, d.default.number]).isRequired,
            withinSelected: d.default.bool,
            onItemSelect: d.default.func.isRequired,
            onItemHover: d.default.func.isRequired
        };
        var m = g;
        t.default = m
    }, 6139: function(e, t, n) {
        "use strict";
        var a = n(86902),
            r = n(14310),
            i = n(20116),
            o = n(34074),
            l = n(39649),
            u = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var s = u(n(87672)),
            c = u(n(98661)),
            d = u(n(45697)),
            f = u(n(94184)),
            p = u(n(42217)),
            h = n(21733),
            v = n(79641);

        function g(e, t) {
            var n = a(e);
            if (r) {
                var l = r(e);
                t && (l = i(l).call(l, (function(t) {
                    return o(e, t).enumerable
                }))), n.push.apply(n, l)
            }
            return n
        }

        function m(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? g(Object(n), !0).forEach((function(t) {
                    (0, s.default)(e, t, n[t])
                })) : l ? Object.defineProperties(e, l(n)) : g(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, o(n, t))
                }))
            }
            return e
        }
        var _ = function(e) {
            var t, n = e.h,
                a = e.w,
                r = e.component,
                i = e.addClassname,
                o = r || "div",
                l = (0, f.default)((t = {}, (0, s.default)(t, p.default.spacer, !0), (0, s.default)(t, p.default["__" + n + "H"], (0, h.isString)(n)), (0, s.default)(t, p.default["__" + a + "W"], (0, h.isString)(a)), (0, s.default)(t, i, i), t)),
                u = m(m({}, (0, v.isNumber)(n) && {
                    height: n,
                    minHeight: n
                }), (0, v.isNumber)(a) && {
                    width: a,
                    minWidth: a
                });
            return c.default.createElement(o, {
                style: u,
                className: l
            })
        };
        _.propTypes = {
            h: d.default.oneOfType([d.default.number, d.default.oneOf(["xs", "sm", "md", "lg", "xl"])]),
            w: d.default.oneOfType([d.default.number, d.default.oneOf(["xs", "sm", "md", "lg", "xl"])]),
            addClassname: d.default.string,
            component: d.default.any
        };
        var y = _;
        t.default = y
    }, 91325: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var i = r(n(5872)),
            o = r(n(87672)),
            l = r(n(26394)),
            u = r(n(69198)),
            s = r(n(51379)),
            c = r(n(214)),
            d = r(n(66380)),
            f = r(n(98661)),
            p = r(n(54720)),
            h = r(n(84726)),
            v = r(n(19955)),
            g = n(90361),
            m = n(57930),
            _ = r(n(22760));

        function y(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, d.default)(e);
                if (t) {
                    var i = (0, d.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, c.default)(this, n)
            }
        }
        var b = function(e) {
            (0, s.default)(n, e);
            var t = y(n);

            function n(e) {
                var a;
                return (0, l.default)(this, n), (a = t.call(this, e))._textarea = null, a.handleChange = e.handleChange || function() {}, a
            }
            return (0, u.default)(n, [{
                key: "onInput",
                value: function(e) {
                    e.stopPropagation(), e.target.value !== this.props.value && this.handleChange.call(this, "message", e)
                }
            }, {
                key: "getRenderData",
                value: function() {
                    var e;
                    return {
                        styles: {
                            fieldWrap: [{
                                fieldWrap: !0
                            }],
                            inputField: [(e = {
                                inputField: !0
                            }, (0, o.default)(e, "_" + this.props.color, !(!this.props.color || "green" === this.props.color)), (0, o.default)(e, "__textarea", !0), (0, o.default)(e, "_error", this.props.error), (0, o.default)(e, "__mobile", v.default.mobileOrTablet()), (0, o.default)(e, "__bluredEmpty", !this.props.value), e)]
                        },
                        style: _.default
                    }
                }
            }, {
                key: "renderData",
                value: function(e, t) {
                    var n = this;
                    return f.default.createElement("jdiv", t.fieldWrap, f.default.createElement("textarea", (0, i.default)({}, t.inputField, {
                        value: this.props.value || void 0,
                        maxLength: "1000",
                        onInput: this.onInput.bind(this),
                        onKeyUp: function(e) {
                            e.stopPropagation()
                        },
                        onKeyDown: function(e) {
                            e.stopPropagation()
                        },
                        placeholder: (0, h.default)("lblYourMessage") + "*",
                        "data-gramm": "false",
                        "data-gramm_editor": "false",
                        "data-enable-grammarly": "false",
                        ref: function(e) {
                            n._textarea = e
                        }
                    }, (0, g.withLocator)(m.Locator.CONTACTS_FORM_INPUT))))
                }
            }]), n
        }(p.default);
        t.default = b
    }, 1497: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(5872)),
            u = o(n(87672)),
            s = o(n(18777)),
            c = o(n(80122)),
            d = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = b(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            f = o(n(45697)),
            p = o(n(94184)),
            h = n(21733),
            v = n(55330),
            g = o(n(19955)),
            m = o(n(11880)),
            _ = o(n(28402)),
            y = ["color", "error", "disabled", "label", "placeholder", "radius", "required", "rows", "size", "variant", "rightSection", "rightSectionWidth", "rightSectionProps", "classNames", "value"];

        function b(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (b = function(e) {
                return e ? n : t
            })(e)
        }
        var E = (0, d.forwardRef)((function(e, t) {
            var n, a, r, i, o = e.color,
                f = e.error,
                b = e.disabled,
                E = e.label,
                T = e.placeholder,
                C = e.radius,
                S = e.required,
                w = e.rows,
                O = e.size,
                A = e.variant,
                I = e.rightSection,
                R = e.rightSectionWidth,
                M = e.rightSectionProps,
                k = e.classNames,
                N = e.value,
                x = (0, c.default)(e, y),
                P = (0, d.useState)((function() {
                    return !!N
                })),
                L = (0, s.default)(P, 2),
                D = L[0],
                j = L[1],
                B = (0, d.useState)(""),
                F = (0, s.default)(B, 2),
                U = F[0],
                H = F[1],
                W = (0, d.useRef)(null),
                G = (0, v.useMergeRefs)(W, t),
                z = function(e) {
                    return S ? e + "*" : e
                },
                V = (0, p.default)((n = {}, (0, u.default)(n, _.default.root, !0), (0, u.default)(n, _.default.__invalid, f), (0, u.default)(n, _.default.__isIos, g.default.ios()), (0, u.default)(n, _.default[A], A), (0, u.default)(n, _.default["__" + o], o), (0, u.default)(n, _.default["__" + O + "Size"], O), (0, u.default)(n, _.default["__" + C + "Radius"], C), (0, u.default)(n, k.textarea, k.textarea), (0, u.default)(n, _.default.__active, D || "" !== N), n)),
                q = (0, p.default)((a = {}, (0, u.default)(a, _.default.label, !0), (0, u.default)(a, _.default["__" + O + "Size"], O), (0, u.default)(a, _.default["__" + o], o), (0, u.default)(a, _.default.__invalid, f), a)),
                K = (0, p.default)((r = {}, (0, u.default)(r, _.default.rightSection, I), (0, u.default)(r, k.rightSection, k.rightSection), r)),
                Y = (0, p.default)((i = {}, (0, u.default)(i, _.default.error, !0), (0, u.default)(i, _.default["__" + O + "Size"], !0), i));
            return (0, d.useEffect)((function() {
                if (W.current) {
                    if (!U) return H(W.current.style.paddingRight);
                    W.current.style.setProperty("padding-right", I ? R + "px" : U, "important")
                }
            }), [U, I, R]), d.default.createElement(m.default, null, d.default.createElement("textarea", (0, l.default)({
                ref: G,
                className: V,
                placeholder: !E && T ? z(T) : " ",
                disabled: b,
                rows: w,
                "data-gramm": "false",
                "data-gramm_editor": "false",
                "data-enable-grammarly": "false",
                value: N,
                onFocus: function() {
                    return j(!0)
                },
                onBlur: function() {
                    return j(!1)
                }
            }, x)), E && d.default.createElement("jdiv", {
                className: q
            }, z(E)), I && d.default.createElement("jdiv", (0, l.default)({}, M, {
                className: K,
                style: {
                    width: R
                }
            }), I), (0, h.isString)(f) && d.default.createElement("jdiv", {
                className: Y
            }, f))
        }));
        E.displayName = "Textarea", E.defaultProps = {
            color: "green",
            radius: "sm",
            rows: 2,
            size: "sm",
            variant: "default",
            rightSectionWidth: 38,
            classNames: {
                input: null,
                rightSection: null
            }
        }, E.propTypes = {
            color: f.default.string,
            error: f.default.oneOfType([f.default.string, f.default.bool]),
            placeholder: f.default.string,
            label: f.default.string,
            radius: f.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            required: f.default.bool,
            disabled: f.default.bool,
            rows: f.default.number,
            size: f.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            variant: f.default.oneOf(["default", "filled", "unstyled", "inset"]),
            rightSectionWidth: f.default.number,
            rightSection: f.default.node,
            rightSectionProps: f.default.object,
            value: f.default.string,
            classNames: f.default.shape({
                textarea: f.default.string,
                rightSection: f.default.string
            })
        };
        var T = E;
        t.default = T
    }, 19367: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = y;
        var r = a(n(5872)),
            i = a(n(87672)),
            o = a(n(18777)),
            l = a(n(98661)),
            u = a(n(94184)),
            s = a(n(45697)),
            c = a(n(84726)),
            d = a(n(43973)),
            f = n(90361),
            p = n(57930),
            h = n(56436),
            v = a(n(78269)),
            g = n(39731),
            m = n(63664),
            _ = n(83170);

        function y(e) {
            var t, n = e.top,
                a = e.bottom;
            (0, m.useErrorCatcher)(y.displayName);
            var s = (0, g.splitString)((0, c.default)("businessCopyright"), "{0}"),
                b = (0, o.default)(s, 2),
                E = b[0],
                T = b[1],
                C = (0, h.useEnhanced)(),
                S = C.hidden,
                w = C.fontColor,
                O = C.isMobile,
                A = C.isTablet,
                I = C.billRu,
                R = C.isOnline,
                M = C.reportTelemetry,
                k = C.route,
                N = (0, u.default)((t = {}, (0, i.default)(t, d.default.chatCopyright, !0), (0, i.default)(t, d.default.__mobile, O), (0, i.default)(t, d.default.__tablet, A), (0, i.default)(t, d.default.__hidden, S), (0, i.default)(t, d.default.__chat, !0), (0, i.default)(t, d.default.__call, a), (0, i.default)(t, d.default.__top, n), t));
            return l.default.createElement("jdiv", (0, r.default)({
                className: N
            }, (0, f.withLocator)(p.Locator.CHAT_COPYRIGHT)), l.default.createElement("jdiv", {
                className: d.default.text
            }, l.default.createElement(v.default, {
                billRu: I,
                isOnline: R,
                fontColor: w,
                onClick: function() {
                    M(_.TelemetryName.LOGO_CLICK, k)
                },
                startText: E,
                isChat: !0
            }), T))
        }
        y.displayName = "ChatCopyrightContainer", y.propTypes = {
            top: s.default.bool,
            bottom: s.default.bool
        }
    }, 43147: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = d;
        var r = a(n(98661)),
            i = a(n(45697)),
            o = a(n(8471)),
            l = a(n(24818)),
            u = n(56436),
            s = n(63664),
            c = n(47060);

        function d(e) {
            var t = e.bg,
                n = e.logoHovered,
                a = e.refWrap;
            (0, s.useErrorCatcher)(d.displayName);
            var i = (0, u.useEnhanced)(),
                f = i.color,
                p = i.color2,
                h = i.fontColor,
                v = i.billRu,
                g = i.isOnline,
                m = i.orientation,
                _ = i.iconLocale,
                y = i.enabled,
                b = i.customEl,
                E = i.route,
                T = i.reportTelemetry;
            if (y) return b && b.current ? r.default.createElement(l.default, {
                logoHovered: E == c.Route.LABEL && n,
                customEl: b.current,
                bg: t,
                billRu: v,
                isOnline: g,
                fontColor: h,
                color: f,
                color2: p,
                orientation: m,
                iconLocale: _,
                reportTelemetry: T,
                refWrap: a
            }) : r.default.createElement(o.default, {
                route: E,
                bg: t,
                color: f,
                color2: p,
                orientation: m,
                fontColor: h,
                billRu: v,
                isOnline: g,
                reportTelemetry: T
            })
        }
        d.displayName = "CustomCopyright", d.propTypes = {
            bg: i.default.string,
            logoHovered: i.default.bool,
            refWrap: i.default.func
        }
    }, 24818: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(51942)),
            u = o(n(18777)),
            s = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = y(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            c = o(n(98661)),
            d = o(n(45697)),
            f = n(21951),
            p = n(69882),
            h = n(9393),
            v = n(40754),
            g = n(83170),
            m = o(n(78269)),
            _ = o(n(43973));

        function y(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (y = function(e) {
                return e ? n : t
            })(e)
        }
        var b = function(e) {
            var t, n = e.logoHovered,
                a = e.customEl,
                r = e.bg,
                i = e.color,
                o = e.color2,
                d = e.orientation,
                y = e.refWrap,
                b = e.iconLocale,
                E = e.billRu,
                T = e.isOnline,
                C = e.fontColor,
                S = e.reportTelemetry,
                w = (0, s.useState)(!1),
                O = (0, u.default)(w, 2),
                A = O[0],
                I = O[1],
                R = function() {
                    return I(!0)
                },
                M = function() {
                    return I(!1)
                },
                k = {
                    color: C,
                    display: n || A ? "block" : "none",
                    background: r
                };
            if ((0, s.useLayoutEffect)((function() {
                    if (a) {
                        var e = "jivo_copyright_corner";
                        if (!(0, p.getPageWindow)().document.getElementById(e)) {
                            var t = (0, p.getPageWindow)().document.createElement("div");
                            t.id = e, t.className = "jivo-" + d, a.appendChild(t);
                            var n, r = (0, v.getBgBorderStyle)(i, o, d);
                            if ((0, l.default)(t.style, r), (0, h.each)(a.childNodes, (function(e) {
                                    "A" === e.tagName && (n = e)
                                })), n) {
                                var u = document.createElement("jdiv");
                                u.className = _.default.customWrap, a.replaceChild(u, n), c.default.render(s.default.createElement(m.default, {
                                    billRu: E,
                                    isOnline: T,
                                    fontColor: C,
                                    onClick: function() {
                                        S(g.TelemetryName.LOGO_CLICK)
                                    },
                                    startText: null
                                }), u)
                            }
                            S(g.TelemetryName.SITE_CUSTOM_COPYRIGHT)
                        }
                        return (0, f.addListener)(a, "mouseover", R), (0, f.addListener)(a, "mouseout", M),
                            function() {
                                (0, f.removeEvent)(a, "mouseover", R), (0, f.removeEvent)(a, "mouseout", M)
                            }
                    }
                }), []), a) {
                var N = (t = (0, v.getTooltipPosition)(a, y, d, b), (0, l.default)(k, t));
                a.className = _.default.copyright, (0, l.default)(a.style, N)
            }
            return s.default.createElement("jdiv", {
                className: _.default.hide
            })
        };
        b.displayName = "CustomCopyright", b.propTypes = {
            logoHovered: d.default.bool,
            customEl: d.default.object,
            bg: d.default.string,
            color: d.default.string,
            color2: d.default.string,
            orientation: d.default.string,
            iconLocale: d.default.string,
            billRu: d.default.bool,
            isOnline: d.default.bool,
            fontColor: d.default.string,
            reportTelemetry: d.default.func,
            refWrap: d.default.func
        };
        var E = b;
        t.default = E
    }, 8471: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = _;
        var r = a(n(5872)),
            i = a(n(87672)),
            o = a(n(18777)),
            l = a(n(98661)),
            u = a(n(94184)),
            s = a(n(45697)),
            c = a(n(84726)),
            d = a(n(43973)),
            f = n(90361),
            p = n(57930),
            h = a(n(78269)),
            v = n(40754),
            g = n(83170),
            m = n(39731);

        function _(e) {
            var t, n = e.bg,
                a = e.color,
                s = e.color2,
                _ = e.orientation,
                y = e.billRu,
                b = e.isOnline,
                E = e.fontColor,
                T = e.route,
                C = e.reportTelemetry,
                S = (0, m.splitString)((0, c.default)("businessCopyright"), "{0}"),
                w = (0, o.default)(S, 2),
                O = w[0],
                A = w[1],
                I = (0, u.default)((t = {}, (0, i.default)(t, d.default.copyright, !0), (0, i.default)(t, d.default["_" + _], !0), (0, i.default)(t, d.default.__ru, !!y), t)),
                R = (0, v.getBgBorderStyle)(a, s, _);
            return l.default.createElement("jdiv", (0, r.default)({
                className: I
            }, (0, f.withLocator)(p.Locator.LABEL_COPYRIGHT_POPUP), {
                style: {
                    background: n
                }
            }), l.default.createElement("jdiv", {
                className: d.default.text,
                style: {
                    color: E
                }
            }, l.default.createElement(h.default, {
                billRu: y,
                isOnline: b,
                fontColor: E,
                onClick: function() {
                    C(g.TelemetryName.LOGO_CLICK, T)
                },
                startText: O
            }), A), l.default.createElement("jdiv", {
                className: d.default.corner,
                style: R
            }))
        }
        _.propTypes = {
            bg: s.default.string.isRequired,
            color: s.default.string.isRequired,
            color2: s.default.string,
            orientation: s.default.string.isRequired,
            billRu: s.default.bool.isRequired,
            isOnline: s.default.bool.isRequired,
            fontColor: s.default.string.isRequired,
            route: s.default.string.isRequired,
            reportTelemetry: s.default.func.isRequired
        }
    }, 78269: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = f;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = n(67597),
            l = a(n(94184)),
            u = a(n(45697)),
            s = a(n(43973)),
            c = a(n(40704)),
            d = a(n(2559));

        function f(e) {
            var t, n = e.billRu,
                a = e.isOnline,
                u = e.fontColor,
                f = e.onClick,
                p = e.startText,
                h = e.isChat,
                v = n ? "logo-jivosite" : "logo-jivochat",
                g = a || h ? d.default.GREEN_80 : "#62666c",
                m = h ? "#323648" : u,
                _ = (0, o.getUtmLink)("label_tooltip"),
                y = (0, l.default)((t = {}, (0, r.default)(t, s.default.link, !0), (0, r.default)(t, s.default.__ru, n), t));
            return i.default.createElement("a", {
                href: _,
                rel: "nofollow noopener noreferrer",
                target: "_blank",
                className: y,
                onClick: f
            }, p, i.default.createElement(c.default, {
                iconName: v,
                color: m,
                color2: g,
                className: s.default.logoIcon
            }))
        }
        f.propTypes = {
            billRu: u.default.bool,
            isOnline: u.default.bool,
            fontColor: u.default.string,
            onClick: u.default.func,
            startText: u.default.string,
            isChat: u.default.bool
        }
    }, 40754: function(e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.reportTelemetry = t.getTooltipPosition = t.getBgBorderStyle = void 0;
        var a = n(43025),
            r = n(54415);
        t.reportTelemetry = function(e, t) {
            var n = t ? {
                param1: t
            } : null;
            r.Monitoring.telemetry(e, n)
        };
        t.getBgBorderStyle = function(e, t, n) {
            var a = {},
                r = t || e;
            switch (n) {
                case "left":
                    a = {
                        borderRightColor: e
                    };
                    break;
                case "right":
                    a = {
                        borderLeftColor: r
                    };
                    break;
                case "bottom":
                    a = {
                        borderTopColor: r
                    }
            }
            return a
        };
        t.getTooltipPosition = function(e, t, n, r) {
            var i, o, l = {
                top: 0,
                left: 0
            };
            switch (null !== e && t && t() && (o = (0, a.getElementPosition)(t())), n) {
                case "left":
                    i = 10, l = {
                        top: 20 + (o ? o.top : 0) + "px",
                        left: 40 + i + "px"
                    };
                    break;
                case "right":
                    i = "en" === r ? 80 : 60, l = {
                        top: 20 + (o ? o.top : 0) + "px",
                        right: "50px"
                    };
                    break;
                case "bottom":
                    l = {
                        bottom: "48px",
                        right: (o ? o.windowWidth - o.width - o.left + 30 : 42) + "px"
                    }
            }
            return l
        }
    }, 56436: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.useEnhanced = function() {
            var e = l.default.mobileOrTablet() || (0, o.isChatPage)(),
                t = l.default.tablet() || l.default.desktop() && (0, o.isChatPage)(),
                n = (0, s.useSelector)(d.selectWidgetFontColor),
                a = (0, s.useSelector)(d.selectWidgetColor),
                h = (0, s.useSelector)(d.selectWidgetColor2),
                v = (0, s.useSelector)(d.selectWidgetOrientation),
                g = (0, s.useSelector)(d.selectBillRu),
                m = (0, s.useSelector)(c.selectIsOnline),
                _ = (0, s.useSelector)(c.selectRoute),
                y = (0, i.getTextColor)(n),
                b = (0, u.useState)(!0),
                E = (0, r.default)(b, 2),
                T = E[0],
                C = E[1],
                S = (0, u.useRef)((0, o.getPageWindow)().document.getElementById("jivo_copyright"));
            return (0, u.useEffect)((function() {
                C(_ == f.Route.LABEL)
            }), [_]), {
                color: a,
                color2: h,
                enabled: T,
                fontColor: y,
                isMobile: e,
                isTablet: t,
                billRu: g,
                isOnline: m,
                orientation: v,
                route: _,
                customEl: S,
                reportTelemetry: p.reportTelemetry
            }
        };
        var r = a(n(18777)),
            i = n(80598),
            o = n(69882),
            l = a(n(19955)),
            u = n(98661),
            s = n(88928),
            c = n(35233),
            d = n(87692),
            f = n(47060),
            p = n(40754)
    }, 75132: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(2991)),
            i = a(n(87672)),
            o = a(n(98661)),
            l = a(n(45697)),
            u = a(n(94184)),
            s = a(n(14072)),
            c = function(e) {
                var t, n = e.textSize,
                    a = e.color,
                    l = e.departments,
                    c = e.isIos,
                    d = e.isMobileOrTablet,
                    f = e.isShowAd,
                    p = e.onClick;
                return o.default.createElement("jdiv", {
                    className: (0, u.default)((t = {}, (0, i.default)(t, s.default.main, !0), (0, i.default)(t, s.default.__logo, f), (0, i.default)(t, s.default.__mobile, d), (0, i.default)(t, s.default["__" + a], !0), t))
                }, (0, r.default)(l).call(l, (function(e) {
                    var t = e.id,
                        a = e.name;
                    return o.default.createElement("jdiv", {
                        key: t,
                        className: s.default.department,
                        style: c ? {
                            "-webkit-text-size-adjust": n
                        } : null,
                        onClick: function() {
                            return p(t)
                        }
                    }, a, o.default.createElement("jdiv", {
                        className: s.default.circle
                    }))
                })))
            };
        c.propTypes = {
            textSize: l.default.string,
            color: l.default.string.isRequired,
            departments: l.default.array.isRequired,
            isIos: l.default.bool.isRequired,
            isMobileOrTablet: l.default.bool.isRequired,
            isShowAd: l.default.bool.isRequired,
            onClick: l.default.func.isRequired
        };
        var d = c;
        t.default = d
    }, 41963: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(18777)),
            u = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = y(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            s = n(88928),
            c = n(26932),
            d = n(47060),
            f = n(21476),
            p = n(87692),
            h = n(68403),
            v = o(n(19367)),
            g = o(n(75132)),
            m = o(n(19955)),
            _ = o(n(74379));

        function y(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (y = function(e) {
                return e ? n : t
            })(e)
        }
        var b = o(n(4855)).default.name("Departments"),
            E = function() {
                var e = (0, s.useSelector)(p.selectBubbleColor),
                    t = (0, s.useSelector)(p.selectDepartments),
                    n = m.default.ios(),
                    a = m.default.mobileOrTablet(),
                    r = (0, h.showAd)(),
                    i = (0, u.useState)(n ? _.default.getLineHeight() : null),
                    o = (0, l.default)(i, 2),
                    y = o[0],
                    E = o[1];
                (0, u.useEffect)((function() {
                    _.default.listenChangeZoom((function() {
                        n && E(_.default.getTextSize())
                    }))
                }), [n]);
                return t.length ? u.default.createElement(u.default.Fragment, null, r && u.default.createElement(v.default, {
                    type: "chat",
                    bottom: !0
                }), u.default.createElement(g.default, {
                    color: e,
                    departments: t,
                    textSize: y,
                    isIos: n,
                    isMobileOrTablet: a,
                    isShowAd: r,
                    onClick: function(e) {
                        c.clientDispatchers.setDepartmentId(+e), f.Router.next(d.RouterEvent.Navigate), b.log("set department id", e)
                    }
                })) : null
            };
        t.default = E
    }, 4244: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(98661)),
            i = n(88928),
            o = a(n(45697)),
            l = a(n(95554)),
            u = n(42932),
            s = n(77004),
            c = n(87692),
            d = function(e) {
                var t = e.isNarrow,
                    n = e.IsIgnoreHeight,
                    a = (0, i.useSelector)(c.selectWidgetOrientation),
                    o = (0, i.useSelector)(c.selectWidgetPadding),
                    d = (0, i.useDispatch)();
                return r.default.createElement(l.default, {
                    orientation: a,
                    padding: o,
                    isNarrow: t,
                    IsIgnoreHeight: n,
                    onSetIsInDrag: function(e) {
                        return d((0, u.setIsInDrag)(e))
                    },
                    onSetPosition: function(e) {
                        return d((0, s.initializePositionStore)(e))
                    }
                })
            };
        d.propTypes = {
            isNarrow: o.default.bool,
            IsIgnoreHeight: o.default.bool
        };
        var f = d;
        t.default = f
    }, 95554: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(87672)),
            u = o(n(18777)),
            s = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = v(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            c = o(n(10611)),
            d = o(n(94184)),
            f = o(n(45697)),
            p = n(9709),
            h = n(21863);

        function v(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (v = function(e) {
                return e ? n : t
            })(e)
        }
        var g = function(e) {
            var t, n = e.orientation,
                a = e.padding,
                r = e.isNarrow,
                i = e.IsIgnoreHeight,
                o = e.onSetIsInDrag,
                f = e.onSetPosition,
                v = (0, s.useRef)(null),
                g = (0, s.useState)({
                    dragStarted: !1
                }),
                m = (0, u.default)(g, 2),
                _ = m[0],
                y = m[1],
                b = (0, p.dragEvents)({
                    orientation: n,
                    padding: a,
                    onSetIsInDrag: o,
                    IsIgnoreHeight: i,
                    onSetPosition: f
                }),
                E = b.startDrag,
                T = b.drag,
                C = b.stopDrag;
            return s.default.createElement("jdiv", {
                className: (0, d.default)((t = {}, (0, l.default)(t, c.default.wrap, !0), (0, l.default)(t, c.default.__short, r), (0, l.default)(t, c.default.__active, _.dragStarted), (0, l.default)(t, c.default.__abTop, (0, h.isAbTop100Enabled)()), t)),
                ref: v,
                onMouseDown: function(e) {
                    _.dragStarted || (y({
                        dragStarted: !0
                    }), E(e))
                },
                onMouseMove: function(e) {
                    _.dragStarted && T(e)
                },
                onMouseUp: function() {
                    _.dragStarted && (C(), y({
                        dragStarted: !1
                    }))
                },
                onMouseOut: function() {
                    _.dragStarted && (y({
                        dragStarted: !1
                    }), C())
                }
            })
        };
        g.propTypes = {
            orientation: f.default.string,
            padding: f.default.number,
            isNarrow: f.default.bool,
            IsIgnoreHeight: f.default.bool,
            onSetIsInDrag: f.default.func,
            onSetPosition: f.default.func
        };
        var m = s.default.memo(g);
        t.default = m
    }, 9709: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.dragEvents = void 0;
        var r, i, o, l, u, s = n(42908),
            c = n(52274),
            d = n(47245),
            f = n(43025),
            p = n(69882),
            h = a(n(19955)),
            v = a(n(75686)),
            g = n(2982),
            m = n(47060),
            _ = n(44145),
            y = null,
            b = function(e) {
                (y = v.default.get(d.Component.SCROLL_CONTAINER)) && y.style && (y.style.display = e ? "block" : "none")
            },
            E = function(e) {
                var t = e.e,
                    n = e.onSetIsInDrag,
                    a = e.mainSide;
                n(!0), l = t.screenX, u = t.screenY, b(!1);
                var s, h = v.default.get(d.Component.WIDGET_CONTAINER),
                    m = a;
                if ("right" === m && null === (0, g.getProperty)("right", h) && ((0, g.setProperty)("right", (s = h, (0, p.getPageWindow)().document.body.clientWidth - (s.offsetLeft || 40) - s.offsetWidth + "px"), h), (0, g.setProperty)("left", null, h)), "left" === m && null !== (0, g.getProperty)("right", h)) {
                    var _ = h.offsetLeft + "px";
                    (0, g.setProperty)("left", _, h), (0, g.setProperty)("right", null, h)
                }
                if ("left" === m && "" === (0, g.getProperty)("left", h)) {
                    var y = h.offsetLeft || "40px";
                    (0, g.setProperty)("left", y, h), (0, g.setProperty)("right", null, h)
                }
                var E = (0, f.getElementPosition)(h),
                    T = h.offsetHeight;
                r = parseInt((0, g.getProperty)(m, h)), i = parseInt(T), E.minLeft = "left" === m ? 40 : 30, E.maxLeft = E.windowWidth - E.width - E.minLeft, E.maxLeft -= 30, E.minHeight = c.MINIMAL_WIDGET_HEIGHT, E.height = T < E.minHeight ? E.minHeight : T, E.maxHeight = (0, p.getPageWindow)().innerHeight - 30, o = E
            },
            T = function(e) {
                var t = e.onSetIsInDrag,
                    n = e.onSetPosition;
                b(!0);
                var a = function() {
                        var e = v.default.get(d.Component.WIDGET_CONTAINER),
                            t = parseInt((0, g.getProperty)("height", e));
                        t && t < c.MINIMAL_WIDGET_HEIGHT && (t = c.MINIMAL_WIDGET_HEIGHT), t || (t = c.DEFAULT_WIDGET_HEIGHT);
                        var n = (0, g.getProperty)("left", e),
                            a = (0, g.getProperty)("right", e);
                        return {
                            width: c.CHAT_WIDTH + "px",
                            height: t + "px",
                            left: n,
                            right: a
                        }
                    }(),
                    r = a.width,
                    i = a.height;
                n({
                    height: i,
                    left: a.left,
                    right: a.right
                }), t(!1), (0, s._callUserFunction)("onResizeCallback", {
                    width: r,
                    height: i
                })
            },
            C = function(e) {
                var t = e.e,
                    n = e.ignoreHeight,
                    a = e.mainSide,
                    s = l - t.screenX,
                    c = u - t.screenY,
                    f = a;
                "left" == f && (s = -s);
                var p = o,
                    y = r ? r + s : p.minLeft + s,
                    b = v.default.get(d.Component.WIDGET_CONTAINER);
                y < p.minLeft ? (0, g.setProperty)(f, p.minLeft + "px", b) : y > p.maxLeft ? (0, g.setProperty)(f, p.maxLeft + "px", b) : (0, g.setProperty)(f, y + "px", b);
                var E, T = i + c;
                if (T !== p.height && (T > p.minHeight || T > p.height) && (E = (0, _.getApp)().route, -1 !== [m.Route.CALL, m.Route.INTRODUCE, m.Route.CALL_EULA].indexOf(E) && (T = "auto"), T > o.maxHeight && (T = o.maxHeight), o.height = T, n || (0, g.setProperty)("height", T + "px", b)), h.default.safari() && !h.default.mobileOrTablet()) {
                    var C = (0, g.getSavedLabelPosition)();
                    C && ((0, g.setProperty)("labelright", C.right, b), (0, g.setProperty)("labelleft", C.left, b), (0, g.setProperty)("labelwidth", C.offsetWidth + "px", b)), (0, g.updateKeyframes)(b, !0)
                }
            };
        t.dragEvents = function(e) {
            var t = e.orientation,
                n = e.padding,
                a = e.IsIgnoreHeight,
                r = e.onSetIsInDrag,
                i = e.onSetPosition,
                o = "left" === t || 0 === n && "bottom" === t ? "left" : "right";
            return {
                startDrag: function(e) {
                    return E({
                        e: e,
                        onSetIsInDrag: r,
                        mainSide: o
                    })
                },
                drag: function(e) {
                    return C({
                        e: e,
                        IsIgnoreHeight: a,
                        mainSide: o
                    })
                },
                stopDrag: function() {
                    return T({
                        onSetIsInDrag: r,
                        onSetPosition: i
                    })
                }
            }
        }
    }, 59963: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(86902)),
            i = a(n(26295)),
            o = a(n(98661)),
            l = a(n(3501)),
            u = n(18073),
            s = [],
            c = function() {
                return o.default.createElement(o.default.Fragment, null, s.length ? s : ((0, r.default)(u.emojiList).forEach((function(e) {
                    s.push(o.default.createElement(l.default, {
                        icon: e
                    }))
                })), (0, i.default)(u.emojiList)))
            };
        t.default = c
    }, 3501: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(54804)),
            i = a(n(87672)),
            o = a(n(98661)),
            l = a(n(45697)),
            u = a(n(94184)),
            s = n(69882),
            c = n(67597),
            d = n(18073),
            f = n(66488),
            p = n(54415),
            h = n(83170),
            v = a(n(89411)),
            g = a(n(69427)),
            m = function(e) {
                var t, n = e.icon,
                    a = e.customStyle,
                    l = e.className,
                    m = e.alone,
                    _ = void 0 !== m && m,
                    y = (0, u.default)((t = {}, (0, i.default)(t, g.default.emojiIcon, !0), (0, i.default)(t, g.default[l], l), (0, i.default)(t, g.default.__alone, _), t));
                if (!(0, v.default)(n)) {
                    var b = d.emojiList[n] ? d.emojiList[n] : n,
                        E = (0, f.fromCodePoint)(b),
                        T = (0, c.cdnLinkToEmoji)(b);
                    return (0, r.default)(T).call(T, "/.svg") ? (p.Monitoring.telemetryOnce(h.TelemetryName.ASSET_ERROR, {
                        param1: "emoji",
                        param2: n
                    }), null) : o.default.createElement("jdiv", {
                        className: y,
                        draggable: !1,
                        alt: E,
                        style: {
                            backgroundImage: "url('".concat(T, "')")
                        }
                    }, (0, s.isTextEmojiDisabled)() ? null : E)
                }
                var C = encodeURIComponent((0, v.default)(n)),
                    S = 'url("data:image/svg+xml,'.concat(C, '")'),
                    w = (0, f.fromCodePoint)(d.emojiList[n]);
                return o.default.createElement("jdiv", {
                    className: y,
                    style: a,
                    "jv-emoji": n
                }, o.default.createElement("jdiv", {
                    className: g.default.icon,
                    style: {
                        backgroundImage: S
                    },
                    alt: w
                }, (0, s.isTextEmojiDisabled)() ? null : w))
            };
        m.propTypes = {
            icon: l.default.string.isRequired,
            customStyle: l.default.object,
            className: l.default.oneOf(["emojiMessages", "iconSuccess"]),
            alone: l.default.bool
        };
        var _ = o.default.memo(m);
        t.default = _
    }, 27523: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.replaceEmoji = function(e) {
            return (0, l.replace)(e, (function(e) {
                var t = (0, l.toCodePoint)(e),
                    n = document.createElement("jdiv");
                return (0, i.render)(r.default.createElement(o.default, {
                    className: "emojiMessages",
                    icon: t,
                    alone: !1
                }), n), n.childNodes[0].outerHTML
            }))
        };
        var r = a(n(98661)),
            i = n(98661),
            o = a(n(3501)),
            l = n(66488)
    }, 89411: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(69861)),
            i = a(n(22783)),
            o = a(n(69860)),
            l = a(n(44544)),
            u = a(n(12239)),
            s = a(n(70881)),
            c = a(n(92380)),
            d = a(n(74373)),
            f = a(n(67567)),
            p = a(n(57737)),
            h = a(n(14534)),
            v = a(n(78393)),
            g = a(n(79378)),
            m = a(n(5541)),
            _ = a(n(87966)),
            y = a(n(94475)),
            b = a(n(45152)),
            E = a(n(63365)),
            T = a(n(22426)),
            C = a(n(56482)),
            S = a(n(23791));
        var w = function(e) {
            return {
                angel: r.default,
                unicorn_face: i.default,
                confused: o.default,
                rage: l.default,
                imp: u.default,
                disappointed: s.default,
                kissing_heart: c.default,
                yum: d.default,
                disappointed_relieved: f.default,
                weary: p.default,
                grin: h.default,
                laughing: v.default,
                wink: g.default,
                sunglasses: m.default,
                neutral_face: _.default,
                winking_eye: y.default,
                hushed: b.default,
                thumbsup: C.default,
                thumbsdown: E.default,
                smile: T.default,
                tada: S.default
            }[e]
        };
        t.default = w
    }, 66488: function(e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.fromCodePoint = u, t.getEmojiRegExp = void 0, t.replace = function(e, t) {
            return String(e).replace(r, t)
        }, t.replaceEmoji = function(e) {
            return e.replace(/:\w+:/g, (function(e) {
                var t = e.replace(/:/g, "");
                return a.emojiList[t] ? u(a.emojiList[t]) : e
            }))
        }, t.toCodePoint = void 0;
        var a = n(18073),
            r = /(?:\ud83d[\udc68\udc69])(?:\ud83c[\udffb-\udfff])?\u200d(?:\u2695\ufe0f|\u2696\ufe0f|\u2708\ufe0f|\ud83c[\udf3e\udf73\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddb0-\uddb3])|(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75]|\u26f9)((?:\ud83c[\udffb-\udfff]|\ufe0f)\u200d[\u2640\u2642]\ufe0f)|(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddd6-\udddd])(?:\ud83c[\udffb-\udfff])?\u200d[\u2640\u2642]\ufe0f|(?:\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d[\udc68\udc69]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68|\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d[\udc68\udc69]|\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83c\udff3\ufe0f\u200d\ud83c\udf08|\ud83c\udff4\u200d\u2620\ufe0f|\ud83d\udc41\u200d\ud83d\udde8|\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc6f\u200d\u2640\ufe0f|\ud83d\udc6f\u200d\u2642\ufe0f|\ud83e\udd3c\u200d\u2640\ufe0f|\ud83e\udd3c\u200d\u2642\ufe0f|\ud83e\uddde\u200d\u2640\ufe0f|\ud83e\uddde\u200d\u2642\ufe0f|\ud83e\udddf\u200d\u2640\ufe0f|\ud83e\udddf\u200d\u2642\ufe0f)|[\u0023\u002a\u0030-\u0039]\ufe0f?\u20e3|(?:[\u00a9\u00ae\u2122\u265f]\ufe0f)|(?:\ud83c[\udc04\udd70\udd71\udd7e\udd7f\ude02\ude1a\ude2f\ude37\udf21\udf24-\udf2c\udf36\udf7d\udf96\udf97\udf99-\udf9b\udf9e\udf9f\udfcd\udfce\udfd4-\udfdf\udff3\udff5\udff7]|\ud83d[\udc3f\udc41\udcfd\udd49\udd4a\udd6f\udd70\udd73\udd76-\udd79\udd87\udd8a-\udd8d\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa\udecb\udecd-\udecf\udee0-\udee5\udee9\udef0\udef3]|[\u203c\u2049\u2139\u2194-\u2199\u21a9\u21aa\u231a\u231b\u2328\u23cf\u23ed-\u23ef\u23f1\u23f2\u23f8-\u23fa\u24c2\u25aa\u25ab\u25b6\u25c0\u25fb-\u25fe\u2600-\u2604\u260e\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262a\u262e\u262f\u2638-\u263a\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267b\u267f\u2692-\u2697\u2699\u269b\u269c\u26a0\u26a1\u26aa\u26ab\u26b0\u26b1\u26bd\u26be\u26c4\u26c5\u26c8\u26cf\u26d1\u26d3\u26d4\u26e9\u26ea\u26f0-\u26f5\u26f8\u26fa\u26fd\u2702\u2708\u2709\u270f\u2712\u2714\u2716\u271d\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u2764\u27a1\u2934\u2935\u2b05-\u2b07\u2b1b\u2b1c\u2b50\u2b55\u3030\u303d\u3297\u3299])(?:\ufe0f|(?!\ufe0e))|(?:(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75\udd90]|[\u261d\u26f7\u26f9\u270c\u270d])(?:\ufe0f|(?!\ufe0e))|(?:\ud83c[\udf85\udfc2-\udfc4\udfc7\udfca]|\ud83d[\udc42\udc43\udc46-\udc50\udc66-\udc69\udc6e\udc70-\udc78\udc7c\udc81-\udc83\udc85-\udc87\udcaa\udd7a\udd95\udd96\ude45-\ude47\ude4b-\ude4f\udea3\udeb4-\udeb6\udec0\udecc]|\ud83e[\udd18-\udd1c\udd1e\udd1f\udd26\udd30-\udd39\udd3d\udd3e\uddb5\uddb6\uddb8\uddb9\uddd1-\udddd]|[\u270a\u270b]))(?:\ud83c[\udffb-\udfff])?|(?:\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc77\udb40\udc6c\udb40\udc73\udb40\udc7f|\ud83c\udde6\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff]|\ud83c\udde7\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff]|\ud83c\udde8\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf5\uddf7\uddfa-\uddff]|\ud83c\udde9\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff]|\ud83c\uddea\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa]|\ud83c\uddeb\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7]|\ud83c\uddec\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe]|\ud83c\udded\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa]|\ud83c\uddee\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9]|\ud83c\uddef\ud83c[\uddea\uddf2\uddf4\uddf5]|\ud83c\uddf0\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff]|\ud83c\uddf1\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe]|\ud83c\uddf2\ud83c[\udde6\udde8-\udded\uddf0-\uddff]|\ud83c\uddf3\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff]|\ud83c\uddf4\ud83c\uddf2|\ud83c\uddf5\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe]|\ud83c\uddf6\ud83c\udde6|\ud83c\uddf7\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc]|\ud83c\uddf8\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff]|\ud83c\uddf9\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff]|\ud83c\uddfa\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff]|\ud83c\uddfb\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa]|\ud83c\uddfc\ud83c[\uddeb\uddf8]|\ud83c\uddfd\ud83c\uddf0|\ud83c\uddfe\ud83c[\uddea\uddf9]|\ud83c\uddff\ud83c[\udde6\uddf2\uddfc]|\ud83c[\udccf\udd8e\udd91-\udd9a\udde6-\uddff\ude01\ude32-\ude36\ude38-\ude3a\ude50\ude51\udf00-\udf20\udf2d-\udf35\udf37-\udf7c\udf7e-\udf84\udf86-\udf93\udfa0-\udfc1\udfc5\udfc6\udfc8\udfc9\udfcf-\udfd3\udfe0-\udff0\udff4\udff8-\udfff]|\ud83d[\udc00-\udc3e\udc40\udc44\udc45\udc51-\udc65\udc6a-\udc6d\udc6f\udc79-\udc7b\udc7d-\udc80\udc84\udc88-\udca9\udcab-\udcfc\udcff-\udd3d\udd4b-\udd4e\udd50-\udd67\udda4\uddfb-\ude44\ude48-\ude4a\ude80-\udea2\udea4-\udeb3\udeb7-\udebf\udec1-\udec5\uded0-\uded2\udeeb\udeec\udef4-\udef9]|\ud83e[\udd10-\udd17\udd1d\udd20-\udd25\udd27-\udd2f\udd3a\udd3c\udd40-\udd45\udd47-\udd70\udd73-\udd76\udd7a\udd7c-\udda2\uddb4\uddb7\uddc0-\uddc2\uddd0\uddde-\uddff]|[\u23e9-\u23ec\u23f0\u23f3\u267e\u26ce\u2705\u2728\u274c\u274e\u2753-\u2755\u2795-\u2797\u27b0\u27bf\ue50a])|\ufe0f/g,
            i = String.fromCharCode,
            o = /\uFE0F/g,
            l = String.fromCharCode(8205);

        function u(e) {
            var t = "string" == typeof e ? parseInt(e, 16) : e;
            return t < 65536 ? i(t) : i(55296 + ((t -= 65536) >> 10), 56320 + (1023 & t))
        }
        t.toCodePoint = function(e, t) {
            return function(e, t) {
                for (var n = [], a = 0, r = 0, i = 0; i < e.length;) a = e.charCodeAt(i++), r ? (n.push((65536 + (r - 55296 << 10) + (a - 56320)).toString(16)), r = 0) : 55296 <= a && a <= 56319 ? r = a : n.push(a.toString(16));
                return n.join(t || "-")
            }(e.indexOf(l) < 0 ? e.replace(o, "") : e, t)
        };
        t.getEmojiRegExp = function() {
            return r
        }
    }, 17101: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = d(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            u = n(88928),
            s = o(n(45697)),
            c = n(87692);

        function d(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (d = function(e) {
                return e ? n : t
            })(e)
        }
        var f = (0, l.lazy)((function() {
                return n.e(152).then(n.bind(n, 13411))
            })),
            p = function(e) {
                return (0, u.useSelector)(c.selectEula) ? l.default.createElement(l.Suspense, null, l.default.createElement(f, e)) : (e.isOpened && console.warn("Check condition allowing EULA to appear."), null)
            };
        p.propTypes = {
            isOpened: s.default.bool.isRequired,
            onAgree: s.default.func.isRequired,
            onDisagree: s.default.func.isRequired
        };
        var h = p;
        t.default = h
    }, 36207: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var i = r(n(51942)),
            o = r(n(5872)),
            l = r(n(87672)),
            u = r(n(26394)),
            s = r(n(69198)),
            c = r(n(51379)),
            d = r(n(214)),
            f = r(n(66380)),
            p = r(n(98661)),
            h = r(n(54720)),
            v = r(n(91275)),
            g = r(n(84726)),
            m = r(n(19955)),
            _ = r(n(74379)),
            y = r(n(1039)),
            b = r(n(88155)),
            E = r(n(25778)),
            T = n(21476),
            C = n(47060),
            S = n(54415),
            w = n(83170),
            O = r(n(75686)),
            A = n(2982),
            I = n(47245),
            R = r(n(71323)),
            M = n(70010),
            k = n(88928);

        function N(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, f.default)(e);
                if (t) {
                    var i = (0, f.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, d.default)(this, n)
            }
        }
        var x = function(e) {
                (0, c.default)(n, e);
                var t = N(n);

                function n(e) {
                    var a;
                    return (0, u.default)(this, n), (a = t.call(this, e)).state = (0, M.getEulaState)(), a._titleRef = null, a._callRef = null, a
                }
                return (0, s.default)(n, [{
                    key: "componentDidUpdate",
                    value: function(e, t) {
                        if (this.state.text !== t.text) {
                            var n = this.getTopOffset();
                            this._textRef && this._textRef.style && n && (this._textRef.style.top = n + "px")
                        }
                        this.state.show || this.props.eulaAccepted || !this.props.showEula || (this.setState({
                            show: !0,
                            text: this.props.showEula
                        }), m.default.mobileOrTablet() && v.default.blurActiveElement())
                    }
                }, {
                    key: "componentDidMount",
                    value: function() {
                        var e = this;
                        _.default.listenChangeZoom((function() {
                            var t = _.default.getTextSize();
                            e.state.textSize !== t && e.setState({
                                textSize: t
                            })
                        }))
                    }
                }, {
                    key: "submitCheckbox",
                    value: function() {
                        this.setState({
                            checked: !0,
                            show: !1,
                            text: this.props.showEula
                        }), R.default.eulaLink && (window.open(R.default.eulaLink), R.default.eulaLink = null), R.default.acceptEula(), setTimeout((function() {
                            T.Router.next(C.RouterEvent.Submit)
                        }), 500)
                    }
                }, {
                    key: "cancel",
                    value: function(e) {
                        var t = this;
                        T.Router.next(C.RouterEvent.Cancel), m.default.safari() && !m.default.mobileOrTablet() && setTimeout((function() {
                            var e = O.default.get(I.Component.WIDGET_CONTAINER);
                            (0, A.updateKeyframes)(e)
                        }), 0), setTimeout((function() {
                            t.setState({
                                show: !1
                            }), R.default.showEula(!1), e && S.Monitoring.telemetry(w.TelemetryName.EULA_CANCEL_BTN, {
                                param1: R.default.context
                            })
                        }), 200)
                    }
                }, {
                    key: "trackClick",
                    value: function() {
                        S.Monitoring.telemetry(w.TelemetryName.EULA_LINK_CLICKED, {
                            param1: R.default.context
                        })
                    }
                }, {
                    key: "renderAgreement",
                    value: function() {
                        return (0, M.getAgreementText)(this.state.agreementBasis)
                    }
                }, {
                    key: "renderLink",
                    value: function() {
                        return (0, M.getEulaLink)(this.trackClick.bind(this))
                    }
                }, {
                    key: "renderCancel",
                    value: function() {
                        var e = this;
                        return p.default.createElement("jdiv", {
                            className: E.default.cancel,
                            onPointerDown: this.cancel.bind(this),
                            onTouchStart: function(t) {
                                t.preventDefault(), m.default.isPointerEnabled() || e.cancel(t)
                            }
                        }, (0, g.default)("cancel"))
                    }
                }, {
                    key: "getTopOffset",
                    value: function() {
                        return (this.state.text && this._callRef && this._callRef.offsetHeight) + (this._titleRef && this._titleRef.offsetHeight)
                    }
                }, {
                    key: "getRenderData",
                    value: function() {
                        var e, t = m.default.ios() ? {
                                "-webkit-text-size-adjust": this.state.textSize
                            } : {},
                            n = "string" == typeof this.state.text;
                        return {
                            styles: {
                                wrap: [(e = {
                                    eulaPopup: !0,
                                    _mobile: m.default.mobile(),
                                    _tablet: m.default.tablet()
                                }, (0, l.default)(e, "_" + y.default.bubble_color, !(!y.default.bubble_color || "green" === y.default.bubble_color)), (0, l.default)(e, "__call", this.props.callContainer), (0, l.default)(e, "__offlineForm", m.default.mobile() && this.props.offlineForm), e)],
                                popupContent: [{
                                    popupContent: !0
                                }, t],
                                textBlock: [{
                                    textBlock: !0,
                                    __call: n
                                }],
                                text: [{
                                    text: !0
                                }, (0, i.default)(t, m.default.ios() ? {
                                    lineHeight: _.default.getLineHeight(1.5)
                                } : {})],
                                title: [{
                                    title: !0,
                                    __hidden: !n
                                }, (0, i.default)(t, m.default.ios() ? {
                                    lineHeight: _.default.getLineHeight(1.4)
                                } : {})],
                                formText: [{
                                    formText: !0
                                }, (0, i.default)(t, m.default.ios() ? {
                                    lineHeight: _.default.getLineHeight(1.375)
                                } : {})],
                                checkbox: [{
                                    checkbox: !0,
                                    _checked: this.state.checked
                                }],
                                error: [{
                                    error: !0
                                }, {
                                    display: this.state.error ? "block" : "none"
                                }]
                            },
                            style: E.default,
                            data: {
                                isCallText: n
                            }
                        }
                    }
                }, {
                    key: "renderText",
                    value: function() {
                        return p.default.createElement("jdiv", {
                            className: E.default.scrollText
                        }, this.renderAgreement(), this.renderLink())
                    }
                }, {
                    key: "renderData",
                    value: function(e, t) {
                        var n = this;
                        return y.default.eula ? p.default.createElement("jdiv", t.wrap, p.default.createElement("jdiv", t.popupContent, p.default.createElement("jdiv", t.text, p.default.createElement("jdiv", (0, o.default)({}, t.title, {
                            dangerouslySetInnerHTML: {
                                __html: this.state.text
                            },
                            ref: function(e) {
                                n._callRef = e
                            }
                        })), p.default.createElement("jdiv", (0, o.default)({}, t.formText, {
                            ref: function(e) {
                                n._titleRef = e
                            }
                        }), p.default.createElement("jdiv", {
                            className: E.default.popupCheckbox
                        }, p.default.createElement("jdiv", (0, o.default)({}, t.checkbox, {
                            onClick: this.submitCheckbox.bind(this)
                        }))), this.state.customTitle), p.default.createElement("jdiv", (0, o.default)({}, t.textBlock, {
                            ref: function(e) {
                                n._textRef = e
                            }
                        }), m.default.mobileOrTablet() ? this.renderText() : p.default.createElement(b.default, {
                            position: "relative",
                            railClass: E.default.rail
                        }, this.renderText())))), this.renderCancel()) : null
                    }
                }]), n
            }(h.default),
            P = (0, k.connect)((function(e) {
                return {
                    showEula: e.app.showEula,
                    eulaAccepted: e.client.eulaAccepted,
                    route: e.app.route
                }
            }))(x);
        t.default = P
    }, 70010: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.trackClick = t.getEulaUrl = t.getEulaState = t.getEulaLink = t.getAgreementText = void 0;
        var r = a(n(77766)),
            i = a(n(98661)),
            o = a(n(84726)),
            l = n(44145),
            u = n(54415),
            s = n(83170),
            c = function() {
                var e, t = (0, l.getSystemSettings)();
                return (0, r.default)(e = "".concat(window.parent.location.protocol + t.baseUrl, "/script/eula/")).call(e, t.widgetId)
            };
        t.getEulaUrl = c;
        var d = function() {
            var e = (0, l.getFeatures)().eula,
                t = {
                    show: !1,
                    checked: !1,
                    text: !1,
                    url: e && e.externalLink ? e.externalLink : c(),
                    agreementBasis: e && e.customAgreement ? e.customAgreement : "70:>=>< 152-$ � ?5@A>=0;L=KE 40==KE� >B 27.07.2006",
                    textSize: null,
                    customTitle: "!>3;0A5= =0 >1@01>B:C ?5@A>=0;L=KE 40==KE",
                    customLink: ">;L7>20B5;LA:>3> A>3;0H5=8O"
                };
            return e && e.useGdpr && (t.customTitle = e.customTitle || (0, o.default)("eula_custom_title"), t.customLink = e.titleExternalLink || !1, t.agreementBasis = e.customAgreement || (0, o.default)("eula_custom_agreement")), t
        };
        t.getEulaState = d;
        t.getAgreementText = function(e) {
            var t = (0, l.getFeatures)().eula;
            return t && !t.useGdpr ? "!B02O >B<5B:C, O 40N A2>5 A>3;0A85 =0 >1@01>B:C <>8E ?5@A>=0;L=KE 40==KE 2 A>>B25BAB288 A\n            ".concat(e, " 8 ?@8=8<0N CA;>28O ") : "".concat(e, " ")
        };
        t.getEulaLink = function(e) {
            var t = (0, l.getFeatures)().eula,
                n = d();
            return !t.useGdpr || t.useGdpr && t.externalLink ? i.default.createElement("a", {
                href: t.externalLink || c(),
                onClick: e,
                target: "_blank",
                rel: "noopener noreferrer"
            }, n.customLink) : null
        };
        t.trackClick = function() {
            u.Monitoring.telemetry(s.TelemetryName.EULA_LINK_CLICKED, {
                param1: "call_popup"
            })
        }
    }, 23535: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = f;
        var r = a(n(98661)),
            i = a(n(45697)),
            o = n(63664),
            l = n(16016),
            u = n(44145),
            s = n(66934),
            c = a(n(4578)),
            d = a(n(4855)).default.name("FileUpload");

        function f(e) {
            var t = e.disabled;
            (0, o.useErrorCatcher)(f.displayName);
            return r.default.createElement(c.default, {
                disabled: t,
                onClick: function(e) {
                    !(0, u.getApp)().isOnline && t || (0, s.openIntroduce)(e)
                }.bind(this),
                onChange: function(e) {
                    ! function(e) {
                        if (e.target.files) {
                            var t = e.target.files[0];
                            d.log("fileinfo:", t), t && (t && t.name && (0, s.startUploadMedia)(t, (0, l.generateGUID)()), e.target.value = "")
                        }
                    }(e)
                }
            })
        }
        f.displayName = "FileUpload", f.propTypes = {
            disabled: i.default.bool
        }
    }, 4578: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(5872)),
            u = o(n(87672)),
            s = o(n(2991)),
            c = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = _(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            d = o(n(40704)),
            f = o(n(39771)),
            p = o(n(45697)),
            h = o(n(94184)),
            v = o(n(26411)),
            g = n(90361),
            m = n(57930);

        function _(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (_ = function(e) {
                return e ? n : t
            })(e)
        }
        var y = (0, s.default)(v.default).call(v.default, (function(e) {
                return "." + e.extension
            })).join(","),
            b = function(e) {
                var t, n = e.disabled,
                    a = e.onClick,
                    r = e.onChange,
                    i = (0, c.useRef)(null),
                    o = (0, h.default)((t = {}, (0, u.default)(t, f.default.wrap, !0), (0, u.default)(t, f.default.__disabled, n), t));
                return c.default.createElement("jdiv", {
                    className: o
                }, c.default.createElement(d.default, {
                    iconName: "icon-attach",
                    color: n ? "#c9cdd3" : "#a3aab5",
                    className: f.default.iconAttach2
                }), c.default.createElement("jdiv", {
                    className: f.default.uploadFwrap
                }, c.default.createElement("input", (0, l.default)({
                    className: f.default.uploadButton,
                    type: "file",
                    ref: i,
                    onClick: a,
                    onChange: r,
                    disabled: n,
                    accept: y
                }, (0, g.withLocator)(m.Locator.INPUT_UPLOAD_ICON)))))
            };
        b.propTypes = {
            disabled: p.default.bool.isRequired,
            onClick: p.default.func.isRequired,
            onChange: p.default.func.isRequired
        };
        var E = c.default.memo(b);
        t.default = E
    }, 66934: function(e, t, n) {
        "use strict";
        var a = n(86902),
            r = n(14310),
            i = n(20116),
            o = n(34074),
            l = n(39649),
            u = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.startUploadMedia = t.sendMedia = t.openIntroduce = t.getUrlEmoji = t.getUploadMessage = t.getTextMediaEmoji = t.getMediaDataFormatted = t.getMediaData = t.checkForDelivered = void 0;
        var s = u(n(87672)),
            c = u(n(77766)),
            d = n(16016),
            f = u(n(14264)),
            p = u(n(35802)),
            h = n(21476),
            v = n(47060),
            g = n(54415),
            m = n(83170),
            _ = n(69625),
            y = n(81152),
            b = n(83778),
            E = n(53489),
            T = u(n(71277)),
            C = n(26932),
            S = n(77294),
            w = n(52274),
            O = n(65465),
            A = n(55329),
            I = n(13077),
            R = n(54346),
            M = n(44145);

        function k(e, t) {
            var n = a(e);
            if (r) {
                var l = r(e);
                t && (l = i(l).call(l, (function(t) {
                    return o(e, t).enumerable
                }))), n.push.apply(n, l)
            }
            return n
        }
        var N = u(n(4855)).default.name("FileUploadHelpers"),
            x = function(e) {
                var t = p.default.getInstance().managers.connection;
                t.isOpen() ? t.send(e) : t.open((function() {
                    t.send(e)
                }), !0)
            };
        t.sendMedia = x;
        var P = function(e) {
            return f.default.getMessageByPrivateId(e)
        };
        t.getUploadMessage = P;
        t.openIntroduce = function(e) {
            h.Router.needToShowIntroduceForm() && (e.preventDefault(), e.stopPropagation(), h.Router.next(v.RouterEvent.ToIntroduce))
        };
        var L = function(e) {
            return e.indexOf("image") >= 0 ? "=�" : e.indexOf("video") >= 0 ? "=�" : e.indexOf("audio") >= 0 ? "=	" : "=�"
        };
        t.getTextMediaEmoji = L;
        var D = function(e) {
            var t = {},
                n = e.get("body");
            if (n && !n.error && (n.file_url || n.file)) {
                var a, r = !!n.status,
                    i = n.file_url || n.file,
                    u = L(r ? n.mime_type : n.type),
                    d = (0, c.default)(a = "".concat(u, " ")).call(a, i),
                    f = function(e) {
                        for (var t = 1; t < arguments.length; t++) {
                            var n = null != arguments[t] ? arguments[t] : {};
                            t % 2 ? k(Object(n), !0).forEach((function(t) {
                                (0, s.default)(e, t, n[t])
                            })) : l ? Object.defineProperties(e, l(n)) : k(Object(n)).forEach((function(t) {
                                Object.defineProperty(e, t, o(n, t))
                            }))
                        }
                        return e
                    }({}, n);
                N.warn("getMediaData", r, f, d), f.file = i, delete f.file_url, r ? (delete f.loadedSize, delete f.status) : f.type = (0, b.detectType)(n.type), t.message = d, t.media = f, N.warn("data to send:", t)
            }
            return t
        };
        t.getMediaDataFormatted = D;
        var j = function(e, t) {
            return (e.indexOf("image") >= 0 ? "=�" : e.indexOf("video") >= 0 ? "=�" : e.indexOf("audio") >= 0 ? "=	" : "=�") + " " + t
        };
        t.getUrlEmoji = j;
        t.getMediaData = function(e) {
            try {
                return D(e)
            } catch (e) {
                return g.Monitoring.reportException(e), !1
            }
        };
        t.startUploadMedia = function(e, t) {
            t || (t = (0, d.generateGUID)()), (0, R.markInvitationAnswered)(), C.messagesDispatchers.addMessage({
                type: y.MessageType.MEDIA,
                from: y.MessageInitiator.CLIENT,
                private_id: t,
                body: {
                    type: (0, b.detectType)(e.type),
                    file_name: (0, E.sanitize)(e.name),
                    file_size: e.size,
                    mime_type: e.type,
                    loadedSize: 0,
                    status: y.MediaStatus.UPLOADING
                }
            });
            var n = P(t);
            _.mediaUploader.startUpload(n, e, (function(a) {
                N.warn("file url:", n, e, a);
                var r = (0, b.detectType)(e.type),
                    i = {
                        file: a.fullUrl,
                        file_name: e.name,
                        file_size: e.size,
                        type: r,
                        mime_type: e.type
                    },
                    o = n.get("body"),
                    l = (0, S.isVideo)(e.type);
                if ("photo" === r || l) {
                    var u;
                    l || (o.width = e.width, o.height = e.height, i.width = e.width, i.height = e.height);
                    var s = (0, S.getSize)(i);
                    i.thumb = (0, c.default)(u = "".concat(a.fullUrl, "?width=")).call(u, s.width || w.MAX_IMAGE_WIDTH, "&thumb"), o.thumb = i.thumb
                }
                o.status = y.MediaStatus.COMPLETE, o.file = a.fullUrl, o.file_size = e.size;
                var d = j(e.type, a.fullUrl);
                n.set({
                    text: d,
                    body: o
                });
                var f = {
                    name: "client_message",
                    message: d,
                    private_id: t,
                    media: i
                };
                C.appDispatchers.setChatStarted(!0), x(f), (0, A.prechatEnabled)() && O.messageActions.deletePrechatMsg(), (0, I.getRuleLocal)("firstMessageTime") || (0, I.setRuleLocal)("firstMessageTime", new Date), O.messageActions.startContactFormIfNeed(), T.default.play("outgoing_message"), g.Monitoring.telemetry(m.TelemetryName.FILE_UPLOAD_SUCCESS, {
                    param1: e.type
                })
            }))
        };
        t.checkForDelivered = function(e) {
            e && !e.get("msg_id") && (N.warn("bufferMessageForMessageState", e), e.set("status", y.MessageStatus.NOT_DELIVERED), f.default.trigger("update"), g.Monitoring.telemetry(m.TelemetryName.CLIENT_MESSAGE_SEND_ERROR, {
                param1: (0, M.getApp)().isOnline,
                param2: e.get("type"),
                param3: (0, M.getClient)().isBlacklisted ? "black" : "timeout"
            }))
        }
    }, 50890: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var i = r(n(25843)),
            o = r(n(77766)),
            l = r(n(20116)),
            u = r(n(2991)),
            s = r(n(5872)),
            c = r(n(23765)),
            d = r(n(26394)),
            f = r(n(69198)),
            p = r(n(5824)),
            h = r(n(51379)),
            v = r(n(214)),
            g = r(n(66380)),
            m = r(n(98661)),
            _ = r(n(54720)),
            y = r(n(1039)),
            b = n(60277),
            E = n(9393),
            T = n(21476),
            C = r(n(19955)),
            S = n(88928),
            w = r(n(50754)),
            O = r(n(98960)),
            A = r(n(4855)),
            I = r(n(11531)),
            R = n(54415),
            M = n(83170),
            k = n(90361),
            N = n(57930),
            x = n(26932),
            P = n(21733),
            L = n(68403),
            D = n(94537);

        function j(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, g.default)(e);
                if (t) {
                    var i = (0, g.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, v.default)(this, n)
            }
        }
        var B = A.default.name("FormContainer"),
            F = function(e) {
                (0, h.default)(n, e);
                var t = j(n);

                function n(e) {
                    var a;
                    return (0, d.default)(this, n), (a = t.call(this, e)).successCallback = a.successCallback.bind((0, p.default)(a)), a._form = a.getInitForm(), B.log("init config", a._form), a._submited = !1, a
                }
                return (0, f.default)(n, [{
                    key: "componentDidUpdate",
                    value: function(e) {
                        var t = {
                                name: e.client.name,
                                email: e.client.email,
                                phone: e.client.phone
                            },
                            n = {
                                name: this.props.client.name,
                                email: this.props.client.email,
                                phone: this.props.client.phone
                            };
                        (0, S.shallowEqual)(t, n) || (this._form = this.getInitForm(), this.setState((function(e) {
                            return {
                                x: e.x ? e.x += 1 : 1
                            }
                        })))
                    }
                }, {
                    key: "componentDidMount",
                    value: function() {
                        var e = this;
                        C.default.mobileOrTablet() || C.default.ie() || T.Router.on("route_change", (function() {
                            setTimeout((function() {
                                if (e.props.isFocused && T.Router.isFormRoute() && e.base && e.base.querySelector) {
                                    var t = e.base.querySelector("input, textarea");
                                    t && t.focus && t.focus()
                                }
                            }), 500)
                        }))
                    }
                }, {
                    key: "getInitForm",
                    value: function() {
                        return {
                            message: {
                                name: "message",
                                value: this.props.client.lastMessage && y.default.contacts_ask === D.ContactsType.BEFORE_CHAT ? this.props.client.lastMessage : "",
                                error: !1,
                                required: "chat" != this.props.type,
                                show: "chat" != this.props.type
                            },
                            client_name: {
                                name: "client_name",
                                value: this.props.client.name ? this.props.client.name : "",
                                error: !1,
                                required: y.default.contacts_settings.name && y.default.contacts_settings.name.required,
                                show: y.default.contacts_settings.name && y.default.contacts_settings.name.show
                            },
                            email: {
                                name: "email",
                                value: this.props.client.email ? this.props.client.email : "",
                                error: !1,
                                required: y.default.contacts_settings.email && y.default.contacts_settings.email.required,
                                show: y.default.contacts_settings.email && y.default.contacts_settings.email.show
                            },
                            phone: {
                                name: "phone",
                                value: this.props.client.phone ? this.props.client.phone : "",
                                error: !1,
                                required: y.default.contacts_settings.phone && y.default.contacts_settings.phone.required,
                                show: y.default.contacts_settings.phone && y.default.contacts_settings.phone.show
                            }
                        }
                    }
                }, {
                    key: "successCallback",
                    value: function(e, t) {
                        var n = this.getData();
                        B.log("SUBMIT CALLBACK", n), (0, E.each)(this.getData(), (function(e) {
                            var t, a = (0, P.isString)(e.value) ? (0, i.default)(t = e.value).call(t) : e.value;
                            n[e.name].value = a || null
                        }));
                        var a = this.isValid(n);
                        if (this._submited = !0, this._form = a.data, a.error) {
                            if (B.log("FORM NOT VALID"), this.props.errorCallback(a.data), this.setState({
                                    form: a.data
                                }), this.isIntroduceForm() || !this.props.isOnline) {
                                B.log("checkData", a);
                                var r = [],
                                    u = {
                                        name: 0,
                                        phone: 1,
                                        email: 2
                                    };
                                this.props.isOnline || (u.message = 3), (0, E.each)(a.data, (function(e) {
                                    if (e.error) {
                                        var t, n, a = e.required ? "*" : "",
                                            i = "client_name" == e.name ? "name" : e.name;
                                        r[u[i]] = (0, o.default)(t = (0, o.default)(n = "".concat(i)).call(n, a, ":")).call(t, e.value)
                                    }
                                }));
                                var s = this.props.isOnline ? M.TelemetryName.CHAT_INTRODUCE : M.TelemetryName.OFFLINE_SENT_FAIL;
                                R.Monitoring.telemetry(s, {
                                    param1: "formSubmitFail",
                                    param2: (0, L.getContactSettingsInfo)(),
                                    param3: (0, l.default)(r).call(r, (function(e) {
                                        return e
                                    })).join(";")
                                })
                            }
                        } else B.log("FORM VALID"), this.isIntroduceForm() && R.Monitoring.telemetry(M.TelemetryName.CHAT_INTRODUCE, {
                            param1: "formSubmit",
                            param2: (0, L.getContactSettingsInfo)(),
                            param3: t
                        }), x.clientDispatchers.setLastMessage(a.data.message.value || null), this.props.successCallback(a.data)
                    }
                }, {
                    key: "isIntroduceForm",
                    value: function() {
                        return !this.props.client.isIntroduced && -1 !== [0, -1].indexOf(y.default.contacts_ask) && this.props.isOnline
                    }
                }, {
                    key: "isAnyNotEmpty",
                    value: function(e) {
                        var t = this,
                            n = !1;
                        return (0, E.each)(e, (function(e) {
                            !("chat" == t.props.type && "message" == e.name) && e.value && (n = !0)
                        })), n
                    }
                }, {
                    key: "isValid",
                    value: function() {
                        var e = this,
                            t = !1,
                            n = this.getData();
                        return y.default.contacts_ask === D.ContactsType.BEFORE_CHAT || this.isAnyNotEmpty(n) || (0, L.isAnyRequired)(y.default.contacts_settings) ? ((0, E.each)(n, (function(e) {
                            e.show && e.required && !e.value && (n[e.name].error = !0), e.required || e.value || (n[e.name].error = !1), e.show && n[e.name].error && (t = !0), B.log("item validation:", e)
                        })), {
                            data: n,
                            error: t
                        }) : ((0, E.each)(n, (function(t) {
                            "chat" == e.props.type && "message" == t.name || (n[t.name].error = !0)
                        })), {
                            data: n,
                            error: !0
                        })
                    }
                }, {
                    key: "errorCallback",
                    value: function() {
                        B.log("ERROR CALLBACK")
                    }
                }, {
                    key: "resetForm",
                    value: function() {}
                }, {
                    key: "getData",
                    value: function() {
                        return this._form
                    }
                }, {
                    key: "setError",
                    value: function(e, t) {
                        if (e) return this._form[e].error = t
                    }
                }, {
                    key: "getError",
                    value: function(e) {
                        if (e) return this._form[e].error
                    }
                }, {
                    key: "getValue",
                    value: function(e) {
                        if (e) return this._form[e].value
                    }
                }, {
                    key: "handleData",
                    value: function(e, t) {
                        var n = t.target;
                        if (B.log("handleData", e, n.value, (0, c.default)(n.value)), n) {
                            var a = n.value;
                            if ("email" == e) try {
                                a = w.default.toUnicode(a)
                            } catch (e) {}
                            var r = !O.default[e](a) || !a;
                            n.required || n.value || (r = !1), this._form[e] = (0, b.extend)(this._form[e], {
                                value: a,
                                error: r
                            }), this.setState({
                                form: this._form
                            })
                        }
                    }
                }, {
                    key: "checkValue",
                    value: function(e) {
                        var t = this.getValue(e);
                        return !(!t || !O.default[e](t))
                    }
                }, {
                    key: "getRenderData",
                    value: function() {
                        return {
                            styles: {
                                main: [{
                                    main: !0
                                }]
                            },
                            style: I.default
                        }
                    }
                }, {
                    key: "renderData",
                    value: function(e, t) {
                        var n, a = this,
                            r = (0, u.default)(n = m.default.Children).call(n, this.props.children, (function(e) {
                                var t = {};
                                if (!e) return null;
                                if (e.props && e.props.name) {
                                    var n = e.props.name;
                                    t = {
                                        handleChange: a.handleData.bind(a),
                                        error: a.getError(n),
                                        value: a.getValue(n),
                                        color: y.default.bubble_color || "green",
                                        submited: a._submited
                                    }
                                }
                                return e.props && e.props.type && (t = {
                                    successCallback: a.successCallback.bind(a),
                                    errorCallback: a.errorCallback.bind(a)
                                }), m.default.cloneElement(e, t)
                            })),
                            i = T.Router.isFormRoute() ? "form" : "jdiv";
                        return m.default.createElement("jdiv", t.main, m.default.createElement(i, (0, s.default)({
                            ref: function(e) {
                                a._formRef = e
                            },
                            autocomplete: "on",
                            onSubmit: function(e) {
                                e.preventDefault()
                            }
                        }, (0, k.withLocator)(N.Locator.CONTACTS_FORM)), r))
                    }
                }]), n
            }(_.default);
        t.default = F
    }, 62887: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = p;
        var r = a(n(98661)),
            i = a(n(45697)),
            o = a(n(27745)),
            l = n(63121),
            u = n(68408),
            s = n(21863),
            c = a(n(53517)),
            d = n(85962),
            f = n(63664);

        function p(e) {
            var t = e.showHeaderText;
            (0, f.useErrorCatcher)(p.displayName);
            var n = (0, d.useEnchanced)(),
                a = n.isOnline,
                i = n.color,
                h = n.joinedBots,
                v = n.mainText,
                g = n.subText,
                m = n.avatars,
                _ = n.background,
                y = n.showBackButton,
                b = n.showCallButton,
                E = n.showLeaf,
                T = n.showMenu,
                C = n.isChatPage,
                S = n.isPowerPhone,
                w = n.isClickable,
                O = n.isIOS,
                A = n.isTablet,
                I = n.isLightColor2,
                R = n.isIntroduce,
                M = n.isChatMin,
                k = n.inCall,
                N = n.darkText,
                x = n.leafBackground,
                P = n.patternUrl,
                L = n.powerPhone;
            return r.default.createElement(o.default, {
                avatars: m,
                backButton: y,
                headerColor: i,
                background: _,
                callButton: b,
                clickable: w,
                darkText: N,
                inCall: k,
                isIos: O,
                isTablet: A,
                isChatPage: C,
                isLightColor2: I,
                leaf: E,
                leafBackground: x,
                mainText: v,
                online: a,
                pattern: P,
                subText: g,
                onCallClick: u.onCallClick,
                onCloseClick: u.onCloseClick,
                onHeaderClick: u.onHeaderClick,
                showHeaderText: t,
                showMenu: T,
                MenuComponent: c.default,
                onMenuButtonClick: u.onMenuButtonClick,
                isIntroduce: R,
                isChatMin: M,
                isPowerPhone: S,
                powerPhone: L,
                onInitSwipe: l.initSwipe,
                onReportTelemetry: s.reportTelemetry,
                isAbTop100: (0, s.isAbTop100Enabled)(),
                onDebugClick: u.onDebugClick,
                joinedBots: h
            })
        }
        p.displayName = "HeaderContainer", p.propTypes = {
            showHeaderText: i.default.bool
        }
    }, 27745: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(2991)),
            u = o(n(87672)),
            s = o(n(5872)),
            c = o(n(18777)),
            d = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = O(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            f = o(n(94184)),
            p = o(n(45697)),
            h = o(n(9218)),
            v = n(57930),
            g = n(90361),
            m = o(n(87736)),
            _ = o(n(57147)),
            y = o(n(32042)),
            b = o(n(40704)),
            E = o(n(48966)),
            T = n(83170),
            C = n(47713),
            S = n(57985),
            w = n(9335);

        function O(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (O = function(e) {
                return e ? n : t
            })(e)
        }
        var A = function(e) {
            var t, n, a, r, i = e.avatars,
                o = void 0 === i ? [] : i,
                p = e.backButton,
                O = void 0 !== p && p,
                A = e.background,
                I = void 0 === A ? "#44BB6E" : A,
                R = e.callButton,
                M = void 0 !== R && R,
                k = e.clickable,
                N = void 0 !== k && k,
                x = e.darkText,
                P = void 0 === x || x,
                L = e.inCall,
                D = void 0 !== L && L,
                j = e.isIos,
                B = void 0 !== j && j,
                F = e.isTablet,
                U = void 0 !== F && F,
                H = e.isChatPage,
                W = void 0 !== H && H,
                G = e.leaf,
                z = void 0 === G || G,
                V = e.isLightColor2,
                q = e.leafBackground,
                K = void 0 === q ? "#44BB6E" : q,
                Y = e.mainText,
                X = void 0 === Y ? "" : Y,
                Z = e.onCallClick,
                J = e.onCloseClick,
                $ = e.onHeaderClick,
                Q = e.online,
                ee = void 0 === Q || Q,
                te = e.pattern,
                ne = void 0 !== te && te,
                ae = e.subText,
                re = void 0 === ae ? "" : ae,
                ie = e.showHeaderText,
                oe = e.showMenu,
                le = e.MenuComponent,
                ue = e.onMenuButtonClick,
                se = e.isIntroduce,
                ce = e.isChatMin,
                de = e.headerColor,
                fe = e.isPowerPhone,
                pe = e.powerPhone,
                he = e.onInitSwipe,
                ve = e.onReportTelemetry,
                ge = e.onDebugClick,
                me = e.isAbTop100,
                _e = e.joinedBots,
                ye = (0, w.useToggle)(!1),
                be = (0, c.default)(ye, 2),
                Ee = be[0],
                Te = be[1],
                Ce = (0, d.useRef)(null),
                Se = (0, d.useRef)(null),
                we = (0, d.useRef)(null);
            he && he(Se, J), (0, S.useClickOutside)(we, (function() {
                Ee && Te(!1)
            }));
            var Oe, Ae, Ie, Re = function() {
                    return z ? d.default.createElement("jdiv", {
                        className: h.default.callIcon
                    }) : d.default.createElement(b.default, {
                        color: P ? "#272433" : "#fff",
                        iconName: "icon-tube",
                        className: h.default.callIcon
                    })
                },
                Me = (0, f.default)((t = {}, (0, u.default)(t, h.default.headerBox, !0), (0, u.default)(t, h.default.hideCorners, !1), (0, u.default)(t, h.default.__mobile, !z), t)),
                ke = (0, f.default)((n = {}, (0, u.default)(n, h.default.header, !0), (0, u.default)(n, h.default._expanded, N), (0, u.default)(n, h.default._light, !P), (0, u.default)(n, h.default._dark, P), (0, u.default)(n, h.default._mobile, !z), (0, u.default)(n, h.default.__ios, B), (0, u.default)(n, h.default._tablet, U), (0, u.default)(n, h.default._offline, !ee), (0, u.default)(n, h.default.showContent, ie), n)),
                Ne = (0, f.default)((a = {}, (0, u.default)(a, h.default.headerContainer, !0), (0, u.default)(a, h.default.__chatpage, W), a));
            return d.default.createElement("jdiv", (0, s.default)({
                ref: Ce,
                className: Me,
                style: {
                    background: I
                }
            }, (0, g.withLocator)(v.Locator.HEADER)), d.default.createElement("jdiv", {
                className: (0, f.default)((0, u.default)({}, h.default.pattern, ne)),
                style: {
                    backgroundImage: ne || null
                }
            }, z ? d.default.createElement(_.default, (0, s.default)({
                orientation: "bottom",
                backgroundColor: K,
                online: ee
            }, (0, C.onClickHandler)(ge), (0, g.withLocator)(v.Locator.HEADER_LEAF))) : null, d.default.createElement("jdiv", (0, s.default)({
                className: ke
            }, (0, C.onClickHandler)($, !1, !1)), d.default.createElement("jdiv", {
                className: Ne
            }, function() {
                if (se) return null;
                if (!ee || 0 === o.length || o.length > 3) return null;
                if (1 === o.length) {
                    var e = o[0].url || null,
                        t = !(!_e || !_e.length);
                    return d.default.createElement(m.default, (0, s.default)({
                        dark: P,
                        expanded: N,
                        isMobile: !z,
                        inCall: D,
                        url: e,
                        headerColor: de,
                        isBot: t
                    }, (0, g.withLocator)(v.Locator.HEADER_AGENT_AVATAR)))
                }
                var n = (0, l.default)(o).call(o, (function(e) {
                    return e.url
                }));
                return d.default.createElement(y.default, (0, s.default)({
                    bgColor: I,
                    urls: n,
                    dark: P,
                    expanded: N,
                    inCall: D,
                    isMobile: !z,
                    isTablet: U
                }, (0, g.withLocator)(v.Locator.HEADER_AGENT_AVATAR)))
            }(), d.default.createElement("jdiv", (0, s.default)({
                className: h.default.info
            }, (0, g.withLocator)(v.Locator.HEADER_TEXT)), z ? null : d.default.createElement("jdiv", (0, s.default)({
                ref: Se,
                className: (0, f.default)((r = {}, (0, u.default)(r, h.default.toDebugPanel, !0), (0, u.default)(r, h.default._leftButton, O), (0, u.default)(r, h.default._topButton, me), (0, u.default)(r, h.default._rightButton, oe || M), r))
            }, W && (0, C.onClickHandler)(ge))), (Ie = (0, f.default)((Ae = {}, (0, u.default)(Ae, h.default.agentName, !0), (0, u.default)(Ae, h.default.__agents, !re), (0, u.default)(Ae, h.default.__call, M), (0, u.default)(Ae, h.default.__top100, me), Ae)), d.default.createElement("jdiv", (0, s.default)({
                className: Ie
            }, (0, g.withLocator)(v.Locator.HEADER_AGENT_NAME)), X)), function() {
                var e;
                if (!re) return null;
                var t = (0, f.default)((e = {}, (0, u.default)(e, h.default.title, !0), (0, u.default)(e, h.default.__call, M), e));
                return d.default.createElement("jdiv", (0, s.default)({
                    className: t
                }, (0, g.withLocator)(v.Locator.HEADER_AGENT_POSITION)), re)
            }())), me ? d.default.createElement("jdiv", {
                className: (0, f.default)((Oe = {}, (0, u.default)(Oe, h.default.topIcon, !0), (0, u.default)(Oe, h.default.__call, M), Oe))
            }, d.default.createElement(E.default, {
                onClick: function() {},
                onLinkClick: function() {
                    ve(T.TelemetryName.TOP100_LINK_CLICK)
                },
                onIconHover: function() {
                    ve(T.TelemetryName.TOP100_HOVER, !0)
                },
                isChat: !0,
                popupBackground: I,
                color: P ? "#272433" : "#fff",
                isCall: M,
                isMobile: !z,
                isChatMin: ce
            })) : null, !M || oe ? null : fe ? d.default.createElement("a", (0, s.default)({
                href: pe,
                className: h.default.callMe
            }, (0, C.onClickHandler)(Z), (0, g.withLocator)(v.Locator.HEADER_CALLBACK_BUTTON)), Re()) : d.default.createElement("jdiv", (0, s.default)({
                className: h.default.callMe
            }, (0, C.onClickHandler)(Z, !0, !0), (0, g.withLocator)(v.Locator.HEADER_CALLBACK_BUTTON)), Re()), z || !O ? null : d.default.createElement("jdiv", (0, s.default)({
                className: h.default.closeBox
            }, (0, C.onClickHandler)(J, !0, !0)), d.default.createElement(b.default, {
                color: P ? "#272433" : "#fff",
                iconName: "icon-close",
                className: h.default.mobileBack
            })), oe ? d.default.createElement("jdiv", (0, s.default)({
                className: h.default.menuButtonWrap
            }, (0, C.onClickHandler)((function() {
                Te(), ue && ue()
            }), !0, !0), (0, g.withLocator)(v.Locator.HEADER_CALLBACK_BUTTON)), z ? d.default.createElement("jdiv", {
                className: h.default.menuIcon
            }) : d.default.createElement(b.default, {
                color: P || V ? "#272433" : "#fff",
                iconName: "iconHamburger",
                className: h.default.menuIcon
            })) : null, oe ? d.default.createElement("jdiv", {
                ref: we
            }, d.default.createElement(le, {
                show: Ee,
                referenceElement: Ce,
                onCancelClick: Te
            })) : null)))
        };
        A.propTypes = {
            avatars: p.default.arrayOf(p.default.any),
            backButton: p.default.bool,
            background: p.default.string,
            callButton: p.default.bool,
            clickable: p.default.bool,
            darkText: p.default.bool,
            inCall: p.default.bool,
            isIos: p.default.bool,
            isTablet: p.default.bool,
            isChatPage: p.default.bool,
            leaf: p.default.bool,
            leafBackground: p.default.string,
            mainText: p.default.string,
            onCallClick: p.default.func,
            onCloseClick: p.default.func,
            onHeaderClick: p.default.func,
            online: p.default.bool,
            pattern: p.default.string,
            subText: p.default.string,
            showHeaderText: p.default.bool,
            showMenu: p.default.bool,
            MenuComponent: p.default.oneOfType([p.default.arrayOf(p.default.node), p.default.node, p.default.func]),
            onMenuButtonClick: p.default.func,
            onInitSwipe: p.default.func,
            onReportTelemetry: p.default.func,
            onDebugClick: p.default.func,
            isIntroduce: p.default.bool,
            isChatMin: p.default.bool,
            isAbTop100: p.default.bool,
            isLightColor2: p.default.bool,
            headerColor: p.default.string,
            isPowerPhone: p.default.bool,
            powerPhone: p.default.string,
            joinedBots: p.default.array
        };
        var I = d.default.memo(A);
        t.default = I
    }, 68408: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.onMenuButtonClick = t.onHeaderClick = t.onDebugClick = t.onCloseClick = t.onCallClick = t.isPowerPhone = t.getPowerPhone = void 0;
        var r = n(21476),
            i = n(47060),
            o = n(26932),
            l = n(44145),
            u = n(54415),
            s = n(83170),
            c = n(69882),
            d = a(n(91275)),
            f = a(n(19955)),
            p = a(n(4855)),
            h = n(20361),
            v = a(n(138)),
            g = p.default.name("HeaderContainer"),
            m = function() {
                return !(0, l.getCallback)().available && (0, l.getUserSettings)().powerButtonPhone && (f.default.mobileOrTablet() || (0, c.isChatPage)())
            };
        t.isPowerPhone = m;
        t.getPowerPhone = function() {
            return "tel:".concat((0, l.getUserSettings)().powerButtonPhone)
        };
        t.onCallClick = function() {
            g.log("onCallClick");
            var e = r.Router.getCurrentRoute();
            m() ? v.default.trackMobileCallClick() : r.Router.getCurrentRoute() === i.Route.CHAT_CALL ? r.Router.next(i.RouterEvent.ToChat) : r.Router.next(i.RouterEvent.ToCall), e === i.Route.CHAT_MIN && o.transitionDispatchers.startTransition(h.ScriptName.MAXIMIZE_WIDGET)
        };
        t.onCloseClick = function(e) {
            d.default.closeWidget(), r.Router.next(i.RouterEvent.CloseWindow), u.Monitoring.telemetry(s.TelemetryName.MOBILE_CHAT_CLOSE, {
                param1: e ? "bySwipeDown" : "byTap"
            })
        };
        t.onHeaderClick = function() {
            (0, l.getApp)().route === i.Route.CHAT_MIN && (o.appDispatchers.setAppIsFocused(!0), r.Router.next(i.RouterEvent.Navigate), o.transitionDispatchers.startTransition(h.ScriptName.MAXIMIZE_WIDGET))
        };
        t.onDebugClick = function() {
            r.Router.next(i.RouterEvent.ToDebug)
        };
        t.onMenuButtonClick = function() {}
    }, 63121: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.moveMobileContainer = t.initSwipe = t.getTexts = t.getShowMenuOverlay = t.getShowMenu = t.getPatternUrl = t.getInCall = t.getHideMenuTitle = t.getDarkText = t.getClickable = t.getCallButton = t.getAvatars = t.checkIsIntroduce = void 0;
        var r = a(n(2991)),
            i = a(n(78580)),
            o = n(69882),
            l = n(67597),
            u = n(54034),
            s = a(n(19955)),
            c = n(21476),
            d = n(47060),
            f = a(n(84726)),
            p = a(n(50754)),
            h = n(97615),
            v = a(n(75686)),
            g = n(47245),
            m = n(73055),
            _ = a(n(79868)),
            y = a(n(4855)),
            b = n(68403),
            E = y.default.name("HeaderHelpers");
        t.getPatternUrl = function(e) {
            return e ? "url(".concat((0, l.staticUrl)((h.EnvironmentManager.isDevelopment() ? "/public" : "") + "/images/pattern/" + e + ".svg", !0), ")") : null
        };
        t.getAvatars = function(e, t, n, a, i) {
            var o = (0, b.getJoinedAgents)(t, n),
                u = (0, b.getJoinedAgents)(a, i, !0);
            return o.length || u.length ? o.length ? (0, r.default)(o).call(o, (function(t) {
                return {
                    url: t.avatarUrl ? (0, l.getAvatarApiUrl)(e, t.avatarUrl) : null
                }
            })) : (0, r.default)(u).call(u, (function(t) {
                return {
                    url: t.avatarUrl ? (0, l.getAvatarApiUrl)(e, t.avatarUrl) : null
                }
            })) : []
        };
        t.getCallButton = function(e) {
            var t = -1 !== [d.Route.DEPARTMENTS, d.Route.CHAT_EULA, d.Route.INTRODUCE].indexOf(c.Router.getCurrentRoute()),
                n = s.default.mobileOrTablet() && e;
            return (u.CallbackUtils.isCallbackEnabled() || n) && !u.CallbackUtils.isCallActive() && !t
        };
        t.getDarkText = function(e) {
            return "dark" === e
        };
        t.getInCall = function() {
            return u.CallbackUtils.isCallActive()
        };
        t.getTexts = function(e, t, n, a, r, i, l, s, p) {
            if (!e) return {
                mainText: r || a,
                subText: ""
            };
            var h = c.Router.getCurrentRoute();
            if (h === d.Route.DEPARTMENTS) return {
                mainText: (0, f.default)("lblSelectDep"),
                subText: ""
            };
            if (h === d.Route.INTRODUCE && !u.CallbackUtils.isCallActive() || h === d.Route.CHAT_EULA && c.Router.getPrevRoute() === d.Route.INTRODUCE) return {
                mainText: (0, f.default)("lblIntroduceRequestBefore"),
                subText: ""
            };
            if ((0, o.isWixEditor)() && (t || n)) return {
                mainText: t || (0, f.default)("lblConnectedToAgent"),
                subText: n || (0, f.default)("lblOperatorsOnline")
            };
            var v = (0, b.getJoinedAgents)(i, l, !1),
                g = (0, b.getJoinedAgents)(s, p, !0);
            if (1 === v.length) return {
                mainText: v[0].name,
                subText: v[0].title
            };
            if (v.length > 3) return {
                mainText: T(),
                subText: ""
            };
            if (v.length > 1) {
                var m = [];
                return v.forEach((function(e) {
                    m.push(e.name.replace(/ /g, "�"))
                })), {
                    mainText: m.join(", "),
                    subText: ""
                }
            }
            return g.length ? {
                mainText: g[0].name,
                subText: g[0].title
            } : {
                mainText: (0, f.default)("lblConnectedToAgent"),
                subText: (0, f.default)("lblOperatorsOnline")
            }
        };
        var T = function() {
            var e = (0, o.getPageWindow)().location.hostname.replace("www.", "");
            if ("" === e) return (0, f.default)("lblOperatorsOnline");
            try {
                return p.default.toUnicode(e)
            } catch (t) {
                return e
            }
        };
        t.getClickable = function(e) {
            return e === d.Route.CHAT_MIN
        };
        t.getShowMenu = function(e, t, n) {
            var a, r = !!(_.default.getJoints().count || t || n),
                l = (0, i.default)(a = [d.Route.INTRODUCE, d.Route.CHAT_CALL]).call(a, e);
            return !(!(0, o.isChatPage)() || l || !r)
        };
        t.getShowMenuOverlay = function() {
            return (0, o.isChatPage)() && s.default.mobile()
        };
        t.getHideMenuTitle = function() {
            return (0, o.isChatPage)() && (s.default.tablet() || s.default.desktop())
        };
        t.checkIsIntroduce = function(e, t, n) {
            return e == d.Route.INTRODUCE || e == d.Route.CHAT_EULA && 1 == t && !n
        };
        var C = function(e) {
            var t = v.default.get(g.Component.MOBILE_CONTAINER);
            t && t.style && t.style.setProperty("transform", e ? "translateY(".concat(Math.abs(e), "px)") : null, "important")
        };
        t.moveMobileContainer = C;
        t.initSwipe = function(e, t) {
            e && ((0, o.isChatPage)() || !s.default.tablet() && !s.default.mobile() || (0, m.useSwipeDetector)({
                element: e,
                horizontalSwipeThreshold: 120,
                onDownSwipe: function() {
                    t && t(!0)
                },
                onLeftSwipe: function() {},
                onDownCount: function(e) {
                    E.warn("onDownCount"), c.Router.debugClicks = 0, C(e)
                },
                onTouchEnd: function() {
                    E.warn("onTouchEnd"), C(0), c.Router.next(d.RouterEvent.ToDebug)
                }
            }))
        }
    }, 85962: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.useEnchanced = function() {
            var e = (0, d.useSelector)(u.selectChats),
                t = e[e.length - 1],
                n = t && t.joinedAgents ? t.joinedAgents : [],
                a = t.joinedBots ? t.joinedBots : [],
                y = (0, d.useSelector)(i.selectIsOnline),
                b = (0, d.useSelector)(c.selectPattern),
                E = (0, d.useSelector)(c.selectWidgetColor),
                T = (0, d.useSelector)(c.selectWidgetColor2),
                C = (0, d.useSelector)(c.selectPowerButtonColor),
                S = (0, d.useSelector)(c.selectPowerGradient),
                w = (0, d.useSelector)(c.selectPowerButtonPhone),
                O = (0, d.useSelector)(c.selectAvatarUrl),
                A = (0, d.useSelector)(c.selectWidgetFontColor),
                I = (0, d.useSelector)(c.selectWixAgentDisplayName),
                R = (0, d.useSelector)(c.selectWixAgentTitle),
                M = (0, d.useSelector)(c.selectOfflineWidgetLabel),
                k = (0, d.useSelector)(c.selectOfflineFormTitle),
                N = (0, d.useSelector)(i.selectRoute),
                x = (0, d.useSelector)(r.selectAgents),
                P = (0, d.useSelector)(o.selectBots),
                L = (0, d.useSelector)(l.selectIsCallbackAvailable),
                D = (0, d.useSelector)(c.selectContactsAsk),
                j = (0, d.useSelector)(s.selectIsIntroduced),
                B = (0, f.getClickable)(N),
                F = p.default.ios(),
                U = p.default.tablet() || p.default.desktop() && (0, v.isChatPage)(),
                H = T && "black" === h.default.getContrast(T),
                W = (0, f.checkIsIntroduce)(N, D, j),
                G = N === m.Route.CHAT_MIN,
                z = (0, f.getInCall)(),
                V = !p.default.desktop() && !(0, v.isChatPage)(),
                q = (0, f.getCallButton)(w),
                K = p.default.desktop() && !(0, v.isChatPage)(),
                Y = (0, f.getShowMenu)(N, L, w),
                X = (0, f.getDarkText)(A),
                Z = T || E,
                J = (0, f.getPatternUrl)(b),
                $ = (0, g.getPowerPhone)(),
                Q = (0, f.getTexts)(y, I, R, M, k, n, x, a, P),
                ee = Q.mainText,
                te = Q.subText,
                ne = (0, f.getAvatars)(O, n, x, a, P),
                ae = (0, _.getBackground)(E, T, S, C, p.default.mobileOrTablet());
            return {
                isOnline: y,
                color: E,
                joinedBots: a,
                mainText: ee,
                subText: te,
                avatars: ne,
                background: ae,
                showBackButton: V,
                showCallButton: q,
                showLeaf: K,
                showMenu: Y,
                isChatPage: (0, v.isChatPage)(),
                isPowerPhone: (0, g.isPowerPhone)(),
                isClickable: B,
                isIOS: F,
                isTablet: U,
                isLightColor2: H,
                isIntroduce: W,
                isChatMin: G,
                inCall: z,
                darkText: X,
                leafBackground: Z,
                patternUrl: J,
                powerPhone: $
            }
        };
        var r = n(99258),
            i = n(35233),
            o = n(14376),
            l = n(65210),
            u = n(55623),
            s = n(45959),
            c = n(87692),
            d = n(88928),
            f = n(63121),
            p = a(n(19955)),
            h = a(n(27104)),
            v = n(69882),
            g = n(68408),
            m = n(47060),
            _ = n(80598)
    }, 52733: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(5872)),
            i = a(n(87672)),
            o = a(n(98661)),
            l = a(n(45697)),
            u = a(n(40704)),
            s = n(90361),
            c = n(57930),
            d = a(n(94184)),
            f = n(47713),
            p = a(n(2559)),
            h = function(e) {
                var t, n = e.isMobile,
                    a = e.disabled,
                    l = e.onClick,
                    h = e.hasError,
                    v = e.theme,
                    g = e.styles;
                e.isPointer;
                v.color = h || a ? "#f1f0f0" : v.color;
                var m = (0, d.default)((t = {}, (0, i.default)(t, g.sendButton, !0), (0, i.default)(t, g.__disabled, h || a), t));
                return o.default.createElement("jdiv", (0, f.onClickHandler)(l), o.default.createElement(u.default, (0, r.default)({
                    iconName: n ? "mobile-send-button" : "send-button",
                    color: v.color,
                    color2: h ? "#dedede" : p.default.WHITE_100,
                    hoverColor: h ? null : v.hoverColor,
                    className: m
                }, (0, s.withLocator)(c.Locator.INPUT_SUBMIT))))
            };
        h.propTypes = {
            isMobile: l.default.bool,
            disabled: l.default.bool,
            onClick: l.default.func,
            hasError: l.default.bool,
            theme: l.default.shape({
                color: l.default.string,
                hoverColor: l.default.string
            }),
            styles: l.default.shape({
                sendButton: l.default.string
            }),
            isPointer: l.default.bool
        };
        var v = o.default.memo(h);
        t.default = v
    }, 32891: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(86902),
            i = n(14310),
            o = n(20116),
            l = n(34074),
            u = n(39649),
            s = n(52424),
            c = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var d = c(n(25843)),
            f = c(n(87672)),
            p = c(n(18777)),
            h = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = G(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    i = Object.defineProperty && l;
                for (var o in e)
                    if ("default" !== o && Object.prototype.hasOwnProperty.call(e, o)) {
                        var u = i ? l(e, o) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, o, u) : r[o] = e[o]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            v = n(88928),
            g = c(n(45697)),
            m = n(21476),
            _ = n(47060),
            y = c(n(16586)),
            b = c(n(39481)),
            E = c(n(19955)),
            T = c(n(75686)),
            C = n(47245),
            S = c(n(94184)),
            w = c(n(54162)),
            O = n(62096),
            A = n(68403),
            I = n(69882),
            R = n(43374),
            M = n(43025),
            k = n(52028),
            N = c(n(9836)),
            x = c(n(94722)),
            P = c(n(63925)),
            L = c(n(52733)),
            D = n(26932),
            j = c(n(91275)),
            B = n(54415),
            F = n(83170),
            U = n(89177),
            H = c(n(19367)),
            W = n(81311);

        function G(e) {
            if ("function" != typeof s) return null;
            var t = new s,
                n = new s;
            return (G = function(e) {
                return e ? n : t
            })(e)
        }

        function z(e, t) {
            var n = r(e);
            if (i) {
                var a = i(e);
                t && (a = o(a).call(a, (function(t) {
                    return l(e, t).enumerable
                }))), n.push.apply(n, a)
            }
            return n
        }

        function V(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? z(Object(n), !0).forEach((function(t) {
                    (0, f.default)(e, t, n[t])
                })) : u ? Object.defineProperties(e, u(n)) : z(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, l(n, t))
                }))
            }
            return e
        }
        var q = c(n(4855)).default.name("InputContainer"),
            K = function(e) {
                var t, n = e.appStore,
                    a = e.contactsAsk,
                    r = e.disableEmoji,
                    i = e.onInputChangeHeight,
                    o = e.isInputDisabled,
                    l = e.isIntroduced,
                    u = e.disableFiletransfer,
                    s = e.inputText,
                    c = e.agentTyping,
                    v = e.lastMessage,
                    g = (0, h.useRef)(null),
                    G = (0, W.useEnchanced)().isBotBlocked,
                    z = (0, h.useState)({
                        hasError: !1,
                        text: s || v || "",
                        disabled: !!((0, U.getDisabled)() || o || G)
                    }),
                    K = (0, p.default)(z, 2),
                    Y = K[0],
                    X = K[1],
                    Z = (0, h.useState)((0, U.getColorTheme)(Y.disabled)),
                    J = (0, p.default)(Z, 2),
                    $ = (J[0], J[1]),
                    Q = (0, h.useState)(0),
                    ee = (0, p.default)(Q, 2),
                    te = ee[0],
                    ne = ee[1],
                    ae = (0, h.useState)(0),
                    re = (0, p.default)(ae, 2),
                    ie = re[0],
                    oe = re[1],
                    le = (0, h.useState)(0),
                    ue = (0, p.default)(le, 2),
                    se = ue[0],
                    ce = ue[1],
                    de = (0, h.useState)(!1),
                    fe = (0, p.default)(de, 2),
                    pe = fe[0],
                    he = fe[1],
                    ve = T.default.get(C.Component.AUTORESIZER),
                    ge = (0, U.getIsMobile)();
                ie || oe({
                    run: (0, R.throttle)((function(e) {
                        (0, U.startTyping)(e)
                    }), 1e3)
                }), (0, h.useEffect)((function() {
                    (0, U.checkOfflineForm)(), $((0, U.getColorTheme)(Y.disabled)), (0, k.designerBind)("setBubbleColor", (function() {
                        $((0, U.getColorTheme)(Y.disabled))
                    }));
                    var e = T.default.get(C.Component.INPUT);
                    q.log("init", e), T.default.set(C.Component.AUTORESIZER, new N.default(e, {
                        maxSize: 90,
                        minSize: ge ? 16 : 60,
                        onResize: function() {
                            ! function() {
                                var e = g.current.base;
                                if (e) {
                                    var t = e.parentNode.offsetHeight;
                                    se !== t && (i && i(t), ce(t))
                                }
                            }()
                        }
                    })), be(Y.disabled), !ge && m.Router.isChatInputRoute(n.route) && e && !(0, U.isActiveElementFocused)() && e.focus()
                }), []);
                var me = function(e) {
                        X((function(t) {
                            return V(V({}, t), {}, {
                                text: e
                            })
                        }))
                    },
                    _e = function(e, t) {
                        e && (e.preventDefault(), e.stopPropagation());
                        var r = t || Y.text;
                        q.log("inputSendMessage", r);
                        var i = !!r && (0, U.replaceEmojiValue)((0, U.getText)(r));
                        if (i) {
                            if (D.clientDispatchers.setLastMessage(i), me(""), 1 === a && !l && O.reduxStore.getState().messages.length && n.isOnline) return D.appDispatchers.setAppIsFocused(!0), m.Router.next(_.RouterEvent.ToIntroduce), me(""), void D.clientDispatchers.setInputText("");
                            if (!(0, d.default)(i).call(i)) return X((function(e) {
                                return V(V({}, e), {}, {
                                    hasError: !0
                                })
                            })), !1;
                            me(""), D.clientDispatchers.setInputText(""), (0, U.onInputSubmit)(i), setTimeout((function() {
                                ve && ve.check();
                                var e = T.default.get(C.Component.INPUT);
                                e && e.focus()
                            }), 50), ge && document.activeElement === g && e && e.preventDefault()
                        }
                    },
                    ye = function(e) {
                        Y.disabled !== e && (X((function(t) {
                            return V(V({}, t), {}, {
                                text: e ? "" : s,
                                disabled: !!e
                            })
                        })), $((0, U.getColorTheme)(!!e)), be(e))
                    },
                    be = function(e) {
                        (0, U.setPlaceholder)((0, U.getPlaceholder)(e, G))
                    },
                    Ee = function(e) {
                        return e.replace(/[\u202E]/gi, "")
                    },
                    Te = O.reduxStore.getState().settings.features,
                    Ce = (0, S.default)((t = {}, (0, f.default)(t, w.default.input, !0), (0, f.default)(t, w.default.__mobile, ge), (0, f.default)(t, w.default.inputPhone, E.default.windowsPhone()), t)),
                    Se = function() {
                        return (0, U.getDisabled)() || o || G ? (ye(!0), !0) : (ye(!1), !1)
                    },
                    we = u || (0, U.isFileUploadDisabled)(),
                    Oe = E.default.tablet() && E.default.chromeIOS();
                return Oe && (0, U.setPaddingForFocus)(pe), h.default.createElement("jdiv", {
                    className: w.default.wrapMargin,
                    style: {
                        marginBottom: Oe && pe ? 44 : null
                    }
                }, h.default.createElement("jdiv", {
                    className: Ce,
                    ref: function(e) {
                        e && T.default.set(C.Component.CHAT_INPUT, e)
                    }
                }, h.default.createElement(b.default, {
                    text: Y.text,
                    disabled: Se(),
                    onInput: function(e) {
                        e.stopPropagation();
                        var t = Ee(e.target.value);
                        if ("" === t) return e.target.value = "", "" !== Y.text && X((function(e) {
                            return V(V({}, e), {}, {
                                text: "",
                                hasError: !0
                            })
                        })), D.clientDispatchers.setInputText(t), void j.default.typingInsight("");
                        X((function(e) {
                            return V(V({}, e), {}, {
                                text: t,
                                hasError: !1
                            })
                        })), $((0, U.getColorTheme)(!!Y.disabled)), D.clientDispatchers.setInputText(t), setTimeout((function() {
                            ve && ve.check()
                        }), 150), ie.run(t), clearTimeout(te), ne(setTimeout(U.stopTyping, 5e3))
                    },
                    onKeyPress: function(e) {
                        ! function(e, t) {
                            var n = Ee(e.target.value);
                            q.log("onKeyPress", n, t), e.stopPropagation(), Y.text && (n = Y.text);
                            var a = e.keyCode;
                            if (!ge && "" !== n && (e.ctrlKey || e.metaKey || e.shiftKey) && -1 !== [10, 13].indexOf(a)) {
                                if (!e.shiftKey && !E.default.edge()) {
                                    var r = (0, M.addNewLine)(e.target, n);
                                    r && (X((function(e) {
                                        return V(V({}, e), {}, {
                                            text: r
                                        })
                                    })), D.clientDispatchers.setInputText(r))
                                }
                                return !1
                            }
                            13 === a ? (e.preventDefault(), _e(e, n)) : 8 === a && "" === n && (X((function(e) {
                                return V(V({}, e), {}, {
                                    text: ""
                                })
                            })), D.clientDispatchers.setInputText(""))
                        }(e, Y.text)
                    },
                    onFocus: function(e) {
                        (0, U.onFocus)(e), he(!0)
                    },
                    onBlur: function() {
                        he(!1)
                    },
                    onPaste: function(e) {
                        ge && X((function(e) {
                            return V(V({}, e), {}, {
                                hasError: !1
                            })
                        })), (0, U.onPaste)(e)
                    },
                    disableFileUpload: we,
                    ref: g
                }), ge && (0, A.showAd)() ? h.default.createElement(H.default, {
                    type: "chat"
                }) : null, ge && 1 == Te.typingInsight ? h.default.createElement(y.default, {
                    show: c,
                    isMobile: ge
                }) : null, h.default.createElement(L.default, {
                    isMobile: ge,
                    disabled: Se(),
                    onClick: _e,
                    hasError: Y.hasError || !Y.text,
                    theme: (0, U.getColorTheme)(Y.disabled),
                    styles: w.default,
                    isPointer: E.default.isPointerEnabled()
                })), h.default.createElement(x.default, {
                    disabled: Se(),
                    disableFileUpload: we,
                    insertEmoji: function(e) {
                        if (n.isOnline || !Y.disabled) {
                            var t = e.target.getAttribute("jv-emoji");
                            if (null !== t) {
                                var a = ":" + t + ":";
                                if (Y.text && 0 === Y.text.length) _e(null, a), ie.run(a);
                                else {
                                    var r = Y.text + a;
                                    X((function(e) {
                                        return V(V({}, e), {}, {
                                            text: r
                                        })
                                    })), ie.run(r), D.clientDispatchers.setInputText(r)
                                }
                                B.Monitoring.telemetry(F.TelemetryName.EMOJI_INSERT_SMILE), setTimeout((function() {
                                    (0, U.afterEmojiInserted)(ve), D.appDispatchers.setAppIsFocused(!0)
                                }), 150)
                            }
                        }
                    },
                    isPopupMenuVisible: E.default.desktop() && !(0, I.isChatPage)() && (0, U.isNeedDownloadChat)(O.reduxStore.getState().messages),
                    isOnline: n.isOnline,
                    disableEmoji: ge || r
                }), (0, U.isSocialButtonEnabled)() ? h.default.createElement(P.default, null) : null)
            };
        K.propTypes = {
            appStore: g.default.shape({
                isOnline: g.default.bool.isRequired,
                route: g.default.string.isRequired,
                isFocused: g.default.bool.isRequired
            }).isRequired,
            contactsAsk: g.default.number,
            onInputChangeHeight: g.default.func,
            isInputDisabled: g.default.bool,
            disableEmoji: g.default.bool,
            isIntroduced: g.default.bool,
            disableFiletransfer: g.default.bool,
            inputText: g.default.string,
            agentTyping: g.default.bool,
            isBotBlocked: g.default.bool,
            lastMessage: g.default.string
        };
        var Y = (0, v.connect)((function(e) {
            var t = e.chats[e.chats.length ? e.chats.length - 1 : 0];
            return {
                appStore: e.app,
                contactsAsk: e.settings.user.contactsAsk,
                disableEmoji: e.settings.features.disableEmoji,
                isInputDisabled: e.app.isInputDisabled,
                isIntroduced: e.client.isIntroduced,
                disableFiletransfer: !!e.settings.features.disableFiletransfer,
                inputText: e.client.inputText,
                agentTyping: !!t && t.agentTyping,
                lastMessage: e.client.isIntroduced || e.app.isOnline ? null : e.client.lastMessage
            }
        }), {})(K);
        t.default = Y
    }, 39481: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(5872)),
            i = a(n(87672)),
            o = a(n(98661)),
            l = a(n(54162)),
            u = a(n(94184)),
            s = a(n(45697)),
            c = n(90361),
            d = n(57930),
            f = a(n(75686)),
            p = n(47245),
            h = function(e) {
                var t, n = e.text,
                    a = e.disabled,
                    s = e.onInput,
                    h = e.onFocus,
                    v = e.onBlur,
                    g = e.onPaste,
                    m = e.onKeyPress,
                    _ = e.disableFileUpload,
                    y = (0, u.default)((t = {}, (0, i.default)(t, l.default.tdTextarea, !0), (0, i.default)(t, l.default.__filedisabled, _), t));
                return o.default.createElement("jdiv", {
                    className: y
                }, o.default.createElement("textarea", (0, r.default)({
                    maxLength: "1000",
                    className: (0, u.default)((0, i.default)({}, l.default.inputField, !0)),
                    key: "inputField",
                    onInput: s,
                    onKeyPress: m,
                    onKeyUp: function(e) {
                        e.stopPropagation()
                    },
                    onKeyDown: function(e) {
                        e.stopPropagation()
                    },
                    onFocus: h,
                    onBlur: v,
                    onPaste: g,
                    value: a ? "" : n,
                    disabled: a,
                    autoComplete: "false",
                    "data-gramm": "false",
                    "data-gramm_editor": "false",
                    "data-enable-grammarly": "false",
                    ref: function(e) {
                        e && f.default.set(p.Component.INPUT, e)
                    }
                }, (0, c.withLocator)(d.Locator.INPUT))))
            };
        h.propTypes = {
            text: s.default.string,
            disabled: s.default.bool,
            onInput: s.default.func.isRequired,
            onFocus: s.default.func.isRequired,
            onBlur: s.default.func,
            onPaste: s.default.func.isRequired,
            onKeyPress: s.default.func.isRequired,
            disableFileUpload: s.default.bool
        };
        var v = o.default.memo(h);
        t.default = v
    }, 905: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(98661)),
            i = n(88928),
            o = a(n(45697)),
            l = a(n(32891)),
            u = (a(n(4855)).default.name("InputWrap"), function(e) {
                var t = e.onInputChangeHeight;
                return r.default.createElement(l.default, {
                    onInputChangeHeight: t
                })
            });
        u.propTypes = {
            onInputChangeHeight: o.default.func
        };
        var s = (0, i.connect)((function(e) {
            return {}
        }), {})(u);
        t.default = s
    }, 89177: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.afterEmojiInserted = function(e) {
            e && e.check();
            var t = v.default.get(g.Component.INPUT);
            t && (t.focus(), M(t, t.value))
        }, t.checkOfflineForm = function() {
            d.messageActions.handleContactsForm()
        }, t.getColorTheme = function(e) {
            var t = i.default.bubble_color || "green";
            e && (t = "disabled");
            switch (t) {
                case "disabled":
                    return {
                        color: "#c9cdd3",
                        hoverColor: "#c9cdd3"
                    };
                case "blue":
                    return {
                        color: A.default.BLUE_80,
                        hoverColor: A.default.BLUE_90
                    };
                case "grey":
                    return {
                        color: A.default.STEEL_80,
                        hoverColor: A.default.STEEL_90
                    };
                default:
                    return {
                        color: A.default.GREEN_80,
                        hoverColor: A.default.GREEN_90
                    }
            }
        }, t.getDisabled = function() {
            if (i.default.maintenance) return !0;
            return (0, u.isOfflineCanSend)()
        }, t.getIsMobile = void 0, t.getPlaceholder = function(e, t) {
            var n = "";
            if (e) {
                if (n = (0, o.default)("offlineBlockedInputPlaceholder"), i.default.maintenance && (n = (0, o.default)("maintenanceBlockedPlaceholder")), b.default.getInstance().managers.feature.isEnabled(_.Feature.RECAPTCHA)) {
                    var a = b.default.getInstance().managers.recaptcha;
                    a && a.isBlocked() && (n = (0, o.default)("maintenanceBlockedPlaceholder"))
                }
            } else n = l.default.mobileOrTablet() ? (0, o.default)("lblMessageHere") : (0, o.default)("lblEnterMessageHere");
            t && (n = (0, o.default)("botListPickerBlock"));
            return n
        }, t.getText = R, t.isActiveElementFocused = void 0, t.isFileUploadDisabled = function() {
            if (i.default.bots && !i.default.bot_media && !c.default.agent_id) return !0;
            return !k()
        }, t.isFileUploadEnabled = k, t.isNeedDownloadChat = void 0, t.isSocialButtonEnabled = function() {
            if (i.default.joint && i.default.joint.sb) return !l.default.mobileOrTablet() && !(0, m.isChatPage)() && "PUBLISHED" == i.default.joint.sb.status;
            return i.default.joint && (i.default.joint.vk || i.default.joint.fb) && !l.default.mobileOrTablet() && !(0, S.isChatContactForm)() && !(0, m.isChatPage)()
        }, t.onFocus = function() {
            I.log("onFocus");
            var e = v.default.getComponent(g.Component.SCROLL_CONTAINER);
            e && e.setIgnore(!1)
        }, t.onInputSubmit = function(e) {
            d.messageActions.sendClientMessage(e), s.default.typingInsight(""), s.default.clientTyping(!1), f.default.play("outgoing_message")
        }, t.onPaste = function(e) {
            if (k() && !p.Router.needToShowIntroduceForm()) {
                var t = e.clipboardData;
                if (t && t.files && t.files.length) {
                    e.preventDefault();
                    var n = t.files[0];
                    (0, T.startUploadMedia)(n)
                }
            }
        }, t.replaceEmojiValue = function(e) {
            return e.replace((0, w.getEmojiRegExp)(), " $& ")
        }, t.setCursorEnd = M, t.setPaddingForFocus = void 0, t.setPlaceholder = function(e) {
            if (e = e.replace(/&quot;/g, '"').replace(/&#039;/g, "'"), p.Router.getCurrentRoute() !== h.Route.LABEL) {
                var t = v.default.get(g.Component.INPUT);
                t && t.setAttribute("placeholder", e);
                var n = v.default.get(g.Component.AUTORESIZER);
                n && n.check()
            }
        }, t.startTyping = function(e) {
            if (e) {
                var t = R(e);
                I.log("startTyping", t), s.default.clientTyping(t), s.default.typingInsight(t)
            }
        }, t.stopTyping = function() {
            I.log("stopTyping"), s.default.clientTyping(!1)
        };
        var r = a(n(94473)),
            i = a(n(1039)),
            o = a(n(84726)),
            l = a(n(19955)),
            u = n(81722),
            s = a(n(91275)),
            c = a(n(26754)),
            d = n(65465),
            f = a(n(71277)),
            p = n(21476),
            h = n(47060),
            v = a(n(75686)),
            g = n(47245),
            m = n(69882),
            _ = n(3571),
            y = n(43025),
            b = a(n(35802)),
            E = n(44145),
            T = n(66934),
            C = n(81152),
            S = n(68403),
            w = n(66488),
            O = a(n(4855)),
            A = a(n(2559)),
            I = O.default.name("InputHelpers");

        function R(e) {
            return i.default.disable_emoji ? e : (0, w.replaceEmoji)(e)
        }

        function M(e, t) {
            e.setSelectionRange && e.setSelectionRange(t.length + 2, t.length + 2)
        }

        function k() {
            var e = !i.default.disable_filetransfer && 0 !== i.default.options;
            return (0, E.getApp)().isOnline ? (i.default.bot_media || !c.default.bot_id) && e : e && (0, E.getClient)().isIntroduced
        }
        t.getIsMobile = function() {
            return l.default.mobileOrTablet() || (0, m.isChatPage)()
        };
        t.isActiveElementFocused = function() {
            var e = (0, m.getPageWindow)().document.activeElement;
            return !!e && (0, y.isInput)(e)
        };
        t.isNeedDownloadChat = function(e) {
            var t;
            return !!(0, r.default)(t = e || []).call(t, (function(e) {
                return e.from == C.MessageInitiator.AGENT
            }))
        };
        t.setPaddingForFocus = function(e) {
            var t = v.default.getComponent(g.Component.MESSAGES_CONTAINER);
            t && t.style && (t.style.paddingBottom = e ? "44px" : "0px")
        }
    }, 81311: function(e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.useEnchanced = function() {
            var e = (0, a.useSelector)(r.selectBotBlockedMessages);
            return {
                isBotBlocked: !!(0, a.useSelector)(i.selectLastChatOpened) && e
            }
        };
        var a = n(88928),
            r = n(66311),
            i = n(35233)
    }, 64713: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(5872)),
            i = a(n(87672)),
            o = a(n(98661)),
            l = a(n(40704)),
            u = a(n(91059)),
            s = a(n(45697)),
            c = a(n(59963)),
            d = a(n(67061)),
            f = a(n(94184)),
            p = n(90361),
            h = n(57930),
            v = function(e) {
                var t, n = e.opened,
                    a = void 0 !== n && n,
                    s = e.disabled,
                    v = void 0 !== s && s,
                    g = e.width,
                    m = void 0 === g ? 227 : g,
                    _ = e.height,
                    y = void 0 === _ ? 182 : _,
                    b = e.offsetRight,
                    E = void 0 === b ? 15 : b,
                    T = e.onClick,
                    C = e.onItemClick;
                return o.default.createElement("jdiv", (0, r.default)({
                    className: u.default.emojiWrap,
                    onClick: v ? null : T
                }, (0, p.withLocator)(h.Locator.INPUT_EMOJI_PANEL)), o.default.createElement(l.default, {
                    iconName: "icon-emoji",
                    color: v ? "#c9cdd3" : "#a3aab5",
                    className: (0, f.default)((t = {}, (0, i.default)(t, u.default.iconEmoji, !0), (0, i.default)(t, u.default.__disabled, v), t))
                }), o.default.createElement(d.default, {
                    show: a,
                    onClick: C,
                    width: m,
                    height: y,
                    offsetRight: E
                }, o.default.createElement(c.default, null)))
            };
        v.propTypes = {
            opened: s.default.bool.isRequired,
            onClick: s.default.func.isRequired,
            onItemClick: s.default.func.isRequired,
            width: s.default.number,
            height: s.default.number,
            offsetRight: s.default.number,
            disabled: s.default.bool
        };
        var g = o.default.memo(v);
        t.default = g
    }, 94722: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(86902),
            i = n(14310),
            o = n(20116),
            l = n(34074),
            u = n(39649),
            s = n(52424),
            c = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = t.componentProps = void 0;
        var d = c(n(87672)),
            f = c(n(18777)),
            p = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = O(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    i = Object.defineProperty && l;
                for (var o in e)
                    if ("default" !== o && Object.prototype.hasOwnProperty.call(e, o)) {
                        var u = i ? l(e, o) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, o, u) : r[o] = e[o]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            h = c(n(45697)),
            v = c(n(94184)),
            g = c(n(19955)),
            m = n(21951),
            _ = n(69882),
            y = c(n(23535)),
            b = n(54415),
            E = n(83170),
            T = c(n(64713)),
            C = c(n(64508)),
            S = c(n(22866)),
            w = c(n(31308));

        function O(e) {
            if ("function" != typeof s) return null;
            var t = new s,
                n = new s;
            return (O = function(e) {
                return e ? n : t
            })(e)
        }

        function A(e, t) {
            var n = r(e);
            if (i) {
                var a = i(e);
                t && (a = o(a).call(a, (function(t) {
                    return l(e, t).enumerable
                }))), n.push.apply(n, a)
            }
            return n
        }

        function I(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? A(Object(n), !0).forEach((function(t) {
                    (0, d.default)(e, t, n[t])
                })) : u ? Object.defineProperties(e, u(n)) : A(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, l(n, t))
                }))
            }
            return e
        }
        var R = c(n(4855)).default.name("InputIconsPure"),
            M = function(e) {
                var t, n = e.disabled,
                    a = void 0 !== n && n,
                    r = e.disableFileUpload,
                    i = void 0 !== r && r,
                    o = e.insertEmoji,
                    l = e.isPopupMenuVisible,
                    u = e.isOnline,
                    s = e.disableEmoji,
                    c = (0, p.useState)({
                        emojiListOpened: !1,
                        menuOpened: !1,
                        link: {
                            fileName: "",
                            url: ""
                        }
                    }),
                    h = (0, f.default)(c, 2),
                    O = h[0],
                    A = h[1],
                    M = function e() {
                        R.log("closeMenu"), (0, m.removeEvent)((0, _.getPageWindow)(), "click", e), A((function(e) {
                            return I(I({}, e), {}, {
                                menuOpened: !1
                            })
                        }))
                    },
                    k = function(e) {
                        if (R.log("menuClick"), e.stopPropagation(), !a) {
                            O.menuOpened || (0, m.addListener)((0, _.getPageWindow)(), "click", M);
                            var t = S.default.getInstance().messagesFormatter.getMessagesAsHTML();
                            A((function(e) {
                                return I(I({}, e), {}, {
                                    menuOpened: !e.menuOpened,
                                    emojiListOpened: !1,
                                    link: t
                                })
                            })), b.Monitoring.telemetryOnce(E.TelemetryName.MORE_CLICK), t.url || b.Monitoring.telemetryOnce(E.TelemetryName.ERROR_DOWNLOADING_CHAT_LOG, {
                                param1: e.message
                            })
                        }
                    },
                    N = function e() {
                        R.log("closeEmojiList"), (0, m.removeEvent)((0, _.getPageWindow)(), "click", e), A((function(e) {
                            return I(I({}, e), {}, {
                                emojiListOpened: !1
                            })
                        }))
                    },
                    x = function(e) {
                        R.log("toggleEmojiList"), e.stopPropagation(), !u && a || (O.emojiListOpened || (0, m.addListener)((0, _.getPageWindow)(), "click", N), A((function(e) {
                            return I(I({}, e), {}, {
                                emojiListOpened: !e.emojiListOpened,
                                menuOpened: !1
                            })
                        })), O.emojiListOpened && b.Monitoring.telemetryOnce(E.TelemetryName.EMOJI_OPEN_SMILE_LIST))
                    },
                    P = (0, v.default)((t = {}, (0, d.default)(t, w.default.iconPanel, !0), (0, d.default)(t, w.default.__mobile, g.default.mobileOrTablet() || (0, _.isChatPage)()), t));
                return p.default.createElement("jdiv", {
                    className: P
                }, function() {
                    if (l) return p.default.createElement(C.default, {
                        show: O.menuOpened,
                        disabled: a,
                        link: O.link,
                        onClick: k,
                        onItemClick: function() {
                            b.Monitoring.telemetryOnce(E.TelemetryName.DOWNLOAD_CHAT_LOG_CLICK)
                        }
                    })
                }(), function() {
                    if (!i) return p.default.createElement(y.default, {
                        disabled: a
                    })
                }(), function() {
                    if (!s) return p.default.createElement(T.default, {
                        disabled: a,
                        opened: O.emojiListOpened,
                        onClick: x,
                        onItemClick: o,
                        offsetRight: (e = !i, l && !e ? 15 : l && e ? 45 : l || e ? 15 : 0)
                    });
                    var e
                }())
            },
            k = M.propTypes = {
                disabled: h.default.bool.isRequired,
                disableFileUpload: h.default.bool.isRequired,
                insertEmoji: h.default.func.isRequired,
                isOnline: h.default.bool,
                isPopupMenuVisible: h.default.bool,
                disableEmoji: h.default.bool
            };
        t.componentProps = k;
        var N = p.default.memo(M);
        t.default = N
    }, 67061: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = a(n(30240)),
            l = a(n(94184)),
            u = a(n(45697)),
            s = function(e) {
                var t, n = e.show,
                    a = void 0 === n || n,
                    u = e.width,
                    s = void 0 === u ? 100 : u,
                    c = e.height,
                    d = void 0 === c ? 100 : c,
                    f = e.offsetRight,
                    p = void 0 === f ? 0 : f,
                    h = e.children,
                    v = e.onClick;
                return i.default.createElement("jdiv", {
                    className: (0, l.default)((t = {}, (0, r.default)(t, o.default.popup, !0), (0, r.default)(t, o.default.show, !!a), t)),
                    style: {
                        width: "".concat(s, "px"),
                        height: "".concat(d, "px"),
                        right: "".concat(p, "px"),
                        top: "-".concat(38 + d, "px")
                    },
                    onClick: v
                }, i.default.createElement("jdiv", {
                    className: o.default.childrenWrap
                }, h), i.default.createElement("jdiv", {
                    className: o.default.pip,
                    style: {
                        left: "".concat(2 + p, "px")
                    }
                }))
            };
        s.propTypes = {
            show: u.default.bool.isRequired,
            width: u.default.number.isRequired,
            onClick: u.default.func.isRequired,
            children: u.default.oneOfType([u.default.arrayOf(u.default.node), u.default.node]).isRequired,
            height: u.default.number,
            offsetRight: u.default.number
        };
        var c = i.default.memo(s);
        t.default = c
    }, 64508: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(5872)),
            i = a(n(87672)),
            o = a(n(98661)),
            l = a(n(2037)),
            u = a(n(40704)),
            s = a(n(45697)),
            c = a(n(94184)),
            d = a(n(84726)),
            f = n(90361),
            p = n(57930),
            h = function(e) {
                var t, n, a = e.disabled,
                    s = e.onClick,
                    h = e.onItemClick,
                    v = e.link,
                    g = e.show;
                return o.default.createElement("jdiv", {
                    className: l.default.menuWrap
                }, o.default.createElement("jdiv", (0, r.default)({
                    onClick: s
                }, (0, f.withLocator)(p.Locator.INPUT_MORE_BTN)), o.default.createElement(u.default, {
                    iconName: "icon-more",
                    color: a ? "#c9cdd3" : "#a3aab5",
                    hoverColor: a ? null : "#a3aab5",
                    disabled: a,
                    className: (0, c.default)((t = {}, (0, i.default)(t, l.default.iconMenu, !0), (0, i.default)(t, l.default.__disabled, a), t))
                })), o.default.createElement("jdiv", {
                    className: (0, c.default)((n = {}, (0, i.default)(n, l.default.menu, !0), (0, i.default)(n, l.default.show, !!g), n))
                }, o.default.createElement("jdiv", {
                    className: l.default.menuItem,
                    onClick: h
                }, o.default.createElement("a", {
                    download: v.fileName,
                    href: v.url,
                    target: "_blank",
                    rel: "nofollow noopener noreferrer"
                }, (0, d.default)("downloadChatText"))), o.default.createElement("jdiv", {
                    className: l.default.pip
                })))
            };
        h.propTypes = {
            show: s.default.bool.isRequired,
            onClick: s.default.func.isRequired,
            onItemClick: s.default.func.isRequired,
            link: s.default.shape({
                fileName: s.default.string.isRequired,
                url: s.default.string.isRequired
            }).isRequired,
            disabled: s.default.bool
        };
        var v = o.default.memo(h);
        t.default = v
    }, 93589: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(87672)),
            u = o(n(18777)),
            s = o(n(94473)),
            c = o(n(2991)),
            d = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = y(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            f = o(n(45697)),
            p = o(n(94184)),
            h = n(57985),
            v = n(9335),
            g = o(n(88155)),
            m = o(n(22760)),
            _ = o(n(40704));

        function y(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (y = function(e) {
                return e ? n : t
            })(e)
        }
        var b = function(e) {
            var t, n, a = e.selectedDepartmentId,
                r = e.departments,
                i = e.isMobile,
                o = e.isIos,
                f = e.bgColor,
                y = e.onDepartmentSelect,
                b = (0, d.useRef)(null),
                E = (0, d.useState)((function() {
                    var e;
                    return null !== (e = (0, s.default)(r).call(r, (function(e) {
                        return e.id >> 0 == a >> 0
                    }))) && void 0 !== e ? e : r[0]
                })),
                T = (0, u.default)(E, 2),
                C = T[0],
                S = T[1],
                w = (0, v.useToggle)(!1),
                O = (0, u.default)(w, 2),
                A = O[0],
                I = O[1];
            (0, h.useClickOutside)(b, (function() {
                A && I(!1)
            }));
            var R = (0, p.default)((t = {}, (0, l.default)(t, m.default.selectPopup, !0), (0, l.default)(t, m.default.__ios, o), (0, l.default)(t, m.default.__scroll, r.length > 3), t)),
                M = (0, p.default)((n = {}, (0, l.default)(n, m.default.currentItem, !0), (0, l.default)(n, m.default["_" + f], !0), (0, l.default)(n, m.default._open, A), (0, l.default)(n, m.default.__mobile, i), n)),
                k = function() {
                    return (0, c.default)(r).call(r, (function(e) {
                        return d.default.createElement("jdiv", {
                            key: e.id,
                            className: e.id === C.id ? m.default.itemSelected : m.default.item,
                            onClick: function() {
                                return t = e.id, n = e.name, S({
                                    id: t,
                                    name: n
                                }), I(!1), void y(t);
                                var t, n
                            }
                        }, e.name)
                    }))
                };
            return d.default.createElement("jdiv", {
                className: m.default.fieldWrap
            }, d.default.createElement("jdiv", {
                className: m.default.select
            }, d.default.createElement("jdiv", {
                className: M,
                onClick: function(e) {
                    e.preventDefault(), I()
                }
            }, C.name, d.default.createElement(_.default, {
                iconName: "icon-v",
                color: "#8B9096",
                hoverColor: "#222D38",
                className: m.default.iconSelect
            })), A && d.default.createElement("jdiv", {
                ref: b,
                className: R
            }, r.length > 3 ? d.default.createElement(g.default, {
                railClass: m.default.rail,
                hideTracksWhenNotNeeded: !1
            }, k()) : k())))
        };
        b.propTypes = {
            selectedDepartmentId: f.default.number,
            departments: f.default.arrayOf(f.default.shape({
                id: f.default.string,
                name: f.default.string
            })).isRequired,
            isMobile: f.default.bool.isRequired,
            isIos: f.default.bool.isRequired,
            bgColor: f.default.string.isRequired,
            onDepartmentSelect: f.default.func.isRequired
        };
        var E = b;
        t.default = E
    }, 33744: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(87672)),
            u = o(n(18777)),
            s = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = N(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            c = o(n(94184)),
            d = o(n(50890)),
            f = o(n(96340)),
            p = o(n(91325)),
            h = o(n(22048)),
            v = o(n(93589)),
            g = o(n(40704)),
            m = o(n(19367)),
            _ = n(26932),
            y = n(47245),
            b = n(9393),
            E = n(68403),
            T = n(69882),
            C = n(21476),
            S = n(47060),
            w = n(15787),
            O = n(49862),
            A = n(85620),
            I = o(n(84726)),
            R = o(n(75686)),
            M = o(n(39604)),
            k = n(33813);

        function N(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (N = function(e) {
                return e ? n : t
            })(e)
        }
        var x = s.default.memo((function() {
            var e, t = (0, s.useState)(null),
                n = (0, u.default)(t, 2),
                a = n[0],
                r = n[1],
                i = (0, A.useEnhanced)(),
                o = i.isAnon,
                N = i.eula,
                x = i.eulaEnabled,
                P = i.departments,
                L = i.selectedDepartmentId,
                D = i.isMobile,
                j = i.isIos,
                B = i.bgColor,
                F = i.client,
                U = i.description,
                H = i.route,
                W = i.isOnline,
                G = i.isFocused;
            return (0, O.useDidUpdate)((function() {
                if (a && (!x || N)) {
                    _.clientDispatchers.setIsIntroduced(!0), P.lenght && !L && _.clientDispatchers.setDepartmentId(+P[0].id);
                    var e = {
                        description: U
                    };
                    (0, b.each)(a, (function(t) {
                        return e[t.name] = t.value
                    }));
                    var t = a.message && a.message.value ? a.message.value : null;
                    (0, w.sendIntroduceAndMessage)(e, t), C.Router.next(S.RouterEvent.Submit), setTimeout((function() {
                        (0, k.fixSafariKeyframes)(!0)
                    }), 50)
                }
            }), [N, x, a]), H !== S.Route.INTRODUCE ? null : s.default.createElement("jdiv", {
                className: (0, c.default)((e = {}, (0, l.default)(e, M.default.main, !0), (0, l.default)(e, M.default.__mobile, D || (0, T.isChatPage)()), e)),
                ref: function(e) {
                    R.default.set(y.Component.INTRODUCE, e)
                }
            }, (0, E.showAd)() ? s.default.createElement(m.default, {
                bottom: !0
            }) : null, s.default.createElement(d.default, {
                client: F,
                isOnline: W,
                isFocused: G,
                errorCallback: function() {},
                successCallback: function(e) {
                    r(e), x && !N && C.Router.next(S.RouterEvent.Submit)
                }
            }, o && !D && s.default.createElement("jdiv", {
                className: M.default.avatarBox
            }, s.default.createElement(g.default, {
                iconName: "icon-anonymous",
                className: M.default.iconAnonymous
            })), s.default.createElement(f.default, {
                name: "client_name",
                placeholder: (0, I.default)("lblIntroduceName")
            }), s.default.createElement(f.default, {
                name: "phone",
                placeholder: (0, I.default)("lblYourPhone")
            }), s.default.createElement(f.default, {
                name: "email",
                placeholder: (0, I.default)("lblYourEmail")
            }), P.length ? s.default.createElement(v.default, {
                selectedDepartmentId: L,
                departments: P,
                isMobile: D,
                isIos: j,
                bgColor: B,
                onDepartmentSelect: function(e) {
                    return _.clientDispatchers.setDepartmentId(+e)
                }
            }) : null, s.default.createElement(p.default, {
                name: "message"
            }), s.default.createElement(h.default, {
                type: "submit"
            })))
        }));
        t.default = x
    }, 85620: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.useEnhanced = function() {
            var e = (0, r.useSelector)(i.selectContactsSettings),
                t = (0, r.useSelector)(i.selectEulaEnabled),
                n = (0, r.useSelector)(i.selectDepartments),
                a = (0, r.useSelector)(o.selectDepartmentId),
                c = (0, r.useSelector)(i.selectBubbleColor),
                d = (0, r.useSelector)(o.selectClient),
                f = (0, r.useSelector)(o.selectEulaAccepted),
                p = (0, r.useSelector)(o.selectDescription),
                h = (0, r.useSelector)(s.selectRoute),
                v = (0, r.useSelector)(s.selectIsOnline),
                g = (0, r.useSelector)(s.selectIsFocused),
                m = u.default.mobileOrTablet(),
                _ = u.default.safari(),
                y = u.default.ios();
            return {
                isAnon: (b = 0, (0, l.each)(e, (function(e) {
                    e.show && (b += 1)
                })), b < 2),
                eula: f,
                eulaEnabled: t,
                departments: n,
                selectedDepartmentId: a,
                isMobile: m,
                isSafari: _,
                isIos: y,
                bgColor: c,
                client: d,
                description: p,
                route: h,
                isOnline: v,
                isFocused: g
            };
            var b
        };
        var r = n(88928),
            i = n(87692),
            o = n(45959),
            l = n(9393),
            u = a(n(19955)),
            s = n(35233)
    }, 54413: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(87672)),
            i = a(n(80122)),
            o = a(n(5872)),
            l = a(n(18777)),
            u = a(n(89400)),
            s = a(n(86902)),
            c = a(n(2991)),
            d = a(n(26295)),
            f = a(n(98661)),
            p = a(n(45697)),
            h = a(n(94184)),
            v = n(69665),
            g = n(57930),
            m = n(47713),
            _ = n(49862),
            y = n(2535),
            b = n(81366),
            E = n(90361),
            T = a(n(32083)),
            C = a(n(3501)),
            S = a(n(43569)),
            w = a(n(46133)),
            O = a(n(33126)),
            A = a(n(43711)),
            I = a(n(18292)),
            R = a(n(40704)),
            M = a(n(1497)),
            k = ["selected", "hovered"],
            N = function(e) {
                var t, n = e.color,
                    a = e.fields,
                    p = e.currentDepartmentId,
                    N = e.departments,
                    x = e.isDesktop,
                    P = e.isIos,
                    L = e.size,
                    D = e.initialName,
                    j = e.initialPhone,
                    B = e.initialEmail,
                    F = e.initialMessage,
                    U = e.submitButtonText,
                    H = e.onFailedSubmit,
                    W = e.onSuccessSubmit,
                    G = (0, b.useIsOnline)(),
                    z = (0, y.useForm)({
                        initialValues: {
                            name: D,
                            email: B,
                            phone: j,
                            departmentId: p || (N.length ? N[0].value : null),
                            message: F
                        },
                        validate: function(e) {
                            return (0, v.validateFn)(a, e)
                        },
                        focusOnFirstError: !0
                    }),
                    V = z.errors,
                    q = (0, u.default)(z),
                    K = z.setFieldValue,
                    Y = z.getInputProps,
                    X = z.formRef,
                    Z = z.submitCount,
                    J = z.isSubmitted,
                    $ = z.isValid,
                    Q = z.onSubmit;
                (0, _.useDidUpdate)((function() {
                    $ || H(V)
                }), [Z]);
                var ee = function(e) {
                        return K("departmentId", e.value)
                    },
                    te = function(e) {
                        var t = e.isDirty,
                            n = e.isValid;
                        return {
                            show: J && !t,
                            name: n ? "iconValid" : "iconWarning"
                        }
                    },
                    ne = function(e) {
                        return e.isDirty || !J ? null : n
                    },
                    ae = x && (0, s.default)(a).length < 2,
                    re = Y("message"),
                    ie = te(re.state),
                    oe = Q(W),
                    le = function(e) {
                        return "Enter" === e.code && oe(e)
                    };
                return f.default.createElement(f.default.Fragment, null, ae && f.default.createElement("jdiv", {
                    className: I.default.helloBox
                }, f.default.createElement(C.default, {
                    icon: "1f44b",
                    className: "emojiMessages",
                    alone: !0
                })), f.default.createElement("form", (0, o.default)({
                    ref: X,
                    className: I.default.form
                }, (0, E.withLocator)(g.Locator.CONTACTS_FORM)), (0, c.default)(t = (0, d.default)(a)).call(t, (function(e) {
                    var t = (0, l.default)(e, 2),
                        n = t[0],
                        a = t[1],
                        r = Y(n),
                        i = r.attrs,
                        u = r.state,
                        s = te(u),
                        c = s.show,
                        d = s.name,
                        p = g.Locator["CONTACTS_FORM_".concat(n.toUpperCase())];
                    return f.default.createElement(S.default, (0, o.default)({
                        key: n,
                        color: ne(u),
                        size: L,
                        required: a.required,
                        variant: "inset",
                        isIos: P,
                        rightSectionWidth: 32,
                        rightSection: c && f.default.createElement(R.default, {
                            iconName: d,
                            className: I.default.icon
                        }),
                        onKeyDown: le
                    }, i, v.getFieldProps[n], (0, E.withLocator)(p)))
                })), !!N.length && x && f.default.createElement(O.default, (0, o.default)({
                    color: n,
                    data: N,
                    gutter: 2,
                    initialValue: q.departmentId,
                    maxDropdownHeight: 94,
                    size: L,
                    variant: "inset",
                    rightSectionWidth: 32,
                    itemComponent: function(e) {
                        var t, n = e.selected,
                            a = e.hovered,
                            l = (0, i.default)(e, k);
                        return f.default.createElement(A.default, (0, o.default)({}, l, {
                            className: (0, h.default)((t = {}, (0, r.default)(t, I.default.selectItem, !0), (0, r.default)(t, I.default.__selected, n), (0, r.default)(t, I.default.__hovered, a), t))
                        }))
                    }
                }, v.getFieldProps.department, {
                    onChange: ee
                })), !!N.length && !x && f.default.createElement(w.default, (0, o.default)({
                    color: n,
                    data: N,
                    value: q.departmentId,
                    size: L,
                    variant: "inset",
                    rightSectionWidth: 32
                }, v.getFieldProps.department, {
                    onChange: function(e) {
                        return ee({
                            value: e
                        })
                    }
                })), f.default.createElement(M.default, (0, o.default)({
                    rows: 2,
                    color: ne(re.state),
                    size: L,
                    required: !0,
                    variant: "inset",
                    rightSectionWidth: 32,
                    rightSection: ie.show && f.default.createElement(R.default, {
                        iconName: ie.name,
                        className: I.default.icon
                    }),
                    classNames: {
                        textarea: null,
                        rightSection: I.default.overriddenTextareaRightSection
                    }
                }, v.getFieldProps.message, re.attrs, (0, E.withLocator)(g.Locator.CONTACTS_FORM_INPUT))), f.default.createElement(T.default, (0, o.default)({
                    component: "jdiv",
                    type: "submit",
                    disabled: !G,
                    color: n,
                    size: L,
                    fullWidth: !0
                }, (0, m.onClickHandler)(oe)), U)))
            };
        N.defaultProps = {
            initialName: "",
            initialPhone: "",
            initialEmail: "",
            initialMessage: "",
            size: "sm",
            departments: []
        }, N.propTypes = {
            color: p.default.string.isRequired,
            fields: p.default.shape({
                name: p.default.shape({
                    show: p.default.bool,
                    required: p.default.bool
                }),
                phone: p.default.shape({
                    show: p.default.bool,
                    required: p.default.bool
                }),
                email: p.default.shape({
                    show: p.default.bool,
                    required: p.default.bool
                })
            }).isRequired,
            currentDepartmentId: p.default.number,
            departments: p.default.arrayOf(p.default.shape({
                value: p.default.oneOfType([p.default.string, p.default.number]),
                label: p.default.string
            })),
            isDesktop: p.default.bool.isRequired,
            isIos: p.default.bool.isRequired,
            submitButtonText: p.default.string.isRequired,
            initialName: p.default.string,
            initialEmail: p.default.string,
            initialPhone: p.default.string,
            initialMessage: p.default.string,
            size: p.default.oneOf(["xs", "sm", "md", "lg", "xl"]),
            onFailedSubmit: p.default.func.isRequired,
            onSuccessSubmit: p.default.func.isRequired
        };
        var x = N;
        t.default = x
    }, 82521: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(86902),
            i = n(14310),
            o = n(20116),
            l = n(34074),
            u = n(39649),
            s = n(52424),
            c = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var d = c(n(25843)),
            f = c(n(59340)),
            p = c(n(2991)),
            h = c(n(87672)),
            v = c(n(18777)),
            g = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = q(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    i = Object.defineProperty && l;
                for (var o in e)
                    if ("default" !== o && Object.prototype.hasOwnProperty.call(e, o)) {
                        var u = i ? l(e, o) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, o, u) : r[o] = e[o]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            m = n(88928),
            _ = c(n(94184)),
            y = n(45959),
            b = n(87692),
            E = n(26932),
            T = n(47245),
            C = n(21721),
            S = n(9393),
            w = n(68403),
            O = n(69882),
            A = n(21733),
            I = n(54415),
            R = n(34425),
            M = n(21476),
            k = n(47060),
            N = n(35233),
            x = n(15787),
            P = n(83170),
            L = n(49862),
            D = n(63664),
            j = c(n(19367)),
            B = c(n(19955)),
            F = c(n(17101)),
            U = c(n(71323)),
            H = c(n(54413)),
            W = c(n(84726)),
            G = c(n(75686)),
            z = c(n(18292)),
            V = n(33813);

        function q(e) {
            if ("function" != typeof s) return null;
            var t = new s,
                n = new s;
            return (q = function(e) {
                return e ? n : t
            })(e)
        }

        function K(e, t) {
            var n = r(e);
            if (i) {
                var a = i(e);
                t && (a = o(a).call(a, (function(t) {
                    return l(e, t).enumerable
                }))), n.push.apply(n, a)
            }
            return n
        }

        function Y(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? K(Object(n), !0).forEach((function(t) {
                    (0, h.default)(e, t, n[t])
                })) : u ? Object.defineProperties(e, u(n)) : K(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, l(n, t))
                }))
            }
            return e
        }
        var X = function e() {
            var t, n;
            (0, D.useErrorCatcher)(e.displayName);
            var a = (0, g.useState)(null),
                r = (0, v.default)(a, 2),
                i = r[0],
                o = r[1],
                l = (0, g.useState)(!1),
                u = (0, v.default)(l, 2),
                s = u[0],
                c = u[1],
                q = (0, m.useSelector)(b.selectBubbleColor),
                K = (0, m.useSelector)(b.selectContactsSettingsToShow),
                X = (0, m.useSelector)(y.selectDepartmentId),
                Z = (0, m.useSelector)(b.selectDepartments),
                J = (0, m.useSelector)(y.selectClientEmail),
                $ = (0, m.useSelector)(y.selectDescription),
                Q = (0, m.useSelector)(y.selectInputText),
                ee = (0, m.useSelector)(y.selectLastMessage),
                te = (0, m.useSelector)(y.selectEulaAccepted),
                ne = (0, m.useSelector)(b.selectEulaEnabled),
                ae = (0, m.useSelector)(y.selectClientName),
                re = (0, m.useSelector)(y.selectClientPhone),
                ie = (0, m.useSelector)(N.selectIsOnline),
                oe = (0, m.useSelector)(N.selectRoute),
                le = (0, O.isChatPage)(),
                ue = B.default.desktop(),
                se = B.default.ios() && B.default.safari(),
                ce = (0, w.showAd)(),
                de = ne && !te,
                fe = !ne || te,
                pe = function(e) {
                    var t = Y(Y({}, e), {}, {
                        description: $
                    });
                    return (0, S.each)(t, (function(e) {
                        return (0, A.isString)(e) ? (0, d.default)(e).call(e) : ""
                    })), t
                },
                he = function(e) {
                    var t = +e.departmentId;
                    t && E.clientDispatchers.setDepartmentId(t), E.clientDispatchers.setIsIntroduced(!0), (0, x.sendIntroduceAndMessage)(e, e.message), M.Router.next(k.RouterEvent.Submit), setTimeout((function() {
                        (0, V.fixSafariKeyframes)(!0)
                    }), 50)
                };
            (0, L.useDidUpdate)((function() {
                i && fe && he(i)
            }), [i, fe]);
            var ve = (0, p.default)(Z).call(Z, (function(e) {
                return {
                    value: e.id,
                    label: e.name
                }
            }));
            return oe !== k.Route.INTRODUCE ? null : g.default.createElement("jdiv", {
                className: (0, _.default)((t = {}, (0, h.default)(t, z.default.wrapper, !0), (0, h.default)(t, z.default.__mobile, !ue || le), t))
            }, g.default.createElement(C.DisconnectAlert, {
                route: k.Route.INTRODUCE
            }), g.default.createElement("jdiv", {
                className: (0, _.default)((n = {}, (0, h.default)(n, z.default.container, !0), (0, h.default)(n, z.default.__mobile, !ue || le), n)),
                ref: function(e) {
                    G.default.set(T.Component.INTRODUCE, e)
                }
            }, ce && g.default.createElement(j.default, {
                type: "chat",
                bottom: !0
            }), g.default.createElement(H.default, {
                color: q,
                fields: K,
                currentDepartmentId: X,
                departments: ve,
                isDesktop: ue,
                isIos: se,
                size: "md",
                initialName: ae,
                initialPhone: re,
                initialEmail: J,
                initialMessage: Q || ee,
                submitButtonText: de ? (0, W.default)("continue") : (0, W.default)("lblSendBefore"),
                onFailedSubmit: function(e) {
                    var t = ie ? P.TelemetryName.CHAT_INTRODUCE : P.TelemetryName.OFFLINE_SENT_FAIL,
                        n = (0, R.redefineProps)(pe(e), {
                            name: "client_name"
                        }, !0);
                    I.Monitoring.telemetry(t, {
                        param1: "formSubmitFail",
                        param2: (0, w.getContactSettingsInfo)(),
                        param3: (0, f.default)(n)
                    })
                },
                onSuccessSubmit: function(e) {
                    var t = (0, R.redefineProps)(pe(e), {
                        name: "client_name"
                    }, !0);
                    if (o(t), I.Monitoring.telemetry(P.TelemetryName.CHAT_INTRODUCE, {
                            param1: "formSubmit",
                            param2: (0, w.getContactSettingsInfo)()
                        }), de) return c(!0);
                    he(t)
                }
            })), g.default.createElement(F.default, {
                isOpened: s,
                onAgree: function() {
                    c(!1), U.default.acceptEula(), M.Router.next(k.RouterEvent.Submit)
                },
                onDisagree: function() {
                    c(!1)
                }
            }))
        };
        X.displayName = "NewIntroduce";
        var Z = X;
        t.default = Z
    }, 69665: function(e, t, n) {
        "use strict";
        var a = n(86902),
            r = n(14310),
            i = n(20116),
            o = n(34074),
            l = n(39649),
            u = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.validateFn = t.getFieldProps = void 0;
        var s = u(n(87672)),
            c = u(n(25843)),
            d = u(n(84726)),
            f = u(n(98960));

        function p(e, t) {
            var n = a(e);
            if (r) {
                var l = r(e);
                t && (l = i(l).call(l, (function(t) {
                    return o(e, t).enumerable
                }))), n.push.apply(n, l)
            }
            return n
        }

        function h(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? p(Object(n), !0).forEach((function(t) {
                    (0, s.default)(e, t, n[t])
                })) : l ? Object.defineProperties(e, l(n)) : p(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, o(n, t))
                }))
            }
            return e
        }
        var v = {
            name: {
                name: "name",
                type: "text",
                maxLength: null,
                autoComplete: "name",
                label: (0, d.default)("lblIntroduceName")
            },
            phone: {
                name: "phone",
                type: "tel",
                maxLength: null,
                autoComplete: "tel",
                label: (0, d.default)("lblYourPhone")
            },
            email: {
                name: "email",
                type: "email",
                maxLength: 255,
                autoComplete: "email",
                label: (0, d.default)("lblYourEmail")
            },
            department: {
                name: "department",
                type: "text",
                maxLength: null,
                autoComplete: null,
                label: (0, d.default)("lblSelectDep")
            },
            message: {
                name: "message",
                type: null,
                maxLength: 1e3,
                autoComplete: "off",
                label: (0, d.default)("lblYourMessage")
            }
        };
        t.getFieldProps = v;
        t.validateFn = function(e, t) {
            var n = {};
            for (var a in e) {
                var r = t[a],
                    i = f.default[a];
                n[a] = (e[a].required || (0, c.default)(r).call(r).length) && !i(r)
            }
            return h(h({}, n), {}, {
                message: !f.default.message(t.message)
            })
        }
    }, 17582: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(78580)),
            u = o(n(87672)),
            s = o(n(18777)),
            c = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = w(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            d = n(88928),
            f = o(n(45697)),
            p = o(n(24247)),
            h = o(n(69733)),
            v = o(n(3579)),
            g = n(20361),
            m = n(47060),
            _ = n(47245),
            y = o(n(75686)),
            b = n(52028),
            E = n(69882),
            T = n(19210),
            C = n(21863),
            S = n(83170);

        function w(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (w = function(e) {
                return e ? n : t
            })(e)
        }
        var O = function(e) {
            var t, n, a = e.userSettings,
                r = e.features,
                i = e.appStore,
                o = e.billRu,
                d = e.labelBubble,
                f = (0, c.useState)(!0),
                w = (0, s.default)(f, 2),
                O = w[0],
                A = w[1];
            return d || (0, l.default)(t = [m.Route.HIDDEN, m.Route.CHAT_MIN]).call(t, i.route) || (0, E.isChatPage)() ? null : c.default.createElement(c.default.Fragment, null, r.apiInvitation ? c.default.createElement(h.default, {
                onClose: function() {
                    A(!0)
                },
                onShow: function() {
                    A(!1)
                }
            }) : null, (0, E.isCustomLabel)() ? null : c.default.createElement(v.default, {
                name: _.Component.LABEL,
                startCallbacks: (n = {}, (0, u.default)(n, g.ScriptName.CLOSE_WIDGET, (function() {
                    A(!0)
                })), (0, u.default)(n, g.ScriptName.OPEN_WIDGET, (function() {
                    A(!0)
                })), (0, u.default)(n, g.ScriptName.MIN_WIDGET, (function() {
                    A(!1)
                })), n),
                endCallbacks: (0, u.default)({}, g.ScriptName.OPEN_WIDGET, (function() {
                    A(!1)
                })),
                style: {
                    display: "block",
                    zIndex: 2147483646,
                    position: "fixed"
                },
                duration: "left" === a.widgetOrientation ? "600ms" : "300ms",
                animationPostfix: a.widgetOrientation
            }, c.default.createElement(p.default, {
                ad: (0, C.getAdProp)(),
                background: (0, C.getBackgroundProp)(a),
                designer: b.isDesignerEditor,
                onButtonsClick: function() {
                    (0, T.showChat)(i.isOnline, m.RouterEvent.Navigate)
                },
                online: i.isOnline,
                onLogoClick: function() {
                    (0, T.showChat)(i.isOnline, m.RouterEvent.Navigate), (0, C.reportTelemetry)(S.TelemetryName.LOGO_CLICK, !1, {
                        param1: m.Route.LABEL
                    })
                },
                orientation: a.widgetOrientation,
                padding: a.widgetPadding,
                fontSize: a.fontSize,
                fontFamily: a.fontFamily,
                fontType: a.fontType,
                textStyle: (0, C.getTextStyle)(a),
                color: a.widgetColor,
                color2: a.widgetColor2,
                ref: function(e) {
                    e && y.default.set(_.Component.LABEL, e)
                },
                showText: !0,
                text: (0, C.getTextProp)(i.isOnline, a),
                billRu: o,
                show: O,
                onLabelHover: T.onLabelHover,
                top100: r.enableTop100
            })))
        };
        O.propTypes = {
            appStore: f.default.shape({
                isOnline: f.default.bool.isRequired,
                route: f.default.string.isRequired
            }).isRequired,
            features: f.default.shape({
                apiInvitation: f.default.bool,
                enableTop100: f.default.any
            }).isRequired,
            userSettings: f.default.shape({
                fontSize: f.default.string,
                fontFamily: f.default.string,
                fontType: f.default.string,
                widgetOrientation: f.default.string.isRequired,
                widgetColor: f.default.string.isRequired,
                widgetColor2: f.default.string,
                widgetPadding: f.default.number.isRequired
            }).isRequired,
            billRu: f.default.bool.isRequired,
            labelBubble: f.default.number
        };
        var A = (0, d.connect)((function(e) {
            return {
                appStore: e.app,
                features: e.settings.features,
                labelBubble: e.settings.user.labelBubble,
                userSettings: e.settings.user,
                billRu: e.settings.system.billRu
            }
        }))(O);
        t.default = A
    }, 24247: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(86902),
            i = n(14310),
            o = n(20116),
            l = n(34074),
            u = n(39649),
            s = n(52424),
            c = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var d = c(n(51942)),
            f = c(n(5872)),
            p = c(n(87672)),
            h = c(n(18777)),
            v = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = R(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    i = Object.defineProperty && l;
                for (var o in e)
                    if ("default" !== o && Object.prototype.hasOwnProperty.call(e, o)) {
                        var u = i ? l(e, o) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, o, u) : r[o] = e[o]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            g = c(n(45697)),
            m = c(n(94184)),
            _ = n(21863),
            y = n(2982),
            b = c(n(43147)),
            E = c(n(57147)),
            T = c(n(22009)),
            C = c(n(53517)),
            S = c(n(80867)),
            w = c(n(40704)),
            O = c(n(48966)),
            A = n(69882),
            I = c(n(2559));

        function R(e) {
            if ("function" != typeof s) return null;
            var t = new s,
                n = new s;
            return (R = function(e) {
                return e ? n : t
            })(e)
        }

        function M(e, t) {
            var n = r(e);
            if (i) {
                var a = i(e);
                t && (a = o(a).call(a, (function(t) {
                    return l(e, t).enumerable
                }))), n.push.apply(n, a)
            }
            return n
        }

        function k(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? M(Object(n), !0).forEach((function(t) {
                    (0, p.default)(e, t, n[t])
                })) : u ? Object.defineProperties(e, u(n)) : M(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, l(n, t))
                }))
            }
            return e
        }
        var N = function(e) {
            var t, n, a, r, i = e.ad,
                o = e.background,
                l = e.designer,
                u = e.onButtonsClick,
                s = e.online,
                c = e.onLogoClick,
                g = e.orientation,
                R = e.padding,
                M = e.fontSize,
                N = e.fontFamily,
                x = e.fontType,
                P = e.textStyle,
                L = e.color,
                D = e.color2,
                j = e.text,
                B = e.billRu,
                F = e.show,
                U = e.onLabelHover,
                H = e.top100,
                W = (0, v.useState)(!1),
                G = (0, h.default)(W, 2),
                z = G[0],
                V = G[1],
                q = (0, v.useRef)(null),
                K = (0, v.useRef)(null),
                Y = (0, v.useRef)(null),
                X = (0, v.useState)(!1),
                Z = (0, h.default)(X, 2),
                J = Z[0],
                $ = Z[1],
                Q = (0, v.useState)(null),
                ee = (0, h.default)(Q, 2),
                te = ee[0],
                ne = ee[1];
            return (0, v.useLayoutEffect)((function() {
                var e = q.current;
                if (e) {
                    var t = (0, _.getPositionStyle)(q, g, R),
                        n = k(k({}, t), {}, {
                            background: o
                        });
                    if ((0, d.default)(e.style, n), !J) return $(!0);
                    (0, y.saveLabelPosition)(k(k({}, t), {}, {
                        offsetWidth: e.offsetWidth
                    })), ne(n)
                }
            }), [o, J, g, R, F, j, M, N, x]), F ? v.default.createElement("jdiv", {
                ref: q,
                className: (0, m.default)((t = {}, (0, p.default)(t, S.default.label, !0), (0, p.default)(t, S.default["_" + g], !0), (0, p.default)(t, S.default._designer, l || !1), (0, p.default)(t, S.default.__show, J), (0, p.default)(t, "notranslate", !0), t)),
                style: te,
                id: "jvlabelWrap"
            }, s ? null : v.default.createElement(w.default, {
                iconName: "envelope-offline",
                color: P.color,
                className: S.default.labelStatus
            }), v.default.createElement("jdiv", {
                ref: Y,
                className: S.default.hoverl,
                onClick: u,
                onMouseOver: U
            }, v.default.createElement("jdiv", {
                className: (0, m.default)((r = {}, (0, p.default)(r, S.default.omnichannel, !0), (0, p.default)(r, S.default[g], !0), r))
            }, v.default.createElement(C.default, {
                show: !0,
                referenceElement: Y
            }))), (a = (0, A.isTextEmojiDisabled)() ? {
                dangerouslySetInnerHTML: {
                    __html: j
                }
            } : null, v.default.createElement("jdiv", (0, f.default)({
                className: (0, m.default)((n = {}, (0, p.default)(n, S.default.text, !0), (0, p.default)(n, S.default.contentTransitionWrap, !0), (0, p.default)(n, S.default._offline, !s), (0, p.default)(n, S.default._noAd, !i), n)),
                style: P
            }, a), j)), i ? v.default.createElement("jdiv", {
                className: S.default.copy,
                onMouseOver: function() {
                    V(!0)
                },
                onMouseOut: function() {
                    V(!1)
                }
            }, v.default.createElement(T.default, {
                leafColor: s ? I.default.GREEN_80 : "#62666c",
                onClick: function() {
                    V(!1), c()
                },
                orientation: g,
                ru: B,
                textColor: P.color
            })) : null, H ? v.default.createElement(O.default, {
                onClick: c,
                isChat: !1
            }) : null, v.default.createElement("jdiv", {
                className: S.default.leafCont
            }, v.default.createElement(E.default, {
                backgroundColor: D || L,
                online: s,
                orientation: g
            })), i ? v.default.createElement("jdiv", {
                className: S.default.copyContainer
            }, v.default.createElement(b.default, {
                bg: o,
                logoHovered: z,
                refWrap: function() {
                    return q.current
                },
                ref: K
            })) : null) : null
        };
        N.propTypes = {
            ad: g.default.bool.isRequired,
            background: g.default.string.isRequired,
            designer: g.default.bool.isRequired,
            onButtonsClick: g.default.func,
            online: g.default.bool.isRequired,
            onLogoClick: g.default.func,
            orientation: g.default.string.isRequired,
            padding: g.default.number.isRequired,
            textStyle: g.default.any,
            fontSize: g.default.string,
            fontFamily: g.default.string,
            fontType: g.default.string,
            color: g.default.string,
            color2: g.default.string,
            text: g.default.string,
            billRu: g.default.bool,
            show: g.default.bool,
            onLabelHover: g.default.func,
            top100: g.default.bool
        };
        var x = N;
        t.default = x
    }, 19210: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.showChat = t.onLabelHover = t.hideInvitation = void 0;
        var r = a(n(51942)),
            i = n(26932),
            o = a(n(138)),
            l = n(65465),
            u = n(54415),
            s = n(83170),
            c = n(21476),
            d = n(47060),
            f = n(20361),
            p = n(44145);
        t.showChat = function(e, t, n) {
            if (i.appDispatchers.setAppIsFocused(!0), i.appDispatchers.setChatOpenByClient(!0), c.Router.next(t), i.transitionDispatchers.startTransition(f.ScriptName.OPEN_WIDGET), t !== d.RouterEvent.toCall) {
                e ? o.default.trackChatOpenedByClick() : o.default.trackOfflineFormOpenedByClick(), l.messageActions.addMessagesOnOpen(e);
                var a = (0, p.getSystemSettings)().botmode ? {
                    param4: 1
                } : {};
                n && (0, r.default)(a, n), u.Monitoring.telemetry(s.TelemetryName.WIDGET_CLICK, a)
            }
        };
        t.hideInvitation = function() {
            c.Router.next(d.RouterEvent.CloseWindow), u.Monitoring.telemetry(s.TelemetryName.INVITE_CLOSE)
        };
        t.onLabelHover = function() {
            u.Monitoring.telemetryOnce(s.TelemetryName.LABEL_BUTTONS_SHOW)
        }
    }, 21863: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.reportTelemetry = t.isAbTop100Enabled = t.getTextStyle = t.getTextProp = t.getPositionStyle = t.getBackgroundProp = t.getAnimationPostfix = t.getAdProp = void 0;
        var r = n(68403),
            i = n(80161),
            o = n(54415),
            l = a(n(27104)),
            u = n(44145),
            s = n(69882),
            c = n(69845),
            d = n(80598);
        t.getAnimationPostfix = function(e) {
            !i.RouterUtils.isChatMinAvailable() && e.widgetOrientation
        };
        t.getAdProp = function(e) {
            return !e && (0, r.showAd)()
        };
        t.getBackgroundProp = function(e) {
            return l.default.getGradientBg(e.widgetColor, e.widgetColor2)
        };
        t.getTextProp = function(e, t) {
            var n = e ? t.onlineWidgetLabel : t.offlineWidgetLabel;
            return (0, s.isTextEmojiDisabled)() ? (0, c.createEmoji)(n) : n
        };
        t.getTextStyle = function(e) {
            var t = e.fontType.split(" "),
                n = (0, d.getTextColor)(e.widgetFontColor);
            return {
                fontSize: e.fontSize + "px",
                fontFamily: e.fontFamily + ", Arial",
                fontWeight: "bold" === t[0] ? "bold" : null,
                fontStyle: "bold" !== t[0] ? t[0] : t[1] || null,
                color: n
            }
        };
        t.reportTelemetry = function(e, t, n) {
            t ? o.Monitoring.telemetryOnce(e, n) : o.Monitoring.telemetry(e, n)
        };
        t.getPositionStyle = function(e, t, n) {
            var a = e.current && e.current.offsetWidth,
                r = e.current && e.current.offsetHeight,
                i = "rotate(-90deg) translate(20px, 0)",
                o = Math.round(a / 2 - r / 2);
            if (!a || !r) return {};
            if ("bottom" === t) {
                if (0 === n) return {
                    left: "40px",
                    bottom: "0px"
                };
                if (50 === n) return {
                    right: "calc(50% - ".concat(o, "px)"),
                    bottom: "0px"
                };
                if (100 === n) return {
                    right: "30px",
                    bottom: "0px"
                }
            }
            if ("left" === t) {
                if (50 === n) return {
                    left: "-".concat(o, "px"),
                    top: "50%",
                    transform: i
                };
                if (100 === n) return {
                    left: "-".concat(o, "px"),
                    bottom: "".concat(o, "px"),
                    transform: i
                }
            }
            if ("right" === t) {
                if (50 === n) return {
                    right: "-".concat(o, "px"),
                    top: "50%",
                    transform: i
                };
                if (100 === n) return {
                    right: "-".concat(o, "px"),
                    bottom: "".concat(o, "px"),
                    transform: i
                }
            }
        };
        t.isAbTop100Enabled = function() {
            return !!(0, u.getFeatures)().enableTop100
        }
    }, 69733: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = v(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            u = n(88928),
            s = o(n(45697)),
            c = n(65787),
            d = n(65787),
            f = n(73549),
            p = n(47060),
            h = o(n(56461));

        function v(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (v = function(e) {
                return e ? n : t
            })(e)
        }
        var g = function(e) {
            var t = e.appStore,
                n = e.systemSettings,
                a = e.onShow,
                r = e.onClose,
                i = (0, c.getLabelInvitationAgent)(n);
            return (0, l.useEffect)((function() {
                t.route === p.Route.LABEL_INVITATION && a()
            }), [t.route, a]), l.default.createElement(f.Path, {
                paths: [p.Route.LABEL_INVITATION],
                name: "LabelInvitation",
                transition: "Fade",
                duration: 300,
                withMountTransition: !0,
                withUnmountTransition: !0,
                cheap: !0
            }, l.default.createElement(h.default, {
                show: !0,
                text: (0, c.getLabelInvitationText)(),
                displayName: i.display_name,
                avatarUrl: i.avatar_url,
                onOpen: function() {
                    (0, d.openInvitation)(t.isOnline)
                },
                onClose: function() {
                    (0, d.closeInvitation)(), r()
                },
                onLink: d.sendUrlClickTelemetry
            }))
        };
        g.propTypes = {
            appStore: s.default.shape({
                route: s.default.string,
                isOnline: s.default.bool.isRequired
            }).isRequired,
            systemSettings: s.default.any.isRequired,
            onClose: s.default.func,
            onShow: s.default.func
        };
        var m = (0, u.connect)((function(e) {
            return {
                appStore: e.app,
                callback: e.callback,
                features: e.settings.features,
                social: e.social,
                systemSettings: e.settings.system,
                userSettings: e.settings.user
            }
        }))(g);
        t.default = m
    }, 56461: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(87672)),
            u = o(n(18777)),
            s = _(n(98661)),
            c = o(n(45697)),
            d = o(n(94184)),
            f = n(52274),
            p = n(9335),
            h = o(n(59811)),
            v = o(n(29433)),
            g = _(n(40704));

        function m(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (m = function(e) {
                return e ? n : t
            })(e)
        }

        function _(e, t) {
            if (!t && e && e.__esModule) return e;
            if (null === e || "object" !== a(e) && "function" != typeof e) return {
                default: e
            };
            var n = m(t);
            if (n && n.has(e)) return n.get(e);
            var r = {},
                o = Object.defineProperty && i;
            for (var l in e)
                if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                    var u = o ? i(e, l) : null;
                    u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                }
            return r.default = e, n && n.set(e, r), r
        }
        var y = function(e) {
            var t, n, a = e.show,
                r = e.text,
                i = void 0 === r ? "" : r,
                o = e.displayName,
                c = e.avatarUrl,
                m = e.onOpen,
                _ = e.onClose,
                y = e.onLink,
                b = (0, s.useRef)(null),
                E = (0, p.useToggle)(!1),
                T = (0, u.default)(E, 2),
                C = T[0],
                S = T[1],
                w = (0, s.useState)(0),
                O = (0, u.default)(w, 2),
                A = O[0],
                I = O[1],
                R = i.length < f.PROACTIVE_TEXT_LIMIT,
                M = A > f.PROACTIVE_MAX_HEIGHT;
            (0, s.useLayoutEffect)((function() {
                if (b.current) {
                    var e = b.current.offsetHeight;
                    e > 0 && I(e)
                }
            }), [i]);
            var k = (0, d.default)((t = {}, (0, l.default)(t, v.default.popupWrap, !0), (0, l.default)(t, v.default.__show, a), t)),
                N = (0, d.default)((n = {}, (0, l.default)(n, v.default.popupBlock, !0), (0, l.default)(n, v.default.__show, !C && a), (0, l.default)(n, v.default.__short, R), (0, l.default)(n, v.default.__longText, M), n)),
                x = c ? {
                    backgroundImage: "url(".concat(c, ")")
                } : null;
            return s.default.createElement("jdiv", {
                className: k
            }, s.default.createElement("jdiv", {
                className: N,
                onClick: m
            }, i && s.default.createElement("jdiv", {
                className: v.default.avatar
            }, s.default.createElement("jdiv", {
                className: v.default.avatarImg,
                style: x
            }), s.default.createElement("jdiv", {
                className: v.default.agentName
            }, o)), s.default.createElement("jdiv", {
                className: v.default.closeBlock,
                onClick: function(e) {
                    e.preventDefault(), e.stopPropagation(), S(!0), setTimeout(_, 300)
                }
            }, s.default.createElement(g.default, {
                iconName: "icon-popup-close",
                color: "#959BA0",
                hoverColor: "#7D8999",
                className: v.default.closePopupIcon
            })), s.default.createElement("jdiv", {
                className: v.default.text
            }, s.default.createElement("jdiv", {
                className: v.default.textBox,
                ref: b
            }, s.default.createElement(h.default, {
                text: i,
                onLinkClick: y
            }))), M && s.default.createElement("jdiv", {
                className: v.default.moreIcon,
                style: {
                    backgroundImage: "url(".concat((0, g.getSvgBgIcon)("icon-more", "#a3aab5"), ")")
                }
            })))
        };
        y.propTypes = {
            show: c.default.bool.isRequired,
            text: c.default.string,
            displayName: c.default.string,
            avatarUrl: c.default.string,
            onOpen: c.default.func.isRequired,
            onClose: c.default.func.isRequired,
            onLink: c.default.func.isRequired
        };
        var b = y;
        t.default = b
    }, 65787: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.sendUrlClickTelemetry = t.openInvitation = t.getLabelInvitationText = t.getLabelInvitationAgent = t.getLabelInvitation = t.closeInvitation = void 0;
        var r = a(n(51942)),
            i = n(78692),
            o = n(54415),
            l = n(21476),
            u = n(47060),
            s = n(19210),
            c = n(83170),
            d = a(n(14264)),
            f = n(67597);
        t.getLabelInvitationText = function() {
            var e = d.default.getLastUnreadApiInvitation();
            return e && e.get("text") || ""
        };
        t.getLabelInvitation = function() {
            var e = d.default.getLastUnreadApiInvitation();
            return e ? e.toJSON() : null
        };
        t.getLabelInvitationAgent = function(e) {
            var t = d.default.getLastUnreadApiInvitation(),
                n = (0, r.default)({}, t && t.get("body"));
            return n.avatar_url && (n.avatar_url = (0, f.getAvatarUrl)(e.avatarUrl, n.avatar_url)), n
        };
        t.openInvitation = function(e) {
            (0, s.showChat)(e, u.RouterEvent.Navigate), i.ApiInvitationsManager.markInvitationsRead()
        };
        t.closeInvitation = function() {
            l.Router.next(u.RouterEvent.CloseWindow), o.Monitoring.telemetry(c.TelemetryName.INVITE_CLOSE)
        };
        t.sendUrlClickTelemetry = function() {
            i.ApiInvitationsManager.sendUrlClickTelemetry()
        }
    }, 26647: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = a(n(48646)),
            l = a(n(74379)),
            u = a(n(94184)),
            s = a(n(45697)),
            c = function(e) {
                var t, n = e.onPointerDown,
                    a = e.landscape,
                    s = e.isPointer,
                    c = function(e) {
                        n && n(e)
                    };
                return i.default.createElement("jdiv", {
                    className: (0, u.default)((t = {}, (0, r.default)(t, o.default.wrap, !0), (0, r.default)(t, o.default._extraPadding, l.default.getUserZoom() > 1), (0, r.default)(t, o.default._aboveAll, a), t)),
                    onPointerDown: function(e) {
                        return c(e)
                    },
                    onTouchStart: function(e) {
                        e.preventDefault(), s || c(e)
                    }
                }, a ? i.default.createElement("jdiv", {
                    className: o.default.image
                }) : null)
            };
        c.propTypes = {
            onPointerDown: s.default.func.isRequired,
            landscape: s.default.bool.isRequired,
            isPointer: s.default.bool.isRequired
        };
        var d = i.default.memo(c);
        t.default = d
    }, 57147: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(5872)),
            i = a(n(87672)),
            o = a(n(98661)),
            l = a(n(19383)),
            u = a(n(40704)),
            s = a(n(19955)),
            c = a(n(45697)),
            d = a(n(94184)),
            f = n(90361),
            p = a(n(2559)),
            h = function(e) {
                var t, n = e.backgroundColor,
                    a = e.onClick,
                    c = e.online,
                    h = e.orientation,
                    v = e["data-qa-id"];
                return s.default.mobileOrTablet() ? null : o.default.createElement("jdiv", (0, r.default)({
                    className: (0, d.default)((t = {}, (0, i.default)(t, l.default.leaf, !0), (0, i.default)(t, l.default["_" + h], !0), t)),
                    onClick: a || null
                }, (0, f.withLocator)(v)), o.default.createElement(u.default, {
                    color: n,
                    color2: c ? p.default.GREEN_80 : "#5e5f61",
                    iconName: c ? "leafBottom" : "leafBottomOffline",
                    className: l.default.cssLeaf
                }))
            };
        h.propTypes = {
            backgroundColor: c.default.string.isRequired,
            onClick: c.default.func,
            online: c.default.bool.isRequired,
            orientation: c.default.string.isRequired,
            "data-qa-id": c.default.string
        };
        var v = o.default.memo(h);
        t.default = v
    }, 22009: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = a(n(40704)),
            l = a(n(80047)),
            u = a(n(45697)),
            s = a(n(94184)),
            c = function(e) {
                var t, n, a = e.ru,
                    u = e.leafColor,
                    c = e.onClick,
                    d = e.orientation,
                    f = e.textColor;
                return i.default.createElement("jdiv", {
                    className: (0, s.default)((t = {}, (0, r.default)(t, l.default.logo, !0), (0, r.default)(t, l.default["_" + d], !0), t))
                }, i.default.createElement("jdiv", {
                    className: l.default.hoverBox,
                    onClick: function(e) {
                        c(e, !0)
                    }
                }), i.default.createElement(o.default, {
                    iconName: a ? "logo-jivosite" : "logo-jivochat",
                    color: f,
                    color2: u,
                    className: (0, s.default)((n = {}, (0, r.default)(n, l.default.logoIcon, !0), (0, r.default)(n, l.default.__ru, a), n))
                }), i.default.createElement("jdiv", {
                    className: l.default.fallback
                }))
            };
        c.propTypes = {
            ru: u.default.bool.isRequired,
            leafColor: u.default.string.isRequired,
            onClick: u.default.func.isRequired,
            orientation: u.default.string.isRequired,
            textColor: u.default.string.isRequired
        };
        var d = i.default.memo(c);
        t.default = d
    }, 59811: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(78580)),
            i = a(n(2991)),
            o = a(n(98661)),
            l = a(n(45697)),
            u = a(n(66214)),
            s = a(n(90860)),
            c = n(54415),
            d = n(83170),
            f = a(n(39281)),
            p = function e(t) {
                var n = t.text,
                    a = t.nodes,
                    l = t.onLinkClick,
                    p = n ? (0, u.default)(n) : a || [],
                    h = function(e) {
                        return o.default.createElement(s.default, {
                            text: e
                        })
                    },
                    v = function() {
                        return o.default.createElement("br", null)
                    },
                    g = function(t) {
                        return 1 === t.block.length && "image" === t.block[0].type ? (t.block[0].linkUrl = t.url, E(t.block[0])) : o.default.createElement("a", {
                            target: "_blank",
                            onClick: function() {
                                l ? l() : c.Monitoring.telemetry(d.TelemetryName.MARKDOWN_LINK_CLICK, {
                                    param1: t.url
                                })
                            },
                            rel: "nofollow noopener noreferrer",
                            href: t.url
                        }, o.default.createElement(e, {
                            nodes: t.block,
                            onLinkClick: l
                        }))
                    },
                    m = function(t) {
                        return o.default.createElement("strong", null, o.default.createElement(e, {
                            nodes: t.block
                        }))
                    },
                    _ = function(t) {
                        return o.default.createElement("em", null, o.default.createElement(e, {
                            nodes: t.block
                        }))
                    },
                    y = function(t) {
                        var n = t.bullet || null;
                        return o.default.createElement("jdiv", {
                            className: f.default.list
                        }, n, " ", o.default.createElement(e, {
                            nodes: t.block
                        }))
                    },
                    b = function(t) {
                        return o.default.createElement("s", null, o.default.createElement(e, {
                            nodes: t.block
                        }))
                    },
                    E = function(e) {
                        var t, n, a, i = e.linkUrl && ((0, r.default)(t = e.linkUrl).call(t, "youtube") || (0, r.default)(n = e.linkUrl).call(n, "youtu.be")),
                            l = !i && (0, r.default)(a = e.url).call(a, ".gif");
                        return o.default.createElement("a", {
                            href: e.linkUrl || e.url,
                            title: e.alt,
                            target: "_blank",
                            rel: "nofollow noopener noreferrer",
                            className: f.default.imageLink
                        }, o.default.createElement("img", {
                            src: e.url,
                            title: e.alt,
                            alt: e.alt,
                            loading: "lazy",
                            className: f.default.image
                        }), l ? o.default.createElement("jdiv", {
                            className: f.default.mediaType
                        }, "GIF") : null, i ? o.default.createElement("jdiv", {
                            className: f.default.mediaType
                        }, "Youtube") : null)
                    };
                return o.default.createElement(o.default.Fragment, null, (0, i.default)(p).call(p, (function(e) {
                    return function(e) {
                        switch (e.type) {
                            case "text":
                                return h(e.text);
                            case "break":
                                return v(e);
                            case "bold":
                                return m(e);
                            case "italic":
                                return _(e);
                            case "strike":
                                return b(e);
                            case "list":
                                return y(e);
                            case "link":
                                return g(e);
                            case "image":
                                return E(e);
                            default:
                                return null
                        }
                    }(e)
                })))
            };
        p.propTypes = {
            text: l.default.string,
            nodes: l.default.any,
            onLinkClick: l.default.func
        };
        var h = p;
        t.default = h
    }, 90860: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(3649)),
            i = a(n(2991)),
            o = a(n(59036)),
            l = a(n(98661)),
            u = a(n(45697)),
            s = a(n(3501)),
            c = n(66488),
            d = function(e) {
                var t = e.text,
                    n = function e(t) {
                        var n = [],
                            a = t.match(/\r|\n/);
                        if (a) {
                            var i = (0, r.default)(t).call(t, 0, a.index),
                                l = (0, r.default)(t).call(t, a.index + 1);
                            n.push({
                                text: i,
                                type: "text"
                            }), n.push({
                                type: "br"
                            }), n.push.apply(n, (0, o.default)(e(l)))
                        } else n.push({
                            text: t,
                            type: "text"
                        });
                        return n
                    },
                    a = function(e) {
                        if ("br" === e.type) return [e];
                        var t = [],
                            n = [];
                        if ((0, c.replace)(e.text, (function(e) {
                                var t = (0, c.toCodePoint)(e);
                                n.push({
                                    icon: e,
                                    code: t
                                })
                            })), n.length > 0) {
                            var a = e.text;
                            n.forEach((function(e) {
                                var n = a.indexOf(e.icon);
                                t.push({
                                    text: (0, r.default)(a).call(a, 0, n),
                                    type: "text"
                                }), t.push({
                                    type: "emoji",
                                    icon: e.icon,
                                    code: e.code
                                }), a = a.replace(e.icon, ""), a = (0, r.default)(a).call(a, n)
                            })), t.push({
                                text: a,
                                type: "text"
                            })
                        } else t.push(e);
                        return t
                    },
                    u = function(e) {
                        return l.default.createElement(l.default.Fragment, null, e)
                    },
                    d = function() {
                        return l.default.createElement(l.default.Fragment, null, l.default.createElement("br", null))
                    },
                    f = function(e) {
                        var t = e.code;
                        return l.default.createElement(l.default.Fragment, null, l.default.createElement(s.default, {
                            icon: t,
                            className: "emojiMessages"
                        }))
                    },
                    p = function(e) {
                        var t = [];
                        return n(e, t).forEach((function(e) {
                            t.push.apply(t, (0, o.default)(a(e)))
                        })), t
                    }(t);
                return l.default.createElement(l.default.Fragment, null, (0, i.default)(p).call(p, (function(e) {
                    return function(e) {
                        switch (e.type) {
                            case "text":
                            default:
                                return u(e.text);
                            case "br":
                                return d();
                            case "emoji":
                                return f(e)
                        }
                    }(e)
                })))
            };
        d.propTypes = {
            text: u.default.string,
            children: u.default.oneOfType([u.default.arrayOf(u.default.node), u.default.node])
        };
        var f = d;
        t.default = f
    }, 39906: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = a(n(94184)),
            l = a(n(45697)),
            u = n(67597),
            s = n(25095),
            c = a(n(87736)),
            d = a(n(51120)),
            f = a(n(4867)),
            p = a(n(99493)),
            h = function(e) {
                var t, n, a = e.messages,
                    l = e.children,
                    f = e.width,
                    h = e.isPreview,
                    v = void 0 !== h && h,
                    g = (0, s.useEnhanced)(a[0]),
                    m = g.ref,
                    _ = g.textSize,
                    y = g.color,
                    b = g.avatarUrl,
                    E = g.agent,
                    T = g.isAgent,
                    C = g.isBot,
                    S = g.isIos,
                    w = g.isMobile,
                    O = g.isScrollLower,
                    A = g.disableBotLabel,
                    I = null == E ? void 0 : E.name,
                    R = null == E ? void 0 : E.avatarUrl,
                    M = R ? (0, u.getAvatarApiUrl)(b, R) : "",
                    k = (0, o.default)((t = {}, (0, r.default)(t, p.default.main, !0), (0, r.default)(t, p.default._mobile, w), (0, r.default)(t, p.default["__" + y], !1), (0, r.default)(t, p.default._transparent, v), (0, r.default)(t, p.default._noagent, !T), t)),
                    N = (0, o.default)((n = {}, (0, r.default)(n, p.default.avatarBox, !0), (0, r.default)(n, p.default.__isAnimated, O), n)),
                    x = {
                        width: f,
                        "-webkit-text-size-adjust": S ? _ : null
                    };
                return i.default.createElement("jdiv", {
                    ref: m,
                    style: x,
                    className: k
                }, (C || I) && i.default.createElement("jdiv", {
                    className: p.default.agentName
                }, C ? i.default.createElement(i.default.Fragment, null, I || "Bot", A ? null : i.default.createElement("jdiv", {
                    className: p.default.botBadge
                }, "bot")) : I), i.default.createElement("jdiv", {
                    className: N,
                    title: I
                }, C ? i.default.createElement(d.default, {
                    url: M
                }) : i.default.createElement(c.default, {
                    dark: !0,
                    expanded: !1,
                    inChat: !0,
                    isMobile: w,
                    inCall: !1,
                    url: M
                })), i.default.createElement("jdiv", {
                    className: p.default.content
                }, l))
            };
        h.propTypes = {
            messages: l.default.arrayOf(l.default.instanceOf(f.default)).isRequired,
            children: l.default.node.isRequired,
            width: l.default.number,
            isPreview: l.default.bool
        };
        var v = h;
        t.default = v
    }, 5107: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = a(n(45697)),
            l = a(n(94184)),
            u = n(25095),
            s = a(n(4867)),
            c = a(n(99493));

        function d(e) {
            var t, n = e.messages,
                a = e.children,
                o = e.isPreview,
                s = void 0 !== o && o,
                d = (0, u.useEnhanced)(n[0]),
                f = d.textSize,
                p = d.color,
                h = d.isIos,
                v = d.isMobile,
                g = (0, l.default)((t = {}, (0, r.default)(t, c.default.main, !0), (0, r.default)(t, c.default._mobile, v), (0, r.default)(t, c.default["__" + p], !1), (0, r.default)(t, c.default._transparent, s), (0, r.default)(t, c.default._noagent, !0), t)),
                m = h ? {
                    "-webkit-text-size-adjust": f
                } : null;
            return i.default.createElement("jdiv", {
                style: m,
                className: g
            }, i.default.createElement("jdiv", {
                className: c.default.content
            }, a))
        }
        d.propTypes = {
            messages: o.default.arrayOf(o.default.instanceOf(s.default)).isRequired,
            children: o.default.node.isRequired,
            isPreview: o.default.bool
        };
        var f = d;
        t.default = f
    }, 25095: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.useEnhanced = function(e) {
            var t = e.toJSON(),
                n = (0, i.useSelector)(d.selectLastMessage),
                a = (0, i.useSelector)(c.selectAvatarUrl),
                g = (0, i.useSelector)(c.selectBubbleColor),
                m = (0, i.useSelector)(c.selectDisableBotLabel),
                _ = (0, i.useSelector)((function(e) {
                    return (0, s.selectBotById)(e, +t.from_id)
                })),
                y = (0, i.useSelector)((function(e) {
                    return (0, u.selectAgentById)(e, +t.from_id)
                })),
                b = (0, r.useRef)(null),
                E = (0, f.useListenedStyle)("textSize"),
                T = t.type === l.MessageType.INVOICE ? "white" : g,
                C = t.from === l.MessageInitiator.FORM,
                S = t.from_id || C,
                w = h.default.ios(),
                O = h.default.mobileOrTablet();
            return {
                ref: b,
                textSize: E,
                color: T,
                avatarUrl: a,
                agent: C ? _ : t.type === l.MessageType.PROACTIVE ? null !== (A = t.body) && void 0 !== A && A.agent_id ? {
                    name: t.body.display_name,
                    avatarUrl: t.body.avatar_url
                } : p.default.toReduxFormat() : y,
                isAgent: S,
                isBot: C,
                isIos: w,
                isMobile: O,
                isScrollLower: function() {
                    var e = b.current,
                        t = v.default.getComponent(o.Component.SCROLL_CONTAINER);
                    if (e && t && n) {
                        var a = n.type,
                            r = n.from,
                            i = e.nextSibling,
                            u = a === l.MessageType.MESSAGE,
                            s = r === l.MessageInitiator.AGENT || r === l.MessageInitiator.FORM;
                        return !i && u && s && t.animated
                    }
                    return !1
                }(),
                disableBotLabel: m
            };
            var A
        };
        var r = n(98661),
            i = n(88928),
            o = n(47245),
            l = n(81152),
            u = n(99258),
            s = n(14376),
            c = n(87692),
            d = n(66311),
            f = n(77389),
            p = a(n(26754)),
            h = a(n(19955)),
            v = a(n(75686))
    }, 96150: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = a(n(94184)),
            l = a(n(45697)),
            u = n(20738),
            s = a(n(4867)),
            c = a(n(8292));

        function d(e) {
            var t, n = e.messages,
                a = e.children,
                l = (0, u.useEnhanced)(n[0]),
                s = l.textSize,
                d = l.color,
                f = l.isIos,
                p = l.isMobile,
                h = (0, o.default)((t = {}, (0, r.default)(t, c.default.main, !0), (0, r.default)(t, c.default._mobile, p), (0, r.default)(t, c.default["__" + d], !0), t)),
                v = f ? {
                    "-webkit-text-size-adjust": s
                } : null;
            return i.default.createElement("jdiv", {
                style: v,
                className: h
            }, i.default.createElement("jdiv", {
                className: c.default.content
            }, a))
        }
        d.propTypes = {
            messages: l.default.oneOfType([l.default.instanceOf(s.default).isRequired, l.default.array]),
            children: l.default.node.isRequired
        };
        var f = d;
        t.default = f
    }, 20738: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.useEnhanced = function(e) {
            var t = e.toJSON(),
                n = (0, r.useSelector)(o.selectBubbleColor),
                a = t.type === i.MessageType.INVOICE ? "white" : n,
                s = (0, l.useListenedStyle)("textSize"),
                c = u.default.ios(),
                d = u.default.mobileOrTablet();
            return {
                textSize: s,
                color: a,
                isIos: c,
                isMobile: d
            }
        };
        var r = n(88928),
            i = n(81152),
            o = n(87692),
            l = n(77389),
            u = a(n(19955))
    }, 46544: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = _;
        var r = a(n(20455)),
            i = a(n(5872)),
            o = a(n(80122)),
            l = a(n(98661)),
            u = a(n(45697)),
            s = a(n(94184)),
            c = n(90906),
            d = n(81152),
            f = a(n(30295)),
            p = a(n(4867)),
            h = a(n(56460)),
            v = a(n(40704)),
            g = a(n(84726)),
            m = ["className", "colorSet", "message", "isRenderStatus"];

        function _(e) {
            var t = e.className,
                n = e.colorSet,
                a = e.message,
                r = e.isRenderStatus,
                u = void 0 !== r && r,
                _ = (0, o.default)(e, m),
                y = a instanceof p.default ? a.toJSON() : a,
                b = y.status,
                E = y.created_ts,
                T = y.updated_ts,
                C = y.type,
                S = y.body,
                w = (0, s.default)(h.default.baseBox, t),
                O = (0, f.default)(T || E, "H:MM"),
                A = (0, c.defineIcon)({
                    colorSet: n,
                    status: b,
                    type: C === d.MessageType.MEDIA ? S.status : C
                });
            return l.default.createElement("jdiv", (0, i.default)({
                className: w
            }, _), T ? (0, g.default)("messageEdit") + " " : null, O, u && A && l.default.createElement(v.default, {
                iconName: A.iconName,
                color: A.iconColor,
                className: h.default.icon
            }))
        }
        _.propTypes = {
            className: u.default.string.isRequired,
            colorSet: u.default.oneOf((0, r.default)(c.COLORS_SET)).isRequired,
            message: u.default.oneOfType([u.default.instanceOf(p.default), u.default.object]).isRequired,
            isRenderStatus: u.default.bool
        }
    }, 90906: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.COLORS_SET = void 0, t.defineIcon = function(e) {
            var t, n, a, i = e.colorSet,
                s = e.status,
                c = e.type;
            if (c === o.MessageType.TEMPORARY || c === o.MediaStatus.ERROR || c === o.MediaStatus.EXPIRED) return;
            var d = function(e) {
                    return function(t) {
                        return {
                            iconName: e,
                            iconColor: t
                        }
                    }
                },
                f = d("check"),
                p = d("checks"),
                h = d("clock");
            if (!s) return h(i === l.LIGHT ? u.DARK_GREY : u.LIGHT_GREY);
            return (a = {}, (0, r.default)(a, l.LIGHT, (t = {}, (0, r.default)(t, o.MessageStatus.SENT, f(u.DARK_GREY)), (0, r.default)(t, o.MessageStatus.DELIVERED, p(u.GREEN)), (0, r.default)(t, o.MessageStatus.READ, p(u.GREEN)), t)), (0, r.default)(a, l.DARK, (n = {}, (0, r.default)(n, o.MessageStatus.SENT, f(u.LIGHT_GREY)), (0, r.default)(n, o.MessageStatus.DELIVERED, p(u.WHITE)), (0, r.default)(n, o.MessageStatus.READ, p(u.WHITE)), n)), a)[i][s]
        };
        var r = a(n(87672)),
            i = a(n(2559)),
            o = n(81152),
            l = {
                LIGHT: "LIGHT",
                DARK: "DARK"
            };
        t.COLORS_SET = l;
        var u = {
            LIGHT_GREY: "#FFF9",
            DARK_GREY: "#737B83",
            GREEN: i.default.GREEN_80,
            WHITE: i.default.WHITE_100
        }
    }, 66440: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(86902),
            i = n(14310),
            o = n(20116),
            l = n(34074),
            u = n(39649),
            s = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var c = s(n(59340)),
            d = s(n(47302)),
            f = s(n(5872)),
            p = s(n(87672)),
            h = s(n(26394)),
            v = s(n(69198)),
            g = s(n(51379)),
            m = s(n(214)),
            _ = s(n(66380)),
            y = s(n(98661)),
            b = s(n(54720)),
            E = s(n(19955)),
            T = s(n(1039)),
            C = n(68403),
            S = n(69882),
            w = n(67597),
            O = n(90991),
            A = s(n(91275)),
            I = s(n(23116)),
            R = s(n(16586)),
            M = s(n(14264)),
            k = s(n(26754)),
            N = s(n(14762)),
            x = n(88928),
            P = s(n(87736)),
            L = n(21476),
            D = n(47060),
            j = s(n(75686)),
            B = n(47245),
            F = s(n(67239)),
            U = s(n(4855)),
            H = n(65465),
            W = s(n(84726)),
            G = n(81152),
            z = n(52028),
            V = n(54415),
            q = n(83170),
            K = n(81722),
            Y = n(43025),
            X = n(82726),
            Z = s(n(51120)),
            J = s(n(51149)),
            $ = s(n(70043)),
            Q = n(44145),
            ee = s(n(36672)),
            te = s(n(19367)),
            ne = n(47713);

        function ae(e, t) {
            var n = r(e);
            if (i) {
                var a = i(e);
                t && (a = o(a).call(a, (function(t) {
                    return l(e, t).enumerable
                }))), n.push.apply(n, a)
            }
            return n
        }

        function re(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? ae(Object(n), !0).forEach((function(t) {
                    (0, p.default)(e, t, n[t])
                })) : u ? Object.defineProperties(e, u(n)) : ae(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, l(n, t))
                }))
            }
            return e
        }

        function ie(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, _.default)(e);
                if (t) {
                    var i = (0, _.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, m.default)(this, n)
            }
        }
        var oe = U.default.name("MessagesMain"),
            le = E.default.mobileOrTablet() || (0, S.isChatPage)(),
            ue = function(e) {
                (0, g.default)(n, e);
                var t = ie(n);

                function n(e) {
                    var a;
                    return (0, h.default)(this, n), (a = t.call(this, e)).state = {
                        messagesGroups: (0, X.getMessagesGroup)(),
                        lastEdit: null,
                        hideScrollButton: !0,
                        bottom: le ? 50 : 106,
                        diff: 0,
                        lastAgent: null,
                        show: !1,
                        showMore: !1,
                        forceUpdate: !1,
                        widgetHeight: e.widgetHeight
                    }, a._container = null, a._scroll = null, a._lastHeight = 0, a
                }
                return (0, v.default)(n, [{
                    key: "updateMessages",
                    value: function(e, t) {
                        var n = this;
                        oe.log("updateMessages", e, t), t && (0, X.cleanTempProactive)(), this.setState({
                            messagesGroups: (0, X.getMessagesGroup)(),
                            lastEdit: e ? (0, c.default)(e.toJSON()) : null,
                            lastAgent: (0, K.getLastAgent)()
                        }, (function() {
                            if (n.state.show) {
                                var t = e && e.toJSON();
                                if ((0, K.setLastAgentScroll)(n._scroll)) return n.checkShowBadge(), void oe.log("ignore anims and scroll to bottom");
                                var a = t && t.type === G.MessageType.PROACTIVE,
                                    r = M.default.getFirstMessage();
                                if (a && r && !r.get("msg_id") && r.get("type") == G.MessageType.PROACTIVE || n._scroll && n._scroll.getIgnore()) oe.log("Ignore scroll for proactive update");
                                else {
                                    if ((0, K.isProactivePrechat)()) return oe.log("Need ignore scroll for prechat and big proactives"), void(n._scroll && n._scroll.scrollToTop());
                                    if (z.isDesignerEditor) n.scrollToBottom();
                                    else if (n._scroll && n._scroll.view && !n._scroll.hasScroll() && t && t.from == G.MessageInitiator.FORM && t.body && t.body.inited) oe.log("No scroll, animate form");
                                    else {
                                        var i = n._scroll && n._scroll.view && n._scroll.getScrollDiff();
                                        0 === i && n._container && (i = n._container.clientHeight - n._lastHeight), n._lastHeight = n._container.clientHeight, oe.log("diff", i, n._lastHeight), i && i < 600 && i !== n._lastHeight ? (i < 0 && (i = 0), n.setState({
                                            diff: i >> 0
                                        })) : (oe.log("scroll bottom on update message"), n.scrollToBottom())
                                    }
                                }
                            }
                        })), this.readMessages()
                    }
                }, {
                    key: "shouldComponentUpdate",
                    value: function(e, t) {
                        return !(0, x.shallowEqual)(e, this.props) || !(0, x.shallowEqual)(t, this.state)
                    }
                }, {
                    key: "componentDidMount",
                    value: function() {
                        var e = this;
                        oe.log("mount"), this.showMessages(), E.default.mobileOrTablet() && L.Router.isChatInputRoute(L.Router.getCurrentRoute()) && this.readMessages();
                        var t = this.updateMessages.bind(this);
                        M.default.on("create", (function(n, a) {
                            t && t.call(e, n, a), e.getBottom(e.props.inputHeight);
                            var r = n && n.toJSON();
                            r && r.from === G.MessageInitiator.CLIENT && (e._scroll && e._scroll.setIgnore(!1), e.setState({
                                showMore: !1,
                                showBadge: !1
                            })), r && r.from === G.MessageInitiator.AGENT && e.state.showMore && e.needShowMore() && (0, K.setLastAgentScroll)(e._scroll) && e.checkShowBadge()
                        }));
                        var n = (0, O.debounce)(this.updateMessages.bind(this), 200);
                        M.default.on("update", n.bind(this)), N.default.on("update", (function() {
                            e.setState({
                                messagesGroups: (0, X.getMessagesGroup)(),
                                lastAgent: (0, K.getLastAgent)(),
                                forceUpdate: !e.state.forceUpdate
                            })
                        })), L.Router.on("route_change", (function(t) {
                            L.Router.isChatInputRoute(L.Router.getPrevRoute()) || (e.showMessages(), e.readMessages(), le && t === D.Route.LABEL && e._scroll && e._scroll.setIgnore(!1))
                        })), this.on(I.default, {
                            update: function() {
                                e.readMessages()
                            }
                        }), le || this.readMessages(), this._container = j.default.get(B.Component.MESSAGES_CONTAINER), this._scroll = j.default.getComponent(B.Component.SCROLL_CONTAINER), !T.default.maintenance && (0, K.isOfflineCanSend)() && 0 === M.default.getFormMessage().length && H.messageActions.startFormSequence((0, W.default)("offlineIntroductionText")), T.default.maintenance && H.messageActions.addMaintenanceMessage(), (0, z.designerBind)("setBubbleColor", (function() {
                            e.forceUpdate()
                        }))
                    }
                }, {
                    key: "componentDidUpdate",
                    value: function() {
                        this.props.widgetHeight !== this.state.widgetHeight && (this.checkShowBadge(), this.setState({
                            widgetHeight: this.props.widgetHeight
                        }))
                    }
                }, {
                    key: "showMessages",
                    value: function() {
                        var e = this,
                            t = j.default.getComponent(B.Component.SCROLL_CONTAINER);
                        t && this.base && setTimeout((function() {
                            e.setState({
                                show: !0
                            }), t && t.setIgnore(!1), E.default.mobileOrTablet() ? !(0, K.setLastAgentScroll)(e._scroll) && e.scrollToBottom() : e.scrollToBottom()
                        }), 50)
                    }
                }, {
                    key: "checkShowBadge",
                    value: function() {
                        oe.log("checkShowBadge");
                        var e = M.default.getAgentMessages().length > 1 || M.default.getMessagesByType(G.MessageType.PRECHAT).length > 0,
                            t = this._scroll && this.needShowMore() && this._scroll.getIgnore();
                        this.setState({
                            showMore: t,
                            showBadge: e
                        })
                    }
                }, {
                    key: "getBottom",
                    value: function(e) {
                        var t = this,
                            n = le ? 56 : 106,
                            a = e || n;
                        a < n && (a = n), le && (0, C.showAd)() && (a += 20);
                        var r = !(!le || !this._scroll);
                        return this.state.bottom !== a && this.setState({
                            bottom: a
                        }, (function() {
                            r && t._scroll.scrollToBottom()
                        })), a
                    }
                }, {
                    key: "scrollToBottom",
                    value: function() {
                        this._scroll && this._scroll.view && (oe.log("scrollToBottom"), this._scroll.getIgnore() ? oe.log("Ignore scroll to bottom, input focused.") : this._scroll.scrollToBottom())
                    }
                }, {
                    key: "readMessages",
                    value: function() {
                        if (I.default.isActive) {
                            var e = [];
                            M.default.getUnreadMessage().forEach((function(t) {
                                t.set("status", G.MessageStatus.READ);
                                var n = t.get("msg_id");
                                null !== n && e.push(n)
                            }));
                            var t = M.default.getOfflineUnreadProactive();
                            t.length && t.forEach((function(e) {
                                e.set("status", G.MessageStatus.READ)
                            })), e.length && this.isChatInput() && A.default.agentMessageRead(e)
                        }
                    }
                }, {
                    key: "isChatInput",
                    value: function() {
                        return L.Router.isChatInputRoute(L.Router.getCurrentRoute())
                    }
                }, {
                    key: "scrollToForm",
                    value: function() {
                        var e = (0, X.getScrollToFormState)(this.props.isOnline);
                        e && (this.scrollToBottom(), this.setState(re(re({}, e), {}, {
                            lastAgent: (0, K.getLastAgent)()
                        })))
                    }
                }, {
                    key: "renderScrollToForm",
                    value: function() {
                        var e = this,
                            t = M.default.getFormMessage();
                        if (!this.props.isIntroduced && t.length) return y.default.createElement(ee.default, {
                            hide: this.state.hideScrollButton,
                            onClick: this.scrollToForm.bind(this),
                            icon: "1f44b-1f3fb",
                            text: (0, W.default)("lblIntroduceRequest")
                        });
                        var n = M.default.getMessagesByType(G.MessageType.RATE_FORM);
                        if (n.length) {
                            var a = n[0].get("body.submited"),
                                r = n[0].get("body.closed");
                            return y.default.createElement(ee.default, {
                                hide: !!(this.state.hideScrollButton || a || r),
                                onClick: function(t) {
                                    t.preventDefault(), n[0].set("created_ts", (new Date).getTime()), (0, d.default)(M.default).call(M.default), e.scrollToBottom()
                                },
                                icon: "270d-1f3fb",
                                text: (0, W.default)("rateFormTitle")
                            })
                        }
                    }
                }, {
                    key: "needShowMore",
                    value: function() {
                        return !!this._scroll && (this._scroll && this._scroll.base && this._scroll.getScrollDiff() >= 40 && 0 != this._scroll.getScrollDiff())
                    }
                }, {
                    key: "onScrollEnd",
                    value: function() {
                        var e = {};
                        this.needShowMore() ? e.showMore = !0 : (e.showMore = !1, e.showBadge = !1);
                        var t = M.default.getFormMessage();
                        if (!this.props.isIntroduced && t.length) {
                            var n = j.default.get(B.Component.CHAT_INTRODUCE);
                            if (n) {
                                var a = (0, Y.isScrolledIntoView)(n, this._scroll);
                                a !== this.state.hideScrollButton && (e.hideScrollButton = a)
                            }
                            this.setState(e)
                        } else {
                            var r = M.default.getMessagesByType(G.MessageType.RATE_FORM),
                                i = j.default.get(B.Component.RATE_FORM);
                            if (r.length && i) {
                                var o = (0, Y.isScrolledIntoView)(i, this._scroll);
                                e.hideScrollButton = o
                            }
                            this.setState(e)
                        }
                    }
                }, {
                    key: "onMoreClick",
                    value: function() {
                        this._scroll && (this._scroll.setIgnore(!1), this.scrollToBottom()), V.Monitoring.telemetry(q.TelemetryName.MORE_BTN_CLICK, {
                            param1: (0, Q.getProactive)().text ? 1 : 0
                        })
                    }
                }, {
                    key: "isShowAvatar",
                    value: function() {
                        return !!(this._scroll && this._scroll.animated > 0 && (0, K.getLastAgent)())
                    }
                }, {
                    key: "onTransitionEnd",
                    value: function(e, t) {
                        var n = this;
                        "transform" === e.propertyName && 0 !== t && (oe.log("Container animation end:", t), this.setState({
                            diff: 0
                        }, (function() {
                            n.scrollToBottom()
                        })), this._scroll.animated = !1)
                    }
                }, {
                    key: "getOffset",
                    value: function() {
                        var e = null;
                        return this._scroll && (e = (0, Y.isNoScroll)(this._scroll, this._container) ? "".concat(-1 * this.state.diff || 0, "px") : null), e
                    }
                }, {
                    key: "getRenderData",
                    value: function() {
                        var e = this.getOffset();
                        return this._scroll && (this._scroll.animated = this.state.diff), {
                            styles: {
                                main: [{
                                    main: !0,
                                    __mobile: le,
                                    __ad: (0, C.showAd)()
                                }, {
                                    bottom: "".concat(this.getBottom(this.props.inputHeight), "px"),
                                    opacity: 1
                                }],
                                wrap: [{
                                    wrap: !0
                                }],
                                container: [{
                                    container: !0,
                                    __tablet: E.default.tablet() || E.default.desktop() && (0, S.isChatPage)()
                                }, {
                                    transform: this.state.diff ? "translateY(".concat(-1 * this.state.diff, "px)") : "translateY(0)",
                                    bottom: e || 0,
                                    transition: 0 === this.state.diff ? "none" : "transform 0.2s cubic-bezier(0, 0.76, 0.28, 1)"
                                }],
                                avatarShadow: [{
                                    avatarShadow: !0,
                                    __mobile: le,
                                    __show: this.isShowAvatar()
                                }, {
                                    marginBottom: this.getBottom(this.props.inputHeight)
                                }]
                            },
                            style: F.default
                        }
                    }
                }, {
                    key: "renderData",
                    value: function(e, t) {
                        var n = this,
                            a = k.default.bot_id > 0,
                            r = k.default.avatar_url ? (0, w.getAvatarApiUrl)(T.default.avatar_url, k.default.avatar_url) : null;
                        return y.default.createElement("jdiv", t.main, this.renderScrollToForm(), y.default.createElement("jdiv", (0, f.default)({}, t.wrap, (0, ne.onClickHandler)((function(e) {
                            (0, X.onWrapTouch)(e)
                        })), {
                            ref: function(e) {
                                n._main = e
                            }
                        }), y.default.createElement($.default, {
                            messagesGroups: this.state.messagesGroups,
                            onMessagesAnimationEnd: function(e, t) {
                                n.onTransitionEnd(e, t)
                            },
                            onScrollEnd: (0, O.debounce)(this.onScrollEnd.bind(this), 200),
                            diff: this.state.diff,
                            bottomOffset: this.getOffset()
                        }), 1 != T.default.typing_insight || le ? null : y.default.createElement(R.default, {
                            show: this.props.agentTyping,
                            isMobile: le
                        }), (0, C.showAd)() && !le ? y.default.createElement(te.default, {
                            type: "chat"
                        }) : null, y.default.createElement("jdiv", t.avatarShadow, a ? y.default.createElement(Z.default, {
                            url: r
                        }) : y.default.createElement(P.default, {
                            inChat: !0,
                            dark: !0,
                            isMobile: E.default.mobileOrTablet(),
                            isTablet: E.default.tablet(),
                            url: r
                        })), y.default.createElement(J.default, {
                            color: T.default.bubble_color,
                            show: this.state.showMore,
                            showBadge: this.state.showBadge,
                            onClick: this.onMoreClick.bind(this)
                        })))
                    }
                }]), n
            }(b.default);
        t.default = ue
    }, 70043: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r, i = a(n(2991)),
            o = a(n(87672)),
            l = a(n(98661)),
            u = n(88928),
            s = a(n(45697)),
            c = a(n(94184)),
            d = n(47245),
            f = a(n(88155)),
            p = a(n(6131)),
            h = a(n(19955)),
            v = a(n(75686)),
            g = n(68403),
            m = n(90991),
            _ = n(81152),
            y = a(n(68168)),
            b = a(n(68531)),
            E = a(n(48333)),
            T = a(n(31385)),
            C = a(n(55961)),
            S = a(n(12822)),
            w = a(n(6313)),
            O = a(n(67250)),
            A = a(n(79425)),
            I = a(n(60936)),
            R = a(n(25117)),
            M = a(n(18277)),
            k = a(n(45482)),
            N = a(n(95066)),
            x = a(n(26370)),
            P = a(n(67239)),
            L = a(n(4855)),
            D = (r = {}, (0, o.default)(r, _.MessageType.MESSAGE, b.default), (0, o.default)(r, _.MessageType.PROACTIVE, b.default), (0, o.default)(r, _.MessageType.SEPARATOR, y.default), (0, o.default)(r, _.MessageType.INVOICE, E.default), (0, o.default)(r, _.MessageType.COBROWSE, T.default), (0, o.default)(r, _.MessageType.SYSTEM, C.default), (0, o.default)(r, _.MessageType.INVITE, C.default), (0, o.default)(r, _.MessageType.PREFORM, C.default), (0, o.default)(r, _.MessageType.SOCIAL, S.default), (0, o.default)(r, _.MessageType.MEDIA, O.default), (0, o.default)(r, _.MessageType.EMAIL, w.default), (0, o.default)(r, _.MessageType.FORM, A.default), (0, o.default)(r, _.MessageType.TEMPORARY, I.default), (0, o.default)(r, _.MessageType.FOR_TEST, M.default), (0, o.default)(r, _.MessageType.PRECHAT, R.default), (0, o.default)(r, _.MessageType.BOT, b.default), (0, o.default)(r, _.MessageType.LISTPICKER, k.default), (0, o.default)(r, _.MessageType.WEB_RTC_CALL, N.default), (0, o.default)(r, _.MessageType.RATE_FORM, x.default), r),
            j = L.default.name("MessagesPure"),
            B = function(e) {
                var t, n = e.messagesGroups,
                    a = e.onMessagesAnimationEnd,
                    r = e.onScrollEnd,
                    u = e.diff,
                    s = e.bottomOffset,
                    y = h.default.mobileOrTablet() ? 40 : 30,
                    b = (0, c.default)((t = {}, (0, o.default)(t, P.default.container, !0), (0, o.default)(t, P.default.__tablet, h.default.tablet()), t));
                return l.default.createElement(f.default, {
                    onScrollStop: (0, m.debounce)(r, 200),
                    className: P.default.scroll,
                    autoHide: !0,
                    scrollMarginTop: (0, g.showAd)() ? y : 0,
                    railClass: P.default.rail,
                    ref: function(e) {
                        e && v.default.set(d.Component.SCROLL_CONTAINER, e)
                    }
                }, l.default.createElement("jdiv", {
                    className: b,
                    onTransitionEnd: function(e) {
                        a(e, u)
                    },
                    ref: function(e) {
                        e && v.default.set(d.Component.MESSAGES_CONTAINER, e)
                    },
                    style: {
                        transform: u ? "translateY(".concat(-1 * u, "px)") : "translateY(0)",
                        bottom: s || 0,
                        transition: 0 === u ? "none" : "transform 0.2s cubic-bezier(0, 0.76, 0.28, 1)"
                    }
                }, (0, i.default)(n).call(n, (function(e, t) {
                    var n = e[0] instanceof p.default ? e[0].toJSON() : e[0];
                    if (n.type == _.MessageType.MEDIA && n.body && n.from_id && n.body.type == _.MessageType.COBROWSE && (n.type = _.MessageType.COBROWSE), n.type) {
                        var a = D[n.type];
                        return a ? l.default.createElement(a, {
                            messages: e,
                            key: t
                        }) : void j.warn("Message type is not supported")
                    }
                }))))
            };
        B.propTypes = {
            messagesGroups: s.default.array.isRequired,
            onMessagesAnimationEnd: s.default.func.isRequired,
            onScrollEnd: s.default.func.isRequired,
            diff: s.default.number,
            bottomOffset: s.default.string
        };
        var F = (0, u.connect)((function(e) {
            return {
                messages: e.messages
            }
        }), {})(B);
        t.default = F
    }, 8972: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(98661)),
            i = n(88928),
            o = a(n(45697)),
            l = a(n(66440)),
            u = function(e) {
                var t = e.route,
                    n = e.isOnline,
                    a = e.isInDrag,
                    i = e.isIntroduced,
                    o = e.inputHeight,
                    u = e.agentTyping,
                    s = e.widgetHeight;
                return r.default.createElement(l.default, {
                    route: t,
                    isInDrag: a,
                    isOnline: n,
                    inputHeight: o,
                    isIntroduced: i,
                    agentTyping: u,
                    widgetHeight: s
                })
            };
        u.propTypes = {
            isOnline: o.default.bool,
            route: o.default.string,
            isIntroduced: o.default.bool,
            isInDrag: o.default.bool,
            inputHeight: o.default.number,
            agentTyping: o.default.bool,
            widgetHeight: o.default.string
        };
        var s = (0, i.connect)((function(e) {
            var t = e.chats[e.chats.length ? e.chats.length - 1 : 0];
            return {
                isOnline: e.app.isOnline,
                route: e.app.route,
                isInDrag: e.app.isInDrag,
                agentTyping: !!t && t.agentTyping,
                widgetHeight: e.position.height,
                isIntroduced: e.client.isIntroduced
            }
        }))(u);
        t.default = s
    }, 31385: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(87672)),
            u = o(n(18777)),
            s = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = S(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            c = o(n(91651)),
            d = o(n(94184)),
            f = o(n(45697)),
            p = o(n(30295)),
            h = o(n(3415)),
            v = o(n(84726)),
            g = o(n(1039)),
            m = o(n(19955)),
            _ = o(n(39906)),
            y = n(54415),
            b = n(83170),
            E = n(21476),
            T = n(47060),
            C = o(n(14762));

        function S(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (S = function(e) {
                return e ? n : t
            })(e)
        }
        o(n(4855)).default.name("CobrowseMessage");
        var w = function(e) {
            var t, n, a = e.messages,
                r = a[0].toJSON();
            if (!r.from_id && "highlight" !== r.body.type) return null;
            var i = (0, s.useState)(r.body.error),
                o = (0, u.default)(i, 2),
                f = o[0],
                S = o[1],
                w = a[0].toJSON(),
                O = w.updated_ts,
                A = (0, p.default)(O || w.created_ts, "dd.mm.yy H:MM:ss"),
                I = w.body.hash,
                R = w.body.page_url,
                M = null;
            w.from_id && (M = w.from_id, w.text = w.body.text, I = w.body.address, R = w.body.url);
            var k = function(e) {
                    e || (a[0] && a[0].set("body.error", !0), S(!0))
                },
                N = function(e) {
                    f || (e.preventDefault(), function() {
                        var e;
                        if (M) {
                            var t = C.default.getAgentById(M);
                            t && (e = t.toJSON())
                        }
                        var n = function() {
                            h.default.getCobrowseData(I, R, w.text, e, k)
                        };
                        m.default.mobileOrTablet() ? (E.Router.next(T.RouterEvent.CloseWindow), setTimeout((function() {
                            n()
                        }), 1e3)) : n()
                    }(), y.Monitoring.telemetry(b.TelemetryName.COBROWSE_CLICK_BUTTON))
                };
            return s.default.createElement(_.default, {
                messages: a
            }, s.default.createElement("jdiv", {
                className: (0, d.default)((t = {}, (0, l.default)(t, c.default.main, !0), (0, l.default)(t, c.default["__" + g.default.bubble_color || 0], !0), (0, l.default)(t, c.default.__mobile, m.default.mobileOrTablet()), t)),
                title: A
            }, s.default.createElement("jdiv", {
                className: c.default.text
            }, w.text ? w.text : (0, v.default)("lblDefaultCobrowseComment")), s.default.createElement("jdiv", {
                className: (0, d.default)((n = {}, (0, l.default)(n, c.default.showBtn, !0), (0, l.default)(n, c.default.__disabled, f), n)),
                onPointerDown: N,
                onTouchStart: function(e) {
                    e.preventDefault(), m.default.isPointerEnabled() || N(e)
                },
                title: (0, v.default)("lblDefaultCobrowseComment")
            }, (0, v.default)("lblView")), f ? s.default.createElement("jdiv", {
                className: c.default.error
            }, (0, v.default)("cobrowseError")) : null, s.default.createElement("jdiv", {
                className: c.default.time
            }, (0, p.default)(O || w.created_ts, "H:MM"))))
        };
        w.propTypes = {
            messages: f.default.any
        };
        var O = s.default.memo(w);
        t.default = O
    }, 86555: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(5872)),
            i = a(n(87672)),
            o = a(n(89400)),
            l = a(n(98661)),
            u = a(n(45697)),
            s = a(n(94184)),
            c = n(47713),
            d = n(2535),
            f = a(n(32083)),
            p = a(n(43569)),
            h = a(n(84726)),
            v = a(n(13114)),
            g = a(n(6139)),
            m = a(n(46809)),
            _ = a(n(40704)),
            y = a(n(98960)),
            b = function(e) {
                var t, n = e.message,
                    a = e.color,
                    u = e.size,
                    b = e.initialEmail,
                    E = e.lineHeight,
                    T = e.textSize,
                    C = e.isIos,
                    S = e.buttonText,
                    w = e.isSuccessSend,
                    O = e.onSuccessSubmit,
                    A = (0, d.useForm)({
                        initialValues: {
                            email: b
                        },
                        validate: function(e) {
                            return {
                                email: !y.default.email(e.email) && (0, h.default)("invalid_email")
                            }
                        },
                        focusOnFirstError: !0
                    }),
                    I = A.formRef,
                    R = (0, o.default)(A),
                    M = A.getInputProps,
                    k = A.isSubmitted,
                    N = A.onSubmit,
                    x = M("email"),
                    P = x.attrs,
                    L = x.state,
                    D = k && !L.isDirty,
                    j = L.isValid ? "iconValid" : "iconWarning",
                    B = L.isDirty || !k ? null : a,
                    F = N(O),
                    U = {
                        lineHeight: C ? E : null,
                        "-webkit-text-size-adjust": C ? T : "none"
                    };
                return l.default.createElement(v.default, {
                    padding: "md",
                    radius: "md",
                    addClassname: (0, s.default)((t = {}, (0, i.default)(t, m.default.wrapper, !0), (0, i.default)(t, m.default["__" + a], !0), t))
                }, w && l.default.createElement("jdiv", {
                    className: m.default.text,
                    style: U
                }, (0, h.default)("social_success_email").replace("_EMAIL_", R.email)), !w && l.default.createElement(l.default.Fragment, null, l.default.createElement("jdiv", {
                    className: m.default.text,
                    style: U
                }, n), l.default.createElement(g.default, {
                    component: "jdiv",
                    h: "xs"
                }), l.default.createElement("form", {
                    ref: I,
                    className: m.default.form
                }, l.default.createElement(p.default, (0, r.default)({
                    color: B,
                    size: u,
                    name: "email",
                    type: "text",
                    maxLength: 255,
                    autocomplete: "email",
                    label: (0, h.default)("lblYourEmail"),
                    variant: "inset",
                    fontSize: C ? 16 : 15,
                    lineHeight: C ? "normal" : null,
                    rightSectionWidth: 32,
                    rightSection: D && l.default.createElement(_.default, {
                        iconName: j,
                        className: m.default.validateIcon
                    })
                }, P, {
                    onKeyDown: function(e) {
                        return "Enter" === e.code && F(e)
                    }
                })), l.default.createElement(g.default, {
                    component: "jdiv",
                    h: "md"
                }), l.default.createElement(f.default, (0, r.default)({
                    component: "jdiv",
                    type: "submit",
                    color: a,
                    size: u,
                    radius: u,
                    fullWidth: !0
                }, (0, c.onClickHandler)(F)), S))))
            };
        b.propTypes = {
            message: u.default.string,
            color: u.default.string,
            size: u.default.string,
            initialEmail: u.default.string,
            lineHeight: u.default.string,
            textSize: u.default.string,
            isIos: u.default.bool.isRequired,
            buttonText: u.default.string.isRequired,
            isSuccessSend: u.default.bool.isRequired,
            onSuccessSubmit: u.default.func.isRequired
        }, b.defaultProps = {
            initialEmail: ""
        };
        var E = b;
        t.default = E
    }, 6313: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(18777)),
            u = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = R(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            s = n(88928),
            c = o(n(45697)),
            d = n(26932),
            f = n(80598),
            p = n(92560),
            h = n(54415),
            v = n(21476),
            g = n(47060),
            m = n(28549),
            _ = n(87692),
            y = n(45959),
            b = n(83170),
            E = n(49862),
            T = o(n(91275)),
            C = o(n(138)),
            S = o(n(1039)),
            w = o(n(19955)),
            O = o(n(86555)),
            A = o(n(84726)),
            I = o(n(14264));

        function R(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (R = function(e) {
                return e ? n : t
            })(e)
        }
        var M = function(e) {
            var t = e.messages,
                n = (0, s.useSelector)(_.selectBubbleColor),
                a = (0, s.useSelector)(y.selectClientEmail),
                r = (0, s.useSelector)(m.selectAppZoom),
                i = (0, s.useSelector)(y.selectEulaAccepted),
                o = (0, s.useSelector)(_.selectEulaEnabled),
                c = (0, s.useSelector)(y.selectClientName),
                R = (0, s.useSelector)(y.selectClientPhone),
                M = (0, s.useSelector)(y.selectDescription),
                k = (0, u.useState)(!1),
                N = (0, l.default)(k, 2),
                x = N[0],
                P = N[1],
                L = w.default.ios();
            return (0, u.useEffect)((function() {
                a && i && !x && P(!0)
            }), [a, i, x]), (0, E.useDidUpdate)((function() {
                T.default.setClientContactInfo({
                    client_name: c,
                    phone: R,
                    email: a,
                    description: M,
                    accept_eula: S.default.eula ? i : null
                }, !0), I.default.trigger("update"), C.default.trackSystemMessageEmailSubmitted(), h.Monitoring.telemetry(b.TelemetryName.EMAIL_MESSAGE_SUBMITTED)
            }), [x]), (0, p.isEmpty)(t) ? null : u.default.createElement(O.default, {
                message: t[0].toJSON().text,
                color: n,
                size: "sm",
                initialEmail: a,
                lineHeight: (0, f.getLineHeight)(1.5, r),
                textSize: (0, f.getTextSize)(r),
                isIos: L,
                buttonText: o && !i ? (0, A.default)("continue") : (0, A.default)("lblSend"),
                isSuccessSend: x,
                onSuccessSubmit: function(e) {
                    d.clientDispatchers.setClientEmail(e.email), o && !i ? v.Router.next(g.RouterEvent.Submit, {
                        context: "messageEmail"
                    }) : P(!0)
                }
            })
        };
        M.propTypes = {
            messages: c.default.arrayOf(c.default.object)
        };
        var k = M;
        t.default = k
    }, 79425: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(86902),
            i = n(14310),
            o = n(20116),
            l = n(34074),
            u = n(39649),
            s = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var c = s(n(47302)),
            d = s(n(20455)),
            f = s(n(2991)),
            p = s(n(5872)),
            h = s(n(87672)),
            v = s(n(26394)),
            g = s(n(69198)),
            m = s(n(51379)),
            _ = s(n(214)),
            y = s(n(66380)),
            b = s(n(98661)),
            E = s(n(54720)),
            T = s(n(84726)),
            C = s(n(1039)),
            S = s(n(91275)),
            w = s(n(19955)),
            O = s(n(79868)),
            A = s(n(74379)),
            I = s(n(14264)),
            R = n(68403),
            M = n(69882),
            k = n(9393),
            N = n(45950),
            x = n(37578),
            P = s(n(75686)),
            L = n(47245),
            D = s(n(50890)),
            j = s(n(60165)),
            B = s(n(22048)),
            F = n(88928),
            U = n(81152),
            H = n(21476),
            W = n(47060),
            G = s(n(4855)),
            z = s(n(4800)),
            V = n(65465),
            q = n(80161),
            K = n(54415),
            Y = n(83170),
            X = n(42908),
            Z = n(26932),
            J = n(15787),
            $ = n(69845),
            Q = s(n(35802)),
            ee = n(44145);

        function te(e, t) {
            var n = r(e);
            if (i) {
                var a = i(e);
                t && (a = o(a).call(a, (function(t) {
                    return l(e, t).enumerable
                }))), n.push.apply(n, a)
            }
            return n
        }

        function ne(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? te(Object(n), !0).forEach((function(t) {
                    (0, h.default)(e, t, n[t])
                })) : u ? Object.defineProperties(e, u(n)) : te(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, l(n, t))
                }))
            }
            return e
        }

        function ae(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, y.default)(e);
                if (t) {
                    var i = (0, y.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, _.default)(this, n)
            }
        }
        var re = G.default.name("ContactForm"),
            ie = O.default.getJoints(),
            oe = function(e) {
                (0, m.default)(n, e);
                var t = ae(n);

                function n(e) {
                    var a;
                    (0, v.default)(this, n), (a = t.call(this, e))._steps = {}, a._totalSteps = a.getSteps();
                    var r = a.props.messages[0],
                        i = r.get("body") && r.get("body").inited,
                        o = a.props.client.isIntroduced;
                    return a.state = {
                        submited: o,
                        step: 3,
                        steps: a._steps,
                        social: a.canRenderSocial(),
                        showForm: o || i,
                        showMessage: o || i,
                        focused: o || i,
                        lastValue: null
                    }, a._formData = null, a._formContainer = null, a._introduceText = null, a
                }
                return (0, g.default)(n, [{
                    key: "shouldComponentUpdate",
                    value: function(e, t) {
                        return !(0, F.shallowEqual)(this.state, t) || !(0, F.shallowEqual)(this.props, e)
                    }
                }, {
                    key: "componentDidUpdate",
                    value: function(e) {
                        if (!(0, F.shallowEqual)(this.props, e)) {
                            var t = {};
                            this.getSteps(), this.props.client.isIntroduced || (t.submited = !1), this.canRenderSocial() || (t.social = !1), this.props.client.isIntroduced && !this.state.submited && (t = ne(ne({}, t), {}, {
                                submited: !0,
                                showForm: !0,
                                focused: !0
                            }), this.checkAllStepsValid()), this.setState(t)
                        }
                    }
                }, {
                    key: "componentDidMount",
                    value: function() {
                        var e = this;
                        re.log("mount", this.props), q.RouterUtils.needToShowEula() && H.Router.on("submit_eula_success", (function() {
                            e.successCallback(e._formData)
                        }));
                        var t = this.props.messages[0],
                            n = t.get("body") && t.get("body").inited;
                        this.props.client.isIntroduced && !n || (this.setState({
                            showForm: !0
                        }), t && !n && t.set("body", {
                            inited: !0
                        })), this.props.client.isIntroduced && this.checkAllStepsValid(), H.Router.on("route_change", (function() {
                            e.ignoreScroll(!1)
                        }));
                        var a = I.default.getFormMessage();
                        a.length && a[0].on("created_ts", (function() {
                            (0, c.default)(I.default).call(I.default), I.default.trigger("update")
                        }))
                    }
                }, {
                    key: "getSteps",
                    value: function() {
                        var e = this,
                            t = 1,
                            n = this.props.isOnline ? C.default.contacts_settings : (0, R.fixOfflineSettings)(C.default.contacts_settings);
                        return (0, x.filterObj)(n, (function(n, a) {
                            if (n.show) {
                                var r = t++;
                                e._steps[a] = {
                                    keyName: a,
                                    e: n,
                                    step: r
                                }
                            }
                            return !0 === n.show
                        })).length
                    }
                }, {
                    key: "checkAllStepsValid",
                    value: function() {
                        var e = this;
                        (0, k.each)(this._steps, (function(t) {
                            var n = e._formContainer.checkValue(e.getStepName(t.keyName));
                            e._steps[t.keyName].valid = n
                        })), this.setState({
                            step: this._totalSteps,
                            steps: this._steps
                        })
                    }
                }, {
                    key: "getStepName",
                    value: function(e) {
                        return "name" === e ? "client_name" : e
                    }
                }, {
                    key: "getClientInfo",
                    value: function(e) {
                        return {
                            client_name: e.client_name.value,
                            phone: e.phone.value,
                            email: e.email.value
                        }
                    }
                }, {
                    key: "successCallback",
                    value: function(e) {
                        var t = this;
                        if (re.log("successChatIntroduce", e), this._formData = e, e && !e.error) {
                            if (q.RouterUtils.needToShowEula()) return void H.Router.next(W.RouterEvent.ToEula, {
                                context: "chatIntroduce"
                            });
                            var n = (0, M.getPageWindow)().document.activeElement;
                            w.default.mobile() && n && "function" == typeof n.blur && n.blur();
                            var a = P.default.refs.ScrollContainer;
                            this.setState({
                                submited: !0
                            }, (function() {
                                var n = t.getClientInfo(e);
                                if (a && a.setIgnore(!1), !t.props.isOnline) {
                                    V.messageActions.setInputDisabled(!1), t.props.client.isIntroduced || (Z.clientDispatchers.setClientEmail(n.email || null), Z.clientDispatchers.setClientPhone(n.phone || null), Z.clientDispatchers.setClientName(n.name || n.client_name || null), Z.clientDispatchers.setClientDescription(n.description || null), Z.clientDispatchers.setIsIntroduced(!0)), Z.appDispatchers.setChatStarted(!0), S.default.setClientContactInfo(n, !1, !0), S.default.checkConnection((function() {}));
                                    var r = V.messageActions.getOfflineSuccessText();
                                    r && V.messageActions.systemMessageOnce(r), Q.default.getInstance().managers.connection.isOpen() && (0, J.sendOfflineTmpMessages)();
                                    var i = (0, ee.getLastClientMessage)();
                                    return re.log("lastClientMessage", i), i && V.messageActions.checkMessageStatus(i.private_id), (0, X._callUserFunction)("onOfflineFormSubmit"), void K.Monitoring.telemetryOnce(Y.TelemetryName.NEWOFFLINE_FORM_SUBMIT)
                                }
                                t.props.client.isIntroduced ? ((0, J.setIntroduce)(n), S.default.checkConnection((function() {}))) : (e.message && e.message.value && V.messageActions.sendClientMessage(e.message.value), S.default.setClientContactInfo(n, !1, !0), Z.clientDispatchers.setIsIntroduced(!0))
                            }))
                        }
                    }
                }, {
                    key: "errorCallback",
                    value: function(e) {
                        re.log("errorCallbackintroduce", e), this._formData = e, this.setState({
                            submited: !1,
                            steps: this._steps
                        })
                    }
                }, {
                    key: "blurPopupInput",
                    value: function(e) {
                        if (re.log("blurPopupInput", this.state.submited), this.ignoreScroll(!1), !this.state.submited) {
                            var t = this._formContainer.checkValue(this.getStepName(e));
                            this._steps[e].valid = t, this.setState({
                                steps: this._steps
                            })
                        }
                    }
                }, {
                    key: "focusPopupInput",
                    value: function() {
                        re.log("focusPopupInput"), this.ignoreScroll(!0), this.state.focused || (this.setState({
                            focused: !0
                        }), K.Monitoring.telemetryOnce(Y.TelemetryName.CHAT_INTRODUCE, {
                            param1: "formFocused"
                        }))
                    }
                }, {
                    key: "ignoreScroll",
                    value: function(e) {
                        var t = P.default.getComponent(L.Component.SCROLL_CONTAINER);
                        t && t.setIgnore(e)
                    }
                }, {
                    key: "focusFirstInput",
                    value: function() {
                        if (re.log("focusFirstInput", this._formContainer), this._formContainer && this._formContainer.base) {
                            this.focusPopupInput();
                            var e = this._formContainer.base.querySelector("input");
                            setTimeout((function() {
                                if (e.focus(), !w.default.mobileOrTablet()) {
                                    var t = I.default.getLastMessage(),
                                        n = P.default.getComponent(L.Component.SCROLL_CONTAINER);
                                    n && t && t.get("type") === U.MessageType.FORM && n.scrollToBottom()
                                }
                            }), 300)
                        }
                    }
                }, {
                    key: "processSocial",
                    value: function(e) {
                        if (w.default.mobileOrTablet()) {
                            var t = ie.links,
                                n = t.fbUrl,
                                a = t.vkUrl;
                            window.open("fb" === e ? n : a)
                        } else O.default.setPopupMode(e), H.Router.next(W.RouterEvent.ToSocial), K.Monitoring.telemetry(Y.TelemetryName.CHAT_INTRODUCE_SOCIAL, {
                            param1: "click_" + e
                        })
                    }
                }, {
                    key: "canRenderSocial",
                    value: function() {
                        return !C.default.enable_sber_qr && this.props.chatStarted && !w.default.mobileOrTablet() && !(0, R.hasIntegration)(this.props.client.hasIntegration) && (ie.links.fbUrl || ie.links.vkUrl)
                    }
                }, {
                    key: "renderSocial",
                    value: function(e) {
                        var t = this,
                            n = ie.links,
                            a = n.fbUrl,
                            r = n.vkUrl;
                        if (this.canRenderSocial()) return b.default.createElement("jdiv", (0, p.default)({}, e.socialText, {
                            ref: function(e) {
                                t._social = e
                            }
                        }), (0, T.default)("introduce_social") + " ", r ? b.default.createElement("jdiv", {
                            className: z.default.link,
                            onClick: this.processSocial.bind(this, "vk")
                        }, (0, T.default)("social_vk")) : null, r && a ? " " + (0, T.default)("introduce_or") + " " : null, a ? b.default.createElement("jdiv", {
                            className: z.default.link,
                            onClick: this.processSocial.bind(this, "fb")
                        }, "Facebook") : null)
                    }
                }, {
                    key: "getPlaceholder",
                    value: function(e) {
                        switch (e) {
                            case "name":
                                return (0, T.default)("lblIntroduceName");
                            case "email":
                                return (0, T.default)("lblYourEmail");
                            case "phone":
                                return (0, T.default)("lblYourPhone")
                        }
                    }
                }, {
                    key: "onChange",
                    value: function(e, t) {
                        var n = this;
                        if (t && t.key) switch (t.key) {
                            case "Meta":
                            case "Shift":
                            case "Control":
                            case "Alt":
                            case "ArrowLeft":
                            case "ArrowRight":
                            case "ArrowUp":
                            case "ArrowDown":
                                return
                        }
                        this.setState({
                            submited: !1,
                            lastValue: t.target.value
                        }, (function() {
                            n.checkAllStepsValid()
                        }))
                    }
                }, {
                    key: "getFormHeight",
                    value: function() {
                        if (this._mainContainer && this._formContainer) {
                            var e = this._formContainer.base.clientHeight || null;
                            return this.state.focused ? e : null
                        }
                        return null
                    }
                }, {
                    key: "getIntroduceHeight",
                    value: function() {
                        return this._introduceText ? this.state.showMessage ? this._introduceText.clientHeight : null : void 0
                    }
                }, {
                    key: "renderFormInputs",
                    value: function() {
                        var e = this,
                            t = (0, d.default)(this._steps),
                            n = (0, N.sortBy)(t, (function(e) {
                                return e.step
                            }));
                        return (0, f.default)(n).call(n, (function(t, n) {
                            return b.default.createElement(j.default, {
                                name: e.getStepName(t.keyName),
                                placeholder: e.getPlaceholder(t.keyName),
                                onBlur: e.blurPopupInput.bind(e, t.keyName),
                                onFocus: e.focusPopupInput.bind(e),
                                onChange: e.onChange.bind(e),
                                valid: e.state.steps[t.keyName].valid,
                                hint: e.state.focused,
                                key: n
                            })
                        }))
                    }
                }, {
                    key: "getRenderData",
                    value: function() {
                        var e = {
                            lineHeight: w.default.ios() ? A.default.getLineHeight(1.5) : null
                        };
                        return {
                            styles: {
                                box: [{
                                    box: !0,
                                    __noanim: this.props.client.isIntroduced || w.default.mobileOrTablet(),
                                    __tablet: w.default.tablet() || w.default.desktop() && (0, M.isChatPage)()
                                }],
                                mainWrap: [{
                                    mainWrap: !0,
                                    __submited: this.state.submited,
                                    __show: this.state.showForm,
                                    __focus: this.state.focused
                                }],
                                main: [(0, h.default)({
                                    main: !0,
                                    __submited: this.state.submited,
                                    __show: !0,
                                    __focus: this.state.focused
                                }, "__" + C.default.bubble_color || 0, !0), {
                                    height: this.state.focused && !this.state.submited ? this.getFormHeight() : null
                                }],
                                successMessage: [{
                                    successMessage: !0,
                                    __submited: this.props.client.isIntroduced || this.state.submited
                                }],
                                introduceText: [{
                                    introduceText: !0,
                                    __show: !0,
                                    __submited: !0
                                }],
                                content: [{
                                    content: !0
                                }, e],
                                socialText: [{
                                    socialText: !0,
                                    __show: !0
                                }, e],
                                buttonWrapper: [{
                                    buttonWrapper: !0,
                                    __show: this.state.submited,
                                    __fadeOut: !this.state.submited
                                }],
                                submitSuccess: [{
                                    submitSuccess: !0,
                                    __show: this.state.submited
                                }]
                            },
                            style: z.default
                        }
                    }
                }, {
                    key: "renderData",
                    value: function(e, t) {
                        var n = this;
                        return b.default.createElement("jdiv", t.box, b.default.createElement("jdiv", (0, p.default)({}, t.mainWrap, {
                            ref: function(e) {
                                n._introduceMain = e
                            }
                        }), b.default.createElement("jdiv", (0, p.default)({}, t.main, {
                            title: "",
                            ref: function(e) {
                                n._mainContainer = e
                            }
                        }), !this.state.focused && b.default.createElement("jdiv", {
                            className: z.default.overlay,
                            onPointerUp: function(e) {
                                e.preventDefault(), n.focusFirstInput()
                            },
                            onTouchStart: function(e) {
                                e.preventDefault(), w.default.isPointerEnabled() || n.focusFirstInput()
                            }
                        }), b.default.createElement(D.default, {
                            successCallback: this.successCallback.bind(this),
                            errorCallback: this.errorCallback.bind(this),
                            route: this.props.route,
                            client: this.props.client,
                            type: "chat",
                            submited: this.state.submited,
                            isOnline: this.props.isOnline,
                            isFocused: this.props.isFocused,
                            ref: function(e) {
                                n._formContainer = e, e && P.default.set(L.Component.CHAT_INTRODUCE, e)
                            }
                        }, this.renderFormInputs(), b.default.createElement(B.default, {
                            type: "submit",
                            focusPopupInput: this.focusPopupInput.bind(this),
                            onBlur: this.blurPopupInput.bind(this),
                            onFocus: this.focusPopupInput.bind(this),
                            disabled: this.state.submited
                        }), this.state.focused && b.default.createElement("jdiv", t.buttonWrapper, b.default.createElement("jdiv", (0, p.default)({}, t.submitSuccess, {
                            dangerouslySetInnerHTML: {
                                __html: (0, $.formatText)((0, T.default)("lblThanks"))
                            }
                        }))))), this.renderSocial(t)))
                    }
                }]), n
            }(E.default),
            le = (0, F.connect)((function(e) {
                return {
                    isOnline: e.app.isOnline,
                    isFocused: e.app.isFocused,
                    chatStarted: e.app.chatStarted,
                    isInputDisabled: e.app.isInputDisabled,
                    client: e.client
                }
            }))(oe);
        t.default = le
    }, 48333: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = l;
        var r = a(n(98661)),
            i = a(n(45697)),
            o = a(n(7900));

        function l(e) {
            var t = e.messages,
                n = t[0].toJSON().body;
            return "tinkoffInvoice" === (null == n ? void 0 : n.type) ? r.default.createElement(o.default, {
                messages: t
            }) : null
        }
        l.propTypes = {
            messages: i.default.arrayOf(i.default.object)
        }
    }, 7900: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = p;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = a(n(45697)),
            l = a(n(94184)),
            u = a(n(39906)),
            s = a(n(30295)),
            c = a(n(84726)),
            d = a(n(64545)),
            f = a(n(40704));

        function p(e) {
            var t, n, a = e.messages,
                o = a[0].toJSON(),
                p = o.body,
                h = o.created_ts,
                v = (0, l.default)((t = {}, (0, r.default)(t, d.default.main, !0), (0, r.default)(t, d.default._tinkoff, !0), t)),
                g = (0, l.default)((n = {}, (0, r.default)(n, d.default.message, !0), (0, r.default)(n, d.default.__success, "SUCCESS" === p.status), n));
            return i.default.createElement(u.default, {
                messages: a
            }, i.default.createElement("jdiv", {
                className: v,
                title: (0, s.default)(h, "dd.mm.yy H:MM:ss")
            }, i.default.createElement("jdiv", {
                className: g
            }, i.default.createElement("jdiv", {
                className: d.default.successIcon
            }), i.default.createElement("jdiv", {
                className: d.default.info
            }, i.default.createElement("jdiv", {
                className: d.default.text
            }, (0, c.default)("paymentsInvoice"), p.invoice_id, ":"), i.default.createElement("jdiv", {
                className: d.default.productName
            }, p.comment, ",", " "), i.default.createElement("jdiv", {
                className: d.default.amountWrap
            }, i.default.createElement("jdiv", {
                className: d.default.amount
            }, " ", p.amount), i.default.createElement(f.default, {
                className: d.default.rubleIcon,
                color: "#222d38",
                iconName: "icon-ruble"
            })), i.default.createElement("jdiv", {
                className: d.default.successText
            }, (0, c.default)("paymentsSuccess"))), i.default.createElement("a", {
                href: p.payment_url,
                className: d.default.actionBtn,
                "data-css": "notreset",
                rel: "nofollow noopener noreferrer",
                target: "_blank",
                title: (0, c.default)("paymentsPay")
            }, i.default.createElement("jdiv", {
                className: d.default.actionText
            }, (0, c.default)("paymentsPay"))))))
        }
        p.propTypes = {
            messages: o.default.arrayOf(o.default.object)
        }
    }, 19579: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(77766)),
            i = a(n(5872)),
            o = a(n(87672)),
            l = a(n(18777)),
            u = a(n(98661)),
            s = n(30396),
            c = a(n(94184)),
            d = a(n(45697)),
            f = a(n(66265)),
            p = a(n(77335)),
            h = n(90361),
            v = n(57930),
            g = n(47713),
            m = n(80598),
            _ = a(n(40704)),
            y = function(e) {
                var t, n, a = e.text,
                    d = e.title,
                    y = e.url,
                    b = e.answerId,
                    E = e.onButtonClick,
                    T = e.bubbleColor,
                    C = e.index,
                    S = (0, s.useState)(!1),
                    w = (0, l.default)(S, 2),
                    O = w[0],
                    A = w[1],
                    I = (0, m.getThemeColor)(T),
                    R = (0, c.default)((t = {}, (0, o.default)(t, p.default.button, !0), (0, o.default)(t, p.default.__bot, !0), (0, o.default)(t, f.default._disabled, null !== b), t));
                return u.default.createElement("jdiv", (0, i.default)({
                    className: R,
                    title: (0, r.default)(n = "".concat(d || "", " ")).call(n, y || ""),
                    onMouseOver: function() {
                        return A(!0)
                    },
                    onMouseLeave: function() {
                        return A(!1)
                    }
                }, (0, g.onClickHandler)(E, !0, !0), (0, h.withLocator)(v.Locator.PRECHAT_BUTTON + C)), u.default.createElement("jdiv", {
                    dangerouslySetInnerHTML: {
                        __html: a
                    }
                }), y ? u.default.createElement("jdiv", {
                    className: f.default.linkIcon
                }, u.default.createElement(_.default, {
                    iconName: "arrowLink",
                    color: O ? "#fff" : I,
                    className: f.default.icon
                })) : null)
            };
        y.propTypes = {
            data: d.default.object,
            onClick: d.default.func,
            bubbleColor: d.default.string,
            text: d.default.string,
            title: d.default.string,
            url: d.default.string,
            answerId: d.default.number,
            onButtonClick: d.default.func,
            index: d.default.number
        };
        var b = y;
        t.default = b
    }, 63711: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(2991)),
            i = a(n(87672)),
            o = a(n(98661)),
            l = a(n(94184)),
            u = a(n(45697)),
            s = a(n(66265)),
            c = a(n(77335)),
            d = a(n(19579)),
            f = a(n(4855)),
            p = n(27523),
            h = n(11413),
            v = f.default.name("Listpicker"),
            g = function(e) {
                var t, n, a = e.data,
                    u = e.onClick,
                    f = e.bubbleColor,
                    g = e.isDisabledEmoji;
                if (a) {
                    var m = (0, l.default)((t = {}, (0, i.default)(t, c.default.main, !0), (0, i.default)(t, c.default["__" + f], !0), (0, i.default)(t, s.default.__mobile, !1), t)),
                        _ = a.answer_id || null;
                    return o.default.createElement("jdiv", {
                        className: m
                    }, o.default.createElement("jdiv", {
                        className: s.default.buttonsWrap
                    }, (0, r.default)(n = a.keyboard).call(n, (function(e, t) {
                        var n, a = e.url;
                        return o.default.createElement(d.default, {
                            text: (n = e.text, g ? (0, h.escape)(n) : (0, p.replaceEmoji)(n)),
                            title: e.title,
                            url: a,
                            answerId: _,
                            onButtonClick: function(n) {
                                _ || (v.log("text", e), u(n, t, e.text, a))
                            },
                            bubbleColor: f,
                            key: t
                        })
                    }))))
                }
            };
        g.propTypes = {
            data: u.default.object,
            onClick: u.default.func,
            bubbleColor: u.default.string,
            isDisabledEmoji: u.default.bool
        };
        var m = g;
        t.default = m
    }, 45482: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = m;
        var r = a(n(59340)),
            i = a(n(98661)),
            o = a(n(45697)),
            l = n(89177),
            u = n(65465),
            s = n(54415),
            c = n(83170),
            d = a(n(19955)),
            f = a(n(63711)),
            p = n(88928),
            h = n(87692),
            v = n(69882),
            g = a(n(138));

        function m(e) {
            var t = e.messages,
                n = (0, p.useSelector)(h.selectBubbleColor),
                a = (0, p.useSelector)(h.selectDisableEmoji),
                o = t[0],
                m = o.get("msg_id"),
                _ = o.get("body");
            if (_) {
                return i.default.createElement(f.default, {
                    data: _,
                    onClick: function(e, t, n, a) {
                        (e.preventDefault(), a) ? (0, v.getPageWindow)().open(a, "_blank") || console.warn("cant open url", a): (u.messageActions.setListpickerAnswer(m, t), u.messageActions.sendClientMessage(n), d.default.mobileOrTablet() || (0, l.afterEmojiInserted)());
                        s.Monitoring.telemetry(c.TelemetryName.BOT_BUTTON_CLICK, {
                            param1: a ? "url_open" : "send_message"
                        }), g.default.trackBotButtonClick(a || n)
                    },
                    bubbleColor: n,
                    isDisabledEmoji: a
                })
            }
            try {
                s.Monitoring.telemetryOnce("bot_listpicker_error", {
                    param1: (0, r.default)(o.toJSON())
                })
            } catch (e) {
                console.warn(e)
            }
        }
        m.propTypes = {
            messages: o.default.arrayOf(o.default.object)
        }
    }, 67250: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(98661)),
            i = a(n(94027)),
            o = a(n(91471)),
            l = r.default.memo((function(e) {
                if (e.messages && e.messages[0]) {
                    var t = e.messages[0];
                    if (t.get("body") && t.get("body").status) {
                        var n = t.toJSON();
                        return r.default.createElement(o.default, {
                            messages: e.messages,
                            status: n.body.status,
                            messagePrivateId: n.private_id
                        })
                    }
                    return r.default.createElement(i.default, e)
                }
            }));
        t.default = l
    }, 94027: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(87672)),
            i = a(n(78580)),
            o = a(n(98661)),
            l = n(88928),
            u = a(n(94184)),
            s = a(n(45697)),
            c = n(42958),
            d = n(77294),
            f = n(48785),
            p = n(95140),
            h = n(76624),
            v = n(87692),
            g = n(25373),
            m = a(n(39906)),
            _ = a(n(96150)),
            y = a(n(30295)),
            b = a(n(19955)),
            E = a(n(4867)),
            T = a(n(39554)),
            C = a(n(63960)),
            S = function(e) {
                var t, n = e.messages[0],
                    a = n.toJSON(),
                    s = a.body,
                    S = a.created_ts,
                    w = (0, g.useEnhanced)(n),
                    O = w.mediaState,
                    A = w.loaderRef,
                    I = w.abortUploading,
                    R = (0, l.useSelector)(v.selectBubbleColor);

                function M(e) {
                    e.preventDefault(), window.open(e.currentTarget.getAttribute("href"))
                }
                var k, N, x, P = O.file.file_url || s.file_url || s.file || s.name,
                    L = (0, p.messageInitiator)(n).fromAgent,
                    D = (k = P, N = s.type, k ? (0, d.isNewMedia)(k) ? O.complete && (0, i.default)(x = ["photo"]).call(x, N) : O.complete && (0, d.isPreviewImage)(k) : ((0, p.reportName)(n), !1)),
                    j = O.file.file_name || s.file_name || s.name,
                    B = L ? "grey" : R,
                    F = (0, y.default)(S, "dd.mm.yy H:MM:ss"),
                    U = O.url || e.url,
                    H = s.thumb || O.imagePreview || U,
                    W = L ? m.default : _.default,
                    G = (0, u.default)((t = {}, (0, r.default)(t, C.default.main, !0), (0, r.default)(t, C.default["_" + B], !0), (0, r.default)(t, C.default._mobile, b.default.mobileOrTablet()), (0, r.default)(t, C.default._client, !L), (0, r.default)(t, C.default._preview, D), t));
                return o.default.createElement(W, {
                    messages: e.messages,
                    isPreview: D
                }, o.default.createElement("jdiv", {
                    className: G,
                    title: F
                }, D ? o.default.createElement(h.Preview, {
                    message: n,
                    name: j,
                    src: H,
                    href: U,
                    isAgentMessage: L,
                    onClick: M
                }) : o.default.createElement(f.Loader, {
                    ref: A,
                    name: j,
                    data: O,
                    message: n,
                    isFromAgent: L,
                    color: B,
                    handleAbort: I,
                    handleClick: M
                })), (0, c.isErrorMessage)(n) && o.default.createElement(T.default, {
                    messages: e.messages,
                    messagesStore: E.default
                }))
            };
        S.propTypes = {
            messages: s.default.arrayOf(s.default.instanceOf(E.default)),
            url: s.default.string
        };
        var w = S;
        t.default = w
    }, 48785: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.Loader = void 0;
        var l = o(n(87672)),
            u = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = b(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            s = o(n(94184)),
            c = o(n(45697)),
            d = n(77294),
            f = n(58271),
            p = o(n(19955)),
            h = o(n(84726)),
            v = o(n(63960)),
            g = o(n(40704)),
            m = o(n(46544)),
            _ = n(90906),
            y = o(n(4867));

        function b(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (b = function(e) {
                return e ? n : t
            })(e)
        }
        var E = (0, u.forwardRef)((function(e, t) {
            var n = e.color,
                a = e.data,
                r = e.message,
                i = e.isFromAgent,
                o = e.name,
                c = e.handleAbort,
                y = e.handleClick,
                b = a.uploading && a.loaded > 1,
                E = function(e) {
                    return {
                        display: e ? "block" : "none"
                    }
                },
                T = {
                    icon: (0, d.getIconColor)(n),
                    circle: (0, d.getCircleColor)(n)
                },
                C = {
                    iconMain: {
                        cursor: a.uploading ? "pointer" : "default"
                    },
                    iconError: E(a.error),
                    iconUpload: E(a.complete),
                    loader: E(a.uploading)
                },
                S = {
                    iconCancel: (0, s.default)([v.default.iconUpload], [v.default.iconLoading]),
                    iconError: (0, s.default)([v.default.iconError]),
                    iconUpload: (0, s.default)([v.default.iconUpload]),
                    mediaComplete: (0, s.default)([v.default.mediaComplete], (0, l.default)({}, v.default._agent, i))
                };
            return u.default.createElement(u.default.Fragment, null, u.default.createElement("jdiv", {
                className: v.default.mediaIcon,
                onClick: c,
                style: C.iconMain
            }, u.default.createElement("jdiv", {
                className: v.default.loaderCont,
                style: C.loader
            }, u.default.createElement("svg", {
                width: "42",
                height: "42",
                viewPort: "0 0 21 21",
                version: "1.1",
                xmlns: "http://www.w3.org/2000/svg"
            }, u.default.createElement("circle", {
                r: "18",
                cx: "21",
                cy: "21",
                fill: "#ffffff",
                strokeDasharray: "119.38",
                strokeDashoffset: "0"
            }), u.default.createElement("circle", {
                ref: function(e) {
                    return e
                },
                className: v.default.loaderBar,
                r: "18",
                cx: "21",
                cy: "21",
                fill: "transparent",
                stroke: T.circle,
                strokeDasharray: "119.38",
                strokeDashoffset: "0"
            })), u.default.createElement(g.default, {
                color: T.icon,
                iconName: "icon-cancel",
                className: S.iconCancel
            })), u.default.createElement("jdiv", null, !a.error && u.default.createElement(g.default, {
                color: T.icon,
                iconName: "icon-".concat(a.type),
                className: S.iconUpload,
                style: C.iconUpload
            }), !i && u.default.createElement(g.default, {
                color: T.icon,
                iconName: "icon-error",
                className: S.iconError,
                style: C.iconError
            }))), u.default.createElement("jdiv", {
                className: v.default.mediaText
            }, u.default.createElement("jdiv", {
                className: v.default.mediaFname,
                title: o
            }, o), b && u.default.createElement("jdiv", {
                className: v.default.mediaPerc
            }, (0, f.fileSize)(a.loaded) || "", " /", " ", (0, f.fileSize)(a.total) || ""), a.complete && u.default.createElement("jdiv", {
                className: S.mediaComplete
            }, (0, f.fileSize)(a.total), " ", u.default.createElement("a", {
                href: (0, d.getUrl)(a.url),
                onPointerDown: y,
                onTouchStart: function(e) {
                    e.preventDefault(), p.default.isPointerEnabled() || y(e)
                },
                target: "_blank",
                rel: "noopener noreferrer"
            }, (0, h.default)("file_upl_download"))), a.error && u.default.createElement("jdiv", {
                className: v.default.mediaComplete
            }, a.error)), u.default.createElement(m.default, {
                className: v.default.time,
                message: r,
                colorSet: _.COLORS_SET.DARK,
                isRenderStatus: !i
            }))
        }));
        t.Loader = E, E.displayName = "Loader", E.propTypes = {
            color: c.default.string,
            data: c.default.object,
            message: c.default.instanceOf(y.default),
            isFromAgent: c.default.bool,
            name: c.default.string,
            handleAbort: c.default.func,
            handleClick: c.default.func
        }
    }, 76624: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.Preview = void 0;
        var l = o(n(77766)),
            u = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = m(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            s = o(n(45697)),
            c = n(77294),
            d = n(95140),
            f = o(n(19955)),
            p = o(n(4867)),
            h = o(n(46544)),
            v = n(90906),
            g = o(n(63960));

        function m(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (m = function(e) {
                return e ? n : t
            })(e)
        }
        var _ = function(e) {
            var t = e.message,
                n = e.name,
                a = e.src,
                r = e.href,
                i = e.isAgentMessage,
                o = e.onClick,
                s = t.toJSON().body,
                p = (0, u.useRef)(a),
                m = (0, c.getSize)(s),
                _ = (0, d.isGif)({
                    mediaExt: s.file_url || s.file || s.name,
                    message: t
                });
            return (0, u.useEffect)((function() {
                if ((0, c.isNewMedia)(p.current)) {
                    var e, t = (0, c.getSize)(s);
                    s.width < 209 && (t.width = s.width, t.height = null), p.current = (0, l.default)(e = "".concat(s.file, "?thumb&width=")).call(e, t.width)
                }
            }), [p, s]), u.default.createElement("jdiv", {
                className: i ? "" : g.default.mediaWrapper
            }, u.default.createElement("a", {
                className: g.default.previewLink,
                href: r,
                onPointerUp: o,
                onTouchStart: function(e) {
                    e.preventDefault(), f.default.isPointerEnabled() || o(e)
                },
                title: n,
                target: "_blank",
                rel: "nofollow noopener noreferrer"
            }, u.default.createElement("img", {
                width: m.width,
                height: m.height,
                src: p.current,
                title: n,
                className: g.default.previewMediaPhoto,
                loading: "lazy"
            }), _ && u.default.createElement("jdiv", {
                className: g.default.overlayText
            }, "GIF"), u.default.createElement(h.default, {
                className: g.default.time,
                message: t,
                colorSet: v.COLORS_SET.DARK,
                isRenderStatus: !i
            })))
        };
        t.Preview = _, _.propTypes = {
            message: s.default.instanceOf(p.default),
            name: s.default.string,
            src: s.default.string,
            href: s.default.string,
            isAgentMessage: s.default.bool,
            onClick: s.default.func
        }
    }, 95140: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.initialMediaState = function(e) {
            var t = e.sign,
                n = e.error,
                a = e.file_url,
                r = e.file,
                o = e.icon_type,
                l = e.type,
                u = e.mime_type,
                s = e.size,
                c = e.file_size,
                d = e.thumb,
                f = !1;
            (t || n) && (f = !1);
            (a || r) && (f = !0);
            var p = !!f && (a || r),
                h = !!f && (o || l || (0, i.detectType)(u));
            return {
                file: !1,
                url: p,
                type: h,
                uploading: !f,
                complete: f,
                percentComplete: 0,
                loaded: 0,
                total: f ? (s || c) >> 0 : 0,
                error: !1,
                imagePreview: null != d ? d : null
            }
        }, t.isGif = function(e) {
            var t = e.mediaExt,
                n = e.message;
            if (!t) return u(n), !1;
            var a = t.toLowerCase();
            return /\.(gif)$/i.test(a)
        }, t.messageInitiator = function(e) {
            var t = e.toJSON();
            return {
                fromAgent: (0, o.isAgentMessage)(t)
            }
        }, t.reportName = u;
        var r = a(n(59340)),
            i = n(83778),
            o = n(77294),
            l = n(54415);

        function u(e) {
            var t = e.toJSON();
            l.Monitoring.telemetryOnce("media_data_name", {
                param1: (0, r.default)(t || null)
            })
        }
    }, 25373: function(e, t, n) {
        "use strict";
        var a = n(86902),
            r = n(14310),
            i = n(20116),
            o = n(34074),
            l = n(39649),
            u = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.useEnhanced = void 0;
        var s = u(n(20455)),
            c = u(n(87672)),
            d = u(n(18777)),
            f = n(98661),
            p = n(95140),
            h = u(n(84726));

        function v(e, t) {
            var n = a(e);
            if (r) {
                var l = r(e);
                t && (l = i(l).call(l, (function(t) {
                    return o(e, t).enumerable
                }))), n.push.apply(n, l)
            }
            return n
        }

        function g(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? v(Object(n), !0).forEach((function(t) {
                    (0, c.default)(e, t, n[t])
                })) : l ? Object.defineProperties(e, l(n)) : v(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, o(n, t))
                }))
            }
            return e
        }
        u(n(4855)).default.name("MediaMessage");
        var m = {
            uploading: null,
            progress: null,
            complete: null,
            error: null
        };
        t.useEnhanced = function(e) {
            var t = e.toJSON(),
                n = t.body,
                a = t.private_id,
                r = (0, f.useState)((function() {
                    return (0, p.initialMediaState)(n)
                })),
                i = (0, d.default)(r, 2),
                o = i[0],
                l = i[1],
                u = (0, f.useRef)();

            function c(e) {
                l((function(t) {
                    return g(g({}, t), e)
                }))
            }

            function v() {
                (0, s.default)(m).forEach((function(e) {
                    return null == e ? void 0 : e.remove()
                }))
            }
            return (0, f.useEffect)((function() {
                if (!o.complete) return !n.name || n.error ? c({
                    file: n,
                    uploading: !1,
                    complete: !1,
                    error: n.error
                }) : function() {
                    v()
                }
            }), [n, a, o.complete]), {
                mediaState: o,
                loaderRef: u,
                abortUploading: function() {
                    o.uploading && (c({
                        file: {},
                        uploading: !1,
                        complete: !1,
                        error: (0, h.default)("file_upl_cancel")
                    }), v())
                }
            }
        }
    }, 2602: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(98661)),
            i = a(n(45697)),
            o = n(90906),
            l = n(81152),
            u = n(77294),
            s = a(n(46544)),
            c = a(n(79325)),
            d = a(n(63960)),
            f = a(n(4387));

        function p(e) {
            var t = e.message,
                n = e.url,
                a = e.color,
                i = e.isMobile,
                p = e.isFromAgentMessage,
                h = e.onError,
                v = e.onCancel,
                g = t.body,
                m = g.file_name,
                _ = g.status || l.MediaStatus.COMPLETE,
                y = g.file_size,
                b = g.loadedSize,
                E = g.type,
                T = g.error,
                C = _ === l.MediaStatus.UPLOADING,
                S = _ === l.MediaStatus.COMPLETE,
                w = !!T || _ === l.MediaStatus.ERROR || _ === l.MediaStatus.EXPIRED;
            return r.default.createElement("jdiv", null, r.default.createElement(c.default, {
                color: a,
                totalSize: y,
                loadedSize: b,
                mediaType: E,
                isUploading: C,
                isComplete: S,
                isError: w,
                onClick: v
            }), r.default.createElement(f.default, {
                url: n,
                title: m,
                totalSize: y,
                loadedSize: b,
                error: T,
                isUploading: C,
                isComplete: S,
                isError: w,
                isMobile: i,
                isFromAgentMessage: p,
                onClick: function() {
                    (0, u.onLinkClick)(n, h, (function() {
                        i || window.open((0, u.getUrl)(n), "_blank")
                    }))
                }
            }), r.default.createElement(s.default, {
                className: d.default.time,
                isRenderStatus: !p,
                message: t,
                colorSet: o.COLORS_SET.DARK
            }))
        }
        p.propTypes = {
            message: i.default.object.isRequired,
            color: i.default.string.isRequired,
            isMobile: i.default.bool.isRequired,
            url: i.default.string,
            onError: i.default.func.isRequired,
            onCancel: i.default.func.isRequired
        };
        var h = p;
        t.default = h
    }, 79325: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(87672)),
            u = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = v(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            s = o(n(94184)),
            c = o(n(45697)),
            d = n(77294),
            f = o(n(63960)),
            p = o(n(40704)),
            h = o(n(98132));

        function v(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (v = function(e) {
                return e ? n : t
            })(e)
        }
        var g = function(e) {
            var t, n, a, r, i, o = e.color,
                c = e.mediaType,
                v = e.totalSize,
                g = e.loadedSize,
                m = e.isError,
                _ = e.isUploading,
                y = e.isComplete,
                b = e.onClick,
                E = (0, u.useRef)(null),
                T = (0, d.getIconName)(c),
                C = (0, d.getIconColor)(o);
            (0, u.useEffect)((function() {
                g >= 0 && (0, d.setSvgProgress)(y, E, v, g)
            }), [y, g, v]);
            var S = (0, s.default)((t = {}, (0, l.default)(t, f.default.mediaIcon, !0), (0, l.default)(t, f.default._uploading, _), t)),
                w = (0, s.default)((n = {}, (0, l.default)(n, f.default.loaderCont, !0), (0, l.default)(n, f.default._uploading, _), n)),
                O = (0, s.default)((a = {}, (0, l.default)(a, f.default.iconUpload, !0), (0, l.default)(a, f.default.iconLoading, !0), a)),
                A = (0, s.default)((r = {}, (0, l.default)(r, f.default.iconUpload, !0), (0, l.default)(r, f.default._hidden, !y), r)),
                I = (0, s.default)((i = {}, (0, l.default)(i, f.default.iconError, !0), (0, l.default)(i, f.default._hidden, !m), i));
            return u.default.createElement("jdiv", {
                className: S,
                onClick: b
            }, u.default.createElement("jdiv", {
                ref: E,
                className: w
            }, u.default.createElement(h.default, {
                color: o,
                loaderBarStyle: f.default.loaderBar
            }), u.default.createElement(p.default, {
                iconName: "icon-cancel",
                className: O,
                color: C
            })), u.default.createElement("jdiv", null, m ? u.default.createElement(p.default, {
                iconName: "icon-error",
                className: I,
                color: C
            }) : u.default.createElement(p.default, {
                iconName: T,
                className: A,
                color: C
            })))
        };
        g.propTypes = {
            color: c.default.string.isRequired,
            isComplete: c.default.bool.isRequired,
            isError: c.default.bool.isRequired,
            isUploading: c.default.bool.isRequired,
            mediaType: c.default.string.isRequired,
            totalSize: c.default.number,
            loadedSize: c.default.number,
            onClick: c.default.func.isRequired
        };
        var m = g;
        t.default = m
    }, 4387: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(5872)),
            i = a(n(87672)),
            o = a(n(98661)),
            l = a(n(45697)),
            u = a(n(94184)),
            s = n(58271),
            c = n(47713),
            d = a(n(84726)),
            f = a(n(63960)),
            p = function(e) {
                var t, n = e.url,
                    a = e.title,
                    l = e.totalSize,
                    p = e.loadedSize,
                    h = e.isUploading,
                    v = e.isError,
                    g = e.isComplete,
                    m = e.isMobile,
                    _ = e.isFromAgentMessage,
                    y = e.error,
                    b = e.onClick,
                    E = (0, s.fileSize)(p),
                    T = (0, s.fileSize)(l),
                    C = (0, u.default)((t = {}, (0, i.default)(t, f.default.mediaComplete, !0), (0, i.default)(t, f.default._agent, _), t));
                return o.default.createElement("jdiv", {
                    className: f.default.mediaText
                }, o.default.createElement("jdiv", {
                    className: f.default.mediaFname,
                    title: a
                }, a), v && o.default.createElement("jdiv", {
                    className: f.default.mediaComplete
                }, y), h && o.default.createElement("jdiv", {
                    className: f.default.mediaPerc
                }, l && o.default.createElement(o.default.Fragment, null, E, " / ", T)), g && o.default.createElement("jdiv", {
                    className: C
                }, T, " ", o.default.createElement("a", (0, r.default)({
                    href: n,
                    target: "_blank",
                    rel: "noopener noreferrer"
                }, (0, c.onClickHandler)(b, !0, !m)), (0, d.default)("file_upl_download"))))
            };
        p.propTypes = {
            title: l.default.string.isRequired,
            isUploading: l.default.bool.isRequired,
            isError: l.default.bool.isRequired,
            isComplete: l.default.bool.isRequired,
            isMobile: l.default.bool.isRequired,
            isFromAgentMessage: l.default.bool.isRequired,
            url: l.default.string,
            totalSize: l.default.number,
            loadedSize: l.default.number,
            error: l.default.string,
            onClick: l.default.func.isRequired
        };
        var h = p;
        t.default = h
    }, 29043: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(98661)),
            i = a(n(45697)),
            o = n(90906),
            l = n(69845),
            u = a(n(46544)),
            s = a(n(63960)),
            c = function(e) {
                var t = e.message,
                    n = e.isFromAgentMessage;
                return r.default.createElement("jdiv", null, r.default.createElement("jdiv", {
                    className: s.default.mediaFname
                }, "Location"), r.default.createElement("jdiv", {
                    className: s.default.locationLink,
                    dangerouslySetInnerHTML: {
                        __html: (0, l.formatText)(t.text)
                    }
                }), r.default.createElement(u.default, {
                    className: s.default.time,
                    isRenderStatus: !n,
                    message: t,
                    colorSet: o.COLORS_SET.DARK
                }))
            };
        c.propTypes = {
            message: i.default.object.isRequired,
            isFromAgentMessage: i.default.bool.isRequired
        };
        var d = c;
        t.default = d
    }, 91471: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(86902),
            i = n(14310),
            o = n(20116),
            l = n(34074),
            u = n(39649),
            s = n(52424),
            c = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var d = c(n(59340)),
            f = c(n(87672)),
            p = c(n(18777)),
            h = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = O(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    i = Object.defineProperty && l;
                for (var o in e)
                    if ("default" !== o && Object.prototype.hasOwnProperty.call(e, o)) {
                        var u = i ? l(e, o) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, o, u) : r[o] = e[o]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            v = n(88928),
            g = c(n(45697)),
            m = n(81152),
            _ = n(26932),
            y = n(54415),
            b = n(87692),
            E = n(66311),
            T = n(63664),
            C = c(n(19955)),
            S = c(n(84726)),
            w = c(n(30679));

        function O(e) {
            if ("function" != typeof s) return null;
            var t = new s,
                n = new s;
            return (O = function(e) {
                return e ? n : t
            })(e)
        }

        function A(e, t) {
            var n = r(e);
            if (i) {
                var a = i(e);
                t && (a = o(a).call(a, (function(t) {
                    return l(e, t).enumerable
                }))), n.push.apply(n, a)
            }
            return n
        }

        function I(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? A(Object(n), !0).forEach((function(t) {
                    (0, f.default)(e, t, n[t])
                })) : u ? Object.defineProperties(e, u(n)) : A(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, l(n, t))
                }))
            }
            return e
        }

        function R(e) {
            var t = e.messages,
                n = e.messagePrivateId;
            (0, T.useErrorCatcher)(R.displayedName);
            var a = (0, v.useSelector)(b.selectBubbleColor),
                r = (0, v.useSelector)((function(e) {
                    return (0, E.selectMessageByPrivateId)(e, n)
                })),
                i = (0, h.useState)(!1),
                o = (0, p.default)(i, 2),
                l = o[0],
                u = o[1];

            function s(e, t) {
                _.messagesDispatchers.updateMessageBody(n, I(I({}, r.body), {}, {
                    status: t || m.MediaStatus.ERROR,
                    error: e
                }))
            }
            return r && r.body ? h.default.createElement(w.default, {
                message: r,
                storedMessages: t,
                bubbleColor: a,
                isMobile: C.default.mobileOrTablet(),
                isPreviewError: l,
                onPreviewError: function() {
                    return u(!0)
                },
                onCancelError: function() {
                    return s((0, S.default)("file_upl_cancel"), m.MediaStatus.ERROR)
                },
                onUploadError: function(e) {
                    return 401 === e ? s((0, S.default)("file_upl_expired"), m.MediaStatus.EXPIRED) : s((0, S.default)("file_upl_error"), m.MediaStatus.ERROR)
                }
            }) : (y.Monitoring.telemetryOnce("media_data_name", {
                param1: n,
                param2: (0, d.default)(t),
                param3: (0, d.default)(r)
            }), null)
        }
        R.displayedName = "MediaMessageContainer", R.propTypes = {
            messages: g.default.arrayOf(g.default.object).isRequired,
            messagePrivateId: g.default.string.isRequired
        };
        var M = R;
        t.default = M
    }, 30679: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = a(n(94184)),
            l = a(n(45697)),
            u = n(77294),
            s = n(81152),
            c = a(n(39906)),
            d = a(n(96150)),
            f = a(n(30295)),
            p = a(n(2602)),
            h = a(n(11502)),
            v = a(n(63960)),
            g = a(n(29043)),
            m = a(n(4659)),
            _ = a(n(56378)),
            y = a(n(47532));

        function b(e) {
            var t, n = e.message,
                a = e.storedMessages,
                l = e.bubbleColor,
                b = e.isMobile,
                E = e.isPreviewError,
                T = e.onPreviewError,
                C = e.onCancelError,
                S = e.onUploadError,
                w = n.body,
                O = w.file_url || w.file,
                A = w.status || s.MediaStatus.COMPLETE,
                I = w.thumb,
                R = w.type,
                M = w.mime_type;
            if (!w) throw new Error("There is no message body");
            if (O && !/^http?s:\/\//gi.test(O)) throw new Error("Bad url (xss: ".concat(O, ")"));
            var k = A === s.MediaStatus.COMPLETE,
                N = R === s.MediaType.VIDEO,
                x = R === s.MediaType.PHOTO,
                P = R === s.MediaType.LOCATION,
                L = R === s.MediaType.VOICE,
                D = R === s.MediaType.STICKER,
                j = R === s.MediaType.RICH_LINK,
                B = (0, u.isFileGif)(M),
                F = k && (I && x || N) && !E,
                U = (0, u.isAgentMessage)(n),
                H = U ? c.default : d.default,
                W = (0, f.default)(n.created_ts, "dd.mm.yy H:MM:ss"),
                G = U ? "grey" : l,
                z = (0, o.default)((t = {}, (0, r.default)(t, v.default.main, !0), (0, r.default)(t, v.default._mobile, b), (0, r.default)(t, v.default._client, !U), (0, r.default)(t, v.default._preview, F), (0, r.default)(t, v.default["_".concat(G)], !0), t));
            return j ? i.default.createElement(H, {
                messages: a,
                width: 248
            }, i.default.createElement("jdiv", {
                className: z,
                title: W
            }, i.default.createElement(y.default, {
                message: n,
                bubbleColor: l,
                isMobile: b
            }))) : L ? i.default.createElement(H, {
                messages: a
            }, i.default.createElement("jdiv", {
                className: z,
                title: W
            }, i.default.createElement(m.default, {
                message: n,
                url: O,
                color: G,
                isMobile: b,
                isFromAgentMessage: U,
                onError: S,
                onCancel: C
            }))) : D ? i.default.createElement(H, {
                messages: a
            }, i.default.createElement("jdiv", {
                className: z,
                title: W
            }, i.default.createElement(_.default, {
                message: n,
                url: O,
                color: G,
                isMobile: b,
                isFromAgentMessage: U,
                onError: S,
                onCancel: C
            }))) : P ? i.default.createElement(H, {
                messages: a
            }, i.default.createElement("jdiv", {
                className: z,
                title: W
            }, i.default.createElement(g.default, {
                message: n,
                isFromAgentMessage: U
            }))) : i.default.createElement(H, {
                messages: a,
                isPreview: F
            }, i.default.createElement("jdiv", {
                className: z,
                title: W
            }, F ? i.default.createElement(h.default, {
                message: n,
                url: O,
                isVideo: N,
                isGif: B,
                isFromAgentMessage: U,
                onError: T
            }) : i.default.createElement(p.default, {
                message: n,
                url: O,
                color: G,
                isMobile: b,
                isFromAgentMessage: U,
                onError: S,
                onCancel: C
            })))
        }
        b.propTypes = {
            message: l.default.object.isRequired,
            storedMessages: l.default.arrayOf(l.default.object).isRequired,
            bubbleColor: l.default.string.isRequired,
            isMobile: l.default.bool.isRequired,
            isPreviewError: l.default.bool.isRequired,
            onPreviewError: l.default.func.isRequired,
            onCancelError: l.default.func.isRequired,
            onUploadError: l.default.func.isRequired
        };
        var E = b;
        t.default = E
    }, 54072: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(18777)),
            u = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = d(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            s = o(n(45697)),
            c = o(n(63960));

        function d(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (d = function(e) {
                return e ? n : t
            })(e)
        }
        var f = function(e) {
            var t = e.file,
                n = e.onClick,
                a = (0, u.useState)(!0),
                r = (0, l.default)(a, 2),
                i = r[0],
                o = r[1];
            return i ? u.default.createElement(u.default.Fragment, null, u.default.createElement("jdiv", {
                className: c.default.overlayText
            }, "GIF"), u.default.createElement("jdiv", {
                className: c.default.playIcon,
                onClick: function(e) {
                    e.preventDefault(), n(t, (function() {
                        return o(!1)
                    }))
                }
            })) : null
        };
        f.propTypes = {
            file: s.default.string.isRequired,
            onClick: s.default.func.isRequired
        };
        var p = f;
        t.default = p
    }, 21964: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(77766)),
            u = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = f(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            s = o(n(45697)),
            c = n(52274),
            d = o(n(63960));

        function f(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (f = function(e) {
                return e ? n : t
            })(e)
        }
        var p = (0, u.forwardRef)((function(e, t) {
            var n, a = e.src,
                r = e.title,
                i = e.size,
                o = e.isNewMedia,
                s = e.onError,
                f = o ? (0, l.default)(n = "".concat(a, "?thumb&width=")).call(n, i.width || c.MAX_IMAGE_WIDTH) : a;
            return u.default.createElement("img", {
                ref: t,
                className: d.default.previewMediaPhoto,
                title: r,
                src: f,
                width: i.width,
                height: i.height,
                loading: "lazy",
                onError: s
            })
        }));
        p.displayName = "Image", p.propTypes = {
            title: s.default.string.isRequired,
            src: s.default.string.isRequired,
            size: s.default.shape({
                width: s.default.oneOfType([s.default.string, s.default.number]),
                height: s.default.oneOfType([s.default.string, s.default.number])
            }).isRequired,
            isNewMedia: s.default.bool.isRequired,
            onError: s.default.func.isRequired
        };
        var h = p;
        t.default = h
    }, 11502: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(54804)),
            u = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = _(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            s = o(n(45697)),
            c = n(90906),
            d = n(77294),
            f = n(81152),
            p = o(n(54072)),
            h = o(n(21964)),
            v = o(n(46544)),
            g = o(n(63960)),
            m = o(n(63070));

        function _(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (_ = function(e) {
                return e ? n : t
            })(e)
        }

        function y(e) {
            var t = e.message,
                n = e.url,
                a = e.isVideo,
                r = e.isGif,
                i = e.isFromAgentMessage,
                o = e.onError,
                s = t.body,
                _ = s.file,
                y = s.file_name,
                b = s.thumb,
                E = s.status || f.MediaStatus.COMPLETE,
                T = (0, u.useRef)(null),
                C = !(a || E === f.MediaStatus.EXPIRED),
                S = r && !(null != n && (0, l.default)(n).call(n, "gif"));
            return u.default.createElement("jdiv", {
                className: i ? g.default.mediaWrapper : g.default.clientMediaWrapper
            }, u.default.createElement("a", {
                className: g.default.previewLink,
                href: _,
                title: y,
                target: "_blank",
                rel: "nofollow noopener noreferrer"
            }, C && u.default.createElement(h.default, {
                ref: T,
                src: _,
                title: y,
                size: (0, d.getSize)(s),
                isNewMedia: (0, d.isNewMedia)(b),
                onError: o
            }), S && u.default.createElement(p.default, {
                file: _,
                onClick: function(e, t) {
                    null != T && T.current && (T.current.src = e, t())
                }
            }), u.default.createElement(v.default, {
                className: g.default.time,
                isRenderStatus: !i,
                message: t,
                colorSet: c.COLORS_SET.DARK
            })), a && u.default.createElement(m.default, {
                title: y,
                src: _,
                poster: b,
                onError: o
            }))
        }
        y.propTypes = {
            message: s.default.object.isRequired,
            url: s.default.string,
            isVideo: s.default.bool.isRequired,
            isGif: s.default.bool.isRequired,
            isFromAgentMessage: s.default.bool.isRequired,
            onError: s.default.func.isRequired
        };
        var b = y;
        t.default = b
    }, 63070: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(98661)),
            i = a(n(45697));

        function o(e) {
            var t = e.title,
                n = e.src,
                a = e.poster,
                i = e.onError;
            return r.default.createElement("video", {
                controls: !0,
                width: "250",
                preload: a ? "none" : null,
                poster: null != a ? a : null,
                title: t
            }, r.default.createElement("source", {
                src: n,
                onError: i
            }), "Video is not supported.")
        }
        o.propTypes = {
            title: i.default.string.isRequired,
            src: i.default.string.isRequired,
            poster: i.default.string,
            onError: i.default.func.isRequired
        };
        var l = o;
        t.default = l
    }, 47532: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(5872)),
            i = a(n(98661)),
            o = a(n(45697)),
            l = n(69845),
            u = n(47713),
            s = a(n(84726)),
            c = n(90361),
            d = a(n(30295)),
            f = a(n(32083)),
            p = n(16016),
            h = a(n(23360));

        function v(e) {
            var t = e.message,
                n = e.bubbleColor,
                a = t.body.title == t.body.text,
                o = (0, d.default)(t.created_ts, "H:MM");
            return i.default.createElement("jdiv", {
                className: h.default.linkWrap
            }, i.default.createElement("jdiv", {
                className: h.default.link,
                dangerouslySetInnerHTML: {
                    __html: (0, l.formatText)(t.body.url)
                }
            }, t.body.url), i.default.createElement("jdiv", {
                className: h.default.contentWrap
            }, i.default.createElement("a", {
                href: t.body.url,
                className: h.default.content,
                title: t.body.title,
                rel: "noopener noreferrer",
                target: "_blank"
            }, t.body.title ? i.default.createElement("jdiv", {
                className: h.default.title
            }, (0, p.formatTextLen)(t.body.title, 128)) : null, !a && t.body.text ? i.default.createElement("jdiv", {
                className: h.default.text
            }, (0, p.formatTextLen)(t.body.text, 128)) : null, t.body.thumb ? i.default.createElement("jdiv", {
                className: h.default.imgWrap
            }, i.default.createElement("img", {
                src: t.body.thumb,
                title: t.body.title
            })) : null)), i.default.createElement(f.default, (0, r.default)({}, (0, u.onClickHandler)((function() {
                window.open(t.body.url, "_blank")
            })), {
                title: (0, s.default)("lblView"),
                color: n,
                variant: "filled",
                size: "sm",
                radius: "md",
                component: "jdiv",
                fullWidth: !0
            }), (0, s.default)("lblView")), i.default.createElement("jdiv", (0, r.default)({
                className: h.default.time
            }, (0, c.withLocator)("msg_agent_time")), o))
        }
        v.propTypes = {
            message: o.default.object.isRequired,
            bubbleColor: o.default.string.isRequired
        };
        var g = v;
        t.default = g
    }, 56378: function(e, t, n) {
        "use strict";
        var a = n(86902),
            r = n(14310),
            i = n(20116),
            o = n(34074),
            l = n(39649),
            u = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var s = u(n(87672)),
            c = u(n(98661)),
            d = u(n(45697)),
            f = u(n(2602));

        function p(e, t) {
            var n = a(e);
            if (r) {
                var l = r(e);
                t && (l = i(l).call(l, (function(t) {
                    return o(e, t).enumerable
                }))), n.push.apply(n, l)
            }
            return n
        }

        function h(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? p(Object(n), !0).forEach((function(t) {
                    (0, s.default)(e, t, n[t])
                })) : l ? Object.defineProperties(e, l(n)) : p(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, o(n, t))
                }))
            }
            return e
        }
        var v = function(e) {
            var t = e.message,
                n = e.url,
                a = e.color,
                r = e.isMobile,
                i = e.isFromAgentMessage,
                o = e.onError,
                l = e.onCancel,
                u = h(h({}, t), {}, {
                    body: h(h({}, t.body), {}, {
                        file_name: "Sticker: " + t.body.file_name
                    })
                });
            return c.default.createElement(f.default, {
                message: u,
                url: n,
                color: a,
                isMobile: r,
                isFromAgentMessage: i,
                onError: o,
                onCancel: l
            })
        };
        v.propTypes = {
            message: d.default.object.isRequired,
            color: d.default.string.isRequired,
            isMobile: d.default.bool.isRequired,
            isFromAgentMessage: d.default.bool.isRequired,
            url: d.default.string,
            onError: d.default.func.isRequired,
            onCancel: d.default.func.isRequired
        };
        var g = v;
        t.default = g
    }, 4659: function(e, t, n) {
        "use strict";
        var a = n(86902),
            r = n(14310),
            i = n(20116),
            o = n(34074),
            l = n(39649),
            u = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var s = u(n(87672)),
            c = u(n(98661)),
            d = u(n(45697)),
            f = u(n(2602));

        function p(e, t) {
            var n = a(e);
            if (r) {
                var l = r(e);
                t && (l = i(l).call(l, (function(t) {
                    return o(e, t).enumerable
                }))), n.push.apply(n, l)
            }
            return n
        }

        function h(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? p(Object(n), !0).forEach((function(t) {
                    (0, s.default)(e, t, n[t])
                })) : l ? Object.defineProperties(e, l(n)) : p(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, o(n, t))
                }))
            }
            return e
        }

        function v(e) {
            var t = e.message,
                n = e.url,
                a = e.color,
                r = e.isMobile,
                i = e.isFromAgentMessage,
                o = e.onError,
                l = e.onCancel,
                u = h(h({}, t), {}, {
                    body: h(h({}, t.body), {}, {
                        file_name: "Voice: " + t.body.file_name
                    })
                });
            return c.default.createElement(f.default, {
                message: u,
                url: n,
                color: a,
                isMobile: r,
                isFromAgentMessage: i,
                onError: o,
                onCancel: l
            })
        }
        v.propTypes = {
            message: d.default.object.isRequired,
            color: d.default.string.isRequired,
            isMobile: d.default.bool.isRequired,
            isFromAgentMessage: d.default.bool.isRequired,
            url: d.default.string,
            onError: d.default.func.isRequired,
            onCancel: d.default.func.isRequired
        };
        var g = v;
        t.default = g
    }, 98132: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(98661)),
            i = a(n(45697)),
            o = n(77294),
            l = function(e) {
                var t = e.color,
                    n = void 0 === t ? "green" : t,
                    a = e.loaderBarStyle;
                return r.default.createElement(r.default.Fragment, null, r.default.createElement("svg", {
                    width: "42",
                    height: "42",
                    viewPort: "0 0 21 21",
                    version: "1.1",
                    xmlns: "http://www.w3.org/2000/svg"
                }, r.default.createElement("circle", {
                    r: "18",
                    cx: "21",
                    cy: "21",
                    fill: "#ffffff",
                    strokeDasharray: "119.38",
                    strokeDashoffset: "0"
                }), r.default.createElement("circle", {
                    className: a,
                    r: "18",
                    cx: "21",
                    cy: "21",
                    fill: "transparent",
                    stroke: (0, o.getCircleColor)(n),
                    strokeDasharray: "119.38",
                    strokeDashoffset: "0"
                })))
            };
        l.propTypes = {
            color: i.default.string,
            loaderBarStyle: i.default.string
        };
        var u = r.default.memo(l);
        t.default = u
    }, 77294: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.setSvgProgress = t.onLinkClick = t.isVideo = t.isPreviewImage = t.isNewMedia = t.isFileGif = t.isAgentMessage = t.getUrl = t.getSize = t.getIconName = t.getIconColor = t.getCircleColor = t.getApiHost = t.formatOldMedia = t.calculateAspectRatio = void 0;
        var r = a(n(78580)),
            i = n(44145),
            o = n(52274),
            l = n(81152),
            u = a(n(19955)),
            s = n(69882),
            c = n(81152),
            d = n(95911),
            f = n(55004),
            p = a(n(4855)),
            h = a(n(2559)),
            v = p.default.name("MediaHelpers"),
            g = function(e, t, n, a) {
                var r = Math.min(n / e, a / t);
                return {
                    width: (e * r).toFixed(),
                    height: (t * r).toFixed()
                }
            };
        t.calculateAspectRatio = g;
        t.getIconColor = function(e) {
            switch (e) {
                case "blue":
                    return h.default.BLUE_80;
                case "grey":
                    return h.default.STEEL_80;
                default:
                    return h.default.GREEN_80
            }
        };
        t.getIconName = function(e) {
            switch (e) {
                case l.MediaType.VOICE:
                    return "icon-audio";
                case l.MediaType.STICKER:
                    return "icon-document";
                default:
                    return "icon-".concat(e)
            }
        };
        t.getCircleColor = function(e) {
            switch (e) {
                case "blue":
                    return h.default.BLUE_90;
                case "grey":
                    return h.default.STEEL_90;
                default:
                    return h.default.GREEN_90
            }
        };
        t.getSize = function(e) {
            var t = {
                width: null,
                height: null
            };
            if (e.width && e.width > o.MAX_IMAGE_WIDTH) {
                var n = g(e.width, e.height, o.MAX_IMAGE_WIDTH, 500);
                return t.width = n.width, t.height = n.height, t
            }
            return t.width = e.width, t.height = e.height, t
        };
        t.isAgentMessage = function(e) {
            return e.from === l.MessageInitiator.AGENT || e.from === l.MessageInitiator.FORM || e.type === l.MessageType.PROACTIVE
        };
        t.isNewMedia = function(e) {
            return !!e && ((0, r.default)(e).call(e, "https://media") && (0, r.default)(e).call(e, "jivosite.com"))
        };
        t.onLinkClick = function(e, t, n) {
            d.promisedRequest.head(e).then((function() {
                v.warn("File is ok"), (0, f.isFunction)(n) && n()
            })).catch((function(e) {
                v.error("File is unavaiable", e), (0, f.isFunction)(t) && t(e.status)
            }))
        };
        t.getUrl = function(e) {
            return u.default.mobileOrTablet() && u.default.chromeIOS() ? null == e ? void 0 : e.replace(/^https?:\/\//i, "googlechrome://") : e
        };
        t.isPreviewImage = function(e) {
            if (!e) return !1;
            var t = e.toLowerCase();
            return /\.(gif|jpg|jpeg|png|webp)$/i.test(t)
        };
        t.isVideo = function(e) {
            return !!e && /(video\/)/i.test(e.toLowerCase())
        };
        t.isFileGif = function(e) {
            if (!e) return !1;
            var t = e.toLowerCase();
            return /\.(gif)|\/(gif)$/i.test(t)
        };
        t.getApiHost = function() {
            var e = (0, i.getSystemSettings)().apiHost;
            return (0, s.getProtocol)() + "//" + e || "https://api.jivosite.com"
        };
        t.formatOldMedia = function(e) {
            return e.name && (e.file_name = e.name), e.icon_type && (e.mime_type = e.type, e.type = e.icon_type), e.status || (e.status = e.error ? c.MediaStatus.ERROR : c.MediaStatus.COMPLETE), e
        };
        t.setSvgProgress = function(e, t, n, a) {
            if (n && t && t.current) {
                var r = (a / n * 100).toFixed(0),
                    i = t.current.getElementsByTagName("circle")[1];
                if (e && (r = 100), isNaN(r)) i.style.strokeDashoffset = 1;
                else if (i) {
                    var o = i.getAttribute("r"),
                        l = (100 - r) / 100 * (Math.PI * (2 * o));
                    i.style.strokeDashoffset = l
                }
            }
        }
    }, 18277: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = v;
        var r = a(n(2991)),
            i = a(n(87672)),
            o = a(n(98661)),
            l = a(n(94184)),
            u = a(n(45697)),
            s = a(n(30295)),
            c = n(69845),
            d = a(n(4867)),
            f = a(n(5107)),
            p = a(n(32138)),
            h = a(n(19955));

        function v(e) {
            var t, n = e.messages,
                a = (0, l.default)((t = {}, (0, i.default)(t, p.default.main, !0), (0, i.default)(t, p.default.__agent, !0), (0, i.default)(t, p.default.__mobile, h.default.mobileOrTablet()), t));
            return o.default.createElement(f.default, {
                messages: n
            }, o.default.createElement("jdiv", {
                className: a
            }, (0, r.default)(n).call(n, (function(e, t) {
                var n, a = e.toJSON(),
                    r = a.created_ts,
                    u = a.text,
                    d = (0, s.default)(r, "dd.mm.yy H:MM:ss"),
                    f = {
                        __html: (0, c.formatText)(u)
                    },
                    h = (0, l.default)((n = {}, (0, i.default)(n, p.default.message, !0), (0, i.default)(n, p.default.textWrap, !0), (0, i.default)(n, p.default.__alone, (0, c.checkAlone)(u)), n));
                return o.default.createElement("jdiv", {
                    key: t,
                    className: h,
                    title: d
                }, o.default.createElement("jdiv", {
                    className: p.default.text,
                    dangerouslySetInnerHTML: f
                }))
            }))))
        }
        v.propTypes = {
            messages: u.default.arrayOf(u.default.instanceOf(d.default))
        }
    }, 39554: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(18777)),
            u = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = v(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            s = o(n(45697)),
            c = o(n(84726)),
            d = n(81152),
            f = n(69029),
            p = o(n(4867)),
            h = o(n(33683));

        function v(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (v = function(e) {
                return e ? n : t
            })(e)
        }
        var g = function(e) {
            var t = e.message,
                n = (0, f.useEnhanced)({
                    message: t
                }),
                a = (0, l.default)(n, 2),
                r = a[0],
                i = a[1],
                o = h.default.sendErrorMessage,
                s = h.default.resend;
            return r === d.MessageStatus.SENT ? u.default.createElement("jdiv", {
                className: o
            }, "...") : u.default.createElement("jdiv", {
                className: o
            }, (0, c.default)("error_send"), ",", " ", u.default.createElement("jdiv", {
                className: s,
                onClick: i
            }, (0, c.default)("error_resend")))
        };
        g.propTypes = {
            message: s.default.instanceOf(p.default)
        };
        var m = (0, u.memo)(g);
        t.default = m
    }, 69029: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(65420),
            i = n(21611),
            o = n(93476),
            l = n(3649),
            u = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.useEnhanced = function(e) {
            var t = e.message,
                n = (0, f.useState)(t.get("status")),
                a = (0, d.default)(n, 2),
                r = a[0],
                i = a[1];

            function o() {
                return (o = (0, c.default)(E().mark((function e() {
                    var n, a, r, o, l, u, c, d, f, T, C;
                    return E().wrap((function(e) {
                        for (;;) switch (e.prev = e.next) {
                            case 0:
                                if (i(g.MessageStatus.SENT), n = t.toJSON(), a = n.body, r = n.private_id, o = n.type, l = n.text, o !== g.MessageType.MEDIA) {
                                    e.next = 13;
                                    break
                                }
                                u = (0, p.getMediaData)(t), c = u.media, d = (0, h.getClient)().departmentId, f = a.is_prechat, T = {
                                    name: "client_message",
                                    message: l,
                                    private_id: r,
                                    media: c
                                }, d && (T.widget_department_id = d), f && (T.is_prechat_btn = !0), (0, p.sendMedia)(T), setTimeout((function() {
                                    (0, p.checkForDelivered)(t)
                                }), 2e3), e.next = 21;
                                break;
                            case 13:
                                return v.messageActions.sendClientMessage(l, r), e.next = 16, v.messageActions.checkMessageStatus(r);
                            case 16:
                                if (C = e.sent, !C.isNotDelivered) {
                                    e.next = 21;
                                    break
                                }
                                return i(g.MessageStatus.NOT_DELIVERED), e.abrupt("return");
                            case 21:
                                b.messagesDispatchers.updateMessage({
                                    privateId: r
                                }, {
                                    created_ts: (new Date).getTime(),
                                    status: g.MessageStatus.SENT
                                }), (0, s.default)(y.default).call(y.default), y.default.trigger("update"), m.Monitoring.telemetry(_.TelemetryName.RESEND_CLICK);
                            case 25:
                            case "end":
                                return e.stop()
                        }
                    }), e)
                })))).apply(this, arguments)
            }
            return [r, function() {
                return o.apply(this, arguments)
            }]
        };
        var s = u(n(47302)),
            c = u(n(51161)),
            d = u(n(18777)),
            f = n(98661),
            p = n(66934),
            h = n(44145),
            v = n(65465),
            g = n(81152),
            m = n(54415),
            _ = n(83170),
            y = u(n(14264)),
            b = n(26932);

        function E() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
            E = function() {
                return e
            };
            var e = {},
                t = Object.prototype,
                n = t.hasOwnProperty,
                u = "function" == typeof r ? r : {},
                s = u.iterator || "@@iterator",
                c = u.asyncIterator || "@@asyncIterator",
                d = u.toStringTag || "@@toStringTag";

            function f(e, t, n) {
                return Object.defineProperty(e, t, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }), e[t]
            }
            try {
                f({}, "")
            } catch (e) {
                f = function(e, t, n) {
                    return e[t] = n
                }
            }

            function p(e, t, n, a) {
                var r = t && t.prototype instanceof g ? t : g,
                    i = Object.create(r.prototype),
                    o = new I(a || []);
                return i._invoke = function(e, t, n) {
                    var a = "suspendedStart";
                    return function(r, i) {
                        if ("executing" === a) throw new Error("Generator is already running");
                        if ("completed" === a) {
                            if ("throw" === r) throw i;
                            return M()
                        }
                        for (n.method = r, n.arg = i;;) {
                            var o = n.delegate;
                            if (o) {
                                var l = w(o, n);
                                if (l) {
                                    if (l === v) continue;
                                    return l
                                }
                            }
                            if ("next" === n.method) n.sent = n._sent = n.arg;
                            else if ("throw" === n.method) {
                                if ("suspendedStart" === a) throw a = "completed", n.arg;
                                n.dispatchException(n.arg)
                            } else "return" === n.method && n.abrupt("return", n.arg);
                            a = "executing";
                            var u = h(e, t, n);
                            if ("normal" === u.type) {
                                if (a = n.done ? "completed" : "suspendedYield", u.arg === v) continue;
                                return {
                                    value: u.arg,
                                    done: n.done
                                }
                            }
                            "throw" === u.type && (a = "completed", n.method = "throw", n.arg = u.arg)
                        }
                    }
                }(e, n, o), i
            }

            function h(e, t, n) {
                try {
                    return {
                        type: "normal",
                        arg: e.call(t, n)
                    }
                } catch (e) {
                    return {
                        type: "throw",
                        arg: e
                    }
                }
            }
            e.wrap = p;
            var v = {};

            function g() {}

            function m() {}

            function _() {}
            var y = {};
            f(y, s, (function() {
                return this
            }));
            var b = i && i(i(R([])));
            b && b !== t && n.call(b, s) && (y = b);
            var T = _.prototype = g.prototype = Object.create(y);

            function C(e) {
                ["next", "throw", "return"].forEach((function(t) {
                    f(e, t, (function(e) {
                        return this._invoke(t, e)
                    }))
                }))
            }

            function S(e, t) {
                function r(i, o, l, u) {
                    var s = h(e[i], e, o);
                    if ("throw" !== s.type) {
                        var c = s.arg,
                            d = c.value;
                        return d && "object" == a(d) && n.call(d, "__await") ? t.resolve(d.__await).then((function(e) {
                            r("next", e, l, u)
                        }), (function(e) {
                            r("throw", e, l, u)
                        })) : t.resolve(d).then((function(e) {
                            c.value = e, l(c)
                        }), (function(e) {
                            return r("throw", e, l, u)
                        }))
                    }
                    u(s.arg)
                }
                var i;
                this._invoke = function(e, n) {
                    function a() {
                        return new t((function(t, a) {
                            r(e, n, t, a)
                        }))
                    }
                    return i = i ? i.then(a, a) : a()
                }
            }

            function w(e, t) {
                var n = e.iterator[t.method];
                if (void 0 === n) {
                    if (t.delegate = null, "throw" === t.method) {
                        if (e.iterator.return && (t.method = "return", t.arg = void 0, w(e, t), "throw" === t.method)) return v;
                        t.method = "throw", t.arg = new TypeError("The iterator does not provide a 'throw' method")
                    }
                    return v
                }
                var a = h(n, e.iterator, t.arg);
                if ("throw" === a.type) return t.method = "throw", t.arg = a.arg, t.delegate = null, v;
                var r = a.arg;
                return r ? r.done ? (t[e.resultName] = r.value, t.next = e.nextLoc, "return" !== t.method && (t.method = "next", t.arg = void 0), t.delegate = null, v) : r : (t.method = "throw", t.arg = new TypeError("iterator result is not an object"), t.delegate = null, v)
            }

            function O(e) {
                var t = {
                    tryLoc: e[0]
                };
                1 in e && (t.catchLoc = e[1]), 2 in e && (t.finallyLoc = e[2], t.afterLoc = e[3]), this.tryEntries.push(t)
            }

            function A(e) {
                var t = e.completion || {};
                t.type = "normal", delete t.arg, e.completion = t
            }

            function I(e) {
                this.tryEntries = [{
                    tryLoc: "root"
                }], e.forEach(O, this), this.reset(!0)
            }

            function R(e) {
                if (e) {
                    var t = e[s];
                    if (t) return t.call(e);
                    if ("function" == typeof e.next) return e;
                    if (!isNaN(e.length)) {
                        var a = -1,
                            r = function t() {
                                for (; ++a < e.length;)
                                    if (n.call(e, a)) return t.value = e[a], t.done = !1, t;
                                return t.value = void 0, t.done = !0, t
                            };
                        return r.next = r
                    }
                }
                return {
                    next: M
                }
            }

            function M() {
                return {
                    value: void 0,
                    done: !0
                }
            }
            return m.prototype = _, f(T, "constructor", _), f(_, "constructor", m), m.displayName = f(_, d, "GeneratorFunction"), e.isGeneratorFunction = function(e) {
                var t = "function" == typeof e && e.constructor;
                return !!t && (t === m || "GeneratorFunction" === (t.displayName || t.name))
            }, e.mark = function(e) {
                return Object.setPrototypeOf ? Object.setPrototypeOf(e, _) : (e.__proto__ = _, f(e, d, "GeneratorFunction")), e.prototype = Object.create(T), e
            }, e.awrap = function(e) {
                return {
                    __await: e
                }
            }, C(S.prototype), f(S.prototype, c, (function() {
                return this
            })), e.AsyncIterator = S, e.async = function(t, n, a, r, i) {
                void 0 === i && (i = o);
                var l = new S(p(t, n, a, r), i);
                return e.isGeneratorFunction(n) ? l : l.next().then((function(e) {
                    return e.done ? e.value : l.next()
                }))
            }, C(T), f(T, d, "Generator"), f(T, s, (function() {
                return this
            })), f(T, "toString", (function() {
                return "[object Generator]"
            })), e.keys = function(e) {
                var t = [];
                for (var n in e) t.push(n);
                return t.reverse(),
                    function n() {
                        for (; t.length;) {
                            var a = t.pop();
                            if (a in e) return n.value = a, n.done = !1, n
                        }
                        return n.done = !0, n
                    }
            }, e.values = R, I.prototype = {
                constructor: I,
                reset: function(e) {
                    if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEach(A), !e)
                        for (var t in this) "t" === t.charAt(0) && n.call(this, t) && !isNaN(+l(t).call(t, 1)) && (this[t] = void 0)
                },
                stop: function() {
                    this.done = !0;
                    var e = this.tryEntries[0].completion;
                    if ("throw" === e.type) throw e.arg;
                    return this.rval
                },
                dispatchException: function(e) {
                    if (this.done) throw e;
                    var t = this;

                    function a(n, a) {
                        return o.type = "throw", o.arg = e, t.next = n, a && (t.method = "next", t.arg = void 0), !!a
                    }
                    for (var r = this.tryEntries.length - 1; r >= 0; --r) {
                        var i = this.tryEntries[r],
                            o = i.completion;
                        if ("root" === i.tryLoc) return a("end");
                        if (i.tryLoc <= this.prev) {
                            var l = n.call(i, "catchLoc"),
                                u = n.call(i, "finallyLoc");
                            if (l && u) {
                                if (this.prev < i.catchLoc) return a(i.catchLoc, !0);
                                if (this.prev < i.finallyLoc) return a(i.finallyLoc)
                            } else if (l) {
                                if (this.prev < i.catchLoc) return a(i.catchLoc, !0)
                            } else {
                                if (!u) throw new Error("try statement without catch or finally");
                                if (this.prev < i.finallyLoc) return a(i.finallyLoc)
                            }
                        }
                    }
                },
                abrupt: function(e, t) {
                    for (var a = this.tryEntries.length - 1; a >= 0; --a) {
                        var r = this.tryEntries[a];
                        if (r.tryLoc <= this.prev && n.call(r, "finallyLoc") && this.prev < r.finallyLoc) {
                            var i = r;
                            break
                        }
                    }
                    i && ("break" === e || "continue" === e) && i.tryLoc <= t && t <= i.finallyLoc && (i = null);
                    var o = i ? i.completion : {};
                    return o.type = e, o.arg = t, i ? (this.method = "next", this.next = i.finallyLoc, v) : this.complete(o)
                },
                complete: function(e, t) {
                    if ("throw" === e.type) throw e.arg;
                    return "break" === e.type || "continue" === e.type ? this.next = e.arg : "return" === e.type ? (this.rval = this.arg = e.arg, this.method = "return", this.next = "end") : "normal" === e.type && t && (this.next = t), v
                },
                finish: function(e) {
                    for (var t = this.tryEntries.length - 1; t >= 0; --t) {
                        var n = this.tryEntries[t];
                        if (n.finallyLoc === e) return this.complete(n.completion, n.afterLoc), A(n), v
                    }
                },
                catch: function(e) {
                    for (var t = this.tryEntries.length - 1; t >= 0; --t) {
                        var n = this.tryEntries[t];
                        if (n.tryLoc === e) {
                            var a = n.completion;
                            if ("throw" === a.type) {
                                var r = a.arg;
                                A(n)
                            }
                            return r
                        }
                    }
                    throw new Error("illegal catch attempt")
                },
                delegateYield: function(e, t, n) {
                    return this.delegate = {
                        iterator: R(e),
                        resultName: t,
                        nextLoc: n
                    }, "next" === this.method && (this.arg = void 0), v
                }
            }, e
        }
    }, 60936: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(98661)),
            i = a(n(68531)),
            o = a(n(91471)),
            l = r.default.memo((function(e) {
                if (e.messages && e.messages[0]) {
                    var t = e.messages[0];
                    if (t.get("body") && t.get("body").type) {
                        var n = t.toJSON();
                        return r.default.createElement(o.default, {
                            message: n,
                            status: n.body.status,
                            messagePrivateId: n.private_id
                        })
                    }
                    return r.default.createElement(i.default, e)
                }
            }));
        t.default = l
    }, 38282: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.Markdown = u;
        var r = a(n(98661)),
            i = a(n(45697)),
            o = n(65787),
            l = a(n(59811));

        function u(e) {
            var t = e.text,
                n = e.customerIO && o.sendUrlClickTelemetry;
            return r.default.createElement(l.default, {
                text: t,
                onLinkClick: n
            })
        }
        u.propTypes = {
            text: i.default.string.isRequired,
            customerIO: i.default.bool
        }
    }, 60569: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.Wrap = c;
        var r = a(n(5872)),
            i = a(n(80122)),
            o = a(n(98661)),
            l = a(n(45697)),
            u = a(n(32138)),
            s = ["children", "lineHeight"];

        function c(e) {
            var t = e.children,
                n = e.lineHeight,
                a = (0, i.default)(e, s),
                l = {
                    lineHeight: n
                };
            return o.default.createElement("jdiv", (0, r.default)({
                className: u.default.textWrap,
                style: l
            }, a), t)
        }
        c.propTypes = {
            children: l.default.node,
            lineHeight: l.default.string
        }
    }, 25153: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = s;
        var r = a(n(98661)),
            i = a(n(45697)),
            o = n(60569),
            l = a(n(84726)),
            u = a(n(32138));

        function s(e) {
            var t = e.children,
                n = e.isDeletedMessage,
                a = e.lineHeight;
            return n ? r.default.createElement(o.Wrap, {
                lineHeight: a
            }, r.default.createElement("jdiv", {
                className: u.default.text
            }, (0, l.default)("messageDeleted"))) : r.default.createElement(o.Wrap, {
                lineHeight: a
            }, t)
        }
        s.propTypes = {
            children: i.default.node,
            isDeletedMessage: i.default.bool.isRequired,
            lineHeight: i.default.string
        }
    }, 2046: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = E;
        var r = a(n(5872)),
            i = a(n(87672)),
            o = a(n(98661)),
            l = a(n(94184)),
            u = a(n(45697)),
            s = n(69845),
            c = n(90906),
            d = n(42958),
            f = n(90361),
            p = a(n(30295)),
            h = a(n(46544)),
            v = a(n(4867)),
            g = a(n(39554)),
            m = a(n(32138)),
            _ = a(n(25153)),
            y = n(81152),
            b = n(38282);

        function E(e) {
            var t, n = e.message,
                a = e.bubbleColor,
                u = e.lineHeight,
                v = e.isClientMessage,
                E = e.isAgentMessage,
                T = e.isDeletedMessage,
                C = e.isErrorMessage,
                S = n.toJSON(),
                w = S.body,
                O = S.text,
                A = S.updated_ts,
                I = S.created_ts,
                R = Boolean(A && !T),
                M = (0, s.checkAlone)(O),
                k = (0, p.default)(A || I, "dd.mm.yy H:MM:ss"),
                N = "msg_".concat(v ? y.MessageInitiator.CLIENT : y.MessageInitiator.AGENT),
                x = (0, l.default)((t = {}, (0, i.default)(t, m.default.message, !0), (0, i.default)(t, m.default["_" + a], !0), (0, i.default)(t, m.default.__alone, M), (0, i.default)(t, m.default.__client, v), (0, i.default)(t, m.default.__edited, !!A), (0, i.default)(t, m.default.__deleted, T), t)),
                P = (0, d.renderMessageText)(n);
            return o.default.createElement(o.default.Fragment, null, o.default.createElement("jdiv", (0, r.default)({
                className: x,
                title: k
            }, (0, f.withLocator)(N)), o.default.createElement(_.default, {
                text: P,
                time: k,
                lineHeight: u,
                customerIO: null == w ? void 0 : w.customerIO,
                isDeletedMessage: T,
                isEditedMessage: R,
                isMarkdownMessage: (0, d.isMarkdownMessage)(n)
            }, (0, d.isMarkdownMessage)(n) ? o.default.createElement("jdiv", {
                className: m.default.text
            }, o.default.createElement(b.Markdown, {
                text: O,
                customerIO: null == w ? void 0 : w.customerIO
            })) : o.default.createElement("jdiv", {
                className: m.default.text,
                dangerouslySetInnerHTML: {
                    __html: P
                }
            }), o.default.createElement(h.default, (0, r.default)({}, (0, f.withLocator)(N + "_time"), {
                className: m.default.time,
                isRenderStatus: v,
                message: n,
                colorSet: E ? c.COLORS_SET.LIGHT : c.COLORS_SET.DARK
            })))), C && o.default.createElement(g.default, {
                message: n
            }))
        }
        E.propTypes = {
            message: u.default.instanceOf(v.default).isRequired,
            bubbleColor: u.default.string.isRequired,
            isClientMessage: u.default.bool.isRequired,
            isAgentMessage: u.default.bool.isRequired,
            isDeletedMessage: u.default.bool.isRequired,
            isErrorMessage: u.default.bool.isRequired,
            lineHeight: u.default.string
        }
    }, 68531: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = c;
        var r = a(n(98661)),
            i = a(n(45697)),
            o = n(32444),
            l = a(n(19955)),
            u = a(n(4867)),
            s = a(n(20110));

        function c(e) {
            var t = e.messages,
                n = (0, o.useEnhanced)(),
                a = n.bubbleColor,
                i = n.lineHeight,
                u = l.default.mobileOrTablet();
            return r.default.createElement(s.default, {
                messages: t,
                isMobile: u,
                bubbleColor: a,
                lineHeight: i
            })
        }
        c.propTypes = {
            messages: i.default.arrayOf(i.default.instanceOf(u.default))
        }
    }, 20110: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = v;
        var r = a(n(2991)),
            i = a(n(87672)),
            o = a(n(98661)),
            l = a(n(94184)),
            u = a(n(45697)),
            s = n(42958),
            c = a(n(39906)),
            d = a(n(96150)),
            f = a(n(4867)),
            p = a(n(32138)),
            h = a(n(2046));

        function v(e) {
            var t, n = e.messages,
                a = e.isMobile,
                u = e.bubbleColor,
                f = e.lineHeight,
                v = (0, s.messageInitiator)(n[0]),
                g = v.fromClient,
                m = v.fromAgent,
                _ = m ? c.default : d.default,
                y = (0, l.default)((t = {}, (0, i.default)(t, p.default.main, !0), (0, i.default)(t, p.default.__client, g), (0, i.default)(t, p.default.__agent, m), (0, i.default)(t, p.default.__mobile, a), t));
            return o.default.createElement(_, {
                messages: n
            }, o.default.createElement("jdiv", {
                className: y
            }, (0, r.default)(n).call(n, (function(e, t) {
                return o.default.createElement(h.default, {
                    key: t,
                    message: e,
                    bubbleColor: u,
                    lineHeight: f,
                    isClientMessage: g,
                    isAgentMessage: m,
                    isDeletedMessage: (0, s.messageStatus)(e).isDeleted,
                    isErrorMessage: (0, s.isErrorMessage)(e)
                })
            }))))
        }
        v.propTypes = {
            messages: u.default.arrayOf(u.default.instanceOf(f.default)).isRequired,
            isMobile: u.default.bool.isRequired,
            bubbleColor: u.default.string.isRequired,
            lineHeight: u.default.string
        }
    }, 32444: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.useEnhanced = function() {
            var e = (0, o.useSelector)(l.selectBubbleColor),
                t = (0, i.useState)((function() {
                    return u.default.ios() ? s.default.getLineHeight() : null
                })),
                n = (0, r.default)(t, 2),
                a = n[0],
                c = n[1];
            return (0, i.useEffect)((function() {
                s.default.listenChangeZoom((function() {
                    if (u.default.ios()) {
                        var e = s.default.getLineHeight();
                        c(e)
                    }
                }))
            }), []), {
                bubbleColor: e,
                lineHeight: a
            }
        };
        var r = a(n(18777)),
            i = n(98661),
            o = n(88928),
            l = n(87692),
            u = a(n(19955)),
            s = a(n(74379))
    }, 42958: function(e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.isErrorMessage = function(e) {
            var t = !(0, i.getClient)().isIntroduced && !(0, i.getApp)().isOnline,
                n = o(e).fromAgent,
                a = l(e).isNotDelivered;
            return !n && a && !t
        }, t.isMarkdownMessage = u, t.messageInitiator = o, t.messageStatus = l, t.renderMessageText = function(e) {
            var t = e.toJSON(),
                n = t.body,
                a = t.text;
            if ("listpicker" === (null == n ? void 0 : n.type)) return n.text || n.title;
            if (u(e)) return a;
            return (0, r.formatText)(a)
        };
        var a = n(81152),
            r = n(69845),
            i = n(44145);

        function o(e) {
            var t = e.toJSON(),
                n = t.from,
                r = t.type;
            return {
                fromClient: n === a.MessageInitiator.CLIENT,
                fromBot: n === a.MessageInitiator.FORM,
                fromAgent: n === a.MessageInitiator.FORM || n === a.MessageInitiator.AGENT || r === a.MessageType.PROACTIVE
            }
        }

        function l(e) {
            var t = e.toJSON().status;
            return {
                isDeleted: t === a.MessageStatus.DELETED,
                isNotDelivered: t === a.MessageStatus.NOT_DELIVERED
            }
        }

        function u(e) {
            var t = e.toJSON().body,
                n = null == t ? void 0 : t.is_markdown,
                a = null == t ? void 0 : t.customerIO;
            return Boolean(n || a)
        }
    }, 25117: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(98661)),
            i = n(11413),
            o = n(93179),
            l = n(31694),
            u = n(27523),
            s = n(63664),
            c = n(52028),
            d = function e() {
                (0, s.useErrorCatcher)(e.displayName);
                var t = (0, l.useEnhanced)(),
                    n = t.componentRef,
                    a = t.bubbleColor,
                    d = t.isIos,
                    f = t.phrases,
                    p = t.isHidden,
                    h = t.isDisabledEmoji,
                    v = t.enablePrechat,
                    g = t.sendPhrase;
                if (c.isDesignerEditor || v) return r.default.createElement(o.PrechatMessagePure, {
                    ref: n,
                    bubbleColor: a,
                    phrases: f,
                    isHidden: p,
                    isIos: d,
                    formatText: function(e) {
                        return h ? (0, i.escape)(e) : (0, u.replaceEmoji)(e)
                    },
                    sendPhrase: g
                })
            };
        d.displayName = "PrechatMessageContainer";
        var f = d;
        t.default = f
    }, 93179: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.PrechatMessagePure = void 0;
        var l = o(n(2991)),
            u = o(n(5872)),
            s = o(n(87672)),
            c = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = v(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            d = o(n(94184)),
            f = o(n(45697)),
            p = n(47713),
            h = o(n(77335));

        function v(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (v = function(e) {
                return e ? n : t
            })(e)
        }
        var g = (0, c.forwardRef)((function(e, t) {
            var n, a = e.bubbleColor,
                r = e.phrases,
                i = e.isHidden,
                o = e.isMobile,
                f = e.isIos,
                v = e.formatText,
                g = e.sendPhrase,
                m = (0, d.default)((n = {}, (0, s.default)(n, h.default.main, !0), (0, s.default)(n, h.default["__" + a], !0), (0, s.default)(n, h.default.__mobile, o), (0, s.default)(n, h.default.__ios, f), (0, s.default)(n, h.default.__hide, i), n));
            return c.default.createElement("jdiv", {
                ref: t,
                className: m
            }, (0, l.default)(r).call(r, (function(e) {
                var t = e.id,
                    n = e.text;
                return c.default.createElement("jdiv", (0, u.default)({
                    key: t,
                    className: h.default.button
                }, (0, p.onClickHandler)((function() {
                    g(n, t)
                }), !0, !0), {
                    dangerouslySetInnerHTML: {
                        __html: v(n)
                    }
                }))
            })))
        }));
        t.PrechatMessagePure = g, g.displayName = "PrechatMessage", g.propTypes = {
            bubbleColor: f.default.string,
            phrases: f.default.arrayOf(f.default.shape({
                id: f.default.number,
                text: f.default.string
            })),
            isHidden: f.default.bool,
            isMobile: f.default.bool,
            isIos: f.default.bool,
            formatText: f.default.func,
            sendPhrase: f.default.func
        }
    }, 55329: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.updatePrechatTime = t.prechatUsed = t.prechatSetUsed = t.prechatEnabled = t.getPrechatUseTime = void 0;
        var r = n(13077),
            i = a(n(14264)),
            o = n(81152),
            l = n(44145),
            u = !1;
        t.prechatUsed = function() {
            return u
        };
        t.prechatSetUsed = function(e) {
            e && (0, r.setRuleLocal)("prechatUseTime", (new Date).getTime()), u = e
        };
        var s = function() {
            return (0, l.getSystemSettings)().premium && (0, l.getFeatures)().prechat && (0, l.getApp)().isOnline && !(0, l.getApp)().maintenance && !(0, l.getSystemSettings)().botmode
        };
        t.prechatEnabled = s;
        t.getPrechatUseTime = function() {
            var e = (0, r.getRuleLocal)("prechatUseTime");
            if (!e) return null;
            var t = ((new Date).getTime() - e) / 1e3;
            return (0, r.setRuleLocal)("prechatUseTime", null), parseInt(t)
        };
        t.updatePrechatTime = function(e) {
            if (s()) {
                var t = i.default.getMessagesByType(o.MessageType.PRECHAT);
                t.length && t[0].set("created_ts", e + 1)
            }
        }
    }, 31694: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.PrechatEmitter = void 0, t.useEnhanced = function() {
            var e = (0, i.useState)([]),
                t = (0, r.default)(e, 2),
                n = t[0],
                a = t[1],
                l = (0, i.useState)((function() {
                    return b.default.mobileOrTablet() && !(0, c.isChatPage)()
                })),
                O = (0, r.default)(l, 2),
                A = O[0],
                I = O[1],
                R = (0, o.useDispatch)(),
                M = (0, i.useRef)(),
                k = (0, o.useSelector)(S.selectPrechat),
                N = (0, o.useSelector)(S.selectEnablePrechat),
                x = (0, o.useSelector)(S.selectBubbleColor),
                P = (0, o.useSelector)(S.selectLocale),
                L = (0, o.useSelector)(S.selectDisableEmoji),
                D = b.default.mobileOrTablet(),
                j = b.default.ios();
            (0, i.useEffect)((function() {
                a(B())
            }), [B]), (0, i.useEffect)((function() {
                w.addListener("updatePrechatText", (function(e) {
                    a(B(e))
                }))
            }), [B]), (0, i.useEffect)((function() {
                T.default.set(s.Component.PRECHAT, M.current)
            }), []), (0, i.useEffect)((function() {
                var e = setTimeout((function() {
                    return I(!1)
                }), 500);
                return function() {
                    clearTimeout(e)
                }
            }), []);
            var B = (0, i.useCallback)((function(e) {
                if (Array.isArray(k) && !k.length) return [];
                for (var t = (0, d.sortBy)(null != e ? e : k, "id"), n = t.length || 3, a = [], r = 0; r < n; r++) {
                    var i, o = r + 1,
                        l = 0 === r ? "" : o,
                        u = void 0;
                    o <= 3 && (u = (0, E.default)("prechatText".concat(l))), null !== (i = t[r]) && void 0 !== i && i.text && (u = t[r].text), u && a.push({
                        id: o,
                        text: u
                    })
                }
                return a
            }), [N, k]);
            return {
                componentRef: M,
                bubbleColor: x,
                phrases: n,
                isHidden: A,
                isDisabledEmoji: L,
                isMobile: D,
                isIos: j,
                enablePrechat: N,
                sendPhrase: function(e, t) {
                    (0, h.prechatSetUsed)(!0), v.Router.needToShowIntroduceForm() ? (R((0, m.setLastMessage)(e)), v.Router.next(g.RouterEvent.ToIntroduce)) : (f.messageActions.sendClientMessage(e), C.default.play("outgoing_message"), b.default.mobileOrTablet() || (0, u.afterEmojiInserted)()), I(!0), p.Monitoring.telemetryOnce(_.TelemetryName.PRECHAT, {
                        param1: t,
                        param2: P
                    }), y.default.trackPrechatClick(t)
                }
            }
        };
        var r = a(n(18777)),
            i = n(98661),
            o = n(88928),
            l = n(89766),
            u = n(89177),
            s = n(47245),
            c = n(69882),
            d = n(45950),
            f = n(65465),
            p = n(54415),
            h = n(55329),
            v = n(21476),
            g = n(47060),
            m = n(92056),
            _ = n(83170),
            y = a(n(138)),
            b = a(n(19955)),
            E = a(n(84726)),
            T = a(n(75686)),
            C = a(n(71277)),
            S = n(87692),
            w = new l.EventEmitter;
        t.PrechatEmitter = w
    }, 68168: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(98661)),
            i = a(n(45697)),
            o = a(n(9097)),
            l = a(n(30295)),
            u = a(n(84726)),
            s = function(e) {
                var t, n, a, i, s, c, d, f = e.messages[0].time;
                return r.default.createElement("jdiv", {
                    className: o.default.main
                }, (t = f, n = new Date(t), a = new Date, i = n.getFullYear() === a.getFullYear(), s = n.getMonth() === a.getMonth(), c = n.getDate() === a.getDate(), d = n.getDate() === a.getDate() - 1, i && s ? c ? (0, u.default)("today") : d ? (0, u.default)("yesterday") : (0, l.default)(t, "dd.mm.yyyy") : (0, l.default)(t, "dd.mm.yyyy")))
            };
        s.propTypes = {
            messages: i.default.arrayOf(i.default.object)
        };
        var c = s;
        t.default = c
    }, 12822: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var i = r(n(87672)),
            o = r(n(26394)),
            l = r(n(69198)),
            u = r(n(51379)),
            s = r(n(214)),
            c = r(n(66380)),
            d = r(n(98661)),
            f = r(n(94184)),
            p = r(n(1039)),
            h = r(n(19955)),
            v = r(n(13114)),
            g = r(n(79868)),
            m = r(n(14890)),
            _ = r(n(89315));

        function y(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, c.default)(e);
                if (t) {
                    var i = (0, c.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, s.default)(this, n)
            }
        }
        var b = function(e) {
            (0, u.default)(n, e);
            var t = y(n);

            function n(e) {
                var a;
                (0, o.default)(this, n), a = t.call(this, e);
                var r = g.default.getSocial();
                return g.default.isLoginned() && (a.state = {
                    vk: r.vk,
                    fb: r.fb,
                    mode: r.mode
                }), a
            }
            return (0, l.default)(n, [{
                key: "componentWillMount",
                value: function() {
                    p.default.joint && !h.default.mobileOrTablet() || 3 != p.default.contacts_ask || this.setState({
                        mode: "email"
                    })
                }
            }, {
                key: "render",
                value: function() {
                    if (this.props.messages && this.state.mode) return d.default.createElement(v.default, {
                        padding: "sm",
                        addClassname: (0, f.default)((0, i.default)({}, _.default.wrapper, !0))
                    }, d.default.createElement(m.default, {
                        mode: this.state
                    }))
                }
            }]), n
        }(d.default.Component);
        t.default = b
    }, 99762: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.AgentAvatar = void 0;
        var r = a(n(98661)),
            i = a(n(45697)),
            o = n(67597),
            l = a(n(25648)),
            u = function(e) {
                var t = e.avatarHost,
                    n = e.agentAvatar,
                    a = n && (0, o.getAvatarUrl)(t, n),
                    i = {
                        backgroundImage: "url(".concat(a, ")")
                    };
                return r.default.createElement("jdiv", {
                    className: l.default.avatar
                }, a && r.default.createElement("jdiv", {
                    className: l.default.img,
                    style: i
                }))
            };
        t.AgentAvatar = u, u.propTypes = {
            avatarHost: i.default.string,
            agentAvatar: i.default.string
        }
    }, 88528: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = g;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = a(n(94184)),
            l = a(n(45697)),
            u = n(99762),
            s = n(69845),
            c = n(60031),
            d = a(n(19955)),
            f = a(n(84726)),
            p = a(n(4867)),
            h = a(n(74379)),
            v = a(n(25648));

        function g(e) {
            var t, n = e.messages[0].toJSON().body,
                a = (0, c.useEnhanced)(n.from_id),
                l = a.agentInfo,
                p = a.avatarUrl,
                g = (0, f.default)("chat_agent_" + n.action).replace("_AGENT_", l.get("display_name")),
                m = (0, o.default)((t = {}, (0, r.default)(t, v.default.main, !0), (0, r.default)(t, v.default._mobile, d.default.mobile()), t)),
                _ = {
                    "-webkit-text-size-adjust": d.default.ios() ? h.default.getTextSize() : null
                };
            return i.default.createElement("jdiv", {
                className: m
            }, "join" === n.action && i.default.createElement(u.AgentAvatar, {
                avatarUrl: p,
                agentAvatar: l.get("avatar_url")
            }), i.default.createElement("jdiv", {
                className: v.default.text,
                style: _,
                dangerouslySetInnerHTML: {
                    __html: (0, s.formatText)(g)
                }
            }))
        }
        g.propTypes = {
            messages: l.default.arrayOf(l.default.instanceOf(p.default))
        }
    }, 60031: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.useEnhanced = function(e) {
            var t = (0, o.useSelector)(u.selectAvatarUrl),
                n = (0, i.useState)((function() {
                    return l.default.getAgentById(e)
                })),
                a = (0, r.default)(n, 2),
                s = a[0],
                c = a[1];
            return (0, i.useEffect)((function() {
                l.default.on("update", (function() {
                    var t = l.default.getAgentById(e);
                    c(t)
                }))
            }), [e]), {
                agentInfo: s,
                avatarUrl: t
            }
        };
        var r = a(n(18777)),
            i = n(98661),
            o = n(88928),
            l = a(n(14762)),
            u = n(87692)
    }, 79232: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = a(n(94184)),
            l = a(n(45697)),
            u = a(n(48524)),
            s = a(n(40704)),
            c = n(69845),
            d = function(e) {
                var t, n, a = e.message,
                    l = e.textSize,
                    d = e.isMobile,
                    f = e.isIos,
                    p = a.body,
                    h = a.text,
                    v = (0, o.default)((t = {}, (0, r.default)(t, u.default.main, !0), (0, r.default)(t, u.default["__" + p.name], !0), (0, r.default)(t, u.default.__mobile, d), t)),
                    g = (0, o.default)((n = {}, (0, r.default)(n, u.default.text, !0), (0, r.default)(n, u.default.__mobile, d), n)),
                    m = f ? {
                        WebkitTextSizeAdjust: l
                    } : null,
                    _ = {
                        __html: (0, c.formatText)(h)
                    };
                return i.default.createElement("jdiv", {
                    className: v
                }, i.default.createElement("jdiv", {
                    style: m,
                    className: g
                }, i.default.createElement(s.default, {
                    className: u.default.callIcon,
                    iconName: p.name + "Icon"
                }), i.default.createElement("jdiv", {
                    dangerouslySetInnerHTML: _
                })))
            };
        d.propTypes = {
            message: l.default.object.isRequired,
            isMobile: l.default.bool.isRequired,
            isIos: l.default.bool.isRequired,
            textSize: l.default.string
        };
        var f = d;
        t.default = f
    }, 55961: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = f;
        var r = a(n(98661)),
            i = a(n(45697)),
            o = a(n(88528)),
            l = a(n(79232)),
            u = a(n(4867)),
            s = a(n(28558)),
            c = n(60152),
            d = n(63664);

        function f(e) {
            var t, n = e.messages;
            (0, d.useErrorCatcher)(f.displayName);
            var a = (0, c.useEnhanced)(),
                i = a.isMobile,
                u = a.isIos,
                p = a.textSize,
                h = a.lineHeight,
                v = n[0].toJSON();
            switch (null === (t = v.body) || void 0 === t ? void 0 : t.type) {
                case "call":
                    return r.default.createElement(l.default, {
                        message: v,
                        textSize: p,
                        isMobile: i,
                        isIos: u
                    });
                case "chat":
                    return r.default.createElement(o.default, {
                        messages: n
                    });
                default:
                    return r.default.createElement(s.default, {
                        message: v,
                        isMobile: i,
                        isIos: u,
                        textSize: p,
                        lineHeight: h
                    })
            }
        }
        f.displayName = "SystemMessageContainer", f.propTypes = {
            messages: i.default.arrayOf(i.default.instanceOf(u.default))
        }
    }, 28558: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(87672)),
            i = a(n(98661)),
            o = a(n(94184)),
            l = a(n(45697)),
            u = n(81152),
            s = a(n(30295)),
            c = a(n(81084)),
            d = n(69845),
            f = function(e) {
                var t, n, a = e.message,
                    l = e.isMobile,
                    f = e.isIos,
                    p = e.textSize,
                    h = e.lineHeight,
                    v = a.body,
                    g = a.created_ts,
                    m = a.type,
                    _ = a.text,
                    y = m === u.MessageType.PREFORM,
                    b = null == v ? void 0 : v.type,
                    E = (0, s.default)(g, "dd.mm.yy H:MM:ss"),
                    T = {
                        __html: (0, d.formatText)(_)
                    },
                    C = (0, o.default)((t = {}, (0, r.default)(t, c.default.main, !0), (0, r.default)(t, c.default.__mobile, l), (0, r.default)(t, c.default["__" + b], b && "text" !== b), t)),
                    S = (0, o.default)((n = {}, (0, r.default)(n, c.default.text, !0), (0, r.default)(n, c.default.__bot, y), n)),
                    w = {
                        WebkitTextSizeAdjust: f ? p : "none",
                        lineHeight: f ? h : null
                    };
                return i.default.createElement("jdiv", {
                    className: C,
                    title: E
                }, i.default.createElement("jdiv", {
                    className: S,
                    style: w,
                    dangerouslySetInnerHTML: T
                }))
            };
        f.propTypes = {
            message: l.default.shape({
                created_ts: l.default.number,
                private_id: l.default.string,
                status: l.default.string,
                text: l.default.string,
                type: l.default.string,
                body: l.default.shape({
                    type: l.default.string,
                    name: l.default.string
                })
            }),
            isIos: l.default.bool,
            isMobile: l.default.bool,
            textSize: l.default.string,
            lineHeight: l.default.string
        };
        var p = i.default.memo(f);
        t.default = p
    }, 60152: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.useEnhanced = function() {
            var e = r.default.mobileOrTablet() || (0, i.isChatPage)(),
                t = r.default.ios(),
                n = o.default.getTextSize(),
                a = o.default.getLineHeight();
            return {
                isMobile: e,
                isIos: t,
                textSize: n,
                lineHeight: a
            }
        };
        var r = a(n(19955)),
            i = n(69882),
            o = a(n(74379))
    }, 95066: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(98661)),
            i = a(n(45697)),
            o = a(n(84726)),
            l = a(n(39906)),
            u = a(n(1039)),
            s = r.default.lazy((function() {
                return n.e(772).then(n.bind(n, 66302))
            })),
            c = function(e) {
                var t = e.messages;
                return u.default.enable_webrtc_calls ? r.default.createElement(l.default, {
                    messages: t
                }, r.default.createElement(r.default.Suspense, {
                    fallback: r.default.createElement("jdiv", null, (0, o.default)("cb_loading"))
                }, r.default.createElement(s, {
                    message: t[0]
                }))) : null
            };
        c.propTypes = {
            messages: i.default.any
        };
        var d = r.default.memo(c);
        t.default = d
    }, 93254: function(e, t, n) {
        "use strict";
        var a = n(1068),
            r = n(86902),
            i = n(14310),
            o = n(20116),
            l = n(34074),
            u = n(39649),
            s = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var c = s(n(87672)),
            d = s(n(26394)),
            f = s(n(69198)),
            p = s(n(51379)),
            h = s(n(214)),
            v = s(n(66380)),
            g = s(n(98661)),
            m = n(88928),
            _ = s(n(45697)),
            y = s(n(47860)),
            b = s(n(19955)),
            E = s(n(74379)),
            T = s(n(2167)),
            C = s(n(29911)),
            S = s(n(26647)),
            w = s(n(53517)),
            O = s(n(21135)),
            A = n(21476),
            I = n(47060),
            R = n(21951),
            M = n(69882),
            k = n(46658),
            N = s(n(94184)),
            x = n(47138),
            P = n(54034),
            L = s(n(75686)),
            D = n(47245),
            j = s(n(91275));

        function B(e, t) {
            var n = r(e);
            if (i) {
                var a = i(e);
                t && (a = o(a).call(a, (function(t) {
                    return l(e, t).enumerable
                }))), n.push.apply(n, a)
            }
            return n
        }

        function F(e) {
            for (var t = 1; t < arguments.length; t++) {
                var n = null != arguments[t] ? arguments[t] : {};
                t % 2 ? B(Object(n), !0).forEach((function(t) {
                    (0, c.default)(e, t, n[t])
                })) : u ? Object.defineProperties(e, u(n)) : B(Object(n)).forEach((function(t) {
                    Object.defineProperty(e, t, l(n, t))
                }))
            }
            return e
        }

        function U(e) {
            var t = function() {
                if ("undefined" == typeof Reflect || !a) return !1;
                if (a.sham) return !1;
                if ("function" == typeof Proxy) return !0;
                try {
                    return Boolean.prototype.valueOf.call(a(Boolean, [], (function() {}))), !0
                } catch (e) {
                    return !1
                }
            }();
            return function() {
                var n, r = (0, v.default)(e);
                if (t) {
                    var i = (0, v.default)(this).constructor;
                    n = a(r, arguments, i)
                } else n = r.apply(this, arguments);
                return (0, h.default)(this, n)
            }
        }
        var H = s(n(4855)).default.name("MobileContainer"),
            W = function(e) {
                (0, p.default)(n, e);
                var t = U(n);

                function n(e) {
                    var a;
                    return (0, d.default)(this, n), (a = t.call(this, e)).showState = !1, a.state = F({}, (0, k.getCoordinates)()), a._zoomOverlay = null, a
                }
                return (0, f.default)(n, [{
                    key: "componentDidMount",
                    value: function() {
                        var e = this;
                        H.log("mount");
                        var t = function() {
                            e.setState(F({}, (0, k.getCoordinates)()))
                        };
                        (0, R.addListener)((0, M.getPageWindow)(), "resize", t), E.default.listenChangeZoom(t)
                    }
                }, {
                    key: "componentDidUpdate",
                    value: function() {
                        this.props.route === I.Route.LABEL || b.default.tablet() && this.props.route === I.Route.MOBILE_MENU || this.props.route === I.Route.HIDDEN ? E.default.unblockSite() : E.default.blockSite(), this.props.route != I.Route.HIDDEN ? this.props.route !== I.Route.LABEL && this.props.route !== I.Route.HIDDEN ? E.default.setZoomChangeIterval(500) : E.default.setZoomChangeIterval(1e3) : clearInterval(E.default.intervalId)
                    }
                }, {
                    key: "renderMenuContainer",
                    value: function() {
                        return b.default.tablet() ? null : g.default.createElement(O.default, {
                            allowedRoutes: [I.Route.MOBILE_MENU],
                            currentRoute: this.props.route,
                            name: "OmniMenuContainer"
                        }, g.default.createElement(w.default, {
                            show: !0,
                            onCancelClick: function() {
                                return A.Router.next(I.RouterEvent.CloseWindow)
                            }
                        }))
                    }
                }, {
                    key: "renderLandscapeOverlay",
                    value: function() {
                        return (0, k.shouldRenderLandscapeOverlay)(this.props.route, this.state.landscapeMode) ? g.default.createElement(S.default, {
                            onPointerDown: function() {
                                A.Router.next(I.RouterEvent.CloseWindow)
                            },
                            landscape: !0,
                            isPointer: b.default.isPointerEnabled()
                        }) : null
                    }
                }, {
                    key: "renderZoomOverlay",
                    value: function() {
                        return (0, k.shouldRenderZoomOverlay)(this.props.route) ? g.default.createElement(C.default, {
                            route: this.props.route
                        }) : null
                    }
                }, {
                    key: "renderWidgetContainer",
                    value: function() {
                        var e, t = this,
                            n = P.CallbackUtils.isCallbackEnabled();
                        return g.default.createElement(O.default, {
                            allowedRoutes: (0, k.getAllowedRoutes)(),
                            currentRoute: this.props.route,
                            name: "MobileWidgetContent"
                        }, g.default.createElement("jdiv", {
                            className: (0, N.default)((e = {}, (0, c.default)(e, y.default.mobileContainer, !0), (0, c.default)(e, y.default.__tablet, b.default.tablet() || b.default.desktop() && (0, M.isChatPage)()), e)),
                            style: {
                                zoom: (0, M.isChatPage)() ? null : (0, k.getZoom)(this.props.zoom),
                                zIndex: 2147483647,
                                "-webkit-text-size-adjust": b.default.ios() ? E.default.getTextSize() : null
                            },
                            ref: function(e) {
                                L.default.set(D.Component.MOBILE_CONTAINER, e)
                            }
                        }, g.default.createElement(T.default, {
                            needRenderCloseBtn: !1,
                            needRenderCallContainer: n,
                            needRenderDrag: !1,
                            showCloseButton: !0,
                            showHeaderText: !0,
                            showBody: !0,
                            callbackEnabled: this.props.callbackEnabled,
                            route: this.props.route,
                            onCloseButtonClick: function() {
                                j.default.closeWidget(), t.props.callbackStatus === x.CallStatus.CONNECTED && A.Router.next(I.RouterEvent.CloseWindow)
                            }
                        })))
                    }
                }, {
                    key: "render",
                    value: function() {
                        return g.default.createElement(g.default.Fragment, null, this.renderWidgetContainer(), this.renderLandscapeOverlay(), this.renderZoomOverlay(), this.renderMenuContainer())
                    }
                }]), n
            }(g.default.PureComponent);
        W.propTypes = {
            chat: _.default.bool,
            tabletMenu: _.default.bool,
            callbackEnabled: _.default.bool,
            route: _.default.string,
            position: _.default.any,
            padding: _.default.number,
            callbackStatus: _.default.oneOfType([_.default.string, _.default.bool]),
            mobileOrientation: _.default.string,
            zoom: _.default.number
        };
        var G = (0, m.connect)((function(e) {
            return {
                padding: e.settings.user.widgetPadding,
                mobileOrientation: e.settings.user.widgetMobileOrientation,
                route: e.app.route,
                callbackEnabled: e.callback.available,
                position: e.position,
                callbackStatus: e.callback.status,
                zoom: e.zoom.app
            }
        }), {})(W);
        t.default = G
    }, 46658: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.shouldRenderZoomOverlay = t.shouldRenderLandscapeOverlay = t.getZoom = t.getCoordinates = t.getAllowedRoutes = void 0;
        var r = a(n(74379)),
            i = n(69882),
            o = a(n(19955)),
            l = n(47060);
        t.getCoordinates = function() {
            return {
                landscapeMode: "landscape" === r.default.getOrientation()
            }
        };
        t.getZoom = function(e) {
            return (0, i.isWixContext)() ? 1 : e
        };
        t.shouldRenderZoomOverlay = function(e) {
            return !(0, i.isWixContext)() && e !== l.Route.HIDDEN
        };
        t.shouldRenderLandscapeOverlay = function(e, t) {
            var n = -1 !== [l.Route.HIDDEN, l.Route.LABEL].indexOf(e);
            return !(o.default.tablet() || !t || n)
        };
        t.getAllowedRoutes = function() {
            return [l.Route.CHAT, l.Route.CHAT_CALL, l.Route.CHAT_EULA, l.Route.CHAT_SOCIAL, l.Route.CHAT_MIN, l.Route.DEPARTMENTS, l.Route.INTRODUCE, l.Route.CALL, l.Route.CALL_EULA, l.Route.DEPARTMENTS, l.Route.INTRODUCE, l.Route.DEBUG, l.Route.CHAT_SETUP_CALL]
        }
    }, 11297: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(98661)),
            i = a(n(45697)),
            o = a(n(89348)),
            l = a(n(79868)),
            u = n(67597),
            s = n(54415),
            c = n(83170),
            d = function(e) {
                var t = e.show,
                    n = e.popup,
                    a = e.orientation,
                    i = e.avatarHost,
                    d = e.onClick,
                    f = e.onClose,
                    p = "left" === a,
                    h = l.default.ifIMessageEnabled() ? l.default.getJoints().links.imUrl : null;
                return r.default.createElement(o.default, {
                    show: t,
                    text: n.text,
                    agentName: n.agent.name,
                    agentAvatar: (0, u.getAvatarUrl)(i, n.agent.avatarUrl),
                    link: h,
                    isLeftOrientation: p,
                    onClick: function(e) {
                        return d(e, "popup")
                    },
                    onClose: f,
                    onLink: function() {
                        s.Monitoring.telemetry(c.TelemetryName.POWERBUTTON_OPEN + "im")
                    }
                })
            };
        d.propTypes = {
            show: i.default.bool.isRequired,
            popup: i.default.shape({
                text: i.default.string,
                agent: i.default.object
            }),
            orientation: i.default.string,
            avatarHost: i.default.string.isRequired,
            onClick: i.default.func.isRequired,
            onClose: i.default.func.isRequired
        };
        var f = d;
        t.default = f
    }, 89348: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = o(n(5872)),
            u = o(n(87672)),
            s = o(n(18777)),
            c = E(n(98661)),
            d = o(n(45697)),
            f = o(n(94184)),
            p = n(57930),
            h = n(47713),
            v = n(52274),
            g = n(90361),
            m = o(n(29384)),
            _ = E(n(40704)),
            y = o(n(59811));

        function b(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (b = function(e) {
                return e ? n : t
            })(e)
        }

        function E(e, t) {
            if (!t && e && e.__esModule) return e;
            if (null === e || "object" !== a(e) && "function" != typeof e) return {
                default: e
            };
            var n = b(t);
            if (n && n.has(e)) return n.get(e);
            var r = {},
                o = Object.defineProperty && i;
            for (var l in e)
                if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                    var u = o ? i(e, l) : null;
                    u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                }
            return r.default = e, n && n.set(e, r), r
        }
        var T = function(e) {
            var t, n, a, r = e.show,
                i = e.text,
                o = void 0 === i ? "" : i,
                d = e.link,
                b = e.agentName,
                E = e.agentAvatar,
                T = e.isLeftOrientation,
                C = e.onClick,
                S = e.onClose,
                w = e.onLink,
                O = (0, c.useRef)(null),
                A = (0, c.useState)(!1),
                I = (0, s.default)(A, 2),
                R = I[0],
                M = I[1],
                k = (0, c.useState)(0),
                N = (0, s.default)(k, 2),
                x = N[0],
                P = N[1],
                L = o.length < v.PROACTIVE_TEXT_LIMIT,
                D = x > v.PROACTIVE_MAX_HEIGHT,
                j = function(e) {
                    M(!0), setTimeout((function() {
                        S(e)
                    }), 300)
                };
            (0, c.useEffect)((function() {
                if (O.current) {
                    var e = O.current.offsetHeight;
                    e > 0 && P(e)
                }
            }), []);
            var B = (0, f.default)((t = {}, (0, u.default)(t, m.default.popup, !0), (0, u.default)(t, m.default.__show, r), (0, u.default)(t, m.default.__left, T), t)),
                F = (0, f.default)((n = {}, (0, u.default)(n, m.default.popupBlock, !0), (0, u.default)(n, m.default.__show, !0), (0, u.default)(n, m.default.__short, L), (0, u.default)(n, m.default.__left, T), n)),
                U = (0, f.default)((a = {}, (0, u.default)(a, m.default.popupAnim, !0), (0, u.default)(a, m.default.__show, !R && r), (0, u.default)(a, m.default.__longText, D), a));
            return o ? c.default.createElement("jdiv", {
                className: B
            }, c.default.createElement("jdiv", {
                className: F
            }, c.default.createElement("jdiv", (0, l.default)({
                className: U
            }, (0, h.onClickHandler)((function(e) {
                !d && function(e) {
                    M(!0), C(e)
                }(e)
            }), !0, !0)), c.default.createElement("jdiv", (0, l.default)({
                className: m.default.closeBlock
            }, (0, h.onClickHandler)(j, !0, !0), (0, g.withLocator)(p.Locator.MOBILE_POPUP_CLOSE_BUTTON)), c.default.createElement(_.default, {
                iconName: "icon-popup-close",
                color: "#959BA0",
                hoverColor: "#7D8999",
                className: m.default.closePopupIcon
            })), d && c.default.createElement("a", (0, l.default)({
                className: m.default.imOverlay,
                href: d,
                target: "_blank",
                rel: "nofollow noopener noreferrer"
            }, (0, h.onClickHandler)((function(e) {
                j(e), w()
            }), !0, !0))), b && c.default.createElement("jdiv", {
                className: m.default.avatar
            }, c.default.createElement("jdiv", {
                className: m.default.avatarImg,
                style: E && {
                    backgroundImage: "url(".concat(E, ")")
                }
            }), c.default.createElement("jdiv", {
                className: m.default.agentName
            }, b)), c.default.createElement("jdiv", {
                className: m.default.text
            }, c.default.createElement("jdiv", {
                className: m.default.textBox,
                ref: O
            }, c.default.createElement(y.default, {
                text: o,
                onLinkClick: w
            }))), D && c.default.createElement("jdiv", {
                className: m.default.moreIcon,
                style: {
                    backgroundImage: "url(".concat((0, _.getSvgBgIcon)("icon-more", "#a3aab5"), ")")
                }
            })))) : null
        };
        T.propTypes = {
            agentAvatar: d.default.string,
            agentName: d.default.string,
            isLeftOrientation: d.default.bool.isRequired,
            link: d.default.string,
            show: d.default.bool.isRequired,
            text: d.default.string,
            onClick: d.default.func.isRequired,
            onClose: d.default.func.isRequired,
            onLink: d.default.func.isRequired
        };
        var C = T;
        t.default = C
    }, 51149: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = t.MoreButton = void 0;
        var l = o(n(5872)),
            u = o(n(87672)),
            s = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = b(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            c = o(n(45697)),
            d = o(n(94184)),
            f = o(n(19955)),
            p = o(n(40704)),
            h = o(n(75686)),
            v = n(47245),
            g = n(47713),
            m = n(80598),
            _ = o(n(20117)),
            y = o(n(2559));

        function b(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (b = function(e) {
                return e ? n : t
            })(e)
        }
        var E = function(e) {
            var t, n, a = e.show,
                r = e.showBadge,
                i = void 0 !== r && r,
                o = e.color,
                c = e.onClick,
                b = (0, s.useRef)(null);
            (0, s.useLayoutEffect)((function() {
                b.current && h.default.set(v.Component.MORE_BUTTON, b.current)
            }));
            var E = (0, d.default)((t = {}, (0, u.default)(t, _.default.moreBox, !0), (0, u.default)(t, _.default.__mobile, f.default.mobileOrTablet()), (0, u.default)(t, _.default.__show, a), t)),
                T = (0, d.default)((n = {}, (0, u.default)(n, _.default.__show, i), (0, u.default)(n, _.default.moreBadge, !0), n));
            return s.default.createElement("jdiv", (0, l.default)({
                className: E
            }, (0, g.onClickHandler)(c, !0, !0), {
                ref: b
            }), s.default.createElement(p.default, {
                iconName: "icon-v",
                color: "#cccccc",
                color2: y.default.BLUE_80,
                hoverColor: (0, m.getThemeColor)(o),
                className: _.default.moreBtn
            }), s.default.createElement("jdiv", {
                className: T
            }))
        };
        t.MoreButton = E, E.propTypes = {
            show: c.default.bool.isRequired,
            showBadge: c.default.bool,
            color: c.default.string,
            onClick: c.default.func
        };
        var T = E;
        t.default = T
    }, 53517: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var l = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = S(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            u = o(n(45697)),
            s = n(88928),
            c = n(26932),
            d = n(52947),
            f = n(97277),
            p = n(21408),
            h = n(85593),
            v = n(92560),
            g = n(65465),
            m = n(35233),
            _ = n(65210),
            y = n(45959),
            b = n(87692),
            E = n(19210),
            T = n(63664),
            C = o(n(91275));

        function S(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (S = function(e) {
                return e ? n : t
            })(e)
        }
        var w = (0, d.getDevice)(),
            O = (0, l.lazy)((function() {
                return n.e(963).then(n.bind(n, 13032))
            })),
            A = function e(t) {
                var n = t.show,
                    a = t.referenceElement,
                    r = t.onCancelClick,
                    i = t.onOverlayClick;
                (0, T.useErrorCatcher)(e.displayName);
                var o = (0, s.useSelector)(m.selectApp),
                    u = (0, s.useSelector)(b.selectBillRu),
                    S = (0, s.useSelector)(_.selectCallback),
                    A = (0, s.useSelector)(y.selectClient),
                    I = (0, s.useSelector)(b.selectSettings),
                    R = (0, s.useSelector)(b.selectWidgetOrientation),
                    M = (0, l.useMemo)((function() {
                        return (w === d.DEVICE.IOS || w === d.DEVICE.ANDROID ? h.getMobileMenuItems : p.getDesktopMenuItems)({
                            app: o,
                            callback: S,
                            client: A,
                            settings: I,
                            onApp: c.appDispatchers,
                            onMessage: g.messageActions,
                            onUser: c.userDispatchers,
                            onChat: w === d.DEVICE.IOS || w === d.DEVICE.ANDROID ? C.default.openChatCallbacks : E.showChat
                        })
                    }), [o, S, A, I]);
                return !n || (0, v.isEmpty)(M) ? null : l.default.createElement(l.Suspense, {
                    fallback: null
                }, l.default.createElement(O, {
                    copyright: (0, f.getCopyright)(u),
                    device: w,
                    menuItems: M,
                    orientation: R,
                    referenceElement: a,
                    onCancelClick: function() {
                        return (0, h.onCancelClick)(r)
                    },
                    onOverlayClick: i
                }))
            };
        A.displayName = "OmnichannelMenu", A.propTypes = {
            show: u.default.bool,
            referenceElement: u.default.oneOfType([u.default.element, function() {
                return null
            }]),
            onCancelClick: u.default.func,
            onOverlayClick: u.default.func
        };
        var I = A;
        t.default = I
    }, 97277: function(e, t, n) {
        "use strict";
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.getCopyright = void 0;
        var a = n(68403),
            r = n(67597);
        t.getCopyright = function(e) {
            return {
                show: (0, a.showAd)(),
                link: (0, r.getUtmLink)("mobile_menu"),
                icon: e ? "logo-jivosite-white" : "logo-jivochat-white"
            }
        }
    }, 21408: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.getDesktopMenuItems = void 0;
        var r = a(n(77766)),
            i = n(52947),
            o = n(31984),
            l = n(69882),
            u = n(54415),
            s = n(47060),
            c = n(83170),
            d = a(n(138)),
            f = a(n(19955)),
            p = a(n(84726)),
            h = a(n(79868)),
            v = a(n(2559)),
            g = (0, i.getDevice)(),
            m = function(e, t) {
                return e ? (0, p.default)("social_text_" + (t || 1)) : null
            },
            _ = function(e) {
                d.default.trackSocial(e), u.Monitoring.telemetry(c.TelemetryName.LABEL_BUTTONS + e)
            };
        t.getDesktopMenuItems = function(e) {
            var t, n, a = e.app,
                i = e.callback,
                u = e.settings,
                c = e.onApp,
                d = e.onMessage,
                y = e.onChat,
                b = e.onUser,
                E = [],
                T = a.isOnline,
                C = u.features,
                S = u.user;
            if (C.joint) {
                var w = C.joint,
                    O = w.tg,
                    A = w.im,
                    I = w.vk,
                    R = w.fb,
                    M = w.ig,
                    k = w.wa,
                    N = w.sb;
                O && O.botname && E.push({
                    url: "https://t.me/" + O.botname,
                    title: "Telegram",
                    subTitle: null,
                    iconName: "telegram",
                    iconColor: null,
                    device: g,
                    onClick: function() {
                        return _("tg")
                    }
                }), A && A.joint_id && f.default.supportsAbc() && E.push({
                    url: "sms://open?service=iMessage&recipient=urn:biz:".concat(A.joint_id, "&biz-intent-id=click_in_jivo_desktop"),
                    title: (0, p.default)("lbAbcText"),
                    subTitle: null,
                    iconName: "icon-im",
                    iconColor: null,
                    device: g,
                    onClick: function() {
                        return _("im")
                    }
                }), I && I.joint_id && E.push({
                    url: "https://vk.com/im?sel=-" + I.joint_id,
                    title: (0, p.default)("label_vk_text"),
                    subTitle: m(T, S.socialResponse),
                    iconName: "vk",
                    iconColor: null,
                    device: g,
                    onClick: function() {
                        return _("vk")
                    }
                }), R && R.joint_id && E.push({
                    url: "https://www.facebook.com/messages/t/" + R.joint_id,
                    title: (0, p.default)("label_fb_text"),
                    subTitle: m(T, S.socialResponse),
                    iconName: "fb",
                    iconColor: null,
                    device: g,
                    onClick: function() {
                        return _("fb")
                    }
                }), M && M.group_name && E.push({
                    url: "https://www.instagram.com/" + M.group_name,
                    title: "Instagram",
                    subTitle: null,
                    iconName: "igIcon",
                    iconColor: null,
                    device: g,
                    onClick: function() {
                        return _("ig")
                    }
                }), k && E.push({
                    url: "https://wa.me/" + k,
                    title: "WhatsApp",
                    subTitle: null,
                    iconName: "wa",
                    iconColor: null,
                    device: g,
                    onClick: function() {
                        return _("wa")
                    }
                }), N && E.push({
                    url: null,
                    title: (0, p.default)("omni_sb_link"),
                    subTitle: null,
                    iconName: "sb",
                    iconColor: null,
                    device: g,
                    onClick: function() {
                        h.default.setPopupMode("sb"), y(T, s.RouterEvent.ToSocial), _("sb")
                    }
                })
            }
            i.available && E.push({
                url: null,
                title: i.isDelayed && u.user.callback ? (0, p.default)("callback_delayed_button_submit") : (0, r.default)(t = (0, r.default)(n = "".concat((0, p.default)("cw_callAfter"), " ")).call(n, u.user.callback.time, " ")).call(t, (0, o.getTextSeconds)(u.user.callback.time), "!"),
                subTitle: null,
                iconName: "callback-btn",
                iconColor: v.default.GREEN_80,
                device: g,
                onClick: function() {
                    b.setCallHeaderText(null), y(T, s.RouterEvent.ToCall), _("call")
                }
            });
            return !(0, l.isChatPage)() && E.length && E.push({
                url: null,
                title: T ? (0, p.default)("cw_typeInChat") : (0, p.default)("lblLeaveMessage"),
                subTitle: null,
                iconName: "chat",
                iconColor: v.default.GREEN_80,
                device: g,
                onClick: function() {
                    c.setAppIsFocused(!0), d.addPrechatMessage(), y(T, s.RouterEvent.Navigate), _("chat")
                }
            }), E
        }
    }, 52947: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.getDevice = t.DEVICE = void 0;
        var r = a(n(19955)),
            i = {
                IOS: "ios",
                ANDROID: "android",
                TABLET: "tablet",
                DESKTOP: "desktop"
            };
        t.DEVICE = i;
        t.getDevice = function() {
            return r.default.tablet() ? i.TABLET : r.default.ios() ? i.IOS : r.default.mobile() ? i.ANDROID : i.DESKTOP
        }
    }, 85593: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.onCancelClick = t.getMobileMenuItems = void 0;
        var r = a(n(77766)),
            i = n(52947),
            o = n(48357),
            l = n(31984),
            u = n(69882),
            s = n(55004),
            c = n(68408),
            d = n(54415),
            f = n(21476),
            p = n(47060),
            h = n(83170),
            v = a(n(138)),
            g = a(n(19955)),
            m = a(n(84726)),
            _ = a(n(2559)),
            y = (0, i.getDevice)(),
            b = function(e) {
                var t = "https://telegram.me/";
                e && ("RU" === e.split(";")[0] && (t = "tg://resolve/?domain="));
                return t
            },
            E = function(e) {
                v.default.trackMobileSocial(e), d.Monitoring.telemetry(h.TelemetryName.POWERBUTTON_OPEN + e)
            },
            T = function(e) {
                var t = e.onApp,
                    n = e.onMessage,
                    a = e.onChat;
                (0, c.isPowerPhone)() || (t.setAppIsFocused(!0), n.deleteUnansweredOfflineSystemInvite(), n.offlineSystemInvite(), f.Router.next(p.RouterEvent.ToCall), a()), v.default.trackMobileCallClick(), d.Monitoring.telemetry(h.TelemetryName.POWERBUTTON_OPEN_CALLBACK)
            };
        t.getMobileMenuItems = function(e) {
            var t, n, a, i, s, c, v, C, S = e.app,
                w = e.callback,
                O = e.client,
                A = e.settings,
                I = e.onApp,
                R = e.onChat,
                M = e.onMessage,
                k = [],
                N = S.isOnline,
                x = A.features,
                P = A.system;
            if (x.joint) {
                var L = x.joint,
                    D = L.tg,
                    j = L.im,
                    B = L.vk,
                    F = L.fb,
                    U = L.ig,
                    H = L.vb,
                    W = L.wa,
                    G = L.sb;
                D && D.botname && k.push({
                    url: b(A.system.geoIp) + D.botname,
                    title: "Telegram",
                    subTitle: null,
                    iconName: "telegram",
                    iconColor: null,
                    device: y,
                    onClick: function() {
                        return E("tg")
                    }
                }), j && j.joint_id && g.default.supportsIMessage() && k.push({
                    url: "sms://open?service=iMessage&recipient=urn:biz:".concat(j.joint_id, "&biz-intent-id=click_in_jivo"),
                    title: (0, m.default)("lblMessagesApp"),
                    subTitle: null,
                    iconName: "icon-im",
                    iconColor: null,
                    device: y,
                    onClick: function() {
                        return E("im")
                    }
                }), B && B.joint_id && k.push({
                    url: "https://vk.me/club" + B.joint_id,
                    title: (0, m.default)("social_vk"),
                    subTitle: null,
                    iconName: "vk",
                    iconColor: null,
                    device: y,
                    onClick: function() {
                        return E("vk")
                    }
                }), F && F.joint_id && k.push({
                    url: "https://m.me/" + F.joint_id,
                    title: "Facebook Messenger",
                    subTitle: null,
                    iconName: "fb",
                    iconColor: null,
                    device: y,
                    onClick: function() {
                        return E("fb")
                    }
                }), U && U.group_name && k.push({
                    url: "https://www.instagram.com/" + U.group_name,
                    title: "Instagram",
                    subTitle: null,
                    iconName: "igIcon",
                    iconColor: null,
                    device: y,
                    onClick: function() {
                        return E("ig")
                    }
                }), H && H.botname && k.push({
                    url: "viber://pa?chatURI=" + H.botname,
                    title: "Viber",
                    subTitle: null,
                    iconName: "viber",
                    iconColor: null,
                    device: y,
                    onClick: function() {
                        return E("vb")
                    }
                }), W && k.push({
                    url: "https://wa.me/" + W,
                    title: "WhatsApp",
                    subTitle: null,
                    iconName: "wa",
                    iconColor: null,
                    device: y,
                    onClick: function() {
                        return E("wa")
                    }
                }), G && G.widget_id && k.push({
                    url: x.enableSberQr ? (t = {
                        chatStarted: S.chatStarted,
                        clientId: O.clientId,
                        jointId: G.widget_id,
                        visitorId: O.visitorId,
                        widgetId: P.widgetId
                    }, n = t.chatStarted, a = t.clientId, i = t.jointId, s = t.visitorId, c = t.widgetId, (0, o.getSberLink)(!0, i, a, c, n, s, (function(e) {
                        return d.Monitoring.telemetryOnce(h.TelemetryName.QR_ERROR, {
                            param1: e ? e.message : null
                        })
                    }))) : null,
                    title: (0, m.default)("omni_sb_link"),
                    subTitle: null,
                    iconName: "sb",
                    iconColor: null,
                    device: y,
                    onClick: function() {
                        return E("sb")
                    }
                })
            }
            if (w.available) k.push({
                url: null,
                title: w.isDelayed && A.user.callback ? (0, m.default)("callback_delayed_button_submit") : (0, r.default)(v = (0, r.default)(C = "".concat((0, m.default)("cw_callAfter"), " ")).call(C, A.user.callback.time, " ")).call(v, (0, l.getTextSeconds)(A.user.callback.time), "!"),
                subTitle: null,
                iconName: "callback-btn",
                iconColor: _.default.GREEN_80,
                device: y,
                onClick: function() {
                    return T({
                        onApp: I,
                        onChat: R,
                        onMessage: M
                    })
                }
            });
            else if (A.user.powerButtonPhone) {
                var z;
                k.push({
                    url: "tel:".concat(A.user.powerButtonPhone),
                    title: (0, r.default)(z = "".concat((0, m.default)("lblCallMe"), " ")).call(z, A.user.powerButtonPhone),
                    subTitle: null,
                    iconName: "callback-btn",
                    iconColor: _.default.GREEN_80,
                    device: y,
                    onClick: function() {
                        return T({
                            onApp: I,
                            onChat: R,
                            onMessage: M
                        })
                    }
                })
            }
            return (0, u.isChatPage)() || k.push({
                url: null,
                title: N ? (0, m.default)("onlineChat") : (0, m.default)("lblLeaveMessage"),
                subTitle: null,
                iconName: "chat",
                iconColor: _.default.GREEN_80,
                device: y,
                onClick: function() {
                    return function(e) {
                        var t = e.onApp,
                            n = e.onMessage,
                            a = e.onChat;
                        t.setAppIsFocused(!0), t.setChatOpenByClient(!0), n.deleteUnansweredOfflineSystemInvite(), n.addPrechatMessage(), n.offlineSystemInvite(), f.Router.next(p.RouterEvent.ToChat), a(), d.Monitoring.telemetry(h.TelemetryName.POWERBUTTON_OPEN_CHAT)
                    }({
                        onApp: I,
                        onChat: R,
                        onMessage: M
                    })
                }
            }), k
        };
        t.onCancelClick = function(e) {
            return (0, u.isChatPage)() ? (0, s.isFunction)(e) && e() : f.Router.next(p.RouterEvent.CloseWindow)
        }
    }, 21135: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = void 0;
        var r = a(n(78580)),
            i = a(n(98661)),
            o = a(n(45697)),
            l = function(e) {
                var t = e.children,
                    n = e.allowedRoutes,
                    a = e.currentRoute;
                return (0, r.default)(n).call(n, a) ? i.default.createElement(i.default.Fragment, null, t) : null
            };
        l.propTypes = {
            children: o.default.oneOfType([o.default.arrayOf(o.default.node), o.default.node, o.default.func]).isRequired,
            allowedRoutes: o.default.arrayOf(o.default.string).isRequired,
            currentRoute: o.default.string.isRequired
        };
        var u = i.default.memo(l);
        t.default = u
    }, 83502: function(e, t, n) {
        "use strict";
        var a = n(23765),
            r = n(52424),
            i = n(34074),
            o = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = t.componentProps = void 0;
        var l = o(n(77766)),
            u = o(n(5872)),
            s = o(n(87672)),
            c = function(e, t) {
                if (!t && e && e.__esModule) return e;
                if (null === e || "object" !== a(e) && "function" != typeof e) return {
                    default: e
                };
                var n = C(t);
                if (n && n.has(e)) return n.get(e);
                var r = {},
                    o = Object.defineProperty && i;
                for (var l in e)
                    if ("default" !== l && Object.prototype.hasOwnProperty.call(e, l)) {
                        var u = o ? i(e, l) : null;
                        u && (u.get || u.set) ? Object.defineProperty(r, l, u) : r[l] = e[l]
                    }
                r.default = e, n && n.set(e, r);
                return r
            }(n(98661)),
            d = o(n(45697)),
            f = o(n(94184)),
            p = n(57930),
            h = n(47060),
            v = n(90361),
            g = o(n(19955)),
            m = o(n(11297)),
            _ = o(n(53517)),
            y = o(n(21135)),
            b = o(n(56145)),
            E = o(n(40977)),
            T = o(n(40704));

        function C(e) {
            if ("function" != typeof r) return null;
            var t = new r,
                n = new r;
            return (C = function(e) {
                return e ? n : t
            })(e)
        }
        var S = function(e) {
                var t, n, a, r, i = e.isCallEnabled,
                    o = e.isTopEnabled,
                    d = e.showLogo,
                    C = e.top,
                    S = e.left,
                    w = e.unReadMessages,
                    O = e.popup,
                    A = e.iconColor,
                    I = e.iconTopColor,
                    R = e.widgetMobileOrientation,
                    M = e.powerButtonColor,
                    k = e.zoom,
                    N = e.linkOverlay,
                    x = e.onOverlayClick,
                    P = e.isOnline,
                    L = e.route,
                    D = e.onClick,
                    j = e.onPopupClick,
                    B = e.onClosePopupClick,
                    F = e.hidden,
                    U = e.isCustomLabel,
                    H = e.isDesktop,
                    W = e.desktopPosition,
                    G = e.avatarHost,
                    z = e.isOmnichannelMenu,
                    V = e.toggleOmnichannelMenu,
                    q = (0, c.useRef)(null),
                    K = k.user > 1.1,
                    Y = (t = {}, (0, s.default)(t, E.default.wrap, !0), (0, s.default)(t, E.default._orientationRight, W ? "right" === W : "right" === R), (0, s.default)(t, E.default._orientationLeft, W ? "left" === W : "left" === R), (0, s.default)(t, E.default._hidden, F), (0, s.default)(t, E.default._hoverMenu, H), (0, s.default)(t, "__jivoMobileButton", !(!g.default.mobileOrTablet() || K)), (0, s.default)(t, "__jivoDesktopButton", H), t),
                    X = {};
                K ? X.transform = (0, l.default)(a = (0, l.default)(r = "translate(".concat(S, "px,")).call(r, C, "px) scale(")).call(a, k.app, ")") : 1 !== k.app && (X.zoom = k.app);
                var Z, J = !1;
                return c.default.createElement("jdiv", (0, u.default)({
                    className: (0, f.default)(Y),
                    style: X
                }, (0, v.withLocator)(p.Locator.POWER_BUTTON)), O ? c.default.createElement(m.default, {
                    show: !0,
                    popup: O,
                    orientation: R,
                    avatarHost: G,
                    onClick: j,
                    onClose: B
                }) : null, N ? c.default.createElement("a", {
                    className: E.default.overlay,
                    href: N,
                    target: g.default.chromeIOS() ? "_self" : "_blank",
                    rel: "nofollow noopener noreferrer",
                    onPointerDown: x
                }) : null, c.default.createElement("jdiv", {
                    ref: q,
                    className: (0, f.default)((n = {}, (0, s.default)(n, E.default.button, !0), (0, s.default)(n, E.default.__hide, U), (0, s.default)(n, E.default.__inzoom, K), n)),
                    style: {
                        background: M
                    },
                    onClick: function(e) {
                        !H && V(), !g.default.isTouchEnabled() && D(e)
                    },
                    onTouchStart: function() {
                        J = !1
                    },
                    onTouchMove: function() {
                        J = !0
                    },
                    onTouchEnd: function(e) {
                        J || (e.preventDefault(), V(), D(e))
                    }
                }, w ? c.default.createElement("jdiv", {
                    className: E.default.messagesLabel
                }, c.default.createElement("jdiv", {
                    className: E.default.badge
                }, w)) : null, (Z = H ? [h.Route.LABEL, h.Route.MOBILE_MENU] : [h.Route.LABEL], c.default.createElement(y.default, {
                    allowedRoutes: Z,
                    currentRoute: L,
                    name: "Icons"
                }, c.default.createElement(b.default, {
                    showLogo: d,
                    isCallEnabled: i,
                    isTopEnabled: o,
                    iconColor: A,
                    powerButtonColor: I,
                    isOnline: P
                }))), H ? null : c.default.createElement(y.default, {
                    allowedRoutes: [h.Route.MOBILE_MENU],
                    currentRoute: L,
                    name: "CloseIcon"
                }, c.default.createElement("jdiv", {
                    className: E.default.closeIconWrap
                }, c.default.createElement(T.default, {
                    iconName: "icon-close",
                    color: A,
                    className: E.default.closeIcon
                })))), function() {
                    var e, t = H ? [h.Route.LABEL] : [h.Route.MOBILE_MENU];
                    return c.default.createElement(y.default, {
                        allowedRoutes: t,
                        currentRoute: L,
                        name: "OmniMenu"
                    }, c.default.createElement("jdiv", {
                        className: (0, f.default)((e = {}, (0, s.default)(e, E.default.menuWrap, !0), (0, s.default)(e, E.default.__hover, H), e))
                    }, c.default.createElement(_.default, {
                        show: z,
                        referenceElement: q
                    })))
                }())
            },
            w = S.propTypes = {
                isCallEnabled: d.default.bool,
                isTopEnabled: d.default.bool,
                showLogo: d.default.bool,
                top: d.default.number,
                left: d.default.number,
                unReadMessages: d.default.number,
                popup: d.default.any,
                iconColor: d.default.string,
                iconTopColor: d.default.string,
                widgetMobileOrientation: d.default.string,
                powerButtonColor: d.default.string,
                zoom: d.default.any,
                linkOverlay: d.default.any,
                onOverlayClick: d.default.func,
                isOnline: d.default.bool,
                route: d.default.string,
                onClick: d.default.func,
                onPopupClick: d.default.func,
                onClosePopupClick: d.default.func,
                hidden: d.default.bool,
                isCustomLabel: d.default.bool,
                isDesktop: d.default.bool,
                desktopPosition: d.default.string,
                avatarHost: d.default.string
            };
        t.componentProps = w;
        var O = c.default.memo(S);
        t.default = O
    }, 42582: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.default = d;
        var r = a(n(98661)),
            i = n(63664),
            o = a(n(83502)),
            l = n(23119),
            u = n(47060),
            s = n(69882),
            c = a(n(21135));

        function d() {
            (0, i.useErrorCatcher)(d.displayName);
            var e = (0, l.useEnhanced)(),
                t = e.position,
                n = e.isHidden,
                a = e.route,
                f = e.userZoom,
                p = e.isCallEnabled,
                h = e.isTopEnabled,
                v = e.isLogoShow,
                g = e.unreadMessages,
                m = e.popup,
                _ = e.iconColor,
                y = e.iconTopColor,
                b = e.widgetMobileOrientation,
                E = e.powerButtonColorComputed,
                T = e.powerButtonDesktopPosition,
                C = e.zoom,
                S = e.isOnline,
                w = e.linkOverlay,
                O = e.isCustomLabel,
                A = e.avatarUrl,
                I = e.isOmniMenuShow,
                R = e.allowedRoutes,
                M = e.isMobileOrTablet,
                k = e.isDesktop,
                N = e.labelBubble,
                x = e.onToggleOmniMenu,
                P = e.onClickHandler,
                L = e.onOverlayClick,
                D = e.onClosePopupClick,
                j = t.top,
                B = t.left;
            return a === u.Route.HIDDEN || f > 2 || (0, s.isChatPage)() || !M && window.parent !== window.top || k && !N ? null : r.default.createElement(c.default, {
                allowedRoutes: R,
                currentRoute: a,
                name: "PowerButtonNew"
            }, r.default.createElement(o.default, {
                hidden: n,
                isCallEnabled: p,
                isTopEnabled: h,
                showMenu: !1,
                showLogo: v,
                top: j,
                left: B,
                unReadMessages: g,
                popup: m,
                iconColor: _,
                iconTopColor: y,
                widgetMobileOrientation: b,
                powerButtonColor: E,
                zoom: C,
                isOnline: S,
                route: a,
                onClick: P,
                linkOverlay: w,
                onOverlayClick: L,
                onPopupClick: function(e) {
                    return P(e, !0)
                },
                onClosePopupClick: D,
                isCustomLabel: O,
                isDesktop: k,
                desktopPosition: T,
                avatarHost: A,
                isOmnichannelMenu: I,
                toggleOmnichannelMenu: x
            }))
        }
        d.displayName = "PowerButtonContainerNew", d.propTypes = {}
    }, 933: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.reportOpenTelemetry = t.openMenuClick = t.onOverlayClick = t.onClosePopupClick = t.handleUnreadClick = t.handleOpenMenuClick = t.handleButtonClick = t.getUnreadMessages = t.getProactiveAgent = t.getPowerButtonColor = t.getPosition = t.getPopup = t.getOverlay = t.getIsCallEnabled = t.getIconColor = t.addHistory = void 0;
        var r = a(n(27104)),
            i = n(54034),
            o = n(69882),
            l = n(65465),
            u = a(n(74379)),
            s = a(n(19955)),
            c = n(21476),
            d = n(47060),
            f = n(26932),
            p = a(n(91275)),
            h = n(54415),
            v = n(83170),
            g = a(n(79868)),
            m = a(n(32149)),
            _ = a(n(66547)),
            y = n(67597),
            b = n(81152),
            E = n(44145),
            T = a(n(4855)).default.name("PowerBtnHelpers");
        t.getPowerButtonColor = function(e, t, n, a) {
            return t ? r.default.getGradientBg(n, a) : e
        };
        t.getIconColor = function(e, t, n) {
            return (t ? r.default.isLightColor(n) : r.default.isLightColor(e)) ? "#3e414f" : "#fff"
        };
        t.getIsCallEnabled = function() {
            return i.CallbackUtils.isCallbackEnabled()
        };
        var C = function(e, t) {
            var n = (0, E.getProactive)(),
                a = !!n.text && n.status !== b.MessageStatus.READ;
            return t && !a && (a = !0), t || ! function(e) {
                    if (!e) return 0;
                    var t = 0;
                    return e.forEach((function(e) {
                        e.from === b.MessageInitiator.AGENT && e.status !== b.MessageStatus.READ && e.type == b.MessageType.FOR_TEST && t++
                    })), t
                }(e) || (0, E.getApp)().isOnline || (a = !0),
                function(e) {
                    if (!e) return 0;
                    var t = 0;
                    return e.forEach((function(e) {
                        e.from === b.MessageInitiator.AGENT && e.status !== b.MessageStatus.READ && e.status !== b.MessageStatus.DELETED && e.type !== b.MessageType.FOR_TEST && t++
                    })), t
                }(e) + (a ? 1 : 0)
        };
        t.getUnreadMessages = C;
        t.getPosition = function(e, t) {
            var n = (0, o.getPageWindow)().visualViewport,
                a = "left" === t,
                r = u.default.isSiteOptimizedForMobile ? -15 : 15;
            if (s.default.mobileOrTablet() && n && e >= 1.1) {
                var i = u.default.getPseudo(),
                    l = i && i.getBoundingClientRect().height || 0,
                    c = i && i.getBoundingClientRect().width || 0,
                    d = n.width - c + n.offsetLeft,
                    f = n.offsetLeft + r * e,
                    p = a ? f : d;
                return {
                    top: n.height - l + n.offsetTop - r,
                    left: p - r
                }
            }
            return {
                left: null,
                top: null
            }
        };
        var S = function() {
            if (window.history && "function" == typeof window.history.pushState && s.default.mobileOrTablet()) {
                var e = m.default.getInstance();
                e && e.setHistoryState()
            }
        };
        t.addHistory = S;
        var w = function() {
            f.appDispatchers.setAppIsFocused(!0), c.Router.next(d.RouterEvent.Navigate), l.messageActions.deleteUnansweredOfflineSystemInvite(), l.messageActions.offlineSystemInvite(), l.messageActions.addPrechatMessage(), p.default.openChatCallbacks(), A("from_pwr")
        };
        t.handleButtonClick = w;
        var O = function() {
            f.appDispatchers.setChatOpenByClient(!1), c.Router.next(d.RouterEvent.ToMobileMenu), h.Monitoring.telemetry(v.TelemetryName.POWERBUTTON_OPEN_MENU, {
                param1: "menu",
                param2: s.default.isPointerEnabled() ? 1 : 0,
                param3: (0, o.getPageWindow)().navigator.userAgent
            })
        };
        t.handleOpenMenuClick = O;
        var A = function(e) {
            var t = {};
            e && (t.param1 = e, t.param2 = s.default.isPointerEnabled() ? 1 : 0, t.param3 = (0, o.getPageWindow)().navigator.userAgent), (0, E.getSystemSettings)().botmode && (t.param4 = 1), h.Monitoring.telemetry(v.TelemetryName.WIDGET_CLICK, t)
        };
        t.reportOpenTelemetry = A;
        var I = function(e, t) {
            f.appDispatchers.setAppIsFocused(!0), e ? c.Router.next(d.RouterEvent.ToCall) : (c.Router.next(d.RouterEvent.ToChat), f.userDispatchers.setCallHeaderText(null)), p.default.openChatCallbacks(), l.messageActions.readProactive(), A(t ? "from_popup" : null)
        };
        t.handleUnreadClick = I;
        t.openMenuClick = function(e, t, n, a, r) {
            T.log("onMenuClick helper");
            var i = g.default.getJoints();
            t !== d.Route.MOBILE_MENU ? (f.appDispatchers.setChatOpenByClient(!0), C(r, n) ? I(n, a) : i.count > 0 ? O() : w()) : s.default.tablet() && ((0, o.isChatPage)() || c.Router.next(d.RouterEvent.CloseWindow)), S()
        };
        t.getOverlay = function(e) {
            return !!(s.default.supportsIMessage() && e && e.joint_id) && (0, y.getIMessageLink)(e.joint_id)
        };
        t.onOverlayClick = function(e) {
            e.stopPropagation(), h.Monitoring.telemetry(v.TelemetryName.POWERBUTTON_OPEN + "im")
        };
        t.getPopup = function(e, t) {
            if (!e) return null;
            if (t && t.text && t.status !== b.MessageStatus.READ) {
                var n = R(t);
                return {
                    text: t.text,
                    agent: n
                }
            }
        };
        var R = function(e) {
            return e.text ? e.botId ? (0, E.getBotById)(e.botId) : e.agentId ? (0, E.getAgentById)(e.agentId) : null : null
        };
        t.getProactiveAgent = R;
        t.onClosePopupClick = function() {
            l.messageActions.readProactive(), _.default.set("close_time", (new Date).getTime()), h.Monitoring.telemetry(v.TelemetryName.INVITE_CLOSE)
        }
    }, 23119: function(e, t, n) {
        "use strict";
        var a = n(60530);
        Object.defineProperty(t, "__esModule", {
            value: !0
        }), t.useEnhanced = function() {
            var e = (0, l.useSelector)(s.selectPowerButtonColor),
                t = (0, l.useSelector)(s.selectWidgetColor),
                n = (0, l.useSelector)(s.selectWidgetColor2),
                a = (0, l.useSelector)(s.selectPowerGradient),
                I = (0, l.useSelector)(s.selectWidgetOrientation),
                R = (0, l.useSelector)(s.selectWidgetPadding),
                M = (0, l.useSelector)(s.selectWidgetMobileOrientation),
                k = (0, l.useSelector)(c.selectRoute),
                N = (0, l.useSelector)(s.selectCallHeaderText),
                x = (0, l.useSelector)(d.selectMessages),
                P = (0, l.useSelector)(c.selectIsOnline),
                L = (0, l.useSelector)(o.selectZoom),
                D = (0, l.useSelector)(o.selectUserZoom),
                j = (0, l.useSelector)(f.selectProactive),
                B = (0, l.useSelector)(s.selectMobileProactive),
                F = (0, l.useSelector)(s.selectAvatarUrl),
                U = (0, l.useSelector)(s.selectJoint),
                H = (0, l.useSelector)(s.selectLabelBubble),
                W = m.default.mobileOrTablet(),
                G = m.default.desktop(),
                z = (0, i.useState)(!1),
                V = (0, r.default)(z, 2),
                q = V[0],
                K = V[1],
                Y = (0, i.useState)(G),
                X = (0, r.default)(Y, 2),
                Z = X[0],
                J = X[1],
                $ = (0, i.useState)((0, u.getPosition)(D)),
                Q = (0, r.default)($, 2),
                ee = Q[0],
                te = Q[1],
                ne = (0, i.useState)(G ? (0, A.getPowerButtonDesktopPosition)(I, R) : null),
                ae = (0, r.default)(ne, 2),
                re = ae[0],
                ie = ae[1],
                oe = U ? U.im : null,
                le = (0, u.getUnreadMessages)(x, N),
                ue = (0, u.getPopup)(B, j),
                se = (0, u.getIconColor)(e, a, t),
                ce = e || t,
                de = (0, u.getPowerButtonColor)(e, a, t, n),
                fe = (0, u.getOverlay)(oe),
                pe = m.default.tablet() ? [y.Route.LABEL, y.Route.MOBILE_MENU] : [y.Route.LABEL],
                he = null,
                ve = function() {
                    clearTimeout(he), K(D >= 1.1), te((0, u.getPosition)(D, M)), he = setTimeout((function() {
                        K(!1)
                    }), 200)
                },
                ge = function(e) {
                    J((function(t) {
                        return null != e ? e : !t
                    }))
                };
            return (0, C.useDidUpdate)((function() {
                m.default.tablet() && Z && (ge(), E.default.closeWidget(), T.appDispatchers.setAppRoute(y.Route.LABEL))
            }), [D]), (0, i.useEffect)((function() {