var __decorate = (this && this.__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;
};
import { Component, ViewEncapsulation } from '@angular/core';
import { RegisterClass } from '@memberjunction/global';
import { BaseResourceComponent } from '@memberjunction/ng-shared';
import * as i0 from "@angular/core";
import * as i1 from "@memberjunction/ng-base-application";
import * as i2 from "@memberjunction/ng-list-management";
/**
 * "Shared With Me" tab for the Lists app (mockup 17). Thin shell around
 * the generic `mj-lists-shared-with-me` component — handles routing the
 * `OpenList` event into the explorer's tab system. The generic component
 * stays framework-agnostic by design (no Router import).
 */
let ListsSharedWithMeResource = class ListsSharedWithMeResource extends BaseResourceComponent {
    cdr;
    tabService;
    constructor(cdr, tabService) {
        super();
        this.cdr = cdr;
        this.tabService = tabService;
    }
    async ngOnInit() {
        super.ngOnInit();
        this.NotifyLoadComplete();
    }
    ngOnDestroy() {
        super.ngOnDestroy();
    }
    onOpenList(payload) {
        const appId = this.Data?.Configuration?.applicationId || '';
        this.tabService.OpenList(payload.ListID, payload.ListName, appId);
    }
    async GetResourceDisplayName(_data) {
        return 'Shared With Me';
    }
    async GetResourceIconClass(_data) {
        return 'fa-solid fa-share-nodes';
    }
    static ɵfac = function ListsSharedWithMeResource_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ListsSharedWithMeResource)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.TabService)); };
    static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ListsSharedWithMeResource, selectors: [["mj-lists-shared-with-me-resource"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 0, consts: [[1, "lists-shared-resource"], [1, "shared-header"], [1, "shared-header__titleblock"], [1, "fa-solid", "fa-share-nodes"], [3, "OpenList"]], template: function ListsSharedWithMeResource_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2);
            i0.ɵɵelement(3, "i", 3);
            i0.ɵɵelementStart(4, "h2");
            i0.ɵɵtext(5, "Shared With Me");
            i0.ɵɵelementEnd()()();
            i0.ɵɵelementStart(6, "mj-lists-shared-with-me", 4);
            i0.ɵɵlistener("OpenList", function ListsSharedWithMeResource_Template_mj_lists_shared_with_me_OpenList_6_listener($event) { return ctx.onOpenList($event); });
            i0.ɵɵelementEnd()();
        } }, dependencies: [i2.ListsSharedWithMeComponent], styles: ["\n    .lists-shared-resource {\n      display: flex;\n      flex-direction: column;\n      height: 100%;\n      padding: 16px 24px;\n      gap: 16px;\n      overflow: hidden;\n    }\n    .shared-header {\n      display: flex;\n      align-items: center;\n      justify-content: space-between;\n      gap: 12px;\n    }\n    .shared-header__titleblock {\n      display: flex;\n      align-items: center;\n      gap: 12px;\n    }\n    .shared-header__titleblock i {\n      font-size: 20px;\n      color: var(--mj-brand-primary);\n    }\n    .shared-header__titleblock h2 {\n      font-size: 18px;\n      font-weight: 600;\n      margin: 0;\n      color: var(--mj-text-primary);\n    }\n    mj-lists-shared-with-me {\n      flex: 1;\n      min-height: 0;\n      overflow: auto;\n    }\n  "], encapsulation: 2 });
};
ListsSharedWithMeResource = __decorate([
    RegisterClass(BaseResourceComponent, 'ListsSharedWithMeResource')
], ListsSharedWithMeResource);
export { ListsSharedWithMeResource };
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ListsSharedWithMeResource, [{
        type: Component,
        args: [{ standalone: false, selector: 'mj-lists-shared-with-me-resource', template: `
    <div class="lists-shared-resource">
      <div class="shared-header">
        <div class="shared-header__titleblock">
          <i class="fa-solid fa-share-nodes"></i>
          <h2>Shared With Me</h2>
        </div>
      </div>
      <mj-lists-shared-with-me (OpenList)="onOpenList($event)"></mj-lists-shared-with-me>
    </div>
  `, encapsulation: ViewEncapsulation.None, styles: ["\n    .lists-shared-resource {\n      display: flex;\n      flex-direction: column;\n      height: 100%;\n      padding: 16px 24px;\n      gap: 16px;\n      overflow: hidden;\n    }\n    .shared-header {\n      display: flex;\n      align-items: center;\n      justify-content: space-between;\n      gap: 12px;\n    }\n    .shared-header__titleblock {\n      display: flex;\n      align-items: center;\n      gap: 12px;\n    }\n    .shared-header__titleblock i {\n      font-size: 20px;\n      color: var(--mj-brand-primary);\n    }\n    .shared-header__titleblock h2 {\n      font-size: 18px;\n      font-weight: 600;\n      margin: 0;\n      color: var(--mj-text-primary);\n    }\n    mj-lists-shared-with-me {\n      flex: 1;\n      min-height: 0;\n      overflow: auto;\n    }\n  "] }]
    }], () => [{ type: i0.ChangeDetectorRef }, { type: i1.TabService }], null); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ListsSharedWithMeResource, { className: "ListsSharedWithMeResource", filePath: "src/Lists/components/lists-shared-with-me-resource.component.ts", lineNumber: 66 }); })();
/** Tree-shaking prevention */
export function LoadListsSharedWithMeResource() { }
//# sourceMappingURL=lists-shared-with-me-resource.component.js.map