pager-widget 0.2.0 → 0.2.1

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 CHANGED
@@ -1009,10 +1009,720 @@ const ChatMessage = styled.div`
1009
1009
  font-family: "Gordita-Regular", "Open Sans", sans-serif;
1010
1010
  }
1011
1011
  `;
1012
+
1013
+ const FormMessage = styled.div`
1014
+ width: 100%;
1015
+
1016
+ padding: 1px 10px 8px 16px !important;
1017
+ margin-left: 14px;
1018
+ margin-top: 20px;
1019
+ font-family: "Gordita-Regular", "Open Sans", sans-serif;
1020
+ white-space: pre-wrap;
1021
+ box-sizing: border-box;
1022
+ word-break: break-word;
1023
+ border-radius: 0px 6px 6px 6px;
1024
+ color: #333;
1025
+ // position: relative;
1026
+ background: #ffffff 0% 0% no-repeat padding-box;
1027
+ box-shadow: 0px 3px 5px #00000029;
1028
+ border: 1px solid lightgrey;
1029
+ // border-radius: 0px 10px 10px 10px;
1030
+ `;
1012
1031
  const MessageBox = styled.div`
1013
1032
  width: 100%;
1014
- float: left;
1033
+ float: left;
1034
+ display: flex;
1035
+
1036
+ ${LogoSize} {
1037
+ position: absolute;
1038
+ z-index: 1;
1039
+ // width: 20px;
1040
+ // height: 20px;
1041
+ border: 1px solid #cecece;
1042
+
1043
+ @media (min-width: 2160px) {
1044
+ width: ${(props) => switchSize(props.size, "36px", "42px", "46px")};
1045
+ height: ${(props) => switchSize(props.size, "36px", "42px", "46px")};
1046
+ }
1047
+ @media (min-width: 2560px) {
1048
+ width: ${(props) => switchSize(props.size, "40px", "48px", "56px")};
1049
+ height: ${(props) => switchSize(props.size, "40px", "48px", "56px")};
1050
+ }
1051
+ @media (min-width: 3840px) {
1052
+ width: ${(props) => switchSize(props.size, "64px", "72px", "80px")};
1053
+ height: ${(props) => switchSize(props.size, "64px", "72px", "80px")};
1054
+ }
1055
+
1056
+ @media (max-width: 1920px) {
1057
+ width: ${(props) => switchSize(props.size, "32px", "36px", "40px")};
1058
+ height: ${(props) => switchSize(props.size, "32px", "36px", "40px")};
1059
+ }
1060
+ @media (max-width: 1680px) {
1061
+ width: ${(props) => switchSize(props.size, "28px", "32px", "34px")};
1062
+ height: ${(props) => switchSize(props.size, "28px", "32px", "34px")};
1063
+ }
1064
+ @media (max-width: 1280px) {
1065
+ width: ${(props) => switchSize(props.size, "20px", "24px", "28px")};
1066
+ height: ${(props) => switchSize(props.size, "20px", "24px", "28px")};
1067
+ }
1068
+
1069
+ img {
1070
+ // width: 24px;
1071
+ // height: 24px;
1072
+
1073
+ @media (min-width: 2160px) {
1074
+ width: ${(props) => switchSize(props.size, "32px", "40px", "44px")};
1075
+ height: ${(props) => switchSize(props.size, "32px", "40px", "44px")};
1076
+ }
1077
+ @media (min-width: 2560px) {
1078
+ width: ${(props) => switchSize(props.size, "36px", "44px", "52px")};
1079
+ height: ${(props) => switchSize(props.size, "36px", "44px", "52px")};
1080
+ }
1081
+ @media (min-width: 3840px) {
1082
+ width: ${(props) => switchSize(props.size, "64px", "68px", "76px")};
1083
+ height: ${(props) => switchSize(props.size, "64px", "68px", "76px")};
1084
+ }
1085
+
1086
+ @media (max-width: 1920px) {
1087
+ width: ${(props) => switchSize(props.size, "32px", "34px", "38px")};
1088
+ height: ${(props) => switchSize(props.size, "32px", "34px", "38px")};
1089
+ }
1090
+ @media (max-width: 1680px) {
1091
+ width: ${(props) => switchSize(props.size, "26px", "30px", "32px")};
1092
+ height: ${(props) => switchSize(props.size, "26px", "30px", "32px")};
1093
+ }
1094
+ @media (max-width: 1280px) {
1095
+ width: ${(props) => switchSize(props.size, "18px", "22px", "26px")};
1096
+ height: ${(props) => switchSize(props.size, "18px", "22px", "26px")};
1097
+ }
1098
+ }
1099
+ svg {
1100
+ width: 18px;
1101
+ height: 18px;
1102
+ }
1103
+ }
1104
+
1105
+ .left_arrow {
1106
+ transform: rotate(180deg);
1107
+ }
1108
+
1109
+ .arrows {
1110
+ display: flex;
1111
+ align-items: center;
1112
+ margin-top: 28px;
1113
+ img {
1114
+ width: 16px;
1115
+ height: 32px;
1116
+ cursor: pointer;
1117
+
1118
+ @media (min-width: 2160px) {
1119
+ width: 22px;
1120
+ height: 44px;
1121
+ }
1122
+ @media (min-width: 2560px) {
1123
+ width: 27px;
1124
+ height: 54px;
1125
+ }
1126
+ @media (min-width: 3840px) {
1127
+ width: 32px;
1128
+ height: 64px;
1129
+ }
1130
+ }
1131
+ }
1132
+
1133
+ .carousal_wrapper {
1134
+ display: flex;
1135
+ @media (max-width: 1920px) {
1136
+ position: relative;
1137
+ left: 10px;
1138
+ }
1139
+ @media (max-width: 1680px) {
1140
+ position: relative;
1141
+ left: 0px;
1142
+ }
1143
+ }
1144
+
1145
+ .carousal_container {
1146
+ margin-left: auto;
1147
+ margin-right: auto;
1148
+ overflow: hidden;
1149
+ list-style: none;
1150
+ padding: 0;
1151
+ z-index: 1;
1152
+
1153
+ .widget_arrows {
1154
+ display: flex;
1155
+ align-items: center;
1156
+ position: absolute;
1157
+ width: 458px;
1158
+ justify-content: space-between;
1159
+ float: left;
1160
+ left: -20px;
1161
+ top: 44%;
1162
+
1163
+ div:first-child {
1164
+ transform: rotate(180deg);
1165
+ }
1166
+ div:last-child {
1167
+ position: relative;
1168
+ right: 0px;
1169
+ }
1170
+
1171
+ img {
1172
+ width: 16px;
1173
+ height: 32px;
1174
+ }
1175
+ }
1176
+ }
1177
+
1178
+ .carousal_slide_container {
1179
+ position: relative;
1180
+ width: 100%;
1181
+ height: 100%;
1182
+ z-index: 1;
1183
+ display: flex;
1184
+ transition-property: transform;
1185
+ box-sizing: content-box;
1186
+ transition-duration: 300ms;
1187
+
1188
+ .tryit_cards {
1189
+ width: 97%;
1190
+ }
1191
+
1192
+ .slide,
1193
+ .carousal_slide_container {
1194
+ transform: translate3d(0px, 0, 0);
1195
+ }
1196
+
1197
+ .slide {
1198
+ border-radius: 10px;
1199
+ width: 100%;
1200
+ float: left;
1201
+ flex-shrink: 0;
1202
+ position: relative;
1203
+ transition-property: transform;
1204
+ transform: translateZ(0);
1205
+ backface-visibility: hidden;
1206
+ display: flex;
1207
+ flex-direction: column;
1208
+ margin-top: 5px;
1209
+ box-sizing: border-box;
1210
+ overflow: hidden;
1211
+ }
1212
+ }
1213
+
1214
+ .carousal_box_section {
1215
+ position: relative;
1216
+ width: 100%;
1217
+
1218
+ @media (min-width: 2160px) {
1219
+ width: ${(props) => switchSize(props.size, "94.1%", "96%", "98.1%")};
1220
+ }
1221
+ @media (min-width: 2560px) {
1222
+ width: ${(props) => switchSize(props.size, "94.1%", "96%", "98%")};
1223
+ }
1224
+ @media (min-width: 3840px) {
1225
+ width: ${(props) => switchSize(props.size, "97%", "100%", "100%")};
1226
+ }
1227
+
1228
+ @media (max-width: 1920px) {
1229
+ left: 3px;
1230
+ }
1231
+ @media (max-width: 1680px) {
1232
+ left: 1px;
1233
+ }
1234
+ @media (max-width: 1280px) {
1235
+ left: 0px;
1236
+ }
1237
+ }
1238
+
1239
+ .adaptive_card_box {
1240
+ width: 99.7%;
1241
+ flex-direction: row-reverse;
1242
+ display: flex;
1243
+ background: transparent linear-gradient(180deg, #444444 0%, #222222 100%) 0%
1244
+ 0% no-repeat padding-box;
1245
+ justify-content: space-evenly;
1246
+ border-radius: 10px 11px 0 0;
1247
+ align-items: center;
1248
+
1249
+ @media (min-width: 2160px) {
1250
+ gap: ${(props) => switchSize(props.size, "4%", "6%", "6%")};
1251
+ height: ${(props) => switchSize(props.size, "76px", "84px", "90px")};
1252
+ border-radius: ${(props) =>
1253
+ switchSize(
1254
+ props.size,
1255
+ "10px 12px 0 0;",
1256
+ "12px 14px 0 0;",
1257
+ "16px 18px 0 0;"
1258
+ )};
1259
+ }
1260
+ @media (min-width: 2560px) {
1261
+ gap: ${(props) => switchSize(props.size, "4%", "6%", "6%")};
1262
+ height: ${(props) => switchSize(props.size, "80px", "100px", "110px")};
1263
+ border-radius: ${(props) =>
1264
+ switchSize(
1265
+ props.size,
1266
+ "16px 18px 0 0;",
1267
+ "20px 22px 0 0;",
1268
+ "20px 22px 0 0;"
1269
+ )};
1270
+ }
1271
+ @media (min-width: 3840px) {
1272
+ gap: ${(props) => switchSize(props.size, "8%", "10%", "10%")};
1273
+ height: ${(props) => switchSize(props.size, "100px", "116px", "124px")};
1274
+ border-radius: ${(props) =>
1275
+ switchSize(
1276
+ props.size,
1277
+ "16px 18px 0 0;",
1278
+ "20px 22px 0 0;",
1279
+ "20px 22px 0 0;"
1280
+ )};
1281
+ }
1282
+
1283
+ .tryit_cards_top_left {
1284
+ width: 28px;
1285
+ height: 24px;
1286
+ margin-right: 0;
1287
+ position: relative;
1288
+ float: left;
1289
+ border: 1px solid rgb(225, 225, 225);
1290
+ display: flex;
1291
+ align-items: center;
1292
+ background: #fff;
1293
+ justify-content: center;
1294
+ border-radius: 50%;
1295
+
1296
+ @media (min-width: 2160px) {
1297
+ width: 36px;
1298
+ height: 28px;
1299
+ }
1300
+ @media (min-width: 2560px) {
1301
+ width: 46px;
1302
+ height: 38px;
1303
+ }
1304
+ @media (min-width: 3840px) {
1305
+ width: 56px;
1306
+ height: 48px;
1307
+ }
1308
+
1309
+ img {
1310
+ max-width: 100%;
1311
+ height: auto;
1312
+ border-radius: 50%;
1313
+ }
1314
+ }
1315
+ }
1316
+
1317
+ .chat_adaptiveCard_section {
1318
+ margin: 10px 10px 10px 16px;
1319
+ width: 100%;
1320
+ float: left;
1321
+ position: relative;
1322
+
1323
+ @media (max-width: 1280px) {
1324
+ margin: 4px 10px 10px 16px;
1325
+ }
1326
+ }
1327
+
1328
+ .tryit_cards_top_right {
1329
+ position: relative;
1330
+ width: 78%;
1331
+ float: left;
1332
+ padding-left: 0;
1333
+ height: 100%;
1334
+ display: flex;
1335
+ flex-wrap: wrap;
1336
+ align-items: center;
1337
+ padding: 0 4px;
1338
+ min-height: 54px;
1339
+
1340
+ @media (min-width: 2160px) {
1341
+ width: 74%;
1342
+ }
1343
+ }
1344
+
1345
+ .timestamp {
1346
+ color: #888;
1347
+ font-size: 10px;
1348
+ font-family: "Gordita-Regular", "Open Sans", sans-serif;
1349
+
1350
+ @media (min-width: 2160px) {
1351
+ font-size: ${(props) => switchSize(props.size, "12px", "12px", "16px")};
1352
+ }
1353
+ @media (min-width: 2560px) {
1354
+ font-size: ${(props) => switchSize(props.size, "16px", "16px", "20px")};
1355
+ }
1356
+ @media (min-width: 3840px) {
1357
+ font-size: ${(props) => switchSize(props.size, "24px", "26px", "30px")};
1358
+ }
1359
+
1360
+ @media (max-width: 1920px) {
1361
+ font-size: ${(props) => switchSize(props.size, "12px", "13px", "15px")};
1362
+ }
1363
+ @media (max-width: 1600px) {
1364
+ font-size: ${(props) => switchSize(props.size, "10px", "12px", "13px")};
1365
+ }
1366
+ @media (max-width: 1280px) {
1367
+ font-size: ${(props) => switchSize(props.size, "8px", "8px", "10px")};
1368
+ }
1369
+ }
1370
+
1371
+ .tryit_cards h4 {
1372
+ font-size: 13px;
1373
+ margin-top: 10px;
1374
+ margin-bottom: 0px;
1375
+ font-family: "Gordita-Medium", "Open Sans", sans-serif;
1376
+ width: 100%;
1377
+ color: #fff;
1378
+
1379
+ @media (min-width: 2160px) {
1380
+ font-size: ${(props) => switchSize(props.size, "16px", "16px", "21px")};
1381
+ }
1382
+ @media (min-width: 2560px) {
1383
+ font-size: ${(props) => switchSize(props.size, "22px", "22px", "22px")};
1384
+ }
1385
+ @media (min-width: 3840px) {
1386
+ font-size: ${(props) => switchSize(props.size, "24px", "26px", "30px")};
1387
+ margin-top: 16px;
1388
+ }
1389
+
1390
+ @media (max-width: 1920px) {
1391
+ font-size: ${(props) => switchSize(props.size, "12px", "13px", "15px")};
1392
+ }
1393
+ @media (max-width: 1600px) {
1394
+ font-size: ${(props) => switchSize(props.size, "10px", "12px", "13px")};
1395
+ }
1396
+ @media (max-width: 1280px) {
1397
+ font-size: ${(props) => switchSize(props.size, "8px", "8px", "11px")};
1398
+ }
1399
+ }
1400
+
1401
+ .tryit_cards .tryit_cards_top_right p {
1402
+ font-size: 12px;
1403
+ color: #fff;
1404
+ max-width: 100%;
1405
+ font-family: "Gordita-Regular", "Open Sans", sans-serif;
1406
+ margin: 0 0 8px 0;
1407
+ display: flex;
1408
+
1409
+ @media (min-width: 2160px) {
1410
+ font-size: ${(props) => switchSize(props.size, "14px", "16px", "18px")};
1411
+ }
1412
+ @media (min-width: 2560px) {
1413
+ font-size: ${(props) => switchSize(props.size, "18px", "20px", "22px")};
1414
+ }
1415
+ @media (min-width: 3840px) {
1416
+ font-size: ${(props) => switchSize(props.size, "24px", "24px", "24px")};
1417
+ }
1418
+
1419
+ a {
1420
+ color: #fff;
1421
+ text-decoration: none;
1422
+ }
1423
+ }
1424
+
1425
+ .tryit_ticket_details_wrapper button {
1426
+ min-height: 28px;
1427
+ }
1428
+
1429
+ .tryit_wrapper_card {
1430
+ width: 90%;
1431
+ margin-left: 12px;
1432
+ margin-top: 12px;
1433
+ border: none !important;
1434
+
1435
+ @media (min-width: 2160px) {
1436
+ margin-left: ${(props) => switchSize(props.size, "28px", "28px", "28px")};
1437
+ margin-top: ${(props) => switchSize(props.size, "34px", "34px", "34px")};
1438
+ }
1439
+ @media (min-width: 2560px) {
1440
+ margin-left: ${(props) => switchSize(props.size, "20px", "25px", "20px")};
1441
+ margin-top: ${(props) => switchSize(props.size, "30px", "45px", "30px")};
1442
+ }
1443
+ @media (min-width: 3840px) {
1444
+ margin-left: ${(props) => switchSize(props.size, "30px", "44px", "44px")};
1445
+ margin-top: ${(props) => switchSize(props.size, "56px", "56px", "56px")};
1446
+ }
1447
+
1448
+ @media (max-width: 1920px) {
1449
+ margin-left: ${(props) => switchSize(props.size, "22px", "22px", "22px")};
1450
+ margin-top: ${(props) => switchSize(props.size, "28px", "28px", "28px")};
1451
+ }
1452
+ @media (max-width: 1680px) {
1453
+ margin-left: ${(props) => switchSize(props.size, "14px", "18px", "18px")};
1454
+ margin-top: ${(props) => switchSize(props.size, "22px", "28px", "28px")};
1455
+ }
1456
+ @media (max-width: 1280px) {
1457
+ margin-left: ${(props) => switchSize(props.size, "10px", "10px", "10px")};
1458
+ margin-top: ${(props) => switchSize(props.size, "15px", "15px", "15px")};
1459
+ }
1460
+
1461
+ @media (max-width: 1280px) {
1462
+ margin-left: 16px;
1463
+ margin-top: 22px;
1464
+ }
1465
+
1466
+ .adaptive_tail_icon {
1467
+ position: absolute;
1468
+ }
1469
+ .adaptive_tail_icon svg {
1470
+ width: 6px;
1471
+ height: 6px;
1472
+ top: 0px;
1473
+ margin-left: -5px;
1474
+ position: absolute;
1475
+ }
1476
+
1477
+ .tryit_cards {
1478
+ margin-top: 0px;
1479
+ width: 98.2%;
1480
+ min-height: 200px;
1481
+ background: #ffffff 0% 0% no-repeat padding-box;
1482
+ box-shadow: 0px 3px 6px #00000029 !important;
1483
+ border-radius: 10px;
1484
+ padding: 12px 30px 12px 0px;
1485
+ float: left;
1486
+
1487
+ @media (min-width: 2160px) {
1488
+ padding: ${(props) =>
1489
+ switchSize(
1490
+ props.size,
1491
+ "12px 30px 12px 0px",
1492
+ "12px 30px 12px 0px",
1493
+ "12px 36px 12px 2px"
1494
+ )};
1495
+ width: 99%;
1496
+ }
1497
+ @media (min-width: 2560px) {
1498
+ padding: ${(props) =>
1499
+ switchSize(
1500
+ props.size,
1501
+ "12px 30px 12px 0px",
1502
+ "12px 30px 12px 0px",
1503
+ "24px 44px 24px 20px"
1504
+ )};
1505
+ }
1506
+ @media (min-width: 3840px) {
1507
+ padding: ${(props) =>
1508
+ switchSize(
1509
+ props.size,
1510
+ "24px 50px 24px 25px",
1511
+ "24px 50px 24px 25px",
1512
+ "24px 50px 24px 25px"
1513
+ )};
1514
+ }
1515
+
1516
+ .widget_title {
1517
+ padding-left: 22px;
1518
+ }
1519
+
1520
+ .tryit_ticket_wrapper {
1521
+ padding: 16px 0px 0 16px;
1522
+ box-shadow: none;
1523
+ width: 95.5%;
1524
+ max-height: 164px;
1525
+ overflow-y: scroll;
1526
+ background: #fff;
1527
+ border-radius: 0px 10px 10px 10px;
1528
+ float: left;
1529
+
1530
+ @media (min-width: 2160px) {
1531
+ max-height: ${(props) =>
1532
+ switchSize(props.size, "186px", "190px", "230px")};
1533
+ }
1534
+ @media (min-width: 2560px) {
1535
+ max-height: ${(props) =>
1536
+ switchSize(props.size, "186px", "190px", "230px")};
1537
+ }
1538
+ @media (min-width: 3840px) {
1539
+ max-height: ${(props) =>
1540
+ switchSize(props.size, "280px", "328px", "328px")};
1541
+ }
1542
+
1543
+ .tryit_ticket_details_wrapper {
1544
+ grid-template-columns: auto;
1545
+
1546
+ .tryit_ticket_details {
1547
+ .tryit_ticket_colun {
1548
+ width: auto;
1549
+ }
1550
+ }
1551
+ }
1552
+ div:nth-child(3) h6 {
1553
+ width: 35%;
1554
+ }
1555
+ .tryit_ticket_details span {
1556
+ position: relative;
1557
+ bottom: 0px;
1558
+ }
1559
+ }
1560
+
1561
+ .widget_title {
1562
+ gap: 0 8px;
1563
+ align-items: center;
1564
+ margin-bottom: 2px;
1565
+ display: flex;
1566
+
1567
+ h6 {
1568
+ font-size: 13px;
1569
+ font-family: "Gordita-Medium", "Open Sans", sans-serif;
1570
+ color: #333;
1571
+ margin: 0;
1572
+
1573
+ @media (min-width: 2160px) {
1574
+ font-size: ${(props) =>
1575
+ switchSize(props.size, "16px", "18px", "22px")};
1576
+ }
1577
+ @media (min-width: 2560px) {
1578
+ font-size: ${(props) =>
1579
+ switchSize(props.size, "18px", "18px", "24px")};
1580
+ }
1581
+ @media (min-width: 3840px) {
1582
+ font-size: ${(props) =>
1583
+ switchSize(props.size, "28px", "30px", "32px")};
1584
+ }
1585
+
1586
+ @media (max-width: 1920px) {
1587
+ font-size: ${(props) =>
1588
+ switchSize(props.size, "14px", "15px", "16px")};
1589
+ }
1590
+ @media (max-width: 1600px) {
1591
+ font-size: ${(props) =>
1592
+ switchSize(props.size, "12px", "13px", "14px")};
1593
+ }
1594
+ @media (max-width: 1280px) {
1595
+ font-size: ${(props) =>
1596
+ switchSize(props.size, "9px", "9px", "12px")};
1597
+ }
1598
+ }
1599
+ }
1600
+ }
1601
+ .tryit_cards .tryit_cards_wrapper {
1602
+ width: 99%;
1603
+ float: left;
1604
+ background: #fff;
1605
+ border-top: none;
1606
+ border-bottom-right-radius: 10px;
1607
+ border-bottom-left-radius: 12px;
1608
+ border: 1px solid #c8c8c8;
1609
+
1610
+ @media (min-width: 2160px) {
1611
+ font-size: ${(props) => switchSize(props.size, "20px", "21px", "22px")};
1612
+ }
1613
+ @media (min-width: 2560px) {
1614
+ font-size: ${(props) => switchSize(props.size, "18px", "18px", "24px")};
1615
+ width: 99.4%;
1616
+ }
1617
+ @media (min-width: 3840px) {
1618
+ width: 99.3%;
1619
+ }
1620
+ }
1621
+
1622
+ .tryit_ticket_wrapper.tryit_button_wrapper {
1623
+ padding-top: 0px;
1624
+ display: flex;
1625
+ justify-content: flex-start;
1626
+ flex-direction: row;
1627
+ flex-wrap: wrap;
1628
+ gap: 0 8px;
1629
+ margin-bottom: 12px;
1630
+ padding-bottom: 6px;
1631
+ }
1632
+
1633
+ .tryit_button_wrapper .tryit_ticket_details_wrapper {
1634
+ left: inherit;
1635
+ width: max-content;
1636
+ width: 100%;
1637
+
1638
+ button {
1639
+ margin-top: 0px;
1640
+ min-width: unset;
1641
+ width: 100%;
1642
+ max-width: 100%;
1643
+ margin-right: 0px;
1644
+ margin-bottom: 6px;
1645
+ :hover {
1646
+ box-shadow: 0px 3px 5px #00000029;
1647
+ }
1648
+ }
1649
+ }
1650
+ }
1651
+
1652
+ .tryit_ticket_details_wrapper .tryit_ticket_details {
1653
+ flex-direction: row;
1654
+ gap: 0 8px;
1655
+ align-items: baseline;
1656
+ display: flex;
1657
+ margin-bottom: 10px;
1658
+ }
1659
+ .tryit_ticket_wrapper h6 {
1660
+ font-size: 12px;
1661
+ width: 35%;
1662
+ margin: 0;
1663
+ font-family: "Gordita-Medium", "Open Sans", sans-serif;
1664
+
1665
+ @media (min-width: 2160px) {
1666
+ font-size: ${(props) => switchSize(props.size, "16px", "18px", "20px")};
1667
+ }
1668
+ @media (min-width: 2560px) {
1669
+ font-size: ${(props) => switchSize(props.size, "18px", "18px", "24px")};
1670
+ }
1671
+ @media (min-width: 3840px) {
1672
+ font-size: ${(props) => switchSize(props.size, "28px", "30px", "32px")};
1673
+ }
1674
+
1675
+ @media (max-width: 1920px) {
1676
+ font-size: ${(props) => switchSize(props.size, "14px", "15px", "16px")};
1677
+ }
1678
+ @media (max-width: 1600px) {
1679
+ font-size: ${(props) => switchSize(props.size, "12px", "13px", "14px")};
1680
+ }
1681
+ @media (max-width: 1280px) {
1682
+ font-size: ${(props) => switchSize(props.size, "9px", "9px", "12px")};
1683
+ }
1684
+ }
1685
+ .tryit_ticket_wrapper p {
1686
+ font-size: 12px;
1687
+ line-height: normal;
1688
+ position: relative;
1689
+ bottom: 1px;
1690
+ width: 60%;
1691
+ font-family: "Gordita-Regular", "Open Sans", sans-serif;
1692
+ margin: 0;
1693
+ word-break: break-word;
1694
+
1695
+ @media (min-width: 2160px) {
1696
+ font-size: ${(props) => switchSize(props.size, "16px", "18px", "20px")};
1697
+ }
1698
+ @media (min-width: 2560px) {
1699
+ font-size: ${(props) => switchSize(props.size, "18px", "18px", "24px")};
1700
+ }
1701
+ @media (min-width: 3840px) {
1702
+ font-size: ${(props) => switchSize(props.size, "28px", "30px", "32px")};
1703
+ }
1704
+
1705
+ @media (max-width: 1920px) {
1706
+ font-size: ${(props) => switchSize(props.size, "14px", "15px", "16px")};
1707
+ }
1708
+ @media (max-width: 1600px) {
1709
+ font-size: ${(props) => switchSize(props.size, "12px", "13px", "14px")};
1710
+ }
1711
+ @media (max-width: 1280px) {
1712
+ font-size: ${(props) => switchSize(props.size, "9px", "9px", "12px")};
1713
+ }
1714
+ }
1715
+
1716
+ .tryit_ticket_wrapper p:first-child {
1717
+ bottom: 3px;
1718
+ }
1719
+ `;
1720
+
1721
+ const FormBox = styled.div`
1722
+ width: 100%;
1723
+ position: relative;
1015
1724
  display: flex;
1725
+
1016
1726
 
1017
1727
  ${LogoSize} {
1018
1728
  position: absolute;
@@ -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,16 @@ 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
3225
  .get(
2518
3226
  `http://dev.pagergpt.ai/wgt-hook/public/${widget?.workspace}/${widget.id}/form`
