droplinked-chatbot-next 1.0.2 → 1.0.4

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
@@ -4730,31 +4730,59 @@ var useChatbot = function useChatbot(_ref) {
4730
4730
  };
4731
4731
  };
4732
4732
 
4733
- var _excluded$a = ["color"];
4734
- var SendSm = function SendSm(_ref) {
4733
+ var _excluded$b = ["color"];
4734
+ var SendMd = function SendMd(_ref) {
4735
4735
  var _ref$color = _ref.color,
4736
4736
  color = _ref$color === void 0 ? "black" : _ref$color,
4737
- props = _objectWithoutProperties(_ref, _excluded$a);
4737
+ props = _objectWithoutProperties(_ref, _excluded$b);
4738
4738
  return jsxs("svg", _objectSpread2(_objectSpread2({
4739
- width: "16",
4740
- height: "16",
4741
- viewBox: "0 0 16 16",
4739
+ width: "20",
4740
+ height: "20",
4741
+ viewBox: "0 0 20 20",
4742
4742
  fill: "none",
4743
4743
  xmlns: "http://www.w3.org/2000/svg"
4744
4744
  }, props), {}, {
4745
4745
  children: [jsx("path", {
4746
- d: "M4.29963 2.79051L12.7242 7.00511C12.9077 7.0989 13.0618 7.24144 13.1693 7.41707C13.2769 7.59258 13.3337 7.79437 13.3337 8.00007C13.3337 8.20588 13.2769 8.40756 13.1693 8.58319C13.0618 8.7587 12.9077 8.90124 12.7242 8.99503L4.29963 13.2096C4.08923 13.3176 3.84998 13.3563 3.61616 13.3203C3.38235 13.2842 3.16598 13.1752 2.99807 13.0089C2.83016 12.8426 2.71932 12.6275 2.68144 12.3945C2.64357 12.1614 2.6806 11.9223 2.78723 11.7116L4.40045 8.50314C4.47924 8.34708 4.52029 8.1748 4.52029 8.00007C4.52029 7.82534 4.47924 7.65306 4.40045 7.497L2.78723 4.28854C2.6806 4.07778 2.64357 3.83876 2.68144 3.60571C2.71932 3.37267 2.83016 3.15757 2.99807 2.99125C3.16598 2.82494 3.38235 2.71593 3.61616 2.67986C3.84998 2.64381 4.08923 2.68254 4.29963 2.79051Z",
4746
+ d: "M5.3738 3.48795L15.9045 8.7562C16.1339 8.87345 16.3265 9.05162 16.4609 9.27115C16.5953 9.49055 16.6663 9.74278 16.6663 9.99991C16.6663 10.2572 16.5953 10.5093 16.4609 10.7288C16.3265 10.9482 16.1339 11.1264 15.9045 11.2436L5.3738 16.5119C5.1108 16.6469 4.81174 16.6952 4.51947 16.6502C4.22721 16.6051 3.95674 16.4688 3.74686 16.2609C3.53697 16.0531 3.39842 15.7842 3.35107 15.4929C3.30372 15.2015 3.35002 14.9027 3.48331 14.6393L5.49983 10.6287C5.59832 10.4337 5.64963 10.2183 5.64963 9.99991C5.64963 9.78149 5.59832 9.56615 5.49983 9.37107L3.48331 5.36049C3.35002 5.09705 3.30372 4.79827 3.35107 4.50696C3.39842 4.21565 3.53697 3.94678 3.74686 3.73888C3.95674 3.53099 4.22721 3.39473 4.51947 3.34965C4.81174 3.30458 5.1108 3.35299 5.3738 3.48795Z",
4747
4747
  stroke: color,
4748
+ strokeWidth: "1.5",
4748
4749
  "stroke-miterlimit": "10"
4749
4750
  }), jsx("path", {
4750
- d: "M4.66699 8H7.33366",
4751
+ d: "M5.83301 10H9.16634",
4751
4752
  stroke: color,
4753
+ strokeWidth: "1.5",
4752
4754
  "stroke-miterlimit": "10",
4753
4755
  strokeLinecap: "round"
4754
4756
  })]
4755
4757
  }));
4756
4758
  };
4757
4759
 
4760
+ var _excluded$a = ["color"];
4761
+ var LetterMd = function LetterMd(_ref) {
4762
+ var _ref$color = _ref.color,
4763
+ color = _ref$color === void 0 ? "black" : _ref$color,
4764
+ props = _objectWithoutProperties(_ref, _excluded$a);
4765
+ return jsxs("svg", _objectSpread2(_objectSpread2({
4766
+ width: "20",
4767
+ height: "20",
4768
+ viewBox: "0 0 20 20",
4769
+ fill: "none",
4770
+ xmlns: "http://www.w3.org/2000/svg"
4771
+ }, props), {}, {
4772
+ children: [jsx("path", {
4773
+ d: "M5.83301 7.5L9.99967 10.4167L14.1663 7.5",
4774
+ stroke: color,
4775
+ strokeWidth: "1.5",
4776
+ strokeLinecap: "round",
4777
+ strokeLinejoin: "round"
4778
+ }), jsx("path", {
4779
+ d: "M1.66699 14.1667V5.83334C1.66699 4.91286 2.41318 4.16667 3.33366 4.16667H16.667C17.5875 4.16667 18.3337 4.91286 18.3337 5.83334V14.1667C18.3337 15.0872 17.5875 15.8333 16.667 15.8333H3.33366C2.41318 15.8333 1.66699 15.0872 1.66699 14.1667Z",
4780
+ stroke: color,
4781
+ strokeWidth: "1.5"
4782
+ })]
4783
+ }));
4784
+ };
4785
+
4758
4786
  function EmailCapture(_ref) {
4759
4787
  var onSubmit = _ref.onSubmit,
4760
4788
  _ref$isSubmitting = _ref.isSubmitting,
@@ -4788,7 +4816,9 @@ function EmailCapture(_ref) {
4788
4816
  border: "1px solid",
4789
4817
  borderColor: "#27272A",
4790
4818
  overflow: "hidden",
4791
- children: [jsx(Input, {
4819
+ children: [jsx(LetterMd, {
4820
+ color: "#7B7B7B"
4821
+ }), jsx(Input, {
4792
4822
  value: email,
4793
4823
  onChange: function onChange(e) {
4794
4824
  return setEmail(e.target.value);
@@ -4834,8 +4864,8 @@ function EmailCapture(_ref) {
4834
4864
  color: "#525252",
4835
4865
  cursor: "not-allowed"
4836
4866
  },
4837
- px: 2,
4838
- py: 1,
4867
+ px: 3,
4868
+ py: 2,
4839
4869
  borderRadius: "md",
4840
4870
  height: "auto",
4841
4871
  minHeight: "auto",
@@ -4877,6 +4907,8 @@ function SuggestionChips(_ref) {
4877
4907
  fontSize: "sm",
4878
4908
  fontWeight: "normal",
4879
4909
  lineHeight: "tight",
4910
+ _hover: "none",
4911
+ _active: "none",
4880
4912
  children: s.text
4881
4913
  }, s.id);
4882
4914
  })
@@ -4954,7 +4986,7 @@ function MessageInput(_ref) {
4954
4986
  onKeyDown: function onKeyDown(e) {
4955
4987
  return e.key === "Enter" && handleSend();
4956
4988
  },
4957
- placeholder: " Send a message",
4989
+ placeholder: "Send a message",
4958
4990
  bg: "transparent",
4959
4991
  color: "white",
4960
4992
  border: "none",
@@ -4976,7 +5008,6 @@ function MessageInput(_ref) {
4976
5008
  fontSize: "sm"
4977
5009
  })
4978
5010
  }), jsxs(HStack, {
4979
- p: 2,
4980
5011
  align: "center",
4981
5012
  w: "full",
4982
5013
  children: [user.logoUrl && jsx(HStack, {
@@ -4994,7 +5025,7 @@ function MessageInput(_ref) {
4994
5025
  onClick: handleSend,
4995
5026
  isDisabled: !input.trim() || isLoading,
4996
5027
  isLoading: isLoading,
4997
- size: "sm",
5028
+ size: "md",
4998
5029
  bg: !input.trim() || isLoading ? "#262626" : "#2BCFA1",
4999
5030
  _hover: {
5000
5031
  bg: !input.trim() || isLoading ? "#262626" : "#22B890"
@@ -5005,7 +5036,7 @@ function MessageInput(_ref) {
5005
5036
  },
5006
5037
  borderRadius: "lg",
5007
5038
  border: "none",
5008
- children: jsx(SendSm, {
5039
+ children: jsx(SendMd, {
5009
5040
  color: !input.trim() || isLoading ? "#525252" : "white"
5010
5041
  })
5011
5042
  })]
@@ -5024,13 +5055,9 @@ if (typeof document !== "undefined" && !document.getElementById("typing-indicato
5024
5055
  document.head.appendChild(styleElement);
5025
5056
  }
5026
5057
  var TypingIndicator = /*#__PURE__*/React__default.memo(function TypingIndicator(_ref) {
5027
- var isVisible = _ref.isVisible,
5028
- _ref$size = _ref.size,
5029
- size = _ref$size === void 0 ? "normal" : _ref$size,
5030
- _ref$state = _ref.state,
5031
- state = _ref$state === void 0 ? "typing" : _ref$state;
5058
+ var isVisible = _ref.isVisible;
5032
5059
  var getDotStyle = React__default.useMemo(function () {
5033
- return function (index, delay, small) {
5060
+ return function (index, delay) {
5034
5061
  var animationDelay = "".concat(index * 0.2 + delay * 0.5, "s");
5035
5062
  return {
5036
5063
  animation: "typingDotBounce 1.6s ease-in-out infinite",
@@ -5063,85 +5090,40 @@ var TypingIndicator = /*#__PURE__*/React__default.memo(function TypingIndicator(
5063
5090
  };
5064
5091
  }, [isVisible]);
5065
5092
  if (!shouldRender) return null;
5066
- var isSmall = size === "small";
5067
- var dotSize = isSmall ? "6px" : "8px";
5068
- var smallDotSize = isSmall ? "5px" : "6px";
5069
- var containerPadding = isSmall ? "8px 12px" : "12px 16px";
5070
- var smallContainerPadding = isSmall ? "6px 10px" : "8px 12px";
5071
- var isCompleted = state === "completed";
5072
5093
  var TypingDots = React__default.useMemo(function () {
5073
5094
  return /*#__PURE__*/React__default.memo(function (_ref2) {
5074
5095
  var _ref2$delay = _ref2.delay,
5075
- delay = _ref2$delay === void 0 ? 0 : _ref2$delay,
5076
- _ref2$small = _ref2.small,
5077
- small = _ref2$small === void 0 ? false : _ref2$small;
5096
+ delay = _ref2$delay === void 0 ? 0 : _ref2$delay;
5078
5097
  return jsx(HStack, {
5079
- gap: small ? "4px" : "6px",
5098
+ gap: "4px",
5080
5099
  justify: "center",
5081
5100
  children: [0, 1, 2].map(function (index) {
5082
5101
  return jsx(Box, {
5083
- w: small ? smallDotSize : dotSize,
5084
- h: small ? smallDotSize : dotSize,
5102
+ boxSize: "8px",
5085
5103
  bg: "#2BCFA1",
5086
5104
  borderRadius: "full",
5087
- style: getDotStyle(index, delay, small)
5105
+ style: getDotStyle(index, delay)
5088
5106
  }, index);
5089
5107
  })
5090
5108
  });
5091
5109
  });
5092
- }, [getDotStyle, dotSize, smallDotSize]);
5093
- if (isCompleted) {
5094
- return jsx(Box, {
5095
- alignSelf: "flex-start",
5096
- maxW: "80%",
5097
- mb: isSmall ? 2 : 4,
5098
- style: containerAnimationStyle,
5099
- children: jsx(Box, {
5100
- bg: "rgba(43, 207, 161, 0.15)",
5101
- p: smallContainerPadding,
5102
- borderRadius: "16px",
5103
- w: "fit-content",
5104
- border: "1px solid rgba(43, 207, 161, 0.2)",
5105
- backdropFilter: "blur(10px)",
5106
- boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
5107
- children: jsx(TypingDots, {
5108
- delay: 0.1,
5109
- small: true
5110
- })
5111
- })
5112
- });
5113
- }
5110
+ }, [getDotStyle]);
5114
5111
  return jsx(Box, {
5115
5112
  alignSelf: "flex-start",
5116
5113
  maxW: "80%",
5117
- mb: isSmall ? 2 : 4,
5114
+ mb: 2,
5118
5115
  style: containerAnimationStyle,
5119
- children: jsxs(Box, {
5120
- display: "flex",
5121
- flexDirection: "column",
5122
- gap: 2,
5123
- children: [jsx(Box, {
5124
- bg: "rgba(34, 197, 94, 0.2)",
5125
- p: containerPadding,
5126
- borderRadius: "20px",
5127
- w: "fit-content",
5128
- border: "1px solid rgba(34, 197, 94, 0.3)",
5129
- backdropFilter: "blur(10px)",
5130
- boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
5131
- children: jsx(TypingDots, {})
5132
- }), jsx(Box, {
5133
- bg: "rgba(34, 197, 94, 0.2)",
5134
- p: smallContainerPadding,
5135
- borderRadius: "16px",
5136
- w: "fit-content",
5137
- border: "1px solid rgba(34, 197, 94, 0.3)",
5138
- backdropFilter: "blur(10px)",
5139
- boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
5140
- children: jsx(TypingDots, {
5141
- delay: 0.1,
5142
- small: true
5143
- })
5144
- })]
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
+ })
5145
5127
  })
5146
5128
  });
5147
5129
  });
@@ -41625,38 +41607,36 @@ function GradualMessageDisplay(_ref) {
41625
41607
  flexDirection: "column",
41626
41608
  gap: 2,
41627
41609
  children: [(phase === "typing" || phase === "revealing") && jsx(TypingIndicator, {
41628
- isVisible: true,
41629
- size: "normal",
41630
- state: phase === "typing" ? "typing" : "completed"
41610
+ isVisible: true
41631
41611
  }), (phase === "revealing" || phase === "complete") && jsx(Box, {
41632
41612
  position: "relative",
41633
41613
  borderRadius: "12px",
41634
41614
  _before: {
41635
41615
  content: '""',
41636
- position: 'absolute',
41616
+ position: "absolute",
41637
41617
  zIndex: -1,
41638
- width: 'calc(100% + 1px)',
41639
- height: 'calc(100% + 1px)',
41618
+ width: "calc(100% + 1px)",
41619
+ height: "calc(100% + 1px)",
41640
41620
  top: 0,
41641
41621
  left: 0,
41642
- borderRadius: '12px',
41643
- backgroundSize: '400% 400%',
41622
+ borderRadius: "12px",
41623
+ backgroundSize: "400% 400%",
41644
41624
  opacity: phase === "revealing" ? 1 : 0,
41645
- transition: 'opacity 0.3s ease'
41625
+ transition: "opacity 0.3s ease"
41646
41626
  },
41647
41627
  _after: {
41648
41628
  content: '""',
41649
- position: 'absolute',
41629
+ position: "absolute",
41650
41630
  zIndex: -1,
41651
- width: 'calc(100% + 1px)',
41652
- height: 'calc(100% + 1px)',
41631
+ width: "calc(100% + 1px)",
41632
+ height: "calc(100% + 1px)",
41653
41633
  top: 0,
41654
41634
  left: 0,
41655
- borderRadius: '12px',
41656
- backgroundSize: '400% 400%',
41635
+ borderRadius: "12px",
41636
+ backgroundSize: "400% 400%",
41657
41637
  opacity: phase === "revealing" ? 1 : 0,
41658
- transition: 'opacity 0.3s ease',
41659
- filter: 'blur(100px)'
41638
+ transition: "opacity 0.3s ease",
41639
+ filter: "blur(100px)"
41660
41640
  },
41661
41641
  children: jsx(Box, {
41662
41642
  borderRadius: "11px",
@@ -65762,8 +65742,7 @@ function MessageList(_ref) {
65762
65742
  clearProcessingMessageId: clearProcessingMessageId
65763
65743
  }, message.id);
65764
65744
  }), isTyping && !currentlyDisplayingMessage && jsx(TypingIndicator, {
65765
- isVisible: true,
65766
- size: "normal"
65745
+ isVisible: true
65767
65746
  })]
65768
65747
  })
65769
65748
  })
@@ -65864,7 +65843,9 @@ function HelloPage(_ref) {
65864
65843
  var userName = _ref.userName,
65865
65844
  onStartChat = _ref.onStartChat,
65866
65845
  _ref$isStartingChat = _ref.isStartingChat,
65867
- isStartingChat = _ref$isStartingChat === void 0 ? false : _ref$isStartingChat;
65846
+ isStartingChat = _ref$isStartingChat === void 0 ? false : _ref$isStartingChat,
65847
+ LinkComponent = _ref.LinkComponent;
65848
+ var hasRouterLink = Boolean(LinkComponent);
65868
65849
  var navigationItems = [{
65869
65850
  label: "Documentation",
65870
65851
  href: "https://droplinked.gitbook.io/droplinked-store-front-help-center",
@@ -65873,10 +65854,6 @@ function HelloPage(_ref) {
65873
65854
  label: "Contact Us",
65874
65855
  href: "/contact-us",
65875
65856
  isExternal: false
65876
- }, {
65877
- label: "About Us",
65878
- href: "/about",
65879
- isExternal: false
65880
65857
  }, {
65881
65858
  label: "Changelog",
65882
65859
  href: "/analytics/changelog",
@@ -65890,114 +65867,142 @@ function HelloPage(_ref) {
65890
65867
  href: "https://www.youtube.com/watch?v=fuZLWeku6fw&list=PLwoJzeXHsBW6bAHmPz04RtWvpg_09-vqi",
65891
65868
  isExternal: true
65892
65869
  }];
65893
- return jsx(Box, {
65870
+ return jsx(VStack, {
65894
65871
  w: "full",
65895
- h: "100%",
65896
- overflowY: "auto",
65897
- overflowX: "hidden",
65898
- p: 4,
65899
- children: jsxs(VStack, {
65900
- align: "stretch",
65901
- justify: "flex-end",
65902
- gap: 4,
65903
- height: "full",
65904
- children: [jsxs(Flex, {
65905
- flexDirection: "column",
65906
- justifyContent: "flex-end",
65907
- flexShrink: 0,
65908
- paddingTop: "48px",
65909
- children: [jsx(Text, {
65910
- color: "#2BCFA1",
65911
- fontSize: "3xl",
65912
- fontWeight: "bold",
65913
- lineHeight: "40px",
65914
- children: "Hi ".concat(userName ? userName : "", " \uD83D\uDC4B\uD83C\uDFFB")
65915
- }), jsx(Text, {
65916
- color: "white",
65917
- fontSize: "3xl",
65918
- fontWeight: "bold",
65919
- lineHeight: "40px",
65920
- children: "How can I help?"
65921
- })]
65922
- }), jsxs(RuledGrid, {
65923
- columns: 1,
65924
- borderRadius: 16,
65925
- bg: "#222",
65926
- overflow: "hidden",
65927
- children: [jsxs(VStack, {
65928
- align: "stretch",
65929
- gap: 3,
65930
- p: 4,
65931
- children: [jsx(Box, {
65932
- p: 2.5,
65933
- w: "fit-content",
65934
- bg: "rgba(43, 207, 161, 0.1)",
65935
- border: "1px solid",
65936
- borderColor: "rgba(43, 207, 161, 0.1)",
65937
- borderRadius: "lg",
65938
- children: jsx(AIMd, {
65939
- color: "#2BCFA1"
65940
- })
65941
- }), jsxs(VStack, {
65942
- gap: 0.5,
65872
+ h: "full",
65873
+ minH: 0,
65874
+ spacing: 0,
65875
+ flex: 1,
65876
+ children: jsx(Box, {
65877
+ flex: 1,
65878
+ minH: 0,
65879
+ w: "full",
65880
+ overflowY: "auto",
65881
+ overflowX: "hidden",
65882
+ p: 4,
65883
+ css: {
65884
+ "&::-webkit-scrollbar": {
65885
+ width: "6px"
65886
+ },
65887
+ "&::-webkit-scrollbar-track": {
65888
+ background: "rgba(255, 255, 255, 0.1)",
65889
+ borderRadius: "3px"
65890
+ },
65891
+ "&::-webkit-scrollbar-thumb": {
65892
+ background: "rgba(255, 255, 255, 0.3)",
65893
+ borderRadius: "3px"
65894
+ },
65895
+ "&::-webkit-scrollbar-thumb:hover": {
65896
+ background: "rgba(255, 255, 255, 0.5)"
65897
+ },
65898
+ scrollBehavior: "smooth",
65899
+ WebkitOverflowScrolling: "touch"
65900
+ },
65901
+ children: jsxs(VStack, {
65902
+ align: "stretch",
65903
+ justify: "flex-end",
65904
+ gap: 4,
65905
+ minH: "full",
65906
+ children: [jsxs(Flex, {
65907
+ flexDirection: "column",
65908
+ justifyContent: "flex-end",
65909
+ flexShrink: 0,
65910
+ paddingTop: "48px",
65911
+ children: [jsx(Text, {
65912
+ color: "#2BCFA1",
65913
+ fontSize: "3xl",
65914
+ fontWeight: "bold",
65915
+ lineHeight: "40px",
65916
+ children: "Hi ".concat(userName ? userName : "", " \uD83D\uDC4B\uD83C\uDFFB")
65917
+ }), jsx(Text, {
65918
+ color: "white",
65919
+ fontSize: "3xl",
65920
+ fontWeight: "bold",
65921
+ lineHeight: "40px",
65922
+ children: "How can I help?"
65923
+ })]
65924
+ }), jsxs(RuledGrid, {
65925
+ columns: 1,
65926
+ borderRadius: 16,
65927
+ bg: "#222",
65928
+ overflow: "hidden",
65929
+ children: [jsxs(VStack, {
65943
65930
  align: "stretch",
65944
- children: [jsx(Text, {
65945
- color: "white",
65946
- fontSize: "base",
65947
- fontWeight: "medium",
65948
- lineHeight: "normal",
65949
- children: "AI Merchant Assistant"
65950
- }), jsx(Text, {
65951
- color: "#737373",
65952
- fontSize: "sm",
65953
- fontWeight: "normal",
65954
- lineHeight: "tight",
65955
- children: "I can help with your shop setup, payment and more"
65931
+ gap: 3,
65932
+ p: 4,
65933
+ children: [jsx(Box, {
65934
+ p: 2.5,
65935
+ w: "fit-content",
65936
+ bg: "rgba(43, 207, 161, 0.1)",
65937
+ border: "1px solid",
65938
+ borderColor: "rgba(43, 207, 161, 0.1)",
65939
+ borderRadius: "lg",
65940
+ children: jsx(AIMd, {
65941
+ color: "#2BCFA1"
65942
+ })
65943
+ }), jsxs(VStack, {
65944
+ gap: 0.5,
65945
+ align: "stretch",
65946
+ children: [jsx(Text, {
65947
+ color: "white",
65948
+ fontSize: "base",
65949
+ fontWeight: "medium",
65950
+ lineHeight: "normal",
65951
+ children: "AI Merchant Assistant"
65952
+ }), jsx(Text, {
65953
+ color: "#737373",
65954
+ fontSize: "sm",
65955
+ fontWeight: "normal",
65956
+ lineHeight: "tight",
65957
+ children: "I can help with your shop setup, payment and more"
65958
+ })]
65956
65959
  })]
65957
- })]
65958
- }), jsx(Button, {
65959
- w: "full",
65960
- padding: "10px 14px",
65961
- borderRadius: 0,
65962
- variant: "ghost",
65963
- _hover: {
65964
- bg: "rgba(43, 207, 161, 0.1)"
65965
- },
65966
- fontSize: 14,
65967
- fontWeight: 500,
65968
- color: "#2BCFA1",
65969
- onClick: onStartChat,
65970
- isLoading: isStartingChat,
65971
- isDisabled: isStartingChat,
65972
- _disabled: {
65973
- color: "#525252",
65974
- cursor: "not-allowed"
65975
- },
65976
- children: "Start Chat"
65977
- })]
65978
- }), jsx(RuledGrid, {
65979
- columns: 1,
65980
- borderRadius: 16,
65981
- bg: "#222",
65982
- children: navigationItems.map(function (item, index) {
65983
- return jsxs(Link, {
65984
- display: "flex",
65985
- justifyContent: "space-between",
65986
- alignItems: "center",
65987
- gap: 4,
65988
- padding: "12px 16px",
65960
+ }), jsx(Button, {
65961
+ w: "full",
65962
+ padding: "10px 14px",
65963
+ borderRadius: 0,
65964
+ variant: "ghost",
65965
+ _hover: {
65966
+ bg: "rgba(43, 207, 161, 0.1)"
65967
+ },
65989
65968
  fontSize: 14,
65990
65969
  fontWeight: 500,
65991
- color: "white",
65992
- textDecoration: "none",
65993
- href: item.href,
65994
- isExternal: item.isExternal,
65995
- children: [item.label, jsx(ExternalarrowMd, {
65996
- color: "white"
65997
- })]
65998
- }, index);
65999
- })
66000
- })]
65970
+ color: "#2BCFA1",
65971
+ onClick: onStartChat,
65972
+ isLoading: isStartingChat,
65973
+ isDisabled: isStartingChat,
65974
+ _disabled: {
65975
+ color: "#525252",
65976
+ cursor: "not-allowed"
65977
+ },
65978
+ children: "Start Chat"
65979
+ })]
65980
+ }), jsx(RuledGrid, {
65981
+ columns: 1,
65982
+ borderRadius: 16,
65983
+ bg: "#222",
65984
+ children: navigationItems.map(function (item, index) {
65985
+ return jsxs(Link, {
65986
+ display: "flex",
65987
+ justifyContent: "space-between",
65988
+ alignItems: "center",
65989
+ gap: 4,
65990
+ padding: "12px 16px",
65991
+ fontSize: 14,
65992
+ fontWeight: 500,
65993
+ color: "white",
65994
+ textDecoration: "none",
65995
+ as: !item.isExternal && hasRouterLink ? LinkComponent : undefined,
65996
+ to: !item.isExternal && hasRouterLink ? item.href : undefined,
65997
+ href: item.isExternal || !hasRouterLink ? item.href : undefined,
65998
+ isExternal: item.isExternal,
65999
+ children: [item.label, jsx(ExternalarrowMd, {
66000
+ color: "white"
66001
+ })]
66002
+ }, index);
66003
+ })
66004
+ })]
66005
+ })
66001
66006
  })
66002
66007
  });
66003
66008
  }
@@ -66024,6 +66029,7 @@ function ChatDrawer(_ref) {
66024
66029
  flexDirection: "column",
66025
66030
  position: "relative",
66026
66031
  overflow: "hidden",
66032
+ minH: 0,
66027
66033
  maxW: {
66028
66034
  base: "100%",
66029
66035
  md: "420px"
@@ -66173,24 +66179,26 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(_ref2, _ref) {
66173
66179
  children = _ref2.children,
66174
66180
  disabled = _ref2.disabled;
66175
66181
  _ref2.portalled;
66176
- var content = _ref2.content,
66177
- portalRef = _ref2.portalRef,
66178
- placement = _ref2.placement,
66182
+ var content = _ref2.content;
66183
+ _ref2.portalRef;
66184
+ var placement = _ref2.placement,
66179
66185
  rest = _objectWithoutProperties(_ref2, _excluded);
66180
66186
  if (disabled) return jsx(Fragment, {
66181
66187
  children: children
66182
66188
  });
66183
66189
  return jsx(Tooltip$1, _objectSpread2(_objectSpread2({
66190
+ border: "1px solid",
66191
+ borderColor: "#292929",
66192
+ borderRadius: "6px",
66193
+ padding: "4px 16px",
66194
+ backgroundColor: "#1c1c1c",
66195
+ color: "white",
66196
+ placement: placement !== null && placement !== void 0 ? placement : "auto",
66184
66197
  label: content,
66185
66198
  hasArrow: !!showArrow,
66186
- portalProps: {
66187
- containerRef: portalRef
66188
- },
66189
- placement: placement
66199
+ shouldWrapChildren: true
66190
66200
  }, rest), {}, {
66191
- children: jsx("span", {
66192
- children: children
66193
- })
66201
+ children: children
66194
66202
  }));
66195
66203
  });
66196
66204
 
@@ -66433,6 +66441,9 @@ function Chatbot(_ref) {
66433
66441
  flex: 1,
66434
66442
  overflow: "hidden",
66435
66443
  p: 0,
66444
+ minH: 0,
66445
+ display: "flex",
66446
+ flexDirection: "column",
66436
66447
  children: currentView === "hello" ? jsx(HelloPage, {
66437
66448
  userName: user === null || user === void 0 ? void 0 : user.name,
66438
66449
  onStartChat: handleStartChat,