source: trip-planner-front/node_modules/primeng/esm2020/confirmdialog/confirmdialog.mjs@ b738035

Last change on this file since b738035 was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago

adding photos

  • Property mode set to 100644
File size: 74.9 KB
Line 
1import { NgModule, Component, Input, EventEmitter, ContentChild, ViewChild, ChangeDetectionStrategy, ViewEncapsulation, ContentChildren, Output } from '@angular/core';
2import { trigger, style, transition, animate, useAnimation, animation } from '@angular/animations';
3import { CommonModule } from '@angular/common';
4import { DomHandler } from 'primeng/dom';
5import { Footer, SharedModule, PrimeTemplate, TranslationKeys, ConfirmEventType } from 'primeng/api';
6import { ButtonModule } from 'primeng/button';
7import { UniqueComponentId, ZIndexUtils } from 'primeng/utils';
8import { RippleModule } from 'primeng/ripple';
9import * as i0 from "@angular/core";
10import * as i1 from "primeng/api";
11import * as i2 from "@angular/common";
12import * as i3 from "primeng/ripple";
13import * as i4 from "primeng/button";
14const showAnimation = animation([
15 style({ transform: '{{transform}}', opacity: 0 }),
16 animate('{{transition}}', style({ transform: 'none', opacity: 1 }))
17]);
18const hideAnimation = animation([
19 animate('{{transition}}', style({ transform: '{{transform}}', opacity: 0 }))
20]);
21export class ConfirmDialog {
22 constructor(el, renderer, confirmationService, zone, cd, config) {
23 this.el = el;
24 this.renderer = renderer;
25 this.confirmationService = confirmationService;
26 this.zone = zone;
27 this.cd = cd;
28 this.config = config;
29 this.acceptIcon = 'pi pi-check';
30 this.acceptVisible = true;
31 this.rejectIcon = 'pi pi-times';
32 this.rejectVisible = true;
33 this.closeOnEscape = true;
34 this.blockScroll = true;
35 this.closable = true;
36 this.autoZIndex = true;
37 this.baseZIndex = 0;
38 this.transitionOptions = '150ms cubic-bezier(0, 0, 0.2, 1)';
39 this.focusTrap = true;
40 this.defaultFocus = 'accept';
41 this.onHide = new EventEmitter();
42 this._position = "center";
43 this.transformOptions = "scale(0.7)";
44 this.id = UniqueComponentId();
45 this.subscription = this.confirmationService.requireConfirmation$.subscribe(confirmation => {
46 if (!confirmation) {
47 this.hide();
48 return;
49 }
50 if (confirmation.key === this.key) {
51 this.confirmation = confirmation;
52 this.confirmationOptions = {
53 message: this.confirmation.message || this.message,
54 icon: this.confirmation.icon || this.icon,
55 header: this.confirmation.header || this.header,
56 rejectVisible: this.confirmation.rejectVisible == null ? this.rejectVisible : this.confirmation.rejectVisible,
57 acceptVisible: this.confirmation.acceptVisible == null ? this.acceptVisible : this.confirmation.acceptVisible,
58 acceptLabel: this.confirmation.acceptLabel || this.acceptLabel,
59 rejectLabel: this.confirmation.rejectLabel || this.rejectLabel,
60 acceptIcon: this.confirmation.acceptIcon || this.acceptIcon,
61 rejectIcon: this.confirmation.rejectIcon || this.rejectIcon,
62 acceptButtonStyleClass: this.confirmation.acceptButtonStyleClass || this.acceptButtonStyleClass,
63 rejectButtonStyleClass: this.confirmation.rejectButtonStyleClass || this.rejectButtonStyleClass,
64 defaultFocus: this.confirmation.defaultFocus || this.defaultFocus,
65 blockScroll: (this.confirmation.blockScroll === false || this.confirmation.blockScroll === true) ? this.confirmation.blockScroll : this.blockScroll,
66 closeOnEscape: (this.confirmation.closeOnEscape === false || this.confirmation.closeOnEscape === true) ? this.confirmation.closeOnEscape : this.closeOnEscape,
67 dismissableMask: (this.confirmation.dismissableMask === false || this.confirmation.dismissableMask === true) ? this.confirmation.dismissableMask : this.dismissableMask
68 };
69 if (this.confirmation.accept) {
70 this.confirmation.acceptEvent = new EventEmitter();
71 this.confirmation.acceptEvent.subscribe(this.confirmation.accept);
72 }
73 if (this.confirmation.reject) {
74 this.confirmation.rejectEvent = new EventEmitter();
75 this.confirmation.rejectEvent.subscribe(this.confirmation.reject);
76 }
77 this.visible = true;
78 }
79 });
80 }
81 get visible() {
82 return this._visible;
83 }
84 set visible(value) {
85 this._visible = value;
86 if (this._visible && !this.maskVisible) {
87 this.maskVisible = true;
88 }
89 this.cd.markForCheck();
90 }
91 get position() {
92 return this._position;
93 }
94 ;
95 set position(value) {
96 this._position = value;
97 switch (value) {
98 case 'top-left':
99 case 'bottom-left':
100 case 'left':
101 this.transformOptions = "translate3d(-100%, 0px, 0px)";
102 break;
103 case 'top-right':
104 case 'bottom-right':
105 case 'right':
106 this.transformOptions = "translate3d(100%, 0px, 0px)";
107 break;
108 case 'bottom':
109 this.transformOptions = "translate3d(0px, 100%, 0px)";
110 break;
111 case 'top':
112 this.transformOptions = "translate3d(0px, -100%, 0px)";
113 break;
114 default:
115 this.transformOptions = "scale(0.7)";
116 break;
117 }
118 }
119 ngAfterContentInit() {
120 this.templates.forEach((item) => {
121 switch (item.getType()) {
122 case 'header':
123 this.headerTemplate = item.template;
124 break;
125 case 'footer':
126 this.footerTemplate = item.template;
127 break;
128 }
129 });
130 }
131 ngOnInit() {
132 if (this.breakpoints) {
133 this.createStyle();
134 }
135 this.translationSubscription = this.config.translationObserver.subscribe(() => {
136 if (this.visible) {
137 this.cd.markForCheck();
138 }
139 });
140 }
141 option(name) {
142 const source = this.confirmationOptions || this;
143 if (source.hasOwnProperty(name)) {
144 return source[name];
145 }
146 return undefined;
147 }
148 onAnimationStart(event) {
149 switch (event.toState) {
150 case 'visible':
151 this.container = event.element;
152 this.wrapper = this.container.parentElement;
153 this.contentContainer = DomHandler.findSingle(this.container, '.p-dialog-content');
154 this.container.setAttribute(this.id, '');
155 this.appendContainer();
156 this.moveOnTop();
157 this.bindGlobalListeners();
158 this.enableModality();
159 const element = this.getElementToFocus();
160 if (element) {
161 element.focus();
162 }
163 break;
164 }
165 }
166 onAnimationEnd(event) {
167 switch (event.toState) {
168 case 'void':
169 this.onOverlayHide();
170 break;
171 }
172 }
173 getElementToFocus() {
174 switch (this.option('defaultFocus')) {
175 case 'accept':
176 return DomHandler.findSingle(this.container, '.p-confirm-dialog-accept');
177 case 'reject':
178 return DomHandler.findSingle(this.container, '.p-confirm-dialog-reject');
179 case 'close':
180 return DomHandler.findSingle(this.container, '.p-dialog-header-close');
181 case 'none':
182 return null;
183 //backward compatibility
184 default:
185 return DomHandler.findSingle(this.container, '.p-confirm-dialog-accept');
186 }
187 }
188 appendContainer() {
189 if (this.appendTo) {
190 if (this.appendTo === 'body')
191 document.body.appendChild(this.wrapper);
192 else
193 DomHandler.appendChild(this.wrapper, this.appendTo);
194 }
195 }
196 restoreAppend() {
197 if (this.wrapper && this.appendTo) {
198 this.el.nativeElement.appendChild(this.wrapper);
199 }
200 }
201 enableModality() {
202 if (this.option('blockScroll')) {
203 DomHandler.addClass(document.body, 'p-overflow-hidden');
204 }
205 if (this.option('dismissableMask')) {
206 this.maskClickListener = this.renderer.listen(this.wrapper, 'mousedown', (event) => {
207 if (this.wrapper && this.wrapper.isSameNode(event.target)) {
208 this.close(event);
209 }
210 });
211 }
212 }
213 disableModality() {
214 this.maskVisible = false;
215 if (this.option('blockScroll')) {
216 DomHandler.removeClass(document.body, 'p-overflow-hidden');
217 }
218 if (this.dismissableMask) {
219 this.unbindMaskClickListener();
220 }
221 if (this.container && !this.cd['destroyed']) {
222 this.cd.detectChanges();
223 }
224 }
225 createStyle() {
226 if (!this.styleElement) {
227 this.styleElement = document.createElement('style');
228 this.styleElement.type = 'text/css';
229 document.head.appendChild(this.styleElement);
230 let innerHTML = '';
231 for (let breakpoint in this.breakpoints) {
232 innerHTML += `
233 @media screen and (max-width: ${breakpoint}) {
234 .p-dialog[${this.id}] {
235 width: ${this.breakpoints[breakpoint]} !important;
236 }
237 }
238 `;
239 }
240 this.styleElement.innerHTML = innerHTML;
241 }
242 }
243 close(event) {
244 if (this.confirmation.rejectEvent) {
245 this.confirmation.rejectEvent.emit(ConfirmEventType.CANCEL);
246 }
247 this.hide(ConfirmEventType.CANCEL);
248 event.preventDefault();
249 }
250 hide(type) {
251 this.onHide.emit(type);
252 this.visible = false;
253 this.confirmation = null;
254 this.confirmationOptions = null;
255 }
256 moveOnTop() {
257 if (this.autoZIndex) {
258 ZIndexUtils.set('modal', this.container, this.baseZIndex + this.config.zIndex.modal);
259 this.wrapper.style.zIndex = String(parseInt(this.container.style.zIndex, 10) - 1);
260 }
261 }
262 getMaskClass() {
263 let maskClass = { 'p-dialog-mask p-component-overlay': true, 'p-dialog-mask-scrollblocker': this.blockScroll };
264 maskClass[this.getPositionClass().toString()] = true;
265 return maskClass;
266 }
267 getPositionClass() {
268 const positions = ['left', 'right', 'top', 'top-left', 'top-right', 'bottom', 'bottom-left', 'bottom-right'];
269 const pos = positions.find(item => item === this.position);
270 return pos ? `p-dialog-${pos}` : '';
271 }
272 bindGlobalListeners() {
273 if ((this.option('closeOnEscape') && this.closable) || this.focusTrap && !this.documentEscapeListener) {
274 const documentTarget = this.el ? this.el.nativeElement.ownerDocument : 'document';
275 this.documentEscapeListener = this.renderer.listen(documentTarget, 'keydown', (event) => {
276 if (event.which == 27 && (this.option('closeOnEscape') && this.closable)) {
277 if (parseInt(this.container.style.zIndex) === ZIndexUtils.get(this.container) && this.visible) {
278 this.close(event);
279 }
280 }
281 if (event.which === 9 && this.focusTrap) {
282 event.preventDefault();
283 let focusableElements = DomHandler.getFocusableElements(this.container);
284 if (focusableElements && focusableElements.length > 0) {
285 if (!focusableElements[0].ownerDocument.activeElement) {
286 focusableElements[0].focus();
287 }
288 else {
289 let focusedIndex = focusableElements.indexOf(focusableElements[0].ownerDocument.activeElement);
290 if (event.shiftKey) {
291 if (focusedIndex == -1 || focusedIndex === 0)
292 focusableElements[focusableElements.length - 1].focus();
293 else
294 focusableElements[focusedIndex - 1].focus();
295 }
296 else {
297 if (focusedIndex == -1 || focusedIndex === (focusableElements.length - 1))
298 focusableElements[0].focus();
299 else
300 focusableElements[focusedIndex + 1].focus();
301 }
302 }
303 }
304 }
305 });
306 }
307 }
308 unbindGlobalListeners() {
309 if (this.documentEscapeListener) {
310 this.documentEscapeListener();
311 this.documentEscapeListener = null;
312 }
313 }
314 unbindMaskClickListener() {
315 if (this.maskClickListener) {
316 this.maskClickListener();
317 this.maskClickListener = null;
318 }
319 }
320 onOverlayHide() {
321 if (this.container && this.autoZIndex) {
322 ZIndexUtils.clear(this.container);
323 }
324 this.disableModality();
325 this.unbindGlobalListeners();
326 this.container = null;
327 }
328 destroyStyle() {
329 if (this.styleElement) {
330 document.head.removeChild(this.styleElement);
331 this.styleElement = null;
332 }
333 }
334 ngOnDestroy() {
335 this.restoreAppend();
336 this.onOverlayHide();
337 this.subscription.unsubscribe();
338 if (this.translationSubscription) {
339 this.translationSubscription.unsubscribe();
340 }
341 this.destroyStyle();
342 }
343 accept() {
344 if (this.confirmation && this.confirmation.acceptEvent) {
345 this.confirmation.acceptEvent.emit();
346 }
347 this.hide(ConfirmEventType.ACCEPT);
348 }
349 reject() {
350 if (this.confirmation && this.confirmation.rejectEvent) {
351 this.confirmation.rejectEvent.emit(ConfirmEventType.REJECT);
352 }
353 this.hide(ConfirmEventType.REJECT);
354 }
355 get acceptButtonLabel() {
356 return this.option('acceptLabel') || this.config.getTranslation(TranslationKeys.ACCEPT);
357 }
358 get rejectButtonLabel() {
359 return this.option('rejectLabel') || this.config.getTranslation(TranslationKeys.REJECT);
360 }
361}
362ConfirmDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ConfirmDialog, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.ConfirmationService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1.PrimeNGConfig }], target: i0.ɵɵFactoryTarget.Component });
363ConfirmDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: ConfirmDialog, selector: "p-confirmDialog", inputs: { header: "header", icon: "icon", message: "message", style: "style", styleClass: "styleClass", maskStyleClass: "maskStyleClass", acceptIcon: "acceptIcon", acceptLabel: "acceptLabel", acceptAriaLabel: "acceptAriaLabel", acceptVisible: "acceptVisible", rejectIcon: "rejectIcon", rejectLabel: "rejectLabel", rejectAriaLabel: "rejectAriaLabel", rejectVisible: "rejectVisible", acceptButtonStyleClass: "acceptButtonStyleClass", rejectButtonStyleClass: "rejectButtonStyleClass", closeOnEscape: "closeOnEscape", dismissableMask: "dismissableMask", blockScroll: "blockScroll", rtl: "rtl", closable: "closable", appendTo: "appendTo", key: "key", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", transitionOptions: "transitionOptions", focusTrap: "focusTrap", defaultFocus: "defaultFocus", breakpoints: "breakpoints", visible: "visible", position: "position" }, outputs: { onHide: "onHide" }, host: { classAttribute: "p-element" }, queries: [{ propertyName: "footer", first: true, predicate: Footer, descendants: true }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "contentViewChild", first: true, predicate: ["content"], descendants: true }], ngImport: i0, template: `
364 <div [class]="maskStyleClass" [ngClass]="getMaskClass()" *ngIf="maskVisible">
365 <div [ngClass]="{'p-dialog p-confirm-dialog p-component':true,'p-dialog-rtl':rtl}" [ngStyle]="style" [class]="styleClass" (mousedown)="moveOnTop()"
366 [@animation]="{value: 'visible', params: {transform: transformOptions, transition: transitionOptions}}" (@animation.start)="onAnimationStart($event)" (@animation.done)="onAnimationEnd($event)" *ngIf="visible">
367 <div class="p-dialog-header" *ngIf="headerTemplate">
368 <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
369 </div>
370 <div class="p-dialog-header" *ngIf="!headerTemplate">
371 <span class="p-dialog-title" *ngIf="option('header')">{{option('header')}}</span>
372 <div class="p-dialog-header-icons">
373 <button *ngIf="closable" type="button" [ngClass]="{'p-dialog-header-icon p-dialog-header-close p-link':true}" (click)="close($event)" (keydown.enter)="close($event)">
374 <span class="pi pi-times"></span>
375 </button>
376 </div>
377 </div>
378 <div #content class="p-dialog-content">
379 <i [ngClass]="'p-confirm-dialog-icon'" [class]="option('icon')" *ngIf="option('icon')"></i>
380 <span class="p-confirm-dialog-message" [innerHTML]="option('message')"></span>
381 </div>
382 <div class="p-dialog-footer" *ngIf="footer || footerTemplate">
383 <ng-content select="p-footer"></ng-content>
384 <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
385 </div>
386 <div class="p-dialog-footer" *ngIf="!footer && !footerTemplate">
387 <button type="button" pRipple pButton [icon]="option('rejectIcon')" [label]="rejectButtonLabel" (click)="reject()" [ngClass]="'p-confirm-dialog-reject'" [class]="option('rejectButtonStyleClass')" *ngIf="option('rejectVisible')" [attr.aria-label]="rejectAriaLabel"></button>
388 <button type="button" pRipple pButton [icon]="option('acceptIcon')" [label]="acceptButtonLabel" (click)="accept()" [ngClass]="'p-confirm-dialog-accept'" [class]="option('acceptButtonStyleClass')" *ngIf="option('acceptVisible')" [attr.aria-label]="acceptAriaLabel"></button>
389 </div>
390 </div>
391 </div>
392 `, isInline: true, styles: [".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-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:translate(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0px!important;left:0px!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"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.Ripple, selector: "[pRipple]" }, { type: i4.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }], animations: [
393 trigger('animation', [
394 transition('void => visible', [
395 useAnimation(showAnimation)
396 ]),
397 transition('visible => void', [
398 useAnimation(hideAnimation)
399 ])
400 ])
401 ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
402i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ConfirmDialog, decorators: [{
403 type: Component,
404 args: [{ selector: 'p-confirmDialog', template: `
405 <div [class]="maskStyleClass" [ngClass]="getMaskClass()" *ngIf="maskVisible">
406 <div [ngClass]="{'p-dialog p-confirm-dialog p-component':true,'p-dialog-rtl':rtl}" [ngStyle]="style" [class]="styleClass" (mousedown)="moveOnTop()"
407 [@animation]="{value: 'visible', params: {transform: transformOptions, transition: transitionOptions}}" (@animation.start)="onAnimationStart($event)" (@animation.done)="onAnimationEnd($event)" *ngIf="visible">
408 <div class="p-dialog-header" *ngIf="headerTemplate">
409 <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
410 </div>
411 <div class="p-dialog-header" *ngIf="!headerTemplate">
412 <span class="p-dialog-title" *ngIf="option('header')">{{option('header')}}</span>
413 <div class="p-dialog-header-icons">
414 <button *ngIf="closable" type="button" [ngClass]="{'p-dialog-header-icon p-dialog-header-close p-link':true}" (click)="close($event)" (keydown.enter)="close($event)">
415 <span class="pi pi-times"></span>
416 </button>
417 </div>
418 </div>
419 <div #content class="p-dialog-content">
420 <i [ngClass]="'p-confirm-dialog-icon'" [class]="option('icon')" *ngIf="option('icon')"></i>
421 <span class="p-confirm-dialog-message" [innerHTML]="option('message')"></span>
422 </div>
423 <div class="p-dialog-footer" *ngIf="footer || footerTemplate">
424 <ng-content select="p-footer"></ng-content>
425 <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
426 </div>
427 <div class="p-dialog-footer" *ngIf="!footer && !footerTemplate">
428 <button type="button" pRipple pButton [icon]="option('rejectIcon')" [label]="rejectButtonLabel" (click)="reject()" [ngClass]="'p-confirm-dialog-reject'" [class]="option('rejectButtonStyleClass')" *ngIf="option('rejectVisible')" [attr.aria-label]="rejectAriaLabel"></button>
429 <button type="button" pRipple pButton [icon]="option('acceptIcon')" [label]="acceptButtonLabel" (click)="accept()" [ngClass]="'p-confirm-dialog-accept'" [class]="option('acceptButtonStyleClass')" *ngIf="option('acceptVisible')" [attr.aria-label]="acceptAriaLabel"></button>
430 </div>
431 </div>
432 </div>
433 `, animations: [
434 trigger('animation', [
435 transition('void => visible', [
436 useAnimation(showAnimation)
437 ]),
438 transition('visible => void', [
439 useAnimation(hideAnimation)
440 ])
441 ])
442 ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
443 'class': 'p-element'
444 }, styles: [".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-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:translate(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0px!important;left:0px!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"] }]
445 }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.ConfirmationService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1.PrimeNGConfig }]; }, propDecorators: { header: [{
446 type: Input
447 }], icon: [{
448 type: Input
449 }], message: [{
450 type: Input
451 }], style: [{
452 type: Input
453 }], styleClass: [{
454 type: Input
455 }], maskStyleClass: [{
456 type: Input
457 }], acceptIcon: [{
458 type: Input
459 }], acceptLabel: [{
460 type: Input
461 }], acceptAriaLabel: [{
462 type: Input
463 }], acceptVisible: [{
464 type: Input
465 }], rejectIcon: [{
466 type: Input
467 }], rejectLabel: [{
468 type: Input
469 }], rejectAriaLabel: [{
470 type: Input
471 }], rejectVisible: [{
472 type: Input
473 }], acceptButtonStyleClass: [{
474 type: Input
475 }], rejectButtonStyleClass: [{
476 type: Input
477 }], closeOnEscape: [{
478 type: Input
479 }], dismissableMask: [{
480 type: Input
481 }], blockScroll: [{
482 type: Input
483 }], rtl: [{
484 type: Input
485 }], closable: [{
486 type: Input
487 }], appendTo: [{
488 type: Input
489 }], key: [{
490 type: Input
491 }], autoZIndex: [{
492 type: Input
493 }], baseZIndex: [{
494 type: Input
495 }], transitionOptions: [{
496 type: Input
497 }], focusTrap: [{
498 type: Input
499 }], defaultFocus: [{
500 type: Input
501 }], breakpoints: [{
502 type: Input
503 }], visible: [{
504 type: Input
505 }], position: [{
506 type: Input
507 }], onHide: [{
508 type: Output
509 }], footer: [{
510 type: ContentChild,
511 args: [Footer]
512 }], contentViewChild: [{
513 type: ViewChild,
514 args: ['content']
515 }], templates: [{
516 type: ContentChildren,
517 args: [PrimeTemplate]
518 }] } });
519export class ConfirmDialogModule {
520}
521ConfirmDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ConfirmDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
522ConfirmDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ConfirmDialogModule, declarations: [ConfirmDialog], imports: [CommonModule, ButtonModule, RippleModule], exports: [ConfirmDialog, ButtonModule, SharedModule] });
523ConfirmDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ConfirmDialogModule, imports: [[CommonModule, ButtonModule, RippleModule], ButtonModule, SharedModule] });
524i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ConfirmDialogModule, decorators: [{
525 type: NgModule,
526 args: [{
527 imports: [CommonModule, ButtonModule, RippleModule],
528 exports: [ConfirmDialog, ButtonModule, SharedModule],
529 declarations: [ConfirmDialog]
530 }]
531 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C9zcGFuPlxuICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwicC1kaWFsb2ctaGVhZGVyLWljb25zXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8YnV0dG9uICpuZ0lmPVwiY2xvc2FibGVcIiB0eXBlPVwiYnV0dG9uXCIgW25nQ2xhc3NdPVwieydwLWRpYWxvZy1oZWFkZXItaWNvbiBwLWRpYWxvZy1oZWFkZXItY2xvc2UgcC1saW5rJzp0cnVlfVwiIChjbGljayk9XCJjbG9zZSgkZXZlbnQpXCIgKGtleWRvd24uZW50ZXIpPVwiY2xvc2UoJGV2ZW50KVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwicGkgcGktdGltZXNcIj48L3NwYW4+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgPGRpdiAjY29udGVudCBjbGFzcz1cInAtZGlhbG9nLWNvbnRlbnRcIj5cbiAgICAgICAgICAgICAgICAgICAgPGkgW25nQ2xhc3NdPVwiJ3AtY29uZmlybS1kaWFsb2ctaWNvbidcIiBbY2xhc3NdPVwib3B0aW9uKCdpY29uJylcIiAqbmdJZj1cIm9wdGlvbignaWNvbicpXCI+PC9pPlxuICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cInAtY29uZmlybS1kaWFsb2ctbWVzc2FnZVwiIFtpbm5lckhUTUxdPVwib3B0aW9uKCdtZXNzYWdlJylcIj48L3NwYW4+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInAtZGlhbG9nLWZvb3RlclwiICpuZ0lmPVwiZm9vdGVyIHx8IGZvb3RlclRlbXBsYXRlXCI+XG4gICAgICAgICAgICAgICAgICAgIDxuZy1jb250ZW50IHNlbGVjdD1cInAtZm9v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gIGNvbmZpcm1hdGlvbk9wdGlvbnM6IENvbmZpcm1hdGlvbjtcblxuICAgIHRyYW5zbGF0aW9uU3Vic2NyaXB0aW9uOiBTdWJzY3JpcHRpb247XG5cbiAgICBjb25zdHJ1Y3RvcihwdWJsaWMgZWw6IEVsZW1lbnRSZWYsIHB1YmxpYyByZW5kZXJlcjogUmVuZGVyZXIyLCBwcml2YXRlIGNvbmZpcm1hdGlvblNlcnZpY2U6IENvbmZpcm1hdGlvblNlcnZpY2UsIHB1YmxpYyB6b25lOiBOZ1pvbmUsIHByaXZhdGUgY2Q6IENoYW5nZURldGVjdG9yUmVmLCBwdWJsaWMgY29uZmlnOiBQcmltZU5HQ29uZmlnKSB7XG4gICAgICAgIHRoaXMuc3Vic2NyaXB0aW9uID0gdGhpcy5jb25maXJtYXRpb25TZXJ2aWNlLnJlcXVpcmVDb25maXJtYXRpb24kLnN1YnNjcmliZShjb25maXJtYXRpb24gPT4ge1xuICAgICAgICAgICAgaWYgKCFjb25maXJtYXRpb24pIHtcbiAgICAgICAgICAgICAgICB0aGlzLmhpZGUoKTtcbiAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChjb25maXJtYXRpb24ua2V5ID09PSB0aGlzLmtleSkge1xuICAgICAgICAgICAgICAgIHRoaXMuY29uZmlybWF0aW9uID0gY29uZmlybWF0aW9uO1xuICAgICAgICAgICAgICAgIHRoaXMuY29uZmlybWF0aW9uT3B0aW9ucyA9IHtcbiAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTogdGhpcy5jb25maXJtYXRpb24ubWVzc2FnZXx8dGhpcy5tZXNzYWdlLFxuICAgICAgICAgICAgICAgICAgICBpY29uOiB0aGlzLmNvbmZpcm1hdGlvbi5pY29ufHx0aGlzLmljb24sXG4gICAgICAgICAgICAgICAgICAgIGhlYWRlcjogdGhpcy5jb25maXJtYXRpb24uaGVhZGVyfHx0aGlzLmhlYWRlcixcbiAgICAgICAgICAgICAgICAgICAgcmVqZWN0VmlzaWJsZTogdGhpcy5jb25maXJtYXRpb24ucmVqZWN0VmlzaWJsZSA9PSBudWxsID8gdGhpcy5yZWplY3RWaXNpYmxlIDogdGhpcy5jb25maXJtYXRpb24ucmVqZWN0VmlzaWJsZSxcbiAgICAgICAgICAgICAgICAgICAgYWNjZXB0VmlzaWJsZTogdGhpcy5jb25maXJtYXRpb24uYWNjZXB0VmlzaWJsZSA9PSBudWxsID8gdGhpcy5hY2NlcHRWaXNpYmxlIDogdGhpcy5jb25maXJtYXRpb24uYWNjZXB0VmlzaWJsZSxcbiAgICAgICAgICAgICAgICAgICAgYWNjZXB0TGFiZWw6IHRoaXMuY29uZmlybWF0aW9uLmFjY2VwdExhYmVsfHx0aGlzLmFjY2VwdExhYmVsLFxuICAgICAgICAgICAgICAgICAgICByZWplY3RMYWJlbDogdGhpcy5jb25maXJtYXRpb24ucmVqZWN0TGFiZWx8fHRoaXMucmVqZWN0TGFiZWwsXG4gICAgICAgICAgICAgICAgICAgIGFjY2VwdEljb246IHRoaXMuY29uZmlybWF0aW9uLmFjY2VwdEljb24gfHwgdGhpcy5hY2NlcHRJY29uLFxuICAgICAgICAgICAgICAgICAgICByZWplY3RJY29uOiB0aGlzLmNvbmZpcm1hdGlvbi5yZWplY3RJY29uIHx8IHRoaXMucmVqZWN0SWNvbixcbiAgICAgICAgICAgICAgICAgICAgYWNjZXB0QnV0dG9uU3R5bGVDbGFzczogdGhpcy5jb25maXJtYXRpb24uYWNjZXB0QnV0dG9uU3R5bGVDbGFzcyB8fCB0aGlzLmFjY2VwdEJ1dHRvblN0eWxlQ2xhc3MsXG4gICAgICAgICAgICAgICAgICAgIHJlamVjdEJ1dHRvblN0eWxlQ2xhc3M6IHRoaXMuY29uZmlybWF0aW9uLnJlamVjdEJ1dHRvblN0eWxlQ2xhc3MgfHwgdGhpcy5yZWplY3RCdXR0b25TdHlsZUNsYXNzLFxuICAgICAgICAgICAgICAgICAgICBkZWZhdWx0Rm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0KTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZiAodGhpcy5jb25maXJtYXRpb24ucmVqZWN0KSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY29uZmlybWF0aW9uLnJlamVjdEV2ZW50ID0gbmV3IEV2ZW50RW1pdHRlcigpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmNvbmZpcm1hdGlvbi5yZWplY3RFdmVudC5zdWJzY3JpYmUodGhpcy5jb25maXJtYXRpb24ucmVqZWN0KTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICB0aGlzLnZpc2libGUgPSB0cnVlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBuZ09uSW5pdCgpIHtcbiAgICAgICAgaWYgKHRoaXMuYnJlYWtwb2ludHMpIHtcbiAgICAgICAgICAgIHRoaXMuY3JlYXRlU3R5bGUoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMudHJhbnNsYXRpb25TdWJzY3JpcHRpb24gPSB0aGlzLmNvbmZpZy50cmFuc2xhdGlvbk9ic2VydmVyLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICAgICAgICBpZiAodGhpcy52aXNpYmxlKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5jZC5tYXJrRm9yQ2hlY2soKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgb3B0aW9uKG5hbWU6IHN0cmluZykge1xuICAgICAgICBjb25zdCBzb3VyY2UgPSB0aGlzLmNvbmZpcm1hdGlvbk9wdGlvbnMgfHwgdGhpcztcbiAgICAgICAgaWYgKHNvdXJjZS5oYXNPd25Qcm9wZXJ0eShuYW1lKSkge1xuICAgICAgICAgICAgcmV0dXJuIHNvdXJjZVtuYW1lXTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgIH1cblxuICAgIG9uQW5pbWF0aW9uU3RhcnQoZXZlbnQ6IEFuaW1hdGlvbkV2ZW50KSB7XG4gICAgICAgIHN3aXRjaChldmVudC50b1N0YXRlKSB7XG4gICAgICAgICAgICBjYXNlICd2aXNpYmxlJzpcbiAgICAgICAgICAgICAgICB0aGlzLmNvbnRhaW5lciA9IGV2ZW50LmVsZW1lbnQ7XG4gICAgICAgICAgICAgICAgdGhpcy53cmFwcGVyID0gdGhpcy5jb250YWluZXIucGFyZW50RWxlbWVudDtcbiAgICAgICAgICAgICAgICB0aGlzLmNvbnRlbnRDb250YWluZXIgPSBEb21IYW5kbGVyLmZpbmRTaW5nbGUodGhpcy5jb250YWluZXIsICcucC1kaWFsb2ctY29udGVudCcpO1xuICAgICAgICAgICAgICAgIHRoaXMuY29udGFpbmVyLnNldEF0dHJpYnV0ZSh0aGlzLmlkLCAnJyk7XG4gICAgICAgICAgICAgICAgdGhpcy5hcHBlbmRDb250YWluZXIoKTtcbiAgICAgICAgICAgICAgICB0aGlzLm1vdmVPblRvcCgpO1xuICAgICAgICAgICAgICAgIHRoaXMuYmluZEdsb2JhbExpc3RlbmVycygpO1xuICAgICAgICAgICAgICAgIHRoaXMuZW5hYmxlTW9kYWxpdHkoKTtcblxuICAgICAgICAgICAgICAgIGNvbnN0IGVsZW1lbnQgPSB0aGlzLmdldEVsZW1lbnRUb0ZvY3VzKCk7XG4gICAgICAgICAgICAgICAgaWYgKGVsZW1lbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgZWxlbWVudC5mb2N1cygpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25BbmltYXRpb25FbmQoZXZlbnQ6IEFuaW1hdGlvbkV2ZW50KSB7XG4gICAgICAgIHN3aXRjaChldmVudC50b1N0YXRlKSB7XG4gICAgICAgICAgICBjYXNlICd2b2lkJzpcbiAgICAgICAgICAgICAgICB0aGlzLm9uT3ZlcmxheUhpZGUoKTtcbiAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZ2V0RWxlbWVudFRvRm9jdXMoKSB7XG4gICAgICAgIHN3aXRjaCh0aGlzLm9wdGlvbignZGVmYXVsdEZvY3VzJykpIHtcbiAgICAgICAgICAgIGNhc2UgJ2FjY2VwdCc6XG4gICAgICAgICAgICAgICAgcmV0dXJuIERvbUhhbmRsZXIuZmluZFNpbmdsZSh0aGlzLmNvbnRhaW5lciwgJy5wLWNvbmZpcm0tZGlhbG9nLWFjY2VwdCcpO1xuXG4gICAgICAgICAgICBjYXNlICdyZWplY3QnOlxuICAgICAgICAgICAgICAgIHJldHVybiBEb21IYW5kbGVyLmZpbmRTaW5nbGUodGhpcy5jb250YWluZXIsICcucC1jb25maXJtLWRpYWxvZy1yZWplY3QnKTtcblxuICAgICAgICAgICAgY2FzZSAnY2xvc2UnOlxuICAgICAgICAgICAgICAgIHJldHVybiBEb21IYW5kbGVyLmZpbmRTaW5nbGUodGhpcy5jb250YWluZXIsICcucC1kaWFsb2ctaGVhZGVyLWNsb3NlJyk7XG5cbiAgICAgICAgICAgIGNhc2UgJ25vbmUnOlxuICAgICAgICAgICAgICAgIHJldHVybiBudWxsO1xuXG4gICAgICAgICAgICAvL2JhY2t3YXJkIGNvbXBhdGliaWxpdHlcbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgcmV0dXJuIERvbUhhbmRsZXIuZmluZFNpbmdsZSh0aGlzLmNvbnRhaW5lciwgJy5wLWNvbmZpcm0tZGlhbG9nLWFjY2VwdCcpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgYXBwZW5kQ29udGFpbmVyKCkge1xuICAgICAgICBpZiAodGhpcy5hcHBlbmRUbykge1xuICAgICAgICAgICAgaWYgKHRoaXMuYXBwZW5kVG8gPT09ICdib2R5JylcbiAgICAgICAgICAgICAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKHRoaXMud3JhcHBlcik7XG4gICAgICAg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ICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBgXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRoaXMuc3R5bGVFbGVtZW50LmlubmVySFRNTCA9IGlubmVySFRNTDtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGNsb3NlKGV2ZW50OiBFdmVudCkge1xuICAgICAgICBpZiAodGhpcy5jb25maXJtYXRpb24ucmVqZWN0RXZlbnQpIHtcbiAgICAgICAgICAgIHRoaXMuY29uZmlybWF0aW9uLnJlamVjdEV2ZW50LmVtaXQoQ29uZmlybUV2ZW50VHlwZS5DQU5DRUwpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5oaWRlKENvbmZpcm1FdmVudFR5cGUuQ0FOQ0VMKTtcbiAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICB9XG5cbiAgICBoaWRlKHR5cGU/KSB7XG4gICAgICAgIHRoaXMub25IaWRlLmVtaXQodHlwZSk7XG4gICAgICAgIHRoaXMudmlzaWJsZSA9IGZhbHNlO1xuICAgICAgICB0aGlzLmNvbmZpcm1hdGlvbiA9IG51bGw7XG4gICAgICAgIHRoaXMuY29uZmlybWF0aW9uT3B0aW9ucyA9IG51bGw7XG4gICAgfVxuXG4gICAgbW92ZU9uVG9wKCkge1xuICAgICAgICBpZiAodGhpcy5hdXRvWkluZGV4KSB7XG4gICAgICAgICAgICBaSW5kZXhVdGlscy5zZXQoJ21vZGFsJywgdGhpcy5jb250YWluZXIsIHRoaXMuYmFzZVpJbmRleCArIHRoaXMuY29uZmlnLnpJbmRleC5tb2RhbCk7XG4gICAgICAgICAgICB0aGlzLndyYXBwZXIuc3R5bGUuekluZGV4ID0gU3RyaW5nKHBhcnNlSW50KHRoaXMuY29udGFpbmVyLnN0eWxlLnpJbmRleCwgMTApIC0gMSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBnZXRNYXNrQ2xhc3MoKSB7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CwgJ2tleWRvd24nLCAoZXZlbnQpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoZXZlbnQud2hpY2ggPT0gMjcgJiYgKHRoaXMub3B0aW9uKCdjbG9zZU9uRXNjYXBlJykgJiYgdGhpcy5jbG9zYWJsZSkpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHBhcnNlSW50KHRoaXMuY29udGFpbmVyLnN0eWxlLnpJbmRleCkgPT09IFpJbmRleFV0aWxzLmdldCh0aGlzLmNvbnRhaW5lcikgJiYgdGhpcy52aXNpYmxlKcKge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5jbG9zZShldmVudCk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZiAoZXZlbnQud2hpY2ggPT09IDkgJiYgdGhpcy5mb2N1c1RyYXApIHtcbiAgICAgICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcblxuICAgICAgICAgICAgICAgICAgICBsZXQgZm9jdXNhYmxlRWxlbWVudHMgPSBEb21IYW5kbGVyLmdldEZvY3VzYWJsZUVsZW1lbnRzKHRoaXMuY29udGFpbmVyKTtcblxuICAgICAgICAgICAgICAgICAgICBpZiAoZm9jdXNhYmxlRWxlbWVudHMgJiYgZm9jdXNhYmxlRWxlbWVudHMubGVuZ3RoID4gMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFmb2N1c2FibGVFbGVtZW50c1swXS5vd25lckRvY3VtZW50LmFjdGl2ZUVsZW1lbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb2N1c2FibGVFbGVtZW50c1swXS5mb2N1cygpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGZvY3VzZWRJbmRleCA9IGZvY3VzYWJsZUVsZW1lbnRzLmluZGV4T2YoZm9jdXNhYmxlRWxlbWVudHNbMF0ub3duZXJEb2N1bWVudC5hY3RpdmVFbGVtZW50KTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChldmVudC5zaGlmdEtleSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoZm9jdXNlZEluZGV4ID09IC0xIHx8IGZvY3VzZWRJbmRleCA9PT0gMClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvY3VzYWJsZUVsZW1lbnRzW2ZvY3VzYWJsZUVsZW1lbnRzLmxlbmd0aCAtIDFdLmZvY3VzKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvY3VzYWJsZUVsZW1lbnRzW2ZvY3VzZWRJbmRleCAtIDFdLmZvY3VzKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoZm9jdXNlZEluZGV4ID09IC0xIHx8IGZvY3VzZWRJbmRleCA9PT0gKGZvY3VzYWJsZUVsZW1lbnRzLmxlbmd0aCAtIDEpKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9jdXNhYmxlRWxlbWVudHNbMF0uZm9jdXMoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9jdXNhYmxlRWxlbWVudHNbZm9jdXNlZEluZGV4ICsgMV0uZm9jdXMoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuIC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woKTogc3RyaW5nIHtcbiAgICAgICAgcmV0dXJuIHRoaXMub3B0aW9uKCdyZWplY3RMYWJlbCcpIHx8IHRoaXMuY29uZmlnLmdldFRyYW5zbGF0aW9uKFRyYW5zbGF0aW9uS2V5cy5SRUpFQ1QpO1xuICAgIH1cbn1cblxuQE5nTW9kdWxlKHtcbiAgICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLEJ1dHRvbk1vZHVsZSxSaXBwbGVNb2R1bGVdLFxuICAgIGV4cG9ydHM6IFtDb25maXJtRGlhbG9nLEJ1dHRvbk1vZHVsZSxTaGFyZWRNb2R1bGVdLFxuICAgIGRlY2xhcmF0aW9uczogW0NvbmZpcm1EaWFsb2ddXG59KVxuZXhwb3J0IGNsYXNzIENvbmZpcm1EaWFsb2dNb2R1bGUgeyB9XG4iXX0=
Note: See TracBrowser for help on using the repository browser.