2519
3227
  )
2520
3228
  .then((res) => {
2521
-
2522
3229
  setFields(res.data);
2523
-
2524
3230
  })
2525
3231
  .catch((err) => {
2526
3232
  console.error("Error fetching form:", err);
@@ -2573,21 +3279,53 @@ const App = ({
2573
3279
  isVisible={isVisible}
2574
3280
  setIsVisible={setIsVisible}
2575
3281
  setSourceState={setSourceState}
3282
+ userDetails={userDetails}
2576
3283
  />
2577
3284
  )}
2578
-
2579
- {((sourceState &&
2580
- typeof sourceState === "string" &&
2581
- sourceState.includes("browser") &&
2582
- fields && widget?.lead_form_id !== null) || widget.user_consent == false && sourceState == "new_user" && widget?.lead_form_id !== null && fields)? (
2583
- <InputConverter
2584
- formData={fields}
2585
- conversationId={conversationId}
2586
- widgetId={widget_id}
2587
- workspace={widget?.workspace}
2588
- setFormSubmit={setFormSubmit}
2589
- setSourceState={setSourceState}
2590
- />
3285
+
3286
+ {(sourceState &&
3287
+ typeof sourceState === "string" &&
3288
+ sourceState.includes("browser") &&
3289
+ fields &&
3290
+ widget?.lead_form_id !== null) ||
3291
+ (widget.user_consent == false &&
3292
+ sourceState == "new_user" &&
3293
+ widget?.lead_form_id !== null &&
3294
+ fields) ? (
3295
+ <>
3296
+ <FormBox>
3297
+ <LogoSize
3298
+ style={{
3299
+ borderRadius: "50%",
3300
+ top: "2px",
3301
+ height: "28px",
3302
+ width: "28px",
3303
+ }}
3304
+ >
3305
+ <img
3306
+ alt={"logo"}
3307
+ src={
3308
+ (widget && widget.logo_url) ||
3309
+ "https://workativ-asssistant-widget-images.s3.amazonaws.com/chat_logo.png"
3310
+ }
3311
+ style={{
3312
+ width: "26px",
3313
+ height: "26px",
3314
+ }}
3315
+ />
3316
+ </LogoSize>
3317
+ <FormMessage>
3318
+ <InputConverter
3319
+ formData={fields}
3320
+ conversationId={conversationId}
3321
+ widgetId={widget_id}
3322
+ workspace={widget?.workspace}
3323
+ setFormSubmit={setFormSubmit}
3324
+ setSourceState={setSourceState}
3325
+ />
3326
+ </FormMessage>
3327
+ </FormBox>
3328
+ </>
2591
3329
  ) : null}
2592
3330
  </ChatContentWrapper>
2593
3331
  <Footer
@@ -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"
@@ -3263,6 +3999,7 @@ const AiResponse = ({
3263
3999
  <div className="timestamp">{formatTimeAMPM(timestamp)}</div>
3264
4000
  </div>
3265
4001
  <div>
4002
+ {console.log("output text", output.text)}
3266
4003
  <AssistantMd mdText={output.text}></AssistantMd>
3267
4004
  </div>
3268
4005
  </ChatMessage>
@@ -3290,6 +4027,7 @@ const ChatAssistant = ({
3290
4027
  }) => {
3291
4028
  // const [hover, setHover] = useState(false);
3292
4029
  const scale = useScaleContext();
4030
+ console.log("chat assistant", widget);
3293
4031
  if (outputStruct.response_type === "ai_response") {
3294
4032
  return (
3295
4033
  <AiResponse
@@ -3326,8 +4064,9 @@ const ChatAssistant = ({
3326
4064
  </div>
3327
4065
  ) : (
3328
4066
  <div>
4067
+ {console.log("output struct", outputStruct.value)}
3329
4068
  <AssistantMd mdText={outputStruct.value}></AssistantMd>
3330
- </div>
4069
+ </div>
3331
4070
  )}
3332
4071
  </ChatMessage>
3333
4072
  </MessageBox>
@@ -3377,6 +4116,16 @@ const FeedbackBtn = ({
3377
4116
  <Button
3378
4117
  // onMouseOver={() => setHovered(true)}
3379
4118
  // onMouseLeave={() => setHovered(false)}
4119
+ style={{
4120
+ display: "flex",
4121
+ justifyContent: "center",
4122
+ width: "32px",
4123
+ height: "32px",
4124
+ padding: "6px",
4125
+ borderRadius: "9999px",
4126
+ border: "none",
4127
+ marginTop: "8px",
4128
+ }}
3380
4129
  type="button"
3381
4130
  onClick={() => {
3382
4131
  if (action.contract_action) {
@@ -3393,7 +4142,50 @@ const FeedbackBtn = ({
3393
4142
  className="widget_btn"
3394
4143
  size={scale.widgetSize}
3395
4144
  >
3396
- <AssistantMd mdText={label} />
4145
+ {console.log("label", label)}
4146
+ {/* <AssistantMd mdText={label} /> */}
4147
+ {label === "Satisfied" ? (
4148
+ <svg
4149
+ xmlns="
4150
+ http://www.w3.org/2000/svg"
4151
+ viewBox="0 0 24 24"
4152
+ fill="none"
4153
+ width="24px"
4154
+ height="24px"
4155
+ >
4156
+ <path
4157
+ 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"
4158
+ stroke="#1EC959"
4159
+ strokeWidth="2"
4160
+ strokeLinecap="round"
4161
+ strokeLinejoin="round"
4162
+ />
4163
+ <path
4164
+ 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"
4165
+ stroke="#1EC959"
4166
+ strokeWidth="1.7"
4167
+ strokeLinecap="round"
4168
+ strokeLinejoin="round"
4169
+ />
4170
+ </svg>
4171
+ ) : (
4172
+ <svg
4173
+ xmlns="
4174
+ http://www.w3.org/2000/svg"
4175
+ viewBox="0 0 24 24"
4176
+ fill="none"
4177
+ width="24px"
4178
+ height="24px"
4179
+ >
4180
+ <path
4181
+ 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"
4182
+ stroke="#ED3535"
4183
+ strokeWidth="1.7"
4184
+ strokeLinecap="round"
4185
+ strokeLinejoin="round"
4186
+ />
4187
+ </svg>
4188
+ )}
3397
4189
  </Button>
3398
4190
  </WidgetUpdateButton>
3399
4191
  );
@@ -3441,6 +4233,16 @@ const DisplayLineBreaks = ({ text }) => {
3441
4233
  let texts = text.split("\n");
3442
4234
  let lastOne = texts[texts.length - 1];
3443
4235
  let exceptLastOne = texts.slice(0, texts.length - 1);
4236
+
4237
+ console.log(
4238
+ "DEBUG",
4239
+ texts,
4240
+ lastOne,
4241
+ exceptLastOne.reduce(
4242
+ (arr, text) => [...arr, text, <br key={arr.length} />],
4243
+ []
4244
+ )
4245
+ );
3444
4246
  return (
3445
4247
  <>
3446
4248
  {exceptLastOne.reduce(
@@ -3486,14 +4288,14 @@ const UserAssistant = ({
3486
4288
  >
3487
4289
  <div
3488
4290
  className="flex widget_title user_chat"
3489
- style={{ color: "#fff" }}
4291
+ style={{ color: "#000" }}
3490
4292
  >
3491
4293
  <h6>{SYS_FirstName}</h6>
3492
4294
  <div className="timestamp" style={{ color: "#fff", gap: 0 }}>
3493
4295
  {formatTimeAMPM(timestamp)}
3494
4296
  </div>
3495
4297
  </div>
3496
- <div style={{ color: "#fff" }}>
4298
+ <div style={{ color: `${widget.user_message_text_color}` }}>
3497
4299
  {(SYS_UPLOADED_FILE && "File uploaded") || (
3498
4300
  <DisplayURL text={input.value} />
3499
4301
  )}