source: trip-planner-front/node_modules/primeng/esm2020/overlaypanel/overlaypanel.mjs@ 6fe77af

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

adding photos

  • Property mode set to 100644
File size: 45.0 KB
RevLine 
[59329aa]1import { NgModule, Component, Input, Output, EventEmitter, ContentChildren, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
2import { CommonModule } from '@angular/common';
3import { DomHandler, ConnectedOverlayScrollHandler } from 'primeng/dom';
4import { SharedModule, PrimeTemplate } from 'primeng/api';
5import { RippleModule } from 'primeng/ripple';
6import { trigger, state, style, transition, animate } from '@angular/animations';
7import { ZIndexUtils } from 'primeng/utils';
8import * as i0 from "@angular/core";
9import * as i1 from "primeng/api";
10import * as i2 from "@angular/common";
11import * as i3 from "primeng/ripple";
12export class OverlayPanel {
13 constructor(el, renderer, cd, zone, config, overlayService) {
14 this.el = el;
15 this.renderer = renderer;
16 this.cd = cd;
17 this.zone = zone;
18 this.config = config;
19 this.overlayService = overlayService;
20 this.dismissable = true;
21 this.appendTo = 'body';
22 this.autoZIndex = true;
23 this.baseZIndex = 0;
24 this.focusOnShow = true;
25 this.showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
26 this.hideTransitionOptions = '.1s linear';
27 this.onShow = new EventEmitter();
28 this.onHide = new EventEmitter();
29 this.overlayVisible = false;
30 this.render = false;
31 this.selfClick = false;
32 }
33 ngAfterContentInit() {
34 this.templates.forEach((item) => {
35 switch (item.getType()) {
36 case 'content':
37 this.contentTemplate = item.template;
38 break;
39 default:
40 this.contentTemplate = item.template;
41 break;
42 }
43 this.cd.markForCheck();
44 });
45 }
46 bindDocumentClickListener() {
47 if (!this.documentClickListener && this.dismissable) {
48 this.zone.runOutsideAngular(() => {
49 let documentEvent = DomHandler.isIOS() ? 'touchstart' : 'click';
50 const documentTarget = this.el ? this.el.nativeElement.ownerDocument : 'document';
51 this.documentClickListener = this.renderer.listen(documentTarget, documentEvent, (event) => {
52 if (!this.container.contains(event.target) && this.target !== event.target && !this.target.contains(event.target) && !this.selfClick) {
53 this.zone.run(() => {
54 this.hide();
55 });
56 }
57 this.selfClick = false;
58 this.cd.markForCheck();
59 });
60 });
61 }
62 }
63 unbindDocumentClickListener() {
64 if (this.documentClickListener) {
65 this.documentClickListener();
66 this.documentClickListener = null;
67 this.selfClick = false;
68 }
69 }
70 toggle(event, target) {
71 if (this.overlayVisible) {
72 if (this.hasTargetChanged(event, target)) {
73 this.destroyCallback = () => {
74 this.show(null, (target || event.currentTarget || event.target));
75 };
76 }
77 this.hide();
78 }
79 else {
80 this.show(event, target);
81 }
82 }
83 show(event, target) {
84 this.target = target || event.currentTarget || event.target;
85 this.overlayVisible = true;
86 this.render = true;
87 this.cd.markForCheck();
88 }
89 onOverlayClick(event) {
90 this.overlayService.add({
91 originalEvent: event,
92 target: this.el.nativeElement
93 });
94 this.selfClick = true;
95 }
96 onContentClick() {
97 this.selfClick = true;
98 }
99 hasTargetChanged(event, target) {
100 return this.target != null && this.target !== (target || event.currentTarget || event.target);
101 }
102 appendContainer() {
103 if (this.appendTo) {
104 if (this.appendTo === 'body')
105 document.body.appendChild(this.container);
106 else
107 DomHandler.appendChild(this.container, this.appendTo);
108 }
109 }
110 restoreAppend() {
111 if (this.container && this.appendTo) {
112 this.el.nativeElement.appendChild(this.container);
113 }
114 }
115 align() {
116 if (this.autoZIndex) {
117 ZIndexUtils.set('overlay', this.container, this.baseZIndex + this.config.zIndex.overlay);
118 }
119 DomHandler.absolutePosition(this.container, this.target);
120 const containerOffset = DomHandler.getOffset(this.container);
121 const targetOffset = DomHandler.getOffset(this.target);
122 let arrowLeft = 0;
123 if (containerOffset.left < targetOffset.left) {
124 arrowLeft = targetOffset.left - containerOffset.left;
125 }
126 this.container.style.setProperty('--overlayArrowLeft', `${arrowLeft}px`);
127 if (containerOffset.top < targetOffset.top) {
128 DomHandler.addClass(this.container, 'p-overlaypanel-flipped');
129 }
130 }
131 onAnimationStart(event) {
132 if (event.toState === 'open') {
133 this.container = event.element;
134 this.onShow.emit(null);
135 this.appendContainer();
136 this.align();
137 this.bindDocumentClickListener();
138 this.bindDocumentResizeListener();
139 this.bindScrollListener();
140 if (this.focusOnShow) {
141 this.focus();
142 }
143 this.overlayEventListener = (e) => {
144 if (this.container && this.container.contains(e.target)) {
145 this.selfClick = true;
146 }
147 };
148 this.overlaySubscription = this.overlayService.clickObservable.subscribe(this.overlayEventListener);
149 }
150 }
151 onAnimationEnd(event) {
152 switch (event.toState) {
153 case 'void':
154 if (this.destroyCallback) {
155 this.destroyCallback();
156 this.destroyCallback = null;
157 }
158 if (this.overlaySubscription) {
159 this.overlaySubscription.unsubscribe();
160 }
161 break;
162 case 'close':
163 if (this.autoZIndex) {
164 ZIndexUtils.clear(this.container);
165 }
166 if (this.overlaySubscription) {
167 this.overlaySubscription.unsubscribe();
168 }
169 this.onContainerDestroy();
170 this.onHide.emit({});
171 this.render = false;
172 break;
173 }
174 }
175 focus() {
176 let focusable = DomHandler.findSingle(this.container, '[autofocus]');
177 if (focusable) {
178 this.zone.runOutsideAngular(() => {
179 setTimeout(() => focusable.focus(), 5);
180 });
181 }
182 }
183 hide() {
184 this.overlayVisible = false;
185 this.cd.markForCheck();
186 }
187 onCloseClick(event) {
188 this.hide();
189 event.preventDefault();
190 }
191 onWindowResize(event) {
192 this.hide();
193 }
194 bindDocumentResizeListener() {
195 this.documentResizeListener = this.onWindowResize.bind(this);
196 window.addEventListener('resize', this.documentResizeListener);
197 }
198 unbindDocumentResizeListener() {
199 if (this.documentResizeListener) {
200 window.removeEventListener('resize', this.documentResizeListener);
201 this.documentResizeListener = null;
202 }
203 }
204 bindScrollListener() {
205 if (!this.scrollHandler) {
206 this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, () => {
207 if (this.overlayVisible) {
208 this.hide();
209 }
210 });
211 }
212 this.scrollHandler.bindScrollListener();
213 }
214 unbindScrollListener() {
215 if (this.scrollHandler) {
216 this.scrollHandler.unbindScrollListener();
217 }
218 }
219 onContainerDestroy() {
220 this.target = null;
221 this.unbindDocumentClickListener();
222 this.unbindDocumentResizeListener();
223 this.unbindScrollListener();
224 }
225 ngOnDestroy() {
226 if (this.scrollHandler) {
227 this.scrollHandler.destroy();
228 this.scrollHandler = null;
229 }
230 if (this.container && this.autoZIndex) {
231 ZIndexUtils.clear(this.container);
232 }
233 this.target = null;
234 this.destroyCallback = null;
235 if (this.container) {
236 this.restoreAppend();
237 this.onContainerDestroy();
238 }
239 if (this.overlaySubscription) {
240 this.overlaySubscription.unsubscribe();
241 }
242 }
243}
244OverlayPanel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: OverlayPanel, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1.PrimeNGConfig }, { token: i1.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
245OverlayPanel.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: OverlayPanel, selector: "p-overlayPanel", inputs: { dismissable: "dismissable", showCloseIcon: "showCloseIcon", style: "style", styleClass: "styleClass", appendTo: "appendTo", autoZIndex: "autoZIndex", ariaCloseLabel: "ariaCloseLabel", baseZIndex: "baseZIndex", focusOnShow: "focusOnShow", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions" }, outputs: { onShow: "onShow", onHide: "onHide" }, host: { classAttribute: "p-element" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: `
246 <div *ngIf="render" [ngClass]="'p-overlaypanel p-component'" [ngStyle]="style" [class]="styleClass" (click)="onOverlayClick($event)"
247 [@animation]="{value: (overlayVisible ? 'open': 'close'), params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}"
248 (@animation.start)="onAnimationStart($event)" (@animation.done)="onAnimationEnd($event)">
249 <div class="p-overlaypanel-content" (click)="onContentClick()" (mousedown)="onContentClick()">
250 <ng-content></ng-content>
251 <ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
252 </div>
253 <button *ngIf="showCloseIcon" type="button" class="p-overlaypanel-close p-link" (click)="onCloseClick($event)" (keydown.enter)="hide()" [attr.aria-label]="ariaCloseLabel" pRipple>
254 <span class="p-overlaypanel-close-icon pi pi-times"></span>
255 </button>
256 </div>
257 `, isInline: true, styles: [".p-overlaypanel{position:absolute;margin-top:10px;top:0;left:0}.p-overlaypanel-flipped{margin-top:0;margin-bottom:10px}.p-overlaypanel-close{display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-overlaypanel:after,.p-overlaypanel: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-overlaypanel:after{border-width:8px;margin-left:-8px}.p-overlaypanel:before{border-width:10px;margin-left:-10px}.p-overlaypanel-shifted:after,.p-overlaypanel-shifted:before{left:auto;right:1.25em;margin-left:auto}.p-overlaypanel-flipped:after,.p-overlaypanel-flipped:before{bottom:auto;top:100%}.p-overlaypanel.p-overlaypanel-flipped:after,.p-overlaypanel.p-overlaypanel-flipped:before{border-bottom-color:transparent}\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]" }], animations: [
258 trigger('animation', [
259 state('void', style({
260 transform: 'scaleY(0.8)',
261 opacity: 0
262 })),
263 state('close', style({
264 opacity: 0
265 })),
266 state('open', style({
267 transform: 'translateY(0)',
268 opacity: 1
269 })),
270 transition('void => open', animate('{{showTransitionParams}}')),
271 transition('open => close', animate('{{hideTransitionParams}}')),
272 ])
273 ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
274i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: OverlayPanel, decorators: [{
275 type: Component,
276 args: [{ selector: 'p-overlayPanel', template: `
277 <div *ngIf="render" [ngClass]="'p-overlaypanel p-component'" [ngStyle]="style" [class]="styleClass" (click)="onOverlayClick($event)"
278 [@animation]="{value: (overlayVisible ? 'open': 'close'), params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}"
279 (@animation.start)="onAnimationStart($event)" (@animation.done)="onAnimationEnd($event)">
280 <div class="p-overlaypanel-content" (click)="onContentClick()" (mousedown)="onContentClick()">
281 <ng-content></ng-content>
282 <ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
283 </div>
284 <button *ngIf="showCloseIcon" type="button" class="p-overlaypanel-close p-link" (click)="onCloseClick($event)" (keydown.enter)="hide()" [attr.aria-label]="ariaCloseLabel" pRipple>
285 <span class="p-overlaypanel-close-icon pi pi-times"></span>
286 </button>
287 </div>
288 `, animations: [
289 trigger('animation', [
290 state('void', style({
291 transform: 'scaleY(0.8)',
292 opacity: 0
293 })),
294 state('close', style({
295 opacity: 0
296 })),
297 state('open', style({
298 transform: 'translateY(0)',
299 opacity: 1
300 })),
301 transition('void => open', animate('{{showTransitionParams}}')),
302 transition('open => close', animate('{{hideTransitionParams}}')),
303 ])
304 ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
305 'class': 'p-element'
306 }, styles: [".p-overlaypanel{position:absolute;margin-top:10px;top:0;left:0}.p-overlaypanel-flipped{margin-top:0;margin-bottom:10px}.p-overlaypanel-close{display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-overlaypanel:after,.p-overlaypanel: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-overlaypanel:after{border-width:8px;margin-left:-8px}.p-overlaypanel:before{border-width:10px;margin-left:-10px}.p-overlaypanel-shifted:after,.p-overlaypanel-shifted:before{left:auto;right:1.25em;margin-left:auto}.p-overlaypanel-flipped:after,.p-overlaypanel-flipped:before{bottom:auto;top:100%}.p-overlaypanel.p-overlaypanel-flipped:after,.p-overlaypanel.p-overlaypanel-flipped:before{border-bottom-color:transparent}\n"] }]
307 }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1.PrimeNGConfig }, { type: i1.OverlayService }]; }, propDecorators: { dismissable: [{
308 type: Input
309 }], showCloseIcon: [{
310 type: Input
311 }], style: [{
312 type: Input
313 }], styleClass: [{
314 type: Input
315 }], appendTo: [{
316 type: Input
317 }], autoZIndex: [{
318 type: Input
319 }], ariaCloseLabel: [{
320 type: Input
321 }], baseZIndex: [{
322 type: Input
323 }], focusOnShow: [{
324 type: Input
325 }], showTransitionOptions: [{
326 type: Input
327 }], hideTransitionOptions: [{
328 type: Input
329 }], onShow: [{
330 type: Output
331 }], onHide: [{
332 type: Output
333 }], templates: [{
334 type: ContentChildren,
335 args: [PrimeTemplate]
336 }] } });
337export class OverlayPanelModule {
338}
339OverlayPanelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: OverlayPanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
340OverlayPanelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: OverlayPanelModule, declarations: [OverlayPanel], imports: [CommonModule, RippleModule, SharedModule], exports: [OverlayPanel, SharedModule] });
341OverlayPanelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: OverlayPanelModule, imports: [[CommonModule, RippleModule, SharedModule], SharedModule] });
342i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: OverlayPanelModule, decorators: [{
343 type: NgModule,
344 args: [{
345 imports: [CommonModule, RippleModule, SharedModule],
346 exports: [OverlayPanel, SharedModule],
347 declarations: [OverlayPanel]
348 }]
349 }] });
350//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheXBhbmVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2FwcC9jb21wb25lbnRzL292ZXJsYXlwYW5lbC9vdmVybGF5cGFuZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxTQUFTLEVBQUMsS0FBSyxFQUFDLE1BQU0sRUFBVyxZQUFZLEVBQ3RELGVBQWUsRUFBd0MsdUJBQXVCLEVBQUUsaUJBQWlCLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDaEksT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQzdDLE9BQU8sRUFBQyxVQUFVLEVBQUUsNkJBQTZCLEVBQUMsTUFBTSxhQUFhLENBQUM7QUFDdEUsT0FBTyxFQUFDLFlBQVksRUFBQyxhQUFhLEVBQWdDLE1BQU0sYUFBYSxDQUFDO0FBQ3RGLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUM1QyxPQUFPLEVBQUMsT0FBTyxFQUFDLEtBQUssRUFBQyxLQUFLLEVBQUMsVUFBVSxFQUFDLE9BQU8sRUFBZ0IsTUFBTSxxQkFBcUIsQ0FBQztBQUMxRixPQUFPLEVBQUMsV0FBVyxFQUFDLE1BQU0sZUFBZSxDQUFDOzs7OztBQTBDMUMsTUFBTSxPQUFPLFlBQVk7SUF3RHJCLFlBQW1CLEVBQWMsRUFBUyxRQUFtQixFQUFTLEVBQXFCLEVBQVUsSUFBWSx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VyLmxpc3Rlbihkb2N1bWVudFRhcmdldCwgZG9jdW1lbnRFdmVudCwgKGV2ZW50KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmICghdGhpcy5jb250YWluZXIuY29udGFpbnMoZXZlbnQudGFyZ2V0KSAmJiB0aGlzLnRhcmdldCAhPT0gZXZlbnQudGFyZ2V0ICYmICF0aGlzLnRhcmdldC5jb250YWlucyhldmVudC50YXJnZXQpICYmICF0aGlzLnNlbGZDbGljaykge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy56b25lLnJ1bigoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5oaWRlKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2VsZkNsaWNrID0gZmFsc2U7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY2QubWFya0ZvckNoZWNrKCk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHVuYmluZERvY3VtZW50Q2xpY2tMaXN0ZW5lcigpIHtcbiAgICAgICAgaWYgKHRoaXMuZG9jdW1lbnRDbGlja0xpc3RlbmVyKSB7XG4gICAgICAgICAgICB0aGlzLmRvY3VtZW50Q2xpY2tMaXN0ZW5lcigpO1xuICAgICAgICAgICAgdGhpcy5kb2N1bWVudENsaWNrTGlzdGVuZXIgPSBudWxsO1xuICAgICAgICAgICAgdGhpcy5zZWxmQ2xpY2sgPSBmYWxzZTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHRvZ2dsZShldmVudCwgdGFyZ2V0Pykge1xuICAgICAgICBpZiAodGhpcy5vdmVybGF5VmlzaWJsZSkge1xuICAgICAgICAgICAgaWYgKHRoaXMuaGFzVGFyZ2V0Q2hhbmdlZChldmVudCwgdGFyZ2V0KSkge1xuICAgICAgICAgICAgICAg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RUYXJnZXR8fGV2ZW50LnRhcmdldCk7XG4gICAgfVxuXG4gICAgYXBwZW5kQ29udGFpbmVyKCkge1xuICAgICAgICBpZiAodGhpcy5hcHBlbmRUbykge1xuICAgICAgICAgICAgaWYgKHRoaXMuYXBwZW5kVG8gPT09ICdib2R5JylcbiAgICAgICAgICAgICAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKHRoaXMuY29udGFpbmVyKTtcbiAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICBEb21IYW5kbGVyLmFwcGVuZENoaWxkKHRoaXMuY29udGFpbmVyLCB0aGlzLmFwcGVuZFRvKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHJlc3RvcmVBcHBlbmQoKSB7XG4gICAgICAgIGlmICh0aGlzLmNvbnRhaW5lciAmJiB0aGlzLmFwcGVuZFRvKSB7XG4gICAgICAgICAgICB0aGlzLmVsLm5hdGl2ZUVsZW1lbnQuYXBwZW5kQ2hpbGQodGhpcy5jb250YWluZXIpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgYWxpZ24oKSB7XG4gICAgICAgIGlmICh0aGlzLmF1dG9aSW5kZXgpIHtcbiAgICAgICAgICAgIFpJbmRleFV0aWxzLnNldCgnb3ZlcmxheScsIHRoaXMuY29udGFpbmVyLCB0aGlzLmJhc2VaSW5kZXggKyB0aGlzLmNvbmZpZy56SW5kZXgub3ZlcmxheSk7XG4gICAgICAgIH1cblxuICAgICAgICBEb21IYW5kbGVyLmFic29sdXRlUG9zaXRpb24odGhpcy5jb250YWluZXIsIHRoaXMudGFyZ2V0KTtcblxuICAgICAgICBjb25zdCBjb250YWluZXJPZmZzZXQgPSBEb21IYW5kbGVyLmdldE9mZnNldCh0aGlzLmNvbnRhaW5lcik7XG4gICAgICAgIGNvbnN0IHRhcmdldE9mZnNldCA9IERvbUhhbmRsZXIuZ2V0T2Zmc2V0KHRoaXMudGFyZ2V0KTtcbiAgICAgICAgbGV0IGFycm93TGVmdCA9IDA7XG5cbiAgICAgICAgaWYgKGNvbnRhaW5lck9mZnNldC5sZWZ0IDwgdGFyZ2V0T2Zmc2V0LmxlZnQpIHtcbiAgICAgICAgICAgIGFycm93TGVmdCA9IHRhcmdldE9mZnNldC5sZWZ0IC0gY29udGFpbmVyT2Zmc2V0LmxlZnQ7XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5jb250YWluZXIuc3R5bGUuc2V0UHJvcGVydHkoJy0tb3ZlcmxheUFycm93TGVmdCcsIGAke2Fycm93TGVmdH1weGApO1xuXG4gICAgICAgIGlmIChjb250YWluZXJPZmZzZXQudG9wIDwgdGFyZ2V0T2Zmc2V0LnRvcCkge1xuICAgICAgICAgICAgRG9tSGFuZGxlci5hZGRDbGFzcyh0aGlzLmNvbnRhaW5lciwgJ3Atb3ZlcmxheXBhbmVsLWZsaXBwZWQnKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG9uQW5pbWF0aW9uU3RhcnQoZXZlbnQ6IEFuaW1hdGlvbkV2ZW50KSB7XG4gICAgICAgIGlmIChldmVudC50b1N0YXRlID09PSAnb3BlbicpIHtcbiAgICAgICAgICAgIHRoaXMuY29udGFpbmVyID0gZXZlbnQuZWxlbWVudDtcbiAgICAgICAgICAgIHRoaXMub25TaG93LmVtaXQobnVsbCk7XG4gICAgICAgICAgICB0aGlzLmFwcGVuZENvbnRhaW5lcigpO1xuICAgICAgICAgICAgdGhpcy5hbGlnbigpO1xuICAgICAgICAgICAgdGhpcy5iaW5kRG9jdW1lbnRDbGlja0xpc3RlbmVyKCk7XG4gICAgICAgICAgICB0aGlzLmJpbmREb2N1bWVudFJlc2l6ZUxpc3RlbmVyKCk7XG4gICAgICAgICAgICB0aGlzLmJpbmRTY3JvbGxMaXN0ZW5lcigpO1xuXG4gICAgICAgICAgICBpZiAodGhpcy5mb2N1c09uU2hvdykge1xuICAgICAgICAgICAgICAgIHRoaXMuZm9jdXMoKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgdGhpcy5vdmVybGF5RXZlbnRMaXN0ZW5lciA9IChlKSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuY29udGFpbmVyICYmIHRoaXMuY29udGFpbmVyLmNvbnRhaW5zKGUudGFyZ2V0KSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNlbGZDbGljayA9IHRydWU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aGlzLm92ZXJsYXlTdWJzY3JpcHRpb24gPSB0aGlzLm92ZXJsYXlTZXJ2aWNlLmNsaWNrT2JzZXJ2YWJsZS5zdWJzY3JpYmUodGhpcy5vdmVybGF5RXZlbnRMaXN0ZW5lcik7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbkFuaW1hdGlvbkVuZChldmVudDogQW5pbWF0aW9uRXZlbnQpIHtcbiAgICAgICAgc3dpdGNoIChldmVudC50b1N0YXRlKSB7XG4gICAgICAgICAgICBjYXNlICd2b2lkJzpcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5kZXN0cm95Q2FsbGJhY2spIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5kZXN0cm95Q2FsbGJhY2soKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5kZXN0cm95Q2FsbGJhY2sgPSBudWxsO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmICh0aGlzLm92ZXJsYXlTdWJzY3JpcHRpb24pIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5vdmVybGF5U3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgJ2Nsb3NlJzpcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5hdXRvWkluZGV4KSB7XG4gICAgICAgICAgICAgICAgICAgIFpJbmRleFV0aWxzLmNsZWFyKHRoaXMuY29udGFpbmVyKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZiAodGhpcy5vdmVybGF5U3Vic2NyaXB0aW9uKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMub3ZlcmxheVN1YnNjcmlwdGlvbi51bnN1YnNjcmliZSgpO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIHRoaXMub25Db250YWluZXJEZXN0cm95KCk7XG4gICAgICAgICAgICAgICAgdGhpcy5vbkhpZGUuZW1pdCh7fSk7XG4gICAgICAgICAgICAgICAgdGhpcy5yZW5kZXIgPSBmYWxzZTtcbiAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZm9jdXMoKSB7XG4gICAgICAgIGxldCBmb2N1c2FibGUgPSBEb21IYW5kbGVyLmZpbmRTaW5nbGUodGhpcy5jb250YWluZXIsICdbYXV0b2ZvY3VzXScpO1xuICAgICAgICBpZiAoZm9jdXNhYmxlKSB7XG4gICAgICAgICAgICB0aGlzLnpvbmUucnVuT3V0c2lkZUFuZ3VsYXIoKCkgPT4ge1xuICAgICAgICAgICAgICAgIHNldFRpbWVvdXQoKCkgPT4gZm9jdXNhYmxlLmZvY3VzKCksIDUpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBoaWRlKCkge1xuICAgICAgICB0aGlzLm92ZXJsYXlWaXNpYmxlID0gZmFsc2U7XG4gICAgICAgIHRoaXMuY2QubWFya0ZvckNoZWNrKCk7XG4gICAgfVxuXG4gICAgb25DbG9zZUNsaWNrKGV2ZW50KSB7XG4gICAgICAgIHRoaXMuaGlkZSgpO1xuICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgIH1cblxuICAgIG9uV2luZG93UmVzaXplKGV2ZW50KSB7XG4gICAgICAgIHRoaXMuaGlkZSgpO1xuICAgIH1cblxuICAgIGJpbmREb2N1bWVudFJlc2l6ZUxpc3RlbmV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WxlLCBTaGFyZWRNb2R1bGVdLFxuICAgIGV4cG9ydHM6IFtPdmVybGF5UGFuZWwsIFNoYXJlZE1vZHVsZV0sXG4gICAgZGVjbGFyYXRpb25zOiBbT3ZlcmxheVBhbmVsXVxufSlcbmV4cG9ydCBjbGFzcyBPdmVybGF5UGFuZWxNb2R1bGUgeyB9XG4iXX0=
Note: See TracBrowser for help on using the repository browser.