pager-widget 0.2.0 → 0.2.2
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/App.jsx +1036 -183
- package/ConsentPopup.jsx +97 -21
- package/Dropdown.jsx +143 -0
- package/InputConverter.jsx +408 -375
- package/dist/lib.js +13 -9
- package/md/assistant_md.js +73 -6
- package/package.json +1 -1
- package/static/additional.css +19 -1
- package/useEndpoint.js +11 -0
package/App.jsx
CHANGED
|
@@ -15,6 +15,7 @@ import useWidgetService from "./useWidgetService";
|
|
|
15
15
|
import InputConverter from "./InputConverter";
|
|
16
16
|
import ConsentPopup from "./ConsentPopup";
|
|
17
17
|
import axios from "axios";
|
|
18
|
+
import { EndPointProvider } from "./useEndpoint";
|
|
18
19
|
|
|
19
20
|
const switchSize = (size, small, medium, large) => {
|
|
20
21
|
// ;
|
|
@@ -77,7 +78,7 @@ const FormHeader = styled.div`
|
|
|
77
78
|
align-items: center;
|
|
78
79
|
width: 100%;
|
|
79
80
|
float: left;
|
|
80
|
-
font-family: "
|
|
81
|
+
font-family: "Inter", "Open Sans";
|
|
81
82
|
font-size: ${(props) => switchSize(props.size, "15px", "20px", "24px")};
|
|
82
83
|
color: #000;
|
|
83
84
|
margin-right: 12px;
|
|
@@ -135,7 +136,7 @@ const ChatWrapper = styled.div`
|
|
|
135
136
|
height: 46px;
|
|
136
137
|
|
|
137
138
|
p{
|
|
138
|
-
font-family:
|
|
139
|
+
font-family: "Inter", "Open Sans";
|
|
139
140
|
font-size: 12px;
|
|
140
141
|
color: #000;
|
|
141
142
|
margin: 0;
|
|
@@ -312,7 +313,7 @@ const ChatContentWrapper = styled.div`
|
|
|
312
313
|
padding: 12px 20px 20px 15px;
|
|
313
314
|
display: block;
|
|
314
315
|
overflow-y: scroll;
|
|
315
|
-
background: #
|
|
316
|
+
background: #FFFFFF;
|
|
316
317
|
overflow-x: hidden;
|
|
317
318
|
box-sizing: border-box;
|
|
318
319
|
// background-position: center;
|
|
@@ -354,14 +355,14 @@ const AssistantChat = styled.div`
|
|
|
354
355
|
// .timestamp {
|
|
355
356
|
// color: #888;
|
|
356
357
|
// font-size: 10px;
|
|
357
|
-
// font-family:
|
|
358
|
+
// font-family: "Inter", "Open Sans";
|
|
358
359
|
// }
|
|
359
360
|
|
|
360
361
|
// .tryit_cards h4 {
|
|
361
362
|
// font-size: 13px;
|
|
362
363
|
// margin-top: 10px;
|
|
363
364
|
// margin-bottom: 0px;
|
|
364
|
-
// font-family:
|
|
365
|
+
// font-family: "Inter", "Open Sans";
|
|
365
366
|
// width: 100%;
|
|
366
367
|
// color: #fff;
|
|
367
368
|
|
|
@@ -773,7 +774,7 @@ const ContentHeader = styled.div`
|
|
|
773
774
|
}
|
|
774
775
|
`;
|
|
775
776
|
const Paragraph = styled.p`
|
|
776
|
-
font-family: "
|
|
777
|
+
font-family: "Inter", "Open Sans";
|
|
777
778
|
margin: 0;
|
|
778
779
|
width: 100%;
|
|
779
780
|
color: #000;
|
|
@@ -809,14 +810,14 @@ const ChatMessage = styled.div`
|
|
|
809
810
|
padding: 12px 10px 8px 16px !important;
|
|
810
811
|
margin-left: 14px;
|
|
811
812
|
margin-top: 14px;
|
|
812
|
-
font-family: "
|
|
813
|
+
font-family: "Inter", "Open Sans";
|
|
813
814
|
white-space: pre-wrap;
|
|
814
815
|
box-sizing: border-box;
|
|
815
816
|
word-break: break-word;
|
|
816
817
|
border-radius: 0px 6px 6px 6px;
|
|
817
818
|
color: #333;
|
|
818
819
|
position: relative;
|
|
819
|
-
background: #
|
|
820
|
+
background: #f2f4f7 0% 0% no-repeat padding-box;
|
|
820
821
|
box-shadow: 0px 3px 5px #00000029;
|
|
821
822
|
border-radius: 0px 10px 10px 10px;
|
|
822
823
|
// font-size: 13px;
|
|
@@ -858,160 +859,869 @@ const ChatMessage = styled.div`
|
|
|
858
859
|
margin-top: ${(props) => switchSize(props.size, "45px", "50px", "60px")};
|
|
859
860
|
}
|
|
860
861
|
|
|
861
|
-
@media (max-width: 1920px) {
|
|
862
|
-
font-size: ${(props) => switchSize(props.size, "15px", "17px", "18px")};
|
|
863
|
-
padding: ${(props) =>
|
|
864
|
-
switchSize(
|
|
865
|
-
props.size,
|
|
866
|
-
"12px 10px 8px 28px !important",
|
|
867
|
-
"12px 10px 8px 28px !important",
|
|
868
|
-
"12px 10px 8px 20px !important"
|
|
869
|
-
)};
|
|
870
|
-
margin-left: ${(props) => switchSize(props.size, "22px", "22px", "22px")};
|
|
871
|
-
margin-top: ${(props) => switchSize(props.size, "32px", "34px", "34px")};
|
|
872
|
-
}
|
|
873
|
-
@media (max-width: 1680px) {
|
|
874
|
-
font-size: ${(props) => switchSize(props.size, "13px", "15px", "15px")};
|
|
875
|
-
padding: ${(props) =>
|
|
876
|
-
switchSize(
|
|
877
|
-
props.size,
|
|
878
|
-
"12px 10px 8px 18px !important",
|
|
879
|
-
"12px 10px 8px 20px !important",
|
|
880
|
-
"12px 10px 8px 22px !important"
|
|
881
|
-
)};
|
|
882
|
-
margin-left: ${(props) => switchSize(props.size, "14px", "16px", "18px")};
|
|
883
|
-
margin-top: ${(props) => switchSize(props.size, "26px", "26px", "26px")};
|
|
884
|
-
}
|
|
885
|
-
@media (max-width: 1280px) {
|
|
886
|
-
font-size: ${(props) => switchSize(props.size, "10px", "11px", "13px")};
|
|
887
|
-
padding: ${(props) =>
|
|
888
|
-
switchSize(
|
|
889
|
-
props.size,
|
|
890
|
-
"12px 10px 8px 16px !important",
|
|
891
|
-
"12px 10px 8px 16px !important",
|
|
892
|
-
"12px 10px 8px 16px !important"
|
|
893
|
-
)};
|
|
894
|
-
margin-left: ${(props) => switchSize(props.size, "16px", "16px", "16px")};
|
|
895
|
-
margin-top: ${(props) => switchSize(props.size, "22px", "22px", "22px")};
|
|
896
|
-
}
|
|
862
|
+
@media (max-width: 1920px) {
|
|
863
|
+
font-size: ${(props) => switchSize(props.size, "15px", "17px", "18px")};
|
|
864
|
+
padding: ${(props) =>
|
|
865
|
+
switchSize(
|
|
866
|
+
props.size,
|
|
867
|
+
"12px 10px 8px 28px !important",
|
|
868
|
+
"12px 10px 8px 28px !important",
|
|
869
|
+
"12px 10px 8px 20px !important"
|
|
870
|
+
)};
|
|
871
|
+
margin-left: ${(props) => switchSize(props.size, "22px", "22px", "22px")};
|
|
872
|
+
margin-top: ${(props) => switchSize(props.size, "32px", "34px", "34px")};
|
|
873
|
+
}
|
|
874
|
+
@media (max-width: 1680px) {
|
|
875
|
+
font-size: ${(props) => switchSize(props.size, "13px", "15px", "15px")};
|
|
876
|
+
padding: ${(props) =>
|
|
877
|
+
switchSize(
|
|
878
|
+
props.size,
|
|
879
|
+
"12px 10px 8px 18px !important",
|
|
880
|
+
"12px 10px 8px 20px !important",
|
|
881
|
+
"12px 10px 8px 22px !important"
|
|
882
|
+
)};
|
|
883
|
+
margin-left: ${(props) => switchSize(props.size, "14px", "16px", "18px")};
|
|
884
|
+
margin-top: ${(props) => switchSize(props.size, "26px", "26px", "26px")};
|
|
885
|
+
}
|
|
886
|
+
@media (max-width: 1280px) {
|
|
887
|
+
font-size: ${(props) => switchSize(props.size, "10px", "11px", "13px")};
|
|
888
|
+
padding: ${(props) =>
|
|
889
|
+
switchSize(
|
|
890
|
+
props.size,
|
|
891
|
+
"12px 10px 8px 16px !important",
|
|
892
|
+
"12px 10px 8px 16px !important",
|
|
893
|
+
"12px 10px 8px 16px !important"
|
|
894
|
+
)};
|
|
895
|
+
margin-left: ${(props) => switchSize(props.size, "16px", "16px", "16px")};
|
|
896
|
+
margin-top: ${(props) => switchSize(props.size, "22px", "22px", "22px")};
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
svg {
|
|
900
|
+
width: 6px;
|
|
901
|
+
height: 6px;
|
|
902
|
+
top: 0px;
|
|
903
|
+
left: -6px;
|
|
904
|
+
position: absolute;
|
|
905
|
+
color: #fff;
|
|
906
|
+
}
|
|
907
|
+
@media (max-width: 1736px) {
|
|
908
|
+
padding: 8px;
|
|
909
|
+
}
|
|
910
|
+
@media (max-width: 1600px) {
|
|
911
|
+
padding: 5px 8px;
|
|
912
|
+
}
|
|
913
|
+
.timestamp {
|
|
914
|
+
color: #888;
|
|
915
|
+
// font-size: 10px;
|
|
916
|
+
font-family: "Inter", "Open Sans";
|
|
917
|
+
position: relative;
|
|
918
|
+
bottom: 0px;
|
|
919
|
+
text-transform: uppercase;
|
|
920
|
+
|
|
921
|
+
@media (min-width: 2160px) {
|
|
922
|
+
font-size: ${(props) => switchSize(props.size, "16px", "19px", "21px")};
|
|
923
|
+
}
|
|
924
|
+
@media (min-width: 2560px) {
|
|
925
|
+
font-size: ${(props) => switchSize(props.size, "14px", "16px", "20px")};
|
|
926
|
+
}
|
|
927
|
+
@media (min-width: 3840px) {
|
|
928
|
+
font-size: ${(props) => switchSize(props.size, "24px", "26px", "30px")};
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
@media (max-width: 1920px) {
|
|
932
|
+
font-size: ${(props) => switchSize(props.size, "12px", "13px", "15px")};
|
|
933
|
+
}
|
|
934
|
+
@media (max-width: 1680px) {
|
|
935
|
+
font-size: ${(props) => switchSize(props.size, "10px", "12px", "13px")};
|
|
936
|
+
}
|
|
937
|
+
@media (max-width: 1280px) {
|
|
938
|
+
font-size: ${(props) => switchSize(props.size, "7px", "8px", "10px")};
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
.widget_title {
|
|
943
|
+
gap: 0 8px;
|
|
944
|
+
align-items: center;
|
|
945
|
+
margin-bottom: 2px;
|
|
946
|
+
display: flex;
|
|
947
|
+
margin-bottom: 4px;
|
|
948
|
+
|
|
949
|
+
h6 {
|
|
950
|
+
// font-size: 13px;
|
|
951
|
+
font-family: "Inter", "Open Sans";
|
|
952
|
+
color: #333;
|
|
953
|
+
margin: 0;
|
|
954
|
+
|
|
955
|
+
@media (min-width: 2160px) {
|
|
956
|
+
font-size: ${(props) => switchSize(props.size, "16px", "18px", "22px")};
|
|
957
|
+
}
|
|
958
|
+
@media (min-width: 2560px) {
|
|
959
|
+
font-size: ${(props) => switchSize(props.size, "16px", "18px", "24px")};
|
|
960
|
+
}
|
|
961
|
+
@media (min-width: 3840px) {
|
|
962
|
+
font-size: ${(props) => switchSize(props.size, "28px", "30px", "32px")};
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
@media (max-width: 1920px) {
|
|
966
|
+
font-size: ${(props) => switchSize(props.size, "14px", "15px", "16px")};
|
|
967
|
+
}
|
|
968
|
+
@media (max-width: 1680px) {
|
|
969
|
+
font-size: ${(props) => switchSize(props.size, "12px", "14px", "14px")};
|
|
970
|
+
}
|
|
971
|
+
@media (max-width: 1280px) {
|
|
972
|
+
font-size: ${(props) => switchSize(props.size, "8px", "9px", "12px")};
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.chatAssistant_one {
|
|
978
|
+
h6 {
|
|
979
|
+
font-size: 16px;
|
|
980
|
+
font-family: "Inter", "Open Sans";
|
|
981
|
+
color: #555;
|
|
982
|
+
margin: 16px 0 0;
|
|
983
|
+
font-style: italic;
|
|
984
|
+
}
|
|
985
|
+
ol {
|
|
986
|
+
margin: 0;
|
|
987
|
+
padding: 4px 0 0 2px;
|
|
988
|
+
list-style: none;
|
|
989
|
+
li {
|
|
990
|
+
color: #1d48eb;
|
|
991
|
+
font-size: 16px;
|
|
992
|
+
font-family: "Inter", "Open Sans";
|
|
993
|
+
margin-bottom: 4px;
|
|
994
|
+
a {
|
|
995
|
+
text-decoration: none;
|
|
996
|
+
cursor: pointer;
|
|
997
|
+
:hover {
|
|
998
|
+
text-decoration: underline;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
p {
|
|
1004
|
+
margin: 6px 0 0;
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.wid_message {
|
|
1009
|
+
font-size: 16px;
|
|
1010
|
+
font-family: "Inter", "Open Sans";
|
|
1011
|
+
}
|
|
1012
|
+
`;
|
|
1013
|
+
|
|
1014
|
+
const FormMessage = styled.div`
|
|
1015
|
+
width: 100%;
|
|
1016
|
+
|
|
1017
|
+
padding: 1px 10px 8px 10px !important;
|
|
1018
|
+
margin-left: 14px;
|
|
1019
|
+
margin-top: 20px;
|
|
1020
|
+
font-family: "Inter", "Open Sans";
|
|
1021
|
+
white-space: pre-wrap;
|
|
1022
|
+
box-sizing: border-box;
|
|
1023
|
+
word-break: break-word;
|
|
1024
|
+
border-radius: 0px 6px 6px 6px;
|
|
1025
|
+
color: #333;
|
|
1026
|
+
// position: relative;
|
|
1027
|
+
background: #f6f8fa 0% 0% no-repeat padding-box;
|
|
1028
|
+
box-shadow: 0px 3px 5px #00000029;
|
|
1029
|
+
border: 1px solid lightgrey;
|
|
1030
|
+
// border-radius: 0px 10px 10px 10px;
|
|
1031
|
+
`;
|
|
1032
|
+
const MessageBox = styled.div`
|
|
1033
|
+
width: 100%;
|
|
1034
|
+
float: left;
|
|
1035
|
+
display: flex;
|
|
1036
|
+
|
|
1037
|
+
${LogoSize} {
|
|
1038
|
+
position: absolute;
|
|
1039
|
+
z-index: 1;
|
|
1040
|
+
// width: 20px;
|
|
1041
|
+
// height: 20px;
|
|
1042
|
+
border: 1px solid #cecece;
|
|
1043
|
+
|
|
1044
|
+
@media (min-width: 2160px) {
|
|
1045
|
+
width: ${(props) => switchSize(props.size, "36px", "42px", "46px")};
|
|
1046
|
+
height: ${(props) => switchSize(props.size, "36px", "42px", "46px")};
|
|
1047
|
+
}
|
|
1048
|
+
@media (min-width: 2560px) {
|
|
1049
|
+
width: ${(props) => switchSize(props.size, "40px", "48px", "56px")};
|
|
1050
|
+
height: ${(props) => switchSize(props.size, "40px", "48px", "56px")};
|
|
1051
|
+
}
|
|
1052
|
+
@media (min-width: 3840px) {
|
|
1053
|
+
width: ${(props) => switchSize(props.size, "64px", "72px", "80px")};
|
|
1054
|
+
height: ${(props) => switchSize(props.size, "64px", "72px", "80px")};
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
@media (max-width: 1920px) {
|
|
1058
|
+
width: ${(props) => switchSize(props.size, "32px", "36px", "40px")};
|
|
1059
|
+
height: ${(props) => switchSize(props.size, "32px", "36px", "40px")};
|
|
1060
|
+
}
|
|
1061
|
+
@media (max-width: 1680px) {
|
|
1062
|
+
width: ${(props) => switchSize(props.size, "28px", "32px", "34px")};
|
|
1063
|
+
height: ${(props) => switchSize(props.size, "28px", "32px", "34px")};
|
|
1064
|
+
}
|
|
1065
|
+
@media (max-width: 1280px) {
|
|
1066
|
+
width: ${(props) => switchSize(props.size, "20px", "24px", "28px")};
|
|
1067
|
+
height: ${(props) => switchSize(props.size, "20px", "24px", "28px")};
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
img {
|
|
1071
|
+
// width: 24px;
|
|
1072
|
+
// height: 24px;
|
|
1073
|
+
|
|
1074
|
+
@media (min-width: 2160px) {
|
|
1075
|
+
width: ${(props) => switchSize(props.size, "32px", "40px", "44px")};
|
|
1076
|
+
height: ${(props) => switchSize(props.size, "32px", "40px", "44px")};
|
|
1077
|
+
}
|
|
1078
|
+
@media (min-width: 2560px) {
|
|
1079
|
+
width: ${(props) => switchSize(props.size, "36px", "44px", "52px")};
|
|
1080
|
+
height: ${(props) => switchSize(props.size, "36px", "44px", "52px")};
|
|
1081
|
+
}
|
|
1082
|
+
@media (min-width: 3840px) {
|
|
1083
|
+
width: ${(props) => switchSize(props.size, "64px", "68px", "76px")};
|
|
1084
|
+
height: ${(props) => switchSize(props.size, "64px", "68px", "76px")};
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
@media (max-width: 1920px) {
|
|
1088
|
+
width: ${(props) => switchSize(props.size, "32px", "34px", "38px")};
|
|
1089
|
+
height: ${(props) => switchSize(props.size, "32px", "34px", "38px")};
|
|
1090
|
+
}
|
|
1091
|
+
@media (max-width: 1680px) {
|
|
1092
|
+
width: ${(props) => switchSize(props.size, "26px", "30px", "32px")};
|
|
1093
|
+
height: ${(props) => switchSize(props.size, "26px", "30px", "32px")};
|
|
1094
|
+
}
|
|
1095
|
+
@media (max-width: 1280px) {
|
|
1096
|
+
width: ${(props) => switchSize(props.size, "18px", "22px", "26px")};
|
|
1097
|
+
height: ${(props) => switchSize(props.size, "18px", "22px", "26px")};
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
svg {
|
|
1101
|
+
width: 18px;
|
|
1102
|
+
height: 18px;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
.left_arrow {
|
|
1107
|
+
transform: rotate(180deg);
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
.arrows {
|
|
1111
|
+
display: flex;
|
|
1112
|
+
align-items: center;
|
|
1113
|
+
margin-top: 28px;
|
|
1114
|
+
img {
|
|
1115
|
+
width: 16px;
|
|
1116
|
+
height: 32px;
|
|
1117
|
+
cursor: pointer;
|
|
1118
|
+
|
|
1119
|
+
@media (min-width: 2160px) {
|
|
1120
|
+
width: 22px;
|
|
1121
|
+
height: 44px;
|
|
1122
|
+
}
|
|
1123
|
+
@media (min-width: 2560px) {
|
|
1124
|
+
width: 27px;
|
|
1125
|
+
height: 54px;
|
|
1126
|
+
}
|
|
1127
|
+
@media (min-width: 3840px) {
|
|
1128
|
+
width: 32px;
|
|
1129
|
+
height: 64px;
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
.carousal_wrapper {
|
|
1135
|
+
display: flex;
|
|
1136
|
+
@media (max-width: 1920px) {
|
|
1137
|
+
position: relative;
|
|
1138
|
+
left: 10px;
|
|
1139
|
+
}
|
|
1140
|
+
@media (max-width: 1680px) {
|
|
1141
|
+
position: relative;
|
|
1142
|
+
left: 0px;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
.carousal_container {
|
|
1147
|
+
margin-left: auto;
|
|
1148
|
+
margin-right: auto;
|
|
1149
|
+
overflow: hidden;
|
|
1150
|
+
list-style: none;
|
|
1151
|
+
padding: 0;
|
|
1152
|
+
z-index: 1;
|
|
1153
|
+
|
|
1154
|
+
.widget_arrows {
|
|
1155
|
+
display: flex;
|
|
1156
|
+
align-items: center;
|
|
1157
|
+
position: absolute;
|
|
1158
|
+
width: 458px;
|
|
1159
|
+
justify-content: space-between;
|
|
1160
|
+
float: left;
|
|
1161
|
+
left: -20px;
|
|
1162
|
+
top: 44%;
|
|
1163
|
+
|
|
1164
|
+
div:first-child {
|
|
1165
|
+
transform: rotate(180deg);
|
|
1166
|
+
}
|
|
1167
|
+
div:last-child {
|
|
1168
|
+
position: relative;
|
|
1169
|
+
right: 0px;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
img {
|
|
1173
|
+
width: 16px;
|
|
1174
|
+
height: 32px;
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
.carousal_slide_container {
|
|
1180
|
+
position: relative;
|
|
1181
|
+
width: 100%;
|
|
1182
|
+
height: 100%;
|
|
1183
|
+
z-index: 1;
|
|
1184
|
+
display: flex;
|
|
1185
|
+
transition-property: transform;
|
|
1186
|
+
box-sizing: content-box;
|
|
1187
|
+
transition-duration: 300ms;
|
|
1188
|
+
|
|
1189
|
+
.tryit_cards {
|
|
1190
|
+
width: 97%;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
.slide,
|
|
1194
|
+
.carousal_slide_container {
|
|
1195
|
+
transform: translate3d(0px, 0, 0);
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
.slide {
|
|
1199
|
+
border-radius: 10px;
|
|
1200
|
+
width: 100%;
|
|
1201
|
+
float: left;
|
|
1202
|
+
flex-shrink: 0;
|
|
1203
|
+
position: relative;
|
|
1204
|
+
transition-property: transform;
|
|
1205
|
+
transform: translateZ(0);
|
|
1206
|
+
backface-visibility: hidden;
|
|
1207
|
+
display: flex;
|
|
1208
|
+
flex-direction: column;
|
|
1209
|
+
margin-top: 5px;
|
|
1210
|
+
box-sizing: border-box;
|
|
1211
|
+
overflow: hidden;
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
.carousal_box_section {
|
|
1216
|
+
position: relative;
|
|
1217
|
+
width: 100%;
|
|
1218
|
+
|
|
1219
|
+
@media (min-width: 2160px) {
|
|
1220
|
+
width: ${(props) => switchSize(props.size, "94.1%", "96%", "98.1%")};
|
|
1221
|
+
}
|
|
1222
|
+
@media (min-width: 2560px) {
|
|
1223
|
+
width: ${(props) => switchSize(props.size, "94.1%", "96%", "98%")};
|
|
1224
|
+
}
|
|
1225
|
+
@media (min-width: 3840px) {
|
|
1226
|
+
width: ${(props) => switchSize(props.size, "97%", "100%", "100%")};
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
@media (max-width: 1920px) {
|
|
1230
|
+
left: 3px;
|
|
1231
|
+
}
|
|
1232
|
+
@media (max-width: 1680px) {
|
|
1233
|
+
left: 1px;
|
|
1234
|
+
}
|
|
1235
|
+
@media (max-width: 1280px) {
|
|
1236
|
+
left: 0px;
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
.adaptive_card_box {
|
|
1241
|
+
width: 99.7%;
|
|
1242
|
+
flex-direction: row-reverse;
|
|
1243
|
+
display: flex;
|
|
1244
|
+
background: transparent linear-gradient(180deg, #444444 0%, #222222 100%) 0%
|
|
1245
|
+
0% no-repeat padding-box;
|
|
1246
|
+
justify-content: space-evenly;
|
|
1247
|
+
border-radius: 10px 11px 0 0;
|
|
1248
|
+
align-items: center;
|
|
1249
|
+
|
|
1250
|
+
@media (min-width: 2160px) {
|
|
1251
|
+
gap: ${(props) => switchSize(props.size, "4%", "6%", "6%")};
|
|
1252
|
+
height: ${(props) => switchSize(props.size, "76px", "84px", "90px")};
|
|
1253
|
+
border-radius: ${(props) =>
|
|
1254
|
+
switchSize(
|
|
1255
|
+
props.size,
|
|
1256
|
+
"10px 12px 0 0;",
|
|
1257
|
+
"12px 14px 0 0;",
|
|
1258
|
+
"16px 18px 0 0;"
|
|
1259
|
+
)};
|
|
1260
|
+
}
|
|
1261
|
+
@media (min-width: 2560px) {
|
|
1262
|
+
gap: ${(props) => switchSize(props.size, "4%", "6%", "6%")};
|
|
1263
|
+
height: ${(props) => switchSize(props.size, "80px", "100px", "110px")};
|
|
1264
|
+
border-radius: ${(props) =>
|
|
1265
|
+
switchSize(
|
|
1266
|
+
props.size,
|
|
1267
|
+
"16px 18px 0 0;",
|
|
1268
|
+
"20px 22px 0 0;",
|
|
1269
|
+
"20px 22px 0 0;"
|
|
1270
|
+
)};
|
|
1271
|
+
}
|
|
1272
|
+
@media (min-width: 3840px) {
|
|
1273
|
+
gap: ${(props) => switchSize(props.size, "8%", "10%", "10%")};
|
|
1274
|
+
height: ${(props) => switchSize(props.size, "100px", "116px", "124px")};
|
|
1275
|
+
border-radius: ${(props) =>
|
|
1276
|
+
switchSize(
|
|
1277
|
+
props.size,
|
|
1278
|
+
"16px 18px 0 0;",
|
|
1279
|
+
"20px 22px 0 0;",
|
|
1280
|
+
"20px 22px 0 0;"
|
|
1281
|
+
)};
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
.tryit_cards_top_left {
|
|
1285
|
+
width: 28px;
|
|
1286
|
+
height: 24px;
|
|
1287
|
+
margin-right: 0;
|
|
1288
|
+
position: relative;
|
|
1289
|
+
float: left;
|
|
1290
|
+
border: 1px solid rgb(225, 225, 225);
|
|
1291
|
+
display: flex;
|
|
1292
|
+
align-items: center;
|
|
1293
|
+
background: #fff;
|
|
1294
|
+
justify-content: center;
|
|
1295
|
+
border-radius: 50%;
|
|
1296
|
+
|
|
1297
|
+
@media (min-width: 2160px) {
|
|
1298
|
+
width: 36px;
|
|
1299
|
+
height: 28px;
|
|
1300
|
+
}
|
|
1301
|
+
@media (min-width: 2560px) {
|
|
1302
|
+
width: 46px;
|
|
1303
|
+
height: 38px;
|
|
1304
|
+
}
|
|
1305
|
+
@media (min-width: 3840px) {
|
|
1306
|
+
width: 56px;
|
|
1307
|
+
height: 48px;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
img {
|
|
1311
|
+
max-width: 100%;
|
|
1312
|
+
height: auto;
|
|
1313
|
+
border-radius: 50%;
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
.chat_adaptiveCard_section {
|
|
1319
|
+
margin: 10px 10px 10px 16px;
|
|
1320
|
+
width: 100%;
|
|
1321
|
+
float: left;
|
|
1322
|
+
position: relative;
|
|
1323
|
+
|
|
1324
|
+
@media (max-width: 1280px) {
|
|
1325
|
+
margin: 4px 10px 10px 16px;
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
.tryit_cards_top_right {
|
|
1330
|
+
position: relative;
|
|
1331
|
+
width: 78%;
|
|
1332
|
+
float: left;
|
|
1333
|
+
padding-left: 0;
|
|
1334
|
+
height: 100%;
|
|
1335
|
+
display: flex;
|
|
1336
|
+
flex-wrap: wrap;
|
|
1337
|
+
align-items: center;
|
|
1338
|
+
padding: 0 4px;
|
|
1339
|
+
min-height: 54px;
|
|
1340
|
+
|
|
1341
|
+
@media (min-width: 2160px) {
|
|
1342
|
+
width: 74%;
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
.timestamp {
|
|
1347
|
+
color: #888;
|
|
1348
|
+
font-size: 10px;
|
|
1349
|
+
font-family: "Inter", "Open Sans";
|
|
1350
|
+
|
|
1351
|
+
@media (min-width: 2160px) {
|
|
1352
|
+
font-size: ${(props) => switchSize(props.size, "12px", "12px", "16px")};
|
|
1353
|
+
}
|
|
1354
|
+
@media (min-width: 2560px) {
|
|
1355
|
+
font-size: ${(props) => switchSize(props.size, "16px", "16px", "20px")};
|
|
1356
|
+
}
|
|
1357
|
+
@media (min-width: 3840px) {
|
|
1358
|
+
font-size: ${(props) => switchSize(props.size, "24px", "26px", "30px")};
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
@media (max-width: 1920px) {
|
|
1362
|
+
font-size: ${(props) => switchSize(props.size, "12px", "13px", "15px")};
|
|
1363
|
+
}
|
|
1364
|
+
@media (max-width: 1600px) {
|
|
1365
|
+
font-size: ${(props) => switchSize(props.size, "10px", "12px", "13px")};
|
|
1366
|
+
}
|
|
1367
|
+
@media (max-width: 1280px) {
|
|
1368
|
+
font-size: ${(props) => switchSize(props.size, "8px", "8px", "10px")};
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
.tryit_cards h4 {
|
|
1373
|
+
font-size: 13px;
|
|
1374
|
+
margin-top: 10px;
|
|
1375
|
+
margin-bottom: 0px;
|
|
1376
|
+
font-family: "Inter", "Open Sans";
|
|
1377
|
+
width: 100%;
|
|
1378
|
+
color: #fff;
|
|
1379
|
+
|
|
1380
|
+
@media (min-width: 2160px) {
|
|
1381
|
+
font-size: ${(props) => switchSize(props.size, "16px", "16px", "21px")};
|
|
1382
|
+
}
|
|
1383
|
+
@media (min-width: 2560px) {
|
|
1384
|
+
font-size: ${(props) => switchSize(props.size, "22px", "22px", "22px")};
|
|
1385
|
+
}
|
|
1386
|
+
@media (min-width: 3840px) {
|
|
1387
|
+
font-size: ${(props) => switchSize(props.size, "24px", "26px", "30px")};
|
|
1388
|
+
margin-top: 16px;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
@media (max-width: 1920px) {
|
|
1392
|
+
font-size: ${(props) => switchSize(props.size, "12px", "13px", "15px")};
|
|
1393
|
+
}
|
|
1394
|
+
@media (max-width: 1600px) {
|
|
1395
|
+
font-size: ${(props) => switchSize(props.size, "10px", "12px", "13px")};
|
|
1396
|
+
}
|
|
1397
|
+
@media (max-width: 1280px) {
|
|
1398
|
+
font-size: ${(props) => switchSize(props.size, "8px", "8px", "11px")};
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
.tryit_cards .tryit_cards_top_right p {
|
|
1403
|
+
font-size: 12px;
|
|
1404
|
+
color: #fff;
|
|
1405
|
+
max-width: 100%;
|
|
1406
|
+
font-family: "Inter", "Open Sans";
|
|
1407
|
+
margin: 0 0 8px 0;
|
|
1408
|
+
display: flex;
|
|
1409
|
+
|
|
1410
|
+
@media (min-width: 2160px) {
|
|
1411
|
+
font-size: ${(props) => switchSize(props.size, "14px", "16px", "18px")};
|
|
1412
|
+
}
|
|
1413
|
+
@media (min-width: 2560px) {
|
|
1414
|
+
font-size: ${(props) => switchSize(props.size, "18px", "20px", "22px")};
|
|
1415
|
+
}
|
|
1416
|
+
@media (min-width: 3840px) {
|
|
1417
|
+
font-size: ${(props) => switchSize(props.size, "24px", "24px", "24px")};
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
a {
|
|
1421
|
+
color: #fff;
|
|
1422
|
+
text-decoration: none;
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
.tryit_ticket_details_wrapper button {
|
|
1427
|
+
min-height: 28px;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
.tryit_wrapper_card {
|
|
1431
|
+
width: 90%;
|
|
1432
|
+
margin-left: 12px;
|
|
1433
|
+
margin-top: 12px;
|
|
1434
|
+
border: none !important;
|
|
1435
|
+
|
|
1436
|
+
@media (min-width: 2160px) {
|
|
1437
|
+
margin-left: ${(props) => switchSize(props.size, "28px", "28px", "28px")};
|
|
1438
|
+
margin-top: ${(props) => switchSize(props.size, "34px", "34px", "34px")};
|
|
1439
|
+
}
|
|
1440
|
+
@media (min-width: 2560px) {
|
|
1441
|
+
margin-left: ${(props) => switchSize(props.size, "20px", "25px", "20px")};
|
|
1442
|
+
margin-top: ${(props) => switchSize(props.size, "30px", "45px", "30px")};
|
|
1443
|
+
}
|
|
1444
|
+
@media (min-width: 3840px) {
|
|
1445
|
+
margin-left: ${(props) => switchSize(props.size, "30px", "44px", "44px")};
|
|
1446
|
+
margin-top: ${(props) => switchSize(props.size, "56px", "56px", "56px")};
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
@media (max-width: 1920px) {
|
|
1450
|
+
margin-left: ${(props) => switchSize(props.size, "22px", "22px", "22px")};
|
|
1451
|
+
margin-top: ${(props) => switchSize(props.size, "28px", "28px", "28px")};
|
|
1452
|
+
}
|
|
1453
|
+
@media (max-width: 1680px) {
|
|
1454
|
+
margin-left: ${(props) => switchSize(props.size, "14px", "18px", "18px")};
|
|
1455
|
+
margin-top: ${(props) => switchSize(props.size, "22px", "28px", "28px")};
|
|
1456
|
+
}
|
|
1457
|
+
@media (max-width: 1280px) {
|
|
1458
|
+
margin-left: ${(props) => switchSize(props.size, "10px", "10px", "10px")};
|
|
1459
|
+
margin-top: ${(props) => switchSize(props.size, "15px", "15px", "15px")};
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
@media (max-width: 1280px) {
|
|
1463
|
+
margin-left: 16px;
|
|
1464
|
+
margin-top: 22px;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
.adaptive_tail_icon {
|
|
1468
|
+
position: absolute;
|
|
1469
|
+
}
|
|
1470
|
+
.adaptive_tail_icon svg {
|
|
1471
|
+
width: 6px;
|
|
1472
|
+
height: 6px;
|
|
1473
|
+
top: 0px;
|
|
1474
|
+
margin-left: -5px;
|
|
1475
|
+
position: absolute;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
.tryit_cards {
|
|
1479
|
+
margin-top: 0px;
|
|
1480
|
+
width: 98.2%;
|
|
1481
|
+
min-height: 200px;
|
|
1482
|
+
background: #ffffff 0% 0% no-repeat padding-box;
|
|
1483
|
+
box-shadow: 0px 3px 6px #00000029 !important;
|
|
1484
|
+
border-radius: 10px;
|
|
1485
|
+
padding: 12px 30px 12px 0px;
|
|
1486
|
+
float: left;
|
|
1487
|
+
|
|
1488
|
+
@media (min-width: 2160px) {
|
|
1489
|
+
padding: ${(props) =>
|
|
1490
|
+
switchSize(
|
|
1491
|
+
props.size,
|
|
1492
|
+
"12px 30px 12px 0px",
|
|
1493
|
+
"12px 30px 12px 0px",
|
|
1494
|
+
"12px 36px 12px 2px"
|
|
1495
|
+
)};
|
|
1496
|
+
width: 99%;
|
|
1497
|
+
}
|
|
1498
|
+
@media (min-width: 2560px) {
|
|
1499
|
+
padding: ${(props) =>
|
|
1500
|
+
switchSize(
|
|
1501
|
+
props.size,
|
|
1502
|
+
"12px 30px 12px 0px",
|
|
1503
|
+
"12px 30px 12px 0px",
|
|
1504
|
+
"24px 44px 24px 20px"
|
|
1505
|
+
)};
|
|
1506
|
+
}
|
|
1507
|
+
@media (min-width: 3840px) {
|
|
1508
|
+
padding: ${(props) =>
|
|
1509
|
+
switchSize(
|
|
1510
|
+
props.size,
|
|
1511
|
+
"24px 50px 24px 25px",
|
|
1512
|
+
"24px 50px 24px 25px",
|
|
1513
|
+
"24px 50px 24px 25px"
|
|
1514
|
+
)};
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
.widget_title {
|
|
1518
|
+
padding-left: 22px;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
.tryit_ticket_wrapper {
|
|
1522
|
+
padding: 16px 0px 0 16px;
|
|
1523
|
+
box-shadow: none;
|
|
1524
|
+
width: 95.5%;
|
|
1525
|
+
max-height: 164px;
|
|
1526
|
+
overflow-y: scroll;
|
|
1527
|
+
background: #fff;
|
|
1528
|
+
border-radius: 0px 10px 10px 10px;
|
|
1529
|
+
float: left;
|
|
1530
|
+
|
|
1531
|
+
@media (min-width: 2160px) {
|
|
1532
|
+
max-height: ${(props) =>
|
|
1533
|
+
switchSize(props.size, "186px", "190px", "230px")};
|
|
1534
|
+
}
|
|
1535
|
+
@media (min-width: 2560px) {
|
|
1536
|
+
max-height: ${(props) =>
|
|
1537
|
+
switchSize(props.size, "186px", "190px", "230px")};
|
|
1538
|
+
}
|
|
1539
|
+
@media (min-width: 3840px) {
|
|
1540
|
+
max-height: ${(props) =>
|
|
1541
|
+
switchSize(props.size, "280px", "328px", "328px")};
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
.tryit_ticket_details_wrapper {
|
|
1545
|
+
grid-template-columns: auto;
|
|
1546
|
+
|
|
1547
|
+
.tryit_ticket_details {
|
|
1548
|
+
.tryit_ticket_colun {
|
|
1549
|
+
width: auto;
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
div:nth-child(3) h6 {
|
|
1554
|
+
width: 35%;
|
|
1555
|
+
}
|
|
1556
|
+
.tryit_ticket_details span {
|
|
1557
|
+
position: relative;
|
|
1558
|
+
bottom: 0px;
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
.widget_title {
|
|
1563
|
+
gap: 0 8px;
|
|
1564
|
+
align-items: center;
|
|
1565
|
+
margin-bottom: 2px;
|
|
1566
|
+
display: flex;
|
|
1567
|
+
|
|
1568
|
+
h6 {
|
|
1569
|
+
font-size: 13px;
|
|
1570
|
+
font-family: "Inter", "Open Sans";
|
|
1571
|
+
color: #333;
|
|
1572
|
+
margin: 0;
|
|
1573
|
+
|
|
1574
|
+
@media (min-width: 2160px) {
|
|
1575
|
+
font-size: ${(props) =>
|
|
1576
|
+
switchSize(props.size, "16px", "18px", "22px")};
|
|
1577
|
+
}
|
|
1578
|
+
@media (min-width: 2560px) {
|
|
1579
|
+
font-size: ${(props) =>
|
|
1580
|
+
switchSize(props.size, "18px", "18px", "24px")};
|
|
1581
|
+
}
|
|
1582
|
+
@media (min-width: 3840px) {
|
|
1583
|
+
font-size: ${(props) =>
|
|
1584
|
+
switchSize(props.size, "28px", "30px", "32px")};
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
@media (max-width: 1920px) {
|
|
1588
|
+
font-size: ${(props) =>
|
|
1589
|
+
switchSize(props.size, "14px", "15px", "16px")};
|
|
1590
|
+
}
|
|
1591
|
+
@media (max-width: 1600px) {
|
|
1592
|
+
font-size: ${(props) =>
|
|
1593
|
+
switchSize(props.size, "12px", "13px", "14px")};
|
|
1594
|
+
}
|
|
1595
|
+
@media (max-width: 1280px) {
|
|
1596
|
+
font-size: ${(props) =>
|
|
1597
|
+
switchSize(props.size, "9px", "9px", "12px")};
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
.tryit_cards .tryit_cards_wrapper {
|
|
1603
|
+
width: 99%;
|
|
1604
|
+
float: left;
|
|
1605
|
+
background: #fff;
|
|
1606
|
+
border-top: none;
|
|
1607
|
+
border-bottom-right-radius: 10px;
|
|
1608
|
+
border-bottom-left-radius: 12px;
|
|
1609
|
+
border: 1px solid #c8c8c8;
|
|
1610
|
+
|
|
1611
|
+
@media (min-width: 2160px) {
|
|
1612
|
+
font-size: ${(props) => switchSize(props.size, "20px", "21px", "22px")};
|
|
1613
|
+
}
|
|
1614
|
+
@media (min-width: 2560px) {
|
|
1615
|
+
font-size: ${(props) => switchSize(props.size, "18px", "18px", "24px")};
|
|
1616
|
+
width: 99.4%;
|
|
1617
|
+
}
|
|
1618
|
+
@media (min-width: 3840px) {
|
|
1619
|
+
width: 99.3%;
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
897
1622
|
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
1623
|
+
.tryit_ticket_wrapper.tryit_button_wrapper {
|
|
1624
|
+
padding-top: 0px;
|
|
1625
|
+
display: flex;
|
|
1626
|
+
justify-content: flex-start;
|
|
1627
|
+
flex-direction: row;
|
|
1628
|
+
flex-wrap: wrap;
|
|
1629
|
+
gap: 0 8px;
|
|
1630
|
+
margin-bottom: 12px;
|
|
1631
|
+
padding-bottom: 6px;
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
.tryit_button_wrapper .tryit_ticket_details_wrapper {
|
|
1635
|
+
left: inherit;
|
|
1636
|
+
width: max-content;
|
|
1637
|
+
width: 100%;
|
|
1638
|
+
|
|
1639
|
+
button {
|
|
1640
|
+
margin-top: 0px;
|
|
1641
|
+
min-width: unset;
|
|
1642
|
+
width: 100%;
|
|
1643
|
+
max-width: 100%;
|
|
1644
|
+
margin-right: 0px;
|
|
1645
|
+
margin-bottom: 6px;
|
|
1646
|
+
:hover {
|
|
1647
|
+
box-shadow: 0px 3px 5px #00000029;
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
908
1651
|
}
|
|
909
|
-
|
|
910
|
-
|
|
1652
|
+
|
|
1653
|
+
.tryit_ticket_details_wrapper .tryit_ticket_details {
|
|
1654
|
+
flex-direction: row;
|
|
1655
|
+
gap: 0 8px;
|
|
1656
|
+
align-items: baseline;
|
|
1657
|
+
display: flex;
|
|
1658
|
+
margin-bottom: 10px;
|
|
911
1659
|
}
|
|
912
|
-
.
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
bottom: 0px;
|
|
918
|
-
text-transform: uppercase;
|
|
1660
|
+
.tryit_ticket_wrapper h6 {
|
|
1661
|
+
font-size: 12px;
|
|
1662
|
+
width: 35%;
|
|
1663
|
+
margin: 0;
|
|
1664
|
+
font-family: "Inter", "Open Sans";
|
|
919
1665
|
|
|
920
1666
|
@media (min-width: 2160px) {
|
|
921
|
-
font-size: ${(props) => switchSize(props.size, "16px", "
|
|
1667
|
+
font-size: ${(props) => switchSize(props.size, "16px", "18px", "20px")};
|
|
922
1668
|
}
|
|
923
1669
|
@media (min-width: 2560px) {
|
|
924
|
-
font-size: ${(props) => switchSize(props.size, "
|
|
1670
|
+
font-size: ${(props) => switchSize(props.size, "18px", "18px", "24px")};
|
|
925
1671
|
}
|
|
926
1672
|
@media (min-width: 3840px) {
|
|
927
|
-
font-size: ${(props) => switchSize(props.size, "
|
|
1673
|
+
font-size: ${(props) => switchSize(props.size, "28px", "30px", "32px")};
|
|
928
1674
|
}
|
|
929
1675
|
|
|
930
1676
|
@media (max-width: 1920px) {
|
|
931
|
-
font-size: ${(props) => switchSize(props.size, "
|
|
1677
|
+
font-size: ${(props) => switchSize(props.size, "14px", "15px", "16px")};
|
|
932
1678
|
}
|
|
933
|
-
@media (max-width:
|
|
934
|
-
font-size: ${(props) => switchSize(props.size, "
|
|
1679
|
+
@media (max-width: 1600px) {
|
|
1680
|
+
font-size: ${(props) => switchSize(props.size, "12px", "13px", "14px")};
|
|
935
1681
|
}
|
|
936
1682
|
@media (max-width: 1280px) {
|
|
937
|
-
font-size: ${(props) => switchSize(props.size, "
|
|
1683
|
+
font-size: ${(props) => switchSize(props.size, "9px", "9px", "12px")};
|
|
938
1684
|
}
|
|
939
1685
|
}
|
|
1686
|
+
.tryit_ticket_wrapper p {
|
|
1687
|
+
font-size: 12px;
|
|
1688
|
+
line-height: normal;
|
|
1689
|
+
position: relative;
|
|
1690
|
+
bottom: 1px;
|
|
1691
|
+
width: 60%;
|
|
1692
|
+
font-family: "Inter", "Open Sans";
|
|
1693
|
+
margin: 0;
|
|
1694
|
+
word-break: break-word;
|
|
940
1695
|
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
// font-size: 13px;
|
|
950
|
-
font-family: "Gordita-Medium", "Open Sans", sans-serif;
|
|
951
|
-
color: #333;
|
|
952
|
-
margin: 0;
|
|
953
|
-
|
|
954
|
-
@media (min-width: 2160px) {
|
|
955
|
-
font-size: ${(props) => switchSize(props.size, "16px", "18px", "22px")};
|
|
956
|
-
}
|
|
957
|
-
@media (min-width: 2560px) {
|
|
958
|
-
font-size: ${(props) => switchSize(props.size, "16px", "18px", "24px")};
|
|
959
|
-
}
|
|
960
|
-
@media (min-width: 3840px) {
|
|
961
|
-
font-size: ${(props) => switchSize(props.size, "28px", "30px", "32px")};
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
@media (max-width: 1920px) {
|
|
965
|
-
font-size: ${(props) => switchSize(props.size, "14px", "15px", "16px")};
|
|
966
|
-
}
|
|
967
|
-
@media (max-width: 1680px) {
|
|
968
|
-
font-size: ${(props) => switchSize(props.size, "12px", "14px", "14px")};
|
|
969
|
-
}
|
|
970
|
-
@media (max-width: 1280px) {
|
|
971
|
-
font-size: ${(props) => switchSize(props.size, "8px", "9px", "12px")};
|
|
972
|
-
}
|
|
1696
|
+
@media (min-width: 2160px) {
|
|
1697
|
+
font-size: ${(props) => switchSize(props.size, "16px", "18px", "20px")};
|
|
1698
|
+
}
|
|
1699
|
+
@media (min-width: 2560px) {
|
|
1700
|
+
font-size: ${(props) => switchSize(props.size, "18px", "18px", "24px")};
|
|
1701
|
+
}
|
|
1702
|
+
@media (min-width: 3840px) {
|
|
1703
|
+
font-size: ${(props) => switchSize(props.size, "28px", "30px", "32px")};
|
|
973
1704
|
}
|
|
974
|
-
}
|
|
975
1705
|
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
font-size: 16px;
|
|
979
|
-
font-family: "Gordita-Regular", "Open Sans", sans-serif;
|
|
980
|
-
color: #555;
|
|
981
|
-
margin: 16px 0 0;
|
|
982
|
-
font-style: italic;
|
|
1706
|
+
@media (max-width: 1920px) {
|
|
1707
|
+
font-size: ${(props) => switchSize(props.size, "14px", "15px", "16px")};
|
|
983
1708
|
}
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
padding: 4px 0 0 2px;
|
|
987
|
-
list-style: none;
|
|
988
|
-
li {
|
|
989
|
-
color: #1d48eb;
|
|
990
|
-
font-size: 16px;
|
|
991
|
-
font-family: "Gordita-Regular", "Open Sans", sans-serif;
|
|
992
|
-
margin-bottom: 4px;
|
|
993
|
-
a {
|
|
994
|
-
text-decoration: none;
|
|
995
|
-
cursor: pointer;
|
|
996
|
-
:hover {
|
|
997
|
-
text-decoration: underline;
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1709
|
+
@media (max-width: 1600px) {
|
|
1710
|
+
font-size: ${(props) => switchSize(props.size, "12px", "13px", "14px")};
|
|
1001
1711
|
}
|
|
1002
|
-
|
|
1003
|
-
|
|
1712
|
+
@media (max-width: 1280px) {
|
|
1713
|
+
font-size: ${(props) => switchSize(props.size, "9px", "9px", "12px")};
|
|
1004
1714
|
}
|
|
1005
1715
|
}
|
|
1006
1716
|
|
|
1007
|
-
.
|
|
1008
|
-
|
|
1009
|
-
font-family: "Gordita-Regular", "Open Sans", sans-serif;
|
|
1717
|
+
.tryit_ticket_wrapper p:first-child {
|
|
1718
|
+
bottom: 3px;
|
|
1010
1719
|
}
|
|
1011
1720
|
`;
|
|
1012
|
-
|
|
1721
|
+
|
|
1722
|
+
const FormBox = styled.div`
|
|
1013
1723
|
width: 100%;
|
|
1014
|
-
|
|
1724
|
+
position: relative;
|
|
1015
1725
|
display: flex;
|
|
1016
1726
|
|
|
1017
1727
|
${LogoSize} {
|
|
@@ -1326,7 +2036,7 @@ const MessageBox = styled.div`
|
|
|
1326
2036
|
.timestamp {
|
|
1327
2037
|
color: #888;
|
|
1328
2038
|
font-size: 10px;
|
|
1329
|
-
font-family: "
|
|
2039
|
+
font-family: "'Inter', 'Open Sans'";
|
|
1330
2040
|
|
|
1331
2041
|
@media (min-width: 2160px) {
|
|
1332
2042
|
font-size: ${(props) => switchSize(props.size, "12px", "12px", "16px")};
|
|
@@ -1353,7 +2063,7 @@ const MessageBox = styled.div`
|
|
|
1353
2063
|
font-size: 13px;
|
|
1354
2064
|
margin-top: 10px;
|
|
1355
2065
|
margin-bottom: 0px;
|
|
1356
|
-
font-family: "
|
|
2066
|
+
font-family: "'Inter', 'Open Sans'";
|
|
1357
2067
|
width: 100%;
|
|
1358
2068
|
color: #fff;
|
|
1359
2069
|
|
|
@@ -1383,7 +2093,7 @@ const MessageBox = styled.div`
|
|
|
1383
2093
|
font-size: 12px;
|
|
1384
2094
|
color: #fff;
|
|
1385
2095
|
max-width: 100%;
|
|
1386
|
-
font-family: "
|
|
2096
|
+
font-family: "'Inter', 'Open Sans'";
|
|
1387
2097
|
margin: 0 0 8px 0;
|
|
1388
2098
|
display: flex;
|
|
1389
2099
|
|
|
@@ -1547,7 +2257,7 @@ const MessageBox = styled.div`
|
|
|
1547
2257
|
|
|
1548
2258
|
h6 {
|
|
1549
2259
|
font-size: 13px;
|
|
1550
|
-
font-family: "
|
|
2260
|
+
font-family: "'Inter', 'Open Sans'";
|
|
1551
2261
|
color: #333;
|
|
1552
2262
|
margin: 0;
|
|
1553
2263
|
|
|
@@ -1641,7 +2351,7 @@ const MessageBox = styled.div`
|
|
|
1641
2351
|
font-size: 12px;
|
|
1642
2352
|
width: 35%;
|
|
1643
2353
|
margin: 0;
|
|
1644
|
-
font-family: "
|
|
2354
|
+
font-family: "'Inter', 'Open Sans'";
|
|
1645
2355
|
|
|
1646
2356
|
@media (min-width: 2160px) {
|
|
1647
2357
|
font-size: ${(props) => switchSize(props.size, "16px", "18px", "20px")};
|
|
@@ -1669,7 +2379,7 @@ const MessageBox = styled.div`
|
|
|
1669
2379
|
position: relative;
|
|
1670
2380
|
bottom: 1px;
|
|
1671
2381
|
width: 60%;
|
|
1672
|
-
font-family: "
|
|
2382
|
+
font-family: "'Inter', 'Open Sans'";
|
|
1673
2383
|
margin: 0;
|
|
1674
2384
|
word-break: break-word;
|
|
1675
2385
|
|
|
@@ -1932,7 +2642,7 @@ const WidgetUpdateButton = styled.div`
|
|
|
1932
2642
|
cursor: pointer;
|
|
1933
2643
|
margin-top: 12px;
|
|
1934
2644
|
font-size: 14px;
|
|
1935
|
-
font-family: "
|
|
2645
|
+
font-family: "Inter";
|
|
1936
2646
|
display: flex;
|
|
1937
2647
|
align-items: center;
|
|
1938
2648
|
padding: 6px 12px;
|
|
@@ -1967,7 +2677,7 @@ export const Button = styled.button`
|
|
|
1967
2677
|
outline: 0;
|
|
1968
2678
|
cursor: pointer;
|
|
1969
2679
|
margin-top: 4px;
|
|
1970
|
-
font-family: "
|
|
2680
|
+
font-family: "Inter";
|
|
1971
2681
|
display: inline-flex;
|
|
1972
2682
|
align-items: center;
|
|
1973
2683
|
padding: 6px 12px;
|
|
@@ -2067,8 +2777,8 @@ const InputMessageChat = styled.div`
|
|
|
2067
2777
|
padding: 8px 16px 4px 16px;
|
|
2068
2778
|
border-top: 1px solid #e5e5e5;
|
|
2069
2779
|
border-bottom: 1px solid #e5e5e5;
|
|
2070
|
-
border-bottom-left-radius:
|
|
2071
|
-
border-bottom-right-radius:
|
|
2780
|
+
border-bottom-left-radius: 0px;
|
|
2781
|
+
border-bottom-right-radius: 0px;
|
|
2072
2782
|
|
|
2073
2783
|
.widget_input_message_section {
|
|
2074
2784
|
display: flex;
|
|
@@ -2096,7 +2806,7 @@ const InputMessageChat = styled.div`
|
|
|
2096
2806
|
border: none;
|
|
2097
2807
|
background-color: transparent;
|
|
2098
2808
|
outline: none;
|
|
2099
|
-
font-family: "
|
|
2809
|
+
font-family: "Inter";
|
|
2100
2810
|
// font-size: 14px !important;
|
|
2101
2811
|
// margin-top: 5px;
|
|
2102
2812
|
// line-height: 20px;
|
|
@@ -2401,7 +3111,7 @@ const ButtonWrapper = styled.div`
|
|
|
2401
3111
|
cursor: pointer;
|
|
2402
3112
|
margin-top: 12px;
|
|
2403
3113
|
font-size: 12px;
|
|
2404
|
-
font-family: "
|
|
3114
|
+
font-family: "Inter";
|
|
2405
3115
|
display: inline-flex;
|
|
2406
3116
|
align-items: center;
|
|
2407
3117
|
padding: 6px 12px;
|
|
@@ -2452,7 +3162,7 @@ const style = {
|
|
|
2452
3162
|
overflowWrap: "break-word",
|
|
2453
3163
|
textAlign: "start",
|
|
2454
3164
|
height: "38px",
|
|
2455
|
-
fontFamily: "
|
|
3165
|
+
fontFamily: "Inter",
|
|
2456
3166
|
};
|
|
2457
3167
|
|
|
2458
3168
|
const App = ({
|
|
@@ -2493,7 +3203,7 @@ const App = ({
|
|
|
2493
3203
|
|
|
2494
3204
|
// enableConsent,
|
|
2495
3205
|
});
|
|
2496
|
-
|
|
3206
|
+
console.log("widget", widget);
|
|
2497
3207
|
const conversationId = messages[0]?.message?.system?.conversationId;
|
|
2498
3208
|
|
|
2499
3209
|
const [open, setOpen] = useState(openByDefault);
|
|
@@ -2507,20 +3217,14 @@ const App = ({
|
|
|
2507
3217
|
setSourceState(widget?.source_id);
|
|
2508
3218
|
}
|
|
2509
3219
|
}, [widget]);
|
|
2510
|
-
|
|
3220
|
+
|
|
2511
3221
|
useEffect(() => {
|
|
2512
3222
|
if (!widget?.id) return; // Prevent API call if widget ID is undefined
|
|
2513
3223
|
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
3224
|
axios
|
|
2517
|
-
.get(
|
|
2518
|
-
`http://dev.pagergpt.ai/wgt-hook/public/${widget?.workspace}/${widget.id}/form`
|
|
2519
|
-
)
|
|
3225
|
+
.get(`${endpoint}/public/${widget?.workspace}/${widget.id}/form`)
|
|
2520
3226
|
.then((res) => {
|
|
2521
|
-
|
|
2522
3227
|
setFields(res.data);
|
|
2523
|
-
|
|
2524
3228
|
})
|
|
2525
3229
|
.catch((err) => {
|
|
2526
3230
|
console.error("Error fetching form:", err);
|
|
@@ -2550,6 +3254,7 @@ const App = ({
|
|
|
2550
3254
|
exit={exit}
|
|
2551
3255
|
logoshape={style.logo_shape}
|
|
2552
3256
|
/>
|
|
3257
|
+
<EndPointProvider endpoint={endpoint}>
|
|
2553
3258
|
<ChatContentWrapper
|
|
2554
3259
|
size={widget_size}
|
|
2555
3260
|
clsassName="widget_chat_content"
|
|
@@ -2573,23 +3278,56 @@ const App = ({
|
|
|
2573
3278
|
isVisible={isVisible}
|
|
2574
3279
|
setIsVisible={setIsVisible}
|
|
2575
3280
|
setSourceState={setSourceState}
|
|
3281
|
+
userDetails={userDetails}
|
|
2576
3282
|
/>
|
|
2577
3283
|
)}
|
|
2578
|
-
|
|
2579
|
-
{(
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
3284
|
+
|
|
3285
|
+
{(sourceState &&
|
|
3286
|
+
typeof sourceState === "string" &&
|
|
3287
|
+
sourceState.includes("browser") &&
|
|
3288
|
+
fields &&
|
|
3289
|
+
widget?.lead_form_id !== null) ||
|
|
3290
|
+
(widget.user_consent == false &&
|
|
3291
|
+
sourceState == "new_user" &&
|
|
3292
|
+
widget?.lead_form_id !== null &&
|
|
3293
|
+
fields) ? (
|
|
3294
|
+
<>
|
|
3295
|
+
<FormBox>
|
|
3296
|
+
<LogoSize
|
|
3297
|
+
style={{
|
|
3298
|
+
borderRadius: "50%",
|
|
3299
|
+
top: "2px",
|
|
3300
|
+
height: "24.9px",
|
|
3301
|
+
width: "24px",
|
|
3302
|
+
}}
|
|
3303
|
+
>
|
|
3304
|
+
<img
|
|
3305
|
+
alt={"logo"}
|
|
3306
|
+
src={
|
|
3307
|
+
(widget && widget.logo_url) ||
|
|
3308
|
+
"https://workativ-asssistant-widget-images.s3.amazonaws.com/chat_logo.png"
|
|
3309
|
+
}
|
|
3310
|
+
style={{
|
|
3311
|
+
width: "26px",
|
|
3312
|
+
height: "26px",
|
|
3313
|
+
}}
|
|
3314
|
+
/>
|
|
3315
|
+
</LogoSize>
|
|
3316
|
+
<FormMessage>
|
|
3317
|
+
<InputConverter
|
|
3318
|
+
formData={fields}
|
|
3319
|
+
conversationId={conversationId}
|
|
3320
|
+
widget={widget}
|
|
3321
|
+
workspace={widget?.workspace}
|
|
3322
|
+
setFormSubmit={setFormSubmit}
|
|
3323
|
+
setSourceState={setSourceState}
|
|
3324
|
+
/>
|
|
3325
|
+
</FormMessage>
|
|
3326
|
+
</FormBox>
|
|
3327
|
+
</>
|
|
2591
3328
|
) : null}
|
|
2592
3329
|
</ChatContentWrapper>
|
|
3330
|
+
</EndPointProvider>
|
|
2593
3331
|
<Footer
|
|
2594
3332
|
{...{ sendMessage, onFileUpload }}
|
|
2595
3333
|
widget={widget}
|
|
@@ -2758,12 +3496,10 @@ const BodyWrapper = ({
|
|
|
2758
3496
|
widget,
|
|
2759
3497
|
style,
|
|
2760
3498
|
}) => {
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
3499
|
return (
|
|
2764
3500
|
<>
|
|
2765
3501
|
{messages.map((message, key) => (
|
|
2766
|
-
<>
|
|
3502
|
+
<>
|
|
2767
3503
|
{((sourceState == "new_user" && widget.user_consent == false) ||
|
|
2768
3504
|
sourceState !== "new_user") && (
|
|
2769
3505
|
<Message
|
|
@@ -2778,7 +3514,6 @@ const BodyWrapper = ({
|
|
|
2778
3514
|
)}
|
|
2779
3515
|
</>
|
|
2780
3516
|
))}
|
|
2781
|
-
|
|
2782
3517
|
</>
|
|
2783
3518
|
);
|
|
2784
3519
|
};
|
|
@@ -3145,6 +3880,7 @@ const ReceivedCarousalOutput = ({
|
|
|
3145
3880
|
|
|
3146
3881
|
const ChatHeaderTop = ({ widget, onClick, open, restart, exit, logoshape }) => {
|
|
3147
3882
|
const scale = useScaleContext();
|
|
3883
|
+
|
|
3148
3884
|
return (
|
|
3149
3885
|
<ChatHeader
|
|
3150
3886
|
className="widget_chat_top"
|
|
@@ -3185,7 +3921,7 @@ const ChatHeaderTop = ({ widget, onClick, open, restart, exit, logoshape }) => {
|
|
|
3185
3921
|
</Paragraph>
|
|
3186
3922
|
</ContentHeaderLeft>
|
|
3187
3923
|
<ContentHeaderRight size={scale.widgetSize}>
|
|
3188
|
-
<IconSpan
|
|
3924
|
+
{/* <IconSpan
|
|
3189
3925
|
className="relative restart"
|
|
3190
3926
|
onClick={restart}
|
|
3191
3927
|
style={{ fill: widget.primary_color }}
|
|
@@ -3207,8 +3943,26 @@ const ChatHeaderTop = ({ widget, onClick, open, restart, exit, logoshape }) => {
|
|
|
3207
3943
|
/>
|
|
3208
3944
|
</svg>
|
|
3209
3945
|
<label className="restart_content">Restart Chat</label>
|
|
3210
|
-
</IconSpan>
|
|
3211
|
-
<
|
|
3946
|
+
</IconSpan> */}
|
|
3947
|
+
<div
|
|
3948
|
+
style={{
|
|
3949
|
+
display: "flex",
|
|
3950
|
+
gap: "8px",
|
|
3951
|
+
}}
|
|
3952
|
+
>
|
|
3953
|
+
<button
|
|
3954
|
+
onClick={restart}
|
|
3955
|
+
style={{
|
|
3956
|
+
color: `${widget.primary_color}`,
|
|
3957
|
+
background: `${widget.accent_color}`,
|
|
3958
|
+
border: "1px solid white",
|
|
3959
|
+
padding: "10px 15px",
|
|
3960
|
+
borderRadius: "8px",
|
|
3961
|
+
}}
|
|
3962
|
+
>
|
|
3963
|
+
Restart
|
|
3964
|
+
</button>
|
|
3965
|
+
{/* <IconSpan
|
|
3212
3966
|
className="relative close_section"
|
|
3213
3967
|
onClick={exit}
|
|
3214
3968
|
style={{ fill: widget.primary_color }}
|
|
@@ -3228,7 +3982,20 @@ const ChatHeaderTop = ({ widget, onClick, open, restart, exit, logoshape }) => {
|
|
|
3228
3982
|
<path d="M16.8 14.9l4.2-4.2.1-.1c.4-.5.4-1.3-.1-1.7-.5-.4-1.3-.4-1.7.1l-4.2 4.2L10.9 9l-.1-.1c-.2-.2-.5-.3-.9-.3-.3 0-.6.1-.8.4-.3.2-.4.5-.3.8 0 .3.2.6.4.8l4.2 4.2L9.2 19c-.2.2-.4.5-.4.9 0 .7.5 1.2 1.2 1.2.3 0 .6-.1.9-.4l4.2-4.2 4.2 4.2-.1.3h.9c.3 0 .6-.1.9-.4.5-.5.5-1.2 0-1.7l-4.2-4z" />
|
|
3229
3983
|
</svg>
|
|
3230
3984
|
<label className=""> End Chat </label>
|
|
3231
|
-
</IconSpan>
|
|
3985
|
+
</IconSpan> */}
|
|
3986
|
+
<button
|
|
3987
|
+
onClick={exit}
|
|
3988
|
+
style={{
|
|
3989
|
+
color: `${widget.primary_color}`,
|
|
3990
|
+
background: `${widget.accent_color}`,
|
|
3991
|
+
border: "1px solid white",
|
|
3992
|
+
padding: "10px 15px",
|
|
3993
|
+
borderRadius: "8px",
|
|
3994
|
+
}}
|
|
3995
|
+
>
|
|
3996
|
+
Exit
|
|
3997
|
+
</button>
|
|
3998
|
+
</div>
|
|
3232
3999
|
</ContentHeaderRight>
|
|
3233
4000
|
</ContentHeader>
|
|
3234
4001
|
</ChatHeader>
|
|
@@ -3247,6 +4014,7 @@ const AiResponse = ({
|
|
|
3247
4014
|
const scale = useScaleContext();
|
|
3248
4015
|
return (
|
|
3249
4016
|
<>
|
|
4017
|
+
|
|
3250
4018
|
<MessageBox size={scale.widgetSize} className="widget_chat_logs">
|
|
3251
4019
|
<LogoSize style={{ borderRadius: logoshape == "box" ? "5%" : "50%" }}>
|
|
3252
4020
|
<img
|
|
@@ -3263,6 +4031,7 @@ const AiResponse = ({
|
|
|
3263
4031
|
<div className="timestamp">{formatTimeAMPM(timestamp)}</div>
|
|
3264
4032
|
</div>
|
|
3265
4033
|
<div>
|
|
4034
|
+
{console.log("output text", output.text)}
|
|
3266
4035
|
<AssistantMd mdText={output.text}></AssistantMd>
|
|
3267
4036
|
</div>
|
|
3268
4037
|
</ChatMessage>
|
|
@@ -3290,6 +4059,7 @@ const ChatAssistant = ({
|
|
|
3290
4059
|
}) => {
|
|
3291
4060
|
// const [hover, setHover] = useState(false);
|
|
3292
4061
|
const scale = useScaleContext();
|
|
4062
|
+
console.log("chat assistant", widget);
|
|
3293
4063
|
if (outputStruct.response_type === "ai_response") {
|
|
3294
4064
|
return (
|
|
3295
4065
|
<AiResponse
|
|
@@ -3306,7 +4076,14 @@ const ChatAssistant = ({
|
|
|
3306
4076
|
return (
|
|
3307
4077
|
<>
|
|
3308
4078
|
<MessageBox size={scale.widgetSize} className="widget_chat_logs">
|
|
3309
|
-
<LogoSize
|
|
4079
|
+
<LogoSize
|
|
4080
|
+
style={{
|
|
4081
|
+
borderRadius: logoshape == "box" ? "5%" : "50%",
|
|
4082
|
+
width: "24.9px",
|
|
4083
|
+
height: "24px",
|
|
4084
|
+
top: "12px",
|
|
4085
|
+
}}
|
|
4086
|
+
>
|
|
3310
4087
|
<img
|
|
3311
4088
|
alt={"logo"}
|
|
3312
4089
|
src={
|
|
@@ -3317,7 +4094,12 @@ const ChatAssistant = ({
|
|
|
3317
4094
|
</LogoSize>
|
|
3318
4095
|
<ChatMessage size={scale.widgetSize}>
|
|
3319
4096
|
<div className="flex widget_title chat_assisitant">
|
|
3320
|
-
<h6
|
|
4097
|
+
<h6 style={{
|
|
4098
|
+
fontWeight: "500",
|
|
4099
|
+
fontSize: "12px",
|
|
4100
|
+
fontStyle: "normal",
|
|
4101
|
+
lineHeight: "18px",
|
|
4102
|
+
}}>{widget && widget.name}</h6>
|
|
3321
4103
|
<div className="timestamp">{formatTimeAMPM(timestamp)}</div>
|
|
3322
4104
|
</div>
|
|
3323
4105
|
{type === "text_with_btns" ? (
|
|
@@ -3326,6 +4108,7 @@ const ChatAssistant = ({
|
|
|
3326
4108
|
</div>
|
|
3327
4109
|
) : (
|
|
3328
4110
|
<div>
|
|
4111
|
+
{console.log("output struct", outputStruct.value)}
|
|
3329
4112
|
<AssistantMd mdText={outputStruct.value}></AssistantMd>
|
|
3330
4113
|
</div>
|
|
3331
4114
|
)}
|
|
@@ -3377,6 +4160,16 @@ const FeedbackBtn = ({
|
|
|
3377
4160
|
<Button
|
|
3378
4161
|
// onMouseOver={() => setHovered(true)}
|
|
3379
4162
|
// onMouseLeave={() => setHovered(false)}
|
|
4163
|
+
style={{
|
|
4164
|
+
display: "flex",
|
|
4165
|
+
justifyContent: "center",
|
|
4166
|
+
width: "32px",
|
|
4167
|
+
height: "32px",
|
|
4168
|
+
padding: "6px",
|
|
4169
|
+
borderRadius: "9999px",
|
|
4170
|
+
border: "none",
|
|
4171
|
+
marginTop: "8px",
|
|
4172
|
+
}}
|
|
3380
4173
|
type="button"
|
|
3381
4174
|
onClick={() => {
|
|
3382
4175
|
if (action.contract_action) {
|
|
@@ -3393,7 +4186,50 @@ const FeedbackBtn = ({
|
|
|
3393
4186
|
className="widget_btn"
|
|
3394
4187
|
size={scale.widgetSize}
|
|
3395
4188
|
>
|
|
3396
|
-
|
|
4189
|
+
{console.log("label", label)}
|
|
4190
|
+
{/* <AssistantMd mdText={label} /> */}
|
|
4191
|
+
{label === "Satisfied" ? (
|
|
4192
|
+
<svg
|
|
4193
|
+
xmlns="
|
|
4194
|
+
http://www.w3.org/2000/svg"
|
|
4195
|
+
viewBox="0 0 24 24"
|
|
4196
|
+
fill="none"
|
|
4197
|
+
width="24px"
|
|
4198
|
+
height="24px"
|
|
4199
|
+
>
|
|
4200
|
+
<path
|
|
4201
|
+
d="M15.1615 7.17025L15.2093 7.04661C15.2927 6.83088 15.3344 6.72298 15.3656 6.62109C15.6691 5.6323 15.4418 4.55693 14.7642 3.7755C14.6943 3.69498 14.6126 3.6132 14.449 3.44965C14.3543 3.35494 14.3069 3.30758 14.265 3.27382C13.8463 2.93673 13.236 2.99095 12.8833 3.39658C12.848 3.4372 12.8097 3.49217 12.7332 3.60209L9.72134 7.92817C9.08193 8.8466 8.76223 9.30581 8.53555 9.8057C8.33438 10.2494 8.18798 10.7159 8.09959 11.1949C8 11.7347 8 12.2942 8 13.4133V15.2006C8 16.8808 8 17.7209 8.32698 18.3626C8.6146 18.9271 9.07354 19.386 9.63803 19.6737C10.2798 20.0006 11.1198 20.0006 12.8 20.0006H16.309C17.7762 20.0006 18.5097 20.0006 19.1014 19.7317C19.6228 19.4946 20.0655 19.1132 20.3771 18.6326C20.7306 18.0872 20.8392 17.3617 21.0562 15.9107L21.5879 12.3557C21.73 11.4061 21.801 10.9312 21.6589 10.562C21.5342 10.2379 21.3009 9.96707 20.9988 9.79578C20.6546 9.60064 20.1745 9.60064 19.2143 9.60064H16.8278C16.4565 9.60064 16.2708 9.60064 16.1339 9.575C15.3205 9.42264 14.7842 8.64037 14.9353 7.82676C14.9607 7.68983 15.0276 7.51663 15.1615 7.17025Z"
|
|
4202
|
+
stroke="#1EC959"
|
|
4203
|
+
strokeWidth="2"
|
|
4204
|
+
strokeLinecap="round"
|
|
4205
|
+
strokeLinejoin="round"
|
|
4206
|
+
/>
|
|
4207
|
+
<path
|
|
4208
|
+
d="M3 11.5006C3 10.1199 4.11929 9.00064 5.5 9.00064C6.88071 9.00064 8 10.1199 8 11.5006V17.5006C8 18.8814 6.88071 20.0006 5.5 20.0006C4.11929 20.0006 3 18.8814 3 17.5006V11.5006Z"
|
|
4209
|
+
stroke="#1EC959"
|
|
4210
|
+
strokeWidth="1.7"
|
|
4211
|
+
strokeLinecap="round"
|
|
4212
|
+
strokeLinejoin="round"
|
|
4213
|
+
/>
|
|
4214
|
+
</svg>
|
|
4215
|
+
) : (
|
|
4216
|
+
<svg
|
|
4217
|
+
xmlns="
|
|
4218
|
+
http://www.w3.org/2000/svg"
|
|
4219
|
+
viewBox="0 0 24 24"
|
|
4220
|
+
fill="none"
|
|
4221
|
+
width="24px"
|
|
4222
|
+
height="24px"
|
|
4223
|
+
>
|
|
4224
|
+
<path
|
|
4225
|
+
d="M16 11.0638V12.5C16 13.8807 17.1193 15 18.5 15C19.8807 15 21 13.8807 21 12.5V6.5C21 5.11929 19.8807 4 18.5 4C17.1193 4 16 5.11929 16 6.5V8.26803M16 11.0638C15.9981 11.8772 15.9848 12.3486 15.9004 12.8057C15.812 13.2848 15.6657 13.7513 15.4645 14.1949C15.2378 14.6948 14.9181 15.154 14.2787 16.0725L11.2669 20.3986C11.1903 20.5085 11.1521 20.5634 11.1167 20.6041C10.764 21.0097 10.1537 21.0639 9.73502 20.7268C9.69309 20.6931 9.64573 20.6457 9.55102 20.551C9.38747 20.3874 9.30569 20.3057 9.23586 20.2251C8.55824 19.4437 8.33094 18.3683 8.63439 17.3796C8.66566 17.2777 8.70737 17.1698 8.79074 16.954L8.83852 16.8304C8.97239 16.484 9.03932 16.3108 9.06475 16.1739C9.21585 15.3603 8.67951 14.578 7.86615 14.4256C7.72925 14.4 7.54357 14.4 7.17222 14.4H4.7857C3.82553 14.4 3.34542 14.4 3.00125 14.2049C2.69915 14.0336 2.46584 13.7628 2.34113 13.4387C2.19905 13.0694 2.27007 12.5946 2.4121 11.645L2.94384 8.08995C3.16087 6.63894 3.26938 5.91343 3.62294 5.36807C3.93452 4.88744 4.3772 4.50605 4.89864 4.26899C5.4903 4 6.22388 4 7.69103 4H11.2C12.8802 4 13.7203 4 14.362 4.32698C14.9265 4.6146 15.3854 5.07354 15.673 5.63803C15.9635 6.20815 15.9964 6.93482 16 8.26803M16 11.0638V8.26803"
|
|
4226
|
+
stroke="#ED3535"
|
|
4227
|
+
strokeWidth="1.7"
|
|
4228
|
+
strokeLinecap="round"
|
|
4229
|
+
strokeLinejoin="round"
|
|
4230
|
+
/>
|
|
4231
|
+
</svg>
|
|
4232
|
+
)}
|
|
3397
4233
|
</Button>
|
|
3398
4234
|
</WidgetUpdateButton>
|
|
3399
4235
|
);
|
|
@@ -3441,6 +4277,16 @@ const DisplayLineBreaks = ({ text }) => {
|
|
|
3441
4277
|
let texts = text.split("\n");
|
|
3442
4278
|
let lastOne = texts[texts.length - 1];
|
|
3443
4279
|
let exceptLastOne = texts.slice(0, texts.length - 1);
|
|
4280
|
+
|
|
4281
|
+
console.log(
|
|
4282
|
+
"DEBUG",
|
|
4283
|
+
texts,
|
|
4284
|
+
lastOne,
|
|
4285
|
+
exceptLastOne.reduce(
|
|
4286
|
+
(arr, text) => [...arr, text, <br key={arr.length} />],
|
|
4287
|
+
[]
|
|
4288
|
+
)
|
|
4289
|
+
);
|
|
3444
4290
|
return (
|
|
3445
4291
|
<>
|
|
3446
4292
|
{exceptLastOne.reduce(
|
|
@@ -3486,14 +4332,21 @@ const UserAssistant = ({
|
|
|
3486
4332
|
>
|
|
3487
4333
|
<div
|
|
3488
4334
|
className="flex widget_title user_chat"
|
|
3489
|
-
style={{ color: "#
|
|
4335
|
+
style={{ color: "#000" }}
|
|
3490
4336
|
>
|
|
3491
|
-
<h6
|
|
4337
|
+
<h6 style={{
|
|
4338
|
+
color:`${widget.user_message_text_color}`,
|
|
4339
|
+
fontSize: "12px",
|
|
4340
|
+
fontStyle: "normal",
|
|
4341
|
+
fontWeight: "500",
|
|
4342
|
+
lineHeight: "18px"
|
|
4343
|
+
|
|
4344
|
+
}}>{SYS_FirstName}</h6>
|
|
3492
4345
|
<div className="timestamp" style={{ color: "#fff", gap: 0 }}>
|
|
3493
4346
|
{formatTimeAMPM(timestamp)}
|
|
3494
4347
|
</div>
|
|
3495
4348
|
</div>
|
|
3496
|
-
<div style={{ color:
|
|
4349
|
+
<div style={{ color: `${widget.user_message_text_color}` }}>
|
|
3497
4350
|
{(SYS_UPLOADED_FILE && "File uploaded") || (
|
|
3498
4351
|
<DisplayURL text={input.value} />
|
|
3499
4352
|
)}
|