@2uinc/frontend-component-xpert-chatbot 1.40.6-beta.5 → 1.40.6-beta.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/lib/index.min.js +67 -57
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
|
@@ -4215,63 +4215,73 @@ function Ni({
|
|
|
4215
4215
|
120
|
|
4216
4216
|
)}px`);
|
|
4217
4217
|
};
|
|
4218
|
-
return /* @__PURE__ */ _.jsxs(
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4218
|
+
return /* @__PURE__ */ _.jsxs(
|
|
4219
|
+
"div",
|
|
4220
|
+
{
|
|
4221
|
+
className: "xpert-chatbot-popup__input--group",
|
|
4222
|
+
style: {
|
|
4223
|
+
margin: n,
|
|
4224
|
+
border: `2px solid ${s}`,
|
|
4225
|
+
borderRadius: "1rem"
|
|
4226
|
+
},
|
|
4227
|
+
children: [
|
|
4228
|
+
/* @__PURE__ */ _.jsx(
|
|
4229
|
+
"textarea",
|
|
4230
|
+
{
|
|
4231
|
+
"data-testid": "ConversationInput",
|
|
4232
|
+
disabled: F,
|
|
4233
|
+
value: g,
|
|
4234
|
+
ref: r,
|
|
4235
|
+
onInput: w,
|
|
4236
|
+
onChange: P,
|
|
4237
|
+
placeholder: "Write a message",
|
|
4238
|
+
cols: "5",
|
|
4239
|
+
rows: "1",
|
|
4240
|
+
maxLength: u?.input?.maxLength ?? 5e3,
|
|
4241
|
+
onKeyDown: x,
|
|
4242
|
+
style: {
|
|
4243
|
+
margin: "0",
|
|
4244
|
+
boxSizing: "border-box",
|
|
4245
|
+
fontFamily: "inherit",
|
|
4246
|
+
fontSize: "1rem",
|
|
4247
|
+
// required to avoid IOS mobile scaling when input is focused
|
|
4248
|
+
fontWeight: "300",
|
|
4249
|
+
lineHeight: "1.56rem",
|
|
4250
|
+
minHeight: "3.25rem",
|
|
4251
|
+
padding: "12.5px 45px 12.5px 12.5px",
|
|
4252
|
+
resize: "none",
|
|
4253
|
+
width: "100%",
|
|
4254
|
+
border: `2px solid ${s}`
|
|
4255
|
+
}
|
|
4256
|
+
}
|
|
4257
|
+
),
|
|
4258
|
+
T && c || p || m ? /* @__PURE__ */ _.jsx(
|
|
4259
|
+
"button",
|
|
4260
|
+
{
|
|
4261
|
+
"data-testid": "Stop",
|
|
4262
|
+
className: "xpert-chatbot-popup__input--stop-btn",
|
|
4263
|
+
onClick: (V) => {
|
|
4264
|
+
V.preventDefault(), l();
|
|
4265
|
+
},
|
|
4266
|
+
"aria-label": "Stop streaming",
|
|
4267
|
+
children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:stop", style: { fontSize: "1.75rem" } })
|
|
4268
|
+
}
|
|
4269
|
+
) : /* @__PURE__ */ _.jsx(
|
|
4270
|
+
"button",
|
|
4271
|
+
{
|
|
4272
|
+
"data-testid": "Send",
|
|
4273
|
+
disabled: F,
|
|
4274
|
+
className: "xpert-chatbot-popup__input--send-btn",
|
|
4275
|
+
onClick: (V) => {
|
|
4276
|
+
V.preventDefault(), t(g), X();
|
|
4277
|
+
},
|
|
4278
|
+
"aria-label": "Send message",
|
|
4279
|
+
children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
|
|
4280
|
+
}
|
|
4281
|
+
)
|
|
4282
|
+
]
|
|
4283
|
+
}
|
|
4284
|
+
);
|
|
4275
4285
|
}
|
|
4276
4286
|
Ni.propTypes = {
|
|
4277
4287
|
containerStyle: A.shape(),
|