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/assets/icons/Action/Send/SendMd.d.ts +2 -0
- package/dist/assets/icons/system/Letter/LetterMd.d.ts +2 -0
- package/dist/components/SmartLink.d.ts +9 -0
- package/dist/components/TypingIndicator.d.ts +0 -2
- package/dist/index.esm.js +230 -219
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +230 -219
- package/dist/index.js.map +1 -1
- package/dist/views/HelloPage.d.ts +2 -1
- package/package.json +10 -3
package/dist/index.js
CHANGED
|
@@ -4750,31 +4750,59 @@ var useChatbot = function useChatbot(_ref) {
|
|
|
4750
4750
|
};
|
|
4751
4751
|
};
|
|
4752
4752
|
|
|
4753
|
-
var _excluded$
|
|
4754
|
-
var
|
|
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$
|
|
4757
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
4758
4758
|
return jsxRuntime.jsxs("svg", _objectSpread2(_objectSpread2({
|
|
4759
|
-
width: "
|
|
4760
|
-
height: "
|
|
4761
|
-
viewBox: "0 0
|
|
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: "
|
|
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: "
|
|
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(
|
|
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:
|
|
4858
|
-
py:
|
|
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: "
|
|
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: "
|
|
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(
|
|
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
|
|
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:
|
|
5118
|
+
gap: "4px",
|
|
5100
5119
|
justify: "center",
|
|
5101
5120
|
children: [0, 1, 2].map(function (index) {
|
|
5102
5121
|
return jsxRuntime.jsx(Chakra.Box, {
|
|
5103
|
-
|
|
5104
|
-
h: small ? smallDotSize : dotSize,
|
|
5122
|
+
boxSize: "8px",
|
|
5105
5123
|
bg: "#2BCFA1",
|
|
5106
5124
|
borderRadius: "full",
|
|
5107
|
-
style: getDotStyle(index, delay
|
|
5125
|
+
style: getDotStyle(index, delay)
|
|
5108
5126
|
}, index);
|
|
5109
5127
|
})
|
|
5110
5128
|
});
|
|
5111
5129
|
});
|
|
5112
|
-
}, [getDotStyle
|
|
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:
|
|
5134
|
+
mb: 2,
|
|
5138
5135
|
style: containerAnimationStyle,
|
|
5139
|
-
children: jsxRuntime.
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
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:
|
|
41636
|
+
position: "absolute",
|
|
41657
41637
|
zIndex: -1,
|
|
41658
|
-
width:
|
|
41659
|
-
height:
|
|
41638
|
+
width: "calc(100% + 1px)",
|
|
41639
|
+
height: "calc(100% + 1px)",
|
|
41660
41640
|
top: 0,
|
|
41661
41641
|
left: 0,
|
|
41662
|
-
borderRadius:
|
|
41663
|
-
backgroundSize:
|
|
41642
|
+
borderRadius: "12px",
|
|
41643
|
+
backgroundSize: "400% 400%",
|
|
41664
41644
|
opacity: phase === "revealing" ? 1 : 0,
|
|
41665
|
-
transition:
|
|
41645
|
+
transition: "opacity 0.3s ease"
|
|
41666
41646
|
},
|
|
41667
41647
|
_after: {
|
|
41668
41648
|
content: '""',
|
|
41669
|
-
position:
|
|
41649
|
+
position: "absolute",
|
|
41670
41650
|
zIndex: -1,
|
|
41671
|
-
width:
|
|
41672
|
-
height:
|
|
41651
|
+
width: "calc(100% + 1px)",
|
|
41652
|
+
height: "calc(100% + 1px)",
|
|
41673
41653
|
top: 0,
|
|
41674
41654
|
left: 0,
|
|
41675
|
-
borderRadius:
|
|
41676
|
-
backgroundSize:
|
|
41655
|
+
borderRadius: "12px",
|
|
41656
|
+
backgroundSize: "400% 400%",
|
|
41677
41657
|
opacity: phase === "revealing" ? 1 : 0,
|
|
41678
|
-
transition:
|
|
41679
|
-
filter:
|
|
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.
|
|
65890
|
+
return jsxRuntime.jsx(Chakra.VStack, {
|
|
65914
65891
|
w: "full",
|
|
65915
|
-
h: "
|
|
65916
|
-
|
|
65917
|
-
|
|
65918
|
-
|
|
65919
|
-
children: jsxRuntime.
|
|
65920
|
-
|
|
65921
|
-
|
|
65922
|
-
|
|
65923
|
-
|
|
65924
|
-
|
|
65925
|
-
|
|
65926
|
-
|
|
65927
|
-
|
|
65928
|
-
|
|
65929
|
-
|
|
65930
|
-
|
|
65931
|
-
|
|
65932
|
-
|
|
65933
|
-
|
|
65934
|
-
|
|
65935
|
-
|
|
65936
|
-
|
|
65937
|
-
|
|
65938
|
-
|
|
65939
|
-
|
|
65940
|
-
|
|
65941
|
-
|
|
65942
|
-
|
|
65943
|
-
|
|
65944
|
-
|
|
65945
|
-
|
|
65946
|
-
|
|
65947
|
-
|
|
65948
|
-
|
|
65949
|
-
|
|
65950
|
-
|
|
65951
|
-
|
|
65952
|
-
|
|
65953
|
-
|
|
65954
|
-
|
|
65955
|
-
|
|
65956
|
-
|
|
65957
|
-
|
|
65958
|
-
|
|
65959
|
-
|
|
65960
|
-
|
|
65961
|
-
|
|
65962
|
-
|
|
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
|
-
|
|
65965
|
-
|
|
65966
|
-
|
|
65967
|
-
|
|
65968
|
-
|
|
65969
|
-
|
|
65970
|
-
|
|
65971
|
-
|
|
65972
|
-
|
|
65973
|
-
|
|
65974
|
-
|
|
65975
|
-
|
|
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
|
-
|
|
65979
|
-
|
|
65980
|
-
|
|
65981
|
-
|
|
65982
|
-
|
|
65983
|
-
|
|
65984
|
-
|
|
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: "
|
|
66012
|
-
|
|
66013
|
-
|
|
66014
|
-
|
|
66015
|
-
|
|
66016
|
-
color: "
|
|
66017
|
-
|
|
66018
|
-
|
|
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
|
-
|
|
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
|
-
|
|
66207
|
-
containerRef: portalRef
|
|
66208
|
-
},
|
|
66209
|
-
placement: placement
|
|
66219
|
+
shouldWrapChildren: true
|
|
66210
66220
|
}, rest), {}, {
|
|
66211
|
-
children:
|
|
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,
|