import { Component, Input, Output, EventEmitter } from '@angular/core';
import { RunView } from '@memberjunction/core';
import { UUIDsEqual } from '@memberjunction/global';
import * as i0 from "@angular/core";
import * as i1 from "@memberjunction/ng-shared";
import * as i2 from "@angular/forms";
import * as i3 from "@memberjunction/ng-ui-components";
const _forTrack0 = ($index, $item) => $item.ID;
function EntitySelectorDialogComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "i");
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵclassMap(ctx_r0.config.icon);
} }
function EntitySelectorDialogComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 8);
    i0.ɵɵelement(1, "i", 15);
    i0.ɵɵelementStart(2, "p");
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate1("Loading ", ctx_r0.config.entityName, "...");
} }
function EntitySelectorDialogComponent_Conditional_11_Conditional_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 16);
    i0.ɵɵelement(1, "i", 18);
    i0.ɵɵelementStart(2, "p");
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate1("No ", ctx_r0.config.entityName, " found");
} }
function EntitySelectorDialogComponent_Conditional_11_Conditional_2_For_2_Conditional_6_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 24);
    i0.ɵɵtext(1);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const entity_r3 = i0.ɵɵnextContext().$implicit;
    const ctx_r0 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance();
    i0.ɵɵtextInterpolate(entity_r3[ctx_r0.config.descriptionField]);
} }
function EntitySelectorDialogComponent_Conditional_11_Conditional_2_For_2_Conditional_7_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 25)(1, "span", 26);
    i0.ɵɵtext(2);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const entity_r3 = i0.ɵɵnextContext().$implicit;
    const ctx_r0 = i0.ɵɵnextContext(3);
    i0.ɵɵadvance();
    i0.ɵɵclassProp("active", entity_r3[ctx_r0.config.statusField] === "Active");
    i0.ɵɵadvance();
    i0.ɵɵtextInterpolate1(" ", entity_r3[ctx_r0.config.statusField], " ");
} }
function EntitySelectorDialogComponent_Conditional_11_Conditional_2_For_2_Template(rf, ctx) { if (rf & 1) {
    const _r2 = i0.ɵɵgetCurrentView();
    i0.ɵɵelementStart(0, "div", 20);
    i0.ɵɵlistener("click", function EntitySelectorDialogComponent_Conditional_11_Conditional_2_For_2_Template_div_click_0_listener() { const entity_r3 = i0.ɵɵrestoreView(_r2).$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.selectEntity(entity_r3)); });
    i0.ɵɵelementStart(1, "div", 21);
    i0.ɵɵelement(2, "i");
    i0.ɵɵelementEnd();
    i0.ɵɵelementStart(3, "div", 22)(4, "div", 23);
    i0.ɵɵtext(5);
    i0.ɵɵelementEnd();
    i0.ɵɵconditionalCreate(6, EntitySelectorDialogComponent_Conditional_11_Conditional_2_For_2_Conditional_6_Template, 2, 1, "div", 24);
    i0.ɵɵconditionalCreate(7, EntitySelectorDialogComponent_Conditional_11_Conditional_2_For_2_Conditional_7_Template, 3, 3, "div", 25);
    i0.ɵɵelementEnd()();
} if (rf & 2) {
    const entity_r3 = ctx.$implicit;
    const ctx_r0 = i0.ɵɵnextContext(3);
    i0.ɵɵclassProp("selected", ctx_r0.IsEntitySelected(entity_r3));
    i0.ɵɵadvance(2);
    i0.ɵɵclassMap(ctx_r0.config.icon || "fa-solid fa-file");
    i0.ɵɵadvance(3);
    i0.ɵɵtextInterpolate(entity_r3[ctx_r0.config.displayField] || "Untitled");
    i0.ɵɵadvance();
    i0.ɵɵconditional(ctx_r0.config.descriptionField && entity_r3[ctx_r0.config.descriptionField] ? 6 : -1);
    i0.ɵɵadvance();
    i0.ɵɵconditional(ctx_r0.config.statusField && entity_r3[ctx_r0.config.statusField] ? 7 : -1);
} }
function EntitySelectorDialogComponent_Conditional_11_Conditional_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 17);
    i0.ɵɵrepeaterCreate(1, EntitySelectorDialogComponent_Conditional_11_Conditional_2_For_2_Template, 8, 7, "div", 19, _forTrack0);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext(2);
    i0.ɵɵadvance();
    i0.ɵɵrepeater(ctx_r0.filteredEntities);
} }
function EntitySelectorDialogComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 9);
    i0.ɵɵconditionalCreate(1, EntitySelectorDialogComponent_Conditional_11_Conditional_1_Template, 4, 1, "div", 16)(2, EntitySelectorDialogComponent_Conditional_11_Conditional_2_Template, 3, 0, "div", 17);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵconditional(ctx_r0.filteredEntities.length === 0 ? 1 : 2);
} }
export class EntitySelectorDialogComponent {
    constructor(sharedService) {
        this.sharedService = sharedService;
        this.entities = [];
        this.filteredEntities = [];
        this.selectedEntity = null;
        this.searchText = '';
        this.isLoading = true;
        this.DialogClosed = new EventEmitter();
    }
    async ngOnInit() {
        await this.loadEntities();
    }
    async loadEntities() {
        this.isLoading = true;
        try {
            const rv = new RunView();
            const result = await rv.RunView({
                EntityName: this.config.entityName,
                ExtraFilter: this.config.filters,
                OrderBy: this.config.orderBy
            });
            this.entities = result.Results;
            this.filteredEntities = [...this.entities];
        }
        catch (error) {
            console.error('Error loading entities:', error);
            this.entities = [];
            this.filteredEntities = [];
        }
        finally {
            this.isLoading = false;
        }
    }
    onSearchChange() {
        if (!this.searchText) {
            this.filteredEntities = [...this.entities];
        }
        else {
            const searchLower = this.searchText.toLowerCase();
            this.filteredEntities = this.entities.filter(entity => {
                const displayValue = entity[this.config.displayField] || '';
                const descriptionValue = this.config.descriptionField ? (entity[this.config.descriptionField] || '') : '';
                return displayValue.toLowerCase().includes(searchLower) ||
                    descriptionValue.toLowerCase().includes(searchLower);
            });
        }
    }
    selectEntity(entity) {
        this.selectedEntity = entity;
    }
    onSelect() {
        if (this.selectedEntity) {
            this.DialogClosed.emit({ entity: this.selectedEntity });
        }
    }
    createNew() {
        this.DialogClosed.emit({ createNew: true });
    }
    IsEntitySelected(entity) {
        return UUIDsEqual(this.selectedEntity?.ID, entity.ID);
    }
    onCancel() {
        this.DialogClosed.emit(null);
    }
    static { this.ɵfac = function EntitySelectorDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EntitySelectorDialogComponent)(i0.ɵɵdirectiveInject(i1.SharedService)); }; }
    static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EntitySelectorDialogComponent, selectors: [["mj-entity-selector-dialog"]], inputs: { config: "config" }, outputs: { DialogClosed: "DialogClosed" }, standalone: false, decls: 20, vars: 6, consts: [[1, "dialog-wrapper"], [1, "dialog-header"], [3, "class"], [1, "dialog-content"], [1, "search-bar"], [1, "search-input-wrapper"], [1, "fa-solid", "fa-search", "search-icon"], ["placeholder", "Search...", 1, "mj-input", "search-input", 3, "ngModelChange", "ngModel"], [1, "loading-state"], [1, "entity-list-container"], [1, "dialog-actions"], ["mjButton", "", "variant", "primary", 3, "click"], [1, "fa-solid", "fa-plus"], ["mjButton", "", 3, "click"], ["mjButton", "", "variant", "primary", 3, "click", "disabled"], [1, "fa-solid", "fa-spinner", "fa-spin"], [1, "empty-state"], [1, "entity-list"], [1, "fa-solid", "fa-inbox"], [1, "entity-item", 3, "selected"], [1, "entity-item", 3, "click"], [1, "item-icon"], [1, "item-content"], [1, "item-title"], [1, "item-description"], [1, "item-status"], [1, "status-badge"]], template: function EntitySelectorDialogComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "h3");
            i0.ɵɵconditionalCreate(3, EntitySelectorDialogComponent_Conditional_3_Template, 1, 2, "i", 2);
            i0.ɵɵtext(4);
            i0.ɵɵelementEnd()();
            i0.ɵɵelementStart(5, "div", 3)(6, "div", 4)(7, "div", 5);
            i0.ɵɵelement(8, "i", 6);
            i0.ɵɵelementStart(9, "input", 7);
            i0.ɵɵtwoWayListener("ngModelChange", function EntitySelectorDialogComponent_Template_input_ngModelChange_9_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.searchText, $event) || (ctx.searchText = $event); return $event; });
            i0.ɵɵlistener("ngModelChange", function EntitySelectorDialogComponent_Template_input_ngModelChange_9_listener() { return ctx.onSearchChange(); });
            i0.ɵɵelementEnd()()();
            i0.ɵɵconditionalCreate(10, EntitySelectorDialogComponent_Conditional_10_Template, 4, 1, "div", 8);
            i0.ɵɵconditionalCreate(11, EntitySelectorDialogComponent_Conditional_11_Template, 3, 1, "div", 9);
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(12, "div", 10)(13, "button", 11);
            i0.ɵɵlistener("click", function EntitySelectorDialogComponent_Template_button_click_13_listener() { return ctx.createNew(); });
            i0.ɵɵelement(14, "i", 12);
            i0.ɵɵtext(15, " Create New ");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(16, "button", 13);
            i0.ɵɵlistener("click", function EntitySelectorDialogComponent_Template_button_click_16_listener() { return ctx.onCancel(); });
            i0.ɵɵtext(17, "Cancel");
            i0.ɵɵelementEnd();
            i0.ɵɵelementStart(18, "button", 14);
            i0.ɵɵlistener("click", function EntitySelectorDialogComponent_Template_button_click_18_listener() { return ctx.onSelect(); });
            i0.ɵɵtext(19, "Select");
            i0.ɵɵelementEnd()()();
        } if (rf & 2) {
            i0.ɵɵadvance(3);
            i0.ɵɵconditional(ctx.config.icon ? 3 : -1);
            i0.ɵɵadvance();
            i0.ɵɵtextInterpolate1(" ", ctx.config.title);
            i0.ɵɵadvance(5);
            i0.ɵɵtwoWayProperty("ngModel", ctx.searchText);
            i0.ɵɵadvance();
            i0.ɵɵconditional(ctx.isLoading ? 10 : -1);
            i0.ɵɵadvance();
            i0.ɵɵconditional(!ctx.isLoading ? 11 : -1);
            i0.ɵɵadvance(7);
            i0.ɵɵproperty("disabled", !ctx.selectedEntity);
        } }, dependencies: [i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgModel, i3.MJButtonDirective], styles: [".dialog-wrapper[_ngcontent-%COMP%] {\n            display: flex;\n            flex-direction: column;\n            height: 600px;\n            width: 800px;\n        }\n\n        .dialog-header[_ngcontent-%COMP%] {\n            padding: 16px;\n            border-bottom: 1px solid var(--mj-border-default);\n        }\n\n        .dialog-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%] {\n            margin: 0;\n            display: flex;\n            align-items: center;\n            gap: 8px;\n        }\n\n        .dialog-content[_ngcontent-%COMP%] {\n            display: flex;\n            flex-direction: column;\n            flex: 1;\n            padding: 16px;\n            gap: 16px;\n            overflow: hidden;\n        }\n\n        .dialog-actions[_ngcontent-%COMP%] {\n            padding: 16px;\n            border-top: 1px solid var(--mj-border-default);\n            display: flex;\n            gap: 8px;\n            justify-content: flex-end;\n        }\n\n        .search-bar[_ngcontent-%COMP%] {\n            display: flex;\n            gap: 12px;\n        }\n\n        .search-input-wrapper[_ngcontent-%COMP%] {\n            flex: 1;\n            position: relative;\n            display: flex;\n            align-items: center;\n        }\n\n        .search-icon[_ngcontent-%COMP%] {\n            position: absolute;\n            left: 10px;\n            color: var(--mj-text-muted);\n            pointer-events: none;\n        }\n\n        .search-input[_ngcontent-%COMP%] {\n            flex: 1;\n            padding-left: 32px;\n        }\n\n        .loading-state[_ngcontent-%COMP%], \n   .empty-state[_ngcontent-%COMP%] {\n            flex: 1;\n            display: flex;\n            flex-direction: column;\n            align-items: center;\n            justify-content: center;\n            color: var(--mj-text-muted);\n            gap: 12px;\n        }\n\n        .loading-state[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], \n   .empty-state[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] {\n            font-size: 48px;\n            color: var(--mj-border-default);\n        }\n\n        .entity-list-container[_ngcontent-%COMP%] {\n            flex: 1;\n            overflow-y: auto;\n            border: 1px solid var(--mj-border-default);\n            border-radius: 8px;\n            background: var(--mj-bg-surface-sunken);\n        }\n\n        .entity-list[_ngcontent-%COMP%] {\n            padding: 8px;\n        }\n\n        .entity-item[_ngcontent-%COMP%] {\n            display: flex;\n            align-items: center;\n            gap: 12px;\n            padding: 12px;\n            margin-bottom: 8px;\n            background: var(--mj-bg-surface-card);\n            border: 1px solid var(--mj-border-default);\n            border-radius: 8px;\n            cursor: pointer;\n            transition: all 0.2s ease;\n        }\n\n        .entity-item[_ngcontent-%COMP%]:hover {\n            border-color: var(--mj-brand-primary);\n            box-shadow: 0 2px 8px rgba(0,0,0,0.08);\n        }\n\n        .entity-item.selected[_ngcontent-%COMP%] {\n            background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n            border-color: var(--mj-brand-primary);\n        }\n\n        .item-icon[_ngcontent-%COMP%] {\n            width: 36px;\n            height: 36px;\n            background: var(--mj-bg-surface-sunken);\n            border-radius: 8px;\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            flex-shrink: 0;\n        }\n\n        .item-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%] {\n            color: var(--mj-brand-primary);\n            font-size: 16px;\n        }\n\n        .item-content[_ngcontent-%COMP%] {\n            flex: 1;\n            min-width: 0;\n        }\n\n        .item-title[_ngcontent-%COMP%] {\n            font-weight: 600;\n            color: var(--mj-text-primary);\n            margin-bottom: 4px;\n        }\n\n        .item-description[_ngcontent-%COMP%] {\n            font-size: 13px;\n            color: var(--mj-text-muted);\n            line-height: 1.4;\n            display: -webkit-box;\n            -webkit-line-clamp: 2;\n            -webkit-box-orient: vertical;\n            overflow: hidden;\n        }\n\n        .item-status[_ngcontent-%COMP%] {\n            margin-top: 4px;\n        }\n\n        .status-badge[_ngcontent-%COMP%] {\n            font-size: 11px;\n            padding: 2px 8px;\n            border-radius: 12px;\n            background: var(--mj-bg-surface-sunken);\n            color: var(--mj-text-secondary);\n            font-weight: 500;\n        }\n\n        .status-badge.active[_ngcontent-%COMP%] {\n            background: #d4edda;\n            color: #28a745;\n        }"] }); }
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EntitySelectorDialogComponent, [{
        type: Component,
        args: [{ standalone: false, selector: 'mj-entity-selector-dialog', template: `
        <div class="dialog-wrapper">
          <div class="dialog-header">
            <h3>@if (config.icon) {
              <i [class]="config.icon"></i>
            } {{ config.title }}</h3>
          </div>
          <div class="dialog-content">
            <!-- Search Bar -->
            <div class="search-bar">
              <div class="search-input-wrapper">
                <i class="fa-solid fa-search search-icon"></i>
                <input class="mj-input search-input" [(ngModel)]="searchText" placeholder="Search..." (ngModelChange)="onSearchChange()" />
              </div>
            </div>
        
            <!-- Loading State -->
            @if (isLoading) {
              <div class="loading-state">
                <i class="fa-solid fa-spinner fa-spin"></i>
                <p>Loading {{ config.entityName }}...</p>
              </div>
            }
        
            <!-- Entity List -->
            @if (!isLoading) {
              <div class="entity-list-container">
                @if (filteredEntities.length === 0) {
                  <div class="empty-state">
                    <i class="fa-solid fa-inbox"></i>
                    <p>No {{ config.entityName }} found</p>
                  </div>
                } @else {
                  <div class="entity-list">
                    @for (entity of filteredEntities; track entity.ID) {
                      <div class="entity-item"
                        [class.selected]="IsEntitySelected(entity)"
                        (click)="selectEntity(entity)">
                        <div class="item-icon">
                          <i [class]="config.icon || 'fa-solid fa-file'"></i>
                        </div>
                        <div class="item-content">
                          <div class="item-title">{{ entity[config.displayField] || 'Untitled' }}</div>
                          @if (config.descriptionField && entity[config.descriptionField]) {
                            <div class="item-description">{{ entity[config.descriptionField] }}</div>
                          }
                          @if (config.statusField && entity[config.statusField]) {
                            <div class="item-status">
                              <span class="status-badge" [class.active]="entity[config.statusField] === 'Active'">
                                {{ entity[config.statusField] }}
                              </span>
                            </div>
                          }
                        </div>
                      </div>
                    }
                  </div>
                }
              </div>
            }
          </div>
          <div class="dialog-actions">
            <button mjButton variant="primary" (click)="createNew()">
              <i class="fa-solid fa-plus"></i> Create New
            </button>
            <button mjButton (click)="onCancel()">Cancel</button>
            <button mjButton variant="primary" [disabled]="!selectedEntity" (click)="onSelect()">Select</button>
          </div>
        </div>
        `, styles: ["\n        .dialog-wrapper {\n            display: flex;\n            flex-direction: column;\n            height: 600px;\n            width: 800px;\n        }\n\n        .dialog-header {\n            padding: 16px;\n            border-bottom: 1px solid var(--mj-border-default);\n        }\n\n        .dialog-header h3 {\n            margin: 0;\n            display: flex;\n            align-items: center;\n            gap: 8px;\n        }\n\n        .dialog-content {\n            display: flex;\n            flex-direction: column;\n            flex: 1;\n            padding: 16px;\n            gap: 16px;\n            overflow: hidden;\n        }\n\n        .dialog-actions {\n            padding: 16px;\n            border-top: 1px solid var(--mj-border-default);\n            display: flex;\n            gap: 8px;\n            justify-content: flex-end;\n        }\n\n        .search-bar {\n            display: flex;\n            gap: 12px;\n        }\n\n        .search-input-wrapper {\n            flex: 1;\n            position: relative;\n            display: flex;\n            align-items: center;\n        }\n\n        .search-icon {\n            position: absolute;\n            left: 10px;\n            color: var(--mj-text-muted);\n            pointer-events: none;\n        }\n\n        .search-input {\n            flex: 1;\n            padding-left: 32px;\n        }\n\n        .loading-state,\n        .empty-state {\n            flex: 1;\n            display: flex;\n            flex-direction: column;\n            align-items: center;\n            justify-content: center;\n            color: var(--mj-text-muted);\n            gap: 12px;\n        }\n\n        .loading-state i,\n        .empty-state i {\n            font-size: 48px;\n            color: var(--mj-border-default);\n        }\n\n        .entity-list-container {\n            flex: 1;\n            overflow-y: auto;\n            border: 1px solid var(--mj-border-default);\n            border-radius: 8px;\n            background: var(--mj-bg-surface-sunken);\n        }\n\n        .entity-list {\n            padding: 8px;\n        }\n\n        .entity-item {\n            display: flex;\n            align-items: center;\n            gap: 12px;\n            padding: 12px;\n            margin-bottom: 8px;\n            background: var(--mj-bg-surface-card);\n            border: 1px solid var(--mj-border-default);\n            border-radius: 8px;\n            cursor: pointer;\n            transition: all 0.2s ease;\n        }\n\n        .entity-item:hover {\n            border-color: var(--mj-brand-primary);\n            box-shadow: 0 2px 8px rgba(0,0,0,0.08);\n        }\n\n        .entity-item.selected {\n            background: color-mix(in srgb, var(--mj-brand-primary) 10%, var(--mj-bg-surface));\n            border-color: var(--mj-brand-primary);\n        }\n\n        .item-icon {\n            width: 36px;\n            height: 36px;\n            background: var(--mj-bg-surface-sunken);\n            border-radius: 8px;\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            flex-shrink: 0;\n        }\n\n        .item-icon i {\n            color: var(--mj-brand-primary);\n            font-size: 16px;\n        }\n\n        .item-content {\n            flex: 1;\n            min-width: 0;\n        }\n\n        .item-title {\n            font-weight: 600;\n            color: var(--mj-text-primary);\n            margin-bottom: 4px;\n        }\n\n        .item-description {\n            font-size: 13px;\n            color: var(--mj-text-muted);\n            line-height: 1.4;\n            display: -webkit-box;\n            -webkit-line-clamp: 2;\n            -webkit-box-orient: vertical;\n            overflow: hidden;\n        }\n\n        .item-status {\n            margin-top: 4px;\n        }\n\n        .status-badge {\n            font-size: 11px;\n            padding: 2px 8px;\n            border-radius: 12px;\n            background: var(--mj-bg-surface-sunken);\n            color: var(--mj-text-secondary);\n            font-weight: 500;\n        }\n\n        .status-badge.active {\n            background: #d4edda;\n            color: #28a745;\n        }\n    "] }]
    }], () => [{ type: i1.SharedService }], { config: [{
            type: Input
        }], DialogClosed: [{
            type: Output
        }] }); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EntitySelectorDialogComponent, { className: "EntitySelectorDialogComponent", filePath: "src/lib/custom/shared/entity-selector-dialog.component.ts", lineNumber: 259 }); })();
//# sourceMappingURL=entity-selector-dialog.component.js.map