droplinked-chatbot-next 1.0.5 → 1.0.7
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/dist/components/EmbeddedChatButton.d.ts +2 -1
- package/dist/index.esm.js +388 -250
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +387 -249
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4988,80 +4988,72 @@ function MessageInput(_ref) {
|
|
|
4988
4988
|
borderTop: "1px solid",
|
|
4989
4989
|
borderColor: "#27272A",
|
|
4990
4990
|
borderBottomRadius: 16,
|
|
4991
|
-
children: jsxRuntime.
|
|
4992
|
-
gap:
|
|
4991
|
+
children: jsxRuntime.jsxs(Chakra.VStack, {
|
|
4992
|
+
gap: 4,
|
|
4993
4993
|
w: "full",
|
|
4994
4994
|
align: "stretch",
|
|
4995
|
-
children: jsxRuntime.
|
|
4996
|
-
|
|
4995
|
+
children: [jsxRuntime.jsx(Chakra.Input, {
|
|
4996
|
+
value: input,
|
|
4997
|
+
onChange: function onChange(e) {
|
|
4998
|
+
return setInput(e.target.value);
|
|
4999
|
+
},
|
|
5000
|
+
onKeyDown: function onKeyDown(e) {
|
|
5001
|
+
return e.key === "Enter" && handleSend();
|
|
5002
|
+
},
|
|
5003
|
+
placeholder: "Send a message",
|
|
5004
|
+
bg: "transparent",
|
|
5005
|
+
color: "white",
|
|
5006
|
+
border: "none",
|
|
5007
|
+
outline: "none",
|
|
5008
|
+
_placeholder: {
|
|
5009
|
+
color: "#737373"
|
|
5010
|
+
},
|
|
5011
|
+
_focus: {
|
|
5012
|
+
border: "none",
|
|
5013
|
+
outline: "none",
|
|
5014
|
+
boxShadow: "none"
|
|
5015
|
+
},
|
|
5016
|
+
_active: {
|
|
5017
|
+
border: "none",
|
|
5018
|
+
outline: "none",
|
|
5019
|
+
boxShadow: "none"
|
|
5020
|
+
},
|
|
5021
|
+
p: 3,
|
|
5022
|
+
fontSize: "sm"
|
|
5023
|
+
}), jsxRuntime.jsxs(Chakra.HStack, {
|
|
5024
|
+
align: "center",
|
|
4997
5025
|
w: "full",
|
|
4998
|
-
children: [jsxRuntime.jsx(Chakra.
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
},
|
|
5027
|
-
p: 3,
|
|
5028
|
-
fontSize: "sm"
|
|
5026
|
+
children: [user.logoUrl && jsxRuntime.jsx(Chakra.HStack, {
|
|
5027
|
+
gap: 3,
|
|
5028
|
+
children: jsxRuntime.jsx(Chakra.Image, {
|
|
5029
|
+
boxSize: "40px",
|
|
5030
|
+
src: user.logoUrl,
|
|
5031
|
+
alt: "User avatar",
|
|
5032
|
+
border: "1px solid",
|
|
5033
|
+
borderColor: "#27272A",
|
|
5034
|
+
borderRadius: "24px"
|
|
5035
|
+
})
|
|
5036
|
+
}), jsxRuntime.jsx(Chakra.Spacer, {}), jsxRuntime.jsx(Chakra.IconButton, {
|
|
5037
|
+
"aria-label": "Send message",
|
|
5038
|
+
onClick: handleSend,
|
|
5039
|
+
isDisabled: !input.trim() || isLoading,
|
|
5040
|
+
isLoading: isLoading,
|
|
5041
|
+
size: "md",
|
|
5042
|
+
bg: !input.trim() || isLoading ? "#262626" : "#2BCFA1",
|
|
5043
|
+
_hover: {
|
|
5044
|
+
bg: !input.trim() || isLoading ? "#262626" : "#22B890"
|
|
5045
|
+
},
|
|
5046
|
+
_disabled: {
|
|
5047
|
+
bg: "#262626",
|
|
5048
|
+
cursor: "not-allowed"
|
|
5049
|
+
},
|
|
5050
|
+
borderRadius: "lg",
|
|
5051
|
+
border: "none",
|
|
5052
|
+
children: jsxRuntime.jsx(SendMd, {
|
|
5053
|
+
color: !input.trim() || isLoading ? "#525252" : "white"
|
|
5029
5054
|
})
|
|
5030
|
-
}), jsxRuntime.jsxs(Chakra.HStack, {
|
|
5031
|
-
align: "center",
|
|
5032
|
-
w: "full",
|
|
5033
|
-
children: [user.logoUrl && jsxRuntime.jsx(Chakra.HStack, {
|
|
5034
|
-
gap: 3,
|
|
5035
|
-
children: jsxRuntime.jsx(Chakra.Image, {
|
|
5036
|
-
boxSize: "40px",
|
|
5037
|
-
src: user.logoUrl,
|
|
5038
|
-
alt: "User avatar",
|
|
5039
|
-
border: "1px solid",
|
|
5040
|
-
borderColor: "#27272A",
|
|
5041
|
-
borderRadius: "24px"
|
|
5042
|
-
})
|
|
5043
|
-
}), jsxRuntime.jsx(Chakra.Spacer, {}), jsxRuntime.jsx(Chakra.IconButton, {
|
|
5044
|
-
"aria-label": "Send message",
|
|
5045
|
-
onClick: handleSend,
|
|
5046
|
-
isDisabled: !input.trim() || isLoading,
|
|
5047
|
-
isLoading: isLoading,
|
|
5048
|
-
size: "md",
|
|
5049
|
-
bg: !input.trim() || isLoading ? "#262626" : "#2BCFA1",
|
|
5050
|
-
_hover: {
|
|
5051
|
-
bg: !input.trim() || isLoading ? "#262626" : "#22B890"
|
|
5052
|
-
},
|
|
5053
|
-
_disabled: {
|
|
5054
|
-
bg: "#262626",
|
|
5055
|
-
cursor: "not-allowed"
|
|
5056
|
-
},
|
|
5057
|
-
borderRadius: "lg",
|
|
5058
|
-
border: "none",
|
|
5059
|
-
children: jsxRuntime.jsx(SendMd, {
|
|
5060
|
-
color: !input.trim() || isLoading ? "#525252" : "white"
|
|
5061
|
-
})
|
|
5062
|
-
})]
|
|
5063
5055
|
})]
|
|
5064
|
-
})
|
|
5056
|
+
})]
|
|
5065
5057
|
})
|
|
5066
5058
|
})]
|
|
5067
5059
|
});
|
|
@@ -5133,17 +5125,15 @@ var TypingIndicator = /*#__PURE__*/React.memo(function TypingIndicator(_ref) {
|
|
|
5133
5125
|
maxW: "80%",
|
|
5134
5126
|
mb: 2,
|
|
5135
5127
|
style: containerAnimationStyle,
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
delay: 0.1
|
|
5146
|
-
})
|
|
5128
|
+
bg: "rgba(34, 197, 94, 0.2)",
|
|
5129
|
+
p: "10px 14px",
|
|
5130
|
+
borderRadius: "16px",
|
|
5131
|
+
w: "fit-content",
|
|
5132
|
+
border: "1px solid rgba(34, 197, 94, 0.3)",
|
|
5133
|
+
backdropFilter: "blur(10px)",
|
|
5134
|
+
boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
|
|
5135
|
+
children: jsxRuntime.jsx(TypingDots, {
|
|
5136
|
+
delay: 0.1
|
|
5147
5137
|
})
|
|
5148
5138
|
});
|
|
5149
5139
|
});
|
|
@@ -41416,8 +41406,8 @@ function MarkdownRenderer(_ref) {
|
|
|
41416
41406
|
fontSize: fontSize,
|
|
41417
41407
|
lineHeight: lineHeight,
|
|
41418
41408
|
css: {
|
|
41419
|
-
|
|
41420
|
-
|
|
41409
|
+
listStylePosition: 'outside',
|
|
41410
|
+
listStyleType: 'disc'
|
|
41421
41411
|
},
|
|
41422
41412
|
children: children
|
|
41423
41413
|
});
|
|
@@ -41432,8 +41422,8 @@ function MarkdownRenderer(_ref) {
|
|
|
41432
41422
|
fontSize: fontSize,
|
|
41433
41423
|
lineHeight: lineHeight,
|
|
41434
41424
|
css: {
|
|
41435
|
-
|
|
41436
|
-
|
|
41425
|
+
listStylePosition: 'outside',
|
|
41426
|
+
listStyleType: 'decimal'
|
|
41437
41427
|
},
|
|
41438
41428
|
children: children
|
|
41439
41429
|
});
|
|
@@ -41606,109 +41596,93 @@ function GradualMessageDisplay(_ref) {
|
|
|
41606
41596
|
return jsxRuntime.jsx(Chakra.Box, {
|
|
41607
41597
|
alignSelf: "flex-start",
|
|
41608
41598
|
mb: 4,
|
|
41609
|
-
|
|
41610
|
-
|
|
41611
|
-
|
|
41612
|
-
|
|
41613
|
-
|
|
41614
|
-
|
|
41615
|
-
|
|
41616
|
-
|
|
41617
|
-
color: "white"
|
|
41618
|
-
})
|
|
41599
|
+
p: 4,
|
|
41600
|
+
borderRadius: "12px",
|
|
41601
|
+
borderBottomLeftRadius: "6px",
|
|
41602
|
+
children: jsxRuntime.jsx(MarkdownRenderer, {
|
|
41603
|
+
content: message,
|
|
41604
|
+
fontSize: "sm",
|
|
41605
|
+
lineHeight: "1.4",
|
|
41606
|
+
color: "white"
|
|
41619
41607
|
})
|
|
41620
41608
|
});
|
|
41621
41609
|
}
|
|
41622
|
-
return jsxRuntime.
|
|
41610
|
+
return jsxRuntime.jsxs(Chakra.Box, {
|
|
41623
41611
|
alignSelf: "flex-start",
|
|
41624
41612
|
mb: 4,
|
|
41625
|
-
|
|
41626
|
-
|
|
41627
|
-
|
|
41628
|
-
|
|
41629
|
-
|
|
41630
|
-
|
|
41631
|
-
|
|
41632
|
-
|
|
41613
|
+
display: "flex",
|
|
41614
|
+
flexDirection: "column",
|
|
41615
|
+
gap: 2,
|
|
41616
|
+
children: [(phase === "typing" || phase === "revealing") && jsxRuntime.jsx(TypingIndicator, {
|
|
41617
|
+
isVisible: true
|
|
41618
|
+
}), (phase === "revealing" || phase === "complete") && jsxRuntime.jsx(Chakra.Box, {
|
|
41619
|
+
position: "relative",
|
|
41620
|
+
borderRadius: "12px",
|
|
41621
|
+
_before: {
|
|
41622
|
+
content: '""',
|
|
41623
|
+
position: "absolute",
|
|
41624
|
+
zIndex: -1,
|
|
41625
|
+
width: "calc(100% + 1px)",
|
|
41626
|
+
height: "calc(100% + 1px)",
|
|
41627
|
+
top: 0,
|
|
41628
|
+
left: 0,
|
|
41633
41629
|
borderRadius: "12px",
|
|
41634
|
-
|
|
41635
|
-
|
|
41636
|
-
|
|
41637
|
-
|
|
41638
|
-
|
|
41639
|
-
|
|
41640
|
-
|
|
41641
|
-
|
|
41642
|
-
|
|
41643
|
-
|
|
41644
|
-
|
|
41645
|
-
|
|
41646
|
-
|
|
41647
|
-
|
|
41648
|
-
|
|
41649
|
-
|
|
41650
|
-
|
|
41651
|
-
|
|
41652
|
-
|
|
41653
|
-
|
|
41654
|
-
|
|
41655
|
-
|
|
41656
|
-
|
|
41657
|
-
|
|
41658
|
-
|
|
41659
|
-
|
|
41660
|
-
|
|
41661
|
-
|
|
41662
|
-
|
|
41663
|
-
|
|
41664
|
-
|
|
41665
|
-
|
|
41666
|
-
|
|
41667
|
-
|
|
41668
|
-
|
|
41669
|
-
|
|
41670
|
-
|
|
41671
|
-
|
|
41672
|
-
|
|
41673
|
-
|
|
41674
|
-
|
|
41675
|
-
|
|
41676
|
-
|
|
41677
|
-
|
|
41678
|
-
|
|
41679
|
-
|
|
41680
|
-
|
|
41681
|
-
|
|
41682
|
-
opacity: 0,
|
|
41683
|
-
transform: "scale(500)"
|
|
41684
|
-
},
|
|
41685
|
-
children: jsxRuntime.jsx(MarkdownRenderer, {
|
|
41686
|
-
content: line || " ",
|
|
41687
|
-
fontSize: "sm",
|
|
41688
|
-
lineHeight: "1.4",
|
|
41689
|
-
color: "white"
|
|
41690
|
-
})
|
|
41691
|
-
}), jsxRuntime.jsx(Chakra.Box, {
|
|
41692
|
-
position: "absolute",
|
|
41693
|
-
top: 0,
|
|
41694
|
-
left: 0,
|
|
41695
|
-
right: 0,
|
|
41696
|
-
css: {
|
|
41697
|
-
filter: "blur(8px)",
|
|
41698
|
-
opacity: 0.7
|
|
41699
|
-
},
|
|
41700
|
-
children: jsxRuntime.jsx(MarkdownRenderer, {
|
|
41701
|
-
content: line || " ",
|
|
41702
|
-
fontSize: "sm",
|
|
41703
|
-
lineHeight: "1.4",
|
|
41704
|
-
color: "white"
|
|
41705
|
-
})
|
|
41706
|
-
})]
|
|
41630
|
+
backgroundSize: "400% 400%",
|
|
41631
|
+
opacity: phase === "revealing" ? 1 : 0,
|
|
41632
|
+
transition: "opacity 0.3s ease"
|
|
41633
|
+
},
|
|
41634
|
+
_after: {
|
|
41635
|
+
content: '""',
|
|
41636
|
+
position: "absolute",
|
|
41637
|
+
zIndex: -1,
|
|
41638
|
+
width: "calc(100% + 1px)",
|
|
41639
|
+
height: "calc(100% + 1px)",
|
|
41640
|
+
top: 0,
|
|
41641
|
+
left: 0,
|
|
41642
|
+
borderRadius: "12px",
|
|
41643
|
+
backgroundSize: "400% 400%",
|
|
41644
|
+
opacity: phase === "revealing" ? 1 : 0,
|
|
41645
|
+
transition: "opacity 0.3s ease",
|
|
41646
|
+
filter: "blur(100px)"
|
|
41647
|
+
},
|
|
41648
|
+
children: jsxRuntime.jsx(Chakra.Box, {
|
|
41649
|
+
borderRadius: "11px",
|
|
41650
|
+
p: "12px 16px",
|
|
41651
|
+
position: "relative",
|
|
41652
|
+
zIndex: 1,
|
|
41653
|
+
children: displayedLines.map(function (line, lineIndex) {
|
|
41654
|
+
var isCurrentLine = lineIndex === currentLineIndex && phase === "revealing";
|
|
41655
|
+
return jsxRuntime.jsxs(Chakra.Box, {
|
|
41656
|
+
position: "relative",
|
|
41657
|
+
css: isCurrentLine ? {
|
|
41658
|
+
WebkitMaskImage: "linear-gradient(to right, \n black 0%, \n black ".concat(Math.max(0, lineProgress - 10), "%, \n transparent ").concat(lineProgress, "%, \n transparent 100%)"),
|
|
41659
|
+
maskImage: "linear-gradient(to right, \n black 0%, \n black ".concat(Math.max(0, lineProgress - 10), "%, \n transparent ").concat(lineProgress, "%, \n transparent 100%)")
|
|
41660
|
+
} : {},
|
|
41661
|
+
children: [isCurrentLine && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
41662
|
+
children: [jsxRuntime.jsx(Chakra.Box, {
|
|
41663
|
+
position: "absolute",
|
|
41664
|
+
top: 0,
|
|
41665
|
+
left: 0,
|
|
41666
|
+
right: 0,
|
|
41667
|
+
css: {
|
|
41668
|
+
filter: "blur(800px)",
|
|
41669
|
+
opacity: 0,
|
|
41670
|
+
transform: "scale(500)"
|
|
41671
|
+
},
|
|
41672
|
+
children: jsxRuntime.jsx(MarkdownRenderer, {
|
|
41673
|
+
content: line || " ",
|
|
41674
|
+
fontSize: "sm",
|
|
41675
|
+
lineHeight: "1.4",
|
|
41676
|
+
color: "white"
|
|
41677
|
+
})
|
|
41707
41678
|
}), jsxRuntime.jsx(Chakra.Box, {
|
|
41708
|
-
position: "
|
|
41679
|
+
position: "absolute",
|
|
41680
|
+
top: 0,
|
|
41681
|
+
left: 0,
|
|
41682
|
+
right: 0,
|
|
41709
41683
|
css: {
|
|
41710
|
-
filter:
|
|
41711
|
-
opacity:
|
|
41684
|
+
filter: "blur(8px)",
|
|
41685
|
+
opacity: 0.7
|
|
41712
41686
|
},
|
|
41713
41687
|
children: jsxRuntime.jsx(MarkdownRenderer, {
|
|
41714
41688
|
content: line || " ",
|
|
@@ -41717,11 +41691,23 @@ function GradualMessageDisplay(_ref) {
|
|
|
41717
41691
|
color: "white"
|
|
41718
41692
|
})
|
|
41719
41693
|
})]
|
|
41720
|
-
},
|
|
41721
|
-
|
|
41694
|
+
}), jsxRuntime.jsx(Chakra.Box, {
|
|
41695
|
+
position: "relative",
|
|
41696
|
+
css: {
|
|
41697
|
+
filter: isCurrentLine ? "blur(".concat(Math.max(0, 6 - lineProgress / 100 * 6), "px)") : "blur(0px)",
|
|
41698
|
+
opacity: isCurrentLine ? Math.min(1, lineProgress / 70) : 1
|
|
41699
|
+
},
|
|
41700
|
+
children: jsxRuntime.jsx(MarkdownRenderer, {
|
|
41701
|
+
content: line || " ",
|
|
41702
|
+
fontSize: "sm",
|
|
41703
|
+
lineHeight: "1.4",
|
|
41704
|
+
color: "white"
|
|
41705
|
+
})
|
|
41706
|
+
})]
|
|
41707
|
+
}, lineIndex);
|
|
41722
41708
|
})
|
|
41723
|
-
})
|
|
41724
|
-
})
|
|
41709
|
+
})
|
|
41710
|
+
})]
|
|
41725
41711
|
});
|
|
41726
41712
|
}
|
|
41727
41713
|
|
|
@@ -41808,41 +41794,35 @@ function ErrorMessage(_ref) {
|
|
|
41808
41794
|
return _ref2.apply(this, arguments);
|
|
41809
41795
|
};
|
|
41810
41796
|
}();
|
|
41811
|
-
return jsxRuntime.jsxs(Chakra.
|
|
41797
|
+
return jsxRuntime.jsxs(Chakra.HStack, {
|
|
41812
41798
|
alignSelf: "stretch",
|
|
41813
41799
|
p: 4,
|
|
41814
41800
|
bg: "rgba(244, 63, 94, 0.05)",
|
|
41815
41801
|
borderRadius: "lg",
|
|
41816
41802
|
border: "1px solid",
|
|
41817
41803
|
borderColor: "rgb(244, 63, 94)",
|
|
41818
|
-
|
|
41819
|
-
alignItems: "flex-start",
|
|
41804
|
+
align: "flex-start",
|
|
41820
41805
|
gap: 4,
|
|
41821
|
-
children: [jsxRuntime.
|
|
41806
|
+
children: [jsxRuntime.jsx(WarningMd, {
|
|
41807
|
+
color: "#F24"
|
|
41808
|
+
}), jsxRuntime.jsxs(Chakra.VStack, {
|
|
41822
41809
|
flex: 1,
|
|
41823
41810
|
align: "flex-start",
|
|
41824
|
-
gap:
|
|
41825
|
-
children: [jsxRuntime.jsx(
|
|
41826
|
-
|
|
41827
|
-
|
|
41828
|
-
|
|
41829
|
-
|
|
41830
|
-
|
|
41831
|
-
children:
|
|
41832
|
-
|
|
41833
|
-
|
|
41834
|
-
|
|
41835
|
-
|
|
41836
|
-
|
|
41837
|
-
|
|
41838
|
-
|
|
41839
|
-
w: "full",
|
|
41840
|
-
color: "white",
|
|
41841
|
-
fontSize: "sm",
|
|
41842
|
-
fontWeight: "normal",
|
|
41843
|
-
lineHeight: "tight",
|
|
41844
|
-
children: "Chatbot encountered connected issues."
|
|
41845
|
-
})]
|
|
41811
|
+
gap: 1,
|
|
41812
|
+
children: [jsxRuntime.jsx(Chakra.Text, {
|
|
41813
|
+
w: "full",
|
|
41814
|
+
color: "white",
|
|
41815
|
+
fontSize: "sm",
|
|
41816
|
+
fontWeight: "bold",
|
|
41817
|
+
lineHeight: "tight",
|
|
41818
|
+
children: "Connection Lost"
|
|
41819
|
+
}), jsxRuntime.jsx(Chakra.Text, {
|
|
41820
|
+
w: "full",
|
|
41821
|
+
color: "white",
|
|
41822
|
+
fontSize: "sm",
|
|
41823
|
+
fontWeight: "normal",
|
|
41824
|
+
lineHeight: "tight",
|
|
41825
|
+
children: "Chatbot encountered connected issues."
|
|
41846
41826
|
})]
|
|
41847
41827
|
}), showRetry && onRetry && jsxRuntime.jsx(Chakra.Button, {
|
|
41848
41828
|
px: "14px",
|
|
@@ -41897,19 +41877,17 @@ function MessageItem(_ref) {
|
|
|
41897
41877
|
return jsxRuntime.jsx(Chakra.Box, {
|
|
41898
41878
|
alignSelf: "flex-end",
|
|
41899
41879
|
maxW: "80%",
|
|
41900
|
-
|
|
41901
|
-
|
|
41902
|
-
|
|
41903
|
-
|
|
41904
|
-
|
|
41905
|
-
|
|
41906
|
-
|
|
41907
|
-
|
|
41908
|
-
|
|
41909
|
-
|
|
41910
|
-
|
|
41911
|
-
children: message.text
|
|
41912
|
-
})
|
|
41880
|
+
p: 4,
|
|
41881
|
+
borderRadius: "16px",
|
|
41882
|
+
borderBottomRightRadius: "sm",
|
|
41883
|
+
border: "1px solid",
|
|
41884
|
+
borderColor: "#292929",
|
|
41885
|
+
bg: "#222222",
|
|
41886
|
+
color: "white",
|
|
41887
|
+
children: jsxRuntime.jsx(Chakra.Text, {
|
|
41888
|
+
fontSize: "sm",
|
|
41889
|
+
lineHeight: "1.4",
|
|
41890
|
+
children: message.text
|
|
41913
41891
|
})
|
|
41914
41892
|
});
|
|
41915
41893
|
}
|
|
@@ -65677,10 +65655,6 @@ function MessageList(_ref) {
|
|
|
65677
65655
|
"&::-webkit-scrollbar": {
|
|
65678
65656
|
width: "6px"
|
|
65679
65657
|
},
|
|
65680
|
-
"&::-webkit-scrollbar-track": {
|
|
65681
|
-
background: "rgba(255, 255, 255, 0.1)",
|
|
65682
|
-
borderRadius: "3px"
|
|
65683
|
-
},
|
|
65684
65658
|
"&::-webkit-scrollbar-thumb": {
|
|
65685
65659
|
background: "rgba(255, 255, 255, 0.3)",
|
|
65686
65660
|
borderRadius: "3px"
|
|
@@ -65688,6 +65662,10 @@ function MessageList(_ref) {
|
|
|
65688
65662
|
"&::-webkit-scrollbar-thumb:hover": {
|
|
65689
65663
|
background: "rgba(255, 255, 255, 0.5)"
|
|
65690
65664
|
},
|
|
65665
|
+
"&::-webkit-scrollbar-track": {
|
|
65666
|
+
background: "rgba(255, 255, 255, 0.1)",
|
|
65667
|
+
borderRadius: "3px"
|
|
65668
|
+
},
|
|
65691
65669
|
scrollBehavior: "smooth"
|
|
65692
65670
|
},
|
|
65693
65671
|
children: jsxRuntime.jsx(Chakra.VStack, {
|
|
@@ -65741,8 +65719,8 @@ function MessageList(_ref) {
|
|
|
65741
65719
|
loop: true,
|
|
65742
65720
|
autoplay: true,
|
|
65743
65721
|
style: {
|
|
65744
|
-
|
|
65745
|
-
|
|
65722
|
+
height: "100%",
|
|
65723
|
+
width: "100%"
|
|
65746
65724
|
}
|
|
65747
65725
|
})
|
|
65748
65726
|
})]
|
|
@@ -66299,33 +66277,187 @@ function ChatHeader(_ref) {
|
|
|
66299
66277
|
}
|
|
66300
66278
|
|
|
66301
66279
|
function EmbeddedChatButton(_ref) {
|
|
66302
|
-
var
|
|
66303
|
-
|
|
66280
|
+
var showIconOnly = _ref.showIconOnly,
|
|
66281
|
+
onClick = _ref.onClick;
|
|
66282
|
+
return jsxRuntime.jsxs(Chakra.Button, {
|
|
66304
66283
|
onClick: onClick,
|
|
66305
66284
|
bg: "transparent",
|
|
66306
|
-
color: "
|
|
66307
|
-
|
|
66308
|
-
|
|
66309
|
-
|
|
66310
|
-
|
|
66311
|
-
|
|
66312
|
-
fontWeight: "
|
|
66313
|
-
fontSize: "
|
|
66314
|
-
|
|
66285
|
+
color: "white",
|
|
66286
|
+
borderRadius: "12px",
|
|
66287
|
+
px: "12px",
|
|
66288
|
+
py: "8px",
|
|
66289
|
+
h: "36px",
|
|
66290
|
+
minW: "36px",
|
|
66291
|
+
fontWeight: "500",
|
|
66292
|
+
fontSize: "14px",
|
|
66293
|
+
lineHeight: "20px",
|
|
66294
|
+
transition: "all 0.2s ease-in-out",
|
|
66295
|
+
position: "relative",
|
|
66296
|
+
overflow: "hidden",
|
|
66297
|
+
leftIcon: jsxRuntime.jsx(AIMd, {
|
|
66298
|
+
color: "currentColor"
|
|
66299
|
+
}),
|
|
66315
66300
|
_hover: {
|
|
66316
|
-
bg: "
|
|
66317
|
-
|
|
66301
|
+
bg: "#2BCFA1",
|
|
66302
|
+
color: "#FFFFFF"
|
|
66318
66303
|
},
|
|
66319
66304
|
_active: {
|
|
66320
|
-
bg: "
|
|
66305
|
+
bg: "#26B894",
|
|
66306
|
+
color: "#FFFFFF"
|
|
66321
66307
|
},
|
|
66322
|
-
|
|
66323
|
-
|
|
66324
|
-
|
|
66325
|
-
|
|
66326
|
-
|
|
66327
|
-
|
|
66328
|
-
|
|
66308
|
+
_focus: {
|
|
66309
|
+
boxShadow: "none"
|
|
66310
|
+
},
|
|
66311
|
+
_focusVisible: {
|
|
66312
|
+
boxShadow: "0 0 0 2px rgba(43, 207, 161, 0.3)"
|
|
66313
|
+
},
|
|
66314
|
+
children: [!showIconOnly && "AI Assistant", jsxRuntime.jsx(Chakra.Box, {
|
|
66315
|
+
position: "absolute",
|
|
66316
|
+
bottom: 0,
|
|
66317
|
+
left: 0,
|
|
66318
|
+
right: 0,
|
|
66319
|
+
width: "100%",
|
|
66320
|
+
height: "36px",
|
|
66321
|
+
pointerEvents: "none",
|
|
66322
|
+
opacity: 0,
|
|
66323
|
+
transition: "opacity 0.2s ease-in-out",
|
|
66324
|
+
sx: {
|
|
66325
|
+
'.chakra-button:hover &': {
|
|
66326
|
+
opacity: 1
|
|
66327
|
+
},
|
|
66328
|
+
'.chakra-button:active &': {
|
|
66329
|
+
opacity: 1
|
|
66330
|
+
}
|
|
66331
|
+
},
|
|
66332
|
+
children: jsxRuntime.jsxs("svg", {
|
|
66333
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
66334
|
+
width: "100%",
|
|
66335
|
+
height: "100%",
|
|
66336
|
+
viewBox: "0 0 188 48",
|
|
66337
|
+
fill: "none",
|
|
66338
|
+
preserveAspectRatio: "none",
|
|
66339
|
+
children: [jsxRuntime.jsxs("g", {
|
|
66340
|
+
clipPath: "url(#clip0_ai_overlay)",
|
|
66341
|
+
children: [jsxRuntime.jsx("rect", {
|
|
66342
|
+
width: "188",
|
|
66343
|
+
height: "48",
|
|
66344
|
+
rx: "12",
|
|
66345
|
+
fill: "url(#paint0_radial_ai_overlay)"
|
|
66346
|
+
}), jsxRuntime.jsx("g", {
|
|
66347
|
+
style: {
|
|
66348
|
+
mixBlendMode: "hard-light"
|
|
66349
|
+
},
|
|
66350
|
+
filter: "url(#filter0_f_ai_overlay)",
|
|
66351
|
+
children: jsxRuntime.jsx("path", {
|
|
66352
|
+
d: "M221.009 20.167C224.17 22.8539 225.861 25.6847 225.861 28.6104C225.861 45.9462 166.533 60 93.3477 60C20.1622 60 -39.167 45.9462 -39.167 28.6104C-39.1668 25.6847 -37.4754 22.8539 -34.3145 20.167C-18.7449 33.4011 32.5139 43.1123 93.3477 43.1123C154.181 43.1123 205.439 33.401 221.009 20.167Z",
|
|
66353
|
+
fill: "#2BCFA1"
|
|
66354
|
+
})
|
|
66355
|
+
}), jsxRuntime.jsx("g", {
|
|
66356
|
+
style: {
|
|
66357
|
+
mixBlendMode: "color-dodge"
|
|
66358
|
+
},
|
|
66359
|
+
filter: "url(#filter1_f_ai_overlay)",
|
|
66360
|
+
children: jsxRuntime.jsx("path", {
|
|
66361
|
+
d: "M229.808 46.167C233.191 47.0105 234.999 47.8979 235 48.8164C235 54.2565 171.58 58.667 93.3474 58.667C15.1147 58.667 -48.3049 54.2565 -48.3049 48.8164C-48.3045 47.8979 -46.4965 47.0105 -43.1145 46.167C-26.4654 50.3193 28.3245 53.3672 93.3474 53.3672C158.369 53.3672 213.158 50.3192 229.808 46.167Z",
|
|
66362
|
+
fill: "white"
|
|
66363
|
+
})
|
|
66364
|
+
}), jsxRuntime.jsx("g", {
|
|
66365
|
+
style: {
|
|
66366
|
+
mixBlendMode: "plus-lighter"
|
|
66367
|
+
},
|
|
66368
|
+
filter: "url(#filter2_f_ai_overlay)",
|
|
66369
|
+
children: jsxRuntime.jsx("path", {
|
|
66370
|
+
d: "M200.885 39.5C203.548 40.8829 204.972 42.3399 204.972 43.8457C204.972 52.7675 154.996 60 93.3469 60C31.6984 60 -18.2778 52.7675 -18.2781 43.8457C-18.2781 42.3401 -16.8545 40.8827 -14.1921 39.5C-1.07789 46.3111 42.1018 51.3086 93.3469 51.3086C144.591 51.3086 187.769 46.3108 200.885 39.5Z",
|
|
66371
|
+
fill: "white"
|
|
66372
|
+
})
|
|
66373
|
+
})]
|
|
66374
|
+
}), jsxRuntime.jsxs("defs", {
|
|
66375
|
+
children: [jsxRuntime.jsxs("filter", {
|
|
66376
|
+
id: "filter0_f_ai_overlay",
|
|
66377
|
+
x: "-58.067",
|
|
66378
|
+
y: "1.26699",
|
|
66379
|
+
width: "302.828",
|
|
66380
|
+
height: "77.633",
|
|
66381
|
+
filterUnits: "userSpaceOnUse",
|
|
66382
|
+
colorInterpolationFilters: "sRGB",
|
|
66383
|
+
children: [jsxRuntime.jsx("feFlood", {
|
|
66384
|
+
floodOpacity: "0",
|
|
66385
|
+
result: "BackgroundImageFix"
|
|
66386
|
+
}), jsxRuntime.jsx("feBlend", {
|
|
66387
|
+
mode: "normal",
|
|
66388
|
+
"in": "SourceGraphic",
|
|
66389
|
+
in2: "BackgroundImageFix",
|
|
66390
|
+
result: "shape"
|
|
66391
|
+
}), jsxRuntime.jsx("feGaussianBlur", {
|
|
66392
|
+
stdDeviation: "9.45",
|
|
66393
|
+
result: "effect1_foregroundBlur_ai_overlay"
|
|
66394
|
+
})]
|
|
66395
|
+
}), jsxRuntime.jsxs("filter", {
|
|
66396
|
+
id: "filter1_f_ai_overlay",
|
|
66397
|
+
x: "-61.1716",
|
|
66398
|
+
y: "33.3003",
|
|
66399
|
+
width: "309.038",
|
|
66400
|
+
height: "38.2333",
|
|
66401
|
+
filterUnits: "userSpaceOnUse",
|
|
66402
|
+
colorInterpolationFilters: "sRGB",
|
|
66403
|
+
children: [jsxRuntime.jsx("feFlood", {
|
|
66404
|
+
floodOpacity: "0",
|
|
66405
|
+
result: "BackgroundImageFix"
|
|
66406
|
+
}), jsxRuntime.jsx("feBlend", {
|
|
66407
|
+
mode: "normal",
|
|
66408
|
+
"in": "SourceGraphic",
|
|
66409
|
+
in2: "BackgroundImageFix",
|
|
66410
|
+
result: "shape"
|
|
66411
|
+
}), jsxRuntime.jsx("feGaussianBlur", {
|
|
66412
|
+
stdDeviation: "6.43333",
|
|
66413
|
+
result: "effect1_foregroundBlur_ai_overlay"
|
|
66414
|
+
})]
|
|
66415
|
+
}), jsxRuntime.jsxs("filter", {
|
|
66416
|
+
id: "filter2_f_ai_overlay",
|
|
66417
|
+
x: "-30.5781",
|
|
66418
|
+
y: "27.2",
|
|
66419
|
+
width: "247.85",
|
|
66420
|
+
height: "45.1",
|
|
66421
|
+
filterUnits: "userSpaceOnUse",
|
|
66422
|
+
colorInterpolationFilters: "sRGB",
|
|
66423
|
+
children: [jsxRuntime.jsx("feFlood", {
|
|
66424
|
+
floodOpacity: "0",
|
|
66425
|
+
result: "BackgroundImageFix"
|
|
66426
|
+
}), jsxRuntime.jsx("feBlend", {
|
|
66427
|
+
mode: "normal",
|
|
66428
|
+
"in": "SourceGraphic",
|
|
66429
|
+
in2: "BackgroundImageFix",
|
|
66430
|
+
result: "shape"
|
|
66431
|
+
}), jsxRuntime.jsx("feGaussianBlur", {
|
|
66432
|
+
stdDeviation: "6.15",
|
|
66433
|
+
result: "effect1_foregroundBlur_ai_overlay"
|
|
66434
|
+
})]
|
|
66435
|
+
}), jsxRuntime.jsxs("radialGradient", {
|
|
66436
|
+
id: "paint0_radial_ai_overlay",
|
|
66437
|
+
cx: "0",
|
|
66438
|
+
cy: "0",
|
|
66439
|
+
r: "1",
|
|
66440
|
+
gradientUnits: "userSpaceOnUse",
|
|
66441
|
+
gradientTransform: "translate(94 -5.33333) rotate(90) scale(70.8333 150.489)",
|
|
66442
|
+
children: [jsxRuntime.jsx("stop", {
|
|
66443
|
+
offset: "0.707302",
|
|
66444
|
+
stopOpacity: "0"
|
|
66445
|
+
}), jsxRuntime.jsx("stop", {
|
|
66446
|
+
offset: "0.897964",
|
|
66447
|
+
stopColor: "#2BCFA1"
|
|
66448
|
+
})]
|
|
66449
|
+
}), jsxRuntime.jsx("clipPath", {
|
|
66450
|
+
id: "clip0_ai_overlay",
|
|
66451
|
+
children: jsxRuntime.jsx("rect", {
|
|
66452
|
+
width: "188",
|
|
66453
|
+
height: "48",
|
|
66454
|
+
rx: "12",
|
|
66455
|
+
fill: "white"
|
|
66456
|
+
})
|
|
66457
|
+
})]
|
|
66458
|
+
})]
|
|
66459
|
+
})
|
|
66460
|
+
})]
|
|
66329
66461
|
});
|
|
66330
66462
|
}
|
|
66331
66463
|
|
|
@@ -66413,6 +66545,7 @@ function FloatingChatButton(_ref) {
|
|
|
66413
66545
|
}
|
|
66414
66546
|
|
|
66415
66547
|
function Chatbot(_ref) {
|
|
66548
|
+
var _useBreakpointValue;
|
|
66416
66549
|
var apiBaseUrl = _ref.apiBaseUrl,
|
|
66417
66550
|
apiKey = _ref.apiKey,
|
|
66418
66551
|
_ref$buttonType = _ref.buttonType,
|
|
@@ -66443,10 +66576,15 @@ function Chatbot(_ref) {
|
|
|
66443
66576
|
handleSendMessage = _useChatbot.handleSendMessage,
|
|
66444
66577
|
handleRetryLastMessage = _useChatbot.handleRetryLastMessage,
|
|
66445
66578
|
clearProcessingMessageId = _useChatbot.clearProcessingMessageId;
|
|
66579
|
+
var showIconOnly = (_useBreakpointValue = Chakra.useBreakpointValue({
|
|
66580
|
+
base: true,
|
|
66581
|
+
md: false
|
|
66582
|
+
})) !== null && _useBreakpointValue !== void 0 ? _useBreakpointValue : false;
|
|
66446
66583
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
66447
66584
|
children: [buttonType === "floating" ? jsxRuntime.jsx(FloatingChatButton, {
|
|
66448
66585
|
onClick: onOpen
|
|
66449
66586
|
}) : jsxRuntime.jsx(EmbeddedChatButton, {
|
|
66587
|
+
showIconOnly: showIconOnly,
|
|
66450
66588
|
onClick: onOpen
|
|
66451
66589
|
}), jsxRuntime.jsxs(ChatDrawer, {
|
|
66452
66590
|
isOpen: isOpen,
|