'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-75aef097.js');
const config = require('./config-3bb95f39.js');
const helpers = require('./helpers-bb6622f5.js');
const locale = require('./locale-ff30a5f3.js');
const constants = require('./constants-1fb674a5.js');
require('./assets-manager-089e91b1.js');
require('./mer-animated-dots-78490ca4.js');
require('lit');
require('lit/directives/when.js');
require('lit/directives/if-defined.js');

const mapObjectTypeToComboBoxItemModel = (objectTypeModel) => objectTypeModel.map(objectType => ({
    value: objectType.id,
    caption: objectType.name,
    startImgSrc: objectType.icon
}));

const historyCss = ".custom-icon-text-wrapper{display:flex;align-items:center;gap:var(--spacing-gap-m)}.warning-error-description{display:flex;align-items:center;gap:var(--spacing-gap-m);padding:var(--spacing-padding-m);max-inline-size:800px;line-height:var(--line-height-spacious)}.warning-error-icon{flex-shrink:0}button.button-secondary{border-color:var(--color-border-neutral-default)}:host{display:grid;grid-template-columns:max-content 1fr;block-size:100%;overflow:auto}.sidebar{background-color:transparent !important;border-inline-end:var(--section-common-border)}.sidebar::part(expand-button){border-radius:var(--control-border-radius)}gx-ide-select-kb-items{--search-input-max-inline-size:300px;opacity:0;transition:opacity var(--timing-fast)}gx-ide-select-kb-items.sidebar-expanded{opacity:1}ch-tabular-grid.tabular-grid--empty::part(main){overflow:hidden}ch-tabular-grid-rowset-empty{position:relative}.main{display:grid;grid-template-rows:max-content 1fr;grid-row-gap:var(--spacing-gap-l);overflow:auto}.main__header{display:grid}.main__content{position:relative;overflow:auto;display:grid;grid-template-rows:1fr max-content 2fr;grid-row-gap:var(--spacing-gap-l)}.tabular-grid{overflow:auto}.search-filter{display:grid;grid-template-columns:1fr max-content max-content;gap:var(--spacing-gap-l)}.action-buttons{justify-self:flex-end}.filters-grid{display:grid;grid-template-columns:repeat(6, 1fr);grid-template-areas:\"from from to to type type\" \"user user user revision revision revision\";padding-block-start:var(--spacing-gap-l)}.filters-container{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--timing-fast)}.filters-container-visible{grid-template-rows:1fr}.filters-container>div{overflow:hidden}.field-from{grid-area:from}.field-to{grid-area:to}.field-type{grid-area:type}.field-user{grid-area:user}.field-revision{grid-area:revision}.commits-grid ch-tabular-grid-cell:is(:nth-child(2)){align-items:start;justify-content:start;min-inline-size:200px}.affected-objects-grid ch-tabular-grid-cell:is(:nth-child(5)){align-items:start;justify-content:start;min-inline-size:200px}";

