1302 lines
166 KiB
JavaScript
1302 lines
166 KiB
JavaScript
import { animate, style, transition, trigger } from '@angular/animations';
|
|
import { CommonModule, DOCUMENT, isPlatformBrowser } from '@angular/common';
|
|
import { ChangeDetectionStrategy, Component, ContentChildren, EventEmitter, Inject, Input, NgModule, Output, PLATFORM_ID, ViewChild, ViewEncapsulation, booleanAttribute, effect, forwardRef, input, numberAttribute, signal } from '@angular/core';
|
|
import { RouterModule } from '@angular/router';
|
|
import { PrimeTemplate, SharedModule } from 'primeng/api';
|
|
import { ConnectedOverlayScrollHandler, DomHandler } from 'primeng/dom';
|
|
import { AngleRightIcon } from 'primeng/icons/angleright';
|
|
import { RippleModule } from 'primeng/ripple';
|
|
import { TooltipModule } from 'primeng/tooltip';
|
|
import { ObjectUtils, UniqueComponentId, ZIndexUtils } from 'primeng/utils';
|
|
import * as i0 from "@angular/core";
|
|
import * as i1 from "@angular/common";
|
|
import * as i2 from "@angular/router";
|
|
import * as i3 from "primeng/ripple";
|
|
import * as i4 from "primeng/tooltip";
|
|
import * as i5 from "primeng/api";
|
|
export class TieredMenuSub {
|
|
el;
|
|
renderer;
|
|
tieredMenu;
|
|
items;
|
|
itemTemplate;
|
|
root = false;
|
|
autoDisplay;
|
|
autoZIndex = true;
|
|
baseZIndex = 0;
|
|
popup;
|
|
menuId;
|
|
ariaLabel;
|
|
ariaLabelledBy;
|
|
level = 0;
|
|
focusedItemId;
|
|
activeItemPath = input([]);
|
|
tabindex = 0;
|
|
itemClick = new EventEmitter();
|
|
itemMouseEnter = new EventEmitter();
|
|
menuFocus = new EventEmitter();
|
|
menuBlur = new EventEmitter();
|
|
menuKeydown = new EventEmitter();
|
|
sublistViewChild;
|
|
constructor(el, renderer, tieredMenu) {
|
|
this.el = el;
|
|
this.renderer = renderer;
|
|
this.tieredMenu = tieredMenu;
|
|
effect(() => {
|
|
const path = this.activeItemPath();
|
|
if (ObjectUtils.isNotEmpty(path)) {
|
|
this.positionSubmenu();
|
|
}
|
|
});
|
|
}
|
|
ngAfterContentInit() {
|
|
this.positionSubmenu();
|
|
}
|
|
positionSubmenu() {
|
|
if (isPlatformBrowser(this.tieredMenu.platformId)) {
|
|
const sublist = this.sublistViewChild && this.sublistViewChild.nativeElement;
|
|
if (sublist && !DomHandler.hasClass(sublist, 'p-submenu-list-flipped')) {
|
|
const parentItem = sublist.parentElement.parentElement;
|
|
const containerOffset = DomHandler.getOffset(parentItem);
|
|
const viewport = DomHandler.getViewport();
|
|
const sublistWidth = sublist.offsetParent ? sublist.offsetWidth : DomHandler.getOuterWidth(sublist);
|
|
const itemOuterWidth = DomHandler.getOuterWidth(parentItem.children[0]);
|
|
if (parseInt(containerOffset.left, 10) + itemOuterWidth + sublistWidth > viewport.width - DomHandler.calculateScrollbarWidth()) {
|
|
DomHandler.addClass(sublist, 'p-submenu-list-flipped');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
getItemProp(processedItem, name, params = null) {
|
|
return processedItem && processedItem.item ? ObjectUtils.getItemValue(processedItem.item[name], params) : undefined;
|
|
}
|
|
getItemId(processedItem) {
|
|
return processedItem.item?.id ?? `${this.menuId}_${processedItem.key}`;
|
|
}
|
|
getItemKey(processedItem) {
|
|
return this.getItemId(processedItem);
|
|
}
|
|
getItemClass(processedItem) {
|
|
return {
|
|
...this.getItemProp(processedItem, 'class'),
|
|
'p-menuitem': true,
|
|
'p-highlight': this.isItemActive(processedItem),
|
|
'p-menuitem-active': this.isItemActive(processedItem),
|
|
'p-focus': this.isItemFocused(processedItem),
|
|
'p-disabled': this.isItemDisabled(processedItem)
|
|
};
|
|
}
|
|
getItemLabel(processedItem) {
|
|
return this.getItemProp(processedItem, 'label');
|
|
}
|
|
getSeparatorItemClass(processedItem) {
|
|
return {
|
|
...this.getItemProp(processedItem, 'class'),
|
|
'p-menuitem-separator': true
|
|
};
|
|
}
|
|
getAriaSetSize() {
|
|
return this.items.filter((processedItem) => this.isItemVisible(processedItem) && !this.getItemProp(processedItem, 'separator')).length;
|
|
}
|
|
getAriaPosInset(index) {
|
|
return (index -
|
|
this.items.slice(0, index).filter((processedItem) => {
|
|
const isItemVisible = this.isItemVisible(processedItem);
|
|
const isVisibleSeparator = isItemVisible && this.getItemProp(processedItem, 'separator');
|
|
return !isItemVisible || isVisibleSeparator;
|
|
}).length +
|
|
1);
|
|
}
|
|
isItemVisible(processedItem) {
|
|
return this.getItemProp(processedItem, 'visible') !== false;
|
|
}
|
|
isItemActive(processedItem) {
|
|
if (this.activeItemPath()) {
|
|
return this.activeItemPath().some((path) => path.key === processedItem.key);
|
|
}
|
|
}
|
|
isItemDisabled(processedItem) {
|
|
return this.getItemProp(processedItem, 'disabled');
|
|
}
|
|
isItemFocused(processedItem) {
|
|
return this.focusedItemId === this.getItemId(processedItem);
|
|
}
|
|
isItemGroup(processedItem) {
|
|
return ObjectUtils.isNotEmpty(processedItem.items);
|
|
}
|
|
onItemMouseEnter(param) {
|
|
if (this.autoDisplay) {
|
|
const { event, processedItem } = param;
|
|
this.itemMouseEnter.emit({ originalEvent: event, processedItem });
|
|
}
|
|
}
|
|
onItemClick(event, processedItem) {
|
|
this.getItemProp(processedItem, 'command', { originalEvent: event, item: processedItem.item });
|
|
this.itemClick.emit({ originalEvent: event, processedItem, isFocus: true });
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TieredMenuSub, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: forwardRef(() => TieredMenu) }], target: i0.ɵɵFactoryTarget.Component });
|
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "17.3.7", type: TieredMenuSub, selector: "p-tieredMenuSub", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: false, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: false, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoDisplay: { classPropertyName: "autoDisplay", publicName: "autoDisplay", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, menuId: { classPropertyName: "menuId", publicName: "menuId", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: false, isRequired: false, transformFunction: numberAttribute }, focusedItemId: { classPropertyName: "focusedItemId", publicName: "focusedItemId", isSignal: false, isRequired: false, transformFunction: null }, activeItemPath: { classPropertyName: "activeItemPath", publicName: "activeItemPath", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute } }, outputs: { itemClick: "itemClick", itemMouseEnter: "itemMouseEnter", menuFocus: "menuFocus", menuBlur: "menuBlur", menuKeydown: "menuKeydown" }, host: { classAttribute: "p-element" }, viewQueries: [{ propertyName: "sublistViewChild", first: true, predicate: ["sublist"], descendants: true, static: true }], ngImport: i0, template: `
|
|
<ul
|
|
#sublist
|
|
role="menu"
|
|
[ngClass]="{ 'p-submenu-list': !root, 'p-tieredmenu-root-list': root }"
|
|
[id]="menuId + '_list'"
|
|
[tabindex]="tabindex"
|
|
[attr.aria-label]="ariaLabel"
|
|
[attr.aria-labelledBy]="ariaLabelledBy"
|
|
[attr.aria-activedescendant]="focusedItemId"
|
|
[attr.aria-orientation]="'vertical'"
|
|
[attr.data-pc-section]="'menu'"
|
|
(keydown)="menuKeydown.emit($event)"
|
|
(focus)="menuFocus.emit($event)"
|
|
(blur)="menuBlur.emit($event)"
|
|
>
|
|
<ng-template ngFor let-processedItem [ngForOf]="items" let-index="index">
|
|
<li
|
|
*ngIf="isItemVisible(processedItem) && getItemProp(processedItem, 'separator')"
|
|
[attr.id]="getItemId(processedItem)"
|
|
[style]="getItemProp(processedItem, 'style')"
|
|
[ngClass]="getSeparatorItemClass(processedItem)"
|
|
role="separator"
|
|
[attr.data-pc-section]="'separator'"
|
|
></li>
|
|
<li
|
|
#listItem
|
|
*ngIf="isItemVisible(processedItem) && !getItemProp(processedItem, 'separator')"
|
|
role="menuitem"
|
|
[attr.id]="getItemId(processedItem)"
|
|
[attr.data-pc-section]="'menuitem'"
|
|
[attr.data-p-highlight]="isItemActive(processedItem)"
|
|
[attr.data-p-focused]="isItemFocused(processedItem)"
|
|
[attr.data-p-disabled]="isItemDisabled(processedItem)"
|
|
[attr.aria-label]="getItemLabel(processedItem)"
|
|
[attr.aria-disabled]="isItemDisabled(processedItem) || undefined"
|
|
[attr.aria-haspopup]="isItemGroup(processedItem) && !getItemProp(processedItem, 'to') ? 'menu' : undefined"
|
|
[attr.aria-expanded]="isItemGroup(processedItem) ? isItemActive(processedItem) : undefined"
|
|
[attr.aria-setsize]="getAriaSetSize()"
|
|
[attr.aria-posinset]="getAriaPosInset(index)"
|
|
[ngStyle]="getItemProp(processedItem, 'style')"
|
|
[ngClass]="getItemClass(processedItem)"
|
|
[class]="getItemProp(processedItem, 'styleClass')"
|
|
pTooltip
|
|
[tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
|
|
>
|
|
<div [attr.data-pc-section]="'content'" class="p-menuitem-content" (click)="onItemClick($event, processedItem)" (mouseenter)="onItemMouseEnter({$event, processedItem})">
|
|
<ng-container *ngIf="!itemTemplate">
|
|
<a
|
|
*ngIf="!getItemProp(processedItem, 'routerLink')"
|
|
[attr.href]="getItemProp(processedItem, 'url')"
|
|
[attr.data-automationid]="getItemProp(processedItem, 'automationId')"
|
|
[attr.data-pc-section]="'action'"
|
|
[target]="getItemProp(processedItem, 'target')"
|
|
[ngClass]="{ 'p-menuitem-link': true, 'p-disabled': getItemProp(processedItem, 'disabled') }"
|
|
[attr.tabindex]="-1"
|
|
pRipple
|
|
>
|
|
<span
|
|
*ngIf="getItemProp(processedItem, 'icon')"
|
|
class="p-menuitem-icon"
|
|
[ngClass]="getItemProp(processedItem, 'icon')"
|
|
[ngStyle]="getItemProp(processedItem, 'iconStyle')"
|
|
[attr.data-pc-section]="'icon'"
|
|
[attr.tabindex]="-1"
|
|
>
|
|
</span>
|
|
<span *ngIf="getItemProp(processedItem, 'escape'); else htmlLabel" class="p-menuitem-text" [attr.data-pc-section]="'label'">
|
|
{{ getItemLabel(processedItem) }}
|
|
</span>
|
|
<ng-template #htmlLabel>
|
|
<span class="p-menuitem-text" [innerHTML]="getItemLabel(processedItem)" [attr.data-pc-section]="'label'"></span>
|
|
</ng-template>
|
|
<span class="p-menuitem-badge" *ngIf="getItemProp(processedItem, 'badge')" [ngClass]="getItemProp(processedItem, 'badgeStyleClass')">{{ getItemProp(processedItem, 'badge') }}</span>
|
|
|
|
<ng-container *ngIf="isItemGroup(processedItem)">
|
|
<AngleRightIcon *ngIf="!tieredMenu.submenuIconTemplate" [styleClass]="'p-submenu-icon'" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true" />
|
|
<ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true"></ng-template>
|
|
</ng-container>
|
|
</a>
|
|
<a
|
|
*ngIf="getItemProp(processedItem, 'routerLink')"
|
|
[routerLink]="getItemProp(processedItem, 'routerLink')"
|
|
[attr.data-automationid]="getItemProp(processedItem, 'automationId')"
|
|
[attr.tabindex]="-1"
|
|
[attr.data-pc-section]="'action'"
|
|
[queryParams]="getItemProp(processedItem, 'queryParams')"
|
|
[routerLinkActive]="'p-menuitem-link-active'"
|
|
[routerLinkActiveOptions]="getItemProp(processedItem, 'routerLinkActiveOptions') || { exact: false }"
|
|
[target]="getItemProp(processedItem, 'target')"
|
|
[ngClass]="{ 'p-menuitem-link': true, 'p-disabled': getItemProp(processedItem, 'disabled') }"
|
|
[fragment]="getItemProp(processedItem, 'fragment')"
|
|
[queryParamsHandling]="getItemProp(processedItem, 'queryParamsHandling')"
|
|
[preserveFragment]="getItemProp(processedItem, 'preserveFragment')"
|
|
[skipLocationChange]="getItemProp(processedItem, 'skipLocationChange')"
|
|
[replaceUrl]="getItemProp(processedItem, 'replaceUrl')"
|
|
[state]="getItemProp(processedItem, 'state')"
|
|
pRipple
|
|
>
|
|
<span
|
|
*ngIf="getItemProp(processedItem, 'icon')"
|
|
class="p-menuitem-icon"
|
|
[ngClass]="getItemProp(processedItem, 'icon')"
|
|
[ngStyle]="getItemProp(processedItem, 'iconStyle')"
|
|
[attr.data-pc-section]="'icon'"
|
|
[attr.aria-hidden]="true"
|
|
[attr.tabindex]="-1"
|
|
>
|
|
</span>
|
|
<span *ngIf="getItemProp(processedItem, 'escape'); else htmlLabel" class="p-menuitem-text" [attr.data-pc-section]="'label'">
|
|
{{ getItemLabel(processedItem) }}
|
|
</span>
|
|
<ng-template #htmlLabel>
|
|
<span class="p-menuitem-text" [innerHTML]="getItemLabel(processedItem)" [attr.data-pc-section]="'label'"></span>
|
|
</ng-template>
|
|
<span class="p-menuitem-badge" *ngIf="getItemProp(processedItem, 'badge')" [ngClass]="getItemProp(processedItem, 'badgeStyleClass')">{{ getItemProp(processedItem, 'badge') }}</span>
|
|
|
|
<ng-container *ngIf="isItemGroup(processedItem)">
|
|
<AngleRightIcon *ngIf="!tieredMenu.submenuIconTemplate" [styleClass]="'p-submenu-icon'" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true" />
|
|
<ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true"></ng-template>
|
|
</ng-container>
|
|
</a>
|
|
</ng-container>
|
|
<ng-container *ngIf="itemTemplate">
|
|
<ng-template *ngTemplateOutlet="itemTemplate; context: { $implicit: processedItem.item, hasSubmenu: getItemProp(processedItem, 'items') }"></ng-template>
|
|
</ng-container>
|
|
</div>
|
|
|
|
<p-tieredMenuSub
|
|
*ngIf="isItemVisible(processedItem) && isItemGroup(processedItem)"
|
|
[items]="processedItem.items"
|
|
[itemTemplate]="itemTemplate"
|
|
[autoDisplay]="autoDisplay"
|
|
[menuId]="menuId"
|
|
[activeItemPath]="activeItemPath()"
|
|
[focusedItemId]="focusedItemId"
|
|
[ariaLabelledBy]="getItemId(processedItem)"
|
|
[level]="level + 1"
|
|
(itemClick)="itemClick.emit($event)"
|
|
(itemMouseEnter)="onItemMouseEnter($event)"
|
|
></p-tieredMenuSub>
|
|
</li>
|
|
</ng-template>
|
|
</ul>
|
|
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i1.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgForOf), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i0.forwardRef(() => i2.RouterLink), selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i0.forwardRef(() => i2.RouterLinkActive), selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: i0.forwardRef(() => i3.Ripple), selector: "[pRipple]" }, { kind: "directive", type: i0.forwardRef(() => i4.Tooltip), selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: i0.forwardRef(() => AngleRightIcon), selector: "AngleRightIcon" }, { kind: "component", type: i0.forwardRef(() => TieredMenuSub), selector: "p-tieredMenuSub", inputs: ["items", "itemTemplate", "root", "autoDisplay", "autoZIndex", "baseZIndex", "popup", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "tabindex"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TieredMenuSub, decorators: [{
|
|
type: Component,
|
|
args: [{
|
|
selector: 'p-tieredMenuSub',
|
|
template: `
|
|
<ul
|
|
#sublist
|
|
role="menu"
|
|
[ngClass]="{ 'p-submenu-list': !root, 'p-tieredmenu-root-list': root }"
|
|
[id]="menuId + '_list'"
|
|
[tabindex]="tabindex"
|
|
[attr.aria-label]="ariaLabel"
|
|
[attr.aria-labelledBy]="ariaLabelledBy"
|
|
[attr.aria-activedescendant]="focusedItemId"
|
|
[attr.aria-orientation]="'vertical'"
|
|
[attr.data-pc-section]="'menu'"
|
|
(keydown)="menuKeydown.emit($event)"
|
|
(focus)="menuFocus.emit($event)"
|
|
(blur)="menuBlur.emit($event)"
|
|
>
|
|
<ng-template ngFor let-processedItem [ngForOf]="items" let-index="index">
|
|
<li
|
|
*ngIf="isItemVisible(processedItem) && getItemProp(processedItem, 'separator')"
|
|
[attr.id]="getItemId(processedItem)"
|
|
[style]="getItemProp(processedItem, 'style')"
|
|
[ngClass]="getSeparatorItemClass(processedItem)"
|
|
role="separator"
|
|
[attr.data-pc-section]="'separator'"
|
|
></li>
|
|
<li
|
|
#listItem
|
|
*ngIf="isItemVisible(processedItem) && !getItemProp(processedItem, 'separator')"
|
|
role="menuitem"
|
|
[attr.id]="getItemId(processedItem)"
|
|
[attr.data-pc-section]="'menuitem'"
|
|
[attr.data-p-highlight]="isItemActive(processedItem)"
|
|
[attr.data-p-focused]="isItemFocused(processedItem)"
|
|
[attr.data-p-disabled]="isItemDisabled(processedItem)"
|
|
[attr.aria-label]="getItemLabel(processedItem)"
|
|
[attr.aria-disabled]="isItemDisabled(processedItem) || undefined"
|
|
[attr.aria-haspopup]="isItemGroup(processedItem) && !getItemProp(processedItem, 'to') ? 'menu' : undefined"
|
|
[attr.aria-expanded]="isItemGroup(processedItem) ? isItemActive(processedItem) : undefined"
|
|
[attr.aria-setsize]="getAriaSetSize()"
|
|
[attr.aria-posinset]="getAriaPosInset(index)"
|
|
[ngStyle]="getItemProp(processedItem, 'style')"
|
|
[ngClass]="getItemClass(processedItem)"
|
|
[class]="getItemProp(processedItem, 'styleClass')"
|
|
pTooltip
|
|
[tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
|
|
>
|
|
<div [attr.data-pc-section]="'content'" class="p-menuitem-content" (click)="onItemClick($event, processedItem)" (mouseenter)="onItemMouseEnter({$event, processedItem})">
|
|
<ng-container *ngIf="!itemTemplate">
|
|
<a
|
|
*ngIf="!getItemProp(processedItem, 'routerLink')"
|
|
[attr.href]="getItemProp(processedItem, 'url')"
|
|
[attr.data-automationid]="getItemProp(processedItem, 'automationId')"
|
|
[attr.data-pc-section]="'action'"
|
|
[target]="getItemProp(processedItem, 'target')"
|
|
[ngClass]="{ 'p-menuitem-link': true, 'p-disabled': getItemProp(processedItem, 'disabled') }"
|
|
[attr.tabindex]="-1"
|
|
pRipple
|
|
>
|
|
<span
|
|
*ngIf="getItemProp(processedItem, 'icon')"
|
|
class="p-menuitem-icon"
|
|
[ngClass]="getItemProp(processedItem, 'icon')"
|
|
[ngStyle]="getItemProp(processedItem, 'iconStyle')"
|
|
[attr.data-pc-section]="'icon'"
|
|
[attr.tabindex]="-1"
|
|
>
|
|
</span>
|
|
<span *ngIf="getItemProp(processedItem, 'escape'); else htmlLabel" class="p-menuitem-text" [attr.data-pc-section]="'label'">
|
|
{{ getItemLabel(processedItem) }}
|
|
</span>
|
|
<ng-template #htmlLabel>
|
|
<span class="p-menuitem-text" [innerHTML]="getItemLabel(processedItem)" [attr.data-pc-section]="'label'"></span>
|
|
</ng-template>
|
|
<span class="p-menuitem-badge" *ngIf="getItemProp(processedItem, 'badge')" [ngClass]="getItemProp(processedItem, 'badgeStyleClass')">{{ getItemProp(processedItem, 'badge') }}</span>
|
|
|
|
<ng-container *ngIf="isItemGroup(processedItem)">
|
|
<AngleRightIcon *ngIf="!tieredMenu.submenuIconTemplate" [styleClass]="'p-submenu-icon'" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true" />
|
|
<ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true"></ng-template>
|
|
</ng-container>
|
|
</a>
|
|
<a
|
|
*ngIf="getItemProp(processedItem, 'routerLink')"
|
|
[routerLink]="getItemProp(processedItem, 'routerLink')"
|
|
[attr.data-automationid]="getItemProp(processedItem, 'automationId')"
|
|
[attr.tabindex]="-1"
|
|
[attr.data-pc-section]="'action'"
|
|
[queryParams]="getItemProp(processedItem, 'queryParams')"
|
|
[routerLinkActive]="'p-menuitem-link-active'"
|
|
[routerLinkActiveOptions]="getItemProp(processedItem, 'routerLinkActiveOptions') || { exact: false }"
|
|
[target]="getItemProp(processedItem, 'target')"
|
|
[ngClass]="{ 'p-menuitem-link': true, 'p-disabled': getItemProp(processedItem, 'disabled') }"
|
|
[fragment]="getItemProp(processedItem, 'fragment')"
|
|
[queryParamsHandling]="getItemProp(processedItem, 'queryParamsHandling')"
|
|
[preserveFragment]="getItemProp(processedItem, 'preserveFragment')"
|
|
[skipLocationChange]="getItemProp(processedItem, 'skipLocationChange')"
|
|
[replaceUrl]="getItemProp(processedItem, 'replaceUrl')"
|
|
[state]="getItemProp(processedItem, 'state')"
|
|
pRipple
|
|
>
|
|
<span
|
|
*ngIf="getItemProp(processedItem, 'icon')"
|
|
class="p-menuitem-icon"
|
|
[ngClass]="getItemProp(processedItem, 'icon')"
|
|
[ngStyle]="getItemProp(processedItem, 'iconStyle')"
|
|
[attr.data-pc-section]="'icon'"
|
|
[attr.aria-hidden]="true"
|
|
[attr.tabindex]="-1"
|
|
>
|
|
</span>
|
|
<span *ngIf="getItemProp(processedItem, 'escape'); else htmlLabel" class="p-menuitem-text" [attr.data-pc-section]="'label'">
|
|
{{ getItemLabel(processedItem) }}
|
|
</span>
|
|
<ng-template #htmlLabel>
|
|
<span class="p-menuitem-text" [innerHTML]="getItemLabel(processedItem)" [attr.data-pc-section]="'label'"></span>
|
|
</ng-template>
|
|
<span class="p-menuitem-badge" *ngIf="getItemProp(processedItem, 'badge')" [ngClass]="getItemProp(processedItem, 'badgeStyleClass')">{{ getItemProp(processedItem, 'badge') }}</span>
|
|
|
|
<ng-container *ngIf="isItemGroup(processedItem)">
|
|
<AngleRightIcon *ngIf="!tieredMenu.submenuIconTemplate" [styleClass]="'p-submenu-icon'" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true" />
|
|
<ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate" [attr.data-pc-section]="'submenuicon'" [attr.aria-hidden]="true"></ng-template>
|
|
</ng-container>
|
|
</a>
|
|
</ng-container>
|
|
<ng-container *ngIf="itemTemplate">
|
|
<ng-template *ngTemplateOutlet="itemTemplate; context: { $implicit: processedItem.item, hasSubmenu: getItemProp(processedItem, 'items') }"></ng-template>
|
|
</ng-container>
|
|
</div>
|
|
|
|
<p-tieredMenuSub
|
|
*ngIf="isItemVisible(processedItem) && isItemGroup(processedItem)"
|
|
[items]="processedItem.items"
|
|
[itemTemplate]="itemTemplate"
|
|
[autoDisplay]="autoDisplay"
|
|
[menuId]="menuId"
|
|
[activeItemPath]="activeItemPath()"
|
|
[focusedItemId]="focusedItemId"
|
|
[ariaLabelledBy]="getItemId(processedItem)"
|
|
[level]="level + 1"
|
|
(itemClick)="itemClick.emit($event)"
|
|
(itemMouseEnter)="onItemMouseEnter($event)"
|
|
></p-tieredMenuSub>
|
|
</li>
|
|
</ng-template>
|
|
</ul>
|
|
`,
|
|
encapsulation: ViewEncapsulation.None,
|
|
host: {
|
|
class: 'p-element'
|
|
}
|
|
}]
|
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: TieredMenu, decorators: [{
|
|
type: Inject,
|
|
args: [forwardRef(() => TieredMenu)]
|
|
}] }], propDecorators: { items: [{
|
|
type: Input
|
|
}], itemTemplate: [{
|
|
type: Input
|
|
}], root: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], autoDisplay: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], autoZIndex: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], baseZIndex: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], popup: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], menuId: [{
|
|
type: Input
|
|
}], ariaLabel: [{
|
|
type: Input
|
|
}], ariaLabelledBy: [{
|
|
type: Input
|
|
}], level: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], focusedItemId: [{
|
|
type: Input
|
|
}], tabindex: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], itemClick: [{
|
|
type: Output
|
|
}], itemMouseEnter: [{
|
|
type: Output
|
|
}], menuFocus: [{
|
|
type: Output
|
|
}], menuBlur: [{
|
|
type: Output
|
|
}], menuKeydown: [{
|
|
type: Output
|
|
}], sublistViewChild: [{
|
|
type: ViewChild,
|
|
args: ['sublist', { static: true }]
|
|
}] } });
|
|
/**
|
|
* TieredMenu displays submenus in nested overlays.
|
|
* @group Components
|
|
*/
|
|
export class TieredMenu {
|
|
document;
|
|
platformId;
|
|
el;
|
|
renderer;
|
|
cd;
|
|
config;
|
|
overlayService;
|
|
/**
|
|
* An array of menuitems.
|
|
* @group Props
|
|
*/
|
|
set model(value) {
|
|
this._model = value;
|
|
this._processedItems = this.createProcessedItems(this._model || []);
|
|
}
|
|
get model() {
|
|
return this._model;
|
|
}
|
|
/**
|
|
* Defines if menu would displayed as a popup.
|
|
* @group Props
|
|
*/
|
|
popup;
|
|
/**
|
|
* Inline style of the component.
|
|
* @group Props
|
|
*/
|
|
style;
|
|
/**
|
|
* Style class of the component.
|
|
* @group Props
|
|
*/
|
|
styleClass;
|
|
/**
|
|
* Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element.
|
|
* @group Props
|
|
*/
|
|
appendTo;
|
|
/**
|
|
* Whether to automatically manage layering.
|
|
* @group Props
|
|
*/
|
|
autoZIndex = true;
|
|
/**
|
|
* Base zIndex value to use in layering.
|
|
* @group Props
|
|
*/
|
|
baseZIndex = 0;
|
|
/**
|
|
* Whether to show a root submenu on mouse over.
|
|
* @defaultValue true
|
|
* @group Props
|
|
*/
|
|
autoDisplay = true;
|
|
/**
|
|
* Transition options of the show animation.
|
|
* @group Props
|
|
*/
|
|
showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
|
|
/**
|
|
* Transition options of the hide animation.
|
|
* @group Props
|
|
*/
|
|
hideTransitionOptions = '.1s linear';
|
|
/**
|
|
* Current id state as a string.
|
|
* @group Props
|
|
*/
|
|
id;
|
|
/**
|
|
* Defines a string value that labels an interactive element.
|
|
* @group Props
|
|
*/
|
|
ariaLabel;
|
|
/**
|
|
* Identifier of the underlying input element.
|
|
* @group Props
|
|
*/
|
|
ariaLabelledBy;
|
|
/**
|
|
* When present, it specifies that the component should be disabled.
|
|
* @group Props
|
|
*/
|
|
disabled = false;
|
|
/**
|
|
* Index of the element in tabbing order.
|
|
* @group Props
|
|
*/
|
|
tabindex = 0;
|
|
/**
|
|
* Callback to invoke when overlay menu is shown.
|
|
* @group Emits
|
|
*/
|
|
onShow = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when overlay menu is hidden.
|
|
* @group Emits
|
|
*/
|
|
onHide = new EventEmitter();
|
|
templates;
|
|
rootmenu;
|
|
containerViewChild;
|
|
submenuIconTemplate;
|
|
itemTemplate;
|
|
container;
|
|
outsideClickListener;
|
|
resizeListener;
|
|
scrollHandler;
|
|
target;
|
|
relatedTarget;
|
|
visible;
|
|
relativeAlign;
|
|
dirty = false;
|
|
focused = false;
|
|
activeItemPath = signal([]);
|
|
number = signal(0);
|
|
focusedItemInfo = signal({ index: -1, level: 0, parentKey: '', item: null });
|
|
searchValue = '';
|
|
searchTimeout;
|
|
_processedItems;
|
|
_model;
|
|
get visibleItems() {
|
|
const processedItem = this.activeItemPath().find((p) => p.key === this.focusedItemInfo().parentKey);
|
|
return processedItem ? processedItem.items : this.processedItems;
|
|
}
|
|
get processedItems() {
|
|
if (!this._processedItems || !this._processedItems.length) {
|
|
this._processedItems = this.createProcessedItems(this.model || []);
|
|
}
|
|
return this._processedItems;
|
|
}
|
|
get focusedItemId() {
|
|
const focusedItemInfo = this.focusedItemInfo();
|
|
return focusedItemInfo.item?.id ? focusedItemInfo.item.id : focusedItemInfo.index !== -1 ? `${this.id}${ObjectUtils.isNotEmpty(focusedItemInfo.parentKey) ? '_' + focusedItemInfo.parentKey : ''}_${focusedItemInfo.index}` : null;
|
|
}
|
|
constructor(document, platformId, el, renderer, cd, config, overlayService) {
|
|
this.document = document;
|
|
this.platformId = platformId;
|
|
this.el = el;
|
|
this.renderer = renderer;
|
|
this.cd = cd;
|
|
this.config = config;
|
|
this.overlayService = overlayService;
|
|
effect(() => {
|
|
const path = this.activeItemPath();
|
|
if (ObjectUtils.isNotEmpty(path)) {
|
|
this.bindOutsideClickListener();
|
|
this.bindResizeListener();
|
|
}
|
|
else {
|
|
this.unbindOutsideClickListener();
|
|
this.unbindResizeListener();
|
|
}
|
|
});
|
|
}
|
|
ngOnInit() {
|
|
this.id = this.id || UniqueComponentId();
|
|
}
|
|
ngAfterContentInit() {
|
|
this.templates?.forEach((item) => {
|
|
switch (item.getType()) {
|
|
case 'submenuicon':
|
|
this.submenuIconTemplate = item.template;
|
|
break;
|
|
case 'item':
|
|
this.itemTemplate = item.template;
|
|
break;
|
|
default:
|
|
this.itemTemplate = item.template;
|
|
break;
|
|
}
|
|
});
|
|
}
|
|
createProcessedItems(items, level = 0, parent = {}, parentKey = '') {
|
|
const processedItems = [];
|
|
items &&
|
|
items.forEach((item, index) => {
|
|
const key = (parentKey !== '' ? parentKey + '_' : '') + index;
|
|
const newItem = {
|
|
item,
|
|
index,
|
|
level,
|
|
key,
|
|
parent,
|
|
parentKey
|
|
};
|
|
newItem['items'] = this.createProcessedItems(item.items, level + 1, newItem, key);
|
|
processedItems.push(newItem);
|
|
});
|
|
return processedItems;
|
|
}
|
|
getItemProp(item, name) {
|
|
return item ? ObjectUtils.getItemValue(item[name]) : undefined;
|
|
}
|
|
getProccessedItemLabel(processedItem) {
|
|
return processedItem ? this.getItemLabel(processedItem.item) : undefined;
|
|
}
|
|
getItemLabel(item) {
|
|
return this.getItemProp(item, 'label');
|
|
}
|
|
isProcessedItemGroup(processedItem) {
|
|
return processedItem && ObjectUtils.isNotEmpty(processedItem.items);
|
|
}
|
|
isSelected(processedItem) {
|
|
return this.activeItemPath().some((p) => p.key === processedItem.key);
|
|
}
|
|
isValidSelectedItem(processedItem) {
|
|
return this.isValidItem(processedItem) && this.isSelected(processedItem);
|
|
}
|
|
isValidItem(processedItem) {
|
|
return !!processedItem && !this.isItemDisabled(processedItem.item) && !this.isItemSeparator(processedItem.item) && this.isItemVisible(processedItem.item);
|
|
}
|
|
isItemDisabled(item) {
|
|
return this.getItemProp(item, 'disabled');
|
|
}
|
|
isItemVisible(item) {
|
|
return this.getItemProp(item, 'visible') !== false;
|
|
}
|
|
isItemSeparator(item) {
|
|
return this.getItemProp(item, 'separator');
|
|
}
|
|
isItemMatched(processedItem) {
|
|
return this.isValidItem(processedItem) && this.getProccessedItemLabel(processedItem).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase());
|
|
}
|
|
isProccessedItemGroup(processedItem) {
|
|
return processedItem && ObjectUtils.isNotEmpty(processedItem.items);
|
|
}
|
|
onOverlayClick(event) {
|
|
if (this.popup) {
|
|
this.overlayService.add({
|
|
originalEvent: event,
|
|
target: this.el.nativeElement
|
|
});
|
|
}
|
|
}
|
|
onItemClick(event) {
|
|
const { originalEvent, processedItem } = event;
|
|
const grouped = this.isProcessedItemGroup(processedItem);
|
|
const root = ObjectUtils.isEmpty(processedItem.parent);
|
|
const selected = this.isSelected(processedItem);
|
|
if (selected) {
|
|
const { index, key, level, parentKey, item } = processedItem;
|
|
this.activeItemPath.set(this.activeItemPath().filter((p) => key !== p.key && key.startsWith(p.key)));
|
|
this.focusedItemInfo.set({ index, level, parentKey, item });
|
|
this.dirty = true;
|
|
DomHandler.focus(this.rootmenu.sublistViewChild.nativeElement);
|
|
}
|
|
else {
|
|
if (grouped) {
|
|
this.onItemChange(event);
|
|
}
|
|
else {
|
|
const rootProcessedItem = root ? processedItem : this.activeItemPath().find((p) => p.parentKey === '');
|
|
this.hide(originalEvent);
|
|
this.changeFocusedItemIndex(originalEvent, rootProcessedItem ? rootProcessedItem.index : -1);
|
|
DomHandler.focus(this.rootmenu.sublistViewChild.nativeElement);
|
|
}
|
|
}
|
|
}
|
|
onItemMouseEnter(event) {
|
|
if (!DomHandler.isTouchDevice()) {
|
|
if (this.dirty) {
|
|
this.onItemChange(event);
|
|
}
|
|
}
|
|
else {
|
|
this.onItemChange({ event, processedItem: event.processedItem, focus: this.autoDisplay });
|
|
}
|
|
}
|
|
onKeyDown(event) {
|
|
const metaKey = event.metaKey || event.ctrlKey;
|
|
switch (event.code) {
|
|
case 'ArrowDown':
|
|
this.onArrowDownKey(event);
|
|
break;
|
|
case 'ArrowUp':
|
|
this.onArrowUpKey(event);
|
|
break;
|
|
case 'ArrowLeft':
|
|
this.onArrowLeftKey(event);
|
|
break;
|
|
case 'ArrowRight':
|
|
this.onArrowRightKey(event);
|
|
break;
|
|
case 'Home':
|
|
this.onHomeKey(event);
|
|
break;
|
|
case 'End':
|
|
this.onEndKey(event);
|
|
break;
|
|
case 'Space':
|
|
this.onSpaceKey(event);
|
|
break;
|
|
case 'Enter':
|
|
this.onEnterKey(event);
|
|
break;
|
|
case 'Escape':
|
|
this.onEscapeKey(event);
|
|
break;
|
|
case 'Tab':
|
|
this.onTabKey(event);
|
|
break;
|
|
case 'PageDown':
|
|
case 'PageUp':
|
|
case 'Backspace':
|
|
case 'ShiftLeft':
|
|
case 'ShiftRight':
|
|
//NOOP
|
|
break;
|
|
default:
|
|
if (!metaKey && ObjectUtils.isPrintableCharacter(event.key)) {
|
|
this.searchItems(event, event.key);
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
onArrowDownKey(event) {
|
|
const itemIndex = this.focusedItemInfo().index !== -1 ? this.findNextItemIndex(this.focusedItemInfo().index) : this.findFirstFocusedItemIndex();
|
|
this.changeFocusedItemIndex(event, itemIndex);
|
|
event.preventDefault();
|
|
}
|
|
onArrowRightKey(event) {
|
|
const processedItem = this.visibleItems[this.focusedItemInfo().index];
|
|
const grouped = this.isProccessedItemGroup(processedItem);
|
|
const item = processedItem?.item;
|
|
if (grouped) {
|
|
this.onItemChange({ originalEvent: event, processedItem });
|
|
this.focusedItemInfo.set({ index: -1, parentKey: processedItem.key, item });
|
|
this.searchValue = '';
|
|
this.onArrowDownKey(event);
|
|
}
|
|
event.preventDefault();
|
|
}
|
|
onArrowUpKey(event) {
|
|
if (event.altKey) {
|
|
if (this.focusedItemInfo().index !== -1) {
|
|
const processedItem = this.visibleItems[this.focusedItemInfo().index];
|
|
const grouped = this.isProccessedItemGroup(processedItem);
|
|
!grouped && this.onItemChange({ originalEvent: event, processedItem });
|
|
}
|
|
this.popup && this.hide(event, true);
|
|
event.preventDefault();
|
|
}
|
|
else {
|
|
const itemIndex = this.focusedItemInfo().index !== -1 ? this.findPrevItemIndex(this.focusedItemInfo().index) : this.findLastFocusedItemIndex();
|
|
this.changeFocusedItemIndex(event, itemIndex);
|
|
event.preventDefault();
|
|
}
|
|
}
|
|
onArrowLeftKey(event) {
|
|
const processedItem = this.visibleItems[this.focusedItemInfo().index];
|
|
const parentItem = this.activeItemPath().find((p) => p.key === processedItem.parentKey);
|
|
const root = ObjectUtils.isEmpty(processedItem.parent);
|
|
if (!root) {
|
|
this.focusedItemInfo.set({ index: -1, parentKey: parentItem ? parentItem.parentKey : '', item: processedItem.item });
|
|
this.searchValue = '';
|
|
this.onArrowDownKey(event);
|
|
}
|
|
const activeItemPath = this.activeItemPath().filter((p) => p.parentKey !== this.focusedItemInfo().parentKey);
|
|
this.activeItemPath.set(activeItemPath);
|
|
event.preventDefault();
|
|
}
|
|
onHomeKey(event) {
|
|
this.changeFocusedItemIndex(event, this.findFirstItemIndex());
|
|
event.preventDefault();
|
|
}
|
|
onEndKey(event) {
|
|
this.changeFocusedItemIndex(event, this.findLastItemIndex());
|
|
event.preventDefault();
|
|
}
|
|
onSpaceKey(event) {
|
|
this.onEnterKey(event);
|
|
}
|
|
onEscapeKey(event) {
|
|
this.hide(event, true);
|
|
this.focusedItemInfo().index = this.findFirstFocusedItemIndex();
|
|
event.preventDefault();
|
|
}
|
|
onTabKey(event) {
|
|
if (this.focusedItemInfo().index !== -1) {
|
|
const processedItem = this.visibleItems[this.focusedItemInfo().index];
|
|
const grouped = this.isProccessedItemGroup(processedItem);
|
|
!grouped && this.onItemChange({ originalEvent: event, processedItem });
|
|
}
|
|
this.hide();
|
|
}
|
|
onEnterKey(event) {
|
|
if (this.focusedItemInfo().index !== -1) {
|
|
const element = DomHandler.findSingle(this.rootmenu.el.nativeElement, `li[id="${`${this.focusedItemId}`}"]`);
|
|
const anchorElement = element && DomHandler.findSingle(element, 'a[data-pc-section="action"]');
|
|
anchorElement ? anchorElement.click() : element && element.click();
|
|
if (!this.popup) {
|
|
const processedItem = this.visibleItems[this.focusedItemInfo().index];
|
|
const grouped = this.isProccessedItemGroup(processedItem);
|
|
!grouped && (this.focusedItemInfo().index = this.findFirstFocusedItemIndex());
|
|
}
|
|
}
|
|
event.preventDefault();
|
|
}
|
|
onItemChange(event) {
|
|
const { processedItem, isFocus } = event;
|
|
if (ObjectUtils.isEmpty(processedItem))
|
|
return;
|
|
const { index, key, level, parentKey, items, item } = processedItem;
|
|
const grouped = ObjectUtils.isNotEmpty(items);
|
|
const activeItemPath = this.activeItemPath().filter((p) => p.parentKey !== parentKey && p.parentKey !== key);
|
|
grouped && activeItemPath.push(processedItem);
|
|
this.focusedItemInfo.set({ index, level, parentKey, item });
|
|
this.activeItemPath.set(activeItemPath);
|
|
grouped && (this.dirty = true);
|
|
isFocus && DomHandler.focus(this.rootmenu.sublistViewChild.nativeElement);
|
|
}
|
|
onMenuFocus(event) {
|
|
this.focused = true;
|
|
if (this.focusedItemInfo().index === -1 && !this.popup) {
|
|
// this.onArrowDownKey(event);
|
|
}
|
|
}
|
|
onMenuBlur(event) {
|
|
this.focused = false;
|
|
this.focusedItemInfo.set({ index: -1, level: 0, parentKey: '', item: null });
|
|
this.searchValue = '';
|
|
this.dirty = false;
|
|
}
|
|
onOverlayAnimationStart(event) {
|
|
switch (event.toState) {
|
|
case 'visible':
|
|
if (this.popup) {
|
|
this.container = event.element;
|
|
this.moveOnTop();
|
|
this.onShow.emit({});
|
|
this.appendOverlay();
|
|
this.alignOverlay();
|
|
this.bindOutsideClickListener();
|
|
this.bindResizeListener();
|
|
this.bindScrollListener();
|
|
DomHandler.focus(this.rootmenu.sublistViewChild.nativeElement);
|
|
this.scrollInView();
|
|
}
|
|
break;
|
|
case 'void':
|
|
this.onOverlayHide();
|
|
this.onHide.emit({});
|
|
break;
|
|
}
|
|
}
|
|
alignOverlay() {
|
|
if (this.relativeAlign)
|
|
DomHandler.relativePosition(this.container, this.target);
|
|
else
|
|
DomHandler.absolutePosition(this.container, this.target);
|
|
}
|
|
onOverlayAnimationEnd(event) {
|
|
switch (event.toState) {
|
|
case 'void':
|
|
ZIndexUtils.clear(event.element);
|
|
break;
|
|
}
|
|
}
|
|
appendOverlay() {
|
|
if (this.appendTo) {
|
|
if (this.appendTo === 'body')
|
|
this.renderer.appendChild(this.document.body, this.container);
|
|
else
|
|
DomHandler.appendChild(this.container, this.appendTo);
|
|
}
|
|
}
|
|
restoreOverlayAppend() {
|
|
if (this.container && this.appendTo) {
|
|
this.renderer.appendChild(this.el.nativeElement, this.container);
|
|
}
|
|
}
|
|
moveOnTop() {
|
|
if (this.autoZIndex) {
|
|
ZIndexUtils.set('menu', this.container, this.baseZIndex + this.config.zIndex.menu);
|
|
}
|
|
}
|
|
/**
|
|
* Hides the popup menu.
|
|
* @group Method
|
|
*/
|
|
hide(event, isFocus) {
|
|
if (this.popup) {
|
|
this.onHide.emit({});
|
|
this.visible = false;
|
|
}
|
|
this.activeItemPath.set([]);
|
|
this.focusedItemInfo.set({ index: -1, level: 0, parentKey: '' });
|
|
isFocus && DomHandler.focus(this.relatedTarget || this.target || this.rootmenu.sublistViewChild.nativeElement);
|
|
this.dirty = false;
|
|
}
|
|
/**
|
|
* Toggles the visibility of the popup menu.
|
|
* @param {Event} event - Browser event.
|
|
* @group Method
|
|
*/
|
|
toggle(event) {
|
|
this.visible ? this.hide(event, true) : this.show(event);
|
|
}
|
|
/**
|
|
* Displays the popup menu.
|
|
* @param {Event} even - Browser event.
|
|
* @group Method
|
|
*/
|
|
show(event, isFocus) {
|
|
if (this.popup) {
|
|
this.visible = true;
|
|
this.target = this.target || event.currentTarget;
|
|
this.relatedTarget = event.relatedTarget || null;
|
|
this.relativeAlign = event?.relativeAlign || null;
|
|
}
|
|
this.focusedItemInfo.set({ index: -1, level: 0, parentKey: '' });
|
|
isFocus && DomHandler.focus(this.rootmenu.sublistViewChild.nativeElement);
|
|
this.cd.markForCheck();
|
|
}
|
|
searchItems(event, char) {
|
|
this.searchValue = (this.searchValue || '') + char;
|
|
let itemIndex = -1;
|
|
let matched = false;
|
|
if (this.focusedItemInfo().index !== -1) {
|
|
itemIndex = this.visibleItems.slice(this.focusedItemInfo().index).findIndex((processedItem) => this.isItemMatched(processedItem));
|
|
itemIndex = itemIndex === -1 ? this.visibleItems.slice(0, this.focusedItemInfo().index).findIndex((processedItem) => this.isItemMatched(processedItem)) : itemIndex + this.focusedItemInfo().index;
|
|
}
|
|
else {
|
|
itemIndex = this.visibleItems.findIndex((processedItem) => this.isItemMatched(processedItem));
|
|
}
|
|
if (itemIndex !== -1) {
|
|
matched = true;
|
|
}
|
|
if (itemIndex === -1 && this.focusedItemInfo().index === -1) {
|
|
itemIndex = this.findFirstFocusedItemIndex();
|
|
}
|
|
if (itemIndex !== -1) {
|
|
this.changeFocusedItemIndex(event, itemIndex);
|
|
}
|
|
if (this.searchTimeout) {
|
|
clearTimeout(this.searchTimeout);
|
|
}
|
|
this.searchTimeout = setTimeout(() => {
|
|
this.searchValue = '';
|
|
this.searchTimeout = null;
|
|
}, 500);
|
|
return matched;
|
|
}
|
|
findLastFocusedItemIndex() {
|
|
const selectedIndex = this.findSelectedItemIndex();
|
|
return selectedIndex < 0 ? this.findLastItemIndex() : selectedIndex;
|
|
}
|
|
findLastItemIndex() {
|
|
return ObjectUtils.findLastIndex(this.visibleItems, (processedItem) => this.isValidItem(processedItem));
|
|
}
|
|
findPrevItemIndex(index) {
|
|
const matchedItemIndex = index > 0 ? ObjectUtils.findLastIndex(this.visibleItems.slice(0, index), (processedItem) => this.isValidItem(processedItem)) : -1;
|
|
return matchedItemIndex > -1 ? matchedItemIndex : index;
|
|
}
|
|
findNextItemIndex(index) {
|
|
const matchedItemIndex = index < this.visibleItems.length - 1 ? this.visibleItems.slice(index + 1).findIndex((processedItem) => this.isValidItem(processedItem)) : -1;
|
|
return matchedItemIndex > -1 ? matchedItemIndex + index + 1 : index;
|
|
}
|
|
findFirstFocusedItemIndex() {
|
|
const selectedIndex = this.findSelectedItemIndex();
|
|
return selectedIndex < 0 ? this.findFirstItemIndex() : selectedIndex;
|
|
}
|
|
findFirstItemIndex() {
|
|
return this.visibleItems.findIndex((processedItem) => this.isValidItem(processedItem));
|
|
}
|
|
findSelectedItemIndex() {
|
|
return this.visibleItems.findIndex((processedItem) => this.isValidSelectedItem(processedItem));
|
|
}
|
|
changeFocusedItemIndex(event, index) {
|
|
if (this.focusedItemInfo().index !== index) {
|
|
const focusedItemInfo = this.focusedItemInfo();
|
|
this.focusedItemInfo.set({ ...focusedItemInfo, item: this.visibleItems[index].item, index });
|
|
this.scrollInView();
|
|
}
|
|
}
|
|
scrollInView(index = -1) {
|
|
const id = index !== -1 ? `${this.id}_${index}` : this.focusedItemId;
|
|
const element = DomHandler.findSingle(this.rootmenu.el.nativeElement, `li[id="${id}"]`);
|
|
if (element) {
|
|
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
|
}
|
|
}
|
|
bindScrollListener() {
|
|
if (!this.scrollHandler) {
|
|
this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, (event) => {
|
|
if (this.visible) {
|
|
this.hide(event, true);
|
|
}
|
|
});
|
|
}
|
|
this.scrollHandler.bindScrollListener();
|
|
}
|
|
unbindScrollListener() {
|
|
if (this.scrollHandler) {
|
|
this.scrollHandler.unbindScrollListener();
|
|
this.scrollHandler = null;
|
|
}
|
|
}
|
|
bindResizeListener() {
|
|
if (isPlatformBrowser(this.platformId)) {
|
|
if (!this.resizeListener) {
|
|
this.resizeListener = this.renderer.listen(this.document.defaultView, 'resize', (event) => {
|
|
if (!DomHandler.isTouchDevice()) {
|
|
this.hide(event, true);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
bindOutsideClickListener() {
|
|
if (isPlatformBrowser(this.platformId)) {
|
|
if (!this.outsideClickListener) {
|
|
this.outsideClickListener = this.renderer.listen(this.document, 'click', (event) => {
|
|
const isOutsideContainer = this.containerViewChild && !this.containerViewChild.nativeElement.contains(event.target);
|
|
const isOutsideTarget = this.popup ? !(this.target && (this.target === event.target || this.target.contains(event.target))) : true;
|
|
if (isOutsideContainer && isOutsideTarget) {
|
|
this.hide();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
unbindOutsideClickListener() {
|
|
if (this.outsideClickListener) {
|
|
document.removeEventListener('click', this.outsideClickListener);
|
|
this.outsideClickListener = null;
|
|
}
|
|
}
|
|
unbindResizeListener() {
|
|
if (this.resizeListener) {
|
|
this.resizeListener();
|
|
this.resizeListener = null;
|
|
}
|
|
}
|
|
onOverlayHide() {
|
|
this.unbindOutsideClickListener();
|
|
this.unbindResizeListener();
|
|
this.unbindScrollListener();
|
|
if (!this.cd.destroyed) {
|
|
this.target = null;
|
|
}
|
|
}
|
|
ngOnDestroy() {
|
|
if (this.popup) {
|
|
if (this.scrollHandler) {
|
|
this.scrollHandler.destroy();
|
|
this.scrollHandler = null;
|
|
}
|
|
if (this.container && this.autoZIndex) {
|
|
ZIndexUtils.clear(this.container);
|
|
}
|
|
this.restoreOverlayAppend();
|
|
this.onOverlayHide();
|
|
}
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TieredMenu, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i5.PrimeNGConfig }, { token: i5.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
|
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.3.7", type: TieredMenu, selector: "p-tieredMenu", inputs: { model: "model", popup: ["popup", "popup", booleanAttribute], style: "style", styleClass: "styleClass", appendTo: "appendTo", autoZIndex: ["autoZIndex", "autoZIndex", booleanAttribute], baseZIndex: ["baseZIndex", "baseZIndex", numberAttribute], autoDisplay: ["autoDisplay", "autoDisplay", booleanAttribute], showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", id: "id", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", disabled: ["disabled", "disabled", booleanAttribute], tabindex: ["tabindex", "tabindex", numberAttribute] }, outputs: { onShow: "onShow", onHide: "onHide" }, host: { classAttribute: "p-element" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "rootmenu", first: true, predicate: ["rootmenu"], descendants: true }, { propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: `
|
|
<div
|
|
#container
|
|
[attr.data-pc-section]="'root'"
|
|
[attr.data-pc-name]="'tieredmenu'"
|
|
[id]="id"
|
|
[ngClass]="{ 'p-tieredmenu p-component': true, 'p-tieredmenu-overlay': popup }"
|
|
[class]="styleClass"
|
|
[ngStyle]="style"
|
|
(click)="onOverlayClick($event)"
|
|
[@overlayAnimation]="{ value: 'visible', params: { showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions } }"
|
|
[@.disabled]="popup !== true"
|
|
(@overlayAnimation.start)="onOverlayAnimationStart($event)"
|
|
(@overlayAnimation.done)="onOverlayAnimationEnd($event)"
|
|
*ngIf="!popup || visible"
|
|
>
|
|
<p-tieredMenuSub
|
|
#rootmenu
|
|
[root]="true"
|
|
[items]="processedItems"
|
|
[itemTemplate]="itemTemplate"
|
|
[menuId]="id"
|
|
[tabindex]="!disabled ? tabindex : -1"
|
|
[ariaLabel]="ariaLabel"
|
|
[ariaLabelledBy]="ariaLabelledBy"
|
|
[baseZIndex]="baseZIndex"
|
|
[autoZIndex]="autoZIndex"
|
|
[autoDisplay]="autoDisplay"
|
|
[popup]="popup"
|
|
[focusedItemId]="focused ? focusedItemId : undefined"
|
|
[activeItemPath]="activeItemPath()"
|
|
(itemClick)="onItemClick($event)"
|
|
(menuFocus)="onMenuFocus($event)"
|
|
(menuBlur)="onMenuBlur($event)"
|
|
(menuKeydown)="onKeyDown($event)"
|
|
(itemMouseEnter)="onItemMouseEnter($event)"
|
|
></p-tieredMenuSub>
|
|
</div>
|
|
`, isInline: true, styles: ["@layer primeng{.p-tieredmenu-overlay{position:absolute;top:0;left:0}.p-tieredmenu ul{margin:0;padding:0;list-style:none}.p-tieredmenu .p-submenu-list{position:absolute;min-width:100%;z-index:1;display:none}.p-tieredmenu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-tieredmenu .p-menuitem-text{line-height:1}.p-tieredmenu .p-menuitem{position:relative}.p-tieredmenu .p-menuitem-link .p-submenu-icon:not(svg){margin-left:auto}.p-tieredmenu .p-menuitem-link .p-icon-wrapper{margin-left:auto}.p-tieredmenu .p-menuitem-active>p-tieredmenusub>.p-submenu-list{display:block;left:100%;top:0}.p-tieredmenu .p-menuitem-active>p-tieredmenusub>.p-submenu-list.p-submenu-list-flipped{left:-100%}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: TieredMenuSub, selector: "p-tieredMenuSub", inputs: ["items", "itemTemplate", "root", "autoDisplay", "autoZIndex", "baseZIndex", "popup", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "tabindex"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }], animations: [trigger('overlayAnimation', [transition(':enter', [style({ opacity: 0, transform: 'scaleY(0.8)' }), animate('{{showTransitionParams}}')]), transition(':leave', [animate('{{hideTransitionParams}}', style({ opacity: 0 }))])])], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TieredMenu, decorators: [{
|
|
type: Component,
|
|
args: [{ selector: 'p-tieredMenu', template: `
|
|
<div
|
|
#container
|
|
[attr.data-pc-section]="'root'"
|
|
[attr.data-pc-name]="'tieredmenu'"
|
|
[id]="id"
|
|
[ngClass]="{ 'p-tieredmenu p-component': true, 'p-tieredmenu-overlay': popup }"
|
|
[class]="styleClass"
|
|
[ngStyle]="style"
|
|
(click)="onOverlayClick($event)"
|
|
[@overlayAnimation]="{ value: 'visible', params: { showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions } }"
|
|
[@.disabled]="popup !== true"
|
|
(@overlayAnimation.start)="onOverlayAnimationStart($event)"
|
|
(@overlayAnimation.done)="onOverlayAnimationEnd($event)"
|
|
*ngIf="!popup || visible"
|
|
>
|
|
<p-tieredMenuSub
|
|
#rootmenu
|
|
[root]="true"
|
|
[items]="processedItems"
|
|
[itemTemplate]="itemTemplate"
|
|
[menuId]="id"
|
|
[tabindex]="!disabled ? tabindex : -1"
|
|
[ariaLabel]="ariaLabel"
|
|
[ariaLabelledBy]="ariaLabelledBy"
|
|
[baseZIndex]="baseZIndex"
|
|
[autoZIndex]="autoZIndex"
|
|
[autoDisplay]="autoDisplay"
|
|
[popup]="popup"
|
|
[focusedItemId]="focused ? focusedItemId : undefined"
|
|
[activeItemPath]="activeItemPath()"
|
|
(itemClick)="onItemClick($event)"
|
|
(menuFocus)="onMenuFocus($event)"
|
|
(menuBlur)="onMenuBlur($event)"
|
|
(menuKeydown)="onKeyDown($event)"
|
|
(itemMouseEnter)="onItemMouseEnter($event)"
|
|
></p-tieredMenuSub>
|
|
</div>
|
|
`, animations: [trigger('overlayAnimation', [transition(':enter', [style({ opacity: 0, transform: 'scaleY(0.8)' }), animate('{{showTransitionParams}}')]), transition(':leave', [animate('{{hideTransitionParams}}', style({ opacity: 0 }))])])], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
class: 'p-element'
|
|
}, styles: ["@layer primeng{.p-tieredmenu-overlay{position:absolute;top:0;left:0}.p-tieredmenu ul{margin:0;padding:0;list-style:none}.p-tieredmenu .p-submenu-list{position:absolute;min-width:100%;z-index:1;display:none}.p-tieredmenu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-tieredmenu .p-menuitem-text{line-height:1}.p-tieredmenu .p-menuitem{position:relative}.p-tieredmenu .p-menuitem-link .p-submenu-icon:not(svg){margin-left:auto}.p-tieredmenu .p-menuitem-link .p-icon-wrapper{margin-left:auto}.p-tieredmenu .p-menuitem-active>p-tieredmenusub>.p-submenu-list{display:block;left:100%;top:0}.p-tieredmenu .p-menuitem-active>p-tieredmenusub>.p-submenu-list.p-submenu-list-flipped{left:-100%}}\n"] }]
|
|
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
type: Inject,
|
|
args: [DOCUMENT]
|
|
}] }, { type: undefined, decorators: [{
|
|
type: Inject,
|
|
args: [PLATFORM_ID]
|
|
}] }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i5.PrimeNGConfig }, { type: i5.OverlayService }], propDecorators: { model: [{
|
|
type: Input
|
|
}], popup: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], style: [{
|
|
type: Input
|
|
}], styleClass: [{
|
|
type: Input
|
|
}], appendTo: [{
|
|
type: Input
|
|
}], autoZIndex: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], baseZIndex: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], autoDisplay: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], showTransitionOptions: [{
|
|
type: Input
|
|
}], hideTransitionOptions: [{
|
|
type: Input
|
|
}], id: [{
|
|
type: Input
|
|
}], ariaLabel: [{
|
|
type: Input
|
|
}], ariaLabelledBy: [{
|
|
type: Input
|
|
}], disabled: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], tabindex: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], onShow: [{
|
|
type: Output
|
|
}], onHide: [{
|
|
type: Output
|
|
}], templates: [{
|
|
type: ContentChildren,
|
|
args: [PrimeTemplate]
|
|
}], rootmenu: [{
|
|
type: ViewChild,
|
|
args: ['rootmenu']
|
|
}], containerViewChild: [{
|
|
type: ViewChild,
|
|
args: ['container']
|
|
}] } });
|
|
export class TieredMenuModule {
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TieredMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.7", ngImport: i0, type: TieredMenuModule, declarations: [TieredMenu, TieredMenuSub], imports: [CommonModule, RouterModule, RippleModule, TooltipModule, AngleRightIcon, SharedModule], exports: [TieredMenu, RouterModule, TooltipModule, SharedModule] });
|
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TieredMenuModule, imports: [CommonModule, RouterModule, RippleModule, TooltipModule, AngleRightIcon, SharedModule, RouterModule, TooltipModule, SharedModule] });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: TieredMenuModule, decorators: [{
|
|
type: NgModule,
|
|
args: [{
|
|
imports: [CommonModule, RouterModule, RippleModule, TooltipModule, AngleRightIcon, SharedModule],
|
|
exports: [TieredMenu, RouterModule, TooltipModule, SharedModule],
|
|
declarations: [TieredMenu, TieredMenuSub]
|
|
}]
|
|
}] });
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGllcmVkbWVudS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2V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lzSXRlbUFjdGl2ZShwcm9jZXNzZWRJdGVtKSA6IHVuZGVmaW5lZFwiXG4gICAgICAgICAgICAgICAgICAgIFthdHRyLmFyaWEtc2V0c2l6ZV09XCJnZXRBcmlhU2V0U2l6ZSgpXCJcbiAgICAgICAgICAgICAgICAgICAgW2F0dHIuYXJpYS1wb3NpbnNldF09XCJnZXRBcmlhUG9zSW5zZXQoaW5kZXgpXCJcbiAgICAgICAgICAgICAgICAgICAgW25nU3R5bGVdPVwiZ2V0SXRlbVByb3AocHJvY2Vzc2VkSXRlbSwgJ3N0eWxlJylcIlxuICAgICAgICAgICAgICAgICAgICBbbmdDbGFzc109XCJnZXRJdGVtQ2xhc3MocHJvY2Vzc2VkSXRlbSlcIlxuICAgICAgICAgICAgICAgICAgICBbY2xhc3NdPVwiZ2V0SXRlbVByb3AocHJvY2Vzc2VkSXRlbSwgJ3N0eWxlQ2xhc3MnKVwiXG4gICAgICAgICAgICAgICAgICAgIHBUb29sdGlwXG4gICAgICAgICAgICAgICAgICAgIFt0b29sdGlwT3B0aW9uc109XCJnZXRJdGVtUHJvcChwcm9jZXNzZWRJdGVtLCAndG9vbHRpcE9wdGlvbnMnKVwiXG4gICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICA8ZGl2IFthdHRyLmRhdGEtcGMtc2VjdGlvbl09XCInY29udGVudCdcIiBjbGFzcz1cInAtbWVudWl0ZW0tY29udGVudFwiIChjbGljayk9XCJvbkl0ZW1DbGljaygkZXZlbnQsIHByb2Nlc3NlZEl0ZW0pXCIgKG1vdXNlZW50ZXIpPVwib25JdGVtTW91c2VFbnRlcih7JGV2ZW50LCBwcm9jZXNzZWRJdGVtfSlcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCIhaXRlbVRlbXBsYXRlXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGFcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKm5nSWY9XCIhZ2V0SXRlbVByb3AocHJvY2Vzc2VkSXRlbSwgJ3JvdXRlckxpbmsnKVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFthdHRyLmhyZWZdPVwiZ2V0SXRlbVByb3AocHJvY2Vzc2VkSXRlbSwgJ3VybCcpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2F0dHIuZGF0YS1hdXRvbWF0aW9uaWRdPVwiZ2V0SXRlbVByb3AocHJvY2Vzc2VkSXRlbSwgJ2F1dG9tYXRpb25JZCcpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2F0dHIuZGF0YS1wYy1zZWN0aW9uXT1cIidhY3Rpb24nXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3RhcmdldF09XCJnZXRJdGVtUHJvcChwcm9jZXNzZWRJdGVtLCAndGFyZ2V0JylcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbbmdDbGFzc109XCJ7ICdwLW1lbnVpdGVtLWxpbmsnOiB0cnVlLCAncC1kaXNhYmxlZCc6IGdldEl0ZW1Qcm9wKHByb2Nlc3NlZEl0ZW0sICdkaXNhYmxlZCcpIH1cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbYXR0ci50YWJpbmRleF09XCItMVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBSaXBwbGVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqbmdJZj1cImdldEl0ZW1Qcm9wKHByb2Nlc3NlZEl0ZW0sICdpY29uJylcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJwLW1lbnVpdGVtLWljb25cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW25nQ2xhc3NdPVwiZ2V0SXRlbVByb3AocHJvY2Vzc2VkSXRlbSwgJ2ljb24nKVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbbmdTdHlsZV09XCJnZXRJdGVtUHJvcChwcm9jZXNzZWRJdGVtLCAnaWNvblN0eWxlJylcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2F0dHIuZGF0YS1wYy1zZWN0aW9uXT1cIidpY29uJ1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbYXR0ci50YWJpbmRleF09XCItMVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiAqbmdJZj1cImdldEl0ZW1Qcm9wKHByb2Nlc3NlZEl0ZW0sICdlc2NhcGUnKTsgZWxzZSBodG1sTGFiZWxcIiBjbGFzcz1cInAtbWVudWl0ZW0tdGV4dFwiIFthdHRyLmRhdGEtcGMtc2VjdGlvbl09XCInbGFiZWwnXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7eyBnZXRJdGVtTGFiZWwocHJvY2Vzc2VkSXRlbSkgfX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bmctdGVtcGxhdGUgI2h0bWxMYWJlbD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwicC1tZW51aXRlbS10ZXh0XCIgW2lubmVySFRNTF09XCJnZXRJdGVtTGFiZWwocHJvY2Vzc2VkSXRlbSlcIiBbYXR0ci5kYXRhLXBjLXNlY3Rpb25dPVwiJ2xhYmVsJ1wiPjwvc3Bhbj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9uZy10ZW1wbGF0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ICAgICAgICpuZ0lmPVwiZ2V0SXRlbVByb3AocHJvY2Vzc2VkSXRlbSwgJ3JvdXRlckxpbmsnKVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtyb3V0ZXJMaW5rXT1cImdldEl0ZW1Qcm9wKHByb2Nlc3NlZEl0ZW0sICdyb3V0ZXJMaW5rJylcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbYXR0ci5kYXRhLWF1dG9tYXRpb25pZF09XCJnZXRJdGVtUHJvcChwcm9jZXNzZWRJdGVtLCAnYXV0b21hdGlvbklkJylcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbYXR0ci50YWJpbmRleF09XCItMVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFthdHRyLmRhdGEtcGMtc2VjdGlvbl09XCInYWN0aW9uJ1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtxdWVyeVBhcmFtc109XCJnZXRJdGVtUHJvcChwcm9jZXNzZWRJdGVtLCAncXVlcnlQYXJhbXMnKVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtyb3V0ZXJMaW5rQWN0aXZlXT1cIidwLW1lbnVpdGVtLWxpbmstYWN0aXZlJ1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtyb3V0ZXJMaW5rQWN0aXZlT3B0aW9uc109XCJnZXRJdGVtUHJvcChwcm9jZXNzZWRJdGVtLCAncm91dGVyTGlua0FjdGl2ZU9wdGlvbnMnKSB8fCB7IGV4YWN0OiBmYWxzZSB9XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3RhcmdldF09XCJnZXRJdGVtUHJvcChwcm9jZXNzZWRJdGVtLCAndGFyZ2V0JylcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbbmdDbGFzc109XCJ7ICdwLW1lbnVpdGVtLWxpbmsnOiB0cnVlLCAncC1kaXNhYmxlZCc6IGdldEl0ZW1Qcm9wKHByb2Nlc3NlZEl0ZW0sICdkaXNhYmxlZCcpIH1cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZnJhZ21lbnRdPVwiZ2V0SXRlbVByb3AocHJvY2Vzc2VkSXRlbSwgJ2ZyYWdtZW50JylcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbcXVlcnlQYXJhbXNIYW5kbGluZ109XCJnZXRJdGVtUHJvcChwcm9jZXNzZWRJdGVtLCAncXVlcnlQYXJhbXNIYW5kbGluZycpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3ByZXNlcnZlRnJhZ21lbnRdPVwiZ2V0SXRlbVByb3AocHJvY2Vzc2VkSXRlbSwgJ3ByZXNlcnZlRnJhZ21lbnQnKVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtza2lwTG9jYXRpb25DaGFuZ2VdPVwiZ2V0SXRlbVByb3AocHJvY2Vzc2VkSXRlbSwgJ3NraXBMb2NhdGlvbkNoYW5nZScpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3JlcGxhY2VVcmxdPVwiZ2V0SXRlbVByb3AocHJvY2Vzc2VkSXRlbSwgJ3JlcGxhY2VVcmwnKVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtzdGF0ZV09XCJnZXRJdGVtUHJvcChwcm9jZXNzZWRJdGVtLCAnc3RhdGUnKVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBSaXBwbGVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqbmdJZj1cImdldEl0ZW1Qcm9wKHByb2Nlc3NlZEl0ZW0sICdpY29uJylcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJwLW1lbnVpdGVtLWljb25cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW25nQ2xhc3NdPVwiZ2V0SXRlbVByb3AocHJvY2Vzc2VkSXRlbSwgJ2ljb24nKVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbbmdTdHlsZV09XCJnZXRJdGVtUHJvcChwcm9jZXNzZWRJdGVtLCAnaWNvblN0eWxlJylcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2F0dHIuZGF0YS1wYy1zZWN0aW9uXT1cIidpY29uJ1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbYXR0ci5hcmlhLWhpZGRlbl09XCJ0cnVlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFthdHRyLnRhYmluZGV4XT1cIi0xXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3NwYW4+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuICpuZ0lmPVwiZ2V0SXRlbVByb3AocHJvY2Vzc2VkSXRlbSwgJ2VzY2FwZScpOyBlbHNlIGh0bWxMYWJlbFwiIGNsYXNzPVwicC1tZW51aXRlbS10ZXh0XCIgW2F0dHIuZGF0YS1wYy1zZWN0aW9uXT1cIidsYWJlbCdcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt7IGdldEl0ZW1MYWJlbChwcm9jZXNzZWRJdGVtKSB9fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3NwYW4+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxuZy10ZW1wbGF0ZSAjaHRtbExhYmVsPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJwLW1lbnVpdGVtLXRleHRcIiBbaW5uZXJIVE1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gICAgICAgICAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2E+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJpdGVtVGVtcGxhdGVcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bmctdGVtcGxhdGUgKm5nVGVtcGxhdGVPdXRsZXQ9XCJpdGVtVGVtcGxhdGU7IGNvbnRleHQ6IHsgJGltcGxpY2l0OiBwcm9jZXNzZWRJdGVtLml0ZW0sIGhhc1N1Ym1lbnU6IGdldEl0ZW1Qcm9wKHByb2Nlc3NlZEl0ZW0sICdpdGVtcycpIH1cIj48L25nLXRlbXBsYXRlPlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuXG4gICAgICAgICAgICAgICAgICAgIDxwLXRpZXJlZE1lbnVTdWJcbiAgICAgICAgICAgICAgICAgICAgICAgICpuZ0lmPVwiaXNJdGVtVmlzaWJsZShwcm9jZXNzZWRJdGVtKSAmJiBpc0l0ZW1Hcm91cChwcm9jZXNzZWRJdGVtKVwiXG4gICAgICAgICAgICAgICAgICAgICAgICBbaXRlbXNdPVwicHJvY2Vzc2VkSXRlbS5pdGVtc1wiXG4gICAgICAgICAgICAgICAgICAgICAgICBbaXRlbVRlbXBsYXRlXT1cIml0ZW1UZW1wbGF0ZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICBbYXV0b0Rpc3BsYXldPVwiYXV0b0Rpc3BsYXlcIlxuICAgICAgICAgICAgICAgICAgICAgICAgW21lbnVJZF09XCJtZW51SWRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgW2FjdGl2ZUl0ZW1QYXRoXT1cImFjdGl2ZUl0ZW1QYXRoKClcIlxuICAgICAgICAgICAgICAgICA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ICAgICAgICBbYXJpYUxhYmVsbGVkQnldPVwiYXJpYUxhYmVsbGVkQnlcIlxuICAgICAgICAgICAgICAgIFtiYXNlWkluZGV4XT1cImJhc2VaSW5kZXhcIlxuICAgICAgICAgICAgICAgIFthdXRvWkluZGV4XT1cImF1dG9aSW5kZXhcIlxuICAgICAgICAgICAgICAgIFthdXRvRGlzcGxheV09XCJhdXRvRGlzcGxheVwiXG4gICAgICAgICAgICAgICAgW3BvcHVwXT1cInBvcHVwXCJcbiAgICAgICAgICAgICAgICBbZm9jdXNlZEl0ZW1JZF09XCJmb2N1c2VkID8gZm9jdXNlZEl0ZW1JZCA6IHVuZGVmaW5lZFwiXG4gICAgICAgICAgICAgICAgW2FjdGl2ZUl0ZW1QYXRoXT1cImFjdGl2ZUl0ZW1QYXRoKClcIlxuICAgICAgICAgICAgICAgIChpdGVtQ2xpY2spPVwib25JdGVtQ2xpY2soJGV2ZW50KVwiXG4gICAgICAgICAgICAgICAgKG1lbnVGb2N1cyk9XCJvbk1lbnVGb2N1cygkZXZlbnQpXCJcbiAgICAgICAgICAgICAgICAobWVudUJsdXIpPVwib25NZW51Qmx1cigkZXZlbnQpXCJcbiAgICAgICAgICAgICAgICAobWVudUtleWRvd24pPVwib25LZXlEb3duKCRldmVudClcIlxuICAgICAgICAgICAgICAgIChpdGVtTW91c2VFbnRlcik9XCJvbkl0ZW1Nb3VzZUVudGVyKCRldmVudClcIlxuICAgICAgICAgICAgPjwvcC10aWVyZWRNZW51U3ViPlxuICAgICAgICA8L2Rpdj5cbiAgICBgLFxuICAgIGFuaW1hdGlvbnM6IFt0cmlnZ2VyKCdvdmVybGF5QW5pbWF0aW9uJywgW3RyYW5zaXRpb24oJzplbnRlcicsIFtzdHlsZSh7IG9wYWNpdHk6IDAsIHRyYW5zZm9ybTogJ3NjYWxlWSgwLjgpJyB9KSwgYW5pbWF0ZSgne3tzaG93VHJhbnNpdGlvblBhcmFtc319JyldKSwgdHJhbnNpdGlvbignOmxlYXZlJywgW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IT09IC0xID8gYCR7dGhpcy5pZH0ke09iamVjdFV0aWxzLmlzTm90RW1wdHkoZm9jdXNlZEl0ZW1JbmZvLnBhcmVudEtleSkgPyAnXycgKyBmb2N1c2VkSXRlbUluZm8ucGFyZW50S2V5IDogJyd9XyR7Zm9jdXNlZEl0ZW1JbmZvLmluZGV4fWAgOiBudWxsO1xuICAgIH1cblxuICAgIGNvbnN0cnVjdG9yKFxuICAgICAgICBASW5qZWN0KERPQ1VNRU5UKSBwcml2YXRlIGRvY3VtZW50OiBEb2N1bWVudCxcbiAgICAgICAgQEluamVjdChQTEFURk9STV9JRCkgcHVibGljIHBsYXRmb3JtSWQ6IGFueSxcbiAgICAgICAgcHVibGljIGVsOiBFbGVtZW50UmVmLFxuICAgICAgICBwdWJsaWMgcmVuZGVyZXI6IFJlbmRlcmVyMixcbiAgICAgICAgcHVibGljIGNkOiBDaGFuZ2VEZXRlY3RvclJlZixcbiAgICAgICAgcHVibGljIGNvbmZpZzogUHJpbWVOR0NvbmZpZyxcbiAgICAgICAgcHVibGljIG92ZXJsYXlTZXJ2aWNlOiBPdmVybGF5U2VydmljZVxuICAgICkge1xuICAgICAgICBlZmZlY3QoKCkgPT4ge1xuICAgICAgICAgICAgY29uc3QgcGF0aCA9IHRoaXMuYWN0aXZlSXRlbVBhdGgoKTtcblxuICAgICAgICAgICAgaWYgKE9iamVjdFV0aWxzLmlzTm90RW1wdHkocGF0aCkpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmJpbmRPdXRzaWRlQ2xpY2tMaXN0ZW5lcigpO1xuICAgICAgICAgICAgICAgIHRoaXMuYmluZFJlc2l6ZUxpc3RlbmVyKCk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHRoaXMudW5iaW5kT3V0c2lkZUNsaWNrTGlzdGVuZXIoKTtcbiAgICAgICAgICAgICAgICB0aGlzLnVuYmluZFJlc2l6ZUxpc3RlbmVyKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIG5nT25Jbml0KCkge1xuICAgICAgICB0aGlzLmlkID0gdGhpcy5pZCB8fCBVbmlxdWVDb21wb25lbnRJZCgpO1xuICAgIH1cblxuICAgIG5nQWZ0ZXJDb250ZW50SW5pdCgpIHtcbiAgICAgICAgdGhpcy50ZW1wbGF0ZXM/LmZvckVhY2goKGl0ZW0pID0+IHtcbiAgICAgICAgICAgIHN3aXRjaCAoaXRlbS5nZXRUeXBlKCkpIHtcbiAgICAgICAgICAgICAgICBjYXNlICdzdWJtZW51aWNvbic6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc3VibWVudUljb25UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnaXRlbSc6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaXRlbVRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgICAgICB0aGlzLml0ZW1UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBjcmVhdGVQcm9jZXNzZWRJdGVtcyhpdGVtczogYW55LCBsZXZlbDogbnVtYmVyID0gMCwgcGFyZW50OiBhbnkgPSB7fSwgcGFyZW50S2V5OiBhbnkgPSAnJykge1xuICAgICAgICBjb25zdCBwcm9jZXNzZWRJdGVtcyA9IFtdO1xuXG4gICAgICAgIGl0ZW1zICYmXG4gICAgICAgICAgICBpdGVtcy5mb3JFYWNoKChpdGVtLCBpbmRleCkgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0IGtleSA9IChwYXJlbnRLZXkgIT09ICcnID8gcGFyZW50S2V5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GFyZW50S2V5ID09PSAnJyk7XG4gICAgICAgICAgICAgICAgdGhpcy5oaWRlKG9yaWdpbmFsRXZlbnQpO1xuICAgICAgICAgICAgICAgIHRoaXMuY2hhbmdlRm9jdXNlZEl0ZW1JbmRleChvcmlnaW5hbEV2ZW50LCByb290UHJvY2Vzc2VkSXRlbSA/IHJvb3RQcm9jZXNzZWRJdGVtLmluZGV4IDogLTEpO1xuXG4gICAgICAgICAgICAgICAgRG9tSGFuZGxlci5mb2N1cyh0aGlzLnJvb3RtZW51LnN1Ymxpc3RWaWV3Q2hpbGQubmF0aXZlRWxlbWVudCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbkl0ZW1Nb3VzZUVudGVyKGV2ZW50OiBhbnkpIHtcbiAgICAgICAgaWYgKCFEb21IYW5kbGVyLmlzVG91Y2hEZXZpY2UoKSkge1xuICAgICAgICAgICAgaWYgKHRoaXMuZGlydHkpIHtcbiAgICAgICAgICAgICAgICB0aGlzLm9uSXRlbUNoYW5nZShldmVudCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLm9uSXRlbUNoYW5nZSh7IGV2ZW50LCBwcm9jZXNzZWRJdGVtOiBldmVudC5wcm9jZXNzZWRJdGVtLCBmb2N1czogdGhpcy5hdXRvRGlzcGxheSB9KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG9uS2V5RG93bihldmVudDogS2V5Ym9hcmRFdmVudCkge1xuICAgICAgICBjb25zdCBtZXRhS2V5ID0gZXZlbnQubWV0YUtleSB8fCBldmVudC5jdHJsS2V5O1xuXG4gICAgICAgIHN3aXRjaCAoZXZlbnQuY29kZSkge1xuICAgICAgICAgICAgY2FzZSAnQXJyb3dEb3duJzpcbiAgICAgICAgICAgICAgICB0aGlzLm9uQXJyb3dEb3duS2V5KGV2ZW50KTtcbiAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgY2FzZSAnQXJyb3dVcCc6XG4gICAgICAgICAgICAgICAgdGhpcy5vbkFycm93VXBLZXkoZXZlbnQpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBjYXNlICdBcnJvd0xlZnQnOlxuICAgICAgICAgICAgICAgIHRoaXMub25BcnJvd0xlZnRLZXkoZXZlbnQpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBjYXNlICdBcnJvd1JpZ2h0JzpcbiAgICAgICAgICAgICAgICB0aGlzLm9uQXJyb3dSaWdodEtleShldmVudCk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgJ0hvbWUnOlxuICAgICAgICAgICAgICAgIHRoaXMub25Ib21lS2V5KGV2ZW50KTtcbiAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgY2FzZSAnRW5kJzpcbiAgICAgICAgICAgICAgICB0aGlzLm9uRW5kS2V5KGV2ZW50KTtcbiAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgY2FzZSAnU3BhY2UnOlxuICAgICAgICAgICAgICAgIHRoaXMub25TcGFjZUtleShldmVudCk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgJ0VudGVyJzpcbiAgICAgICAgICAgICAgICB0aGlzLm9uRW50ZXJLZXkoZXZlbnQpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBjYXNlICdFc2NhcGUnOlxuICAgICAgICAgICAgICAgIHRoaXMub25Fc2NhcGVLZXkoZXZlbnQpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBjYXNlICdUYWInOlxuICAgICAgICAgICAgICAgIHRoaXMub25UYWJLZXkoZXZlbnQpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBjYXNlICdQYWdlRG93bic6XG4gICAgICAgICAgICBjYX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2ZW50LmVsZW1lbnQ7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMubW92ZU9uVG9wKCk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMub25TaG93LmVtaXQoe30pO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmFwcGVuZE92ZXJsYXkoKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5hbGlnbk92ZXJsYXkoKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5iaW5kT3V0c2lkZUNsaWNrTGlzdGVuZXIoKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5iaW5kUmVzaXplTGlzdGVuZXIoKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5iaW5kU2Nyb2xsTGlzdGVuZXIoKTtcbiAgICAgICAgICAgICAgICAgICAgRG9tSGFuZGxlci5mb2N1cyh0aGlzLnJvb3RtZW51LnN1Ymxpc3RWaWV3Q2hpbGQubmF0aXZlRWxlbWVudCk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2Nyb2xsSW5WaWV3KCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBjYXNlICd2b2lkJzpcbiAgICAgICAgICAgICAgICB0aGlzLm9uT3ZlcmxheUhpZGUoKTtcbiAgICAgICAgICAgICAgICB0aGlzLm9uSGlkZS5lbWl0KHt9KTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGFsaWduT3ZlcmxheSgpIHtcbiAgICAgICAgaWYgKHRoaXMucmVsYXRpdmVBbGlnbikgRG9tSGFuZGxlci5yZWxhdGl2ZVBvc2l0aW9uKHRoaXMuY29udGFpbmVyLCB0aGlzLnRhcmdldCk7XG4gICAgICAgIGVsc2UgRG9tSGFuZGxlci5hYnNvbHV0ZVBvc2l0aW9uKHRoaXMuY29udGFpbmVyLCB0aGlzLnRhcmdldCk7XG4gICAgfVxuXG4gICAgb25P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ge1xuICAgICAgICBpZiAodGhpcy5yZXNpemVMaXN0ZW5lcikge1xuICAgICAgICAgICAgdGhpcy5yZXNpemVMaXN0ZW5lcigpO1xuICAgICAgICAgICAgdGhpcy5yZXNpemVMaXN0ZW5lciA9IG51bGw7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbk92ZXJsYXlIaWRlKCkge1xuICAgICAgICB0aGlzLnVuYmluZE91dHNpZGVDbGlja0xpc3RlbmVyKCk7XG4gICAgICAgIHRoaXMudW5iaW5kUmVzaXplTGlzdGVuZXIoKTtcbiAgICAgICAgdGhpcy51bmJpbmRTY3JvbGxMaXN0ZW5lcigpO1xuXG4gICAgICAgIGlmICghKHRoaXMuY2QgYXMgVmlld1JlZikuZGVzdHJveWVkKSB7XG4gICAgICAgICAgICB0aGlzLnRhcmdldCA9IG51bGw7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBuZ09uRGVzdHJveSgpIHtcbiAgICAgICAgaWYgKHRoaXMucG9wdXApIHtcbiAgICAgICAgICAgIGlmICh0aGlzLnNjcm9sbEhhbmRsZXIpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnNjcm9sbEhhbmRsZXIuZGVzdHJveSgpO1xuICAgICAgICAgICAgICAgIHRoaXMuc2Nyb2xsSGFuZGxlciA9IG51bGw7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmICh0aGlzLmNvbnRhaW5lciAmJiB0aGlzLmF1dG9aSW5kZXgpIHtcbiAgICAgICAgICAgICAgICBaSW5kZXhVdGlscy5jbGVhcih0aGlzLmNvbnRhaW5lcik7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRoaXMucmVzdG9yZU92ZXJsYXlBcHBlbmQoKTtcbiAgICAgICAgICAgIHRoaXMub25PdmVybGF5SGlkZSgpO1xuICAgICAgICB9XG4gICAgfVxufVxuXG5ATmdNb2R1bGUoe1xuICAgIGltcG9ydHM6IFtDb21tb25Nb2R1bGUsIFJvdXRlck1vZHVsZ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