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.js CHANGED
@@ -4750,31 +4750,59 @@ var useChatbot = function useChatbot(_ref) {
4750
4750
  };
4751
4751
  };
4752
4752
 
4753
- var _excluded$a = ["color"];
4754
- var SendSm = function SendSm(_ref) {
4753
+ var _excluded$b = ["color"];
4754
+ var SendMd = function SendMd(_ref) {
4755
4755
  var _ref$color = _ref.color,
4756
4756
  color = _ref$color === void 0 ? "black" : _ref$color,
4757
- props = _objectWithoutProperties(_ref, _excluded$a);
4757
+ props = _objectWithoutProperties(_ref, _excluded$b);
4758
4758
  return jsxRuntime.jsxs("svg", _objectSpread2(_objectSpread2({
4759
- width: "16",
4760
- height: "16",
4761
- viewBox: "0 0 16 16",
4759
+ width: "20",
4760
+ height: "20",
4761
+ viewBox: "0 0 20 20",
4762
4762
  fill: "none",
4763
4763
  xmlns: "http://www.w3.org/2000/svg"
4764
4764
  }, props), {}, {
4765
4765
  children: [jsxRuntime.jsx("path", {
4766
- 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",
4766
+ 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",
4767
4767
  stroke: color,
4768
+ strokeWidth: "1.5",
4768
4769
  "stroke-miterlimit": "10"
4769
4770
  }), jsxRuntime.jsx("path", {
4770
- d: "M4.66699 8H7.33366",
4771
+ d: "M5.83301 10H9.16634",
4771
4772
  stroke: color,
4773
+ strokeWidth: "1.5",
4772
4774
  "stroke-miterlimit": "10",
4773
4775
  strokeLinecap: "round"
4774
4776
  })]
4775
4777
  }));
4776
4778
  };
4777
4779
 
4780
+ var _excluded$a = ["color"];
4781
+ var LetterMd = function LetterMd(_ref) {
4782
+ var _ref$color = _ref.color,
4783
+ color = _ref$color === void 0 ? "black" : _ref$color,
4784
+ props = _objectWithoutProperties(_ref, _excluded$a);
4785
+ return jsxRuntime.jsxs("svg", _objectSpread2(_objectSpread2({
4786
+ width: "20",
4787
+ height: "20",
4788
+ viewBox: "0 0 20 20",
4789
+ fill: "none",
4790
+ xmlns: "http://www.w3.org/2000/svg"
4791
+ }, props), {}, {
4792
+ children: [jsxRuntime.jsx("path", {
4793
+ d: "M5.83301 7.5L9.99967 10.4167L14.1663 7.5",
4794
+ stroke: color,
4795
+ strokeWidth: "1.5",
4796
+ strokeLinecap: "round",
4797
+ strokeLinejoin: "round"
4798
+ }), jsxRuntime.jsx("path", {
4799
+ 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",
4800
+ stroke: color,
4801
+ strokeWidth: "1.5"
4802
+ })]
4803
+ }));
4804
+ };
4805
+
4778
4806
  function EmailCapture(_ref) {
4779
4807
  var onSubmit = _ref.onSubmit,
4780
4808
  _ref$isSubmitting = _ref.isSubmitting,
@@ -4808,7 +4836,9 @@ function EmailCapture(_ref) {
4808
4836
  border: "1px solid",
4809
4837
  borderColor: "#27272A",
4810
4838
  overflow: "hidden",
4811
- children: [jsxRuntime.jsx(Chakra.Input, {
4839
+ children: [jsxRuntime.jsx(LetterMd, {
4840
+ color: "#7B7B7B"
4841
+ }), jsxRuntime.jsx(Chakra.Input, {
4812
4842
  value: email,
4813
4843
  onChange: function onChange(e) {
4814
4844
  return setEmail(e.target.value);
@@ -4854,8 +4884,8 @@ function EmailCapture(_ref) {
4854
4884
  color: "#525252",
4855
4885
  cursor: "not-allowed"
4856
4886
  },
4857
- px: 2,
4858
- py: 1,
4887
+ px: 3,
4888
+ py: 2,
4859
4889
  borderRadius: "md",
4860
4890
  height: "auto",
4861
4891
  minHeight: "auto",
@@ -4897,6 +4927,8 @@ function SuggestionChips(_ref) {
4897
4927
  fontSize: "sm",
4898
4928
  fontWeight: "normal",
4899
4929
  lineHeight: "tight",
4930
+ _hover: "none",
4931
+ _active: "none",
4900
4932
  children: s.text
4901
4933
  }, s.id);
4902
4934
  })
@@ -4974,7 +5006,7 @@ function MessageInput(_ref) {
4974
5006
  onKeyDown: function onKeyDown(e) {
4975
5007
  return e.key === "Enter" && handleSend();
4976
5008
  },
4977
- placeholder: " Send a message",
5009
+ placeholder: "Send a message",
4978
5010
  bg: "transparent",
4979
5011
  color: "white",
4980
5012
  border: "none",
@@ -4996,7 +5028,6 @@ function MessageInput(_ref) {
4996
5028
  fontSize: "sm"
4997
5029
  })
4998
5030
  }), jsxRuntime.jsxs(Chakra.HStack, {
4999
- p: 2,
5000
5031
  align: "center",
5001
5032
  w: "full",
5002
5033
  children: [user.logoUrl && jsxRuntime.jsx(Chakra.HStack, {
@@ -5014,7 +5045,7 @@ function MessageInput(_ref) {
5014
5045
  onClick: handleSend,
5015
5046
  isDisabled: !input.trim() || isLoading,
5016
5047
  isLoading: isLoading,
5017
- size: "sm",
5048
+ size: "md",
5018
5049
  bg: !input.trim() || isLoading ? "#262626" : "#2BCFA1",
5019
5050
  _hover: {
5020
5051
  bg: !input.trim() || isLoading ? "#262626" : "#22B890"
@@ -5025,7 +5056,7 @@ function MessageInput(_ref) {
5025
5056
  },
5026
5057
  borderRadius: "lg",
5027
5058
  border: "none",
5028
- children: jsxRuntime.jsx(SendSm, {
5059
+ children: jsxRuntime.jsx(SendMd, {
5029
5060
  color: !input.trim() || isLoading ? "#525252" : "white"
5030
5061
  })
5031
5062
  })]
@@ -5044,13 +5075,9 @@ if (typeof document !== "undefined" && !document.getElementById("typing-indicato
5044
5075
  document.head.appendChild(styleElement);
5045
5076
  }
5046
5077
  var TypingIndicator = /*#__PURE__*/React.memo(function TypingIndicator(_ref) {
5047
- var isVisible = _ref.isVisible,
5048
- _ref$size = _ref.size,
5049
- size = _ref$size === void 0 ? "normal" : _ref$size,
5050
- _ref$state = _ref.state,
5051
- state = _ref$state === void 0 ? "typing" : _ref$state;
5078
+ var isVisible = _ref.isVisible;
5052
5079
  var getDotStyle = React.useMemo(function () {
5053
- return function (index, delay, small) {
5080
+ return function (index, delay) {
5054
5081
  var animationDelay = "".concat(index * 0.2 + delay * 0.5, "s");
5055
5082
  return {
5056
5083
  animation: "typingDotBounce 1.6s ease-in-out infinite",
@@ -5083,85 +5110,40 @@ var TypingIndicator = /*#__PURE__*/React.memo(function TypingIndicator(_ref) {
5083
5110
  };
5084
5111
  }, [isVisible]);
5085
5112
  if (!shouldRender) return null;
5086
- var isSmall = size === "small";
5087
- var dotSize = isSmall ? "6px" : "8px";
5088
- var smallDotSize = isSmall ? "5px" : "6px";
5089
- var containerPadding = isSmall ? "8px 12px" : "12px 16px";
5090
- var smallContainerPadding = isSmall ? "6px 10px" : "8px 12px";
5091
- var isCompleted = state === "completed";
5092
5113
  var TypingDots = React.useMemo(function () {
5093
5114
  return /*#__PURE__*/React.memo(function (_ref2) {
5094
5115
  var _ref2$delay = _ref2.delay,
5095
- delay = _ref2$delay === void 0 ? 0 : _ref2$delay,
5096
- _ref2$small = _ref2.small,
5097
- small = _ref2$small === void 0 ? false : _ref2$small;
5116
+ delay = _ref2$delay === void 0 ? 0 : _ref2$delay;
5098
5117
  return jsxRuntime.jsx(Chakra.HStack, {
5099
- gap: small ? "4px" : "6px",
5118
+ gap: "4px",
5100
5119
  justify: "center",
5101
5120
  children: [0, 1, 2].map(function (index) {
5102
5121
  return jsxRuntime.jsx(Chakra.Box, {
5103
- w: small ? smallDotSize : dotSize,
5104
- h: small ? smallDotSize : dotSize,
5122
+ boxSize: "8px",
5105
5123
  bg: "#2BCFA1",
5106
5124
  borderRadius: "full",
5107
- style: getDotStyle(index, delay, small)
5125
+ style: getDotStyle(index, delay)
5108
5126
  }, index);
5109
5127
  })
5110
5128
  });
5111
5129
  });
5112
- }, [getDotStyle, dotSize, smallDotSize]);
5113
- if (isCompleted) {
5114
- return jsxRuntime.jsx(Chakra.Box, {
5115
- alignSelf: "flex-start",
5116
- maxW: "80%",
5117
- mb: isSmall ? 2 : 4,
5118
- style: containerAnimationStyle,
5119
- children: jsxRuntime.jsx(Chakra.Box, {
5120
- bg: "rgba(43, 207, 161, 0.15)",
5121
- p: smallContainerPadding,
5122
- borderRadius: "16px",
5123
- w: "fit-content",
5124
- border: "1px solid rgba(43, 207, 161, 0.2)",
5125
- backdropFilter: "blur(10px)",
5126
- boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
5127
- children: jsxRuntime.jsx(TypingDots, {
5128
- delay: 0.1,
5129
- small: true
5130
- })
5131
- })
5132
- });
5133
- }
5130
+ }, [getDotStyle]);
5134
5131
  return jsxRuntime.jsx(Chakra.Box, {
5135
5132
  alignSelf: "flex-start",
5136
5133
  maxW: "80%",
5137
- mb: isSmall ? 2 : 4,
5134
+ mb: 2,
5138
5135
  style: containerAnimationStyle,
5139
- children: jsxRuntime.jsxs(Chakra.Box, {
5140
- display: "flex",
5141
- flexDirection: "column",
5142
- gap: 2,
5143
- children: [jsxRuntime.jsx(Chakra.Box, {
5144
- bg: "rgba(34, 197, 94, 0.2)",
5145
- p: containerPadding,
5146
- borderRadius: "20px",
5147
- w: "fit-content",
5148
- border: "1px solid rgba(34, 197, 94, 0.3)",
5149
- backdropFilter: "blur(10px)",
5150
- boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
5151
- children: jsxRuntime.jsx(TypingDots, {})
5152
- }), jsxRuntime.jsx(Chakra.Box, {
5153
- bg: "rgba(34, 197, 94, 0.2)",
5154
- p: smallContainerPadding,
5155
- borderRadius: "16px",
5156
- w: "fit-content",
5157
- border: "1px solid rgba(34, 197, 94, 0.3)",
5158
- backdropFilter: "blur(10px)",
5159
- boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
5160
- children: jsxRuntime.jsx(TypingDots, {
5161
- delay: 0.1,
5162
- small: true
5163
- })
5164
- })]
5136
+ children: jsxRuntime.jsx(Chakra.Box, {
5137
+ bg: "rgba(34, 197, 94, 0.2)",
5138
+ p: "10px 14px",
5139
+ borderRadius: "16px",
5140
+ w: "fit-content",
5141
+ border: "1px solid rgba(34, 197, 94, 0.3)",
5142
+ backdropFilter: "blur(10px)",
5143
+ boxShadow: "0 4px 12px rgba(0, 0, 0, 0.1)",
5144
+ children: jsxRuntime.jsx(TypingDots, {
5145
+ delay: 0.1
5146
+ })
5165
5147
  })
5166
5148
  });
5167
5149
  });
@@ -41645,38 +41627,36 @@ function GradualMessageDisplay(_ref) {
41645
41627
  flexDirection: "column",
41646
41628
  gap: 2,
41647
41629
  children: [(phase === "typing" || phase === "revealing") && jsxRuntime.jsx(TypingIndicator, {
41648
- isVisible: true,
41649
- size: "normal",
41650
- state: phase === "typing" ? "typing" : "completed"
41630
+ isVisible: true
41651
41631
  }), (phase === "revealing" || phase === "complete") && jsxRuntime.jsx(Chakra.Box, {
41652
41632
  position: "relative",
41653
41633
  borderRadius: "12px",
41654
41634
  _before: {
41655
41635
  content: '""',
41656
- position: 'absolute',
41636
+ position: "absolute",
41657
41637
  zIndex: -1,
41658
- width: 'calc(100% + 1px)',
41659
- height: 'calc(100% + 1px)',
41638
+ width: "calc(100% + 1px)",
41639
+ height: "calc(100% + 1px)",
41660
41640
  top: 0,
41661
41641
  left: 0,
41662
- borderRadius: '12px',
41663
- backgroundSize: '400% 400%',
41642
+ borderRadius: "12px",
41643
+ backgroundSize: "400% 400%",
41664
41644
  opacity: phase === "revealing" ? 1 : 0,
41665
- transition: 'opacity 0.3s ease'
41645
+ transition: "opacity 0.3s ease"
41666
41646
  },
41667
41647
  _after: {
41668
41648
  content: '""',
41669
- position: 'absolute',
41649
+ position: "absolute",
41670
41650
  zIndex: -1,
41671
- width: 'calc(100% + 1px)',
41672
- height: 'calc(100% + 1px)',
41651
+ width: "calc(100% + 1px)",
41652
+ height: "calc(100% + 1px)",
41673
41653
  top: 0,
41674
41654
  left: 0,
41675
- borderRadius: '12px',
41676
- backgroundSize: '400% 400%',
41655
+ borderRadius: "12px",
41656
+ backgroundSize: "400% 400%",
41677
41657
  opacity: phase === "revealing" ? 1 : 0,
41678
- transition: 'opacity 0.3s ease',
41679
- filter: 'blur(100px)'
41658
+ transition: "opacity 0.3s ease",
41659
+ filter: "blur(100px)"
41680
41660
  },
41681
41661
  children: jsxRuntime.jsx(Chakra.Box, {
41682
41662
  borderRadius: "11px",
@@ -65782,8 +65762,7 @@ function MessageList(_ref) {
65782
65762
  clearProcessingMessageId: clearProcessingMessageId
65783
65763
  }, message.id);
65784
65764
  }), isTyping && !currentlyDisplayingMessage && jsxRuntime.jsx(TypingIndicator, {
65785
- isVisible: true,
65786
- size: "normal"
65765
+ isVisible: true
65787
65766
  })]
65788
65767
  })
65789
65768
  })
@@ -65884,7 +65863,9 @@ function HelloPage(_ref) {
65884
65863
  var userName = _ref.userName,
65885
65864
  onStartChat = _ref.onStartChat,
65886
65865
  _ref$isStartingChat = _ref.isStartingChat,
65887
- isStartingChat = _ref$isStartingChat === void 0 ? false : _ref$isStartingChat;
65866
+ isStartingChat = _ref$isStartingChat === void 0 ? false : _ref$isStartingChat,
65867
+ LinkComponent = _ref.LinkComponent;
65868
+ var hasRouterLink = Boolean(LinkComponent);
65888
65869
  var navigationItems = [{
65889
65870
  label: "Documentation",
65890
65871
  href: "https://droplinked.gitbook.io/droplinked-store-front-help-center",
@@ -65893,10 +65874,6 @@ function HelloPage(_ref) {
65893
65874
  label: "Contact Us",
65894
65875
  href: "/contact-us",
65895
65876
  isExternal: false
65896
- }, {
65897
- label: "About Us",
65898
- href: "/about",
65899
- isExternal: false
65900
65877
  }, {
65901
65878
  label: "Changelog",
65902
65879
  href: "/analytics/changelog",
@@ -65910,114 +65887,142 @@ function HelloPage(_ref) {
65910
65887
  href: "https://www.youtube.com/watch?v=fuZLWeku6fw&list=PLwoJzeXHsBW6bAHmPz04RtWvpg_09-vqi",
65911
65888
  isExternal: true
65912
65889
  }];
65913
- return jsxRuntime.jsx(Chakra.Box, {
65890
+ return jsxRuntime.jsx(Chakra.VStack, {
65914
65891
  w: "full",
65915
- h: "100%",
65916
- overflowY: "auto",
65917
- overflowX: "hidden",
65918
- p: 4,
65919
- children: jsxRuntime.jsxs(Chakra.VStack, {
65920
- align: "stretch",
65921
- justify: "flex-end",
65922
- gap: 4,
65923
- height: "full",
65924
- children: [jsxRuntime.jsxs(Chakra.Flex, {
65925
- flexDirection: "column",
65926
- justifyContent: "flex-end",
65927
- flexShrink: 0,
65928
- paddingTop: "48px",
65929
- children: [jsxRuntime.jsx(Chakra.Text, {
65930
- color: "#2BCFA1",
65931
- fontSize: "3xl",
65932
- fontWeight: "bold",
65933
- lineHeight: "40px",
65934
- children: "Hi ".concat(userName ? userName : "", " \uD83D\uDC4B\uD83C\uDFFB")
65935
- }), jsxRuntime.jsx(Chakra.Text, {
65936
- color: "white",
65937
- fontSize: "3xl",
65938
- fontWeight: "bold",
65939
- lineHeight: "40px",
65940
- children: "How can I help?"
65941
- })]
65942
- }), jsxRuntime.jsxs(RuledGrid, {
65943
- columns: 1,
65944
- borderRadius: 16,
65945
- bg: "#222",
65946
- overflow: "hidden",
65947
- children: [jsxRuntime.jsxs(Chakra.VStack, {
65948
- align: "stretch",
65949
- gap: 3,
65950
- p: 4,
65951
- children: [jsxRuntime.jsx(Chakra.Box, {
65952
- p: 2.5,
65953
- w: "fit-content",
65954
- bg: "rgba(43, 207, 161, 0.1)",
65955
- border: "1px solid",
65956
- borderColor: "rgba(43, 207, 161, 0.1)",
65957
- borderRadius: "lg",
65958
- children: jsxRuntime.jsx(AIMd, {
65959
- color: "#2BCFA1"
65960
- })
65961
- }), jsxRuntime.jsxs(Chakra.VStack, {
65962
- gap: 0.5,
65892
+ h: "full",
65893
+ minH: 0,
65894
+ spacing: 0,
65895
+ flex: 1,
65896
+ children: jsxRuntime.jsx(Chakra.Box, {
65897
+ flex: 1,
65898
+ minH: 0,
65899
+ w: "full",
65900
+ overflowY: "auto",
65901
+ overflowX: "hidden",
65902
+ p: 4,
65903
+ css: {
65904
+ "&::-webkit-scrollbar": {
65905
+ width: "6px"
65906
+ },
65907
+ "&::-webkit-scrollbar-track": {
65908
+ background: "rgba(255, 255, 255, 0.1)",
65909
+ borderRadius: "3px"
65910
+ },
65911
+ "&::-webkit-scrollbar-thumb": {
65912
+ background: "rgba(255, 255, 255, 0.3)",
65913
+ borderRadius: "3px"
65914
+ },
65915
+ "&::-webkit-scrollbar-thumb:hover": {
65916
+ background: "rgba(255, 255, 255, 0.5)"
65917
+ },
65918
+ scrollBehavior: "smooth",
65919
+ WebkitOverflowScrolling: "touch"
65920
+ },
65921
+ children: jsxRuntime.jsxs(Chakra.VStack, {
65922
+ align: "stretch",
65923
+ justify: "flex-end",
65924
+ gap: 4,
65925
+ minH: "full",
65926
+ children: [jsxRuntime.jsxs(Chakra.Flex, {
65927
+ flexDirection: "column",
65928
+ justifyContent: "flex-end",
65929
+ flexShrink: 0,
65930
+ paddingTop: "48px",
65931
+ children: [jsxRuntime.jsx(Chakra.Text, {
65932
+ color: "#2BCFA1",
65933
+ fontSize: "3xl",
65934
+ fontWeight: "bold",
65935
+ lineHeight: "40px",
65936
+ children: "Hi ".concat(userName ? userName : "", " \uD83D\uDC4B\uD83C\uDFFB")
65937
+ }), jsxRuntime.jsx(Chakra.Text, {
65938
+ color: "white",
65939
+ fontSize: "3xl",
65940
+ fontWeight: "bold",
65941
+ lineHeight: "40px",
65942
+ children: "How can I help?"
65943
+ })]
65944
+ }), jsxRuntime.jsxs(RuledGrid, {
65945
+ columns: 1,
65946
+ borderRadius: 16,
65947
+ bg: "#222",
65948
+ overflow: "hidden",
65949
+ children: [jsxRuntime.jsxs(Chakra.VStack, {
65963
65950
  align: "stretch",
65964
- children: [jsxRuntime.jsx(Chakra.Text, {
65965
- color: "white",
65966
- fontSize: "base",
65967
- fontWeight: "medium",
65968
- lineHeight: "normal",
65969
- children: "AI Merchant Assistant"
65970
- }), jsxRuntime.jsx(Chakra.Text, {
65971
- color: "#737373",
65972
- fontSize: "sm",
65973
- fontWeight: "normal",
65974
- lineHeight: "tight",
65975
- children: "I can help with your shop setup, payment and more"
65951
+ gap: 3,
65952
+ p: 4,
65953
+ children: [jsxRuntime.jsx(Chakra.Box, {
65954
+ p: 2.5,
65955
+ w: "fit-content",
65956
+ bg: "rgba(43, 207, 161, 0.1)",
65957
+ border: "1px solid",
65958
+ borderColor: "rgba(43, 207, 161, 0.1)",
65959
+ borderRadius: "lg",
65960
+ children: jsxRuntime.jsx(AIMd, {
65961
+ color: "#2BCFA1"
65962
+ })
65963
+ }), jsxRuntime.jsxs(Chakra.VStack, {
65964
+ gap: 0.5,
65965
+ align: "stretch",
65966
+ children: [jsxRuntime.jsx(Chakra.Text, {
65967
+ color: "white",
65968
+ fontSize: "base",
65969
+ fontWeight: "medium",
65970
+ lineHeight: "normal",
65971
+ children: "AI Merchant Assistant"
65972
+ }), jsxRuntime.jsx(Chakra.Text, {
65973
+ color: "#737373",
65974
+ fontSize: "sm",
65975
+ fontWeight: "normal",
65976
+ lineHeight: "tight",
65977
+ children: "I can help with your shop setup, payment and more"
65978
+ })]
65976
65979
  })]
65977
- })]
65978
- }), jsxRuntime.jsx(Chakra.Button, {
65979
- w: "full",
65980
- padding: "10px 14px",
65981
- borderRadius: 0,
65982
- variant: "ghost",
65983
- _hover: {
65984
- bg: "rgba(43, 207, 161, 0.1)"
65985
- },
65986
- fontSize: 14,
65987
- fontWeight: 500,
65988
- color: "#2BCFA1",
65989
- onClick: onStartChat,
65990
- isLoading: isStartingChat,
65991
- isDisabled: isStartingChat,
65992
- _disabled: {
65993
- color: "#525252",
65994
- cursor: "not-allowed"
65995
- },
65996
- children: "Start Chat"
65997
- })]
65998
- }), jsxRuntime.jsx(RuledGrid, {
65999
- columns: 1,
66000
- borderRadius: 16,
66001
- bg: "#222",
66002
- children: navigationItems.map(function (item, index) {
66003
- return jsxRuntime.jsxs(Chakra.Link, {
66004
- display: "flex",
66005
- justifyContent: "space-between",
66006
- alignItems: "center",
66007
- gap: 4,
66008
- padding: "12px 16px",
65980
+ }), jsxRuntime.jsx(Chakra.Button, {
65981
+ w: "full",
65982
+ padding: "10px 14px",
65983
+ borderRadius: 0,
65984
+ variant: "ghost",
65985
+ _hover: {
65986
+ bg: "rgba(43, 207, 161, 0.1)"
65987
+ },
66009
65988
  fontSize: 14,
66010
65989
  fontWeight: 500,
66011
- color: "white",
66012
- textDecoration: "none",
66013
- href: item.href,
66014
- isExternal: item.isExternal,
66015
- children: [item.label, jsxRuntime.jsx(ExternalarrowMd, {
66016
- color: "white"
66017
- })]
66018
- }, index);
66019
- })
66020
- })]
65990
+ color: "#2BCFA1",
65991
+ onClick: onStartChat,
65992
+ isLoading: isStartingChat,
65993
+ isDisabled: isStartingChat,
65994
+ _disabled: {
65995
+ color: "#525252",
65996
+ cursor: "not-allowed"
65997
+ },
65998
+ children: "Start Chat"
65999
+ })]
66000
+ }), jsxRuntime.jsx(RuledGrid, {
66001
+ columns: 1,
66002
+ borderRadius: 16,
66003
+ bg: "#222",
66004
+ children: navigationItems.map(function (item, index) {
66005
+ return jsxRuntime.jsxs(Chakra.Link, {
66006
+ display: "flex",
66007
+ justifyContent: "space-between",
66008
+ alignItems: "center",
66009
+ gap: 4,
66010
+ padding: "12px 16px",
66011
+ fontSize: 14,
66012
+ fontWeight: 500,
66013
+ color: "white",
66014
+ textDecoration: "none",
66015
+ as: !item.isExternal && hasRouterLink ? LinkComponent : undefined,
66016
+ to: !item.isExternal && hasRouterLink ? item.href : undefined,
66017
+ href: item.isExternal || !hasRouterLink ? item.href : undefined,
66018
+ isExternal: item.isExternal,
66019
+ children: [item.label, jsxRuntime.jsx(ExternalarrowMd, {
66020
+ color: "white"
66021
+ })]
66022
+ }, index);
66023
+ })
66024
+ })]
66025
+ })
66021
66026
  })
66022
66027
  });
66023
66028
  }
@@ -66044,6 +66049,7 @@ function ChatDrawer(_ref) {
66044
66049
  flexDirection: "column",
66045
66050
  position: "relative",
66046
66051
  overflow: "hidden",
66052
+ minH: 0,
66047
66053
  maxW: {
66048
66054
  base: "100%",
66049
66055
  md: "420px"
@@ -66193,24 +66199,26 @@ var Tooltip = /*#__PURE__*/React__namespace.forwardRef(function Tooltip(_ref2, _
66193
66199
  children = _ref2.children,
66194
66200
  disabled = _ref2.disabled;
66195
66201
  _ref2.portalled;
66196
- var content = _ref2.content,
66197
- portalRef = _ref2.portalRef,
66198
- placement = _ref2.placement,
66202
+ var content = _ref2.content;
66203
+ _ref2.portalRef;
66204
+ var placement = _ref2.placement,
66199
66205
  rest = _objectWithoutProperties(_ref2, _excluded);
66200
66206
  if (disabled) return jsxRuntime.jsx(jsxRuntime.Fragment, {
66201
66207
  children: children
66202
66208
  });
66203
66209
  return jsxRuntime.jsx(Chakra.Tooltip, _objectSpread2(_objectSpread2({
66210
+ border: "1px solid",
66211
+ borderColor: "#292929",
66212
+ borderRadius: "6px",
66213
+ padding: "4px 16px",
66214
+ backgroundColor: "#1c1c1c",
66215
+ color: "white",
66216
+ placement: placement !== null && placement !== void 0 ? placement : "auto",
66204
66217
  label: content,
66205
66218
  hasArrow: !!showArrow,
66206
- portalProps: {
66207
- containerRef: portalRef
66208
- },
66209
- placement: placement
66219
+ shouldWrapChildren: true
66210
66220
  }, rest), {}, {
66211
- children: jsxRuntime.jsx("span", {
66212
- children: children
66213
- })
66221
+ children: children
66214
66222
  }));
66215
66223
  });
66216
66224
 
@@ -66453,6 +66461,9 @@ function Chatbot(_ref) {
66453
66461
  flex: 1,
66454
66462
  overflow: "hidden",
66455
66463
  p: 0,
66464
+ minH: 0,
66465
+ display: "flex",
66466
+ flexDirection: "column",
66456
66467
  children: currentView === "hello" ? jsxRuntime.jsx(HelloPage, {
66457
66468
  userName: user === null || user === void 0 ? void 0 : user.name,
66458
66469
  onStartChat: handleStartChat,