var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
    if (kind === "a" && !f)
        throw new TypeError("Private accessor was defined without a getter");
    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
        throw new TypeError("Cannot read private member from an object whose class did not declare it");
    return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
    if (kind === "m")
        throw new TypeError("Private method is not writable");
    if (kind === "a" && !f)
        throw new TypeError("Private accessor was defined without a setter");
    if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
        throw new TypeError("Cannot write private member to an object whose class did not declare it");
    return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
};
var _GxIdeTeamDevHistory__componentLocale, _GxIdeTeamDevHistory_types, _GxIdeTeamDevHistory_fromEl, _GxIdeTeamDevHistory_revisionEl, _GxIdeTeamDevHistory_searchEl, _GxIdeTeamDevHistory_toEl, _GxIdeTeamDevHistory_typesEl, _GxIdeTeamDevHistory_userEl, _GxIdeTeamDevHistory_sidebarEl, _GxIdeTeamDevHistory_revisionsGridEl, _GxIdeTeamDevHistory_selectKBItemsEL, _GxIdeTeamDevHistory_selectedVersionChanged, _GxIdeTeamDevHistory_getObjectsFromVersion, _GxIdeTeamDevHistory_getSelectedRevision, _GxIdeTeamDevHistory_registerGridContextMenuListener, _GxIdeTeamDevHistory_gridContextMenuCallbackHandler, _GxIdeTeamDevHistory_toggleFiltersHandler, _GxIdeTeamDevHistory_renderCommitsGrid, _GxIdeTeamDevHistory_renderAffectedObjectsGrid, _GxIdeTeamDevHistory_renderLoader, _GxIdeTeamDevHistory_formatHistoryDetailDate, _GxIdeTeamDevHistory_reloadHandler;
const CSS_BUNDLES = [
    "resets/box-sizing",
    "utils/form--full",
    "utils/layout",
    "utils/spacing",
    "utils/typography",
    "chameleon/scrollbar",
    "components/tabular-grid",
    "components/accordion",
    "components/sidebar"
];
const GxIdeTeamDevHistory = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        _GxIdeTeamDevHistory__componentLocale.set(this, void 0);
        _GxIdeTeamDevHistory_types.set(this, []);
        _GxIdeTeamDevHistory_fromEl.set(this, void 0);
        _GxIdeTeamDevHistory_revisionEl.set(this, void 0);
        _GxIdeTeamDevHistory_searchEl.set(this, void 0);
        _GxIdeTeamDevHistory_toEl.set(this, void 0);
        _GxIdeTeamDevHistory_typesEl.set(this, void 0);
        _GxIdeTeamDevHistory_userEl.set(this, void 0);
        _GxIdeTeamDevHistory_sidebarEl.set(this, void 0);
        _GxIdeTeamDevHistory_revisionsGridEl.set(this, void 0);
        _GxIdeTeamDevHistory_selectKBItemsEL.set(this, void 0);
        _GxIdeTeamDevHistory_selectedVersionChanged.set(this, async (selectedVersion) => {
            if (this.selectedVersionChangeCallback) {
                await this.selectedVersionChangeCallback(selectedVersion);
            }
            await __classPrivateFieldGet(this, _GxIdeTeamDevHistory_getObjectsFromVersion, "f").call(this, selectedVersion[0], true);
        });
        _GxIdeTeamDevHistory_getObjectsFromVersion.set(this, async (versionId, isRefresh) => {
            var _a;
            this.loading = true;
            const filters = {
                search: __classPrivateFieldGet(this, _GxIdeTeamDevHistory_searchEl, "f").value ? __classPrivateFieldGet(this, _GxIdeTeamDevHistory_searchEl, "f").value : "",
                from: __classPrivateFieldGet(this, _GxIdeTeamDevHistory_fromEl, "f").value ? new Date(__classPrivateFieldGet(this, _GxIdeTeamDevHistory_fromEl, "f").value) : null,
                to: __classPrivateFieldGet(this, _GxIdeTeamDevHistory_toEl, "f").value ? new Date(__classPrivateFieldGet(this, _GxIdeTeamDevHistory_toEl, "f").value) : null,
                revision: __classPrivateFieldGet(this, _GxIdeTeamDevHistory_revisionEl, "f").value ? __classPrivateFieldGet(this, _GxIdeTeamDevHistory_revisionEl, "f").value : "",
                user: __classPrivateFieldGet(this, _GxIdeTeamDevHistory_userEl, "f").value ? __classPrivateFieldGet(this, _GxIdeTeamDevHistory_userEl, "f").value : "",
                type: __classPrivateFieldGet(this, _GxIdeTeamDevHistory_typesEl, "f").value === "all" ? "" : __classPrivateFieldGet(this, _GxIdeTeamDevHistory_typesEl, "f").value
            };
            try {
                this.objects = await this.loadCallback(filters, versionId, isRefresh);
                await __classPrivateFieldGet(this, _GxIdeTeamDevHistory_getSelectedRevision, "f").call(this, (_a = this.objects[0]) === null || _a === void 0 ? void 0 : _a.id);
            }
            catch (error) {
                this.objects = [];
                this.historyDetail = null;
                this.selectedRevisionId = null;
            }
            finally {
                this.loading = false;
            }
        });
        _GxIdeTeamDevHistory_getSelectedRevision.set(this, async (revisionId) => {
            if (revisionId) {
                this.historyDetail = await this.loadDetailCallback(revisionId);
                this.historyDetail.title = __classPrivateFieldGet(this, _GxIdeTeamDevHistory_formatHistoryDetailDate, "f").call(this, this.historyDetail.title);
                this.selectedRevisionId = revisionId;
            }
            else {
                this.historyDetail = null;
            }
        });
        _GxIdeTeamDevHistory_registerGridContextMenuListener.set(this, () => {
            if (__classPrivateFieldGet(this, _GxIdeTeamDevHistory_revisionsGridEl, "f")) {
                __classPrivateFieldGet(this, _GxIdeTeamDevHistory_revisionsGridEl, "f").addEventListener("contextmenu", (ev) => {
                    ev.preventDefault();
                    ev.stopPropagation();
                    __classPrivateFieldGet(this, _GxIdeTeamDevHistory_gridContextMenuCallbackHandler, "f").call(this, ev);
                });
            }
        });
        _GxIdeTeamDevHistory_gridContextMenuCallbackHandler.set(this, async (ev) => {
            this.gridContextMenuCallback({
                selection: [this.selectedRevisionId],
                clientX: ev.clientX,
                clientY: ev.clientY
            });
        });
        _GxIdeTeamDevHistory_toggleFiltersHandler.set(this, () => {
            this.filtersHidden = !this.filtersHidden;
        });
        _GxIdeTeamDevHistory_renderCommitsGrid.set(this, () => {
            var _a;
            const tabularGridEmpty = ((_a = this.objects) === null || _a === void 0 ? void 0 : _a.length) === 0 || !this.objects;
            return (index.h("ch-tabular-grid", { class: {
                    "commits-grid": true,
                    "tabular-grid": true,
                    "tabular-grid--empty": tabularGridEmpty
                }, onSelectionChanged: (ev) => {
                    this.objects.length > 0 &&
                        __classPrivateFieldGet(this, _GxIdeTeamDevHistory_getSelectedRevision, "f").call(this, ev.detail.rowsId[0]);
                }, ref: (el) => {
                    var _a;
                    if (el && __classPrivateFieldGet(this, _GxIdeTeamDevHistory_revisionsGridEl, "f") !== el) {
                        __classPrivateFieldSet(this, _GxIdeTeamDevHistory_revisionsGridEl, el, "f");
                        __classPrivateFieldGet(this, _GxIdeTeamDevHistory_registerGridContextMenuListener, "f").call(this);
                        if (this.objects.length > 0) {
                            __classPrivateFieldGet(this, _GxIdeTeamDevHistory_revisionsGridEl, "f").selectRow((_a = this.objects[0]) === null || _a === void 0 ? void 0 : _a.id, true);
                        }
                    }
                } }, index.h("ch-tabular-grid-columnset", { class: "tabular-grid-column-set" }, index.h("ch-tabular-grid-column", { "column-name": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").mainGrid.columns.id, "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: "max-content" }), index.h("ch-tabular-grid-column", { "column-name": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").mainGrid.columns.comment, "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: "1fr" }), index.h("ch-tabular-grid-column", { "column-name": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").mainGrid.columns.user, "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: "max-content" }), index.h("ch-tabular-grid-column", { "column-name": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").mainGrid.columns.commitDate, "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: "max-content" })), this.objects.length > 0 ? (index.h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, this.objects.map((obj) => (index.h("ch-tabular-grid-row", { rowid: obj.id, key: obj.id, class: "tabular-grid-row" }, index.h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, obj.id), index.h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, obj.comment), index.h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, obj.user), index.h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, `${helpers.formatDate(obj.commitDate, "date-time")}`)))))) : (index.h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, index.h("ch-tabular-grid-rowset-empty", null, index.h("gx-ide-empty-state", { stateTitle: __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").emptyRevisionsText, isAnimated: true })))), index.h("ch-tabular-grid-row", { class: "tabular-grid-row" })));
        });
        _GxIdeTeamDevHistory_renderAffectedObjectsGrid.set(this, () => {
            var _a, _b;
            const iterable = this.historyDetail ? this.historyDetail.objects : [];
            const tabularGridEmpty = ((_b = (_a = this.historyDetail) === null || _a === void 0 ? void 0 : _a.objects) === null || _b === void 0 ? void 0 : _b.length) === 0 || !this.historyDetail;
            return (index.h("ch-tabular-grid", { class: {
                    "affected-objects-grid": true,
                    "tabular-grid": true,
                    "tabular-grid--empty": tabularGridEmpty
                } }, index.h("ch-tabular-grid-columnset", { class: "tabular-grid-column-set" }, index.h("ch-tabular-grid-column", { "column-name": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").affectedObjectsGrid.columns.name, "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: config.config.tabularGrid.colSize.maxContent }), index.h("ch-tabular-grid-column", { "column-name": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").affectedObjectsGrid.columns.types, "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: config.config.tabularGrid.colSize.maxContent }), index.h("ch-tabular-grid-column", { "column-name": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").affectedObjectsGrid.columns.description, "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: config.config.tabularGrid.colSize.auto }), index.h("ch-tabular-grid-column", { "column-name": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").affectedObjectsGrid.columns.action, "column-name-position": "text", class: "tabular-grid-column", settingable: false, size: config.config.tabularGrid.colSize.maxContent })), this.historyDetail && this.historyDetail.objects.length > 0 ? (index.h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, iterable.map((obj) => (index.h("ch-tabular-grid-row", { class: "tabular-grid-row" }, index.h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, obj.name), index.h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, constants.renderObjectTypeWithIcon(obj.type)), index.h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, obj.description), index.h("ch-tabular-grid-cell", { class: "tabular-grid-cell" }, constants.renderObjectStateWithIcon(obj.state))))))) : (index.h("ch-tabular-grid-rowset", { class: "tabular-grid-rowset" }, index.h("ch-tabular-grid-rowset-empty", null, index.h("gx-ide-empty-state", { stateIconSrc: constants.ICONS.filter, stateTitle: __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").emptyHistoryDetailText, isAnimated: true })))), index.h("ch-tabular-grid-row", { class: "tabular-grid-row" })));
        });
        _GxIdeTeamDevHistory_renderLoader.set(this, () => {
            return (this.loading && (index.h("div", { class: "main__content scrollable" }, index.h("gx-ide-loader", { loaderTitle: __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").loader.title, show: true, description: __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").loader.description }))));
        });
        _GxIdeTeamDevHistory_formatHistoryDetailDate.set(this, (title) => {
            const parts = title.split(" - ");
            const datePart = new Date(parts[1]);
            const formattedDate = helpers.formatDate(datePart, "date-time");
            return `${parts[0]} - ${formattedDate} - ${parts[2]}`;
        });
        _GxIdeTeamDevHistory_reloadHandler.set(this, async () => {
            this.loading = true;
            await __classPrivateFieldGet(this, _GxIdeTeamDevHistory_selectKBItemsEL, "f").reloadItems();
        });
        this.historyDetail = undefined;
        this.objects = [];
        this.sidebarExpanded = true;
        this.filtersHidden = true;
        this.loading = true;
        this.selectedRevisionId = undefined;
        this.hasActiveVersion = false;
        this.types = undefined;
        this.itemContextMenuCallback = undefined;
        this.gridContextMenuCallback = undefined;
        this.loadVersionsCallback = undefined;
        this.loadCallback = undefined;
        this.loadDetailCallback = undefined;
        this.selectedVersionChangeCallback = undefined;
    }
    async componentWillLoad() {
        __classPrivateFieldSet(this, _GxIdeTeamDevHistory__componentLocale, await locale.Locale.getComponentStrings(this.el), "f");
        __classPrivateFieldSet(this, _GxIdeTeamDevHistory_types, mapObjectTypeToComboBoxItemModel(this.types), "f");
    }
    async componentDidLoad() {
        __classPrivateFieldGet(this, _GxIdeTeamDevHistory_sidebarEl, "f").addEventListener("expandedChange", (e) => {
            this.sidebarExpanded = e.detail;
        });
    }
    async reload() {
        await __classPrivateFieldGet(this, _GxIdeTeamDevHistory_reloadHandler, "f").call(this);
    }
    render() {
        var _a;
        return (index.h(index.Host, { class: "widget" }, index.h("ch-theme", { model: CSS_BUNDLES }), index.h("ch-sidebar", { ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevHistory_sidebarEl, el, "f")), class: "sidebar", expanded: this.sidebarExpanded, expandButtonCollapseAccessibleName: __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").sidebar.collapseAriaLabel, expandButtonExpandAccessibleName: __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").sidebar.expandAriaLabel, showExpandButton: true }, index.h("gx-ide-select-kb-items", { class: {
                "sidebar-expanded": this.sidebarExpanded,
                "has-active-version": this.hasActiveVersion
            }, checkboxType: "none", loadItemsCallback: () => this.loadVersionsCallback(), expandOnClick: false, selectionChanged: __classPrivateFieldGet(this, _GxIdeTeamDevHistory_selectedVersionChanged, "f"), itemContextMenuCallback: (info) => this.itemContextMenuCallback(info), ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevHistory_selectKBItemsEL, el, "f")) })), index.h("main", { class: "main spacing-body-block-start spacing-body-inline" }, index.h("div", { class: "main__header" }, index.h("div", { class: "search-filter" }, index.h("div", { class: "field field-inline" }, index.h("label", { class: "label", htmlFor: "search" }, __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").filters.search), index.h("ch-edit", { value: "", class: "input", startImgSrc: constants.ICONS.search, part: "search", id: "search", ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevHistory_searchEl, el, "f")) })), index.h("button", { id: "filter-toggle-button", class: "button-secondary button-icon-only", "aria-label": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").searchFilter.filterAriaLabel, "aria-expanded": this.filtersHidden ? "false" : "true", "aria-controls": "filters-container", onClick: () => __classPrivateFieldGet(this, _GxIdeTeamDevHistory_toggleFiltersHandler, "f").call(this) }, index.h("ch-image", { class: "icon-m", src: constants.ICONS.filter })), index.h("button", { class: "button-secondary button-icon-only", "aria-label": __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").searchFilter.reloadAriaLabel, onClick: () => __classPrivateFieldGet(this, _GxIdeTeamDevHistory_reloadHandler, "f").call(this), part: __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").searchFilter.reloadAriaLabel }, index.h("ch-image", { class: "icon-m", src: constants.ICONS.refresh }))), index.h("div", { id: "filters-container", "aria-labelledby": "filter-toggle-button", class: {
                "filters-container-visible": !this.filtersHidden,
                "filters-container": true
            }, inert: this.filtersHidden, hidden: this.filtersHidden }, index.h("div", null, index.h("div", { class: "filters-grid field-group" }, index.h("div", { class: "field field-block field-from" }, index.h("label", { class: "label", htmlFor: "from" }, __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").filters.from), index.h("ch-edit", { value: "", class: "input", type: "date", part: "from", id: "from", ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevHistory_fromEl, el, "f")) })), index.h("div", { class: "field field-block field-to" }, index.h("label", { class: "label", htmlFor: "to" }, __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").filters.to), index.h("ch-edit", { value: "", class: "input", type: "date", id: "to", ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevHistory_toEl, el, "f")) })), index.h("div", { class: "field field-block field-type" }, index.h("label", { class: "label", htmlFor: "type" }, __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").filters.type), index.h("ch-combo-box-render", { accessibleName: "types", class: "combo-box", part: "type", model: __classPrivateFieldGet(this, _GxIdeTeamDevHistory_types, "f"), value: (_a = __classPrivateFieldGet(this, _GxIdeTeamDevHistory_types, "f")[0]) === null || _a === void 0 ? void 0 : _a.value, ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevHistory_typesEl, el, "f")) })), index.h("div", { class: "field field-block field-user" }, index.h("label", { class: "label", htmlFor: "user" }, __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").filters.user), index.h("ch-edit", { value: "", part: "user", class: "input", id: "user", ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevHistory_userEl, el, "f")) })), index.h("div", { class: "field field-block field-revision" }, index.h("label", { class: "label", htmlFor: "revision" }, __classPrivateFieldGet(this, _GxIdeTeamDevHistory__componentLocale, "f").filters.revision), index.h("ch-edit", { value: "", part: "revision", class: "input", id: "revision", ref: (el) => (__classPrivateFieldSet(this, _GxIdeTeamDevHistory_revisionEl, el, "f")) })))))), __classPrivateFieldGet(this, _GxIdeTeamDevHistory_renderLoader, "f").call(this), !this.loading && (index.h("div", { class: "main__content scrollable" }, __classPrivateFieldGet(this, _GxIdeTeamDevHistory_renderCommitsGrid, "f").call(this), index.h("div", { class: "field field-block" }, index.h("label", { class: "label", htmlFor: "comment-area" }, this.historyDetail ? this.historyDetail.title : null), index.h("ch-edit", { class: "input comment-text-area", value: this.historyDetail ? this.historyDetail.comment : null, multiline: true, autoGrow: true, readonly: true, part: "comment-area", id: "comment-area" })), __classPrivateFieldGet(this, _GxIdeTeamDevHistory_renderAffectedObjectsGrid, "f").call(this))))));
    }
    static get assetsDirs() { return ["gx-ide-assets/team-dev-history"]; }
    get el() { return index.getElement(this); }
};
_GxIdeTeamDevHistory__componentLocale = new WeakMap(), _GxIdeTeamDevHistory_types = new WeakMap(), _GxIdeTeamDevHistory_fromEl = new WeakMap(), _GxIdeTeamDevHistory_revisionEl = new WeakMap(), _GxIdeTeamDevHistory_searchEl = new WeakMap(), _GxIdeTeamDevHistory_toEl = new WeakMap(), _GxIdeTeamDevHistory_typesEl = new WeakMap(), _GxIdeTeamDevHistory_userEl = new WeakMap(), _GxIdeTeamDevHistory_sidebarEl = new WeakMap(), _GxIdeTeamDevHistory_revisionsGridEl = new WeakMap(), _GxIdeTeamDevHistory_selectKBItemsEL = new WeakMap(), _GxIdeTeamDevHistory_selectedVersionChanged = new WeakMap(), _GxIdeTeamDevHistory_getObjectsFromVersion = new WeakMap(), _GxIdeTeamDevHistory_getSelectedRevision = new WeakMap(), _GxIdeTeamDevHistory_registerGridContextMenuListener = new WeakMap(), _GxIdeTeamDevHistory_gridContextMenuCallbackHandler = new WeakMap(), _GxIdeTeamDevHistory_toggleFiltersHandler = new WeakMap(), _GxIdeTeamDevHistory_renderCommitsGrid = new WeakMap(), _GxIdeTeamDevHistory_renderAffectedObjectsGrid = new WeakMap(), _GxIdeTeamDevHistory_renderLoader = new WeakMap(), _GxIdeTeamDevHistory_formatHistoryDetailDate = new WeakMap(), _GxIdeTeamDevHistory_reloadHandler = new WeakMap();
GxIdeTeamDevHistory.style = historyCss;

exports.gx_ide_team_dev_history = GxIdeTeamDevHistory;

//# sourceMappingURL=gx-ide-team-dev-history.cjs.entry.js.map