import { r as registerInstance, g as getAssetPath, h, F as Fragment, H as Host, a as getElement } from './index-b153bfd0.js';
import { g as getIconPath } from './assets-manager-7d6fc08f.js';
import './mer-animated-dots-7cbae6ef.js';
import 'lit';
import 'lit/directives/when.js';
import 'lit/directives/if-defined.js';
import { c as config } from './config-5a775b7a.js';
import { v as validateControls } from './form-validation-21ab3766.js';
import { L as Locale } from './locale-e5107fad.js';

const mapKbsModelToActionListModel = (kbsData) => {
    const listBoxItems = [];
    kbsData.forEach(kb => {
        listBoxItems.push({
            id: kb.id,
            type: "actionable",
            caption: kb.name
        });
    });
    return listBoxItems;
};

const createKbFromServerCss = "button.button-secondary{border-color:var(--color-border-neutral-default)}:host{display:grid;block-size:100%;grid-template-rows:max-content 1fr max-content}.section{display:contents}header{display:grid;grid-template-rows:max-content;grid-template-columns:1fr 1fr max-content}.button-change{align-self:center;justify-self:end}.main{display:grid;grid-template-columns:1fr;grid-template-rows:max-content 1fr max-content max-content;position:relative}.search-kbs{inline-size:50%}.versions-container{grid-auto-rows:max-content}.versions-container__input{display:grid;grid-template-columns:1fr max-content;gap:var(--spacing-gap-m)}.location-custom-wrapper{display:flex;align-items:center;gap:var(--spacing-gap-xs);flex-grow:1;min-inline-size:0}.location-field{flex-grow:1;min-inline-size:0}.location-field>.input{inline-size:100%}";

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 __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 _GxIdeCreateKbFromServer_chSearchIcon, _GxIdeCreateKbFromServer_showMoreIcon, _GxIdeCreateKbFromServer_versionsSelect, _GxIdeCreateKbFromServer__componentLocale, _GxIdeCreateKbFromServer_kbsActionListModel, _GxIdeCreateKbFromServer_kbVersions, _GxIdeCreateKbFromServer_chShortcutsEl, _GxIdeCreateKbFromServer_shortcutsSrc, _GxIdeCreateKbFromServer_selectedKbId, _GxIdeCreateKbFromServer_kbNameAlreadyEditedByUser, _GxIdeCreateKbFromServer_locationModeModel, _GxIdeCreateKbFromServer_versionSelectedTypeEl, _GxIdeCreateKbFromServer_localKBNameEl, _GxIdeCreateKbFromServer_cancelHandler, _GxIdeCreateKbFromServer_changeConnectionHandler, _GxIdeCreateKbFromServer_locationModeChangeHandler, _GxIdeCreateKbFromServer_selectLocationHandler, _GxIdeCreateKbFromServer_inputKbLocationHandler, _GxIdeCreateKbFromServer_createHandler, _GxIdeCreateKbFromServer_evaluateTooltipRender, _GxIdeCreateKbFromServer_filterValueChangedHandler, _GxIdeCreateKbFromServer_init, _GxIdeCreateKbFromServer_initializeValidatableControls, _GxIdeCreateKbFromServer_inputLocalKbNameHandler, _GxIdeCreateKbFromServer_selectedVersionHandler, _GxIdeCreateKbFromServer_selectKbChangeHandler, _GxIdeCreateKbFromServer_versionsChangedHandler, _GxIdeCreateKbFromServer_sortItems, _GxIdeCreateKbFromServer_renderFooter;
const CSS_BUNDLES = [
    "resets/box-sizing",
    "utils/form--full",
    "utils/layout",
    "utils/typography",
    "utils/spacing",
    "components/list-box",
    "components/tooltip",
    "chameleon/scrollbar"
];
const INFO_ICON = getIconPath({
    category: "system",
    name: "information",
    colorType: "on-surface"
});
const FOLDER_ICON = getIconPath({
    category: "system",
    name: "folder",
    colorType: "primary"
});
const LOCATION_MODE_DEFAULT = "default";
const LOCATION_MODE_CUSTOM = "custom";
const GxIdeCreateKbFromServer = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
        _GxIdeCreateKbFromServer_chSearchIcon.set(this, getIconPath({
            category: "system",
            name: "search",
            colorType: "interactive"
        }));
        _GxIdeCreateKbFromServer_showMoreIcon.set(this, getIconPath({
            category: "system",
            name: "more-horizontal",
            colorType: "interactive"
        }));
        _GxIdeCreateKbFromServer_versionsSelect.set(this, [
            { value: "Trunk", caption: "Trunk Version" },
            { value: "All", caption: "All Versions" },
            { value: "Select", caption: "Select Version" }
        ]);
        _GxIdeCreateKbFromServer__componentLocale.set(this, void 0);
        _GxIdeCreateKbFromServer_kbsActionListModel.set(this, []);
        _GxIdeCreateKbFromServer_kbVersions.set(this, []);
        _GxIdeCreateKbFromServer_chShortcutsEl.set(this, void 0);
        _GxIdeCreateKbFromServer_shortcutsSrc.set(this, getAssetPath(`./gx-ide-assets/create-kb-from-server/shortcuts.json`));
        _GxIdeCreateKbFromServer_selectedKbId.set(this, void 0);
        _GxIdeCreateKbFromServer_kbNameAlreadyEditedByUser.set(this, false);
        _GxIdeCreateKbFromServer_locationModeModel.set(this, void 0);
        _GxIdeCreateKbFromServer_versionSelectedTypeEl.set(this, void 0);
        _GxIdeCreateKbFromServer_localKBNameEl.set(this, void 0);
        _GxIdeCreateKbFromServer_cancelHandler.set(this, () => {
            this.cancelCallback();
        });
        _GxIdeCreateKbFromServer_changeConnectionHandler.set(this, async () => {
            this.changeConnectionCallback({
                authenticationType: this.connectionData.authenticationType,
                serverUrl: this.connectionData.serverUrl,
                userName: this.connectionData.userName,
                userPassword: this.connectionData.userPassword
            });
        });
        _GxIdeCreateKbFromServer_locationModeChangeHandler.set(this, (event) => {
            this.locationMode = event.detail;
            if (this.locationMode === LOCATION_MODE_DEFAULT) {
                this.kbLocation = "";
            }
        });
        _GxIdeCreateKbFromServer_selectLocationHandler.set(this, async () => {
            const location = await this.selectLocationCallback();
            if (location) {
                this.kbLocation = location;
            }
        });
        _GxIdeCreateKbFromServer_inputKbLocationHandler.set(this, (event) => {
            this.kbLocation = event.detail;
        });
        _GxIdeCreateKbFromServer_createHandler.set(this, async () => {
            if (this.versionSelectedType !== "Select") {
                __classPrivateFieldSet(this, _GxIdeCreateKbFromServer_kbVersions, [], "f");
            }
            this.createKBCallback({
                selectedKB: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_selectedKbId, "f"),
                versionSelected: this.versionSelectedType,
                localKBName: this.localKbNameInputValue,
                kbLocation: this.locationMode === LOCATION_MODE_CUSTOM
                    ? this.kbLocation || undefined
                    : undefined,
                versionList: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_kbVersions, "f")
            }).then((formSubmitResult) => {
                this.validatableControls = validateControls(formSubmitResult, this.validatableControls);
            });
        });
        // TODO: evaluate if this should be a global helper function.
        // It is used on other dialogs as well.
        _GxIdeCreateKbFromServer_evaluateTooltipRender.set(this, (controlReference) => {
            var _a, _b, _c;
            return ((_b = (_a = this.validatableControls) === null || _a === void 0 ? void 0 : _a.get(controlReference === null || controlReference === void 0 ? void 0 : controlReference.id)) === null || _b === void 0 ? void 0 : _b.hasError) &&
                ((_c = this.validatableControls.get(controlReference.id)) === null || _c === void 0 ? void 0 : _c.message) && (h("ch-tooltip", { class: "tooltip", actionElement: controlReference, blockAlign: config.tooltipSettings.blockAlign, inlineAlign: config.tooltipSettings.inlineAlign, delay: config.tooltipSettings.delay }, this.validatableControls.get(controlReference.id).message));
        });
        _GxIdeCreateKbFromServer_filterValueChangedHandler.set(this, (event) => {
            this.filterValue = event.detail.toLowerCase();
            this.kbsFilteredActionListModel = __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_kbsActionListModel, "f").filter((item) => item.caption.toLowerCase().includes(this.filterValue));
        });
        _GxIdeCreateKbFromServer_init.set(this, async () => {
            await this.getGXserverKBsCallback({
                authenticationType: this.connectionData.authenticationType,
                serverUrl: this.connectionData.serverUrl,
                userName: this.connectionData.userName,
                userPassword: this.connectionData.userPassword
            }).then(result => {
                __classPrivateFieldSet(this, _GxIdeCreateKbFromServer_kbsActionListModel, mapKbsModelToActionListModel(result), "f");
                this.kbsFilteredActionListModel = __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_kbsActionListModel, "f");
                this.filterValue = "";
            });
        });
        _GxIdeCreateKbFromServer_initializeValidatableControls.set(this, () => {
            // populate validatableControls with the controls that could have errors.
            const validatableControls = [__classPrivateFieldGet(this, _GxIdeCreateKbFromServer_localKBNameEl, "f")];
            validatableControls.forEach(validatableControl => {
                if (validatableControl.id) {
                    this.validatableControls.set(validatableControl.id, {
                        reference: validatableControl,
                        hasError: false,
                        message: undefined
                    });
                }
            });
        });
        _GxIdeCreateKbFromServer_inputLocalKbNameHandler.set(this, (event) => {
            this.localKbNameInputValue = event.detail;
            __classPrivateFieldSet(this, _GxIdeCreateKbFromServer_kbNameAlreadyEditedByUser, true, "f");
        });
        _GxIdeCreateKbFromServer_selectedVersionHandler.set(this, async () => {
            if (this.selectKBVersionsCallback) {
                await this.selectKBVersionsCallback(__classPrivateFieldGet(this, _GxIdeCreateKbFromServer_selectedKbId, "f")).then(result => {
                    if (result === null || result === void 0 ? void 0 : result.length) {
                        __classPrivateFieldSet(this, _GxIdeCreateKbFromServer_kbVersions, result.map(kbVersion => ({
                            id: kbVersion.id,
                            name: kbVersion.name
                        })), "f");
                        if (result.length === 1 && __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_kbVersions, "f")[0].id === 0) {
                            this.localKbNameInputValue = __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_selectedKbId, "f");
                            this.versionsValueInput =
                                __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").kb.versionsPlaceholder;
                        }
                        else if (result.length > 1) {
                            this.localKbNameInputValue = __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_selectedKbId, "f");
                            this.versionsValueInput = `${result.length.toString()} ${__classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").kb.versionSelectedFieldValue}`;
                        }
                        else {
                            this.localKbNameInputValue = `${__classPrivateFieldGet(this, _GxIdeCreateKbFromServer_selectedKbId, "f")}_${__classPrivateFieldGet(this, _GxIdeCreateKbFromServer_kbVersions, "f")[0].name}`;
                            this.versionsValueInput = `${result[0].name} ${__classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").kb.oneVersionSelectedFieldValue}`;
                        }
                    }
                });
            }
        });
        _GxIdeCreateKbFromServer_selectKbChangeHandler.set(this, (event) => {
            var _a;
            const item = (_a = event.detail[0]) === null || _a === void 0 ? void 0 : _a.item;
            if (item === undefined) {
                this.enableSelectVersionsButton = false;
                __classPrivateFieldSet(this, _GxIdeCreateKbFromServer_selectedKbId, undefined, "f");
                return;
            }
            this.enableSelectVersionsButton = true;
            __classPrivateFieldSet(this, _GxIdeCreateKbFromServer_selectedKbId, item.id, "f");
            if (__classPrivateFieldGet(this, _GxIdeCreateKbFromServer_kbNameAlreadyEditedByUser, "f")) {
                return;
            }
            this.localKbNameInputValue = item.caption;
            if (this.versionSelectedType === "Select") {
                this.versionsValueInput = "";
                __classPrivateFieldSet(this, _GxIdeCreateKbFromServer_kbVersions, [], "f");
            }
        });
        _GxIdeCreateKbFromServer_versionsChangedHandler.set(this, (event) => {
            this.versionSelectedType = event.detail;
        });
        _GxIdeCreateKbFromServer_sortItems.set(this, (model) => {
            model.sort((a, b) => {
                var _a, _b;
                return (_a = a.caption) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase().localeCompare((_b = b.caption) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase());
            });
        });
        _GxIdeCreateKbFromServer_renderFooter.set(this, () => {
            return (h("footer", { class: "footer dialog-footer-with-border spacing-body-inline spacing-body-block-end" }, h("div", { class: "buttons-spacer" }, h("button", {
                // cancel button
                class: "button-secondary", onClick: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_cancelHandler, "f"), part: "button button-cancel"
            }, __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").footer.cancel), h("button", {
                // create kb button
                class: "button-primary", onClick: this.enableSelectVersionsButton && __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_createHandler, "f"), disabled: !this.enableSelectVersionsButton, part: "button button-create-kb"
            }, __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").footer.createKb))));
        });
        this.enableSelectVersionsButton = false;
        this.localKbNameInputValue = "";
        this.loading = true;
        this.filterValue = "";
        this.kbsFilteredActionListModel = [];
        this.validatableControls = new Map();
        this.versionSelectedType = undefined;
        this.versionsValueInput = "";
        this.locationMode = LOCATION_MODE_DEFAULT;
        this.kbLocation = undefined;
        this.canSetLocation = false;
        this.connectionData = undefined;
        this.cancelCallback = undefined;
        this.changeConnectionCallback = undefined;
        this.createKBCallback = undefined;
        this.getGXserverKBsCallback = undefined;
        this.selectLocationCallback = undefined;
        this.selectKBVersionsCallback = undefined;
    }
    async componentDidLoad() {
        await __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_init, "f").call(this);
        this.loading = false;
    }
    async componentWillLoad() {
        __classPrivateFieldSet(this, _GxIdeCreateKbFromServer__componentLocale, await Locale.getComponentStrings(this.el), "f");
        __classPrivateFieldSet(this, _GxIdeCreateKbFromServer_locationModeModel, [
            {
                value: LOCATION_MODE_DEFAULT,
                caption: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").kb.kbLocationDefault
            },
            {
                value: LOCATION_MODE_CUSTOM,
                caption: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").kb.kbLocationCustom
            }
        ], "f");
    }
    /**
     * Suspends or reactivates the shortcuts
     */
    async suspendShortcuts(suspendShortcuts) {
        if (suspendShortcuts) {
            __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_chShortcutsEl, "f").suspend = true;
        }
        else {
            __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_chShortcutsEl, "f").suspend = false;
        }
    }
    render() {
        return (h(Host, { class: "widget" }, h("ch-theme", { model: CSS_BUNDLES }), h("ch-shortcuts", { src: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_shortcutsSrc, "f"), ref: (el) => (__classPrivateFieldSet(this, _GxIdeCreateKbFromServer_chShortcutsEl, el, "f")) }), h("section", { class: "section" }, h("header", { class: "header dialog-header-with-border space-body spacing-body-inline spacing-body-block-start" }, h("div", { class: "field field-block" }, h("label", { class: "label" }, __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").header.serverUrl), h("p", null, this.connectionData.serverUrl)), h("div", { class: "field field-block" }, h("label", { class: "label" }, __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").header.user), h("p", null, this.connectionData.userName)), h("button", { id: "change-connection-button", class: "button-tertiary button-change", onClick: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_changeConnectionHandler, "f") }, __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").header.change)), h("section", { class: "main field-group spacing-body" }, this.loading ? (h("gx-ide-loader", { loaderTitle: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").loader.title, description: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").loader.description, show: true })) : (h(Fragment, null, h("ch-edit", { class: "input search-kbs", id: "local-kb-name", startImgSrc: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_chSearchIcon, "f"), type: "search", onInput: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_filterValueChangedHandler, "f"), placeholder: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").kb.searchKbsPlaceholder }), __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_kbsActionListModel, "f").length === 0 ||
            this.kbsFilteredActionListModel.length === 0 ? (h("div", { class: "list-box" }, h("gx-ide-empty-state", { stateIconSrc: INFO_ICON, stateTitle: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").emptyKBsText, isAnimated: true }))) : (h("ch-action-list-render", { selection: "single", class: "list-box", onSelectedItemsChange: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_selectKbChangeHandler, "f"), model: this.kbsFilteredActionListModel, sortItemsCallback: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_sortItems, "f") })), h("div", { class: "versions-container field-group" }, h("ch-radio-group-render", { class: "radio-group", model: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_versionsSelect, "f"), onChange: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_versionsChangedHandler, "f"), value: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_versionsSelect, "f")[0].value, ref: (el) => {
                __classPrivateFieldSet(this, _GxIdeCreateKbFromServer_versionSelectedTypeEl, el, "f");
                if (__classPrivateFieldGet(this, _GxIdeCreateKbFromServer_versionSelectedTypeEl, "f")) {
                    this.versionSelectedType = __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_versionSelectedTypeEl, "f")
                        .value;
                }
            } }), this.versionSelectedType === "Select" && (h("div", { class: "versions-container__item field-group" }, h("div", { class: "field field-block" }, h("label", { class: "label", htmlFor: "control-id-1" }, __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").kb.versionsLabel), h("div", { class: "versions-container__input" }, h("ch-edit", { class: "input", readonly: true, placeholder: this.enableSelectVersionsButton
                ? __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").kb.versionsPlaceholder
                : __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").kb
                    .versionsPlaceholderDisabled, value: this.versionsValueInput }), h("button", { id: "select-version-button", class: "button-tertiary button-icon-only", onClick: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_selectedVersionHandler, "f"), disabled: !this.enableSelectVersionsButton }, h("ch-image", { src: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_showMoreIcon, "f"), class: "icon-m", disabled: !this.enableSelectVersionsButton }))))))), h("div", { class: "field field-block" }, h("label", { class: "label", htmlFor: "localKbName" }, __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").kb.localKbNameLabel), h("ch-edit", {
            // local kb name
            class: "input", id: "localKbName", value: this.localKbNameInputValue, onInput: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_inputLocalKbNameHandler, "f"), placeholder: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").kb.localKbNamePlaceholder, ref: (el) => {
                __classPrivateFieldSet(this, _GxIdeCreateKbFromServer_localKBNameEl, el, "f");
                if (__classPrivateFieldGet(this, _GxIdeCreateKbFromServer_localKBNameEl, "f")) {
                    __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_initializeValidatableControls, "f").call(this);
                }
            }
        }), __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_evaluateTooltipRender, "f").call(this, __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_localKBNameEl, "f"))), this.canSetLocation && (h("div", { class: "field field-block" }, h("label", { class: "label", htmlFor: "kbLocation" }, __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").kb.kbLocation), h("ch-radio-group-render", { class: "radio-group", id: "kbLocation", model: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_locationModeModel, "f"), value: LOCATION_MODE_DEFAULT, onChange: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_locationModeChangeHandler, "f") }), this.locationMode === LOCATION_MODE_CUSTOM && (h("div", { class: "location-custom-wrapper" }, h("div", { class: "location-field" }, h("ch-edit", { class: "input", value: this.kbLocation, id: "kbLocation", onInput: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_inputKbLocationHandler, "f") })), h("button", { class: "button-tertiary button-icon-only", "aria-label": __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").kb.selectLocationButton, title: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer__componentLocale, "f").kb.selectLocationButton, onClick: __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_selectLocationHandler, "f") }, h("ch-image", { class: "icon-m", type: "mask", src: FOLDER_ICON }))))))))), __classPrivateFieldGet(this, _GxIdeCreateKbFromServer_renderFooter, "f").call(this))));
    }
    static get assetsDirs() { return ["gx-ide-assets/create-kb-from-server"]; }
    get el() { return getElement(this); }
};
_GxIdeCreateKbFromServer_chSearchIcon = new WeakMap(), _GxIdeCreateKbFromServer_showMoreIcon = new WeakMap(), _GxIdeCreateKbFromServer_versionsSelect = new WeakMap(), _GxIdeCreateKbFromServer__componentLocale = new WeakMap(), _GxIdeCreateKbFromServer_kbsActionListModel = new WeakMap(), _GxIdeCreateKbFromServer_kbVersions = new WeakMap(), _GxIdeCreateKbFromServer_chShortcutsEl = new WeakMap(), _GxIdeCreateKbFromServer_shortcutsSrc = new WeakMap(), _GxIdeCreateKbFromServer_selectedKbId = new WeakMap(), _GxIdeCreateKbFromServer_kbNameAlreadyEditedByUser = new WeakMap(), _GxIdeCreateKbFromServer_locationModeModel = new WeakMap(), _GxIdeCreateKbFromServer_versionSelectedTypeEl = new WeakMap(), _GxIdeCreateKbFromServer_localKBNameEl = new WeakMap(), _GxIdeCreateKbFromServer_cancelHandler = new WeakMap(), _GxIdeCreateKbFromServer_changeConnectionHandler = new WeakMap(), _GxIdeCreateKbFromServer_locationModeChangeHandler = new WeakMap(), _GxIdeCreateKbFromServer_selectLocationHandler = new WeakMap(), _GxIdeCreateKbFromServer_inputKbLocationHandler = new WeakMap(), _GxIdeCreateKbFromServer_createHandler = new WeakMap(), _GxIdeCreateKbFromServer_evaluateTooltipRender = new WeakMap(), _GxIdeCreateKbFromServer_filterValueChangedHandler = new WeakMap(), _GxIdeCreateKbFromServer_init = new WeakMap(), _GxIdeCreateKbFromServer_initializeValidatableControls = new WeakMap(), _GxIdeCreateKbFromServer_inputLocalKbNameHandler = new WeakMap(), _GxIdeCreateKbFromServer_selectedVersionHandler = new WeakMap(), _GxIdeCreateKbFromServer_selectKbChangeHandler = new WeakMap(), _GxIdeCreateKbFromServer_versionsChangedHandler = new WeakMap(), _GxIdeCreateKbFromServer_sortItems = new WeakMap(), _GxIdeCreateKbFromServer_renderFooter = new WeakMap();
GxIdeCreateKbFromServer.style = createKbFromServerCss;

export { GxIdeCreateKbFromServer as gx_ide_create_kb_from_server };

//# sourceMappingURL=gx-ide-create-kb-from-server.entry.js.map