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/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
2
  import * as Chakra from '@chakra-ui/react';
3
- import { VStack, Text, Box, Input, Button, HStack, Image as Image$1, Spacer, IconButton, Link, Grid, Flex, Tooltip as Tooltip$1, Center, DrawerHeader, useDisclosure, DrawerBody } from '@chakra-ui/react';
3
+ import { VStack, Text, Box, Input, Button, HStack, Image as Image$1, Spacer, IconButton, Link, Grid, Flex, Tooltip as Tooltip$1, Center, DrawerHeader, useDisclosure, useBreakpointValue, DrawerBody } from '@chakra-ui/react';
4
4
  import * as React from 'react';
5
5
  import React__default, { useState, useMemo, useRef, useEffect, useCallback } from 'react';
6
6
 
@@ -4968,80 +4968,72 @@ function MessageInput(_ref) {
4968
4968
  borderTop: "1px solid",
4969
4969
  borderColor: "#27272A",
4970
4970
  borderBottomRadius: 16,
4971
- children: jsx(VStack, {
4972
- gap: 6,
4971
+ children: jsxs(VStack, {
4972
+ gap: 4,
4973
4973
  w: "full",
4974
4974
  align: "stretch",
4975
- children: jsxs(VStack, {
4976
- gap: 4,
4975
+ children: [jsx(Input, {
4976
+ value: input,
4977
+ onChange: function onChange(e) {
4978
+ return setInput(e.target.value);
4979
+ },
4980
+ onKeyDown: function onKeyDown(e) {
4981
+ return e.key === "Enter" && handleSend();
4982
+ },
4983
+ placeholder: "Send a message",
4984
+ bg: "transparent",
4985
+ color: "white",
4986
+ border: "none",
4987
+ outline: "none",
4988
+ _placeholder: {
4989
+ color: "#737373"
4990
+ },
4991
+ _focus: {
4992
+ border: "none",
4993
+ outline: "none",
4994
+ boxShadow: "none"
4995
+ },
4996
+ _active: {
4997
+ border: "none",
4998
+ outline: "none",
4999
+ boxShadow: "none"
5000
+ },
5001
+ p: 3,
5002
+ fontSize: "sm"
5003
+ }), jsxs(HStack, {
5004
+ align: "center",
4977
5005
  w: "full",
4978
- children: [jsx(Box, {
4979
- w: "full",
4980
- position: "relative",
4981
- children: jsx(Input, {
4982
- value: input,
4983
- onChange: function onChange(e) {
4984
- return setInput(e.target.value);
4985
- },
4986
- onKeyDown: function onKeyDown(e) {
4987
- return e.key === "Enter" && handleSend();
4988
- },
4989
- placeholder: "Send a message",
4990
- bg: "transparent",
4991
- color: "white",
4992
- border: "none",
4993
- outline: "none",
4994
- _placeholder: {
4995
- color: "#737373"
4996
- },
4997
- _focus: {
4998
- border: "none",
4999
- outline: "none",
5000
- boxShadow: "none"
5001
- },
5002
- _active: {
5003
- border: "none",
5004
- outline: "none",
5005
- boxShadow: "none"
5006
- },
5007
- p: 3,
5008
- fontSize: "sm"
5006
+ children: [user.logoUrl && jsx(HStack, {
5007
+ gap: 3,
5008
+ children: jsx(Image$1, {
5009
+ boxSize: "40px",
5010
+ src: user.logoUrl,
5011
+ alt: "User avatar",
5012
+ border: "1px solid",
5013
+ borderColor: "#27272A",
5014
+ borderRadius: "24px"
5015
+ })
5016
+ }), jsx(Spacer, {}), jsx(IconButton, {
5017
+ "aria-label": "Send message",
5018
+ onClick: handleSend,
5019
+ isDisabled: !input.trim() || isLoading,
5020
+ isLoading: isLoading,
5021
+ size: "md",
5022
+ bg: !input.trim() || isLoading ? "#262626" : "#2BCFA1",
5023
+ _hover: {
5024
+ bg: !input.trim() || isLoading ? "#262626" : "#22B890"
5025
+ },
5026
+ _disabled: {
5027
+ bg: "#262626",
5028
+ cursor: "not-allowed"
5029
+ },
5030
+ borderRadius: "lg",
5031
+ border: "none",
5032
+ children: jsx(SendMd, {
5033
+ color: !input.trim() || isLoading ? "#525252" : "white"
5009
5034
  })
5010
- }), jsxs(HStack, {
5011
- align: "center",
5012
- w: "full",
5013
- children: [user.logoUrl && jsx(HStack, {
5014
- gap: 3,
5015
- children: jsx(Image$1, {
5016
- boxSize: "40px",
5017
- src: user.logoUrl,
5018
- alt: "User avatar",
5019
- border: "1px solid",
5020
- borderColor: "#27272A",
5021
- borderRadius: "24px"
5022
- })
5023
- }), jsx(Spacer, {}), jsx(IconButton, {
5024
- "aria-label": "Send message",
5025
- onClick: handleSend,
5026
- isDisabled: !input.trim() || isLoading,
5027
- isLoading: isLoading,
5028
- size: "md",
5029
- bg: !input.trim() || isLoading ? "#262626" : "#2BCFA1",
5030
- _hover: {
5031
- bg: !input.trim() || isLoading ? "#262626" : "#22B890"
5032
- },
5033
- _disabled: {
5034
- bg: "#262626",
5035
- cursor: "not-allowed"
5036
- },
5037
- borderRadius: "lg",
5038
- border: "none",
5039
- children: jsx(SendMd, {
5040
- color: !input.trim() || isLoading ? "#525252" : "white"
5041
- })
5042
- })]
5043
5035
  })]
5044
- })
5036
+ })]
5045
5037
  })
5046
5038
  })]
5047
5039
  });
@@ -5113,17 +5105,15 @@ var TypingIndicator = /*#__PURE__*/React__default.memo(function TypingIndicator(
5113
5105
  maxW: "80%",
5114
5106
  mb: 2,
5115
5107
  style: containerAnimationStyle,
5116
- children: jsx(Box, {
5117
- bg: "rgba(34, 197, 94, 0.2)",
5118
- p: "10px 14px",
5119
- borderRadius: "16px",
5120
- w: "fit-content",
5121
- border: "1px solid rgba(34, 197, 94, 0.3)",
5122
- backdropFilter: "blur(10px)",
5123
- boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
5124
- children: jsx(TypingDots, {
5125
- delay: 0.1
5126
- })
5108
+ bg: "rgba(34, 197, 94, 0.2)",
5109
+ p: "10px 14px",
5110
+ borderRadius: "16px",
5111
+ w: "fit-content",
5112
+ border: "1px solid rgba(34, 197, 94, 0.3)",
5113
+ backdropFilter: "blur(10px)",
5114
+ boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
5115
+ children: jsx(TypingDots, {
5116
+ delay: 0.1
5127
5117
  })
5128
5118
  });
5129
5119
  });
@@ -41396,8 +41386,8 @@ function MarkdownRenderer(_ref) {
41396
41386
  fontSize: fontSize,
41397
41387
  lineHeight: lineHeight,
41398
41388
  css: {
41399
- listStyleType: 'disc',
41400
- listStylePosition: 'outside'
41389
+ listStylePosition: 'outside',
41390
+ listStyleType: 'disc'
41401
41391
  },
41402
41392
  children: children
41403
41393
  });
@@ -41412,8 +41402,8 @@ function MarkdownRenderer(_ref) {
41412
41402
  fontSize: fontSize,
41413
41403
  lineHeight: lineHeight,
41414
41404
  css: {
41415
- listStyleType: 'decimal',
41416
- listStylePosition: 'outside'
41405
+ listStylePosition: 'outside',
41406
+ listStyleType: 'decimal'
41417
41407
  },
41418
41408
  children: children
41419
41409
  });
@@ -41586,109 +41576,93 @@ function GradualMessageDisplay(_ref) {
41586
41576
  return jsx(Box, {
41587
41577
  alignSelf: "flex-start",
41588
41578
  mb: 4,
41589
- children: jsx(Box, {
41590
- p: 4,
41591
- borderRadius: "12px",
41592
- borderBottomLeftRadius: "6px",
41593
- children: jsx(MarkdownRenderer, {
41594
- content: message,
41595
- fontSize: "sm",
41596
- lineHeight: "1.4",
41597
- color: "white"
41598
- })
41579
+ p: 4,
41580
+ borderRadius: "12px",
41581
+ borderBottomLeftRadius: "6px",
41582
+ children: jsx(MarkdownRenderer, {
41583
+ content: message,
41584
+ fontSize: "sm",
41585
+ lineHeight: "1.4",
41586
+ color: "white"
41599
41587
  })
41600
41588
  });
41601
41589
  }
41602
- return jsx(Box, {
41590
+ return jsxs(Box, {
41603
41591
  alignSelf: "flex-start",
41604
41592
  mb: 4,
41605
- children: jsxs(Box, {
41606
- display: "flex",
41607
- flexDirection: "column",
41608
- gap: 2,
41609
- children: [(phase === "typing" || phase === "revealing") && jsx(TypingIndicator, {
41610
- isVisible: true
41611
- }), (phase === "revealing" || phase === "complete") && jsx(Box, {
41612
- position: "relative",
41593
+ display: "flex",
41594
+ flexDirection: "column",
41595
+ gap: 2,
41596
+ children: [(phase === "typing" || phase === "revealing") && jsx(TypingIndicator, {
41597
+ isVisible: true
41598
+ }), (phase === "revealing" || phase === "complete") && jsx(Box, {
41599
+ position: "relative",
41600
+ borderRadius: "12px",
41601
+ _before: {
41602
+ content: '""',
41603
+ position: "absolute",
41604
+ zIndex: -1,
41605
+ width: "calc(100% + 1px)",
41606
+ height: "calc(100% + 1px)",
41607
+ top: 0,
41608
+ left: 0,
41613
41609
  borderRadius: "12px",
41614
- _before: {
41615
- content: '""',
41616
- position: "absolute",
41617
- zIndex: -1,
41618
- width: "calc(100% + 1px)",
41619
- height: "calc(100% + 1px)",
41620
- top: 0,
41621
- left: 0,
41622
- borderRadius: "12px",
41623
- backgroundSize: "400% 400%",
41624
- opacity: phase === "revealing" ? 1 : 0,
41625
- transition: "opacity 0.3s ease"
41626
- },
41627
- _after: {
41628
- content: '""',
41629
- position: "absolute",
41630
- zIndex: -1,
41631
- width: "calc(100% + 1px)",
41632
- height: "calc(100% + 1px)",
41633
- top: 0,
41634
- left: 0,
41635
- borderRadius: "12px",
41636
- backgroundSize: "400% 400%",
41637
- opacity: phase === "revealing" ? 1 : 0,
41638
- transition: "opacity 0.3s ease",
41639
- filter: "blur(100px)"
41640
- },
41641
- children: jsx(Box, {
41642
- borderRadius: "11px",
41643
- p: "12px 16px",
41644
- position: "relative",
41645
- zIndex: 1,
41646
- children: displayedLines.map(function (line, lineIndex) {
41647
- var isCurrentLine = lineIndex === currentLineIndex && phase === "revealing";
41648
- return jsxs(Box, {
41649
- position: "relative",
41650
- css: isCurrentLine ? {
41651
- maskImage: "linear-gradient(to right, \n black 0%, \n black ".concat(Math.max(0, lineProgress - 10), "%, \n transparent ").concat(lineProgress, "%, \n transparent 100%)"),
41652
- WebkitMaskImage: "linear-gradient(to right, \n black 0%, \n black ".concat(Math.max(0, lineProgress - 10), "%, \n transparent ").concat(lineProgress, "%, \n transparent 100%)")
41653
- } : {},
41654
- children: [isCurrentLine && jsxs(Fragment, {
41655
- children: [jsx(Box, {
41656
- position: "absolute",
41657
- top: 0,
41658
- left: 0,
41659
- right: 0,
41660
- css: {
41661
- filter: "blur(800px)",
41662
- opacity: 0,
41663
- transform: "scale(500)"
41664
- },
41665
- children: jsx(MarkdownRenderer, {
41666
- content: line || " ",
41667
- fontSize: "sm",
41668
- lineHeight: "1.4",
41669
- color: "white"
41670
- })
41671
- }), jsx(Box, {
41672
- position: "absolute",
41673
- top: 0,
41674
- left: 0,
41675
- right: 0,
41676
- css: {
41677
- filter: "blur(8px)",
41678
- opacity: 0.7
41679
- },
41680
- children: jsx(MarkdownRenderer, {
41681
- content: line || " ",
41682
- fontSize: "sm",
41683
- lineHeight: "1.4",
41684
- color: "white"
41685
- })
41686
- })]
41610
+ backgroundSize: "400% 400%",
41611
+ opacity: phase === "revealing" ? 1 : 0,
41612
+ transition: "opacity 0.3s ease"
41613
+ },
41614
+ _after: {
41615
+ content: '""',
41616
+ position: "absolute",
41617
+ zIndex: -1,
41618
+ width: "calc(100% + 1px)",
41619
+ height: "calc(100% + 1px)",
41620
+ top: 0,
41621
+ left: 0,
41622
+ borderRadius: "12px",
41623
+ backgroundSize: "400% 400%",
41624
+ opacity: phase === "revealing" ? 1 : 0,
41625
+ transition: "opacity 0.3s ease",
41626
+ filter: "blur(100px)"
41627
+ },
41628
+ children: jsx(Box, {
41629
+ borderRadius: "11px",
41630
+ p: "12px 16px",
41631
+ position: "relative",
41632
+ zIndex: 1,
41633
+ children: displayedLines.map(function (line, lineIndex) {
41634
+ var isCurrentLine = lineIndex === currentLineIndex && phase === "revealing";
41635
+ return jsxs(Box, {
41636
+ position: "relative",
41637
+ css: isCurrentLine ? {
41638
+ WebkitMaskImage: "linear-gradient(to right, \n black 0%, \n black ".concat(Math.max(0, lineProgress - 10), "%, \n transparent ").concat(lineProgress, "%, \n transparent 100%)"),
41639
+ maskImage: "linear-gradient(to right, \n black 0%, \n black ".concat(Math.max(0, lineProgress - 10), "%, \n transparent ").concat(lineProgress, "%, \n transparent 100%)")
41640
+ } : {},
41641
+ children: [isCurrentLine && jsxs(Fragment, {
41642
+ children: [jsx(Box, {
41643
+ position: "absolute",
41644
+ top: 0,
41645
+ left: 0,
41646
+ right: 0,
41647
+ css: {
41648
+ filter: "blur(800px)",
41649
+ opacity: 0,
41650
+ transform: "scale(500)"
41651
+ },
41652
+ children: jsx(MarkdownRenderer, {
41653
+ content: line || " ",
41654
+ fontSize: "sm",
41655
+ lineHeight: "1.4",
41656
+ color: "white"
41657
+ })
41687
41658
  }), jsx(Box, {
41688
- position: "relative",
41659
+ position: "absolute",
41660
+ top: 0,
41661
+ left: 0,
41662
+ right: 0,
41689
41663
  css: {
41690
- filter: isCurrentLine ? "blur(".concat(Math.max(0, 6 - lineProgress / 100 * 6), "px)") : "blur(0px)",
41691
- opacity: isCurrentLine ? Math.min(1, lineProgress / 70) : 1
41664
+ filter: "blur(8px)",
41665
+ opacity: 0.7
41692
41666
  },
41693
41667
  children: jsx(MarkdownRenderer, {
41694
41668
  content: line || " ",
@@ -41697,11 +41671,23 @@ function GradualMessageDisplay(_ref) {
41697
41671
  color: "white"
41698
41672
  })
41699
41673
  })]
41700
- }, lineIndex);
41701
- })
41674
+ }), jsx(Box, {
41675
+ position: "relative",
41676
+ css: {
41677
+ filter: isCurrentLine ? "blur(".concat(Math.max(0, 6 - lineProgress / 100 * 6), "px)") : "blur(0px)",
41678
+ opacity: isCurrentLine ? Math.min(1, lineProgress / 70) : 1
41679
+ },
41680
+ children: jsx(MarkdownRenderer, {
41681
+ content: line || " ",
41682
+ fontSize: "sm",
41683
+ lineHeight: "1.4",
41684
+ color: "white"
41685
+ })
41686
+ })]
41687
+ }, lineIndex);
41702
41688
  })
41703
- })]
41704
- })
41689
+ })
41690
+ })]
41705
41691
  });
41706
41692
  }
41707
41693
 
@@ -41788,41 +41774,35 @@ function ErrorMessage(_ref) {
41788
41774
  return _ref2.apply(this, arguments);
41789
41775
  };
41790
41776
  }();
41791
- return jsxs(Box, {
41777
+ return jsxs(HStack, {
41792
41778
  alignSelf: "stretch",
41793
41779
  p: 4,
41794
41780
  bg: "rgba(244, 63, 94, 0.05)",
41795
41781
  borderRadius: "lg",
41796
41782
  border: "1px solid",
41797
41783
  borderColor: "rgb(244, 63, 94)",
41798
- display: "flex",
41799
- alignItems: "flex-start",
41784
+ align: "flex-start",
41800
41785
  gap: 4,
41801
- children: [jsxs(HStack, {
41786
+ children: [jsx(WarningMd, {
41787
+ color: "#F24"
41788
+ }), jsxs(VStack, {
41802
41789
  flex: 1,
41803
41790
  align: "flex-start",
41804
- gap: 2,
41805
- children: [jsx(WarningMd, {
41806
- color: "#F24"
41807
- }), jsxs(VStack, {
41808
- flex: 1,
41809
- align: "flex-start",
41810
- gap: 1,
41811
- children: [jsx(Text, {
41812
- w: "full",
41813
- color: "white",
41814
- fontSize: "sm",
41815
- fontWeight: "bold",
41816
- lineHeight: "tight",
41817
- children: "Connection Lost"
41818
- }), jsx(Text, {
41819
- w: "full",
41820
- color: "white",
41821
- fontSize: "sm",
41822
- fontWeight: "normal",
41823
- lineHeight: "tight",
41824
- children: "Chatbot encountered connected issues."
41825
- })]
41791
+ gap: 1,
41792
+ children: [jsx(Text, {
41793
+ w: "full",
41794
+ color: "white",
41795
+ fontSize: "sm",
41796
+ fontWeight: "bold",
41797
+ lineHeight: "tight",
41798
+ children: "Connection Lost"
41799
+ }), jsx(Text, {
41800
+ w: "full",
41801
+ color: "white",
41802
+ fontSize: "sm",
41803
+ fontWeight: "normal",
41804
+ lineHeight: "tight",
41805
+ children: "Chatbot encountered connected issues."
41826
41806
  })]
41827
41807
  }), showRetry && onRetry && jsx(Button, {
41828
41808
  px: "14px",
@@ -41877,19 +41857,17 @@ function MessageItem(_ref) {
41877
41857
  return jsx(Box, {
41878
41858
  alignSelf: "flex-end",
41879
41859
  maxW: "80%",
41880
- children: jsx(Box, {
41881
- p: 4,
41882
- borderRadius: "16px",
41883
- borderBottomRightRadius: "sm",
41884
- border: "1px solid",
41885
- borderColor: "#292929",
41886
- bg: "#222222",
41887
- color: "white",
41888
- children: jsx(Text, {
41889
- fontSize: "sm",
41890
- lineHeight: "1.4",
41891
- children: message.text
41892
- })
41860
+ p: 4,
41861
+ borderRadius: "16px",
41862
+ borderBottomRightRadius: "sm",
41863
+ border: "1px solid",
41864
+ borderColor: "#292929",
41865
+ bg: "#222222",
41866
+ color: "white",
41867
+ children: jsx(Text, {
41868
+ fontSize: "sm",
41869
+ lineHeight: "1.4",
41870
+ children: message.text
41893
41871
  })
41894
41872
  });
41895
41873
  }
@@ -65657,10 +65635,6 @@ function MessageList(_ref) {
65657
65635
  "&::-webkit-scrollbar": {
65658
65636
  width: "6px"
65659
65637
  },
65660
- "&::-webkit-scrollbar-track": {
65661
- background: "rgba(255, 255, 255, 0.1)",
65662
- borderRadius: "3px"
65663
- },
65664
65638
  "&::-webkit-scrollbar-thumb": {
65665
65639
  background: "rgba(255, 255, 255, 0.3)",
65666
65640
  borderRadius: "3px"
@@ -65668,6 +65642,10 @@ function MessageList(_ref) {
65668
65642
  "&::-webkit-scrollbar-thumb:hover": {
65669
65643
  background: "rgba(255, 255, 255, 0.5)"
65670
65644
  },
65645
+ "&::-webkit-scrollbar-track": {
65646
+ background: "rgba(255, 255, 255, 0.1)",
65647
+ borderRadius: "3px"
65648
+ },
65671
65649
  scrollBehavior: "smooth"
65672
65650
  },
65673
65651
  children: jsx(VStack, {
@@ -65721,8 +65699,8 @@ function MessageList(_ref) {
65721
65699
  loop: true,
65722
65700
  autoplay: true,
65723
65701
  style: {
65724
- width: "100%",
65725
- height: "100%"
65702
+ height: "100%",
65703
+ width: "100%"
65726
65704
  }
65727
65705
  })
65728
65706
  })]
@@ -66279,33 +66257,187 @@ function ChatHeader(_ref) {
66279
66257
  }
66280
66258
 
66281
66259
  function EmbeddedChatButton(_ref) {
66282
- var onClick = _ref.onClick;
66283
- return jsx(Button, {
66260
+ var showIconOnly = _ref.showIconOnly,
66261
+ onClick = _ref.onClick;
66262
+ return jsxs(Button, {
66284
66263
  onClick: onClick,
66285
66264
  bg: "transparent",
66286
- color: "#2BCFA1",
66287
- border: "1px solid #292929",
66288
- borderRadius: "8px",
66289
- px: "14px",
66290
- py: "10px",
66291
- h: "auto",
66292
- fontWeight: "medium",
66293
- fontSize: "sm",
66294
- transition: "all 0.2s",
66265
+ color: "white",
66266
+ borderRadius: "12px",
66267
+ px: "12px",
66268
+ py: "8px",
66269
+ h: "36px",
66270
+ minW: "36px",
66271
+ fontWeight: "500",
66272
+ fontSize: "14px",
66273
+ lineHeight: "20px",
66274
+ transition: "all 0.2s ease-in-out",
66275
+ position: "relative",
66276
+ overflow: "hidden",
66277
+ leftIcon: jsx(AIMd, {
66278
+ color: "currentColor"
66279
+ }),
66295
66280
  _hover: {
66296
- bg: "rgba(255, 255, 255, 0.05)",
66297
- borderColor: "#404040"
66281
+ bg: "#2BCFA1",
66282
+ color: "#FFFFFF"
66298
66283
  },
66299
66284
  _active: {
66300
- bg: "rgba(255, 255, 255, 0.1)"
66285
+ bg: "#26B894",
66286
+ color: "#FFFFFF"
66301
66287
  },
66302
- children: jsxs(Flex, {
66303
- align: "center",
66304
- gap: "6px",
66305
- children: [jsx(AIMd, {
66306
- color: "currentColor"
66307
- }), "AI Assistant"]
66308
- })
66288
+ _focus: {
66289
+ boxShadow: "none"
66290
+ },
66291
+ _focusVisible: {
66292
+ boxShadow: "0 0 0 2px rgba(43, 207, 161, 0.3)"
66293
+ },
66294
+ children: [!showIconOnly && "AI Assistant", jsx(Box, {
66295
+ position: "absolute",
66296
+ bottom: 0,
66297
+ left: 0,
66298
+ right: 0,
66299
+ width: "100%",
66300
+ height: "36px",
66301
+ pointerEvents: "none",
66302
+ opacity: 0,
66303
+ transition: "opacity 0.2s ease-in-out",
66304
+ sx: {
66305
+ '.chakra-button:hover &': {
66306
+ opacity: 1
66307
+ },
66308
+ '.chakra-button:active &': {
66309
+ opacity: 1
66310
+ }
66311
+ },
66312
+ children: jsxs("svg", {
66313
+ xmlns: "http://www.w3.org/2000/svg",
66314
+ width: "100%",
66315
+ height: "100%",
66316
+ viewBox: "0 0 188 48",
66317
+ fill: "none",
66318
+ preserveAspectRatio: "none",
66319
+ children: [jsxs("g", {
66320
+ clipPath: "url(#clip0_ai_overlay)",
66321
+ children: [jsx("rect", {
66322
+ width: "188",
66323
+ height: "48",
66324
+ rx: "12",
66325
+ fill: "url(#paint0_radial_ai_overlay)"
66326
+ }), jsx("g", {
66327
+ style: {
66328
+ mixBlendMode: "hard-light"
66329
+ },
66330
+ filter: "url(#filter0_f_ai_overlay)",
66331
+ children: jsx("path", {
66332
+ 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",
66333
+ fill: "#2BCFA1"
66334
+ })
66335
+ }), jsx("g", {
66336
+ style: {
66337
+ mixBlendMode: "color-dodge"
66338
+ },
66339
+ filter: "url(#filter1_f_ai_overlay)",
66340
+ children: jsx("path", {
66341
+ 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",
66342
+ fill: "white"
66343
+ })
66344
+ }), jsx("g", {
66345
+ style: {
66346
+ mixBlendMode: "plus-lighter"
66347
+ },
66348
+ filter: "url(#filter2_f_ai_overlay)",
66349
+ children: jsx("path", {
66350
+ 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",
66351
+ fill: "white"
66352
+ })
66353
+ })]
66354
+ }), jsxs("defs", {
66355
+ children: [jsxs("filter", {
66356
+ id: "filter0_f_ai_overlay",
66357
+ x: "-58.067",
66358
+ y: "1.26699",
66359
+ width: "302.828",
66360
+ height: "77.633",
66361
+ filterUnits: "userSpaceOnUse",
66362
+ colorInterpolationFilters: "sRGB",
66363
+ children: [jsx("feFlood", {
66364
+ floodOpacity: "0",
66365
+ result: "BackgroundImageFix"
66366
+ }), jsx("feBlend", {
66367
+ mode: "normal",
66368
+ "in": "SourceGraphic",
66369
+ in2: "BackgroundImageFix",
66370
+ result: "shape"
66371
+ }), jsx("feGaussianBlur", {
66372
+ stdDeviation: "9.45",
66373
+ result: "effect1_foregroundBlur_ai_overlay"
66374
+ })]
66375
+ }), jsxs("filter", {
66376
+ id: "filter1_f_ai_overlay",
66377
+ x: "-61.1716",
66378
+ y: "33.3003",
66379
+ width: "309.038",
66380
+ height: "38.2333",
66381
+ filterUnits: "userSpaceOnUse",
66382
+ colorInterpolationFilters: "sRGB",
66383
+ children: [jsx("feFlood", {
66384
+ floodOpacity: "0",
66385
+ result: "BackgroundImageFix"
66386
+ }), jsx("feBlend", {
66387
+ mode: "normal",
66388
+ "in": "SourceGraphic",
66389
+ in2: "BackgroundImageFix",
66390
+ result: "shape"
66391
+ }), jsx("feGaussianBlur", {
66392
+ stdDeviation: "6.43333",
66393
+ result: "effect1_foregroundBlur_ai_overlay"
66394
+ })]
66395
+ }), jsxs("filter", {
66396
+ id: "filter2_f_ai_overlay",
66397
+ x: "-30.5781",
66398
+ y: "27.2",
66399
+ width: "247.85",
66400
+ height: "45.1",
66401
+ filterUnits: "userSpaceOnUse",
66402
+ colorInterpolationFilters: "sRGB",
66403
+ children: [jsx("feFlood", {
66404
+ floodOpacity: "0",
66405
+ result: "BackgroundImageFix"
66406
+ }), jsx("feBlend", {
66407
+ mode: "normal",
66408
+ "in": "SourceGraphic",
66409
+ in2: "BackgroundImageFix",
66410
+ result: "shape"
66411
+ }), jsx("feGaussianBlur", {
66412
+ stdDeviation: "6.15",
66413
+ result: "effect1_foregroundBlur_ai_overlay"
66414
+ })]
66415
+ }), jsxs("radialGradient", {
66416
+ id: "paint0_radial_ai_overlay",
66417
+ cx: "0",
66418
+ cy: "0",
66419
+ r: "1",
66420
+ gradientUnits: "userSpaceOnUse",
66421
+ gradientTransform: "translate(94 -5.33333) rotate(90) scale(70.8333 150.489)",
66422
+ children: [jsx("stop", {
66423
+ offset: "0.707302",
66424
+ stopOpacity: "0"
66425
+ }), jsx("stop", {
66426
+ offset: "0.897964",
66427
+ stopColor: "#2BCFA1"
66428
+ })]
66429
+ }), jsx("clipPath", {
66430
+ id: "clip0_ai_overlay",
66431
+ children: jsx("rect", {
66432
+ width: "188",
66433
+ height: "48",
66434
+ rx: "12",
66435
+ fill: "white"
66436
+ })
66437
+ })]
66438
+ })]
66439
+ })
66440
+ })]
66309
66441
  });
66310
66442
  }
66311
66443
 
@@ -66393,6 +66525,7 @@ function FloatingChatButton(_ref) {
66393
66525
  }
66394
66526
 
66395
66527
  function Chatbot(_ref) {
66528
+ var _useBreakpointValue;
66396
66529
  var apiBaseUrl = _ref.apiBaseUrl,
66397
66530
  apiKey = _ref.apiKey,
66398
66531
  _ref$buttonType = _ref.buttonType,
@@ -66423,10 +66556,15 @@ function Chatbot(_ref) {
66423
66556
  handleSendMessage = _useChatbot.handleSendMessage,
66424
66557
  handleRetryLastMessage = _useChatbot.handleRetryLastMessage,
66425
66558
  clearProcessingMessageId = _useChatbot.clearProcessingMessageId;
66559
+ var showIconOnly = (_useBreakpointValue = useBreakpointValue({
66560
+ base: true,
66561
+ md: false
66562
+ })) !== null && _useBreakpointValue !== void 0 ? _useBreakpointValue : false;
66426
66563
  return jsxs(Fragment, {
66427
66564
  children: [buttonType === "floating" ? jsx(FloatingChatButton, {
66428
66565
  onClick: onOpen
66429
66566
  }) : jsx(EmbeddedChatButton, {
66567
+ showIconOnly: showIconOnly,
66430
66568
  onClick: onOpen
66431
66569
  }), jsxs(ChatDrawer, {
66432
66570
  isOpen: isOpen,