import { p as proxyCustomElement, H, h, c as Host } from './p-ae373651.js';
import { e as defaultIconPack, i as useLanguage } from './p-5b3a7f00.js';
import './p-a83ccdbd.js';
import { S as SyncWithStore } from './p-070aa695.js';
import { d as defineCustomElement$d } from './p-a3bf84d7.js';
import { d as defineCustomElement$c } from './p-85587a5c.js';
import { d as defineCustomElement$b } from './p-bc5c1265.js';
import { d as defineCustomElement$a } from './p-c1ab8045.js';
import { d as defineCustomElement$9 } from './p-3e0452c4.js';
import { d as defineCustomElement$8 } from './p-00e98940.js';
import { d as defineCustomElement$7 } from './p-241583c3.js';
import { d as defineCustomElement$6 } from './p-0304f83a.js';
import { d as defineCustomElement$5 } from './p-02d63986.js';
import { d as defineCustomElement$4 } from './p-7dd3acf5.js';
import { d as defineCustomElement$3 } from './p-e6245534.js';
import { d as defineCustomElement$2 } from './p-6ccdf3c3.js';

const rtkChatSearchResultsCss = ":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;flex-direction:column;position:relative;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}";
const RtkChatSearchResultsStyle0 = rtkChatSearchResultsCss;

var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
        r = Reflect.decorate(decorators, target, key, desc);
    else
        for (var i = decorators.length - 1; i >= 0; i--)
            if (d = decorators[i])
                r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
const RtkChatSearchResults$1 = /*@__PURE__*/ proxyCustomElement(class RtkChatSearchResults extends H {
    constructor() {
        super();
        this.__registerHost();
        this.__attachShadow();
        /** Icon pack */
        this.iconPack = defaultIconPack;
        /** Language */
        this.t = useLanguage();
        this.pageSize = 50;
        /** NOTE(ikabra): Core APIs need to be implemented for this, this component is not being used inside chat UI and was broken as standalone. */
        this.searchMessages = async (_timestamp, _size, _reversed) => {
            return [];
        };
        this.nodeRenderer = (messages) => {
            return messages.map((message) => (h("rtk-chat-message", { key: message.id, message: message, disableControls: true })));
        };
    }
    render() {
        return (h(Host, { key: '4ea17889c442ac91c4bb54896c600d17290c0715' }, h("rtk-paginated-list", { key: '8fa700caf9b3a2c7329fb555baf1a979231fa71c', pageSize: this.pageSize, pagesAllowed: 3, fetchData: this.searchMessages, createNodes: this.nodeRenderer })));
    }
    static get style() { return RtkChatSearchResultsStyle0; }
}, [1, "rtk-chat-search-results", {
        "meeting": [16],
        "query": [1],
        "channelId": [1, "channel-id"],
        "iconPack": [16],
        "t": [16]
    }]);
__decorate([
    SyncWithStore()
], RtkChatSearchResults$1.prototype, "meeting", void 0);
__decorate([
    SyncWithStore()
], RtkChatSearchResults$1.prototype, "iconPack", void 0);
__decorate([
    SyncWithStore()
], RtkChatSearchResults$1.prototype, "t", void 0);
function defineCustomElement$1() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["rtk-chat-search-results", "rtk-avatar", "rtk-button", "rtk-chat-message", "rtk-file-message", "rtk-icon", "rtk-image-message", "rtk-menu", "rtk-menu-item", "rtk-menu-list", "rtk-paginated-list", "rtk-spinner", "rtk-text-message"];
    components.forEach(tagName => { switch (tagName) {
        case "rtk-chat-search-results":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, RtkChatSearchResults$1);
            }
            break;
        case "rtk-avatar":
            if (!customElements.get(tagName)) {
                defineCustomElement$d();
            }
            break;
        case "rtk-button":
            if (!customElements.get(tagName)) {
                defineCustomElement$c();
            }
            break;
        case "rtk-chat-message":
            if (!customElements.get(tagName)) {
                defineCustomElement$b();
            }
            break;
        case "rtk-file-message":
            if (!customElements.get(tagName)) {
                defineCustomElement$a();
            }
            break;
        case "rtk-icon":
            if (!customElements.get(tagName)) {
                defineCustomElement$9();
            }
            break;
        case "rtk-image-message":
            if (!customElements.get(tagName)) {
                defineCustomElement$8();
            }
            break;
        case "rtk-menu":
            if (!customElements.get(tagName)) {
                defineCustomElement$7();
            }
            break;
        case "rtk-menu-item":
            if (!customElements.get(tagName)) {
                defineCustomElement$6();
            }
            break;
        case "rtk-menu-list":
            if (!customElements.get(tagName)) {
                defineCustomElement$5();
            }
            break;
        case "rtk-paginated-list":
            if (!customElements.get(tagName)) {
                defineCustomElement$4();
            }
            break;
        case "rtk-spinner":
            if (!customElements.get(tagName)) {
                defineCustomElement$3();
            }
            break;
        case "rtk-text-message":
            if (!customElements.get(tagName)) {
                defineCustomElement$2();
            }
            break;
    } });
}
defineCustomElement$1();

const RtkChatSearchResults = RtkChatSearchResults$1;
const defineCustomElement = defineCustomElement$1;

export { RtkChatSearchResults, defineCustomElement };
