1147 lines
131 KiB
JavaScript
1147 lines
131 KiB
JavaScript
import { animate, animation, style, transition, trigger, useAnimation } from '@angular/animations';
|
|
import { CommonModule, DOCUMENT, isPlatformBrowser } from '@angular/common';
|
|
import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, EventEmitter, Inject, Input, NgModule, Output, PLATFORM_ID, ViewChild, ViewEncapsulation, booleanAttribute, numberAttribute } from '@angular/core';
|
|
import { Footer, Header, PrimeTemplate, SharedModule, TranslationKeys } from 'primeng/api';
|
|
import { DomHandler } from 'primeng/dom';
|
|
import { FocusTrapModule } from 'primeng/focustrap';
|
|
import { TimesIcon } from 'primeng/icons/times';
|
|
import { WindowMaximizeIcon } from 'primeng/icons/windowmaximize';
|
|
import { WindowMinimizeIcon } from 'primeng/icons/windowminimize';
|
|
import { RippleModule } from 'primeng/ripple';
|
|
import { UniqueComponentId, ZIndexUtils } from 'primeng/utils';
|
|
import { ButtonModule } from 'primeng/button';
|
|
import * as i0 from "@angular/core";
|
|
import * as i1 from "primeng/api";
|
|
import * as i2 from "@angular/common";
|
|
import * as i3 from "primeng/focustrap";
|
|
import * as i4 from "primeng/button";
|
|
import * as i5 from "primeng/ripple";
|
|
const showAnimation = animation([style({ transform: '{{transform}}', opacity: 0 }), animate('{{transition}}')]);
|
|
const hideAnimation = animation([animate('{{transition}}', style({ transform: '{{transform}}', opacity: 0 }))]);
|
|
/**
|
|
* Dialog is a container to display content in an overlay window.
|
|
* @group Components
|
|
*/
|
|
export class Dialog {
|
|
document;
|
|
platformId;
|
|
el;
|
|
renderer;
|
|
zone;
|
|
cd;
|
|
config;
|
|
/**
|
|
* Title text of the dialog.
|
|
* @group Props
|
|
*/
|
|
header;
|
|
/**
|
|
* Enables dragging to change the position using header.
|
|
* @group Props
|
|
*/
|
|
draggable = true;
|
|
/**
|
|
* Enables resizing of the content.
|
|
* @group Props
|
|
*/
|
|
resizable = true;
|
|
/**
|
|
* Defines the left offset of dialog.
|
|
* @group Props
|
|
* @deprecated positionLeft property is deprecated.
|
|
*/
|
|
get positionLeft() {
|
|
return 0;
|
|
}
|
|
set positionLeft(_positionLeft) {
|
|
console.log('positionLeft property is deprecated.');
|
|
}
|
|
/**
|
|
* Defines the top offset of dialog.
|
|
* @group Props
|
|
* @deprecated positionTop property is deprecated.
|
|
*/
|
|
get positionTop() {
|
|
return 0;
|
|
}
|
|
set positionTop(_positionTop) {
|
|
console.log('positionTop property is deprecated.');
|
|
}
|
|
/**
|
|
* Style of the content section.
|
|
* @group Props
|
|
*/
|
|
contentStyle;
|
|
/**
|
|
* Style class of the content.
|
|
* @group Props
|
|
*/
|
|
contentStyleClass;
|
|
/**
|
|
* Defines if background should be blocked when dialog is displayed.
|
|
* @group Props
|
|
*/
|
|
modal = false;
|
|
/**
|
|
* Specifies if pressing escape key should hide the dialog.
|
|
* @group Props
|
|
*/
|
|
closeOnEscape = true;
|
|
/**
|
|
* Specifies if clicking the modal background should hide the dialog.
|
|
* @group Props
|
|
*/
|
|
dismissableMask = false;
|
|
/**
|
|
* When enabled dialog is displayed in RTL direction.
|
|
* @group Props
|
|
*/
|
|
rtl = false;
|
|
/**
|
|
* Adds a close icon to the header to hide the dialog.
|
|
* @group Props
|
|
*/
|
|
closable = true;
|
|
/**
|
|
* Defines if the component is responsive.
|
|
* @group Props
|
|
* @deprecated Responsive property is deprecated.
|
|
*/
|
|
get responsive() {
|
|
return false;
|
|
}
|
|
set responsive(_responsive) {
|
|
console.log('Responsive property is deprecated.');
|
|
}
|
|
/**
|
|
* Target element to attach the dialog, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
|
|
* @group Props
|
|
*/
|
|
appendTo;
|
|
/**
|
|
* Object literal to define widths per screen size.
|
|
* @group Props
|
|
*/
|
|
breakpoints;
|
|
/**
|
|
* Style class of the component.
|
|
* @group Props
|
|
*/
|
|
styleClass;
|
|
/**
|
|
* Style class of the mask.
|
|
* @group Props
|
|
*/
|
|
maskStyleClass;
|
|
/**
|
|
* Style of the mask.
|
|
* @group Props
|
|
*/
|
|
maskStyle;
|
|
/**
|
|
* Whether to show the header or not.
|
|
* @group Props
|
|
*/
|
|
showHeader = true;
|
|
/**
|
|
* Defines the breakpoint of the component responsive.
|
|
* @group Props
|
|
* @deprecated Breakpoint property is not utilized and deprecated. Use breakpoints or CSS media queries instead.
|
|
*/
|
|
get breakpoint() {
|
|
return 649;
|
|
}
|
|
set breakpoint(_breakpoint) {
|
|
console.log('Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.');
|
|
}
|
|
/**
|
|
* Whether background scroll should be blocked when dialog is visible.
|
|
* @group Props
|
|
*/
|
|
blockScroll = false;
|
|
/**
|
|
* Whether to automatically manage layering.
|
|
* @group Props
|
|
*/
|
|
autoZIndex = true;
|
|
/**
|
|
* Base zIndex value to use in layering.
|
|
* @group Props
|
|
*/
|
|
baseZIndex = 0;
|
|
/**
|
|
* Minimum value for the left coordinate of dialog in dragging.
|
|
* @group Props
|
|
*/
|
|
minX = 0;
|
|
/**
|
|
* Minimum value for the top coordinate of dialog in dragging.
|
|
* @group Props
|
|
*/
|
|
minY = 0;
|
|
/**
|
|
* When enabled, first focusable element receives focus on show.
|
|
* @group Props
|
|
*/
|
|
focusOnShow = true;
|
|
/**
|
|
* Whether the dialog can be displayed full screen.
|
|
* @group Props
|
|
*/
|
|
maximizable = false;
|
|
/**
|
|
* Keeps dialog in the viewport.
|
|
* @group Props
|
|
*/
|
|
keepInViewport = true;
|
|
/**
|
|
* When enabled, can only focus on elements inside the dialog.
|
|
* @group Props
|
|
*/
|
|
focusTrap = true;
|
|
/**
|
|
* Transition options of the animation.
|
|
* @group Props
|
|
*/
|
|
transitionOptions = '150ms cubic-bezier(0, 0, 0.2, 1)';
|
|
/**
|
|
* Name of the close icon.
|
|
* @group Props
|
|
*/
|
|
closeIcon;
|
|
/**
|
|
* Defines a string that labels the close button for accessibility.
|
|
* @group Props
|
|
*/
|
|
closeAriaLabel;
|
|
/**
|
|
* Index of the close button in tabbing order.
|
|
* @group Props
|
|
*/
|
|
closeTabindex = '0';
|
|
/**
|
|
* Name of the minimize icon.
|
|
* @group Props
|
|
*/
|
|
minimizeIcon;
|
|
/**
|
|
* Name of the maximize icon.
|
|
* @group Props
|
|
*/
|
|
maximizeIcon;
|
|
/**
|
|
* Specifies the visibility of the dialog.
|
|
* @group Props
|
|
*/
|
|
get visible() {
|
|
return this._visible;
|
|
}
|
|
set visible(value) {
|
|
this._visible = value;
|
|
if (this._visible && !this.maskVisible) {
|
|
this.maskVisible = true;
|
|
}
|
|
}
|
|
/**
|
|
* Inline style of the component.
|
|
* @group Props
|
|
*/
|
|
get style() {
|
|
return this._style;
|
|
}
|
|
set style(value) {
|
|
if (value) {
|
|
this._style = { ...value };
|
|
this.originalStyle = value;
|
|
}
|
|
}
|
|
/**
|
|
* Position of the dialog.
|
|
* @group Props
|
|
*/
|
|
get position() {
|
|
return this._position;
|
|
}
|
|
set position(value) {
|
|
this._position = value;
|
|
switch (value) {
|
|
case 'topleft':
|
|
case 'bottomleft':
|
|
case 'left':
|
|
this.transformOptions = 'translate3d(-100%, 0px, 0px)';
|
|
break;
|
|
case 'topright':
|
|
case 'bottomright':
|
|
case 'right':
|
|
this.transformOptions = 'translate3d(100%, 0px, 0px)';
|
|
break;
|
|
case 'bottom':
|
|
this.transformOptions = 'translate3d(0px, 100%, 0px)';
|
|
break;
|
|
case 'top':
|
|
this.transformOptions = 'translate3d(0px, -100%, 0px)';
|
|
break;
|
|
default:
|
|
this.transformOptions = 'scale(0.7)';
|
|
break;
|
|
}
|
|
}
|
|
/**
|
|
* Callback to invoke when dialog is shown.
|
|
* @group Emits
|
|
*/
|
|
onShow = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when dialog is hidden.
|
|
* @group Emits
|
|
*/
|
|
onHide = new EventEmitter();
|
|
/**
|
|
* This EventEmitter is used to notify changes in the visibility state of a component.
|
|
* @param {boolean} value - New value.
|
|
* @group Emits
|
|
*/
|
|
visibleChange = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when dialog resizing is initiated.
|
|
* @param {MouseEvent} event - Mouse event.
|
|
* @group Emits
|
|
*/
|
|
onResizeInit = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when dialog resizing is completed.
|
|
* @param {MouseEvent} event - Mouse event.
|
|
* @group Emits
|
|
*/
|
|
onResizeEnd = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when dialog dragging is completed.
|
|
* @param {DragEvent} event - Drag event.
|
|
* @group Emits
|
|
*/
|
|
onDragEnd = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when dialog maximized or unmaximized.
|
|
* @group Emits
|
|
*/
|
|
onMaximize = new EventEmitter();
|
|
headerFacet;
|
|
footerFacet;
|
|
templates;
|
|
headerViewChild;
|
|
contentViewChild;
|
|
footerViewChild;
|
|
headerTemplate;
|
|
contentTemplate;
|
|
footerTemplate;
|
|
maximizeIconTemplate;
|
|
closeIconTemplate;
|
|
minimizeIconTemplate;
|
|
headlessTemplate;
|
|
_visible = false;
|
|
maskVisible;
|
|
container;
|
|
wrapper;
|
|
dragging;
|
|
ariaLabelledBy = this.getAriaLabelledBy();
|
|
documentDragListener;
|
|
documentDragEndListener;
|
|
resizing;
|
|
documentResizeListener;
|
|
documentResizeEndListener;
|
|
documentEscapeListener;
|
|
maskClickListener;
|
|
lastPageX;
|
|
lastPageY;
|
|
preventVisibleChangePropagation;
|
|
maximized;
|
|
preMaximizeContentHeight;
|
|
preMaximizeContainerWidth;
|
|
preMaximizeContainerHeight;
|
|
preMaximizePageX;
|
|
preMaximizePageY;
|
|
id = UniqueComponentId();
|
|
_style = {};
|
|
_position = 'center';
|
|
originalStyle;
|
|
transformOptions = 'scale(0.7)';
|
|
styleElement;
|
|
window;
|
|
get maximizeLabel() {
|
|
return this.config.getTranslation(TranslationKeys.ARIA)['maximizeLabel'];
|
|
}
|
|
constructor(document, platformId, el, renderer, zone, cd, config) {
|
|
this.document = document;
|
|
this.platformId = platformId;
|
|
this.el = el;
|
|
this.renderer = renderer;
|
|
this.zone = zone;
|
|
this.cd = cd;
|
|
this.config = config;
|
|
this.window = this.document.defaultView;
|
|
}
|
|
ngAfterContentInit() {
|
|
this.templates?.forEach((item) => {
|
|
switch (item.getType()) {
|
|
case 'header':
|
|
this.headerTemplate = item.template;
|
|
break;
|
|
case 'content':
|
|
this.contentTemplate = item.template;
|
|
break;
|
|
case 'footer':
|
|
this.footerTemplate = item.template;
|
|
break;
|
|
case 'closeicon':
|
|
this.closeIconTemplate = item.template;
|
|
break;
|
|
case 'maximizeicon':
|
|
this.maximizeIconTemplate = item.template;
|
|
break;
|
|
case 'minimizeicon':
|
|
this.minimizeIconTemplate = item.template;
|
|
break;
|
|
case 'headless':
|
|
this.headlessTemplate = item.template;
|
|
break;
|
|
default:
|
|
this.contentTemplate = item.template;
|
|
break;
|
|
}
|
|
});
|
|
}
|
|
ngOnInit() {
|
|
if (this.breakpoints) {
|
|
this.createStyle();
|
|
}
|
|
}
|
|
getAriaLabelledBy() {
|
|
return this.header !== null ? UniqueComponentId() + '_header' : null;
|
|
}
|
|
focus(focusParentElement = this.contentViewChild.nativeElement) {
|
|
let focusable = DomHandler.getFocusableElement(focusParentElement, '[autofocus]');
|
|
if (focusable) {
|
|
this.zone.runOutsideAngular(() => {
|
|
setTimeout(() => focusable.focus(), 5);
|
|
});
|
|
return;
|
|
}
|
|
const focusableElement = DomHandler.getFocusableElement(focusParentElement);
|
|
if (focusableElement) {
|
|
this.zone.runOutsideAngular(() => {
|
|
setTimeout(() => focusableElement.focus(), 5);
|
|
});
|
|
}
|
|
else if (this.footerViewChild) {
|
|
// If the content section is empty try to focus on footer
|
|
this.focus(this.footerViewChild.nativeElement);
|
|
}
|
|
}
|
|
close(event) {
|
|
this.visibleChange.emit(false);
|
|
event.preventDefault();
|
|
}
|
|
enableModality() {
|
|
if (this.closable && this.dismissableMask) {
|
|
this.maskClickListener = this.renderer.listen(this.wrapper, 'mousedown', (event) => {
|
|
if (this.wrapper && this.wrapper.isSameNode(event.target)) {
|
|
this.close(event);
|
|
}
|
|
});
|
|
}
|
|
if (this.modal) {
|
|
DomHandler.blockBodyScroll();
|
|
}
|
|
}
|
|
disableModality() {
|
|
if (this.wrapper) {
|
|
if (this.dismissableMask) {
|
|
this.unbindMaskClickListener();
|
|
}
|
|
// for nested dialogs w/modal
|
|
const scrollBlockers = document.querySelectorAll('.p-dialog-mask-scrollblocker');
|
|
if (this.modal && scrollBlockers && scrollBlockers.length == 1) {
|
|
DomHandler.unblockBodyScroll();
|
|
}
|
|
if (!this.cd.destroyed) {
|
|
this.cd.detectChanges();
|
|
}
|
|
}
|
|
}
|
|
maximize() {
|
|
this.maximized = !this.maximized;
|
|
if (!this.modal && !this.blockScroll) {
|
|
if (this.maximized) {
|
|
DomHandler.blockBodyScroll();
|
|
}
|
|
else {
|
|
DomHandler.unblockBodyScroll();
|
|
}
|
|
}
|
|
this.onMaximize.emit({ maximized: this.maximized });
|
|
}
|
|
unbindMaskClickListener() {
|
|
if (this.maskClickListener) {
|
|
this.maskClickListener();
|
|
this.maskClickListener = null;
|
|
}
|
|
}
|
|
moveOnTop() {
|
|
if (this.autoZIndex) {
|
|
ZIndexUtils.set('modal', this.container, this.baseZIndex + this.config.zIndex.modal);
|
|
this.wrapper.style.zIndex = String(parseInt(this.container.style.zIndex, 10) - 1);
|
|
}
|
|
}
|
|
createStyle() {
|
|
if (isPlatformBrowser(this.platformId)) {
|
|
if (!this.styleElement) {
|
|
this.styleElement = this.renderer.createElement('style');
|
|
this.styleElement.type = 'text/css';
|
|
this.renderer.appendChild(this.document.head, this.styleElement);
|
|
let innerHTML = '';
|
|
for (let breakpoint in this.breakpoints) {
|
|
innerHTML += `
|
|
@media screen and (max-width: ${breakpoint}) {
|
|
.p-dialog[${this.id}]:not(.p-dialog-maximized) {
|
|
width: ${this.breakpoints[breakpoint]} !important;
|
|
}
|
|
}
|
|
`;
|
|
}
|
|
this.renderer.setProperty(this.styleElement, 'innerHTML', innerHTML);
|
|
}
|
|
}
|
|
}
|
|
initDrag(event) {
|
|
if (DomHandler.hasClass(event.target, 'p-dialog-header-icon') || DomHandler.hasClass(event.target, 'p-dialog-header-close-icon') || DomHandler.hasClass(event.target.parentElement, 'p-dialog-header-icon')) {
|
|
return;
|
|
}
|
|
if (this.draggable) {
|
|
this.dragging = true;
|
|
this.lastPageX = event.pageX;
|
|
this.lastPageY = event.pageY;
|
|
this.container.style.margin = '0';
|
|
DomHandler.addClass(this.document.body, 'p-unselectable-text');
|
|
}
|
|
}
|
|
onDrag(event) {
|
|
if (this.dragging) {
|
|
const containerWidth = DomHandler.getOuterWidth(this.container);
|
|
const containerHeight = DomHandler.getOuterHeight(this.container);
|
|
const deltaX = event.pageX - this.lastPageX;
|
|
const deltaY = event.pageY - this.lastPageY;
|
|
const offset = this.container.getBoundingClientRect();
|
|
const containerComputedStyle = getComputedStyle(this.container);
|
|
const leftMargin = parseFloat(containerComputedStyle.marginLeft);
|
|
const topMargin = parseFloat(containerComputedStyle.marginTop);
|
|
const leftPos = offset.left + deltaX - leftMargin;
|
|
const topPos = offset.top + deltaY - topMargin;
|
|
const viewport = DomHandler.getViewport();
|
|
this.container.style.position = 'fixed';
|
|
if (this.keepInViewport) {
|
|
if (leftPos >= this.minX && leftPos + containerWidth < viewport.width) {
|
|
this._style.left = `${leftPos}px`;
|
|
this.lastPageX = event.pageX;
|
|
this.container.style.left = `${leftPos}px`;
|
|
}
|
|
if (topPos >= this.minY && topPos + containerHeight < viewport.height) {
|
|
this._style.top = `${topPos}px`;
|
|
this.lastPageY = event.pageY;
|
|
this.container.style.top = `${topPos}px`;
|
|
}
|
|
}
|
|
else {
|
|
this.lastPageX = event.pageX;
|
|
this.container.style.left = `${leftPos}px`;
|
|
this.lastPageY = event.pageY;
|
|
this.container.style.top = `${topPos}px`;
|
|
}
|
|
}
|
|
}
|
|
endDrag(event) {
|
|
if (this.dragging) {
|
|
this.dragging = false;
|
|
DomHandler.removeClass(this.document.body, 'p-unselectable-text');
|
|
this.cd.detectChanges();
|
|
this.onDragEnd.emit(event);
|
|
}
|
|
}
|
|
resetPosition() {
|
|
this.container.style.position = '';
|
|
this.container.style.left = '';
|
|
this.container.style.top = '';
|
|
this.container.style.margin = '';
|
|
}
|
|
//backward compatibility
|
|
center() {
|
|
this.resetPosition();
|
|
}
|
|
initResize(event) {
|
|
if (this.resizable) {
|
|
this.resizing = true;
|
|
this.lastPageX = event.pageX;
|
|
this.lastPageY = event.pageY;
|
|
DomHandler.addClass(this.document.body, 'p-unselectable-text');
|
|
this.onResizeInit.emit(event);
|
|
}
|
|
}
|
|
onResize(event) {
|
|
if (this.resizing) {
|
|
let deltaX = event.pageX - this.lastPageX;
|
|
let deltaY = event.pageY - this.lastPageY;
|
|
let containerWidth = DomHandler.getOuterWidth(this.container);
|
|
let containerHeight = DomHandler.getOuterHeight(this.container);
|
|
let contentHeight = DomHandler.getOuterHeight(this.contentViewChild?.nativeElement);
|
|
let newWidth = containerWidth + deltaX;
|
|
let newHeight = containerHeight + deltaY;
|
|
let minWidth = this.container.style.minWidth;
|
|
let minHeight = this.container.style.minHeight;
|
|
let offset = this.container.getBoundingClientRect();
|
|
let viewport = DomHandler.getViewport();
|
|
let hasBeenDragged = !parseInt(this.container.style.top) || !parseInt(this.container.style.left);
|
|
if (hasBeenDragged) {
|
|
newWidth += deltaX;
|
|
newHeight += deltaY;
|
|
}
|
|
if ((!minWidth || newWidth > parseInt(minWidth)) && offset.left + newWidth < viewport.width) {
|
|
this._style.width = newWidth + 'px';
|
|
this.container.style.width = this._style.width;
|
|
}
|
|
if ((!minHeight || newHeight > parseInt(minHeight)) && offset.top + newHeight < viewport.height) {
|
|
this.contentViewChild.nativeElement.style.height = contentHeight + newHeight - containerHeight + 'px';
|
|
if (this._style.height) {
|
|
this._style.height = newHeight + 'px';
|
|
this.container.style.height = this._style.height;
|
|
}
|
|
}
|
|
this.lastPageX = event.pageX;
|
|
this.lastPageY = event.pageY;
|
|
}
|
|
}
|
|
resizeEnd(event) {
|
|
if (this.resizing) {
|
|
this.resizing = false;
|
|
DomHandler.removeClass(this.document.body, 'p-unselectable-text');
|
|
this.onResizeEnd.emit(event);
|
|
}
|
|
}
|
|
bindGlobalListeners() {
|
|
if (this.draggable) {
|
|
this.bindDocumentDragListener();
|
|
this.bindDocumentDragEndListener();
|
|
}
|
|
if (this.resizable) {
|
|
this.bindDocumentResizeListeners();
|
|
}
|
|
if (this.closeOnEscape && this.closable) {
|
|
this.bindDocumentEscapeListener();
|
|
}
|
|
}
|
|
unbindGlobalListeners() {
|
|
this.unbindDocumentDragListener();
|
|
this.unbindDocumentDragEndListener();
|
|
this.unbindDocumentResizeListeners();
|
|
this.unbindDocumentEscapeListener();
|
|
}
|
|
bindDocumentDragListener() {
|
|
if (!this.documentDragListener) {
|
|
this.zone.runOutsideAngular(() => {
|
|
this.documentDragListener = this.renderer.listen(this.window, 'mousemove', this.onDrag.bind(this));
|
|
});
|
|
}
|
|
}
|
|
unbindDocumentDragListener() {
|
|
if (this.documentDragListener) {
|
|
this.documentDragListener();
|
|
this.documentDragListener = null;
|
|
}
|
|
}
|
|
bindDocumentDragEndListener() {
|
|
if (!this.documentDragEndListener) {
|
|
this.zone.runOutsideAngular(() => {
|
|
this.documentDragEndListener = this.renderer.listen(this.window, 'mouseup', this.endDrag.bind(this));
|
|
});
|
|
}
|
|
}
|
|
unbindDocumentDragEndListener() {
|
|
if (this.documentDragEndListener) {
|
|
this.documentDragEndListener();
|
|
this.documentDragEndListener = null;
|
|
}
|
|
}
|
|
bindDocumentResizeListeners() {
|
|
if (!this.documentResizeListener && !this.documentResizeEndListener) {
|
|
this.zone.runOutsideAngular(() => {
|
|
this.documentResizeListener = this.renderer.listen(this.window, 'mousemove', this.onResize.bind(this));
|
|
this.documentResizeEndListener = this.renderer.listen(this.window, 'mouseup', this.resizeEnd.bind(this));
|
|
});
|
|
}
|
|
}
|
|
unbindDocumentResizeListeners() {
|
|
if (this.documentResizeListener && this.documentResizeEndListener) {
|
|
this.documentResizeListener();
|
|
this.documentResizeEndListener();
|
|
this.documentResizeListener = null;
|
|
this.documentResizeEndListener = null;
|
|
}
|
|
}
|
|
bindDocumentEscapeListener() {
|
|
const documentTarget = this.el ? this.el.nativeElement.ownerDocument : 'document';
|
|
this.documentEscapeListener = this.renderer.listen(documentTarget, 'keydown', (event) => {
|
|
if (event.key == 'Escape') {
|
|
this.close(event);
|
|
}
|
|
});
|
|
}
|
|
unbindDocumentEscapeListener() {
|
|
if (this.documentEscapeListener) {
|
|
this.documentEscapeListener();
|
|
this.documentEscapeListener = null;
|
|
}
|
|
}
|
|
appendContainer() {
|
|
if (this.appendTo) {
|
|
if (this.appendTo === 'body')
|
|
this.renderer.appendChild(this.document.body, this.wrapper);
|
|
else
|
|
DomHandler.appendChild(this.wrapper, this.appendTo);
|
|
}
|
|
}
|
|
restoreAppend() {
|
|
if (this.container && this.appendTo) {
|
|
this.renderer.appendChild(this.el.nativeElement, this.wrapper);
|
|
}
|
|
}
|
|
onAnimationStart(event) {
|
|
switch (event.toState) {
|
|
case 'visible':
|
|
this.container = event.element;
|
|
this.wrapper = this.container?.parentElement;
|
|
this.appendContainer();
|
|
this.moveOnTop();
|
|
this.bindGlobalListeners();
|
|
this.container?.setAttribute(this.id, '');
|
|
if (this.modal) {
|
|
this.enableModality();
|
|
}
|
|
if (!this.modal && this.blockScroll) {
|
|
DomHandler.addClass(this.document.body, 'p-overflow-hidden');
|
|
}
|
|
if (this.focusOnShow) {
|
|
this.focus();
|
|
}
|
|
break;
|
|
case 'void':
|
|
if (this.wrapper && this.modal) {
|
|
DomHandler.addClass(this.wrapper, 'p-component-overlay-leave');
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
onAnimationEnd(event) {
|
|
switch (event.toState) {
|
|
case 'void':
|
|
this.onContainerDestroy();
|
|
this.onHide.emit({});
|
|
this.cd.markForCheck();
|
|
break;
|
|
case 'visible':
|
|
this.onShow.emit({});
|
|
break;
|
|
}
|
|
}
|
|
onContainerDestroy() {
|
|
this.unbindGlobalListeners();
|
|
this.dragging = false;
|
|
this.maskVisible = false;
|
|
if (this.maximized) {
|
|
DomHandler.removeClass(this.document.body, 'p-overflow-hidden');
|
|
this.document.body.style.removeProperty('--scrollbar-width');
|
|
this.maximized = false;
|
|
}
|
|
if (this.modal) {
|
|
this.disableModality();
|
|
}
|
|
if (this.blockScroll) {
|
|
DomHandler.removeClass(this.document.body, 'p-overflow-hidden');
|
|
}
|
|
if (this.container && this.autoZIndex) {
|
|
ZIndexUtils.clear(this.container);
|
|
}
|
|
this.container = null;
|
|
this.wrapper = null;
|
|
this._style = this.originalStyle ? { ...this.originalStyle } : {};
|
|
}
|
|
destroyStyle() {
|
|
if (this.styleElement) {
|
|
this.renderer.removeChild(this.document.head, this.styleElement);
|
|
this.styleElement = null;
|
|
}
|
|
}
|
|
ngOnDestroy() {
|
|
if (this.container) {
|
|
this.restoreAppend();
|
|
this.onContainerDestroy();
|
|
}
|
|
this.destroyStyle();
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: Dialog, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1.PrimeNGConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.3.7", type: Dialog, selector: "p-dialog", inputs: { header: "header", draggable: ["draggable", "draggable", booleanAttribute], resizable: ["resizable", "resizable", booleanAttribute], positionLeft: "positionLeft", positionTop: "positionTop", contentStyle: "contentStyle", contentStyleClass: "contentStyleClass", modal: ["modal", "modal", booleanAttribute], closeOnEscape: ["closeOnEscape", "closeOnEscape", booleanAttribute], dismissableMask: ["dismissableMask", "dismissableMask", booleanAttribute], rtl: ["rtl", "rtl", booleanAttribute], closable: ["closable", "closable", booleanAttribute], responsive: "responsive", appendTo: "appendTo", breakpoints: "breakpoints", styleClass: "styleClass", maskStyleClass: "maskStyleClass", maskStyle: "maskStyle", showHeader: ["showHeader", "showHeader", booleanAttribute], breakpoint: "breakpoint", blockScroll: ["blockScroll", "blockScroll", booleanAttribute], autoZIndex: ["autoZIndex", "autoZIndex", booleanAttribute], baseZIndex: ["baseZIndex", "baseZIndex", numberAttribute], minX: ["minX", "minX", numberAttribute], minY: ["minY", "minY", numberAttribute], focusOnShow: ["focusOnShow", "focusOnShow", booleanAttribute], maximizable: ["maximizable", "maximizable", booleanAttribute], keepInViewport: ["keepInViewport", "keepInViewport", booleanAttribute], focusTrap: ["focusTrap", "focusTrap", booleanAttribute], transitionOptions: "transitionOptions", closeIcon: "closeIcon", closeAriaLabel: "closeAriaLabel", closeTabindex: "closeTabindex", minimizeIcon: "minimizeIcon", maximizeIcon: "maximizeIcon", visible: "visible", style: "style", position: "position" }, outputs: { onShow: "onShow", onHide: "onHide", visibleChange: "visibleChange", onResizeInit: "onResizeInit", onResizeEnd: "onResizeEnd", onDragEnd: "onDragEnd", onMaximize: "onMaximize" }, host: { classAttribute: "p-element" }, queries: [{ propertyName: "headerFacet", first: true, predicate: Header, descendants: true }, { propertyName: "footerFacet", first: true, predicate: Footer, descendants: true }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "headerViewChild", first: true, predicate: ["titlebar"], descendants: true }, { propertyName: "contentViewChild", first: true, predicate: ["content"], descendants: true }, { propertyName: "footerViewChild", first: true, predicate: ["footer"], descendants: true }], ngImport: i0, template: `
|
|
<div
|
|
*ngIf="maskVisible"
|
|
[class]="maskStyleClass"
|
|
[style]="maskStyle"
|
|
[ngClass]="{
|
|
'p-dialog-mask': true,
|
|
'p-component-overlay p-component-overlay-enter': this.modal,
|
|
'p-dialog-mask-scrollblocker': this.modal || this.blockScroll,
|
|
'p-dialog-left': position === 'left',
|
|
'p-dialog-right': position === 'right',
|
|
'p-dialog-top': position === 'top',
|
|
'p-dialog-top-left': position === 'topleft' || position === 'top-left',
|
|
'p-dialog-top-right': position === 'topright' || position === 'top-right',
|
|
'p-dialog-bottom': position === 'bottom',
|
|
'p-dialog-bottom-left': position === 'bottomleft' || position === 'bottom-left',
|
|
'p-dialog-bottom-right': position === 'bottomright' || position === 'bottom-right'
|
|
}"
|
|
>
|
|
<div
|
|
#container
|
|
[ngClass]="{ 'p-dialog p-component': true, 'p-dialog-rtl': rtl, 'p-dialog-draggable': draggable, 'p-dialog-resizable': resizable, 'p-dialog-maximized': maximized }"
|
|
[ngStyle]="style"
|
|
[class]="styleClass"
|
|
*ngIf="visible"
|
|
pFocusTrap
|
|
[pFocusTrapDisabled]="focusTrap === false"
|
|
[@animation]="{ value: 'visible', params: { transform: transformOptions, transition: transitionOptions } }"
|
|
(@animation.start)="onAnimationStart($event)"
|
|
(@animation.done)="onAnimationEnd($event)"
|
|
role="dialog"
|
|
[attr.aria-labelledby]="ariaLabelledBy"
|
|
[attr.aria-modal]="true"
|
|
>
|
|
<ng-container *ngIf="headlessTemplate; else notHeadless">
|
|
<ng-container *ngTemplateOutlet="headlessTemplate"></ng-container>
|
|
</ng-container>
|
|
|
|
<ng-template #notHeadless>
|
|
<div *ngIf="resizable" class="p-resizable-handle" style="z-index: 90;" (mousedown)="initResize($event)"></div>
|
|
<div #titlebar class="p-dialog-header" (mousedown)="initDrag($event)" *ngIf="showHeader">
|
|
<span [id]="ariaLabelledBy" class="p-dialog-title" *ngIf="!headerFacet && !headerTemplate">{{ header }}</span>
|
|
<span [id]="ariaLabelledBy" class="p-dialog-title" *ngIf="headerFacet">
|
|
<ng-content select="p-header"></ng-content>
|
|
</span>
|
|
<ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
|
|
<div class="p-dialog-header-icons">
|
|
<button
|
|
*ngIf="maximizable"
|
|
role="button"
|
|
type="button"
|
|
[ngClass]="{ 'p-dialog-header-icon p-dialog-header-maximize p-link': true }"
|
|
(click)="maximize()"
|
|
(keydown.enter)="maximize()"
|
|
[attr.tabindex]="maximizable ? '0' : '-1'"
|
|
[attr.aria-label]="maximizeLabel"
|
|
pRipple
|
|
pButton
|
|
>
|
|
<span *ngIf="maximizeIcon && !maximizeIconTemplate && !minimizeIconTemplate" class="p-dialog-header-maximize-icon" [ngClass]="maximized ? minimizeIcon : maximizeIcon"></span>
|
|
<ng-container *ngIf="!maximizeIcon">
|
|
<WindowMaximizeIcon *ngIf="!maximized && !maximizeIconTemplate" [styleClass]="'p-dialog-header-maximize-icon'" />
|
|
<WindowMinimizeIcon *ngIf="maximized && !minimizeIconTemplate" [styleClass]="'p-dialog-header-maximize-icon'" />
|
|
</ng-container>
|
|
<ng-container *ngIf="!maximized">
|
|
<ng-template *ngTemplateOutlet="maximizeIconTemplate"></ng-template>
|
|
</ng-container>
|
|
<ng-container *ngIf="maximized">
|
|
<ng-template *ngTemplateOutlet="minimizeIconTemplate"></ng-template>
|
|
</ng-container>
|
|
</button>
|
|
<button
|
|
*ngIf="closable"
|
|
type="button"
|
|
[ngClass]="{ 'p-dialog-header-icon p-dialog-header-close p-link': true }"
|
|
[attr.aria-label]="closeAriaLabel"
|
|
(click)="close($event)"
|
|
(keydown.enter)="close($event)"
|
|
pRipple
|
|
pButton
|
|
[attr.tabindex]="closeTabindex"
|
|
>
|
|
<ng-container *ngIf="!closeIconTemplate">
|
|
<span *ngIf="closeIcon" class="p-dialog-header-close-icon" [ngClass]="closeIcon"></span>
|
|
<TimesIcon *ngIf="!closeIcon" [styleClass]="'p-dialog-header-close-icon'" />
|
|
</ng-container>
|
|
<span *ngIf="closeIconTemplate">
|
|
<ng-template *ngTemplateOutlet="closeIconTemplate"></ng-template>
|
|
</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div #content [ngClass]="'p-dialog-content'" [ngStyle]="contentStyle" [class]="contentStyleClass">
|
|
<ng-content></ng-content>
|
|
<ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
|
|
</div>
|
|
<div #footer class="p-dialog-footer" *ngIf="footerFacet || footerTemplate">
|
|
<ng-content select="p-footer"></ng-content>
|
|
<ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
|
|
</div>
|
|
</ng-template>
|
|
</div>
|
|
</div>
|
|
`, isInline: true, styles: ["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => i2.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => i2.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i0.forwardRef(() => i3.FocusTrap), selector: "[pFocusTrap]", inputs: ["pFocusTrapDisabled"] }, { kind: "directive", type: i0.forwardRef(() => i4.ButtonDirective), selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }, { kind: "directive", type: i0.forwardRef(() => i5.Ripple), selector: "[pRipple]" }, { kind: "component", type: i0.forwardRef(() => TimesIcon), selector: "TimesIcon" }, { kind: "component", type: i0.forwardRef(() => WindowMaximizeIcon), selector: "WindowMaximizeIcon" }, { kind: "component", type: i0.forwardRef(() => WindowMinimizeIcon), selector: "WindowMinimizeIcon" }], animations: [trigger('animation', [transition('void => visible', [useAnimation(showAnimation)]), transition('visible => void', [useAnimation(hideAnimation)])])], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: Dialog, decorators: [{
|
|
type: Component,
|
|
args: [{ selector: 'p-dialog', template: `
|
|
<div
|
|
*ngIf="maskVisible"
|
|
[class]="maskStyleClass"
|
|
[style]="maskStyle"
|
|
[ngClass]="{
|
|
'p-dialog-mask': true,
|
|
'p-component-overlay p-component-overlay-enter': this.modal,
|
|
'p-dialog-mask-scrollblocker': this.modal || this.blockScroll,
|
|
'p-dialog-left': position === 'left',
|
|
'p-dialog-right': position === 'right',
|
|
'p-dialog-top': position === 'top',
|
|
'p-dialog-top-left': position === 'topleft' || position === 'top-left',
|
|
'p-dialog-top-right': position === 'topright' || position === 'top-right',
|
|
'p-dialog-bottom': position === 'bottom',
|
|
'p-dialog-bottom-left': position === 'bottomleft' || position === 'bottom-left',
|
|
'p-dialog-bottom-right': position === 'bottomright' || position === 'bottom-right'
|
|
}"
|
|
>
|
|
<div
|
|
#container
|
|
[ngClass]="{ 'p-dialog p-component': true, 'p-dialog-rtl': rtl, 'p-dialog-draggable': draggable, 'p-dialog-resizable': resizable, 'p-dialog-maximized': maximized }"
|
|
[ngStyle]="style"
|
|
[class]="styleClass"
|
|
*ngIf="visible"
|
|
pFocusTrap
|
|
[pFocusTrapDisabled]="focusTrap === false"
|
|
[@animation]="{ value: 'visible', params: { transform: transformOptions, transition: transitionOptions } }"
|
|
(@animation.start)="onAnimationStart($event)"
|
|
(@animation.done)="onAnimationEnd($event)"
|
|
role="dialog"
|
|
[attr.aria-labelledby]="ariaLabelledBy"
|
|
[attr.aria-modal]="true"
|
|
>
|
|
<ng-container *ngIf="headlessTemplate; else notHeadless">
|
|
<ng-container *ngTemplateOutlet="headlessTemplate"></ng-container>
|
|
</ng-container>
|
|
|
|
<ng-template #notHeadless>
|
|
<div *ngIf="resizable" class="p-resizable-handle" style="z-index: 90;" (mousedown)="initResize($event)"></div>
|
|
<div #titlebar class="p-dialog-header" (mousedown)="initDrag($event)" *ngIf="showHeader">
|
|
<span [id]="ariaLabelledBy" class="p-dialog-title" *ngIf="!headerFacet && !headerTemplate">{{ header }}</span>
|
|
<span [id]="ariaLabelledBy" class="p-dialog-title" *ngIf="headerFacet">
|
|
<ng-content select="p-header"></ng-content>
|
|
</span>
|
|
<ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
|
|
<div class="p-dialog-header-icons">
|
|
<button
|
|
*ngIf="maximizable"
|
|
role="button"
|
|
type="button"
|
|
[ngClass]="{ 'p-dialog-header-icon p-dialog-header-maximize p-link': true }"
|
|
(click)="maximize()"
|
|
(keydown.enter)="maximize()"
|
|
[attr.tabindex]="maximizable ? '0' : '-1'"
|
|
[attr.aria-label]="maximizeLabel"
|
|
pRipple
|
|
pButton
|
|
>
|
|
<span *ngIf="maximizeIcon && !maximizeIconTemplate && !minimizeIconTemplate" class="p-dialog-header-maximize-icon" [ngClass]="maximized ? minimizeIcon : maximizeIcon"></span>
|
|
<ng-container *ngIf="!maximizeIcon">
|
|
<WindowMaximizeIcon *ngIf="!maximized && !maximizeIconTemplate" [styleClass]="'p-dialog-header-maximize-icon'" />
|
|
<WindowMinimizeIcon *ngIf="maximized && !minimizeIconTemplate" [styleClass]="'p-dialog-header-maximize-icon'" />
|
|
</ng-container>
|
|
<ng-container *ngIf="!maximized">
|
|
<ng-template *ngTemplateOutlet="maximizeIconTemplate"></ng-template>
|
|
</ng-container>
|
|
<ng-container *ngIf="maximized">
|
|
<ng-template *ngTemplateOutlet="minimizeIconTemplate"></ng-template>
|
|
</ng-container>
|
|
</button>
|
|
<button
|
|
*ngIf="closable"
|
|
type="button"
|
|
[ngClass]="{ 'p-dialog-header-icon p-dialog-header-close p-link': true }"
|
|
[attr.aria-label]="closeAriaLabel"
|
|
(click)="close($event)"
|
|
(keydown.enter)="close($event)"
|
|
pRipple
|
|
pButton
|
|
[attr.tabindex]="closeTabindex"
|
|
>
|
|
<ng-container *ngIf="!closeIconTemplate">
|
|
<span *ngIf="closeIcon" class="p-dialog-header-close-icon" [ngClass]="closeIcon"></span>
|
|
<TimesIcon *ngIf="!closeIcon" [styleClass]="'p-dialog-header-close-icon'" />
|
|
</ng-container>
|
|
<span *ngIf="closeIconTemplate">
|
|
<ng-template *ngTemplateOutlet="closeIconTemplate"></ng-template>
|
|
</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div #content [ngClass]="'p-dialog-content'" [ngStyle]="contentStyle" [class]="contentStyleClass">
|
|
<ng-content></ng-content>
|
|
<ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
|
|
</div>
|
|
<div #footer class="p-dialog-footer" *ngIf="footerFacet || footerTemplate">
|
|
<ng-content select="p-footer"></ng-content>
|
|
<ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
|
|
</div>
|
|
</ng-template>
|
|
</div>
|
|
</div>
|
|
`, animations: [trigger('animation', [transition('void => visible', [useAnimation(showAnimation)]), transition('visible => void', [useAnimation(hideAnimation)])])], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
class: 'p-element'
|
|
}, styles: ["@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}\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.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1.PrimeNGConfig }], propDecorators: { header: [{
|
|
type: Input
|
|
}], draggable: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], resizable: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], positionLeft: [{
|
|
type: Input
|
|
}], positionTop: [{
|
|
type: Input
|
|
}], contentStyle: [{
|
|
type: Input
|
|
}], contentStyleClass: [{
|
|
type: Input
|
|
}], modal: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], closeOnEscape: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], dismissableMask: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], rtl: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], closable: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], responsive: [{
|
|
type: Input
|
|
}], appendTo: [{
|
|
type: Input
|
|
}], breakpoints: [{
|
|
type: Input
|
|
}], styleClass: [{
|
|
type: Input
|
|
}], maskStyleClass: [{
|
|
type: Input
|
|
}], maskStyle: [{
|
|
type: Input
|
|
}], showHeader: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], breakpoint: [{
|
|
type: Input
|
|
}], blockScroll: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], autoZIndex: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], baseZIndex: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], minX: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], minY: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], focusOnShow: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], maximizable: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], keepInViewport: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], focusTrap: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], transitionOptions: [{
|
|
type: Input
|
|
}], closeIcon: [{
|
|
type: Input
|
|
}], closeAriaLabel: [{
|
|
type: Input
|
|
}], closeTabindex: [{
|
|
type: Input
|
|
}], minimizeIcon: [{
|
|
type: Input
|
|
}], maximizeIcon: [{
|
|
type: Input
|
|
}], visible: [{
|
|
type: Input
|
|
}], style: [{
|
|
type: Input
|
|
}], position: [{
|
|
type: Input
|
|
}], onShow: [{
|
|
type: Output
|
|
}], onHide: [{
|
|
type: Output
|
|
}], visibleChange: [{
|
|
type: Output
|
|
}], onResizeInit: [{
|
|
type: Output
|
|
}], onResizeEnd: [{
|
|
type: Output
|
|
}], onDragEnd: [{
|
|
type: Output
|
|
}], onMaximize: [{
|
|
type: Output
|
|
}], headerFacet: [{
|
|
type: ContentChild,
|
|
args: [Header]
|
|
}], footerFacet: [{
|
|
type: ContentChild,
|
|
args: [Footer]
|
|
}], templates: [{
|
|
type: ContentChildren,
|
|
args: [PrimeTemplate]
|
|
}], headerViewChild: [{
|
|
type: ViewChild,
|
|
args: ['titlebar']
|
|
}], contentViewChild: [{
|
|
type: ViewChild,
|
|
args: ['content']
|
|
}], footerViewChild: [{
|
|
type: ViewChild,
|
|
args: ['footer']
|
|
}] } });
|
|
export class DialogModule {
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.7", ngImport: i0, type: DialogModule, declarations: [Dialog], imports: [CommonModule, FocusTrapModule, ButtonModule, RippleModule, TimesIcon, WindowMaximizeIcon, WindowMinimizeIcon], exports: [Dialog, SharedModule] });
|
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: DialogModule, imports: [CommonModule, FocusTrapModule, ButtonModule, RippleModule, TimesIcon, WindowMaximizeIcon, WindowMinimizeIcon, SharedModule] });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: DialogModule, decorators: [{
|
|
type: NgModule,
|
|
args: [{
|
|
imports: [CommonModule, FocusTrapModule, ButtonModule, RippleModule, TimesIcon, WindowMaximizeIcon, WindowMinimizeIcon],
|
|
exports: [Dialog, SharedModule],
|
|
declarations: [Dialog]
|
|
}]
|
|
}] });
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhbG9nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2FwcC9jb21wb25lbnRzL2RpYWxvZy9kaWFsb2cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFrQixPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxVQUFVLEVBQUUsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ25ILE9BQU8sRUFBRSxZQUFZLEVBQUUsUUFBUSxFQUFFLGlCQUFpQixFQUFFLE1BQU0saUJBQWlCLENBQUM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gICAgICAgICA+XG4gICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImhlYWRsZXNzVGVtcGxhdGU7IGVsc2Ugbm90SGVhZGxlc3NcIj5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cImhlYWRsZXNzVGVtcGxhdGVcIj48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cblxuICAgICAgICAgICAgICAgIDxuZy10ZW1wbGF0ZSAjbm90SGVhZGxlc3M+XG4gICAgICAgICAgICAgICAgICAgIDxkaXYgKm5nSWY9XCJyZXNpemFibGVcIiBjbGFzcz1cInAtcmVzaXphYmxlLWhhbmRsZVwiIHN0eWxlPVwiei1pbmRleDogOTA7XCIgKG1vdXNlZG93bik9XCJpbml0UmVzaXplKCRldmVudClcIj48L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgPGRpdiAjdGl0bGViYXIgY2xhc3M9XCJwLWRpYWxvZy1oZWFkZXJcIiAobW91c2Vkb3duKT1cImluaXREcmFnKCRldmVudClcIiAqbmdJZj1cInNob3dIZWFkZXJcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIFtpZF09XCJhcmlhTGFiZWxsZWRCeVwiIGNsYXNzPVwicC1kaWFsb2ctdGl0bGVcIiAqbmdJZj1cIiFoZWFkZXJGYWNldCAmJiAhaGVhZGVyVGVtcGxhdGVcIj57eyBoZWFkZXIgfX08L3NwYW4+XG4gICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBbaWRdPVwiYXJpYUxhYmVsbGVkQnlcIiBjbGFzcz1cInAtZGlhbG9nLXRpdGxlXCIgKm5nSWY9XCJoZWFkZXJGYWNldFwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250ZW50IHNlbGVjdD1cInAtaGVhZGVyXCI+PC9uZy1jb250ZW50PlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cImhlYWRlclRlbXBsYXRlXCI+PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwicC1kaWFsb2ctaGVhZGVyLWljb25zXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqbmdJZj1cIm1heGltaXphYmxlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcm9sZT1cImJ1dHRvblwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbbmdDbGFzc109XCJ7ICdwLWRpYWxvZy1oZWFkZXItaWNvbiBwLWRpYWxvZy1oZWFkZXItbWF4aW1pemUgcC1saW5rJzogdHJ1ZSB9XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cIm1heGltaXplKClcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoa2V5ZG93bi5lbnRlcik9XCJtYXhpbWl6ZSgpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2F0dHIudGFiaW5kZXhdPVwibWF4aW1pemFibGUgPyAnMCcgOiAnLTEnXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2F0dHIuYXJpYS1sYWJlbF09XCJtYXhpbWl6ZUxhYmVsXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcFJpcHBsZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwQnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiAqbmdJZj1cIm1heGltaXplSWNvbiAmJiAhbWF4aW1pemVJY29uVGVtcGxhdGUgJiYgIW1pbmltaXplSWNvblRlbXBsYXRlXCIgY2xhc3M9XCJwLWRpYWxvZy1oZWFkZXItbWF4aW1pemUtaWNvblwiIFtuZ0NsYXNzXT1cIm1heGltaXplZCA/IG1pbmltaXplSWNvbiA6IG1heGltaXplSWNvblwiPjwvc3Bhbj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cIiFtYXhpbWl6ZUljb25cIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxXaW5kb3dNYXhpbWl6ZUljb24gKm5nSWY9XCIhbWF4aW1pemVkICYmICFtYXhpbWl6ZUljb25UZW1wbGF0ZVwiIFtzdHlsZUNsYXNzXT1cIidwLWRpYWxvZy1oZWFkZXItbWF4aW1pemUtaWNvbidcIiAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFdpbmRvd01pbmltaXplSWNvbiAqbmdJZj1cIm1heGltaXplZCAmJiAhbWluaW1pemVJY29uVGVtcGxhdGVcIiBbc3R5bGVDbGFzc109XCIncC1kaWFsb2ctaGVhZGVyLW1heGltaXplLWljb24nXCIgLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCIhbWF4aW1pemVkXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bmctdGVtcGxhdGUgKm5nVGVtcGxhdGVPdXRsZXQ9XCJtYXhpbWl6ZUljb25UZW1wbGF0ZVwiPjwvbmctdGVtcGxhdGU+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwibWF4aW1pemVkXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bmctdGVtcGxhdGUgKm5nVGVtcGxhdGVPdXRsZXQ9XCJtaW5pbWl6ZUljb25UZW1wbGF0ZVwiPjwvbmctdGVtcGxhdGU+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvYnV0dG9uPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKm5nSWY9XCJjbG9zYWJsZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbbmdDbGFzc109XCJ7ICdwLWRpYWxvZy1oZWFkZXItaWNvbiBwLWRpYWxvZy1oZWFkZXItY2xvc2UgcC1saW5rJzogdHJ1ZSB9XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2F0dHIuYXJpYS1sYWJlbF09XCJjbG9zZUFyaWFMYWJlbFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChjbGljayk9XCJjbG9zZSgkZXZlbnQpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGtleWRvd24uZW50ZXIpPVwiY2xvc2UoJGV2ZW50KVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBSaXBwbGVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcEJ1dHRvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbYXR0ci50YWJpbmRleF09XCJjbG9zZVRhYmluZGV4XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCIhY2xvc2VJY29uVGVtcGxhdGVcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuICpuZ0lmPVwiY2xvc2VJY29uXCIgY2xhc3M9XCJwLWRpYWxvZy1oZWFkZXItY2xvc2UtaWNvblwiIFtuZ0NsYXNzXT1cImNsb3NlSWNvblwiPjwvc3Bhbj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxUaW1lc0ljb24gKm5nSWY9XCIhY2xvc2VJY29uXCIgW3N0eWxlQ2xhc3NdPVwiJ3AtZGlhbG9nLWhlYWRlci1jbG9zZS1pY29uJ1wiIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiAqbmdJZj1cImNsb3NlSWNvblRlbXBsYXRlXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bmctdGVtcGxhdGUgKm5nVGVtcGxhdGVPdXRsZXQ9XCJjbG9zZUljb25UZW1wbGF0ZVwiPjwvbmctdGVtcGxhdGU+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvc3Bhbj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgPGRpdiAjY29udGVudCBbbmdDbGFzc109XCIncC1kaWFsb2ctY29udGVudCdcIiBbbmdTdHlsZV09XCJjb250ZW50U3R5bGVcIiBbY2xhc3NdPVwiY29udGVudFN0eWxlQ2xhc3NcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250ZW50PjwvbmctY29udGVudD5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJjb250ZW50VGVtcGxhdGVcIj48L25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xuICAgICAgICB0aGlzLl9wb3NpdGlvbiA9IHZhbHVlO1xuXG4gICAgICAgIHN3aXRjaCAodmFsdWUpIHtcbiAgICAgICAgICAgIGNhc2UgJ3RvcGxlZnQnOlxuICAgICAgICAgICAgY2FzZSAnYm90dG9tbGVmdCc6XG4gICAgICAgICAgICBjYXNlICdsZWZ0JzpcbiAgICAgICAgICAgICAgICB0aGlzLnRyYW5zZm9ybU9wdGlvbnMgPSAndHJhbnNsYXRlM2QoLTEwMCUsIDBweCwgMHB4KSc7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICd0b3ByaWdodCc6XG4gICAgICAgICAgICBjYXNlICdib3R0b21yaWdodCc6XG4gICAgICAgICAgICBjYXNlICdyaWdodCc6XG4gICAgICAgICAgICAgICAgdGhpcy50cmFuc2Zvcm1PcHRpb25zID0gJ3RyYW5zbGF0ZTNkKDEwMCUsIDBweCwgMHB4KSc7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdib3R0b20nOlxuICAgICAgICAgICAgICAgIHRoaXMudHJhbnNmb3JtT3B0aW9ucyA9ICd0cmFuc2xhdGUzZCgwcHgsIDEwMCUsIDBweCknO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSAndG9wJzpcbiAgICAgICAgICAgICAgICB0aGlzLnRyYW5zZm9ybU9wdGlvbnMgPSAndHJhbnNsYXRlM2QoMHB4LCAtMTAwJSwgMHB4KSc7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIHRoaXMudHJhbnNmb3JtT3B0aW9ucyA9ICdzY2FsZSgwLjcpJztcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgIH1cbiAgICAvKipcbiAgICAgKiBDYWxsYmFjayB0byBpbnZva2Ugd2hlbiBkaWFsb2cgaXMgc2hvd24uXG4gICAgICog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GVtLmdldFR5cGUoKSkge1xuICAgICAgICAgICAgICAgIGNhc2UgJ2hlYWRlcic6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaGVhZGVyVGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UgJ2NvbnRlbnQnOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLmNvbnRlbnRUZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnZm9vdGVyJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5mb290ZXJUZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnY2xvc2VpY29uJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jbG9zZUljb25UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnbWF4aW1pemVpY29uJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5tYXhpbWl6ZUljb25UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnbWluaW1pemVpY29uJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5taW5pbWl6ZUljb25UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnaGVhZGxlc3MnOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLmhlYWRsZXNzVGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY29udGVudFRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIG5nT25Jbml0KCkge1xuICAgICAgICBpZiAodGhpcy5icmVha3BvaW50cykge1xuICAgICAgICAgICAgdGhpcy5jcmVhdGVTdHlsZSgpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZ2V0QXJpYUxhYmVsbGVkQnkoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLmhlYWRlciAhPT0gbnVsbCA/IFVuaXF1ZUNvbXBvbmVudElkKCkgKyAnX2hlYWRlcicgOiBudWxsO1xuICAgIH1cblxuICAgIGZvY3VzKGZvY3VzUGFyZW50RWxlbWVudCA9IHRoaXMuY29udGVudFZpZXdDaGlsZC5uYXRpdmVFbGVtZW50KSB7XG4gICAgICAgIGxldCBmb2N1c2FibGUgPSBEb21IYW5kbGVyLmdldEZvY3VzYWJsZUVsZW1lbnQoZm9jdXNQYXJlbnRFbGVtZW50LCAnW2F1dG9mb2N1c10nKTtcbiAgICAgICAgaWYgKGZvY3VzYWJsZSkge1xuICAgICAgICAgICAgdGhpcy56b25lLnJ1bk91dHNpZGVBbmd1bGFyKCgpID0+IHtcbiAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KCgpID0+IGZvY3VzYWJsZS5mb2N1cygpLCA1KTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIGNvbnN0IGZvY3VzYWJsZUVsZW1lbnQgPSBEb21IYW5kbGVyLmdldEZvY3VzYWJsZUVsZW1lbnQoZm9jdXNQYXJlbnRFbGVtZW50KTtcbiAgICAgICAgaWYgKGZvY3VzYWJsZUVsZW1lbnQpIHtcbiAgICAgICAgICAgIHRoaXMuem9uZS5ydW5PdXRzaWRlQW5ndWxhcigoKSA9PiB7XG4gICAgICAgICAgICAgICAgc2V0VGltZW91dCgoKSA9PiBmb2N1c2FibGVFbGVtZW50LmZvY3VzKCksIDUpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH0gZWxzZSBpZiAodGhpcy5mb290ZXJWaWV3Q2hpbGQpIHtcbiAgICAgICAgICAgIC8vIElmIHRoZSBjb250ZW50IHNlY3Rpb24gaXMgZW1wdHkgdHJ5IHRvIGZvY3VzIG9uIGZvb3RlclxuICAgICAgICAgICAgdGhpcy5mb2N1cyh0aGlzLmZvb3RlclZpZXdDaGlsZC5uYXRpdmVFbGVtZW50KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGNsb3NlKGV2ZW50OiBFdmVudCkge1xuICAgICAgICB0aGlzLnZpc2libGVDaGFuZ2UuZW1pdChmYWxzZSk7XG4gICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgfVxuXG4gICAgZW5hYmxlTW9kYWxpdHkoKSB7XG4gICAgICAgIGlmICh0aGlzLmNsb3NhYmxlICYmIHRoaXMuZGlzbWlzc2FibGVNYXNrKSB7XG4gICAgICAgICAgICB0aGlzLm1hc2tDbGlja0xpc3RlbmVyID0gdGhpcy5yZW5kZXJlci5saXN0ZW4odGhpcy53cmFwcGVyLCAnbW91c2Vkb3duJywgKGV2ZW50OiBhbnkpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy53cmFwcGVyICYmIHRoaXMud3JhcHBlci5pc1NhbWVOb2RlKGV2ZW50LnRhcmdldCkpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jbG9zZShldmVudCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5tb2RhbCkge1xuICAgICAgICAgICAgRG9tSGFuZGxlci5ibG9ja0JvZHlTY3JvbGwoKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGRpc2FibGVNb2RhbGl0eSgpIHtcbiAgICAgICAgaWYgKHRoaXMud3JhcHBlcikge1xuICAgICAgICAgICAgaWYgKHRoaXMuZGlzbWlzc2FibGVNYXNrKSB7XG4gICAgICAgICAgICAgICAgdGhpcy51bmJpbmRNYXNrQ2xpY2tMaXN0ZW5lcigpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAvLyBmb3IgbmVzdGVkIGRpYWxvZ3Mgdy9tb2RhbFxuICAgICAgICAgICAgY29uc3Qgc2Nyb2xsQmxvY2tlcnMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCcucC1kaWFsb2ctbWFzay1zY3JvbGxibG9ja2VyJyk7XG5cbiAgICAgICAgICAgIGlmICh0aGlzLm1vZGFsICYmIHNjcm9sbEJsb2NrZXJzICYmIHNjcm9sbEJsb2NrZXJzLmxlbmd0aCA9PSAxKSB7XG4gICAgICAgICAgICAgICAgRG9tSGFuZGxlci51bmJsb2NrQm9keVNjcm9sbCgpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoISh0aGlzLmNkIGFzIFZpZXdSZWYpLmRlc3Ryb3llZCkge1xuICAgICAgICAgICAgICAgIHRoaXMuY2QuZGV0ZWN0Q2hhbmdlcygpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgbWF4aW1pemUoKSB7XG4gICAgICAgIHRoaXMubWF4aW1pemVkID0gIXRoaXMubWF4aW1pemVkO1xuXG4gICAgICAgIGlmICghdGhpcy5tb2RhbCAmJiAhdGhpcy5ibG9ja1Njcm9sbCkge1xuICAgICAgICAgICAgaWYgKHRoaXMubWF4aW1pemVkKSB7XG4gICAgICAgICAgICAgICAgRG9tSGFuZGxlci5ibG9ja0JvZHlTY3JvbGwoKTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgRG9tSGFuZGx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zJztcbiAgICAgICAgICAgICAgICB0aGlzLnJlbmRlcmVyLmFwcGVuZENoaWxkKHRoaXMuZG9jdW1lbnQuaGVhZCwgdGhpcy5zdHlsZUVsZW1lbnQpO1xuICAgICAgICAgICAgICAgIGxldCBpbm5lckhUTUwgPSAnJztcbiAgICAgICAgICAgICAgICBmb3IgKGxldCBicmVha3BvaW50IGluIHRoaXMuYnJlYWtwb2ludHMpIHtcbiAgICAgICAgICAgICAgICAgICAgaW5uZXJIVE1MICs9IGBcbiAgICAgICAgICAgICAgICAgICAgICAgIEBtZWRpYSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6ICR7YnJlYWtwb2ludH0pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAucC1kaWFsb2dbJHt0aGlzLmlkfV06bm90KC5wLWRpYWxvZy1tYXhpbWl6ZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgd2lkdGg6ICR7dGhpcy5icmVha3BvaW50c1ticmVha3BvaW50XX0gIWltcG9ydGFudDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGA7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5zZXRQcm9wZXJ0eSh0aGlzLnN0eWxlRWxlbWVudCwgJ2lubmVySFRNTCcsIGlubmVySFRNTCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBpbml0RHJhZyhldmVudDogTW91c2VFdmVudCkge1xuICAgICAgICBpZiAoRG9tSGFuZGxlci5oYXNDbGFzcyhldmVudC50YXJnZXQsICdwLWRpYWxvZy1oZWFkZXItaWNvbicpIHx8IERvbUhhbmRsZXIuaGFzQ2xhc3MoZXZlbnQudGFyZ2V0LCAncC1kaWFsb2ctaGVhZGVyLWNsb3NlLWljb24nKSB8fCBEb21IYW5kbGVyLmhhc0Ns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AgICAgICAgIGlmICh0b3BQb3MgPj0gdGhpcy5taW5ZICYmIHRvcFBvcyArIGNvbnRhaW5lckhlaWdodCA8IHZpZXdwb3J0LmhlaWdodCkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLl9zdHlsZS50b3AgPSBgJHt0b3BQb3N9cHhgO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmxhc3RQYWdlWSA9IGV2ZW50LnBhZ2VZO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmNvbnRhaW5lci5zdHlsZS50b3AgPSBgJHt0b3BQb3N9cHhgO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5sYXN0UGFnZVggPSBldmVudC5wYWdlWDtcbiAgICAgICAgICAgICAgICB0aGlzLmNvbnRhaW5lci5zdHlsZS5sZWZ0ID0gYCR7bGVmdFBvc31weGA7XG4gICAgICAgICAgICAgICAgdGhpcy5sYXN0UGFnZVkgPSBldmVudC5wYWdlWTtcbiAgICAgICAgICAgICAgICB0aGlzLmNvbnRhaW5lci5zdHlsZS50b3AgPSBgJHt0b3BQb3N9cHhgO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgZW5kRHJhZyhldmVudDogRHJhZ0V2ZW50KSB7XG4gICAgICAgIGlmICh0aGlzLmRyYWdnaW5nKSB7XG4gICAgICAgICAgICB0aGlzLmRyYWdnaW5nID0gZmFsc2U7XG4gICAgICAgICAgICBEb21IYW5kbGVyLnJlbW92ZUNsYXNzKHRoaXMuZG9jdW1lbnQuYm9keSwgJ3AtdW5zZWxlY3RhYmxlLXRleHQnKTtcbiAgICAgICAgICAgIHRoaXMuY2QuZGV0ZWN0Q2hhbmdlcygpO1xuICAgICAgICAgICAgdGhpcy5vbkRyYWdFbmQuZW1pdChldmVudCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICByZXNldFBvc2l0aW9uKCkge1xuICAgICAgICAodGhpcy5jb250YWluZXIgYXMgSFRNTERpdkVsZW1lbnQpLnN0eWxlLnBvc2l0aW9uID0gJyc7XG4gICAgICAgICh0aGlzLmNvbnRhaW5lciBhcyBIVE1MRGl2RWxlbWVudCkuc3R5bGUubGVmdCA9ICcnO1xuICAgICAgICAodGhpcy5jb250YWluZXIgYXMgSFRNTERpdkVsZW1lbnQpLnN0eWxlLnRvcCA9ICcnO1xuICAgICAgICAodGhpcy5jb250YWluZXIgYXMgSFRNTERpdkVsZW1lbnQpLnN0eWxlLm1hcmdpbiA9ICcnO1xuICAgIH1cblxuICAgIC8vYmFja3dhcmQgY29tcGF0aWJpbGl0eVxuICAgIGNlbnRlcigpIHtcbiAgICAgICAgdGhpcy5yZXNldFBvc2l0aW9uKCk7XG4gICAgfVxuXG4gICAgaW5pdFJlc2l6ZShldmVudDogTW91c2VFdmVudCkge1xuICAgICAgICBpZiAodGhpcy5yZXNpemFibGUpIHtcbiAgICAgICAgICAgIHRoaXMucmVzaXppbmcgPSB0cnVlO1xuICAgICAgICAgICAgdGhpcy5sYXN0UGFnZVggPSBldmVudC5wYWdlWDtcbiAgICAgICAgICAgIHRoaXMubGFzdFBhZ2VZID0gZXZlbnQucGFnZVk7XG4gICAgICAgICAgICBEb21IYW5kbGVyLmFkZENsYXNzKHRoaXMuZG9jdW1lbnQuYm9keSwgJ3AtdW5zZWxlY3RhYmxlLXRleHQnKTtcbiAgICAgICAgICAgIHRoaXMub25SZXNpemVJbml0LmVtaXQoZXZlbnQpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25SZXNpemUoZXZlbnQ6IE1vdXNlRXZlbnQpIHtcbiAgICAgICAgaWYgKHRoaXMucmVzaXppbmcpIHtcbiAgICAgICAgICAgIGxldCBkZWx0YVggPSBldmVudC5wYWdlWCAtICh0aGlzLmxhc3RQYWdlWCBhcyBudW1iZXIpO1xuICAgICAgICAgICAgbGV0IGRlbHRhWSA9IGV2ZW50LnBhZ2VZIC0gKHRoaXMubGFzdFBhZ2VZIGFzIG51bWJlcik7XG4gICAgICAgICAgICBsZXQgY29udGFpbmVyV2lkdGggPSBEb21IYW5kbGVyLmdldE91dGVyV2lkdGgodGhpcy5jb250YWluZXIpO1xuICAgICAgICAgICAgbGV0IGNvbnRhaW5lckhlaWdodCA9IERvbUhhbmRsZXIuZ2V0T3V0ZXJIZWlnaHQodGhpcy5jb250YWluZXIpO1xuICAgICAgICAgICAgbGV0IGNvbnRlbnRIZWlnaHQgPSBEb21IYW5kbGVyLmdldE91dGVySGVpZ2h0KHRoaXMuY29udGVudFZpZXdDaGlsZD8ubmF0aXZlRWxlbWVudCk7XG4gICAgICAgICAgICBsZXQgbmV3V2lkdGggPSBjb250YWluZXJXaWR0aCArIGRlbHRhWDtcbiAgICAgICAgICAgIGxldCBuZXdIZWlnaHQgPSBjb250YWluZXJIZWlnaHQgKyBkZWx0YVk7XG4gICAgICAgICAgICBsZXQgbWluV2lkdGggPSAodGhpcy5jb250YWluZXIgYXMgSFRNTERpdkVsZW1lbnQpLnN0eWxlLm1pbldpZHRoO1xuICAgICAgICAgICAgbGV0IG1pbkhlaWdodCA9ICh0aGlzLmNvbnRhaW5lciBhcyBIVE1MRGl2RWxlbWVudCkuc3R5bGUubWluSGVpZ2h0O1xuICAgICAgICAgICAgbGV0IG9mZnNldCA9ICh0aGlzLmNvbnRhaW5lciBhcyBIVE1MRGl2RWxlbWVudCkuZ2V0Qm91bmRpbmdDbGllbnRSZWN0KCk7XG4gICAgICAgICAgICBsZXQgdmlld3BvcnQgPSBEb21IYW5kbGVyLmdldFZpZXdwb3J0KCk7XG4gICAgICAgICAgICBsZXQgaGFzQmVlbkRyYWdnZWQgPSAhcGFyc2VJbnQoKHRoaXMuY29udGFpbmVyIGFzIEhUTUxEaXZFbGVtZW50KS5zdHlsZS50b3ApIHx8ICFwYXJzZUludCgodGhpcy5jb250YWluZXIgYXMgSFRNTERpdkVsZW1lbnQpLnN0eWxlLmxlZnQpO1xuXG4gICAgICAgICAgICBpZiAoaGFzQmVlbkRyYWdnZWQpIHtcbiAgICAgICAgICAgICAgICBuZXdXaWR0aCArPSBkZWx0YVg7XG4gICAgICAgICAgICAgICAgbmV3SGVpZ2h0ICs9IGRlbHRhWTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKCghbWluV2lkdGggfHwgbmV3V2lkdGggPiBwYXJzZUludChtaW5XaWR0aCkpICYmIG9mZnNldC5sZWZ0ICsgbmV3V2lkdGggPCB2aWV3cG9ydC53aWR0aCkge1xuICAgICAgICAgICAgICAgIHRoaXMuX3N0eWxlLndpZHRoID0gbmV3V2lkdGggKyAncHgnO1xuICAgICAgICAgICAgICAgICh0aGlzLmNvbnRhaW5lciBhcyBIVE1MRGl2RWxlbWVudCkuc3R5bGUud2lkdGggPSB0aGlzLl9zdHlsZS53aWR0aDtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKCghbWluSGVpZ2h0IHx8IG5ld0hlaWdodCA+IHBhcnNlSW50KG1pbkhlaWdodCkpICYmIG9mZnNldC50b3AgKyBuZXdIZWlnaHQgPCB2aWV3cG9ydC5oZWlnaHQpIHtcbiAgICAgICAgICAgICAgICAoPEVsZW1lbnRSZWY+dGhpcy5jb250ZW50Vmlld0NoaWxkKS5uYXRpdmVFbGVtZW50LnN0eWxlLmhlaWdodCA9IGNvbnRlbnRIZWlnaHQgKyBuZXdIZWlnaHQgLSBjb250YWluZXJIZWlnaHQgKyAncHgnO1xuXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuX3N0eWxlLmhlaWdodCkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLl9zdHlsZS5oZWlnaHQgPSBuZXdIZWlnaHQgKyAncHgnO1xuICAgICAgICAgICAgICAgICAgICAodGhpcy5jb250YWluZXIgYXMgSFRNTERpdkVsZW1lbnQpLnN0eWxlLmhlaWdodCA9IHRoaXMuX3N0eWxlLmhlaWdodDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAg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XMuZG9jdW1lbnQuYm9keSwgdGhpcy53cmFwcGVyKTtcbiAgICAgICAgICAgIGVsc2UgRG9tSGFuZGxlci5hcHBlbmRDaGlsZCh0aGlzLndyYXBwZXIsIHRoaXMuYXBwZW5kVG8pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcmVzdG9yZUFwcGVuZCgpIHtcbiAgICAgICAgaWYgKHRoaXMuY29udGFpbmVyICYmIHRoaXMuYXBwZW5kVG8pIHtcbiAgICAgICAgICAgIHRoaXMucmVuZGVyZXIuYXBwZW5kQ2hpbGQodGhpcy5lbC5uYXRpdmVFbGVtZW50LCB0aGlzLndyYXBwZXIpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25BbmltYXRpb25TdGFydChldmVudDogQW5pbWF0aW9uRXZlbnQpIHtcbiAgICAgICAgc3dpdGNoIChldmVudC50b1N0YXRlKSB7XG4gICAgICAgICAgICBjYXNlICd2aXNpYmxlJzpcbiAgICAgICAgICAgICAgICB0aGlzLmNvbnRhaW5lciA9IGV2ZW50LmVsZW1lbnQ7XG4gICAgICAgICAgICAgICAgdGhpcy53cmFwcGVyID0gdGhpcy5jb250YWluZXI/LnBhcmVudEVsZW1lbnQ7XG4gICAgICAgICAgICAgICAgdGhpcy5hcHBlbmRDb250YWluZXIoKTtcbiAgICAgICAgICAgICAgICB0aGlzLm1vdmVPblRvcCgpO1xuICAgICAgICAgICAgICAgIHRoaXMuYmluZEdsb2JhbExpc3RlbmVycygpO1xuICAgICAgICAgICAgICAgIHRoaXMuY29udGFpbmVyPy5zZXRBdHRyaWJ1dGUodGhpcy5pZCwgJycpO1xuXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMubW9kYWwpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5lbmFibGVNb2RhbGl0eSgpO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmICghdGhpcy5tb2RhbCAmJiB0aGlzLmJsb2NrU2Nyb2xsKSB7XG4gICAgICAgICAgICAgICAgICAgIERvbUhhbmRsZXIuYWRkQ2xhc3ModGhpcy5kb2N1bWVudC5ib2R5LCAncC1vdmVyZmxvdy1oaWRkZW4nKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZiAodGhpcy5mb2N1c09uU2hvdykge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmZvY3VzKCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBjYXNlICd2b2lkJzpcbiAgICAgICAgICAgICAgICBpZiAodGhpcy53cmFwcGVyICYmIHRoaXMubW9kYWwpIHtcbiAgICAgICAgICAgICAgICAgICAgRG9tSGFuZGxlci5hZGRDbGFzcyh0aGlzLndyYXBwZXIsICdwLWNvbXBvbmVudC1vdmVybGF5LWxlYXZlJyk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25BbmltYXRpb25FbmQoZXZlbnQ6IEFuaW1hdGlvbkV2ZW50KSB7XG4gICAgICAgIHN3aXRjaCAoZXZlbnQudG9TdGF0ZSkge1xuICAgICAgICAgICAgY2FzZSAndm9pZCc6XG4gICAgICAgICAgICAgICAgdGhpcy5vbkNvbnRhaW5lckRlc3Ryb3koKTtcbiAgICAgICAgICAgICAgICB0aGlzLm9uSGlkZS5lbWl0KHt9KTtcbiAgICAgICAgICAgICAgICB0aGlzLmNkLm1hcmtGb3JDaGVjaygpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgY2FzZSAndmlzaWJsZSc6XG4gICAgICAgICAgICAgICAgdGhpcy5vblNob3cuZW1pdCh7fSk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbkNvbnRhaW5lckRlc3Ryb3koKSB7XG4gICAgICAgIHRoaXMudW5iaW5kR2xvYmFsTGlzdGVu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