source: trip-planner-front/node_modules/primeng/esm2020/confirmpopup/confirmpopup.mjs@ 571e0df

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

adding photos

  • Property mode set to 100644
File size: 40.5 KB
RevLine 
[59329aa]1import { NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, EventEmitter } from '@angular/core';
2import { CommonModule } from '@angular/common';
3import { TranslationKeys } from 'primeng/api';
4import { ButtonModule } from 'primeng/button';
5import { ZIndexUtils } from 'primeng/utils';
6import { trigger, state, style, transition, animate } from '@angular/animations';
7import { DomHandler, ConnectedOverlayScrollHandler } from 'primeng/dom';
8import * as i0 from "@angular/core";
9import * as i1 from "primeng/api";
10import * as i2 from "@angular/common";
11import * as i3 from "primeng/button";
12export class ConfirmPopup {
13 constructor(el, confirmationService, renderer, cd, config, overlayService) {
14 this.el = el;
15 this.confirmationService = confirmationService;
16 this.renderer = renderer;
17 this.cd = cd;
18 this.config = config;
19 this.overlayService = overlayService;
20 this.defaultFocus = "accept";
21 this.showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
22 this.hideTransitionOptions = '.1s linear';
23 this.autoZIndex = true;
24 this.baseZIndex = 0;
25 this.subscription = this.confirmationService.requireConfirmation$.subscribe(confirmation => {
26 if (!confirmation) {
27 this.hide();
28 return;
29 }
30 if (confirmation.key === this.key) {
31 this.confirmation = confirmation;
32 if (this.confirmation.accept) {
33 this.confirmation.acceptEvent = new EventEmitter();
34 this.confirmation.acceptEvent.subscribe(this.confirmation.accept);
35 }
36 if (this.confirmation.reject) {
37 this.confirmation.rejectEvent = new EventEmitter();
38 this.confirmation.rejectEvent.subscribe(this.confirmation.reject);
39 }
40 this.visible = true;
41 }
42 });
43 }
44 get visible() {
45 return this._visible;
46 }
47 set visible(value) {
48 this._visible = value;
49 this.cd.markForCheck();
50 }
51 onAnimationStart(event) {
52 if (event.toState === 'open') {
53 this.container = event.element;
54 document.body.appendChild(this.container);
55 this.align();
56 this.bindListeners();
57 const element = this.getElementToFocus();
58 if (element) {
59 element.focus();
60 }
61 }
62 }
63 onAnimationEnd(event) {
64 switch (event.toState) {
65 case 'void':
66 this.onContainerDestroy();
67 break;
68 }
69 }
70 getElementToFocus() {
71 switch (this.defaultFocus) {
72 case 'accept':
73 return DomHandler.findSingle(this.container, '.p-confirm-popup-accept');
74 case 'reject':
75 return DomHandler.findSingle(this.container, '.p-confirm-popup-reject');
76 case 'none':
77 return null;
78 }
79 }
80 align() {
81 if (this.autoZIndex) {
82 ZIndexUtils.set('overlay', this.container, this.config.zIndex.overlay);
83 }
84 DomHandler.absolutePosition(this.container, this.confirmation.target);
85 const containerOffset = DomHandler.getOffset(this.container);
86 const targetOffset = DomHandler.getOffset(this.confirmation.target);
87 let arrowLeft = 0;
88 if (containerOffset.left < targetOffset.left) {
89 arrowLeft = targetOffset.left - containerOffset.left;
90 }
91 this.container.style.setProperty('--overlayArrowLeft', `${arrowLeft}px`);
92 if (containerOffset.top < targetOffset.top) {
93 DomHandler.addClass(this.container, 'p-confirm-popup-flipped');
94 }
95 }
96 hide() {
97 this.visible = false;
98 }
99 accept() {
100 if (this.confirmation.acceptEvent) {
101 this.confirmation.acceptEvent.emit();
102 }
103 this.hide();
104 }
105 reject() {
106 if (this.confirmation.rejectEvent) {
107 this.confirmation.rejectEvent.emit();
108 }
109 this.hide();
110 }
111 onOverlayClick(event) {
112 this.overlayService.add({
113 originalEvent: event,
114 target: this.el.nativeElement
115 });
116 }
117 bindListeners() {
118 this.bindDocumentClickListener();
119 this.bindDocumentResizeListener();
120 this.bindScrollListener();
121 }
122 unbindListeners() {
123 this.unbindDocumentClickListener();
124 this.unbindDocumentResizeListener();
125 this.unbindScrollListener();
126 }
127 bindDocumentClickListener() {
128 if (!this.documentClickListener) {
129 let documentEvent = DomHandler.isIOS() ? 'touchstart' : 'click';
130 const documentTarget = this.el ? this.el.nativeElement.ownerDocument : document;
131 this.documentClickListener = this.renderer.listen(documentTarget, documentEvent, (event) => {
132 let targetElement = this.confirmation.target;
133 if (this.container !== event.target && !this.container.contains(event.target) &&
134 targetElement !== event.target && !targetElement.contains(event.target)) {
135 this.hide();
136 }
137 });
138 }
139 }
140 unbindDocumentClickListener() {
141 if (this.documentClickListener) {
142 this.documentClickListener();
143 this.documentClickListener = null;
144 }
145 }
146 onWindowResize() {
147 this.hide();
148 }
149 bindDocumentResizeListener() {
150 this.documentResizeListener = this.onWindowResize.bind(this);
151 window.addEventListener('resize', this.documentResizeListener);
152 }
153 unbindDocumentResizeListener() {
154 if (this.documentResizeListener) {
155 window.removeEventListener('resize', this.documentResizeListener);
156 this.documentResizeListener = null;
157 }
158 }
159 bindScrollListener() {
160 if (!this.scrollHandler) {
161 this.scrollHandler = new ConnectedOverlayScrollHandler(this.confirmation.target, () => {
162 if (this.visible) {
163 this.hide();
164 }
165 });
166 }
167 this.scrollHandler.bindScrollListener();
168 }
169 unbindScrollListener() {
170 if (this.scrollHandler) {
171 this.scrollHandler.unbindScrollListener();
172 }
173 }
174 unsubscribeConfirmationSubscriptions() {
175 if (this.confirmation) {
176 if (this.confirmation.acceptEvent) {
177 this.confirmation.acceptEvent.unsubscribe();
178 }
179 if (this.confirmation.rejectEvent) {
180 this.confirmation.rejectEvent.unsubscribe();
181 }
182 }
183 }
184 onContainerDestroy() {
185 this.unbindListeners();
186 this.unsubscribeConfirmationSubscriptions();
187 if (this.autoZIndex) {
188 ZIndexUtils.clear(this.container);
189 }
190 this.confirmation = null;
191 this.container = null;
192 }
193 restoreAppend() {
194 if (this.container) {
195 document.body.removeChild(this.container);
196 }
197 this.onContainerDestroy();
198 }
199 get acceptButtonLabel() {
200 return this.confirmation.acceptLabel || this.config.getTranslation(TranslationKeys.ACCEPT);
201 }
202 get rejectButtonLabel() {
203 return this.confirmation.rejectLabel || this.config.getTranslation(TranslationKeys.REJECT);
204 }
205 ngOnDestroy() {
206 this.restoreAppend();
207 if (this.subscription) {
208 this.subscription.unsubscribe();
209 }
210 }
211}
212ConfirmPopup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ConfirmPopup, deps: [{ token: i0.ElementRef }, { token: i1.ConfirmationService }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i1.PrimeNGConfig }, { token: i1.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
213ConfirmPopup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: ConfirmPopup, selector: "p-confirmPopup", inputs: { key: "key", defaultFocus: "defaultFocus", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", style: "style", styleClass: "styleClass", visible: "visible" }, host: { classAttribute: "p-element" }, ngImport: i0, template: `
214 <div *ngIf="visible" [ngClass]="'p-confirm-popup p-component'" [ngStyle]="style" [class]="styleClass" (click)="onOverlayClick($event)"
215 [@animation]="{value: 'open', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}"
216 (@animation.start)="onAnimationStart($event)" (@animation.done)="onAnimationEnd($event)">
217 <div #content class="p-confirm-popup-content">
218 <i [ngClass]="'p-confirm-popup-icon'" [class]="confirmation.icon" *ngIf="confirmation.icon"></i>
219 <span class="p-confirm-popup-message">{{confirmation.message}}</span>
220 </div>
221 <div class="p-confirm-popup-footer">
222 <button type="button" pButton [icon]="confirmation.rejectIcon" [label]="rejectButtonLabel" (click)="reject()" [ngClass]="'p-confirm-popup-reject p-button-sm'"
223 [class]="confirmation.rejectButtonStyleClass || 'p-button-text'" *ngIf="confirmation.rejectVisible !== false" [attr.aria-label]="rejectButtonLabel"></button>
224 <button type="button" pButton [icon]="confirmation.acceptIcon" [label]="acceptButtonLabel" (click)="accept()" [ngClass]="'p-confirm-popup-accept p-button-sm'"
225 [class]="confirmation.acceptButtonStyleClass" *ngIf="confirmation.acceptVisible !== false" [attr.aria-label]="acceptButtonLabel"></button>
226 </div>
227 </div>
228 `, isInline: true, styles: [".p-confirm-popup{position:absolute;margin-top:10px;top:0;left:0}.p-confirm-popup-flipped{margin-top:0;margin-bottom:10px}.p-confirm-popup:after,.p-confirm-popup:before{bottom:100%;left:calc(0 + 1.25rem);left:calc(var(--overlayArrowLeft, 0) + 1.25rem);content:\" \";height:0;width:0;position:absolute;pointer-events:none}.p-confirm-popup:after{border-width:8px;margin-left:-8px}.p-confirm-popup:before{border-width:10px;margin-left:-10px}.p-confirm-popup-flipped:after,.p-confirm-popup-flipped:before{bottom:auto;top:100%}.p-confirm-popup.p-confirm-popup-flipped:after,.p-confirm-popup.p-confirm-popup-flipped:before{border-bottom-color:transparent}.p-confirm-popup .p-confirm-popup-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: i3.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }], animations: [
229 trigger('animation', [
230 state('void', style({
231 transform: 'scaleY(0.8)',
232 opacity: 0
233 })),
234 state('open', style({
235 transform: 'translateY(0)',
236 opacity: 1
237 })),
238 transition('void => open', animate('{{showTransitionParams}}')),
239 transition('open => void', animate('{{hideTransitionParams}}')),
240 ])
241 ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
242i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ConfirmPopup, decorators: [{
243 type: Component,
244 args: [{ selector: 'p-confirmPopup', template: `
245 <div *ngIf="visible" [ngClass]="'p-confirm-popup p-component'" [ngStyle]="style" [class]="styleClass" (click)="onOverlayClick($event)"
246 [@animation]="{value: 'open', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}"
247 (@animation.start)="onAnimationStart($event)" (@animation.done)="onAnimationEnd($event)">
248 <div #content class="p-confirm-popup-content">
249 <i [ngClass]="'p-confirm-popup-icon'" [class]="confirmation.icon" *ngIf="confirmation.icon"></i>
250 <span class="p-confirm-popup-message">{{confirmation.message}}</span>
251 </div>
252 <div class="p-confirm-popup-footer">
253 <button type="button" pButton [icon]="confirmation.rejectIcon" [label]="rejectButtonLabel" (click)="reject()" [ngClass]="'p-confirm-popup-reject p-button-sm'"
254 [class]="confirmation.rejectButtonStyleClass || 'p-button-text'" *ngIf="confirmation.rejectVisible !== false" [attr.aria-label]="rejectButtonLabel"></button>
255 <button type="button" pButton [icon]="confirmation.acceptIcon" [label]="acceptButtonLabel" (click)="accept()" [ngClass]="'p-confirm-popup-accept p-button-sm'"
256 [class]="confirmation.acceptButtonStyleClass" *ngIf="confirmation.acceptVisible !== false" [attr.aria-label]="acceptButtonLabel"></button>
257 </div>
258 </div>
259 `, animations: [
260 trigger('animation', [
261 state('void', style({
262 transform: 'scaleY(0.8)',
263 opacity: 0
264 })),
265 state('open', style({
266 transform: 'translateY(0)',
267 opacity: 1
268 })),
269 transition('void => open', animate('{{showTransitionParams}}')),
270 transition('open => void', animate('{{hideTransitionParams}}')),
271 ])
272 ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
273 'class': 'p-element'
274 }, styles: [".p-confirm-popup{position:absolute;margin-top:10px;top:0;left:0}.p-confirm-popup-flipped{margin-top:0;margin-bottom:10px}.p-confirm-popup:after,.p-confirm-popup:before{bottom:100%;left:calc(0 + 1.25rem);left:calc(var(--overlayArrowLeft, 0) + 1.25rem);content:\" \";height:0;width:0;position:absolute;pointer-events:none}.p-confirm-popup:after{border-width:8px;margin-left:-8px}.p-confirm-popup:before{border-width:10px;margin-left:-10px}.p-confirm-popup-flipped:after,.p-confirm-popup-flipped:before{bottom:auto;top:100%}.p-confirm-popup.p-confirm-popup-flipped:after,.p-confirm-popup.p-confirm-popup-flipped:before{border-bottom-color:transparent}.p-confirm-popup .p-confirm-popup-content{display:flex;align-items:center}\n"] }]
275 }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.ConfirmationService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i1.PrimeNGConfig }, { type: i1.OverlayService }]; }, propDecorators: { key: [{
276 type: Input
277 }], defaultFocus: [{
278 type: Input
279 }], showTransitionOptions: [{
280 type: Input
281 }], hideTransitionOptions: [{
282 type: Input
283 }], autoZIndex: [{
284 type: Input
285 }], baseZIndex: [{
286 type: Input
287 }], style: [{
288 type: Input
289 }], styleClass: [{
290 type: Input
291 }], visible: [{
292 type: Input
293 }] } });
294export class ConfirmPopupModule {
295}
296ConfirmPopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ConfirmPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
297ConfirmPopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ConfirmPopupModule, declarations: [ConfirmPopup], imports: [CommonModule, ButtonModule], exports: [ConfirmPopup] });
298ConfirmPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ConfirmPopupModule, imports: [[CommonModule, ButtonModule]] });
299i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: ConfirmPopupModule, decorators: [{
300 type: NgModule,
301 args: [{
302 imports: [CommonModule, ButtonModule],
303 exports: [ConfirmPopup],
304 declarations: [ConfirmPopup]
305 }]
306 }] });
307//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybXBvcHVwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2FwcC9jb21wb25lbnRzL2NvbmZpcm1wb3B1cC9jb25maXJtcG9wdXAudHMiXSwibmFtZXMiOltdLCJtYXBw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xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoY29uZmlybWF0aW9uLmtleSA9PT0gdGhpcy5rZXkpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmNvbmZpcm1hdGlvbiA9IGNvbmZpcm1hdGlvbjtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5jb25maXJtYXRpb24uYWNjZXB0KSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY29uZmlybWF0aW9uLmFjY2VwdEV2ZW50ID0gbmV3IEV2ZW50RW1pdHRlcigpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmNvbmZpcm1hdGlvbi5hY2NlcHRFdmVudC5zdWJzY3JpYmUodGhpcy5jb25maXJtYXRpb24uYWNjZXB0KTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZiAodGhpcy5jb25maXJtYXRpb24ucmVqZWN0KSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY29uZmlybWF0aW9uLnJlamVjdEV2ZW50ID0gbmV3IEV2ZW50RW1pdHRlcigpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmNvbmZpcm1hdGlvbi5yZWplY3RFdmVudC5zdWJzY3JpYmUodGhpcy5jb25maXJtYXRpb24ucmVqZWN0KTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICB0aGlzLnZpc2libGUgPSB0cnVlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBvbkFuaW1hdGlvblN0YXJ0KGV2ZW50OiBBbmltYXRpb25FdmVudCkge1xuICAgICAgICBpZiAoZXZlbnQudG9TdGF0ZSA9PT0gJ29wZW4nKSB7XG4gICAgICAgICAgICB0aGlzLmNvbnRhaW5lciA9IGV2ZW50LmVsZW1lbnQ7XG4gICAgICAgICAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKHRoaXMuY29udGFpbmVyKTtcbiAgICAgICAgICAgIHRoaXMuYWxpZ24oKTtcbiAgICAgICAgICAgIHRoaXMuYmluZExpc3RlbmVycygpO1xuXG4gICAgICAgICAgICBjb25zdCBlbGVtZW50ID0gdGhpcy5nZXRFbGVtZW50VG9Gb2N1cygpO1xuICAgICAgICAgICAgaWYgKGVsZW1lbnQpIHtcbiAgICAgICAgICAgICAgICBlbGVtZW50LmZvY3VzKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbkFuaW1hdGlvbkVuZChldmVudDogQW5pbWF0aW9uRXZlbnQpIHtcbiAgICAgICAgc3dpdGNoIChldmVudC50b1N0YXRlKSB7XG4gICAgICAgICAgICBjYXNlICd2b2lkJzpcbiAgICAgICAgICAgICAgICB0aGlzLm9uQ29udGFpbmVyRGVzdHJveSgpO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBnZXRFbGVtZW50VG9Gb2N1cygpIHtcbiAgICAgICAgc3dpdGNoKHRoaXMuZGVmYXVsdEZvY3VzKSB7XG4gICAgICAgICAgICBjYXNlICdhY2NlcHQnOlxuICAgICAgICAgICAgICAgIHJldHVybiBEb21IYW5kbGVyLmZpbmRTaW5nbGUodGhpcy5jb250YWluZXIsICcucC1jb25maXJtLXBvcHVwLWFjY2VwdCcpO1xuXG4gICAgICAgICAgICBjYXNlICdyZWplY3QnOlxuICAgICAgICAgICAgICAgIHJldHVybiBEb21IYW5kbGVyLmZpbmRTaW5nbGUodGhpcy5jb250YWluZXIsICcucC1jb25maXJtLXBvcHVwLXJlamVjdCcpO1xuXG4gICAgICAgICAgICBjYXNlICdub25lJzpcbiAgICAgICAgICAgICAgICByZXR1cm4gbnVsbDtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGFsaWduKCkge1xuICAgICAgICBpZiAodGhpcy5hdXRvWkluZGV4KSB7XG4gICAgICAgICAgICBaSW5kZXhVdGlscy5zZXQoJ292ZXJsYXknLCB0aGlzLmNvbnRhaW5lciwgdGhpc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hzdGFydCcgOiAnY2xpY2snO1xuICAgICAgICAgICAgY29uc3QgZG9jdW1lbnRUYXJnZXQ6IGFueSA9IHRoaXMuZWwgPyB0aGlzLmVsLm5hdGl2ZUVsZW1lbnQub3duZXJEb2N1bWVudCA6IGRvY3VtZW50O1xuXG4gICAgICAgICAgICB0aGlzLmRvY3VtZW50Q2xpY2tMaXN0ZW5lciA9IHRoaXMucmVuZGVyZXIubGlzdGVuKGRvY3VtZW50VGFyZ2V0LCBkb2N1bWVudEV2ZW50LCAoZXZlbnQpID0+IHtcbiAgICAgICAgICAgICAgICBsZXQgdGFyZ2V0RWxlbWVudCA9IDxIVE1MRWxlbWVudD4gdGhpcy5jb25maXJtYXRpb24udGFyZ2V0O1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLmNvbnRhaW5lciAhPT0gZXZlbnQudGFyZ2V0ICYmICF0aGlzLmNvbnRhaW5lci5jb250YWlucyhldmVudC50YXJnZXQpICYmXG4gICAgICAgICAgICAgICAgICAgIHRhcmdldEVsZW1lbnQgIT09IGV2ZW50LnRhcmdldCAmJiAhdGFyZ2V0RWxlbWVudC5jb250YWlucyhldmVudC50YXJnZXQpKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaGlkZSgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgdW5iaW5kRG9jdW1lbnRDbGlja0xpc3RlbmVyKCkge1xuICAgICAgICBpZiAodGhpcy5kb2N1bWVudENsaWNrTGlzdGVuZXIpIHtcbiAgICAgICAgICAgIHRoaXMuZG9jdW1lbnRDbGlja0xpc3RlbmVyKCk7XG4gICAgICAgICAgICB0aGlzLmRvY3VtZW50Q2xpY2tMaXN0ZW5lciA9IG51bGw7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbldpbmRvd1Jlc2l6ZSgpIHtcbiAgICAgICAgdGhpcy5oaWRlKCk7XG4gICAgfVxuXG4gICAgYmluZERvY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uc2Nyb2xsSGFuZGxlci51bmJpbmRTY3JvbGxMaXN0ZW5lcigpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgdW5zdWJzY3JpYmVDb25maXJtYXRpb25TdWJzY3JpcHRpb25zKCkge1xuICAgICAgICBpZiAodGhpcy5jb25maXJtYXRpb24pIHtcbiAgICAgICAgICAgIGlmICh0aGlzLmNvbmZpcm1hdGlvbi5hY2NlcHRFdmVudCkge1xuICAgICAgICAgICAgICAgIHRoaXMuY29uZmlybWF0aW9uLmFjY2VwdEV2ZW50LnVuc3Vic2NyaWJlKCk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmICh0aGlzLmNvbmZpcm1hdGlvbi5yZWplY3RFdmVudCkge1xuICAgICAgICAgICAgICAgIHRoaXMuY29uZmlybWF0aW9uLnJlamVjdEV2ZW50LnVuc3Vic2NyaWJlKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbkNvbnRhaW5lckRlc3Ryb3koKSB7XG4gICAgICAgIHRoaXMudW5iaW5kTGlzdGVuZXJzKCk7XG4gICAgICAgIHRoaXMudW5zdWJzY3JpYmVDb25maXJtYXRpb25TdWJzY3JpcHRpb25zKCk7XG5cbiAgICAgICAgaWYgKHRoaXMuYXV0b1pJbmRleCkge1xuICAgICAgICAgICAgWkluZGV4VXRpbHMuY2xlYXIodGhpcy5jb250YWluZXIpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5jb25maXJtYXRpb24gPSBudWxsO1xuICAgICAgICB0aGlzLmNvbnRhaW5lciA9IG51bGw7XG4gICAgfVxuXG4gICAgcmVzdG9yZUFwcGVuZCgpIHtcbiAgICAgICAgaWYgKHRoaXMuY29udGFpbmVyKSB7XG4gICAgICAgICAgICBkb2N1bWVudC5ib2R5LnJlbW92ZUNoaWxkKHRoaXMuY29udGFpbmVyKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMub25Db250YWluZXJEZXN0cm95KCk7XG4gICAgfVxuXG4gICAgZ2V0IGFjY2VwdEJ1dHRvbkxhYmVsKCk6IHN0cmluZyB7XG4gICAgICAgIHJldHVybiB0aGlzLmNvbmZpcm1hdGlvbi5hY2NlcHRMYWJlbCB8fCB0aGlzLmNvbmZpZy5nZXRUcmFuc2xhdGlvbihUcmFuc2xhdGlvbktleXMuQUNDRVBUKTtcbiAgICB9XG5cbiAgICBnZXQgcmVqZWN0QnV0dG9uTGFiZWwoKTogc3RyaW5nIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuY29uZmlybWF0aW9uLnJlamVjdExhYmVsIHx8IHRoaXMuY29uZmlnLmdldFRyYW5zbGF0aW9uKFRyYW5zbGF0aW9uS2V5cy5SRUpFQ1QpO1xuICAgIH1cblxuICAgIG5nT25EZXN0cm95KCkge1xuICAgICAgICB0aGlzLnJlc3RvcmVBcHBlbmQoKTtcblxuICAgICAgICBpZiAodGhpcy5zdWJzY3JpcHRpb24pIHtcbiAgICAgICAgICAgIHRoaXMuc3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG4gICAgICAgIH1cbiAgICB9XG59XG5cbkBOZ01vZHVsZSh7XG4gICAgaW1wb3J0czogW0NvbW1vbk1vZHVsZSxCdXR0b25Nb2R1bGVdLFxuICAgIGV4cG9ydHM6IFtDb25maXJtUG9wdXBdLFxuICAgIGRlY2xhcmF0aW9uczogW0NvbmZpcm1Qb3B1cF1cbn0pXG5leHBvcnQgY2xhc3MgQ29uZmlybVBvcHVwTW9kdWxlIHsgfVxuIl19
Note: See TracBrowser for help on using the repository browser.