@logosphere-ui/core 0.0.0-alpha.3 → 0.0.0-alpha.30
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/AGENTS.md +1118 -0
- package/dist/AGENTS.md +1118 -0
- package/dist/atoms/Badge/badge.d.ts +1 -1
- package/dist/atoms/FormField/formfield.d.ts +10 -0
- package/dist/badge-BD_MRIBd.js +72 -0
- package/dist/badge-BV2hTvrI.cjs +13 -0
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{breadcrumb-B-4yqoJZ.js → breadcrumb-BB61Xt0s.js} +3 -3
- package/dist/breadcrumb.js +1 -1
- package/dist/button-DRZ4sG4T.cjs +10 -0
- package/dist/button-Uu9oaieg.js +58 -0
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar-CBJ4mtlE.js +652 -0
- package/dist/calendar-Coc9E6lD.cjs +88 -0
- package/dist/calendar.cjs +1 -0
- package/dist/calendar.js +4 -0
- package/dist/card-BD8FkSTi.cjs +43 -0
- package/dist/{card-CUhlTJyJ.js → card-CAAhjIjf.js} +26 -25
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/chatbot-BUYrJbTR.cjs +183 -0
- package/dist/chatbot-Cb2ByNkE.js +564 -0
- package/dist/chatbot.cjs +1 -1
- package/dist/chatbot.js +2 -2
- package/dist/{checkbox-7Rb3WKGx.js → checkbox-g6kl2jGR.js} +4 -4
- package/dist/checkbox.js +1 -1
- package/dist/combobox-G4TVTGS7.js +387 -0
- package/dist/combobox-kdjsT5eX.cjs +107 -0
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.js +1 -1
- package/dist/datepicker-Cf3gLMsu.cjs +85 -0
- package/dist/datepicker-n5dZbuCD.js +375 -0
- package/dist/datepicker.cjs +1 -1
- package/dist/datepicker.js +2 -2
- package/dist/{download-manager-A4fOxGWJ.js → download-manager-BPg-6Qfg.js} +4 -4
- package/dist/download-manager-DDeTYRPs.cjs +97 -0
- package/dist/download-manager.cjs +1 -1
- package/dist/download-manager.js +1 -1
- package/dist/drawer-CViKfr6O.js +114 -0
- package/dist/drawer-CjM-vX41.cjs +32 -0
- package/dist/drawer.cjs +1 -0
- package/dist/drawer.js +4 -0
- package/dist/formfield-CRcyUMvQ.cjs +33 -0
- package/dist/formfield-O327HYt0.js +154 -0
- package/dist/formfield.cjs +1 -1
- package/dist/formfield.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +43 -28
- package/dist/index.umd.js +1029 -512
- package/dist/input-BJtn_iTC.js +257 -0
- package/dist/input-DPTTu8ZR.cjs +59 -0
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/left-menu.cjs +1 -0
- package/dist/left-menu.js +5 -0
- package/dist/leftmenu-DpES_nr1.js +301 -0
- package/dist/leftmenu-RcrjiF7g.cjs +83 -0
- package/dist/modal-CsEaHz0h.cjs +84 -0
- package/dist/modal-DHzMgFVY.js +250 -0
- package/dist/modal.cjs +1 -1
- package/dist/modal.js +1 -1
- package/dist/molecules/Input/input.d.ts +7 -1
- package/dist/molecules/Pagination/index.d.ts +1 -0
- package/dist/molecules/Pagination/pagination.d.ts +60 -0
- package/dist/molecules/Popover/popover.d.ts +1 -0
- package/dist/molecules/Textarea/text-area.d.ts +5 -2
- package/dist/molecules/TimePicker/index.d.ts +2 -0
- package/dist/molecules/TimePicker/timepicker.d.ts +62 -0
- package/dist/organisms/Calendar/calendar.d.ts +54 -0
- package/dist/organisms/Calendar/index.d.ts +1 -0
- package/dist/organisms/Calendar/shared.d.ts +9 -0
- package/dist/organisms/Chatbot/chatbot.d.ts +10 -1
- package/dist/organisms/Chatbot/index.d.ts +1 -1
- package/dist/organisms/Combobox/combobox.d.ts +19 -0
- package/dist/organisms/DatePicker/datepicker.d.ts +33 -33
- package/dist/organisms/Drawer/drawer.d.ts +30 -0
- package/dist/organisms/Drawer/index.d.ts +1 -0
- package/dist/organisms/LeftMenu/index.d.ts +2 -0
- package/dist/organisms/LeftMenu/leftmenu-item.d.ts +14 -0
- package/dist/organisms/LeftMenu/leftmenu.d.ts +45 -0
- package/dist/organisms/Modal/modal.d.ts +29 -4
- package/dist/organisms/Toast/index.d.ts +2 -0
- package/dist/organisms/Toast/toast-container.d.ts +42 -0
- package/dist/organisms/Toast/toast.d.ts +48 -0
- package/dist/organisms/TreeMenu/index.d.ts +1 -0
- package/dist/organisms/TreeMenu/tree-menu.d.ts +41 -0
- package/dist/popover-BSfKsQni.js +143 -0
- package/dist/popover-DhEvLuOo.cjs +30 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.js +1 -1
- package/dist/styles/main.css +186 -182
- package/dist/switch-8RGGesy5.cjs +17 -0
- package/dist/switch-DNqPqH-R.js +64 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +1 -1
- package/dist/tab-BmrITzOL.cjs +40 -0
- package/dist/{tab-BKdN4xAz.js → tab-Ca_OyNqQ.js} +5 -5
- package/dist/tab.cjs +1 -1
- package/dist/tab.js +1 -1
- package/dist/text-area-BztUgBL1.cjs +51 -0
- package/dist/text-area-DUg5BGQh.js +235 -0
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timepicker-BKUTi_AU.js +316 -0
- package/dist/timepicker-CRtoPBMn.cjs +119 -0
- package/dist/timepicker.cjs +1 -0
- package/dist/timepicker.js +4 -0
- package/dist/toast-container-CHrtU7X5.js +274 -0
- package/dist/toast-container-T77X56AG.cjs +64 -0
- package/dist/toast.cjs +1 -0
- package/dist/toast.js +6 -0
- package/dist/tree-menu-5dkAPsgJ.js +154 -0
- package/dist/tree-menu-CdNwvOjp.cjs +47 -0
- package/dist/tree-menu.cjs +1 -0
- package/dist/tree-menu.js +4 -0
- package/dist/ui-icon-DKZMrOTi.cjs +22 -0
- package/dist/ui-icon-DrrH0WhF.js +70 -0
- package/package.json +56 -12
- package/dist/badge-BbhaO73N.cjs +0 -13
- package/dist/badge-DE7Tgd8Z.js +0 -71
- package/dist/button-C1EwOosO.js +0 -58
- package/dist/button-CDRccsk9.cjs +0 -10
- package/dist/card-n8ka8Zk-.cjs +0 -43
- package/dist/chatbot-Ces7Xveb.js +0 -496
- package/dist/chatbot-oRwt64d8.cjs +0 -160
- package/dist/combobox-BJbI-Tgi.js +0 -268
- package/dist/combobox-pmE7bgEL.cjs +0 -99
- package/dist/datepicker-DFJx45C-.js +0 -750
- package/dist/datepicker-b9JGTTMx.cjs +0 -115
- package/dist/directive-Z_rhNYWK.js +0 -240
- package/dist/directive-ekjitgzi.cjs +0 -3
- package/dist/download-manager-BSIMTGaK.cjs +0 -97
- package/dist/formfield-D_7NFFoe.cjs +0 -27
- package/dist/formfield-d8fp9FTV.js +0 -118
- package/dist/input-ByllRq9M.js +0 -192
- package/dist/input-DsIOQPGV.cjs +0 -46
- package/dist/live-BX-yBGvT.cjs +0 -1
- package/dist/live-WTVSYE2F.js +0 -24
- package/dist/modal-Bfc6WQSL.js +0 -110
- package/dist/modal-DQ8VFL-P.cjs +0 -39
- package/dist/popover-C_Ob86CJ.cjs +0 -30
- package/dist/popover-D-FXdEdS.js +0 -1040
- package/dist/switch-Cpl53nRW.js +0 -64
- package/dist/switch-Rnnn10bn.cjs +0 -17
- package/dist/tab-DcjAlXzU.cjs +0 -40
- package/dist/text-area-CtZY3yLA.js +0 -204
- package/dist/text-area-DFDF5oos.cjs +0 -44
package/dist/chatbot-Ces7Xveb.js
DELETED
|
@@ -1,496 +0,0 @@
|
|
|
1
|
-
import { LitElement as _, html as a, unsafeCSS as y, css as w } from "lit";
|
|
2
|
-
import { property as d, state as c, query as m, customElement as x } from "lit/decorators.js";
|
|
3
|
-
import { e as z, i as C, A as f, t as $, E as k } from "./directive-Z_rhNYWK.js";
|
|
4
|
-
class g extends C {
|
|
5
|
-
constructor(e) {
|
|
6
|
-
if (super(e), this.it = f, e.type !== $.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
7
|
-
}
|
|
8
|
-
render(e) {
|
|
9
|
-
if (e === f || e == null) return this._t = void 0, this.it = e;
|
|
10
|
-
if (e === k) return e;
|
|
11
|
-
if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
12
|
-
if (e === this.it) return this._t;
|
|
13
|
-
this.it = e;
|
|
14
|
-
const s = [e];
|
|
15
|
-
return s.raw = s, this._t = { _$litType$: this.constructor.resultType, strings: s, values: [] };
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
g.directiveName = "unsafeHTML", g.resultType = 1;
|
|
19
|
-
const D = z(g), M = ":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)}";
|
|
20
|
-
var T = Object.defineProperty, I = Object.getOwnPropertyDescriptor, r = (t, e, s, i) => {
|
|
21
|
-
for (var n = i > 1 ? void 0 : i ? I(e, s) : e, l = t.length - 1, h; l >= 0; l--)
|
|
22
|
-
(h = t[l]) && (n = (i ? h(e, s, n) : h(n)) || n);
|
|
23
|
-
return i && n && T(e, s, n), n;
|
|
24
|
-
};
|
|
25
|
-
let o = class extends _ {
|
|
26
|
-
constructor() {
|
|
27
|
-
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 = () => {
|
|
28
|
-
this.screenWidth = window.innerWidth;
|
|
29
|
-
const t = window.innerHeight - 40;
|
|
30
|
-
this.windowHeight > t && (this.windowHeight = t);
|
|
31
|
-
}, this.onToggle = () => {
|
|
32
|
-
this.open = !this.open, this.scrollToBottom();
|
|
33
|
-
}, this.onClose = () => {
|
|
34
|
-
this.open = !1, this.fullscreen = !1;
|
|
35
|
-
}, this.onToggleFullscreen = () => {
|
|
36
|
-
this.fullscreen = !this.fullscreen;
|
|
37
|
-
}, this.onMouseMove = (t) => {
|
|
38
|
-
if (this.isDragging) {
|
|
39
|
-
const e = this.dragStartPos.x - t.clientX, s = this.dragStartPos.y - t.clientY, n = this.shadowRoot?.querySelector(".chatbot__launcher")?.getBoundingClientRect(), l = n?.width || 72, h = n?.height || 66;
|
|
40
|
-
this.position = {
|
|
41
|
-
right: Math.max(0, Math.min(window.innerWidth - l, this.initialPosition.right + e)),
|
|
42
|
-
bottom: Math.max(0, Math.min(window.innerHeight - h, this.initialPosition.bottom + s))
|
|
43
|
-
};
|
|
44
|
-
} else if (this.isResizing) {
|
|
45
|
-
const e = this.dragStartPos.x - t.clientX, s = this.dragStartPos.y - t.clientY;
|
|
46
|
-
if (this.resizeDirection === "horizontal" || this.resizeDirection === "both") {
|
|
47
|
-
const i = this.position.right < this.screenWidth / 2;
|
|
48
|
-
this.windowWidth = Math.max(300, this.resizeStartWidth + (i ? e : -e));
|
|
49
|
-
}
|
|
50
|
-
(this.resizeDirection === "vertical" || this.resizeDirection === "both") && (this.windowHeight = Math.max(400, this.resizeStartHeight + s));
|
|
51
|
-
}
|
|
52
|
-
}, this.onMouseUp = (t) => {
|
|
53
|
-
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));
|
|
54
|
-
}, this.handleKeyDown = (t) => {
|
|
55
|
-
t.key === "Enter" && !t.shiftKey && (t.preventDefault(), this.sendMessage());
|
|
56
|
-
}, this.onInput = (t) => {
|
|
57
|
-
const e = t.target;
|
|
58
|
-
this.inputText = e ? e.value : t.detail;
|
|
59
|
-
}, this.onCopyMessage = (t) => {
|
|
60
|
-
navigator.clipboard.writeText(t);
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
connectedCallback() {
|
|
64
|
-
super.connectedCallback(), window.addEventListener("resize", this.onWindowResize);
|
|
65
|
-
}
|
|
66
|
-
disconnectedCallback() {
|
|
67
|
-
super.disconnectedCallback(), window.removeEventListener("resize", this.onWindowResize), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("mouseup", this.onMouseUp);
|
|
68
|
-
}
|
|
69
|
-
async firstUpdated() {
|
|
70
|
-
this.products.length === 1 && (this.selectedProductId = this.products[0].id), this.open = this.openInitially, this.open && await this.initConversation();
|
|
71
|
-
}
|
|
72
|
-
updated(t) {
|
|
73
|
-
t.has("products") && this.handleProductUpdate(), t.has("messages") && this.scrollToBottom(), t.has("open") && this.open && !this.conversationId && this.initConversation();
|
|
74
|
-
}
|
|
75
|
-
// ==================== PRODUCT ====================
|
|
76
|
-
handleProductUpdate() {
|
|
77
|
-
if (!this.products.length) return;
|
|
78
|
-
const t = this.products.some((e) => e.id === this.selectedProductId);
|
|
79
|
-
this.products.length === 1 && (this.selectedProductId = this.products[0].id), t || (this.messages = [], this.conversationId = void 0, this.open && this.initConversation()), requestAnimationFrame(() => this.updateComboboxItems());
|
|
80
|
-
}
|
|
81
|
-
updateComboboxItems() {
|
|
82
|
-
const t = this.productEl;
|
|
83
|
-
if (!t || this.products?.length <= 1) return;
|
|
84
|
-
const e = this.products.map((i) => ({ value: i.id, label: i.name }));
|
|
85
|
-
t.items = e;
|
|
86
|
-
const s = t.selectedItems?.() || [];
|
|
87
|
-
if (s.length > 0) {
|
|
88
|
-
const i = s[0]?.value;
|
|
89
|
-
!this.products.some((l) => l.id === i) && t.setSelected && t.setSelected([]);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
async onProductChange(t) {
|
|
93
|
-
const e = t.detail?.selected?.[0]?.value;
|
|
94
|
-
e && e !== this.selectedProductId && (this.selectedProductId = e);
|
|
95
|
-
}
|
|
96
|
-
// ==================== DRAG ====================
|
|
97
|
-
onMouseDown(t) {
|
|
98
|
-
this.draggable && (t.preventDefault(), this.isDragging = !0, this.dragStartPos = { x: t.clientX, y: t.clientY }, this.initialPosition = { ...this.position }, window.addEventListener("mousemove", this.onMouseMove), window.addEventListener("mouseup", this.onMouseUp));
|
|
99
|
-
}
|
|
100
|
-
startResize(t, e) {
|
|
101
|
-
this.resizable && (t.preventDefault(), t.stopPropagation(), this.isResizing = !0, this.resizeDirection = e, this.dragStartPos = { x: t.clientX, y: t.clientY }, this.resizeStartWidth = this.windowWidth, this.resizeStartHeight = this.windowHeight, window.addEventListener("mousemove", this.onMouseMove), window.addEventListener("mouseup", this.onMouseUp));
|
|
102
|
-
}
|
|
103
|
-
// ==================== CHAT API ====================
|
|
104
|
-
async ensureToken(t = !1) {
|
|
105
|
-
const e = "logosphere_chatbot_token";
|
|
106
|
-
if (t && (this.assertionToken = void 0, localStorage.removeItem(e)), !t) {
|
|
107
|
-
const n = localStorage.getItem(e);
|
|
108
|
-
if (n) {
|
|
109
|
-
this.assertionToken = n;
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
const i = await (await fetch(`${this.returnUri}/api/chat/start`)).json();
|
|
114
|
-
if (!i.Success || !i.Data?.Token) throw new Error("Token alınamadı");
|
|
115
|
-
this.assertionToken = i.Data.Token, localStorage.setItem(e, this.assertionToken);
|
|
116
|
-
}
|
|
117
|
-
async postChat(t) {
|
|
118
|
-
await this.ensureToken();
|
|
119
|
-
const e = `${this.returnUri}/api/chat/completions`, s = () => fetch(e, {
|
|
120
|
-
method: "POST",
|
|
121
|
-
headers: {
|
|
122
|
-
"Content-Type": "application/json",
|
|
123
|
-
client_assertion: this.assertionToken,
|
|
124
|
-
client_assertion_type: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
|
|
125
|
-
},
|
|
126
|
-
body: JSON.stringify(t)
|
|
127
|
-
});
|
|
128
|
-
let i = await s();
|
|
129
|
-
if (i.status === 401 && (await this.ensureToken(!0), i = await s()), !i.ok) throw new Error(`HTTP ${i.status}`);
|
|
130
|
-
return i.json();
|
|
131
|
-
}
|
|
132
|
-
async initConversation() {
|
|
133
|
-
if (!this.isLoading) {
|
|
134
|
-
this.isLoading = !0;
|
|
135
|
-
try {
|
|
136
|
-
await this.ensureToken();
|
|
137
|
-
const t = await this.postChat({
|
|
138
|
-
ChatCompletionType: "NewConversation",
|
|
139
|
-
Context: this.selectedProductId,
|
|
140
|
-
QuestionPrompt: this.questionPrompt
|
|
141
|
-
});
|
|
142
|
-
this.conversationId = t.Data.ConversationId;
|
|
143
|
-
const e = t.Data.Choices?.[0]?.Message?.Content;
|
|
144
|
-
e && this.addMessage(e, "assistant");
|
|
145
|
-
} catch {
|
|
146
|
-
this.addMessage("Bir hata oluştu, lütfen tekrar deneyiniz.", "system");
|
|
147
|
-
} finally {
|
|
148
|
-
this.isLoading = !1;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
async sendMessage() {
|
|
153
|
-
const t = this.inputText.trim();
|
|
154
|
-
if (!(!t || !this.conversationId || this.isLoading)) {
|
|
155
|
-
if (!this.selectedProductId) {
|
|
156
|
-
this.addMessage("Lütfen önce bir ürün seçiniz.", "system");
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
|
-
this.addMessage(t, "user"), this.inputText = "", this.isLoading = !0;
|
|
160
|
-
try {
|
|
161
|
-
const s = (await this.postChat({
|
|
162
|
-
ChatCompletionType: "ConversationUpdate",
|
|
163
|
-
Content: t,
|
|
164
|
-
Context: this.selectedProductId,
|
|
165
|
-
ConversationId: this.conversationId,
|
|
166
|
-
QuestionPrompt: this.questionPrompt
|
|
167
|
-
})).Data?.Choices?.[0]?.Message?.Content;
|
|
168
|
-
this.addMessage(s || "Cevap alınamadı.", "assistant");
|
|
169
|
-
} catch {
|
|
170
|
-
this.addMessage("Bağlantı hatası.", "system");
|
|
171
|
-
} finally {
|
|
172
|
-
this.isLoading = !1;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
addMessage(t, e) {
|
|
177
|
-
this.messages = [...this.messages, { content: t, role: e, timestamp: Date.now() }];
|
|
178
|
-
}
|
|
179
|
-
scrollToBottom() {
|
|
180
|
-
setTimeout(() => {
|
|
181
|
-
this.chatContainer && (this.chatContainer.scrollTop = this.chatContainer.scrollHeight);
|
|
182
|
-
}, 0);
|
|
183
|
-
}
|
|
184
|
-
// ==================== CONTENT FORMATTER ====================
|
|
185
|
-
formatContent(t) {
|
|
186
|
-
if (!t) return "";
|
|
187
|
-
const s = t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").split(`
|
|
188
|
-
`);
|
|
189
|
-
let i = "", n = !1, l = "";
|
|
190
|
-
for (const h of s) {
|
|
191
|
-
const v = h.trim() === "", p = h.match(/^\s*\d+\.\s+(.*)/), b = h.match(/^\s*[-*]\s+(.*)/);
|
|
192
|
-
if (p || b) {
|
|
193
|
-
const u = p ? "ol" : "ul";
|
|
194
|
-
(!n || l !== u) && (n && (i += `</${l}>`), i += `<${u}>`, n = !0, l = u), i += `<li>${p ? p[1] : b[1]}</li>`;
|
|
195
|
-
} else
|
|
196
|
-
v ? n || (i += "<br>") : (n && (i += `</${l}>`, n = !1, l = ""), i += `<p>${h}</p>`);
|
|
197
|
-
}
|
|
198
|
-
return n && (i += `</${l}>`), i.replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>").replace(/\*(.*?)\*/g, "<em>$1</em>").replace(
|
|
199
|
-
/\[([^\]]+)\]\(([^)]+)\)/g,
|
|
200
|
-
'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
// ==================== RENDER ====================
|
|
204
|
-
render() {
|
|
205
|
-
const t = this.position.right < this.screenWidth / 2;
|
|
206
|
-
return a`
|
|
207
|
-
<div class="chatbot">
|
|
208
|
-
${this.renderOverlay()}
|
|
209
|
-
${this.renderLauncher()}
|
|
210
|
-
${this.renderWindow(t)}
|
|
211
|
-
</div>
|
|
212
|
-
`;
|
|
213
|
-
}
|
|
214
|
-
renderOverlay() {
|
|
215
|
-
return this.open || this.fullscreen ? a`<div class="chatbot__overlay" @click=${this.onToggle}></div>` : "";
|
|
216
|
-
}
|
|
217
|
-
renderLauncher() {
|
|
218
|
-
const t = [
|
|
219
|
-
"chatbot__launcher",
|
|
220
|
-
this.draggable ? "chatbot__launcher--draggable" : "",
|
|
221
|
-
this.open ? "chatbot__launcher--hidden" : ""
|
|
222
|
-
].filter(Boolean).join(" ");
|
|
223
|
-
return a`
|
|
224
|
-
<div
|
|
225
|
-
class="${t}"
|
|
226
|
-
style="right: ${this.position.right}px; bottom: ${this.position.bottom}px;"
|
|
227
|
-
@mousedown=${this.onMouseDown}
|
|
228
|
-
@click=${this.draggable ? null : this.onToggle}
|
|
229
|
-
aria-expanded=${this.open ? "true" : "false"}
|
|
230
|
-
>
|
|
231
|
-
<img class="chatbot__launcher-icon" src="${o.ICONS.launcher}" alt="chatbot" />
|
|
232
|
-
${!this.open && !this.minimizedIconOnly ? a`
|
|
233
|
-
<div class="chatbot__launcher-text">
|
|
234
|
-
<p class="chatbot__launcher-title">Logo</p>
|
|
235
|
-
<p class="chatbot__launcher-subtitle">Dijital Danışman</p>
|
|
236
|
-
</div>
|
|
237
|
-
` : ""}
|
|
238
|
-
</div>
|
|
239
|
-
`;
|
|
240
|
-
}
|
|
241
|
-
renderWindow(t) {
|
|
242
|
-
const e = [
|
|
243
|
-
"chatbot__window",
|
|
244
|
-
this.open ? "" : "chatbot__window--hidden",
|
|
245
|
-
this.fullscreen ? "chatbot__window--fullscreen" : ""
|
|
246
|
-
].filter(Boolean).join(" "), s = this.fullscreen ? "" : `bottom: 20px; height: ${this.windowHeight}px; width: ${this.windowWidth}px; ${t ? "right: 20px;" : "left: 20px;"}`;
|
|
247
|
-
return a`
|
|
248
|
-
<div class="${e}" style="${s}">
|
|
249
|
-
${this.renderResizeHandles(t)}
|
|
250
|
-
${this.renderHeader()}
|
|
251
|
-
<div class="chatbot__body">
|
|
252
|
-
${this.renderProductSelector()}
|
|
253
|
-
${this.renderChatArea()}
|
|
254
|
-
${this.renderInputArea()}
|
|
255
|
-
</div>
|
|
256
|
-
</div>
|
|
257
|
-
`;
|
|
258
|
-
}
|
|
259
|
-
renderResizeHandles(t) {
|
|
260
|
-
return this.fullscreen || !this.resizable ? "" : a`
|
|
261
|
-
<div class="chatbot__resize-top"
|
|
262
|
-
@mousedown=${(e) => this.startResize(e, "vertical")}></div>
|
|
263
|
-
<div class="chatbot__resize-side ${t ? "chatbot__resize-side--left" : "chatbot__resize-side--right"}"
|
|
264
|
-
@mousedown=${(e) => this.startResize(e, "horizontal")}></div>
|
|
265
|
-
<div class="chatbot__resize-corner ${t ? "chatbot__resize-corner--nwse" : "chatbot__resize-corner--nesw"}"
|
|
266
|
-
@mousedown=${(e) => this.startResize(e, "both")}></div>
|
|
267
|
-
`;
|
|
268
|
-
}
|
|
269
|
-
renderHeader() {
|
|
270
|
-
return a`
|
|
271
|
-
<div class="chatbot__header">
|
|
272
|
-
<div class="chatbot__header-info">
|
|
273
|
-
<img class="chatbot__header-logo" alt="logo" src="${o.ICONS.launcher}" />
|
|
274
|
-
<div>
|
|
275
|
-
<p class="chatbot__header-title">Logo</p>
|
|
276
|
-
<p class="chatbot__header-subtitle">Dijital Danışman</p>
|
|
277
|
-
</div>
|
|
278
|
-
</div>
|
|
279
|
-
<div class="chatbot__header-actions">
|
|
280
|
-
<logosphere-button
|
|
281
|
-
iconOnly="true"
|
|
282
|
-
size="sm"
|
|
283
|
-
variant="text"
|
|
284
|
-
theme="--color-light-rgb"
|
|
285
|
-
title=${this.fullscreen ? "Küçült" : "Tam Ekran"}
|
|
286
|
-
@click=${this.onToggleFullscreen}
|
|
287
|
-
>
|
|
288
|
-
<ui-icon name="${this.fullscreen ? "uil-compress-alt" : "uil-expand-alt"}" size="16"></ui-icon>
|
|
289
|
-
</logosphere-button>
|
|
290
|
-
<logosphere-button
|
|
291
|
-
iconOnly="true"
|
|
292
|
-
size="sm"
|
|
293
|
-
variant="text"
|
|
294
|
-
theme="--color-light"
|
|
295
|
-
title="Kapat"
|
|
296
|
-
@click=${this.onClose}
|
|
297
|
-
>
|
|
298
|
-
<ui-icon name="uil-times" size="16"></ui-icon>
|
|
299
|
-
</logosphere-button>
|
|
300
|
-
</div>
|
|
301
|
-
</div>
|
|
302
|
-
`;
|
|
303
|
-
}
|
|
304
|
-
renderProductSelector() {
|
|
305
|
-
return a`
|
|
306
|
-
<div class="chatbot__product">
|
|
307
|
-
${this.products.length > 1 ? a`
|
|
308
|
-
<logosphere-combobox
|
|
309
|
-
id="product"
|
|
310
|
-
.items=${this.products.map((t) => ({ value: t.id, label: t.name }))}
|
|
311
|
-
optionValue="value"
|
|
312
|
-
optionLabel="label"
|
|
313
|
-
placeholder="Ürün seçiniz"
|
|
314
|
-
@selected=${this.onProductChange}
|
|
315
|
-
></logosphere-combobox>
|
|
316
|
-
` : a`
|
|
317
|
-
<logosphere-input
|
|
318
|
-
id="product"
|
|
319
|
-
placeholder="Ürün seçiniz"
|
|
320
|
-
.value=${this.products.length === 1 ? this.products[0].name : ""}
|
|
321
|
-
readOnly="true"
|
|
322
|
-
></logosphere-input>
|
|
323
|
-
`}
|
|
324
|
-
</div>
|
|
325
|
-
`;
|
|
326
|
-
}
|
|
327
|
-
renderChatArea() {
|
|
328
|
-
return a`
|
|
329
|
-
<div id="chat-container" class="chatbot__messages">
|
|
330
|
-
${this.messages.map((t) => this.renderMessage(t))}
|
|
331
|
-
${this.isLoading ? this.renderTypingIndicator() : ""}
|
|
332
|
-
</div>
|
|
333
|
-
`;
|
|
334
|
-
}
|
|
335
|
-
renderMessage(t) {
|
|
336
|
-
const e = [
|
|
337
|
-
"chatbot__bubble",
|
|
338
|
-
`chatbot__bubble--${t.role}`
|
|
339
|
-
].join(" ");
|
|
340
|
-
return a`
|
|
341
|
-
<div class="chatbot__message chatbot__message--${t.role}">
|
|
342
|
-
<div class="${e}">
|
|
343
|
-
<div class="chatbot__message-content">
|
|
344
|
-
${D(this.formatContent(t.content))}
|
|
345
|
-
</div>
|
|
346
|
-
${this.showFeedbackButtons && t.role === "assistant" ? this.renderFeedbackButtons(t) : ""}
|
|
347
|
-
</div>
|
|
348
|
-
</div>
|
|
349
|
-
`;
|
|
350
|
-
}
|
|
351
|
-
renderFeedbackButtons(t) {
|
|
352
|
-
return a`
|
|
353
|
-
<div class="chatbot__feedback">
|
|
354
|
-
<logosphere-button
|
|
355
|
-
@click=${() => this.onCopyMessage(t.content)}
|
|
356
|
-
title="Kopyala"
|
|
357
|
-
iconOnly="true"
|
|
358
|
-
size="sm"
|
|
359
|
-
theme="--color-light-rgb"
|
|
360
|
-
>
|
|
361
|
-
<ui-icon name="uil-copy" size="14"></ui-icon>
|
|
362
|
-
</logosphere-button>
|
|
363
|
-
<logosphere-button title="Like" iconOnly="true" size="sm" theme="--color-light-rgb">
|
|
364
|
-
<ui-icon name="uil-thumbs-up" size="14"></ui-icon>
|
|
365
|
-
</logosphere-button>
|
|
366
|
-
<logosphere-button title="Dislike" iconOnly="true" size="sm" theme="--color-light-rgb">
|
|
367
|
-
<ui-icon name="uil-thumbs-down" size="14"></ui-icon>
|
|
368
|
-
</logosphere-button>
|
|
369
|
-
</div>
|
|
370
|
-
`;
|
|
371
|
-
}
|
|
372
|
-
renderTypingIndicator() {
|
|
373
|
-
return a`
|
|
374
|
-
<div class="chatbot__typing-wrapper">
|
|
375
|
-
<div class="chatbot__typing">
|
|
376
|
-
<span class="chatbot__typing-dot"></span>
|
|
377
|
-
<span class="chatbot__typing-dot"></span>
|
|
378
|
-
<span class="chatbot__typing-dot"></span>
|
|
379
|
-
</div>
|
|
380
|
-
</div>
|
|
381
|
-
`;
|
|
382
|
-
}
|
|
383
|
-
renderInputArea() {
|
|
384
|
-
return a`
|
|
385
|
-
<div class="chatbot__input-area">
|
|
386
|
-
<div class="chatbot__input-wrapper">
|
|
387
|
-
<input
|
|
388
|
-
class="chatbot__input"
|
|
389
|
-
placeholder=${this.selectedProductId ? "Bir şeyler yazın..." : "Lütfen ürün seçiniz..."}
|
|
390
|
-
.value=${this.inputText}
|
|
391
|
-
@input=${this.onInput}
|
|
392
|
-
@keydown=${this.handleKeyDown}
|
|
393
|
-
?disabled=${!this.selectedProductId}
|
|
394
|
-
/>
|
|
395
|
-
<logosphere-button
|
|
396
|
-
iconOnly="true"
|
|
397
|
-
size="lg"
|
|
398
|
-
variant="text"
|
|
399
|
-
theme="--color-light"
|
|
400
|
-
title="Gönder"
|
|
401
|
-
@click=${this.sendMessage}
|
|
402
|
-
?disabled=${!this.selectedProductId || !this.inputText.trim()}
|
|
403
|
-
>
|
|
404
|
-
<ui-icon name="uil-arrow-circle-right" size="20"></ui-icon>
|
|
405
|
-
</logosphere-button>
|
|
406
|
-
</div>
|
|
407
|
-
</div>
|
|
408
|
-
<div class="chatbot__footer">
|
|
409
|
-
<p class="chatbot__footer-text">İçerik Yapay Zeka ile Üretilmiştir</p>
|
|
410
|
-
</div>
|
|
411
|
-
`;
|
|
412
|
-
}
|
|
413
|
-
};
|
|
414
|
-
o.styles = [w`${y(M)}`];
|
|
415
|
-
o.ICONS = {
|
|
416
|
-
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"
|
|
417
|
-
};
|
|
418
|
-
r([
|
|
419
|
-
d({ type: String, attribute: "return-uri" })
|
|
420
|
-
], o.prototype, "returnUri", 2);
|
|
421
|
-
r([
|
|
422
|
-
d({ type: String, attribute: "question-prompt" })
|
|
423
|
-
], o.prototype, "questionPrompt", 2);
|
|
424
|
-
r([
|
|
425
|
-
d({ type: Boolean, attribute: "minimized-icon-only" })
|
|
426
|
-
], o.prototype, "minimizedIconOnly", 2);
|
|
427
|
-
r([
|
|
428
|
-
d({ type: Boolean, attribute: "draggable" })
|
|
429
|
-
], o.prototype, "draggable", 2);
|
|
430
|
-
r([
|
|
431
|
-
d({ type: Boolean, attribute: "resizable" })
|
|
432
|
-
], o.prototype, "resizable", 2);
|
|
433
|
-
r([
|
|
434
|
-
d({
|
|
435
|
-
type: Array,
|
|
436
|
-
hasChanged: (t, e) => t === e ? !1 : !e || !t || t.length !== e.length ? !0 : JSON.stringify(t) !== JSON.stringify(e)
|
|
437
|
-
}),
|
|
438
|
-
d({ type: Array })
|
|
439
|
-
], o.prototype, "products", 2);
|
|
440
|
-
r([
|
|
441
|
-
d({ type: Boolean, attribute: "open-initially" })
|
|
442
|
-
], o.prototype, "openInitially", 2);
|
|
443
|
-
r([
|
|
444
|
-
d({ type: Boolean, attribute: "show-feedback-buttons" })
|
|
445
|
-
], o.prototype, "showFeedbackButtons", 2);
|
|
446
|
-
r([
|
|
447
|
-
c()
|
|
448
|
-
], o.prototype, "open", 2);
|
|
449
|
-
r([
|
|
450
|
-
c()
|
|
451
|
-
], o.prototype, "fullscreen", 2);
|
|
452
|
-
r([
|
|
453
|
-
c()
|
|
454
|
-
], o.prototype, "messages", 2);
|
|
455
|
-
r([
|
|
456
|
-
c()
|
|
457
|
-
], o.prototype, "conversationId", 2);
|
|
458
|
-
r([
|
|
459
|
-
c()
|
|
460
|
-
], o.prototype, "assertionToken", 2);
|
|
461
|
-
r([
|
|
462
|
-
c()
|
|
463
|
-
], o.prototype, "isLoading", 2);
|
|
464
|
-
r([
|
|
465
|
-
c()
|
|
466
|
-
], o.prototype, "inputText", 2);
|
|
467
|
-
r([
|
|
468
|
-
c()
|
|
469
|
-
], o.prototype, "selectedProductId", 2);
|
|
470
|
-
r([
|
|
471
|
-
c()
|
|
472
|
-
], o.prototype, "windowWidth", 2);
|
|
473
|
-
r([
|
|
474
|
-
c()
|
|
475
|
-
], o.prototype, "windowHeight", 2);
|
|
476
|
-
r([
|
|
477
|
-
c()
|
|
478
|
-
], o.prototype, "position", 2);
|
|
479
|
-
r([
|
|
480
|
-
c()
|
|
481
|
-
], o.prototype, "isDragging", 2);
|
|
482
|
-
r([
|
|
483
|
-
c()
|
|
484
|
-
], o.prototype, "screenWidth", 2);
|
|
485
|
-
r([
|
|
486
|
-
m("#chat-container")
|
|
487
|
-
], o.prototype, "chatContainer", 2);
|
|
488
|
-
r([
|
|
489
|
-
m("#product")
|
|
490
|
-
], o.prototype, "productEl", 2);
|
|
491
|
-
o = r([
|
|
492
|
-
x("logosphere-chatbot")
|
|
493
|
-
], o);
|
|
494
|
-
export {
|
|
495
|
-
o as L
|
|
496
|
-
};
|