@logosphere-ui/core 0.0.0-alpha.14 → 0.0.0-alpha.15
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/{button-BFq8AmDc.js → button-BqOMevro.js} +1 -1
- package/dist/{button-Bx870pUi.cjs → button-CDRccsk9.cjs} +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar-LMn1ZF3N.cjs +88 -0
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.js +1 -1
- package/dist/{card-D0OT4Kuq.js → card-CNoTUaJC.js} +1 -1
- package/dist/{card-BmW0sPDb.cjs → card-KiNHfEi2.cjs} +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/chatbot-CIk-82Bz.cjs +161 -0
- package/dist/{chatbot-Ddl3Txqv.js → chatbot-Dl-WLXP3.js} +110 -172
- package/dist/chatbot.cjs +1 -1
- package/dist/chatbot.js +2 -2
- package/dist/datepicker-CwDDA6np.cjs +85 -0
- package/dist/datepicker.cjs +1 -1
- package/dist/datepicker.js +2 -2
- package/dist/drawer-BvcPd5nz.cjs +25 -0
- package/dist/drawer-DVINJB4a.js +106 -0
- package/dist/drawer.cjs +1 -0
- package/dist/drawer.js +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +30 -28
- package/dist/index.umd.js +140 -137
- package/dist/left-menu.cjs +1 -1
- package/dist/left-menu.js +1 -1
- package/dist/{leftmenu-GsoBxkeJ.js → leftmenu-C-q1h_2U.js} +1 -1
- package/dist/{leftmenu-Bgqfmoe5.cjs → leftmenu-DBcncBN8.cjs} +1 -1
- package/dist/organisms/Calendar/calendar.d.ts +2 -2
- package/dist/organisms/Chatbot/chatbot.d.ts +1 -8
- package/dist/organisms/Chatbot/index.d.ts +1 -1
- package/dist/organisms/DatePicker/datepicker.d.ts +2 -2
- package/dist/organisms/Drawer/drawer.d.ts +29 -0
- package/dist/organisms/Drawer/index.d.ts +1 -0
- package/package.json +16 -1
- package/dist/calendar-DF3q_dcG.cjs +0 -88
- package/dist/chatbot-CBDEFak3.cjs +0 -183
- package/dist/datepicker-BLv_G9Yb.cjs +0 -85
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { unsafeCSS as f, css as v, LitElement as _, html as
|
|
2
|
-
import { property as d, state as
|
|
1
|
+
import { unsafeCSS as f, css as v, LitElement as _, html as a } from "lit";
|
|
2
|
+
import { property as d, state as c, query as b, customElement as y } from "lit/decorators.js";
|
|
3
3
|
import { unsafeHTML as w } from "lit/directives/unsafe-html.js";
|
|
4
4
|
import "./combobox-LBU6VHLi.js";
|
|
5
|
-
import "./button-
|
|
5
|
+
import "./button-BqOMevro.js";
|
|
6
6
|
import "./input-jmbvgWEq.js";
|
|
7
7
|
import "./ui-icon-Bys4HYSQ.js";
|
|
8
|
-
const x = ":host{display:block;z-index:9999}.chatbot{font-family:var(--font-family-base)}.chatbot__overlay{position:fixed;inset:0;background-color:#0003;z-index:var(--z-index-modal-backdrop)}.chatbot__launcher{position:fixed;z-index:var(--z-index-modal);display:flex;align-items:center;gap:var(--spacing-4);padding-left:var(--spacing-4);padding-right:var(--spacing-4);height:66px;color:#fff;border-radius:var(--radius-xl);cursor:pointer;box-shadow:var(--shadow-base);background-color:var(--color-body-bg);overflow:hidden;transition:box-shadow var(--transition-speed-fast) var(--transition-timing)}.chatbot__launcher:hover{box-shadow:var(--shadow-md)}.chatbot__launcher--draggable{cursor:move}.chatbot__launcher--hidden{visibility:hidden;width:72px;height:66px;justify-content:center;padding:0}.chatbot__launcher-icon{width:40px;height:34px;flex-shrink:0}.chatbot__launcher-text{display:flex;flex-direction:column}.chatbot__launcher-title{font-weight:var(--font-weight-semibold);font-size:var(--font-size-xl);margin:0;line-height:24px;white-space:nowrap;color:var(--color-body-text)}.chatbot__launcher-subtitle{font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);margin:0;line-height:20px;white-space:nowrap;color:var(--color-tertiary)}.chatbot__window{position:fixed;z-index:var(--z-index-modal);display:flex;flex-direction:column;box-shadow:var(--shadow-xl);border-radius:var(--radius-md);overflow:hidden;background-color:var(--color-body-bg)}.chatbot__window--hidden{display:none}.chatbot__window--fullscreen{inset:80px 50px;width:auto;height:auto}.chatbot__resize-top{position:absolute;top:0;left:0;right:0;height:8px;cursor:ns-resize;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-top:hover{background-color:#0000000d}.chatbot__resize-side{position:absolute;top:0;bottom:0;width:8px;cursor:ew-resize;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-side:hover{background-color:#0000000d}.chatbot__resize-side--left{left:0}.chatbot__resize-side--right{right:0}.chatbot__resize-corner{position:absolute;top:0;width:16px;height:16px;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-corner:hover{background-color:#0000001a}.chatbot__resize-corner--nwse{left:0;cursor:nwse-resize}.chatbot__resize-corner--nesw{right:0;cursor:nesw-resize}.chatbot__header{height:74px;display:flex;align-items:center;justify-content:space-between;padding-left:var(--spacing-5);padding-right:var(--spacing-4);gap:var(--spacing-4);flex-shrink:0;background-color:var(--color-body-bg);border-bottom:1px solid var(--color-border)}.chatbot__header-info{display:flex;align-items:center;gap:var(--spacing-4)}.chatbot__header-logo{width:50px;height:41px}.chatbot__header-title{font-weight:var(--font-weight-semibold);font-size:var(--font-size-xl);margin:0;line-height:24px;color:var(--color-body-text)}.chatbot__header-subtitle{font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);margin:0;line-height:20px;color:var(--color-tertiary)}.chatbot__header-actions{display:flex;align-items:center;gap:var(--spacing-2)}.chatbot__body{flex:1;display:flex;flex-direction:column;background-color:var(--color-body-bg);position:relative;overflow:hidden}.chatbot__product{padding:var(--spacing-3);padding-bottom:0;flex-shrink:0;margin:0 var(--spacing-3)}.chatbot__messages{flex:1;display:flex;flex-direction:column;gap:var(--spacing-3);margin-top:var(--spacing-4);padding:var(--spacing-4);overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}.chatbot__messages::-webkit-scrollbar{display:none}.
|
|
9
|
-
var z = Object.defineProperty, C = Object.getOwnPropertyDescriptor,
|
|
10
|
-
for (var
|
|
11
|
-
(h = t[
|
|
12
|
-
return i &&
|
|
8
|
+
const x = ":host{display:block;z-index:9999}.chatbot{font-family:var(--font-family-base)}.chatbot__overlay{position:fixed;inset:0;background-color:#0003;z-index:var(--z-index-modal-backdrop)}.chatbot__launcher{position:fixed;z-index:var(--z-index-modal);display:flex;align-items:center;gap:var(--spacing-4);padding-left:var(--spacing-4);padding-right:var(--spacing-4);height:66px;color:#fff;border-radius:var(--radius-xl);cursor:pointer;box-shadow:var(--shadow-base);background-color:var(--color-body-bg);overflow:hidden;transition:box-shadow var(--transition-speed-fast) var(--transition-timing)}.chatbot__launcher:hover{box-shadow:var(--shadow-md)}.chatbot__launcher--draggable{cursor:move}.chatbot__launcher--hidden{visibility:hidden;width:72px;height:66px;justify-content:center;padding:0}.chatbot__launcher-icon{width:40px;height:34px;flex-shrink:0}.chatbot__launcher-text{display:flex;flex-direction:column}.chatbot__launcher-title{font-weight:var(--font-weight-semibold);font-size:var(--font-size-xl);margin:0;line-height:24px;white-space:nowrap;color:var(--color-body-text)}.chatbot__launcher-subtitle{font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);margin:0;line-height:20px;white-space:nowrap;color:var(--color-tertiary)}.chatbot__window{position:fixed;z-index:var(--z-index-modal);display:flex;flex-direction:column;box-shadow:var(--shadow-xl);border-radius:var(--radius-md);overflow:hidden;background-color:var(--color-body-bg)}.chatbot__window--hidden{display:none}.chatbot__window--fullscreen{inset:80px 50px;width:auto;height:auto}.chatbot__resize-top{position:absolute;top:0;left:0;right:0;height:8px;cursor:ns-resize;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-top:hover{background-color:#0000000d}.chatbot__resize-side{position:absolute;top:0;bottom:0;width:8px;cursor:ew-resize;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-side:hover{background-color:#0000000d}.chatbot__resize-side--left{left:0}.chatbot__resize-side--right{right:0}.chatbot__resize-corner{position:absolute;top:0;width:16px;height:16px;z-index:50;transition:background-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__resize-corner:hover{background-color:#0000001a}.chatbot__resize-corner--nwse{left:0;cursor:nwse-resize}.chatbot__resize-corner--nesw{right:0;cursor:nesw-resize}.chatbot__header{height:74px;display:flex;align-items:center;justify-content:space-between;padding-left:var(--spacing-5);padding-right:var(--spacing-4);gap:var(--spacing-4);flex-shrink:0;background-color:var(--color-body-bg);border-bottom:1px solid var(--color-border)}.chatbot__header-info{display:flex;align-items:center;gap:var(--spacing-4)}.chatbot__header-logo{width:50px;height:41px}.chatbot__header-title{font-weight:var(--font-weight-semibold);font-size:var(--font-size-xl);margin:0;line-height:24px;color:var(--color-body-text)}.chatbot__header-subtitle{font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);margin:0;line-height:20px;color:var(--color-tertiary)}.chatbot__header-actions{display:flex;align-items:center;gap:var(--spacing-2)}.chatbot__body{flex:1;display:flex;flex-direction:column;background-color:var(--color-body-bg);position:relative;overflow:hidden}.chatbot__product{padding:var(--spacing-3);padding-bottom:0;flex-shrink:0;margin:0 var(--spacing-3)}.chatbot__messages{flex:1;display:flex;flex-direction:column;gap:var(--spacing-3);margin-top:var(--spacing-4);padding:var(--spacing-4);overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}.chatbot__messages::-webkit-scrollbar{display:none}.chatbot__message{display:flex}.chatbot__message--user{justify-content:flex-end}.chatbot__message--assistant,.chatbot__message--system{justify-content:flex-start}.chatbot__bubble{position:relative;color:var(--color-body-text);max-width:85%;border-radius:var(--radius-md);padding:var(--spacing-4);font-size:var(--font-size-sm);line-height:20px;font-weight:var(--font-weight-medium)}.chatbot__bubble--user{background-color:var(--color-primary);color:#fff;border-bottom-right-radius:0;border-top-right-radius:var(--radius-xl);border-top-left-radius:var(--radius-xl);border-bottom-left-radius:var(--radius-xl)}.chatbot__bubble--user a{color:#ffffffe6}.chatbot__bubble--assistant,.chatbot__bubble--system{background-color:var(--color-tertiary-bg);border-bottom-left-radius:0;border-top-right-radius:var(--radius-xl);border-top-left-radius:var(--radius-xl);border-bottom-right-radius:var(--radius-xl)}.chatbot__message-content p{margin:0}.chatbot__message-content ol{list-style-type:decimal;margin:0;padding-left:var(--spacing-5)}.chatbot__message-content ul{list-style-type:disc;margin:0;padding-left:var(--spacing-5)}.chatbot__message-content li{padding-left:var(--spacing-1)}.chatbot__message-content a{color:var(--color-primary);text-decoration:underline;transition:color var(--transition-speed-fast) var(--transition-timing)}.chatbot__message-content a:hover{color:var(--color-primary-hover)}.chatbot__feedback{display:flex;align-items:center;gap:var(--spacing-2);padding-top:var(--spacing-2)}.chatbot__typing-wrapper{display:flex;justify-content:flex-start}.chatbot__typing{background-color:var(--color-tertiary-bg);padding:var(--spacing-3);border-radius:var(--radius-xl);border-bottom-left-radius:0;display:inline-flex;align-items:center;gap:2px}.chatbot__typing-dot{display:inline-block;width:6px;height:6px;background-color:var(--color-gray-300);border-radius:var(--radius-full);animation:chatbot-typing 1.4s infinite ease-in-out both;margin:0 2px}.chatbot__typing-dot:nth-child(1){animation-delay:-.32s}.chatbot__typing-dot:nth-child(2){animation-delay:-.16s}@keyframes chatbot-typing{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.chatbot__input-area{padding:var(--spacing-4);padding-top:var(--spacing-2);padding-bottom:var(--spacing-1);background-color:var(--color-body-bg)}.chatbot__input-wrapper{position:relative;display:flex;align-items:center;gap:var(--spacing-2);background-color:var(--color-tertiary-bg);border-radius:var(--radius-md);padding:var(--spacing-2);border:1px solid transparent;transition:background-color var(--transition-speed-fast) var(--transition-timing),border-color var(--transition-speed-fast) var(--transition-timing)}.chatbot__input-wrapper:focus-within{background-color:var(--color-body-bg);border-color:var(--color-border)}.chatbot__input{flex:1;background:transparent;border:none;outline:none;font-family:var(--font-family-base);font-size:var(--font-size-sm);color:var(--color-body-text)}.chatbot__input::placeholder{color:var(--color-tertiary)}.chatbot__input:disabled{opacity:.5;cursor:not-allowed}.chatbot__footer{display:flex;align-items:center;justify-content:center;padding-bottom:var(--spacing-2)}.chatbot__footer-text{margin:0;padding:0;color:var(--color-secondary);font-size:var(--font-size-xs);font-family:var(--font-family-base)}";
|
|
9
|
+
var z = Object.defineProperty, C = Object.getOwnPropertyDescriptor, s = (t, e, n, i) => {
|
|
10
|
+
for (var r = i > 1 ? void 0 : i ? C(e, n) : e, l = t.length - 1, h; l >= 0; l--)
|
|
11
|
+
(h = t[l]) && (r = (i ? h(e, n, r) : h(r)) || r);
|
|
12
|
+
return i && r && z(e, n, r), r;
|
|
13
13
|
};
|
|
14
14
|
let o = class extends _ {
|
|
15
15
|
constructor() {
|
|
16
|
-
super(...arguments), this.returnUri = "", this.questionPrompt = "", this.minimizedIconOnly = !1, this.draggable = !1, this.resizable = !1, this.products = [], this.openInitially = !1, this.showFeedbackButtons = !1, this.open = !1, this.fullscreen = !1, this.messages = [], this.isLoading = !1, this.inputText = "", this.selectedProductId = "", this.windowWidth = 440, this.windowHeight = Math.min(700, window.innerHeight - 40), this.position = { right: 20, bottom: 20 }, this.isDragging = !1, this.screenWidth = window.innerWidth, this.
|
|
16
|
+
super(...arguments), this.returnUri = "", this.questionPrompt = "", this.minimizedIconOnly = !1, this.draggable = !1, this.resizable = !1, this.products = [], this.openInitially = !1, this.showFeedbackButtons = !1, this.open = !1, this.fullscreen = !1, this.messages = [], this.isLoading = !1, this.inputText = "", this.selectedProductId = "", this.windowWidth = 440, this.windowHeight = Math.min(700, window.innerHeight - 40), this.position = { right: 20, bottom: 20 }, this.isDragging = !1, this.screenWidth = window.innerWidth, this.dragStartPos = { x: 0, y: 0 }, this.initialPosition = { right: 0, bottom: 0 }, this.isResizing = !1, this.resizeDirection = "horizontal", this.resizeStartWidth = 0, this.resizeStartHeight = 0, this.onWindowResize = () => {
|
|
17
17
|
this.screenWidth = window.innerWidth;
|
|
18
18
|
const t = window.innerHeight - 40;
|
|
19
19
|
this.windowHeight > t && (this.windowHeight = t);
|
|
20
20
|
}, this.onToggle = () => {
|
|
21
|
-
this.open = !this.open, this.
|
|
21
|
+
this.open = !this.open, this.scrollToBottom();
|
|
22
22
|
}, this.onClose = () => {
|
|
23
23
|
this.open = !1, this.fullscreen = !1;
|
|
24
24
|
}, this.onToggleFullscreen = () => {
|
|
25
25
|
this.fullscreen = !this.fullscreen;
|
|
26
26
|
}, this.onMouseMove = (t) => {
|
|
27
27
|
if (this.isDragging) {
|
|
28
|
-
const e = this.dragStartPos.x - t.clientX,
|
|
28
|
+
const e = this.dragStartPos.x - t.clientX, n = this.dragStartPos.y - t.clientY, r = this.shadowRoot?.querySelector(".chatbot__launcher")?.getBoundingClientRect(), l = r?.width || 72, h = r?.height || 66;
|
|
29
29
|
this.position = {
|
|
30
|
-
right: Math.max(0, Math.min(window.innerWidth -
|
|
31
|
-
bottom: Math.max(0, Math.min(window.innerHeight - h, this.initialPosition.bottom +
|
|
30
|
+
right: Math.max(0, Math.min(window.innerWidth - l, this.initialPosition.right + e)),
|
|
31
|
+
bottom: Math.max(0, Math.min(window.innerHeight - h, this.initialPosition.bottom + n))
|
|
32
32
|
};
|
|
33
33
|
} else if (this.isResizing) {
|
|
34
|
-
const e = this.dragStartPos.x - t.clientX,
|
|
34
|
+
const e = this.dragStartPos.x - t.clientX, n = this.dragStartPos.y - t.clientY;
|
|
35
35
|
if (this.resizeDirection === "horizontal" || this.resizeDirection === "both") {
|
|
36
36
|
const i = this.position.right < this.screenWidth / 2;
|
|
37
37
|
this.windowWidth = Math.max(300, this.resizeStartWidth + (i ? e : -e));
|
|
38
38
|
}
|
|
39
|
-
(this.resizeDirection === "vertical" || this.resizeDirection === "both") && (this.windowHeight = Math.max(400, this.resizeStartHeight +
|
|
39
|
+
(this.resizeDirection === "vertical" || this.resizeDirection === "both") && (this.windowHeight = Math.max(400, this.resizeStartHeight + n));
|
|
40
40
|
}
|
|
41
41
|
}, this.onMouseUp = (t) => {
|
|
42
42
|
this.isDragging ? (this.isDragging = !1, window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("mouseup", this.onMouseUp), Math.hypot(t.clientX - this.dragStartPos.x, t.clientY - this.dragStartPos.y) < 5 && this.onToggle()) : this.isResizing && (this.isResizing = !1, window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("mouseup", this.onMouseUp));
|
|
@@ -45,19 +45,6 @@ let o = class extends _ {
|
|
|
45
45
|
}, this.onInput = (t) => {
|
|
46
46
|
const e = t.target;
|
|
47
47
|
this.inputText = e ? e.value : t.detail;
|
|
48
|
-
}, this.onChatScroll = () => {
|
|
49
|
-
const t = this.isNearBottom();
|
|
50
|
-
this.userAtBottom = t, t && (this.showScrollDown = !1);
|
|
51
|
-
}, this.onScrollToBottomClick = () => {
|
|
52
|
-
this.scrollToBottom(!0);
|
|
53
|
-
}, this.onRate = async (t, e) => {
|
|
54
|
-
if (!(!t.eventId || t.rating === e))
|
|
55
|
-
try {
|
|
56
|
-
await this.rateMessage(t.eventId, e), this.messages = this.messages.map(
|
|
57
|
-
(s) => s === t ? { ...s, rating: e } : s
|
|
58
|
-
);
|
|
59
|
-
} catch {
|
|
60
|
-
}
|
|
61
48
|
}, this.onCopyMessage = (t) => {
|
|
62
49
|
navigator.clipboard.writeText(t);
|
|
63
50
|
};
|
|
@@ -85,10 +72,10 @@ let o = class extends _ {
|
|
|
85
72
|
if (!t || this.products?.length <= 1) return;
|
|
86
73
|
const e = this.products.map((i) => ({ value: i.id, label: i.name }));
|
|
87
74
|
t.items = e;
|
|
88
|
-
const
|
|
89
|
-
if (
|
|
90
|
-
const i =
|
|
91
|
-
!this.products.some((
|
|
75
|
+
const n = t.selectedItems?.() || [];
|
|
76
|
+
if (n.length > 0) {
|
|
77
|
+
const i = n[0]?.value;
|
|
78
|
+
!this.products.some((l) => l.id === i) && t.setSelected && t.setSelected([]);
|
|
92
79
|
}
|
|
93
80
|
}
|
|
94
81
|
async onProductChange(t) {
|
|
@@ -106,9 +93,9 @@ let o = class extends _ {
|
|
|
106
93
|
async ensureToken(t = !1) {
|
|
107
94
|
const e = "logosphere_chatbot_token";
|
|
108
95
|
if (t && (this.assertionToken = void 0, localStorage.removeItem(e)), !t) {
|
|
109
|
-
const
|
|
110
|
-
if (
|
|
111
|
-
this.assertionToken =
|
|
96
|
+
const r = localStorage.getItem(e);
|
|
97
|
+
if (r) {
|
|
98
|
+
this.assertionToken = r;
|
|
112
99
|
return;
|
|
113
100
|
}
|
|
114
101
|
}
|
|
@@ -118,7 +105,7 @@ let o = class extends _ {
|
|
|
118
105
|
}
|
|
119
106
|
async postChat(t) {
|
|
120
107
|
await this.ensureToken();
|
|
121
|
-
const e = `${this.returnUri}/api/chat/completions`,
|
|
108
|
+
const e = `${this.returnUri}/api/chat/completions`, n = () => fetch(e, {
|
|
122
109
|
method: "POST",
|
|
123
110
|
headers: {
|
|
124
111
|
"Content-Type": "application/json",
|
|
@@ -127,8 +114,8 @@ let o = class extends _ {
|
|
|
127
114
|
},
|
|
128
115
|
body: JSON.stringify(t)
|
|
129
116
|
});
|
|
130
|
-
let i = await
|
|
131
|
-
if (i.status === 401 && (await this.ensureToken(!0), i = await
|
|
117
|
+
let i = await n();
|
|
118
|
+
if (i.status === 401 && (await this.ensureToken(!0), i = await n()), !i.ok) throw new Error(`HTTP ${i.status}`);
|
|
132
119
|
return i.json();
|
|
133
120
|
}
|
|
134
121
|
async initConversation() {
|
|
@@ -143,7 +130,7 @@ let o = class extends _ {
|
|
|
143
130
|
});
|
|
144
131
|
this.conversationId = t.Data.ConversationId;
|
|
145
132
|
const e = t.Data.Choices?.[0]?.Message?.Content;
|
|
146
|
-
e && this.addMessage(e, "assistant"
|
|
133
|
+
e && this.addMessage(e, "assistant");
|
|
147
134
|
} catch {
|
|
148
135
|
this.addMessage("Bir hata oluştu, lütfen tekrar deneyiniz.", "system");
|
|
149
136
|
} finally {
|
|
@@ -158,16 +145,16 @@ let o = class extends _ {
|
|
|
158
145
|
this.addMessage("Lütfen önce bir ürün seçiniz.", "system");
|
|
159
146
|
return;
|
|
160
147
|
}
|
|
161
|
-
this.addMessage(t, "user"), this.inputText = "", this.
|
|
148
|
+
this.addMessage(t, "user"), this.inputText = "", this.isLoading = !0;
|
|
162
149
|
try {
|
|
163
|
-
const
|
|
150
|
+
const n = (await this.postChat({
|
|
164
151
|
ChatCompletionType: "ConversationUpdate",
|
|
165
152
|
Content: t,
|
|
166
153
|
Context: this.selectedProductId,
|
|
167
154
|
ConversationId: this.conversationId,
|
|
168
155
|
QuestionPrompt: this.questionPrompt
|
|
169
|
-
})
|
|
170
|
-
this.addMessage(
|
|
156
|
+
})).Data?.Choices?.[0]?.Message?.Content;
|
|
157
|
+
this.addMessage(n || "Cevap alınamadı.", "assistant");
|
|
171
158
|
} catch {
|
|
172
159
|
this.addMessage("Bağlantı hatası.", "system");
|
|
173
160
|
} finally {
|
|
@@ -175,50 +162,29 @@ let o = class extends _ {
|
|
|
175
162
|
}
|
|
176
163
|
}
|
|
177
164
|
}
|
|
178
|
-
addMessage(t, e
|
|
179
|
-
this.messages = [...this.messages, { content: t, role: e, timestamp: Date.now()
|
|
180
|
-
}
|
|
181
|
-
isNearBottom(t = 50) {
|
|
182
|
-
const e = this.chatContainer;
|
|
183
|
-
return e ? e.scrollHeight - e.scrollTop - e.clientHeight <= t : !0;
|
|
165
|
+
addMessage(t, e) {
|
|
166
|
+
this.messages = [...this.messages, { content: t, role: e, timestamp: Date.now() }];
|
|
184
167
|
}
|
|
185
|
-
scrollToBottom(
|
|
186
|
-
if (!t && !this.userAtBottom) {
|
|
187
|
-
this.showScrollDown = !0;
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
168
|
+
scrollToBottom() {
|
|
190
169
|
setTimeout(() => {
|
|
191
|
-
this.chatContainer && (this.chatContainer.scrollTop = this.chatContainer.scrollHeight
|
|
170
|
+
this.chatContainer && (this.chatContainer.scrollTop = this.chatContainer.scrollHeight);
|
|
192
171
|
}, 0);
|
|
193
172
|
}
|
|
194
|
-
async rateMessage(t, e, s = null) {
|
|
195
|
-
await this.ensureToken();
|
|
196
|
-
const i = `${this.returnUri}/api/chat/completion/rate`;
|
|
197
|
-
await fetch(i, {
|
|
198
|
-
method: "POST",
|
|
199
|
-
headers: {
|
|
200
|
-
"Content-Type": "application/json",
|
|
201
|
-
client_assertion: this.assertionToken,
|
|
202
|
-
client_assertion_type: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
|
|
203
|
-
},
|
|
204
|
-
body: JSON.stringify({ EventId: t, Rate: e, Comment: s })
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
173
|
// ==================== CONTENT FORMATTER ====================
|
|
208
174
|
formatContent(t) {
|
|
209
175
|
if (!t) return "";
|
|
210
|
-
const
|
|
176
|
+
const n = t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").split(`
|
|
211
177
|
`);
|
|
212
|
-
let i = "",
|
|
213
|
-
for (const h of
|
|
178
|
+
let i = "", r = !1, l = "";
|
|
179
|
+
for (const h of n) {
|
|
214
180
|
const m = h.trim() === "", p = h.match(/^\s*\d+\.\s+(.*)/), g = h.match(/^\s*[-*]\s+(.*)/);
|
|
215
181
|
if (p || g) {
|
|
216
182
|
const u = p ? "ol" : "ul";
|
|
217
|
-
(!
|
|
183
|
+
(!r || l !== u) && (r && (i += `</${l}>`), i += `<${u}>`, r = !0, l = u), i += `<li>${p ? p[1] : g[1]}</li>`;
|
|
218
184
|
} else
|
|
219
|
-
m ?
|
|
185
|
+
m ? r || (i += "<br>") : (r && (i += `</${l}>`, r = !1, l = ""), i += `<p>${h}</p>`);
|
|
220
186
|
}
|
|
221
|
-
return
|
|
187
|
+
return r && (i += `</${l}>`), i.replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>").replace(/\*(.*?)\*/g, "<em>$1</em>").replace(
|
|
222
188
|
/\[([^\]]+)\]\(([^)]+)\)/g,
|
|
223
189
|
'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'
|
|
224
190
|
);
|
|
@@ -226,7 +192,7 @@ let o = class extends _ {
|
|
|
226
192
|
// ==================== RENDER ====================
|
|
227
193
|
render() {
|
|
228
194
|
const t = this.position.right < this.screenWidth / 2;
|
|
229
|
-
return
|
|
195
|
+
return a`
|
|
230
196
|
<div class="chatbot">
|
|
231
197
|
${this.renderOverlay()}
|
|
232
198
|
${this.renderLauncher()}
|
|
@@ -235,7 +201,7 @@ let o = class extends _ {
|
|
|
235
201
|
`;
|
|
236
202
|
}
|
|
237
203
|
renderOverlay() {
|
|
238
|
-
return this.open || this.fullscreen ?
|
|
204
|
+
return this.open || this.fullscreen ? a`<div class="chatbot__overlay" @click=${this.onToggle}></div>` : "";
|
|
239
205
|
}
|
|
240
206
|
renderLauncher() {
|
|
241
207
|
const t = [
|
|
@@ -243,7 +209,7 @@ let o = class extends _ {
|
|
|
243
209
|
this.draggable ? "chatbot__launcher--draggable" : "",
|
|
244
210
|
this.open ? "chatbot__launcher--hidden" : ""
|
|
245
211
|
].filter(Boolean).join(" ");
|
|
246
|
-
return
|
|
212
|
+
return a`
|
|
247
213
|
<div
|
|
248
214
|
class="${t}"
|
|
249
215
|
style="right: ${this.position.right}px; bottom: ${this.position.bottom}px;"
|
|
@@ -252,7 +218,7 @@ let o = class extends _ {
|
|
|
252
218
|
aria-expanded=${this.open ? "true" : "false"}
|
|
253
219
|
>
|
|
254
220
|
<img class="chatbot__launcher-icon" src="${o.ICONS.launcher}" alt="chatbot" />
|
|
255
|
-
${!this.open && !this.minimizedIconOnly ?
|
|
221
|
+
${!this.open && !this.minimizedIconOnly ? a`
|
|
256
222
|
<div class="chatbot__launcher-text">
|
|
257
223
|
<p class="chatbot__launcher-title">Logo</p>
|
|
258
224
|
<p class="chatbot__launcher-subtitle">Dijital Danışman</p>
|
|
@@ -266,9 +232,9 @@ let o = class extends _ {
|
|
|
266
232
|
"chatbot__window",
|
|
267
233
|
this.open ? "" : "chatbot__window--hidden",
|
|
268
234
|
this.fullscreen ? "chatbot__window--fullscreen" : ""
|
|
269
|
-
].filter(Boolean).join(" "),
|
|
270
|
-
return
|
|
271
|
-
<div class="${e}" style="${
|
|
235
|
+
].filter(Boolean).join(" "), n = this.fullscreen ? "" : `bottom: 20px; height: ${this.windowHeight}px; width: ${this.windowWidth}px; ${t ? "right: 20px;" : "left: 20px;"}`;
|
|
236
|
+
return a`
|
|
237
|
+
<div class="${e}" style="${n}">
|
|
272
238
|
${this.renderResizeHandles(t)}
|
|
273
239
|
${this.renderHeader()}
|
|
274
240
|
<div class="chatbot__body">
|
|
@@ -280,7 +246,7 @@ let o = class extends _ {
|
|
|
280
246
|
`;
|
|
281
247
|
}
|
|
282
248
|
renderResizeHandles(t) {
|
|
283
|
-
return this.fullscreen || !this.resizable ? "" :
|
|
249
|
+
return this.fullscreen || !this.resizable ? "" : a`
|
|
284
250
|
<div class="chatbot__resize-top"
|
|
285
251
|
@mousedown=${(e) => this.startResize(e, "vertical")}></div>
|
|
286
252
|
<div class="chatbot__resize-side ${t ? "chatbot__resize-side--left" : "chatbot__resize-side--right"}"
|
|
@@ -290,7 +256,7 @@ let o = class extends _ {
|
|
|
290
256
|
`;
|
|
291
257
|
}
|
|
292
258
|
renderHeader() {
|
|
293
|
-
return
|
|
259
|
+
return a`
|
|
294
260
|
<div class="chatbot__header">
|
|
295
261
|
<div class="chatbot__header-info">
|
|
296
262
|
<img class="chatbot__header-logo" alt="logo" src="${o.ICONS.launcher}" />
|
|
@@ -303,7 +269,7 @@ let o = class extends _ {
|
|
|
303
269
|
<logosphere-button
|
|
304
270
|
iconOnly="true"
|
|
305
271
|
size="sm"
|
|
306
|
-
variant="
|
|
272
|
+
variant="text"
|
|
307
273
|
theme="--color-light-rgb"
|
|
308
274
|
title=${this.fullscreen ? "Küçült" : "Tam Ekran"}
|
|
309
275
|
@click=${this.onToggleFullscreen}
|
|
@@ -314,7 +280,7 @@ let o = class extends _ {
|
|
|
314
280
|
iconOnly="true"
|
|
315
281
|
size="sm"
|
|
316
282
|
variant="text"
|
|
317
|
-
theme="
|
|
283
|
+
theme="--color-light"
|
|
318
284
|
title="Kapat"
|
|
319
285
|
@click=${this.onClose}
|
|
320
286
|
>
|
|
@@ -325,9 +291,9 @@ let o = class extends _ {
|
|
|
325
291
|
`;
|
|
326
292
|
}
|
|
327
293
|
renderProductSelector() {
|
|
328
|
-
return
|
|
329
|
-
<div class="
|
|
330
|
-
${this.products.length > 1 ?
|
|
294
|
+
return a`
|
|
295
|
+
<div class="p-3 pb-0 flex-shrink-0 ml-[12px] mr-[12px]">
|
|
296
|
+
${this.products.length > 1 ? a`
|
|
331
297
|
<logosphere-combobox
|
|
332
298
|
id="product"
|
|
333
299
|
.items=${this.products.map((t) => ({ value: t.id, label: t.name }))}
|
|
@@ -336,7 +302,7 @@ let o = class extends _ {
|
|
|
336
302
|
placeholder="Ürün seçiniz"
|
|
337
303
|
@selected=${this.onProductChange}
|
|
338
304
|
></logosphere-combobox>
|
|
339
|
-
` :
|
|
305
|
+
` : a`
|
|
340
306
|
<input
|
|
341
307
|
id="product"
|
|
342
308
|
placeholder="Ürün seçiniz"
|
|
@@ -349,17 +315,10 @@ let o = class extends _ {
|
|
|
349
315
|
`;
|
|
350
316
|
}
|
|
351
317
|
renderChatArea() {
|
|
352
|
-
return
|
|
353
|
-
<div class="chatbot__messages
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
${this.isLoading ? this.renderTypingIndicator() : ""}
|
|
357
|
-
</div>
|
|
358
|
-
${this.showScrollDown ? n`
|
|
359
|
-
<button class="chatbot__scroll-down" @click=${this.onScrollToBottomClick} title="Aşağı kaydır">
|
|
360
|
-
<ui-icon name="uil-angle-down" size="20"></ui-icon>
|
|
361
|
-
</button>
|
|
362
|
-
` : ""}
|
|
318
|
+
return a`
|
|
319
|
+
<div id="chat-container" class="chatbot__messages">
|
|
320
|
+
${this.messages.map((t) => this.renderMessage(t))}
|
|
321
|
+
${this.isLoading ? this.renderTypingIndicator() : ""}
|
|
363
322
|
</div>
|
|
364
323
|
`;
|
|
365
324
|
}
|
|
@@ -368,55 +327,40 @@ let o = class extends _ {
|
|
|
368
327
|
"chatbot__bubble",
|
|
369
328
|
`chatbot__bubble--${t.role}`
|
|
370
329
|
].join(" ");
|
|
371
|
-
return
|
|
330
|
+
return a`
|
|
372
331
|
<div class="chatbot__message chatbot__message--${t.role}">
|
|
373
332
|
<div class="${e}">
|
|
374
333
|
<div class="chatbot__message-content">
|
|
375
334
|
${w(this.formatContent(t.content))}
|
|
376
335
|
</div>
|
|
336
|
+
${this.showFeedbackButtons && t.role === "assistant" ? this.renderFeedbackButtons(t) : ""}
|
|
377
337
|
</div>
|
|
378
|
-
${this.showFeedbackButtons && t.role === "assistant" && !t.isWelcome ? this.renderFeedbackButtons(t) : ""}
|
|
379
338
|
</div>
|
|
380
339
|
`;
|
|
381
340
|
}
|
|
382
341
|
renderFeedbackButtons(t) {
|
|
383
|
-
return
|
|
342
|
+
return a`
|
|
384
343
|
<div class="chatbot__feedback">
|
|
385
344
|
<logosphere-button
|
|
386
345
|
@click=${() => this.onCopyMessage(t.content)}
|
|
387
346
|
title="Kopyala"
|
|
388
347
|
iconOnly="true"
|
|
389
348
|
size="sm"
|
|
390
|
-
|
|
391
|
-
theme="secondary"
|
|
349
|
+
theme="--color-light-rgb"
|
|
392
350
|
>
|
|
393
|
-
<ui-icon name="uil-copy" size="
|
|
351
|
+
<ui-icon name="uil-copy" size="14"></ui-icon>
|
|
394
352
|
</logosphere-button>
|
|
395
|
-
<logosphere-button
|
|
396
|
-
|
|
397
|
-
iconOnly="true"
|
|
398
|
-
size="sm"
|
|
399
|
-
variant="text"
|
|
400
|
-
theme=${t.rating === 5 ? "primary" : "secondary"}
|
|
401
|
-
@click=${() => this.onRate(t, 5)}
|
|
402
|
-
>
|
|
403
|
-
<ui-icon name="uil-thumbs-up" size="16"></ui-icon>
|
|
353
|
+
<logosphere-button title="Like" iconOnly="true" size="sm" theme="--color-light-rgb">
|
|
354
|
+
<ui-icon name="uil-thumbs-up" size="14"></ui-icon>
|
|
404
355
|
</logosphere-button>
|
|
405
|
-
<logosphere-button
|
|
406
|
-
|
|
407
|
-
iconOnly="true"
|
|
408
|
-
size="sm"
|
|
409
|
-
variant="text"
|
|
410
|
-
theme=${t.rating === 1 ? "primary" : "secondary"}
|
|
411
|
-
@click=${() => this.onRate(t, 1)}
|
|
412
|
-
>
|
|
413
|
-
<ui-icon name="uil-thumbs-down" size="16"></ui-icon>
|
|
356
|
+
<logosphere-button title="Dislike" iconOnly="true" size="sm" theme="--color-light-rgb">
|
|
357
|
+
<ui-icon name="uil-thumbs-down" size="14"></ui-icon>
|
|
414
358
|
</logosphere-button>
|
|
415
359
|
</div>
|
|
416
360
|
`;
|
|
417
361
|
}
|
|
418
362
|
renderTypingIndicator() {
|
|
419
|
-
return
|
|
363
|
+
return a`
|
|
420
364
|
<div class="chatbot__typing-wrapper">
|
|
421
365
|
<div class="chatbot__typing">
|
|
422
366
|
<span class="chatbot__typing-dot"></span>
|
|
@@ -427,7 +371,7 @@ let o = class extends _ {
|
|
|
427
371
|
`;
|
|
428
372
|
}
|
|
429
373
|
renderInputArea() {
|
|
430
|
-
return
|
|
374
|
+
return a`
|
|
431
375
|
<div class="chatbot__input-area">
|
|
432
376
|
<div class="chatbot__input-wrapper">
|
|
433
377
|
<input
|
|
@@ -441,13 +385,13 @@ let o = class extends _ {
|
|
|
441
385
|
<logosphere-button
|
|
442
386
|
iconOnly="true"
|
|
443
387
|
size="sm"
|
|
444
|
-
variant="
|
|
445
|
-
theme="
|
|
388
|
+
variant="text"
|
|
389
|
+
theme="--color-light"
|
|
446
390
|
title="Gönder"
|
|
447
391
|
@click=${this.sendMessage}
|
|
448
392
|
?disabled=${!this.selectedProductId || !this.inputText.trim()}
|
|
449
393
|
>
|
|
450
|
-
<ui-icon name="uil-arrow-circle-right" size="
|
|
394
|
+
<ui-icon name="uil-arrow-circle-right" size="20"></ui-icon>
|
|
451
395
|
</logosphere-button>
|
|
452
396
|
</div>
|
|
453
397
|
</div>
|
|
@@ -461,86 +405,80 @@ o.styles = [v`${f(x)}`];
|
|
|
461
405
|
o.ICONS = {
|
|
462
406
|
launcher: "data:image/svg+xml,%3Csvg%20width%3D%2251%22%20height%3D%2242%22%20viewBox%3D%220%200%2051%2042%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M38.457%200C40.0338%200%2041.542%200.293293%2042.9302%200.8283L49.15%206.07675C50.2611%207.93912%2050.8994%2010.1162%2050.8994%2012.4424V23.084C50.8994%2024.4858%2050.6676%2025.8334%2050.2402%2027.0907L43.1534%2034.6096C41.7043%2035.2006%2040.1187%2035.5264%2038.457%2035.5264H30.7605L38.5805%2027.2296C40.814%2027.1643%2042.6045%2025.3332%2042.6045%2023.084V12.4424C42.6045%2010.1518%2040.7476%208.29492%2038.457%208.29492H12.4424C10.1518%208.29492%208.29492%2010.1518%208.29492%2012.4424V23.084C8.29492%2025.3746%2010.1518%2027.2314%2012.4424%2027.2314H33.5078L20.4487%2041.0866C17.7992%2042.5379%2014.3381%2040.2741%2014.7842%2036.7803C14.8402%2036.3421%2014.9629%2035.9194%2015.1416%2035.5264H12.4424C10.9217%2035.5264%209.46472%2035.2536%208.11774%2034.7542L0.610679%2026.945C0.214298%2025.7295%200%2024.4318%200%2023.084V12.4424C0%2010.8011%200.317794%209.23402%200.895207%207.79935L7.12424%201.19058C8.73679%200.427072%2010.5397%200%2012.4424%200H38.457ZM23.1357%2017.7881C23.1357%2015.4815%2021.2656%2013.6113%2018.959%2013.6113C16.6525%2013.6114%2014.7822%2015.4815%2014.7822%2017.7881C14.7824%2020.0945%2016.6526%2021.9638%2018.959%2021.9639C21.2655%2021.9639%2023.1356%2020.0945%2023.1357%2017.7881ZM36.2344%2017.7881C36.2344%2015.4815%2034.3642%2013.6113%2032.0576%2013.6113C29.7511%2013.6114%2027.8809%2015.4815%2027.8809%2017.7881C27.881%2020.0945%2029.7512%2021.9638%2032.0576%2021.9639C34.3641%2021.9639%2036.2342%2020.0945%2036.2344%2017.7881Z%22%20fill%3D%22url(%23paint0_linear_97_4585)%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22paint0_linear_97_4585%22%20x1%3D%2231.662%22%20y1%3D%224.88016%22%20x2%3D%2214.4119%22%20y2%3D%2237.9167%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23F22727%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23CA0D0D%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"
|
|
463
407
|
};
|
|
464
|
-
|
|
408
|
+
s([
|
|
465
409
|
d({ type: String, attribute: "return-uri" })
|
|
466
410
|
], o.prototype, "returnUri", 2);
|
|
467
|
-
|
|
411
|
+
s([
|
|
468
412
|
d({ type: String, attribute: "question-prompt" })
|
|
469
413
|
], o.prototype, "questionPrompt", 2);
|
|
470
|
-
|
|
414
|
+
s([
|
|
471
415
|
d({ type: Boolean, attribute: "minimized-icon-only" })
|
|
472
416
|
], o.prototype, "minimizedIconOnly", 2);
|
|
473
|
-
|
|
417
|
+
s([
|
|
474
418
|
d({ type: Boolean, attribute: "draggable" })
|
|
475
419
|
], o.prototype, "draggable", 2);
|
|
476
|
-
|
|
420
|
+
s([
|
|
477
421
|
d({ type: Boolean, attribute: "resizable" })
|
|
478
422
|
], o.prototype, "resizable", 2);
|
|
479
|
-
|
|
423
|
+
s([
|
|
480
424
|
d({
|
|
481
425
|
type: Array,
|
|
482
426
|
hasChanged: (t, e) => t === e ? !1 : !e || !t || t.length !== e.length ? !0 : JSON.stringify(t) !== JSON.stringify(e)
|
|
483
427
|
}),
|
|
484
428
|
d({ type: Array })
|
|
485
429
|
], o.prototype, "products", 2);
|
|
486
|
-
|
|
430
|
+
s([
|
|
487
431
|
d({ type: Boolean, attribute: "open-initially" })
|
|
488
432
|
], o.prototype, "openInitially", 2);
|
|
489
|
-
|
|
433
|
+
s([
|
|
490
434
|
d({ type: Boolean, attribute: "show-feedback-buttons" })
|
|
491
435
|
], o.prototype, "showFeedbackButtons", 2);
|
|
492
|
-
|
|
493
|
-
|
|
436
|
+
s([
|
|
437
|
+
c()
|
|
494
438
|
], o.prototype, "open", 2);
|
|
495
|
-
|
|
496
|
-
|
|
439
|
+
s([
|
|
440
|
+
c()
|
|
497
441
|
], o.prototype, "fullscreen", 2);
|
|
498
|
-
|
|
499
|
-
|
|
442
|
+
s([
|
|
443
|
+
c()
|
|
500
444
|
], o.prototype, "messages", 2);
|
|
501
|
-
|
|
502
|
-
|
|
445
|
+
s([
|
|
446
|
+
c()
|
|
503
447
|
], o.prototype, "conversationId", 2);
|
|
504
|
-
|
|
505
|
-
|
|
448
|
+
s([
|
|
449
|
+
c()
|
|
506
450
|
], o.prototype, "assertionToken", 2);
|
|
507
|
-
|
|
508
|
-
|
|
451
|
+
s([
|
|
452
|
+
c()
|
|
509
453
|
], o.prototype, "isLoading", 2);
|
|
510
|
-
|
|
511
|
-
|
|
454
|
+
s([
|
|
455
|
+
c()
|
|
512
456
|
], o.prototype, "inputText", 2);
|
|
513
|
-
|
|
514
|
-
|
|
457
|
+
s([
|
|
458
|
+
c()
|
|
515
459
|
], o.prototype, "selectedProductId", 2);
|
|
516
|
-
|
|
517
|
-
|
|
460
|
+
s([
|
|
461
|
+
c()
|
|
518
462
|
], o.prototype, "windowWidth", 2);
|
|
519
|
-
|
|
520
|
-
|
|
463
|
+
s([
|
|
464
|
+
c()
|
|
521
465
|
], o.prototype, "windowHeight", 2);
|
|
522
|
-
|
|
523
|
-
|
|
466
|
+
s([
|
|
467
|
+
c()
|
|
524
468
|
], o.prototype, "position", 2);
|
|
525
|
-
|
|
526
|
-
|
|
469
|
+
s([
|
|
470
|
+
c()
|
|
527
471
|
], o.prototype, "isDragging", 2);
|
|
528
|
-
|
|
529
|
-
|
|
472
|
+
s([
|
|
473
|
+
c()
|
|
530
474
|
], o.prototype, "screenWidth", 2);
|
|
531
|
-
|
|
532
|
-
l()
|
|
533
|
-
], o.prototype, "userAtBottom", 2);
|
|
534
|
-
r([
|
|
535
|
-
l()
|
|
536
|
-
], o.prototype, "showScrollDown", 2);
|
|
537
|
-
r([
|
|
475
|
+
s([
|
|
538
476
|
b("#chat-container")
|
|
539
477
|
], o.prototype, "chatContainer", 2);
|
|
540
|
-
|
|
478
|
+
s([
|
|
541
479
|
b("#product")
|
|
542
480
|
], o.prototype, "productEl", 2);
|
|
543
|
-
o =
|
|
481
|
+
o = s([
|
|
544
482
|
y("logosphere-chatbot")
|
|
545
483
|
], o);
|
|
546
484
|
export {
|
package/dist/chatbot.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chatbot-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chatbot-CIk-82Bz.cjs");Object.defineProperty(exports,"LogosphereChatBot",{enumerable:!0,get:()=>e.LogosphereChatBot});
|
package/dist/chatbot.js
CHANGED