@subiz/widget-v4 4.1.116 → 4.1.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/less/base.less +1 -0
- package/assets/less/chatbox.less +2 -0
- package/assets/less/message.less +42 -22
- package/assets/less/message_input.less +2 -0
- package/assets/less/order.less +1 -1
- package/assets/less/widget.less +33 -16
- package/assets/less/widget_header.less +35 -36
- package/compiled_src/chatbox/AgentsAvatar.js +1 -1
- package/compiled_src/chatbox/Event.js +70 -15
- package/compiled_src/chatbox/Events.js +108 -19
- package/compiled_src/chatbox/Header.js +5 -4
- package/compiled_src/chatbox/InfoMessage.js +2 -13
- package/compiled_src/chatbox/MessageInput.js +25 -9
- package/compiled_src/chatbox/TextMessage.js +11 -2
- package/compiled_src/chatbox/Widget.js +29 -22
- package/compiled_src/chatbox/main.js +3 -0
- package/compiled_src/chatbox/time.js +1 -0
- package/compiled_src/lib.js +4 -0
- package/compiled_src/plugin.js +4 -0
- package/compiled_src/util/common.js +89 -0
- package/dist/185.js +19 -19
- package/dist/19641cfa41e.278.js +1 -0
- package/dist/19641cfa41e.app.js +1 -0
- package/dist/{195ec5442e3.index.html → 19641cfa41e.index.html} +1 -1
- package/dist/{195ec5442e3.library.html → 19641cfa41e.library.html} +1 -1
- package/dist/19641cfa41e.library.js +1 -0
- package/dist/{195ec5442e3.preview.html → 19641cfa41e.preview.html} +1 -1
- package/dist/19641cfa41e.preview.js +1 -0
- package/dist/19641cfa41e.webview.js +1 -0
- package/dist/278.js +1 -1
- package/dist/HASH +1 -1
- package/dist/screenshoot.js +562 -185
- package/package.json +4 -4
- package/src/chatbox/AgentsAvatar.js +1 -1
- package/src/chatbox/Event.js +76 -15
- package/src/chatbox/Events.js +95 -14
- package/src/chatbox/Header.js +3 -2
- package/src/chatbox/InfoMessage.js +0 -14
- package/src/chatbox/MessageInput.js +23 -7
- package/src/chatbox/TextMessage.js +13 -0
- package/src/chatbox/Widget.js +22 -19
- package/src/chatbox/main.js +4 -0
- package/src/chatbox/time.js +12 -8
- package/src/lib.js +5 -0
- package/src/plugin.js +5 -0
- package/src/util/common.js +121 -0
- package/up +33 -21
- package/compiled_src/chatbox/Typing.js +0 -77
- package/dist/195ec5442e3.278.js +0 -1
- package/dist/195ec5442e3.app.js +0 -1
- package/dist/195ec5442e3.library.js +0 -1
- package/dist/195ec5442e3.preview.js +0 -1
- package/dist/195ec5442e3.webview.js +0 -1
- package/src/chatbox/Typing.js +0 -72
- /package/dist/{195ec5442e3.127.js → 19641cfa41e.127.js} +0 -0
- /package/dist/{195ec5442e3.132.js → 19641cfa41e.132.js} +0 -0
- /package/dist/{195ec5442e3.185.js → 19641cfa41e.185.js} +0 -0
- /package/dist/{195ec5442e3.27.js → 19641cfa41e.27.js} +0 -0
- /package/dist/{195ec5442e3.459.js → 19641cfa41e.459.js} +0 -0
- /package/dist/{195ec5442e3.490.js → 19641cfa41e.490.js} +0 -0
- /package/dist/{195ec5442e3.74.js → 19641cfa41e.74.js} +0 -0
- /package/dist/{195ec5442e3.997.js → 19641cfa41e.997.js} +0 -0
package/assets/less/base.less
CHANGED
package/assets/less/chatbox.less
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
// primary used in string
|
|
9
9
|
@esc-primary-color-esc: '@esc-primary-color-esc';
|
|
10
10
|
|
|
11
|
+
@primary-color-faded: '@primary_color_faded';
|
|
12
|
+
|
|
11
13
|
@desktop-chat-button-width: '@desktop_button.width'; //70px;
|
|
12
14
|
@desktop-chat-button-height: '@desktop_button.height'; //70px;
|
|
13
15
|
@desktop-chat-button-background: '@background'; // '@desktop_button.background' ;
|
package/assets/less/message.less
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.widget-body--events {
|
|
12
|
+
padding-top: 20px;
|
|
12
13
|
flex: 1;
|
|
13
14
|
}
|
|
14
15
|
|
|
@@ -105,7 +106,6 @@
|
|
|
105
106
|
background-color: @primary-color;
|
|
106
107
|
.color(@text-color);
|
|
107
108
|
|
|
108
|
-
|
|
109
109
|
padding: 12px 16px 12px 16px;
|
|
110
110
|
//padding: 12px;
|
|
111
111
|
}
|
|
@@ -113,12 +113,11 @@
|
|
|
113
113
|
.message-text--agent {
|
|
114
114
|
white-space: pre-wrap;
|
|
115
115
|
display: inline-block;
|
|
116
|
-
|
|
117
|
-
background-color: @gray-200;
|
|
116
|
+
background: @primary-color-faded;
|
|
118
117
|
.color(@black);
|
|
119
|
-
|
|
120
118
|
padding: 12px 16px 12px 16px;
|
|
121
119
|
}
|
|
120
|
+
|
|
122
121
|
.message-agent.message-text--agent {
|
|
123
122
|
max-width: unset;
|
|
124
123
|
margin-top: 0;
|
|
@@ -405,17 +404,16 @@ a.message_error {
|
|
|
405
404
|
padding: 10px;
|
|
406
405
|
display: block;
|
|
407
406
|
text-align: center;
|
|
408
|
-
.color(@
|
|
409
|
-
|
|
410
|
-
border-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
font-size: 16px;
|
|
416
|
-
width: 85%;
|
|
407
|
+
.color(@black);
|
|
408
|
+
border: 1px solid @black;
|
|
409
|
+
border-radius: 12px;
|
|
410
|
+
text-overflow: ellipsis;
|
|
411
|
+
overflow: hidden;
|
|
412
|
+
font-weight: 500;
|
|
413
|
+
text-decoration: underline;
|
|
417
414
|
&:hover {
|
|
418
|
-
|
|
415
|
+
.color(@primary-color);
|
|
416
|
+
border-color: @primary-color;
|
|
419
417
|
}
|
|
420
418
|
}
|
|
421
419
|
}
|
|
@@ -423,24 +421,31 @@ a.message_error {
|
|
|
423
421
|
.message_quick_replies {
|
|
424
422
|
display: flex;
|
|
425
423
|
flex-wrap: wrap;
|
|
424
|
+
flex-direction: column;
|
|
426
425
|
}
|
|
427
426
|
|
|
428
427
|
.message_quick_reply {
|
|
429
428
|
cursor: pointer;
|
|
430
429
|
position: relative;
|
|
431
|
-
padding: 10px
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
.color(@primary-color);
|
|
436
|
-
border-radius: 5px;
|
|
430
|
+
padding: 10px 18px;
|
|
431
|
+
margin-top: 8px;
|
|
432
|
+
.color(@black);
|
|
433
|
+
border-radius: 12px;
|
|
437
434
|
user-select: none;
|
|
438
435
|
overflow: hidden;
|
|
439
436
|
white-space: nowrap;
|
|
440
437
|
text-overflow: ellipsis;
|
|
438
|
+
width: fit-content;
|
|
439
|
+
overflow: hidden;
|
|
440
|
+
font-weight: 500;
|
|
441
|
+
max-width: 100%;
|
|
442
|
+
overflow: hidden;
|
|
443
|
+
text-overflow: ellipsis;
|
|
444
|
+
border: 1px solid @black;
|
|
441
445
|
&:hover {
|
|
442
446
|
background: @primary-color;
|
|
443
447
|
.color(@text-color);
|
|
448
|
+
border-color: @primary-color;
|
|
444
449
|
}
|
|
445
450
|
}
|
|
446
451
|
|
|
@@ -759,15 +764,17 @@ a.product_attachment__title {
|
|
|
759
764
|
}
|
|
760
765
|
|
|
761
766
|
.agent-convo-event-inner {
|
|
762
|
-
width: fit-content;
|
|
763
767
|
position: relative;
|
|
768
|
+
display: inline-block;
|
|
769
|
+
max-width: 100%;
|
|
764
770
|
}
|
|
765
771
|
|
|
766
772
|
.message-event-actions {
|
|
767
773
|
position: absolute;
|
|
768
774
|
bottom: -18px;
|
|
769
775
|
margin-top: 4px;
|
|
770
|
-
|
|
776
|
+
opacity: 0.7;
|
|
777
|
+
left: calc(100% - 25px);
|
|
771
778
|
display: none;
|
|
772
779
|
border: 1px solid #dee2e6;
|
|
773
780
|
background-color: white;
|
|
@@ -775,6 +782,10 @@ a.product_attachment__title {
|
|
|
775
782
|
z-index: 10;
|
|
776
783
|
}
|
|
777
784
|
|
|
785
|
+
.message-event-actions:hover {
|
|
786
|
+
opacity: 1;
|
|
787
|
+
}
|
|
788
|
+
|
|
778
789
|
.agent-convo-event-inner:hover .message-event-actions {
|
|
779
790
|
display: flex;
|
|
780
791
|
}
|
|
@@ -885,6 +896,15 @@ a.product_attachment__title {
|
|
|
885
896
|
.message-event-action-btn.active .message-event-action-btn-svg.like {
|
|
886
897
|
background-image: url('data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgd2lkdGg9IjI0IiAgaGVpZ2h0PSIyNCIgIHZpZXdCb3g9IjAgMCAyNCAyNCIgIGZpbGw9IiMzNEM3NTkiICBjbGFzcz0iaWNvbiBpY29uLXRhYmxlciBpY29ucy10YWJsZXItZmlsbGVkIGljb24tdGFibGVyLXRodW1iLXVwIj48cGF0aCBzdHJva2U9Im5vbmUiIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiLz48cGF0aCBkPSJNMTMgM2EzIDMgMCAwIDEgMi45OTUgMi44MjRsLjAwNSAuMTc2djRoMmEzIDMgMCAwIDEgMi45OCAyLjY1bC4wMTUgLjE3NGwuMDA1IC4xNzZsLS4wMiAuMTk2bC0xLjAwNiA1LjAzMmMtLjM4MSAxLjYyNiAtMS41MDIgMi43OTYgLTIuODEgMi43OGwtLjE2NCAtLjAwOGgtOGExIDEgMCAwIDEgLS45OTMgLS44ODNsLS4wMDcgLS4xMTdsLjAwMSAtOS41MzZhMSAxIDAgMCAxIC41IC0uODY1YTIuOTk4IDIuOTk4IDAgMCAwIDEuNDkyIC0yLjM5N2wuMDA3IC0uMjAydi0xYTMgMyAwIDAgMSAzIC0zeiIgLz48cGF0aCBkPSJNNSAxMGExIDEgMCAwIDEgLjk5MyAuODgzbC4wMDcgLjExN3Y5YTEgMSAwIDAgMSAtLjg4MyAuOTkzbC0uMTE3IC4wMDdoLTFhMiAyIDAgMCAxIC0xLjk5NSAtMS44NWwtLjAwNSAtLjE1di03YTIgMiAwIDAgMSAxLjg1IC0xLjk5NWwuMTUgLS4wMDVoMXoiIC8+PC9zdmc+Cg==');
|
|
887
898
|
}
|
|
899
|
+
|
|
888
900
|
.message-event-action-btn.active .message-event-action-btn-svg.dislike {
|
|
889
901
|
background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzI0ODBfOTUpIj4KPHBhdGggZD0iTTEzIDIxLjAwNzlDMTMuNzY1IDIxLjAwOCAxNC41MDEyIDIwLjcxNTcgMTUuMDU3OSAyMC4xOTFDMTUuNjE0NyAxOS42NjYyIDE1Ljk0OTkgMTguOTQ4NiAxNS45OTUgMTguMTg0OUwxNiAxOC4wMDc5VjE0LjAwNzlIMThDMTguNzM1MSAxNC4wMDggMTkuNDQ0NyAxMy43MzgyIDE5Ljk5NCAxMy4yNDk3QzIwLjU0MzQgMTIuNzYxMiAyMC44OTQyIDEyLjA4OCAyMC45OCAxMS4zNTc5TDIwLjk5NSAxMS4xODQ5TDIxIDExLjAwNzlMMjAuOTggMTAuODExOUwxOS45NzQgNS43Nzk5MkMxOS41OTMgNC4xNTQ5MiAxOC40NzIgMi45ODM5MiAxNy4xNjQgMi45OTk5MkwxNyAzLjAwNzkySDlDOC43NTQ5MSAzLjAwNzk4IDguNTE4MzggMy4wOTgwNCA4LjMzNTMzIDMuMjYxMDFDOC4xNTIyNyAzLjQyMzk3IDguMDM1NDMgMy42NDg0OSA4LjAwNyAzLjg5MTkyTDggNC4wMDc5Mkw4LjAwMSAxMy41NDM5QzguMDAxIDEzLjcxOTUgOC4wNDcyMSAxMy44OTE5IDguMTM0OTggMTQuMDQzOUM4LjIyMjc1IDE0LjE5NTkgOC4zNDg5OCAxNC4zMjIyIDguNTAxIDE0LjQwOTlDOC45MjcyOSAxNC42NTYxIDkuMjg2NCAxNS4wMDM1IDkuNTQ2NjEgMTUuNDIxM0M5LjgwNjgyIDE1LjgzOTIgOS45NjAxMyAxNi4zMTQ3IDkuOTkzIDE2LjgwNTlMMTAgMTcuMDA3OVYxOC4wMDc5QzEwIDE4LjgwMzYgMTAuMzE2MSAxOS41NjY2IDEwLjg3ODcgMjAuMTI5MkMxMS40NDEzIDIwLjY5MTggMTIuMjA0NCAyMS4wMDc5IDEzIDIxLjAwNzlaIiBmaWxsPSIjMzMzMzMzIi8+CjxwYXRoIGQ9Ik01IDE0LjAwODFDNS4yNDQ5MyAxNC4wMDggNS40ODEzNCAxMy45MTgxIDUuNjY0MzcgMTMuNzU1M0M1Ljg0NzQxIDEzLjU5MjYgNS45NjQzNCAxMy4zNjgzIDUuOTkzIDEzLjEyNTFMNiAxMy4wMDgxVjQuMDA4MDZDNS45OTk5NyAzLjc2MzEyIDUuOTEwMDQgMy41MjY3MiA1Ljc0NzI4IDMuMzQzNjhDNS41ODQ1MyAzLjE2MDY1IDUuMzYwMjUgMy4wNDM3MSA1LjExNyAzLjAxNTA2TDUgMy4wMDgwNkg0QzMuNDk1MSAzLjAwNzkzIDMuMDA4ODQgMy4xOTg3OCAyLjYzODgxIDMuNTQyMjlDMi4yNjg3OCAzLjg4NTc5IDIuMDQyMzYgNC4zNTY1NCAyLjAwNSA0Ljg2MDA2TDIgNS4wMTAwNlYxMi4wMTAxQzIuMDAwMDkgMTIuNTE0NSAyLjE5MDc3IDEzLjAwMDIgMi41MzM4NCAxMy4zN0MyLjg3NjkgMTMuNzM5NyAzLjM0NzAyIDEzLjk2NjIgMy44NSAxNC4wMDQxTDQgMTQuMDA5MUw1IDE0LjAwODFaIiBmaWxsPSIjMzMzMzMzIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMjQ4MF85NSI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K');
|
|
890
902
|
}
|
|
903
|
+
|
|
904
|
+
.inline-time {
|
|
905
|
+
font-size: 13px;
|
|
906
|
+
margin-top: 6px;
|
|
907
|
+
.color(@black);
|
|
908
|
+
font-weight: 500;
|
|
909
|
+
opacity: 0.4;
|
|
910
|
+
}
|
package/assets/less/order.less
CHANGED
|
@@ -425,7 +425,7 @@ div.order__card.order__card__active {
|
|
|
425
425
|
.order_status {
|
|
426
426
|
text-transform: uppercase;
|
|
427
427
|
background: black;
|
|
428
|
-
.color
|
|
428
|
+
.color(white);
|
|
429
429
|
display: inline-block;
|
|
430
430
|
border-radius: 4px;
|
|
431
431
|
padding: 6px 6px 4px 6px; // better for uppercase
|
package/assets/less/widget.less
CHANGED
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
|
|
68
68
|
.convo-list--convo-last-mes {
|
|
69
69
|
text-overflow: ellipsis;
|
|
70
|
+
opacity: 0.6;
|
|
70
71
|
white-space: nowrap;
|
|
71
72
|
overflow: hidden;
|
|
72
73
|
font-weight: normal;
|
|
@@ -95,16 +96,16 @@
|
|
|
95
96
|
|
|
96
97
|
.convo-list--item {
|
|
97
98
|
cursor: pointer;
|
|
98
|
-
border-bottom: 1px solid
|
|
99
|
+
border-bottom: 1px solid @primary-color-faded;
|
|
99
100
|
padding-left: 10px;
|
|
100
101
|
padding-right: 10px;
|
|
101
102
|
padding-bottom: 15px;
|
|
102
103
|
padding-top: 15px;
|
|
103
104
|
display: flex;
|
|
104
105
|
flex-direction: row;
|
|
105
|
-
|
|
106
|
+
transition: background 0.15s ease;
|
|
106
107
|
&:hover {
|
|
107
|
-
background: @
|
|
108
|
+
background: @primary-color-faded;
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
111
|
|
|
@@ -112,7 +113,7 @@
|
|
|
112
113
|
font-size: 13px;
|
|
113
114
|
line-height: 20px;
|
|
114
115
|
.color(@black);
|
|
115
|
-
opacity: 0.
|
|
116
|
+
opacity: 0.6;
|
|
116
117
|
min-width: 70px;
|
|
117
118
|
cursor: pointer;
|
|
118
119
|
}
|
|
@@ -148,8 +149,7 @@
|
|
|
148
149
|
.widget-body--empty-icon {
|
|
149
150
|
width: 128px;
|
|
150
151
|
height: 128px;
|
|
151
|
-
.inline-svg-code(
|
|
152
|
-
~'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g data-name="Layer 2"><path d="M130.9 366.9a9.9 9.9 0 0 0-2.9 7.1 10.33 10.33 0 0 0 2.9 7.1 9.73 9.73 0 0 0 7.1 2.9 10.33 10.33 0 0 0 7.1-2.9 9.73 9.73 0 0 0 2.9-7.1 10.52 10.52 0 0 0-2.9-7.1 9.9 9.9 0 0 0-7.1-2.9 10.33 10.33 0 0 0-7.1 2.9zM483.7 282a183.07 183.07 0 0 0 28.3-98C512 82.5 429.5 0 328 0a183.16 183.16 0 0 0-96 27 10 10 0 0 0 10.5 17.1A162.67 162.67 0 0 1 328 20c90.4 0 164 73.6 164 164a162.73 162.73 0 0 1-27.9 91.5 10.07 10.07 0 0 0 .3 11.6l11 40.9-44-11.8a10 10 0 0 0-8.4 1.5 164.32 164.32 0 0 1-151.8 20.2 138.68 138.68 0 0 0-97.1-97.1 164.31 164.31 0 0 1 14.5-143.2 10 10 0 0 0-17-10.6 184 184 0 0 0-19.9 149.6c-4.5-.4-9.1-.7-13.7-.7C61.9 236 0 297.9 0 374a136.88 136.88 0 0 0 22.9 76.1L12.2 490a10 10 0 0 0 12.3 12.3l40.9-11a137.71 137.71 0 0 0 146.5-.8 10 10 0 0 0-10.7-16.9 118.09 118.09 0 0 1-128.6-1.5 9.73 9.73 0 0 0-8.1-1.3L36 478.5l7.4-27.7a10 10 0 0 0-1.5-8.4 117.95 117.95 0 1 1 207-28 10 10 0 0 0 18.8 6.8 137.72 137.72 0 0 0 8.3-47.3 124.44 124.44 0 0 0-.7-13.7 183.93 183.93 0 0 0 155.3-23.6l56.2 15.1a10 10 0 0 0 12.3-12.3zm-246 162.2a10.52 10.52 0 0 0-7.1 2.9 9.73 9.73 0 0 0-2.9 7.1 10.33 10.33 0 0 0 2.9 7.1 9.73 9.73 0 0 0 7.1 2.9 10.52 10.52 0 0 0 7.1-2.9 9.73 9.73 0 0 0 2.9-7.1 9.9 9.9 0 0 0-10-10zM205.3 70.7a10.52 10.52 0 0 0 7.1-2.9 9.73 9.73 0 0 0 2.9-7.1 10.14 10.14 0 0 0-2.9-7.1 9.9 9.9 0 0 0-7.1-2.9 10.52 10.52 0 0 0-7.1 2.9 9.9 9.9 0 0 0-2.9 7.1 10.52 10.52 0 0 0 2.9 7.1 9.9 9.9 0 0 0 7.1 2.9zm-19.4 296.2a9.9 9.9 0 0 0-2.9 7.1 10.33 10.33 0 0 0 2.9 7.1 9.73 9.73 0 0 0 7.1 2.9 10.33 10.33 0 0 0 7.1-2.9 9.73 9.73 0 0 0 2.9-7.1 10.33 10.33 0 0 0-2.9-7.1 9.9 9.9 0 0 0-7.1-2.9 10.33 10.33 0 0 0-7.1 2.9zm210.8-201.1a9.8 9.8 0 0 0 5.2-1.5l1.3-.8a9.92 9.92 0 0 0 3.3-13.7 10.06 10.06 0 0 0-13.8-3.3l-1.3.8a10 10 0 0 0 5.3 18.5zm-68.1 107.4a58 58 0 0 0 57.9-57.9 7 7 0 0 0-7-7H277.7a7 7 0 0 0-7 7 58 58 0 0 0 57.9 57.9zm-43.5-50.9h87.1l-1 3.7a43.93 43.93 0 0 1-85.2 0zm-25.8-56.5a9.8 9.8 0 0 0 5.2-1.5l1.3-.8a9.92 9.92 0 0 0 3.3-13.7 10.06 10.06 0 0 0-13.8-3.3l-1.3.8a10 10 0 0 0 5.3 18.5zM75.9 366.9A9.9 9.9 0 0 0 73 374a10.33 10.33 0 0 0 2.9 7.1A9.73 9.73 0 0 0 83 384a10.33 10.33 0 0 0 7.1-2.9A9.73 9.73 0 0 0 93 374a10.33 10.33 0 0 0-2.9-7.1A9.9 9.9 0 0 0 83 364a10.33 10.33 0 0 0-7.1 2.9z" fill="#4285f4" data-name="Capa 1"/></g></svg>'
|
|
152
|
+
.inline-svg-code(~'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g data-name="Layer 2"><path d="M130.9 366.9a9.9 9.9 0 0 0-2.9 7.1 10.33 10.33 0 0 0 2.9 7.1 9.73 9.73 0 0 0 7.1 2.9 10.33 10.33 0 0 0 7.1-2.9 9.73 9.73 0 0 0 2.9-7.1 10.52 10.52 0 0 0-2.9-7.1 9.9 9.9 0 0 0-7.1-2.9 10.33 10.33 0 0 0-7.1 2.9zM483.7 282a183.07 183.07 0 0 0 28.3-98C512 82.5 429.5 0 328 0a183.16 183.16 0 0 0-96 27 10 10 0 0 0 10.5 17.1A162.67 162.67 0 0 1 328 20c90.4 0 164 73.6 164 164a162.73 162.73 0 0 1-27.9 91.5 10.07 10.07 0 0 0 .3 11.6l11 40.9-44-11.8a10 10 0 0 0-8.4 1.5 164.32 164.32 0 0 1-151.8 20.2 138.68 138.68 0 0 0-97.1-97.1 164.31 164.31 0 0 1 14.5-143.2 10 10 0 0 0-17-10.6 184 184 0 0 0-19.9 149.6c-4.5-.4-9.1-.7-13.7-.7C61.9 236 0 297.9 0 374a136.88 136.88 0 0 0 22.9 76.1L12.2 490a10 10 0 0 0 12.3 12.3l40.9-11a137.71 137.71 0 0 0 146.5-.8 10 10 0 0 0-10.7-16.9 118.09 118.09 0 0 1-128.6-1.5 9.73 9.73 0 0 0-8.1-1.3L36 478.5l7.4-27.7a10 10 0 0 0-1.5-8.4 117.95 117.95 0 1 1 207-28 10 10 0 0 0 18.8 6.8 137.72 137.72 0 0 0 8.3-47.3 124.44 124.44 0 0 0-.7-13.7 183.93 183.93 0 0 0 155.3-23.6l56.2 15.1a10 10 0 0 0 12.3-12.3zm-246 162.2a10.52 10.52 0 0 0-7.1 2.9 9.73 9.73 0 0 0-2.9 7.1 10.33 10.33 0 0 0 2.9 7.1 9.73 9.73 0 0 0 7.1 2.9 10.52 10.52 0 0 0 7.1-2.9 9.73 9.73 0 0 0 2.9-7.1 9.9 9.9 0 0 0-10-10zM205.3 70.7a10.52 10.52 0 0 0 7.1-2.9 9.73 9.73 0 0 0 2.9-7.1 10.14 10.14 0 0 0-2.9-7.1 9.9 9.9 0 0 0-7.1-2.9 10.52 10.52 0 0 0-7.1 2.9 9.9 9.9 0 0 0-2.9 7.1 10.52 10.52 0 0 0 2.9 7.1 9.9 9.9 0 0 0 7.1 2.9zm-19.4 296.2a9.9 9.9 0 0 0-2.9 7.1 10.33 10.33 0 0 0 2.9 7.1 9.73 9.73 0 0 0 7.1 2.9 10.33 10.33 0 0 0 7.1-2.9 9.73 9.73 0 0 0 2.9-7.1 10.33 10.33 0 0 0-2.9-7.1 9.9 9.9 0 0 0-7.1-2.9 10.33 10.33 0 0 0-7.1 2.9zm210.8-201.1a9.8 9.8 0 0 0 5.2-1.5l1.3-.8a9.92 9.92 0 0 0 3.3-13.7 10.06 10.06 0 0 0-13.8-3.3l-1.3.8a10 10 0 0 0 5.3 18.5zm-68.1 107.4a58 58 0 0 0 57.9-57.9 7 7 0 0 0-7-7H277.7a7 7 0 0 0-7 7 58 58 0 0 0 57.9 57.9zm-43.5-50.9h87.1l-1 3.7a43.93 43.93 0 0 1-85.2 0zm-25.8-56.5a9.8 9.8 0 0 0 5.2-1.5l1.3-.8a9.92 9.92 0 0 0 3.3-13.7 10.06 10.06 0 0 0-13.8-3.3l-1.3.8a10 10 0 0 0 5.3 18.5zM75.9 366.9A9.9 9.9 0 0 0 73 374a10.33 10.33 0 0 0 2.9 7.1A9.73 9.73 0 0 0 83 384a10.33 10.33 0 0 0 7.1-2.9A9.73 9.73 0 0 0 93 374a10.33 10.33 0 0 0-2.9-7.1A9.9 9.9 0 0 0 83 364a10.33 10.33 0 0 0-7.1 2.9z" fill="#4285f4" data-name="Capa 1"/></g></svg>'
|
|
153
153
|
);
|
|
154
154
|
-webkit-mask-image: @-inline-svg-url;
|
|
155
155
|
border-radius: 0;
|
|
@@ -215,19 +215,19 @@
|
|
|
215
215
|
align-items: center;
|
|
216
216
|
position: @widget-position;
|
|
217
217
|
margin-bottom: @desktop-chat-button-margin-y;
|
|
218
|
-
bottom: 0;
|
|
219
|
-
|
|
220
|
-
bottom: 0; // variable
|
|
221
|
-
opacity: 1;
|
|
222
|
-
transition: opacity 0.15s cubic-bezier(1, 0.5, 0.8, 1);
|
|
223
218
|
|
|
224
219
|
width: @widget-width;
|
|
225
220
|
height: @widget-height;
|
|
226
221
|
|
|
227
222
|
bottom: 0; // variable
|
|
228
223
|
opacity: 1;
|
|
229
|
-
|
|
224
|
+
transform: translateY(0);
|
|
225
|
+
transition:
|
|
226
|
+
transform 0.15s cubic-bezier(1, 0.5, 0.8, 1),
|
|
227
|
+
opacity 0.2s cubic-bezier(1, 0.5, 0.8, 1),
|
|
228
|
+
scale 0.15s ease;
|
|
230
229
|
visibility: visible;
|
|
230
|
+
overflow: hidden;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
.widget-container.widget-container--full {
|
|
@@ -238,8 +238,10 @@
|
|
|
238
238
|
|
|
239
239
|
.widget-container.widget-container--hide {
|
|
240
240
|
opacity: 0;
|
|
241
|
+
transform: translateY(20px);
|
|
241
242
|
visibility: hidden;
|
|
242
243
|
transition:
|
|
244
|
+
transform 0.15s cubic-bezier(1, 0.5, 0.8, 1),
|
|
243
245
|
opacity 0.1s cubic-bezier(1, 0.5, 0.8, 1),
|
|
244
246
|
visibility 0.1s cubic-bezier(1, 0.5, 0.8, 1);
|
|
245
247
|
}
|
|
@@ -252,18 +254,24 @@
|
|
|
252
254
|
height: 40px;
|
|
253
255
|
.color(@text-color);
|
|
254
256
|
font-size: 16px;
|
|
257
|
+
font-weight: 500;
|
|
255
258
|
line-height: 20px;
|
|
256
259
|
text-align: center;
|
|
257
260
|
background: @primary-color;
|
|
258
|
-
max-width: 270px;
|
|
259
|
-
width:
|
|
261
|
+
// max-width: 270px;
|
|
262
|
+
width: 100%;
|
|
260
263
|
text-overflow: ellipsis;
|
|
261
264
|
white-space: nowrap;
|
|
262
265
|
overflow: hidden;
|
|
263
266
|
|
|
267
|
+
transition: filter 250ms ease;
|
|
268
|
+
|
|
264
269
|
&::after {
|
|
265
270
|
display: none;
|
|
266
271
|
}
|
|
272
|
+
&:hover {
|
|
273
|
+
filter: brightness(1.1);
|
|
274
|
+
}
|
|
267
275
|
}
|
|
268
276
|
|
|
269
277
|
.btn--start-convo:disabled {
|
|
@@ -319,8 +327,6 @@
|
|
|
319
327
|
opacity: 1;
|
|
320
328
|
}
|
|
321
329
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
330
|
}
|
|
325
331
|
}
|
|
326
332
|
|
|
@@ -385,6 +391,17 @@
|
|
|
385
391
|
.chat-button {
|
|
386
392
|
cursor: pointer;
|
|
387
393
|
position: relative;
|
|
394
|
+
scale: 1;
|
|
395
|
+
transition:
|
|
396
|
+
filter 250ms ease,
|
|
397
|
+
opacity 0.4s ease,
|
|
398
|
+
scale 0.125s ease-in-out,
|
|
399
|
+
transform 0.2s ease-in-out;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.chat-button:hover {
|
|
403
|
+
filter: brightness(1.1);
|
|
404
|
+
scale: 1.05;
|
|
388
405
|
}
|
|
389
406
|
|
|
390
407
|
.chat-button--img {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.widget-header {
|
|
2
2
|
z-index: -1;
|
|
3
3
|
position: relative;
|
|
4
|
-
|
|
4
|
+
transition: height 0.2s;
|
|
5
5
|
border-radius: 15px 15px 0px 0px;
|
|
6
6
|
background: @background;
|
|
7
7
|
.color(@text-color);
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
|
|
26
26
|
.widget-header--collapsed {
|
|
27
27
|
height: auto;
|
|
28
|
-
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
.widget-header--inner.widget-header--inner--collapsed {
|
|
@@ -89,10 +88,10 @@
|
|
|
89
88
|
text-align: center;
|
|
90
89
|
margin-top: 15px;
|
|
91
90
|
white-space: pre-wrap;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
display: -webkit-box;
|
|
92
|
+
-webkit-box-orient: vertical;
|
|
93
|
+
-webkit-line-clamp: 2;
|
|
94
|
+
overflow: hidden;
|
|
96
95
|
}
|
|
97
96
|
}
|
|
98
97
|
|
|
@@ -115,7 +114,7 @@
|
|
|
115
114
|
|
|
116
115
|
transform: scale(0);
|
|
117
116
|
animation-duration: 0.05s;
|
|
118
|
-
|
|
117
|
+
animation-name: hide;
|
|
119
118
|
}
|
|
120
119
|
|
|
121
120
|
.widget-header--title-container {
|
|
@@ -127,18 +126,18 @@
|
|
|
127
126
|
z-index: 1;
|
|
128
127
|
}
|
|
129
128
|
|
|
130
|
-
.widget-header--button {
|
|
131
|
-
padding: 3px;
|
|
132
|
-
border-radius: 5px;
|
|
133
|
-
position: relative;
|
|
134
|
-
cursor: pointer;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
129
|
.widget-header--button-close {
|
|
138
130
|
display: flex;
|
|
139
131
|
justify-self: flex-end;
|
|
140
132
|
align-items: center;
|
|
141
133
|
align-self: flex-start;
|
|
134
|
+
|
|
135
|
+
transition: scale 0.15s ease, filter 0.15s ease;
|
|
136
|
+
filter: brightness(0.95);
|
|
137
|
+
&:hover {
|
|
138
|
+
filter: brightness(1.1);
|
|
139
|
+
scale: 1.1;
|
|
140
|
+
}
|
|
142
141
|
}
|
|
143
142
|
|
|
144
143
|
.widget-header--button-close-icon {
|
|
@@ -147,6 +146,7 @@
|
|
|
147
146
|
background-size: contain;
|
|
148
147
|
background-repeat: no-repeat;
|
|
149
148
|
background-position: center;
|
|
149
|
+
|
|
150
150
|
width: 24px;
|
|
151
151
|
height: 24px;
|
|
152
152
|
display: block;
|
|
@@ -154,19 +154,24 @@
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.widget-header--button-back {
|
|
157
|
-
background-image: url('data:image/svg+xml;base64,
|
|
157
|
+
background-image: url('data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgd2lkdGg9IjI0IiAgaGVpZ2h0PSIyNCIgIHZpZXdCb3g9IjAgMCAyNCAyNCIgIGZpbGw9Im5vbmUiICBzdHJva2U9IndoaXRlIiAgc3Ryb2tlLXdpZHRoPSIyIiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiAgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggc3Ryb2tlPSJub25lIiBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTQgNmwxNiAwIiAvPjxwYXRoIGQ9Ik00IDEybDE2IDAiIC8+PHBhdGggZD0iTTQgMThsMTYgMCIgLz48L3N2Zz4K');
|
|
158
158
|
background-size: contain;
|
|
159
159
|
background-repeat: no-repeat;
|
|
160
160
|
background-position: center;
|
|
161
161
|
background-size: 24px 24px;
|
|
162
|
-
width:
|
|
163
|
-
height:
|
|
162
|
+
width: 24px;
|
|
163
|
+
height: 24px;
|
|
164
164
|
display: block;
|
|
165
|
-
cursor: pointer;
|
|
166
165
|
position: relative;
|
|
167
|
-
|
|
166
|
+
|
|
168
167
|
cursor: pointer;
|
|
169
|
-
|
|
168
|
+
scale: 1;
|
|
169
|
+
transition: scale 0.15s ease, filter 0.15s ease;
|
|
170
|
+
filter: brightness(0.95);
|
|
171
|
+
&:hover {
|
|
172
|
+
filter: brightness(1.1);
|
|
173
|
+
scale: 1.1;
|
|
174
|
+
}
|
|
170
175
|
}
|
|
171
176
|
|
|
172
177
|
.widget-header--has-convo-unred .widget-header--button-back {
|
|
@@ -224,9 +229,9 @@
|
|
|
224
229
|
.color(@text-color);
|
|
225
230
|
max-height: 72px;
|
|
226
231
|
overflow: hidden;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
232
|
+
display: -webkit-box;
|
|
233
|
+
-webkit-box-orient: vertical;
|
|
234
|
+
-webkit-line-clamp: 3;
|
|
230
235
|
}
|
|
231
236
|
|
|
232
237
|
.social__links {
|
|
@@ -244,43 +249,37 @@
|
|
|
244
249
|
background-repeat: no-repeat;
|
|
245
250
|
background-position: center;
|
|
246
251
|
display: block;
|
|
247
|
-
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
|
|
248
252
|
}
|
|
249
253
|
|
|
250
254
|
.social__links-logo--facebook {
|
|
251
|
-
.inline-svg-code(
|
|
252
|
-
'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="15" cy="15" r="15" fill="#0264FF"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.2944 29.8252C16.5464 29.9404 15.7803 30 15 30C14.0962 30 13.2109 29.9199 12.3511 29.7666V18.4775H10V14.4287H12.3511V11.8086C12.3511 9.93457 13.2744 7 17.3384 7L21 7.01465V10.9453H18.3433C17.9075 10.9453 17.2947 11.1553 17.2947 12.0488V14.4326H20.989L20.5571 18.4775H17.2944V29.8252Z" fill="white"/></svg>'
|
|
255
|
+
.inline-svg-code('<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="15" cy="15" r="15" fill="#0264FF"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.2944 29.8252C16.5464 29.9404 15.7803 30 15 30C14.0962 30 13.2109 29.9199 12.3511 29.7666V18.4775H10V14.4287H12.3511V11.8086C12.3511 9.93457 13.2744 7 17.3384 7L21 7.01465V10.9453H18.3433C17.9075 10.9453 17.2947 11.1553 17.2947 12.0488V14.4326H20.989L20.5571 18.4775H17.2944V29.8252Z" fill="white"/></svg>'
|
|
253
256
|
);
|
|
254
257
|
background-image: @-inline-svg-url;
|
|
255
258
|
}
|
|
256
259
|
|
|
257
260
|
.social__links-logo--messenger {
|
|
258
|
-
.inline-svg-code(
|
|
259
|
-
~'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="30" height="30" rx="15" fill="#007FFF"/><rect x="4.28564" y="6" width="21.4286" height="18.8571" fill="white"/><path d="M14.9478 14.5713C14.8228 14.5917 14.6974 14.6104 14.5715 14.6276C14.6974 14.6104 14.8228 14.5917 14.9478 14.5713Z" fill="black"/><path d="M14.7507 14.5713C14.691 14.5823 14.6313 14.5923 14.5715 14.6026C14.6313 14.5923 14.691 14.5823 14.7507 14.5713Z" fill="black"/><path d="M15.0126 14.5713C14.8663 14.5878 14.7192 14.6024 14.5715 14.6148C14.7192 14.6024 14.8663 14.5878 15.0126 14.5713Z" fill="black"/><path d="M14.783 14.5713C14.7128 14.5807 14.642 14.5894 14.5715 14.5976C14.642 14.5894 14.7128 14.5807 14.783 14.5713Z" fill="black"/><path d="M14.7299 14.5713C14.6773 14.5825 14.6244 14.5937 14.5715 14.6045C14.6244 14.5937 14.6773 14.5825 14.7299 14.5713Z" fill="black"/><path d="M14.6992 14.5713C14.6567 14.5834 14.6141 14.5949 14.5715 14.6068C14.6141 14.5949 14.6567 14.5834 14.6992 14.5713Z" fill="black"/><path d="M14.7107 14.5713C14.6645 14.5834 14.618 14.5958 14.5715 14.6075C14.618 14.5958 14.6645 14.5836 14.7107 14.5713Z" fill="black"/><path d="M14.7194 14.5713C14.6704 14.5827 14.621 14.5935 14.5715 14.6045C14.621 14.5935 14.6704 14.5827 14.7194 14.5713Z" fill="black"/><path d="M14.8087 14.5713C14.7297 14.5779 14.6507 14.5839 14.5715 14.5891C14.6507 14.5839 14.7297 14.5779 14.8087 14.5713Z" fill="black"/><path d="M15.0417 14.5713C14.8856 14.5814 14.7288 14.5894 14.5715 14.5946C14.7288 14.5894 14.8856 14.5814 15.0417 14.5713Z" fill="black"/><path d="M14.8206 14.5713C14.7377 14.574 14.6546 14.5761 14.5715 14.5775C14.6546 14.5761 14.7377 14.574 14.8206 14.5713Z" fill="black"/><path d="M14.1547 12.3174L9.29419 17.4636L13.7176 15.0365L16.0288 17.4636L20.8621 12.3174L16.4877 14.7019L14.1547 12.3174Z" fill="#448AFF"/><path d="M15 0C6.717 0 0 6.717 0 15C0 23.283 6.717 30 15 30C23.283 30 30 23.283 30 15C30 6.717 23.283 0 15 0ZM15.1172 23.0294C14.1886 23.0294 13.2923 22.8983 12.4491 22.6554L9.42421 24.375V21.14C7.39815 19.5982 6.10428 17.2501 6.10428 14.6203C6.10428 9.97581 10.1395 6.21094 15.1172 6.21094C20.0951 6.21094 24.1301 9.97581 24.1301 14.6203C24.1301 19.2643 20.0951 23.0294 15.1172 23.0294V23.0294Z" fill="#007FFF"/></svg>'
|
|
261
|
+
.inline-svg-code(~'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="30" height="30" rx="15" fill="#007FFF"/><rect x="4.28564" y="6" width="21.4286" height="18.8571" fill="white"/><path d="M14.9478 14.5713C14.8228 14.5917 14.6974 14.6104 14.5715 14.6276C14.6974 14.6104 14.8228 14.5917 14.9478 14.5713Z" fill="black"/><path d="M14.7507 14.5713C14.691 14.5823 14.6313 14.5923 14.5715 14.6026C14.6313 14.5923 14.691 14.5823 14.7507 14.5713Z" fill="black"/><path d="M15.0126 14.5713C14.8663 14.5878 14.7192 14.6024 14.5715 14.6148C14.7192 14.6024 14.8663 14.5878 15.0126 14.5713Z" fill="black"/><path d="M14.783 14.5713C14.7128 14.5807 14.642 14.5894 14.5715 14.5976C14.642 14.5894 14.7128 14.5807 14.783 14.5713Z" fill="black"/><path d="M14.7299 14.5713C14.6773 14.5825 14.6244 14.5937 14.5715 14.6045C14.6244 14.5937 14.6773 14.5825 14.7299 14.5713Z" fill="black"/><path d="M14.6992 14.5713C14.6567 14.5834 14.6141 14.5949 14.5715 14.6068C14.6141 14.5949 14.6567 14.5834 14.6992 14.5713Z" fill="black"/><path d="M14.7107 14.5713C14.6645 14.5834 14.618 14.5958 14.5715 14.6075C14.618 14.5958 14.6645 14.5836 14.7107 14.5713Z" fill="black"/><path d="M14.7194 14.5713C14.6704 14.5827 14.621 14.5935 14.5715 14.6045C14.621 14.5935 14.6704 14.5827 14.7194 14.5713Z" fill="black"/><path d="M14.8087 14.5713C14.7297 14.5779 14.6507 14.5839 14.5715 14.5891C14.6507 14.5839 14.7297 14.5779 14.8087 14.5713Z" fill="black"/><path d="M15.0417 14.5713C14.8856 14.5814 14.7288 14.5894 14.5715 14.5946C14.7288 14.5894 14.8856 14.5814 15.0417 14.5713Z" fill="black"/><path d="M14.8206 14.5713C14.7377 14.574 14.6546 14.5761 14.5715 14.5775C14.6546 14.5761 14.7377 14.574 14.8206 14.5713Z" fill="black"/><path d="M14.1547 12.3174L9.29419 17.4636L13.7176 15.0365L16.0288 17.4636L20.8621 12.3174L16.4877 14.7019L14.1547 12.3174Z" fill="#448AFF"/><path d="M15 0C6.717 0 0 6.717 0 15C0 23.283 6.717 30 15 30C23.283 30 30 23.283 30 15C30 6.717 23.283 0 15 0ZM15.1172 23.0294C14.1886 23.0294 13.2923 22.8983 12.4491 22.6554L9.42421 24.375V21.14C7.39815 19.5982 6.10428 17.2501 6.10428 14.6203C6.10428 9.97581 10.1395 6.21094 15.1172 6.21094C20.0951 6.21094 24.1301 9.97581 24.1301 14.6203C24.1301 19.2643 20.0951 23.0294 15.1172 23.0294V23.0294Z" fill="#007FFF"/></svg>'
|
|
260
262
|
);
|
|
261
263
|
background-image: @-inline-svg-url;
|
|
262
264
|
}
|
|
263
265
|
|
|
264
266
|
.social__links-logo--email {
|
|
265
|
-
.inline-svg-code(
|
|
266
|
-
~'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.6875 12.9688C21.9375 13.5625 20.3125 14.75 17.875 16.5L17.5625 16.75C17.0625 17.125 16.6875 17.4062 16.375 17.5625C15.875 17.875 15.4062 18 15 18C14.5625 18 14.125 17.875 13.625 17.5938C13.3125 17.4375 12.9375 17.1562 12.4375 16.7812L12.125 16.5C9.59375 14.6875 8 13.5 7.3125 12.9688C7.25 12.9375 7.15625 12.9375 7.09375 12.9688C7.03125 13 7 13.0625 7 13.125V19.5C7 19.9375 7.125 20.2812 7.4375 20.5625C7.71875 20.875 8.0625 21 8.5 21H21.5C21.9062 21 22.25 20.875 22.5625 20.5625C22.8438 20.2812 23 19.9375 23 19.5V13.125C23 13.0625 22.9375 13 22.875 12.9375C22.8125 12.9062 22.75 12.9062 22.6875 12.9688ZM15 17C14.7188 17 14.375 16.875 14 16.625C13.75 16.5 13.4375 16.2812 13.0312 15.9375L12.7188 15.7188C10.1562 13.8438 8.40625 12.5625 7.5 11.8438L7.28125 11.6875C7.09375 11.5625 7 11.3438 7 11.0938V10.5C7 10.0938 7.125 9.75 7.4375 9.4375C7.71875 9.15625 8.0625 9 8.5 9H21.5C21.9062 9 22.25 9.15625 22.5625 9.4375C22.8438 9.75 23 10.0938 23 10.5V11.0938C23 11.3438 22.9062 11.5625 22.7188 11.6875L22.5625 11.8125C21.6562 12.5312 19.9062 13.8438 17.2812 15.7188L16.9688 15.9375C16.5312 16.2812 16.2188 16.5 16 16.625C15.5938 16.875 15.25 17 15 17Z" fill="white"/></svg>'
|
|
267
|
+
.inline-svg-code(~'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.6875 12.9688C21.9375 13.5625 20.3125 14.75 17.875 16.5L17.5625 16.75C17.0625 17.125 16.6875 17.4062 16.375 17.5625C15.875 17.875 15.4062 18 15 18C14.5625 18 14.125 17.875 13.625 17.5938C13.3125 17.4375 12.9375 17.1562 12.4375 16.7812L12.125 16.5C9.59375 14.6875 8 13.5 7.3125 12.9688C7.25 12.9375 7.15625 12.9375 7.09375 12.9688C7.03125 13 7 13.0625 7 13.125V19.5C7 19.9375 7.125 20.2812 7.4375 20.5625C7.71875 20.875 8.0625 21 8.5 21H21.5C21.9062 21 22.25 20.875 22.5625 20.5625C22.8438 20.2812 23 19.9375 23 19.5V13.125C23 13.0625 22.9375 13 22.875 12.9375C22.8125 12.9062 22.75 12.9062 22.6875 12.9688ZM15 17C14.7188 17 14.375 16.875 14 16.625C13.75 16.5 13.4375 16.2812 13.0312 15.9375L12.7188 15.7188C10.1562 13.8438 8.40625 12.5625 7.5 11.8438L7.28125 11.6875C7.09375 11.5625 7 11.3438 7 11.0938V10.5C7 10.0938 7.125 9.75 7.4375 9.4375C7.71875 9.15625 8.0625 9 8.5 9H21.5C21.9062 9 22.25 9.15625 22.5625 9.4375C22.8438 9.75 23 10.0938 23 10.5V11.0938C23 11.3438 22.9062 11.5625 22.7188 11.6875L22.5625 11.8125C21.6562 12.5312 19.9062 13.8438 17.2812 15.7188L16.9688 15.9375C16.5312 16.2812 16.2188 16.5 16 16.625C15.5938 16.875 15.25 17 15 17Z" fill="white"/></svg>'
|
|
267
268
|
);
|
|
268
269
|
background-image: @-inline-svg-url;
|
|
269
270
|
}
|
|
270
271
|
|
|
271
272
|
.social__links-logo--zalo {
|
|
272
|
-
.inline-svg-code(
|
|
273
|
-
~'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M29.9999 14.9385C29.9669 6.68262 23.2639 0 15 0C6.7157 0 0 6.71582 0 15C0 23.2842 6.7157 30 15 30C23.2639 30 29.9669 23.3174 29.9999 15.0615C29.9999 15.041 30 15.0205 30 15C30 14.9795 29.9999 14.959 29.9999 14.9385Z" fill="white"/><path d="M24.5612 17.4695C22.9394 17.4726 21.6242 16.1862 21.6279 14.6005C21.6316 13.0345 22.9474 11.7445 24.5473 11.7383C26.1556 11.732 27.4826 13.0349 27.4786 14.6162C27.4746 16.1926 26.1719 17.4665 24.5612 17.4695ZM22.8416 14.6183C22.8459 15.5573 23.6166 16.3004 24.5777 16.2923C25.5165 16.2845 26.2699 15.5301 26.2673 14.6005C26.2646 13.6712 25.51 12.9317 24.56 12.9277C23.6012 12.9237 22.8373 13.6751 22.8416 14.6183Z" fill="#0068FE"/><path d="M19.5054 10.0762H20.795V17.4217H19.9447C19.7021 17.4217 19.5054 17.225 19.5054 16.9823V10.0762Z" fill="#0068FE"/><path d="M18.5227 11.8907H17.2881V12.2935C16.5767 11.8601 15.8509 11.6775 15.06 11.831C14.2526 11.9876 13.6164 12.4043 13.167 13.0917C12.4538 14.1826 12.5894 15.5904 13.4938 16.5431C14.3504 17.4454 15.8628 17.8178 17.2815 16.9247C17.2835 16.934 17.286 16.9422 17.2881 16.9511V16.9826C17.2881 17.2252 17.4849 17.422 17.7275 17.422H18.5227V11.8907V11.8907ZM15.5853 16.2787C14.6636 16.268 13.8924 15.5006 13.8986 14.6004C13.9048 13.692 14.6716 12.9481 15.602 12.9479C16.5427 12.9477 17.2871 13.6781 17.2882 14.6026C17.2893 15.5333 16.521 16.2896 15.5853 16.2787Z" fill="#0068FE"/><path d="M8.0481 16.2438C9.39854 14.5856 10.6939 12.9885 11.9984 11.3989C12.2464 11.0968 12.3662 10.7671 12.3731 10.3807C12.3761 10.2135 12.3261 10.1646 12.1596 10.165C11.6056 10.1666 6.41195 10.165 6.41195 10.165V11.4709H10.4978C10.4424 11.543 7.83556 14.7218 6.57932 16.2403C6.37112 16.4919 6.26503 16.7645 6.25401 17.0936C6.24628 17.3242 6.28864 17.4139 6.52267 17.4211V17.4217H11.9356C12.1782 17.4217 12.3749 17.225 12.3749 16.9823V16.2487V16.2438H8.0481V16.2438Z" fill="#0068FE"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.948 26.1338C6.03613 27.1172 7.26917 27.9424 8.61108 28.5752V26.1338H4.948ZM0.00268555 14.7119C0.0775146 10.7393 1.69666 7.14453 4.28479 4.50293C4.0459 4.98242 3.83435 5.47949 3.64661 5.99121C2.58862 8.87598 2.31299 11.8506 2.69116 14.8916C2.95862 17.042 3.55518 19.0869 4.63391 20.9775C4.8269 21.3154 5.02271 21.6582 5.26489 21.9609C5.76672 22.5879 5.80981 23.2725 5.59888 24.0049C5.4873 24.3926 5.32227 24.75 5.11304 25.082C4.95691 25.3291 4.77612 25.5635 4.57434 25.7842C1.81921 23.1201 0.0819092 19.4102 0.00280762 15.2939C0.000976562 15.1963 0 15.0986 0 15C0 14.9033 0.000854492 14.8076 0.00268555 14.7119Z" fill="#0068FE"/><path fill-rule="evenodd" clip-rule="evenodd" d="M24.8226 26.3367C22.191 28.6189 18.7568 29.9998 15 29.9998C11.1449 29.9998 7.62952 28.5457 4.97241 26.156C6.32458 26.1921 7.61877 25.9031 8.86353 25.3464C8.97681 25.2957 9.06262 25.3113 9.16443 25.364C12.2258 26.9646 15.5131 27.5125 18.926 27.3962C20.9574 27.3269 22.9333 27.0046 24.8226 26.3367Z" fill="#015BDF"/></svg>'
|
|
273
|
+
.inline-svg-code(~'<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M29.9999 14.9385C29.9669 6.68262 23.2639 0 15 0C6.7157 0 0 6.71582 0 15C0 23.2842 6.7157 30 15 30C23.2639 30 29.9669 23.3174 29.9999 15.0615C29.9999 15.041 30 15.0205 30 15C30 14.9795 29.9999 14.959 29.9999 14.9385Z" fill="white"/><path d="M24.5612 17.4695C22.9394 17.4726 21.6242 16.1862 21.6279 14.6005C21.6316 13.0345 22.9474 11.7445 24.5473 11.7383C26.1556 11.732 27.4826 13.0349 27.4786 14.6162C27.4746 16.1926 26.1719 17.4665 24.5612 17.4695ZM22.8416 14.6183C22.8459 15.5573 23.6166 16.3004 24.5777 16.2923C25.5165 16.2845 26.2699 15.5301 26.2673 14.6005C26.2646 13.6712 25.51 12.9317 24.56 12.9277C23.6012 12.9237 22.8373 13.6751 22.8416 14.6183Z" fill="#0068FE"/><path d="M19.5054 10.0762H20.795V17.4217H19.9447C19.7021 17.4217 19.5054 17.225 19.5054 16.9823V10.0762Z" fill="#0068FE"/><path d="M18.5227 11.8907H17.2881V12.2935C16.5767 11.8601 15.8509 11.6775 15.06 11.831C14.2526 11.9876 13.6164 12.4043 13.167 13.0917C12.4538 14.1826 12.5894 15.5904 13.4938 16.5431C14.3504 17.4454 15.8628 17.8178 17.2815 16.9247C17.2835 16.934 17.286 16.9422 17.2881 16.9511V16.9826C17.2881 17.2252 17.4849 17.422 17.7275 17.422H18.5227V11.8907V11.8907ZM15.5853 16.2787C14.6636 16.268 13.8924 15.5006 13.8986 14.6004C13.9048 13.692 14.6716 12.9481 15.602 12.9479C16.5427 12.9477 17.2871 13.6781 17.2882 14.6026C17.2893 15.5333 16.521 16.2896 15.5853 16.2787Z" fill="#0068FE"/><path d="M8.0481 16.2438C9.39854 14.5856 10.6939 12.9885 11.9984 11.3989C12.2464 11.0968 12.3662 10.7671 12.3731 10.3807C12.3761 10.2135 12.3261 10.1646 12.1596 10.165C11.6056 10.1666 6.41195 10.165 6.41195 10.165V11.4709H10.4978C10.4424 11.543 7.83556 14.7218 6.57932 16.2403C6.37112 16.4919 6.26503 16.7645 6.25401 17.0936C6.24628 17.3242 6.28864 17.4139 6.52267 17.4211V17.4217H11.9356C12.1782 17.4217 12.3749 17.225 12.3749 16.9823V16.2487V16.2438H8.0481V16.2438Z" fill="#0068FE"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.948 26.1338C6.03613 27.1172 7.26917 27.9424 8.61108 28.5752V26.1338H4.948ZM0.00268555 14.7119C0.0775146 10.7393 1.69666 7.14453 4.28479 4.50293C4.0459 4.98242 3.83435 5.47949 3.64661 5.99121C2.58862 8.87598 2.31299 11.8506 2.69116 14.8916C2.95862 17.042 3.55518 19.0869 4.63391 20.9775C4.8269 21.3154 5.02271 21.6582 5.26489 21.9609C5.76672 22.5879 5.80981 23.2725 5.59888 24.0049C5.4873 24.3926 5.32227 24.75 5.11304 25.082C4.95691 25.3291 4.77612 25.5635 4.57434 25.7842C1.81921 23.1201 0.0819092 19.4102 0.00280762 15.2939C0.000976562 15.1963 0 15.0986 0 15C0 14.9033 0.000854492 14.8076 0.00268555 14.7119Z" fill="#0068FE"/><path fill-rule="evenodd" clip-rule="evenodd" d="M24.8226 26.3367C22.191 28.6189 18.7568 29.9998 15 29.9998C11.1449 29.9998 7.62952 28.5457 4.97241 26.156C6.32458 26.1921 7.61877 25.9031 8.86353 25.3464C8.97681 25.2957 9.06262 25.3113 9.16443 25.364C12.2258 26.9646 15.5131 27.5125 18.926 27.3962C20.9574 27.3269 22.9333 27.0046 24.8226 26.3367Z" fill="#015BDF"/></svg>'
|
|
274
274
|
);
|
|
275
275
|
background-image: @-inline-svg-url;
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
@keyframes hide {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
opacity: 0;
|
|
279
|
+
100% {
|
|
280
|
+
opacity: 0;
|
|
282
281
|
transform: scale(0);
|
|
283
|
-
|
|
282
|
+
}
|
|
284
283
|
}
|
|
285
284
|
|
|
286
285
|
.widget-header-expand-container {
|
|
@@ -40,7 +40,7 @@ function AgentsAvatar(props) {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
agents = _index.default.filter(agents, ag => !!ag);
|
|
43
|
-
if (agents.length === 0) {
|
|
43
|
+
if (agents.length === 0 || props.agent_ids === undefined || _index.default.size(props.agent_ids) === 0) {
|
|
44
44
|
return (0, _preact.h)("div", {
|
|
45
45
|
class: `group-avatar group-avatar--${mode}`
|
|
46
46
|
}, (0, _preact.h)("div", {
|
|
@@ -37,9 +37,12 @@ class Event extends _common.Com {
|
|
|
37
37
|
render() {
|
|
38
38
|
var ev = _index.default.get(this.props.event, 'ev', {});
|
|
39
39
|
switch (ev.type) {
|
|
40
|
+
case 'conversation_typing':
|
|
41
|
+
return this.renderTyping();
|
|
40
42
|
case 'conversation_joined':
|
|
41
43
|
break;
|
|
42
44
|
case 'message_sent':
|
|
45
|
+
if (this.props.event.is_typing) return this.renderTyping();
|
|
43
46
|
return this.renderMessageSent();
|
|
44
47
|
case 'conversation_state_updated':
|
|
45
48
|
case 'conversation_rating_requested':
|
|
@@ -151,19 +154,72 @@ class Event extends _common.Com {
|
|
|
151
154
|
OrderAttachments = (await LoadOrderAttachments()).default;
|
|
152
155
|
});
|
|
153
156
|
}
|
|
157
|
+
renderTyping() {
|
|
158
|
+
let innercls = 'agent-convo-event-inner';
|
|
159
|
+
var html = `
|
|
160
|
+
<html>
|
|
161
|
+
<head>
|
|
162
|
+
<style>
|
|
163
|
+
.typing-container {
|
|
164
|
+
width: 100vw;
|
|
165
|
+
height: 100vh;
|
|
166
|
+
display: flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
gap: 4px;
|
|
169
|
+
justify-content: center;
|
|
170
|
+
}
|
|
171
|
+
.typing-dot {
|
|
172
|
+
display: inline-block;
|
|
173
|
+
vertical-align: middle;
|
|
174
|
+
width: 8px;
|
|
175
|
+
height: 8px;
|
|
176
|
+
background: black;
|
|
177
|
+
border-radius: 50%;
|
|
178
|
+
animation: typing 0.5s infinite alternate;
|
|
179
|
+
}
|
|
180
|
+
.typing-dot:nth-of-type(2) {
|
|
181
|
+
animation-delay: 0.2s;
|
|
182
|
+
}
|
|
183
|
+
.typing-dot:nth-of-type(3) {
|
|
184
|
+
animation-delay: 0.6s;
|
|
185
|
+
}
|
|
186
|
+
@keyframes typing {
|
|
187
|
+
0% {
|
|
188
|
+
opacity: 0.9;
|
|
189
|
+
}
|
|
190
|
+
100% {
|
|
191
|
+
opacity: 0.4;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
</style>
|
|
195
|
+
</head>
|
|
196
|
+
<body style="padding: 0; margin: 0">
|
|
197
|
+
<div class="typing-container">
|
|
198
|
+
<span class="typing-dot"></span>
|
|
199
|
+
<span class="typing-dot"></span>
|
|
200
|
+
<span class="typing-dot"></span>
|
|
201
|
+
</div>
|
|
202
|
+
</body>
|
|
203
|
+
</html>
|
|
204
|
+
`;
|
|
205
|
+
let src = 'data:text/html,' + encodeURIComponent(html);
|
|
206
|
+
return (0, _preact.h)("div", {
|
|
207
|
+
class: "convo-event agent-message"
|
|
208
|
+
}, (0, _preact.h)("div", {
|
|
209
|
+
class: "agent-convo-event-wrapper"
|
|
210
|
+
}, (0, _preact.h)("div", {
|
|
211
|
+
class: innercls
|
|
212
|
+
}, (0, _preact.h)("div", {
|
|
213
|
+
class: "message-agent message-text--agent",
|
|
214
|
+
style: "opacity: 0.6 !important"
|
|
215
|
+
}, (0, _preact.h)("iframe", {
|
|
216
|
+
src: src,
|
|
217
|
+
style: "width: 35px !important; height: 20px !important; display: block !important; overflow: hidden !important; padding: 0 !important "
|
|
218
|
+
})))));
|
|
219
|
+
}
|
|
154
220
|
renderMessageSent() {
|
|
155
221
|
let ev = this.props.event.ev;
|
|
156
222
|
this.tryLoadOrder(ev);
|
|
157
|
-
var $time = null;
|
|
158
|
-
if (this.props.event.show_time) {
|
|
159
|
-
$time = (0, _preact.h)("div", {
|
|
160
|
-
class: "convo-event-time"
|
|
161
|
-
}, (0, _preact.h)(_time.default, {
|
|
162
|
-
time: ev.created,
|
|
163
|
-
t: this.props.t
|
|
164
|
-
}));
|
|
165
|
-
}
|
|
166
|
-
if (this.props.store.isAIDevMode()) $time = null;
|
|
167
223
|
let t = new _index.default.Date(ev.created).toLocaleString();
|
|
168
224
|
if (_index.default.get(ev, 'by.type') !== 'user') {
|
|
169
225
|
let $sender = null;
|
|
@@ -172,11 +228,13 @@ class Event extends _common.Com {
|
|
|
172
228
|
if (this.props.isLast) innercls += ' last';
|
|
173
229
|
return (0, _preact.h)("div", {
|
|
174
230
|
class: "convo-event agent-message"
|
|
175
|
-
}, $
|
|
231
|
+
}, $sender, (0, _preact.h)("div", {
|
|
176
232
|
class: "agent-convo-event-wrapper"
|
|
177
233
|
}, (0, _preact.h)("div", {
|
|
178
234
|
class: innercls
|
|
179
235
|
}, (0, _preact.h)(_TextMessage.default, {
|
|
236
|
+
showTime: this.props.event.show_time,
|
|
237
|
+
isLast: this.props.isLast,
|
|
180
238
|
store: this.props.store,
|
|
181
239
|
ev: ev,
|
|
182
240
|
onLink: this.props.onLink
|
|
@@ -240,9 +298,6 @@ class Event extends _common.Com {
|
|
|
240
298
|
});
|
|
241
299
|
}
|
|
242
300
|
let $sender = null;
|
|
243
|
-
if (this.props.event.mode === 'lead') $sender = (0, _preact.h)("div", {
|
|
244
|
-
class: "pt-3"
|
|
245
|
-
});
|
|
246
301
|
let $error = null;
|
|
247
302
|
if (ev._error && ev.type === 'message_sent') {
|
|
248
303
|
let msg = this.props.t('error_send_message');
|
|
@@ -259,7 +314,7 @@ class Event extends _common.Com {
|
|
|
259
314
|
}
|
|
260
315
|
return (0, _preact.h)("div", {
|
|
261
316
|
class: "convo-event user-message"
|
|
262
|
-
}, $
|
|
317
|
+
}, $sender, (0, _preact.h)("div", {
|
|
263
318
|
class: "message-user__container"
|
|
264
319
|
}, $dot, (0, _preact.h)(_TextMessage.default, {
|
|
265
320
|
store: this.props.store,
|