UNPKG

isomtrik-quickchat

Version:

isomtrik-quickchat is a lightweight, real-time chat component built with Stencil JS. It is designed to be seamlessly integrated into web applications, offering customizable and responsive chat functionalities. The module supports both CommonJS and ES modu

72 lines (71 loc) 3.19 kB
import { h } from "@stencil/core"; import "../../../stories/Components/Head/ClosedHeader/ClosedHead"; export class ChatHeaderClosed { constructor() { this.conversationDetails = undefined; this.onMinimize = undefined; this.onClose = undefined; } render() { var _a, _b, _c, _d; return (h("close-head", { key: 'a0c4a0b9fe9e32b903e808b02aa9a4a1e060ffde', profileImage: ((_b = (_a = this.conversationDetails) === null || _a === void 0 ? void 0 : _a.opponentDetails) === null || _b === void 0 ? void 0 : _b.userProfileImageUrl) || '', text: (_d = (_c = this.conversationDetails) === null || _c === void 0 ? void 0 : _c.opponentDetails) === null || _d === void 0 ? void 0 : _d.userName, onFirstSvgClick: this.onMinimize, onSecondSvgClick: this.onClose, borderRadius: "8px 8px 0 0", borderColor: "#E6E8F3", borderStyle: "solid", borderWidth: "0px 0px 2px 0px", padding: "20px 15px 20px 15px", conversationDetails: this.conversationDetails, bgColor: 'var(--chat-header-bg)', textColor: 'var(--chat-header-text)', nameTextColor: 'var(--chat-header-name-text)', closeIconColor: 'var(--chat-header-close-icon)', minimizeIconColor: 'var(--chat-header-minimize-icon)' })); } static get is() { return "chat-header-closed"; } static get encapsulation() { return "shadow"; } static get properties() { return { "conversationDetails": { "type": "unknown", "mutable": false, "complexType": { "original": "ConversationDetails", "resolved": "ConversationDetails", "references": { "ConversationDetails": { "location": "import", "path": "../../../types/ConversationDetailsTypes", "id": "src/types/ConversationDetailsTypes.ts::ConversationDetails" } } }, "required": false, "optional": false, "docs": { "tags": [], "text": "" } }, "onMinimize": { "type": "unknown", "mutable": false, "complexType": { "original": "() => void", "resolved": "() => void", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "" } }, "onClose": { "type": "unknown", "mutable": false, "complexType": { "original": "() => void", "resolved": "() => void", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "" } } }; } } //# sourceMappingURL=ChatHeaderClosed.js.map