source: trip-planner-front/node_modules/primeng/esm2020/speeddial/speeddial.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: 48.5 KB
Line 
1import { NgModule, Component, Input, ChangeDetectionStrategy, ViewEncapsulation, ContentChildren, Output, EventEmitter, ViewChild } from '@angular/core';
2import { CommonModule } from '@angular/common';
3import { SharedModule, PrimeTemplate } from 'primeng/api';
4import { ButtonModule } from 'primeng/button';
5import { RippleModule } from 'primeng/ripple';
6import { TooltipModule } from 'primeng/tooltip';
7import { DomHandler } from 'primeng/dom';
8import { RouterModule } from '@angular/router';
9import * as i0 from "@angular/core";
10import * as i1 from "@angular/common";
11import * as i2 from "primeng/ripple";
12import * as i3 from "primeng/button";
13import * as i4 from "primeng/tooltip";
14import * as i5 from "@angular/router";
15export class SpeedDial {
16 constructor(el, cd) {
17 this.el = el;
18 this.cd = cd;
19 this.model = null;
20 this.direction = 'up';
21 this.transitionDelay = 30;
22 this.type = 'linear';
23 this.radius = 0;
24 this.mask = false;
25 this.disabled = false;
26 this.hideOnClickOutside = true;
27 this.showIcon = 'pi pi-plus';
28 this.rotateAnimation = true;
29 this.onVisibleChange = new EventEmitter();
30 this.visibleChange = new EventEmitter();
31 this.onClick = new EventEmitter();
32 this.onShow = new EventEmitter();
33 this.onHide = new EventEmitter();
34 this.isItemClicked = false;
35 this._visible = false;
36 }
37 get visible() {
38 return this._visible;
39 }
40 set visible(value) {
41 this._visible = value;
42 if (this._visible) {
43 this.bindDocumentClickListener();
44 }
45 else {
46 this.unbindDocumentClickListener();
47 }
48 }
49 ngAfterViewInit() {
50 if (this.type !== 'linear') {
51 const button = DomHandler.findSingle(this.container.nativeElement, '.p-speeddial-button');
52 const firstItem = DomHandler.findSingle(this.list.nativeElement, '.p-speeddial-item');
53 if (button && firstItem) {
54 const wDiff = Math.abs(button.offsetWidth - firstItem.offsetWidth);
55 const hDiff = Math.abs(button.offsetHeight - firstItem.offsetHeight);
56 this.list.nativeElement.style.setProperty('--item-diff-x', `${wDiff / 2}px`);
57 this.list.nativeElement.style.setProperty('--item-diff-y', `${hDiff / 2}px`);
58 }
59 }
60 }
61 ngAfterContentInit() {
62 this.templates.forEach((item) => {
63 switch (item.getType()) {
64 case 'button':
65 this.buttonTemplate = item.template;
66 break;
67 }
68 });
69 }
70 show() {
71 this.onVisibleChange.emit(true);
72 this.visibleChange.emit(true);
73 this._visible = true;
74 this.onShow.emit();
75 this.bindDocumentClickListener();
76 this.cd.markForCheck();
77 }
78 hide() {
79 this.onVisibleChange.emit(false);
80 this.visibleChange.emit(false);
81 this._visible = false;
82 this.onHide.emit();
83 this.unbindDocumentClickListener();
84 this.cd.markForCheck();
85 }
86 onButtonClick(event) {
87 this.visible ? this.hide() : this.show();
88 this.onClick.emit(event);
89 this.isItemClicked = true;
90 }
91 onItemClick(e, item) {
92 if (item.command) {
93 item.command({ originalEvent: e, item });
94 }
95 this.hide();
96 this.isItemClicked = true;
97 }
98 calculatePointStyle(index) {
99 const type = this.type;
100 if (type !== 'linear') {
101 const length = this.model.length;
102 const radius = this.radius || (length * 20);
103 if (type === 'circle') {
104 const step = 2 * Math.PI / length;
105 return {
106 left: `calc(${radius * Math.cos(step * index)}px + var(--item-diff-x, 0px))`,
107 top: `calc(${radius * Math.sin(step * index)}px + var(--item-diff-y, 0px))`,
108 };
109 }
110 else if (type === 'semi-circle') {
111 const direction = this.direction;
112 const step = Math.PI / (length - 1);
113 const x = `calc(${radius * Math.cos(step * index)}px + var(--item-diff-x, 0px))`;
114 const y = `calc(${radius * Math.sin(step * index)}px + var(--item-diff-y, 0px))`;
115 if (direction === 'up') {
116 return { left: x, bottom: y };
117 }
118 else if (direction === 'down') {
119 return { left: x, top: y };
120 }
121 else if (direction === 'left') {
122 return { right: y, top: x };
123 }
124 else if (direction === 'right') {
125 return { left: y, top: x };
126 }
127 }
128 else if (type === 'quarter-circle') {
129 const direction = this.direction;
130 const step = Math.PI / (2 * (length - 1));
131 const x = `calc(${radius * Math.cos(step * index)}px + var(--item-diff-x, 0px))`;
132 const y = `calc(${radius * Math.sin(step * index)}px + var(--item-diff-y, 0px))`;
133 if (direction === 'up-left') {
134 return { right: x, bottom: y };
135 }
136 else if (direction === 'up-right') {
137 return { left: x, bottom: y };
138 }
139 else if (direction === 'down-left') {
140 return { right: y, top: x };
141 }
142 else if (direction === 'down-right') {
143 return { left: y, top: x };
144 }
145 }
146 }
147 return {};
148 }
149 calculateTransitionDelay(index) {
150 const length = this.model.length;
151 return (this.visible ? index : length - index - 1) * this.transitionDelay;
152 }
153 containerClass() {
154 return {
155 ['p-speeddial p-component' + ` p-speeddial-${this.type}`]: true,
156 [`p-speeddial-direction-${this.direction}`]: this.type !== 'circle',
157 'p-speeddial-opened': this.visible,
158 'p-disabled': this.disabled
159 };
160 }
161 buttonClass() {
162 return {
163 'p-speeddial-button p-button-rounded': true,
164 'p-speeddial-rotate': this.rotateAnimation && !this.hideIcon,
165 [this.buttonClassName]: true
166 };
167 }
168 get buttonIconClass() {
169 return ((!this.visible && this.showIcon) || !this.hideIcon) ? this.showIcon : this.hideIcon;
170 }
171 getItemStyle(index) {
172 const transitionDelay = this.calculateTransitionDelay(index);
173 const pointStyle = this.calculatePointStyle(index);
174 return {
175 transitionDelay: `${transitionDelay}ms`,
176 ...pointStyle
177 };
178 }
179 isClickableRouterLink(item) {
180 return item.routerLink && !this.disabled && !item.disabled;
181 }
182 isOutsideClicked(event) {
183 return this.container && !(this.container.nativeElement.isSameNode(event.target) || this.container.nativeElement.contains(event.target) || this.isItemClicked);
184 }
185 bindDocumentClickListener() {
186 if (!this.documentClickListener && this.hideOnClickOutside) {
187 this.documentClickListener = (event) => {
188 if (this.visible && this.isOutsideClicked(event)) {
189 this.hide();
190 }
191 this.isItemClicked = false;
192 };
193 document.addEventListener('click', this.documentClickListener);
194 }
195 }
196 unbindDocumentClickListener() {
197 if (this.documentClickListener) {
198 document.removeEventListener('click', this.documentClickListener);
199 this.documentClickListener = null;
200 }
201 }
202 ngOnDestroy() {
203 this.unbindDocumentClickListener();
204 }
205}
206SpeedDial.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SpeedDial, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
207SpeedDial.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: SpeedDial, selector: "p-speedDial", inputs: { id: "id", model: "model", visible: "visible", style: "style", className: "className", direction: "direction", transitionDelay: "transitionDelay", type: "type", radius: "radius", mask: "mask", disabled: "disabled", hideOnClickOutside: "hideOnClickOutside", buttonStyle: "buttonStyle", buttonClassName: "buttonClassName", maskStyle: "maskStyle", maskClassName: "maskClassName", showIcon: "showIcon", hideIcon: "hideIcon", rotateAnimation: "rotateAnimation" }, outputs: { onVisibleChange: "onVisibleChange", visibleChange: "visibleChange", onClick: "onClick", onShow: "onShow", onHide: "onHide" }, host: { classAttribute: "p-element" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }, { propertyName: "list", first: true, predicate: ["list"], descendants: true }], ngImport: i0, template: `
208 <div #container [attr.id]="id" [ngClass]="containerClass()" [class]="className" [ngStyle]="style">
209 <button pRipple pButton [style]="buttonStyle" [icon]="buttonIconClass" [ngClass]="buttonClass()" (click)="onButtonClick($event)">
210 <ng-container *ngIf="buttonTemplate">
211 <ng-container *ngTemplateOutlet="buttonTemplate"></ng-container>
212 </ng-container>
213 </button>
214 <ul #list class="p-speeddial-list" role="menu">
215 <li *ngFor="let item of model; let i = index" [ngStyle]="getItemStyle(i)" class="p-speeddial-item" pTooltip [tooltipOptions]="item.tooltipOptions">
216 <a *ngIf="isClickableRouterLink(item); else elseBlock" pRipple [routerLink]="item.routerLink" [queryParams]="item.queryParams" class="p-speeddial-action" [ngClass]="{'p-disabled':item.disabled}" role="menuitem" [routerLinkActiveOptions]="item.routerLinkActiveOptions||{exact:false}" (click)="onItemClick($event, item)" (keydown.enter)="onItemClick($event, item, i)"
217 [attr.target]="item.target" [attr.id]="item.id" [attr.tabindex]="item.disabled || readonly ? null : (item.tabindex ? item.tabindex : '0')"
218 [fragment]="item.fragment" [queryParamsHandling]="item.queryParamsHandling" [preserveFragment]="item.preserveFragment" [skipLocationChange]="item.skipLocationChange" [replaceUrl]="item.replaceUrl" [state]="item.state">
219 <span class="p-speeddial-action-icon" *ngIf="item.icon" [ngClass]="item.icon"></span>
220 </a>
221 <ng-template #elseBlock>
222 <a [attr.href]="item.url||null" class="p-speeddial-action" role="menuitem" pRipple (click)="onItemClick($event, item)" [ngClass]="{'p-disabled':item.disabled}"
223 (keydown.enter)="onItemClick($event, item, i)" [attr.target]="item.target" [attr.id]="item.id" [attr.tabindex]="item.disabled||(i !== activeIndex && readonly) ? null : (item.tabindex ? item.tabindex : '0')">
224 <span class="p-speeddial-action-icon" *ngIf="item.icon" [ngClass]="item.icon"></span>
225 </a>
226 </ng-template>
227 </li>
228 </ul>
229 </div>
230 <div *ngIf="mask && visible" [ngClass]="{'p-speeddial-mask': true, 'p-speeddial-mask-visible': visible}" [class]="maskClassName" [ngStyle]="maskStyle"></div>
231 `, isInline: true, styles: [".p-speeddial{position:absolute;display:flex;z-index:1}.p-speeddial-list{margin:0;padding:0;list-style:none;display:flex;align-items:center;justify-content:center;transition:top 0s linear .2s;pointer-events:none}.p-speeddial-item{transform:scale(0);opacity:0;transition:transform .2s cubic-bezier(.4,0,.2,1) 0ms,opacity .8s;will-change:transform}.p-speeddial-action{display:flex;align-items:center;justify-content:center;border-radius:50%;position:relative;overflow:hidden;cursor:pointer}.p-speeddial-circle .p-speeddial-item,.p-speeddial-semi-circle .p-speeddial-item,.p-speeddial-quarter-circle .p-speeddial-item{position:absolute}.p-speeddial-rotate{transition:transform .25s cubic-bezier(.4,0,.2,1) 0ms;will-change:transform}.p-speeddial-mask{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;transition:opacity .25s cubic-bezier(.25,.8,.25,1)}.p-speeddial-mask-visible{pointer-events:none;opacity:1;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.p-speeddial-opened .p-speeddial-list{pointer-events:auto}.p-speeddial-opened .p-speeddial-item{transform:scale(1);opacity:1}.p-speeddial-opened .p-speeddial-rotate{transform:rotate(45deg)}.p-speeddial-direction-up{align-items:center;flex-direction:column-reverse}.p-speeddial-direction-up .p-speeddial-list{flex-direction:column-reverse}.p-speeddial-direction-down{align-items:center;flex-direction:column}.p-speeddial-direction-down .p-speeddial-list{flex-direction:column}.p-speeddial-direction-left{justify-content:center;flex-direction:row-reverse}.p-speeddial-direction-left .p-speeddial-list{flex-direction:row-reverse}.p-speeddial-direction-right{justify-content:center;flex-direction:row}.p-speeddial-direction-right .p-speeddial-list{flex-direction:row}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i2.Ripple, selector: "[pRipple]" }, { type: i3.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i5.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
232i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SpeedDial, decorators: [{
233 type: Component,
234 args: [{ selector: 'p-speedDial', template: `
235 <div #container [attr.id]="id" [ngClass]="containerClass()" [class]="className" [ngStyle]="style">
236 <button pRipple pButton [style]="buttonStyle" [icon]="buttonIconClass" [ngClass]="buttonClass()" (click)="onButtonClick($event)">
237 <ng-container *ngIf="buttonTemplate">
238 <ng-container *ngTemplateOutlet="buttonTemplate"></ng-container>
239 </ng-container>
240 </button>
241 <ul #list class="p-speeddial-list" role="menu">
242 <li *ngFor="let item of model; let i = index" [ngStyle]="getItemStyle(i)" class="p-speeddial-item" pTooltip [tooltipOptions]="item.tooltipOptions">
243 <a *ngIf="isClickableRouterLink(item); else elseBlock" pRipple [routerLink]="item.routerLink" [queryParams]="item.queryParams" class="p-speeddial-action" [ngClass]="{'p-disabled':item.disabled}" role="menuitem" [routerLinkActiveOptions]="item.routerLinkActiveOptions||{exact:false}" (click)="onItemClick($event, item)" (keydown.enter)="onItemClick($event, item, i)"
244 [attr.target]="item.target" [attr.id]="item.id" [attr.tabindex]="item.disabled || readonly ? null : (item.tabindex ? item.tabindex : '0')"
245 [fragment]="item.fragment" [queryParamsHandling]="item.queryParamsHandling" [preserveFragment]="item.preserveFragment" [skipLocationChange]="item.skipLocationChange" [replaceUrl]="item.replaceUrl" [state]="item.state">
246 <span class="p-speeddial-action-icon" *ngIf="item.icon" [ngClass]="item.icon"></span>
247 </a>
248 <ng-template #elseBlock>
249 <a [attr.href]="item.url||null" class="p-speeddial-action" role="menuitem" pRipple (click)="onItemClick($event, item)" [ngClass]="{'p-disabled':item.disabled}"
250 (keydown.enter)="onItemClick($event, item, i)" [attr.target]="item.target" [attr.id]="item.id" [attr.tabindex]="item.disabled||(i !== activeIndex && readonly) ? null : (item.tabindex ? item.tabindex : '0')">
251 <span class="p-speeddial-action-icon" *ngIf="item.icon" [ngClass]="item.icon"></span>
252 </a>
253 </ng-template>
254 </li>
255 </ul>
256 </div>
257 <div *ngIf="mask && visible" [ngClass]="{'p-speeddial-mask': true, 'p-speeddial-mask-visible': visible}" [class]="maskClassName" [ngStyle]="maskStyle"></div>
258 `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
259 'class': 'p-element'
260 }, styles: [".p-speeddial{position:absolute;display:flex;z-index:1}.p-speeddial-list{margin:0;padding:0;list-style:none;display:flex;align-items:center;justify-content:center;transition:top 0s linear .2s;pointer-events:none}.p-speeddial-item{transform:scale(0);opacity:0;transition:transform .2s cubic-bezier(.4,0,.2,1) 0ms,opacity .8s;will-change:transform}.p-speeddial-action{display:flex;align-items:center;justify-content:center;border-radius:50%;position:relative;overflow:hidden;cursor:pointer}.p-speeddial-circle .p-speeddial-item,.p-speeddial-semi-circle .p-speeddial-item,.p-speeddial-quarter-circle .p-speeddial-item{position:absolute}.p-speeddial-rotate{transition:transform .25s cubic-bezier(.4,0,.2,1) 0ms;will-change:transform}.p-speeddial-mask{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;transition:opacity .25s cubic-bezier(.25,.8,.25,1)}.p-speeddial-mask-visible{pointer-events:none;opacity:1;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.p-speeddial-opened .p-speeddial-list{pointer-events:auto}.p-speeddial-opened .p-speeddial-item{transform:scale(1);opacity:1}.p-speeddial-opened .p-speeddial-rotate{transform:rotate(45deg)}.p-speeddial-direction-up{align-items:center;flex-direction:column-reverse}.p-speeddial-direction-up .p-speeddial-list{flex-direction:column-reverse}.p-speeddial-direction-down{align-items:center;flex-direction:column}.p-speeddial-direction-down .p-speeddial-list{flex-direction:column}.p-speeddial-direction-left{justify-content:center;flex-direction:row-reverse}.p-speeddial-direction-left .p-speeddial-list{flex-direction:row-reverse}.p-speeddial-direction-right{justify-content:center;flex-direction:row}.p-speeddial-direction-right .p-speeddial-list{flex-direction:row}\n"] }]
261 }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { id: [{
262 type: Input
263 }], model: [{
264 type: Input
265 }], visible: [{
266 type: Input
267 }], style: [{
268 type: Input
269 }], className: [{
270 type: Input
271 }], direction: [{
272 type: Input
273 }], transitionDelay: [{
274 type: Input
275 }], type: [{
276 type: Input
277 }], radius: [{
278 type: Input
279 }], mask: [{
280 type: Input
281 }], disabled: [{
282 type: Input
283 }], hideOnClickOutside: [{
284 type: Input
285 }], buttonStyle: [{
286 type: Input
287 }], buttonClassName: [{
288 type: Input
289 }], maskStyle: [{
290 type: Input
291 }], maskClassName: [{
292 type: Input
293 }], showIcon: [{
294 type: Input
295 }], hideIcon: [{
296 type: Input
297 }], rotateAnimation: [{
298 type: Input
299 }], onVisibleChange: [{
300 type: Output
301 }], visibleChange: [{
302 type: Output
303 }], onClick: [{
304 type: Output
305 }], onShow: [{
306 type: Output
307 }], onHide: [{
308 type: Output
309 }], container: [{
310 type: ViewChild,
311 args: ['container']
312 }], list: [{
313 type: ViewChild,
314 args: ['list']
315 }], templates: [{
316 type: ContentChildren,
317 args: [PrimeTemplate]
318 }] } });
319export class SpeedDialModule {
320}
321SpeedDialModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SpeedDialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
322SpeedDialModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SpeedDialModule, declarations: [SpeedDial], imports: [CommonModule, ButtonModule, RippleModule, TooltipModule, RouterModule], exports: [SpeedDial, SharedModule, ButtonModule, TooltipModule, RouterModule] });
323SpeedDialModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SpeedDialModule, imports: [[CommonModule, ButtonModule, RippleModule, TooltipModule, RouterModule], SharedModule, ButtonModule, TooltipModule, RouterModule] });
324i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: SpeedDialModule, decorators: [{
325 type: NgModule,
326 args: [{
327 imports: [CommonModule, ButtonModule, RippleModule, TooltipModule, RouterModule],
328 exports: [SpeedDial, SharedModule, ButtonModule, TooltipModule, RouterModule],
329 declarations: [SpeedDial]
330 }]
331 }] });
332//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BlZWRkaWFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2FwcC9jb21wb25lbnRzL3NwZWVkZGlhbC9zcGVlZGRpYWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFjLHVCQUF1QixFQUFFLGlCQUFpQixFQUFpQyxlQUFlLEVBQWEsTUFBTSxFQUFFLFlBQVksRUFBcUIsU0FBUyxFQUFvQyxNQUFNLGVBQWUsQ0FBQztBQUNwUSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFlBQVksRUFBRSxhQUFhLEVBQVksTUFBTSxhQUFhLENBQUM7QUFDcEUsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzlDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM5QyxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDaEQsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7Ozs7Ozs7QUFvQy9DLE1BQU0sT0FBTyxT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vbnN0IGxlbmd0aCA9IHRoaXMubW9kZWwubGVuZ3RoO1xuICAgICAgICAgICAgY29uc3QgcmFkaXVzID0gdGhpcy5yYWRpdXMgfHwgKGxlbmd0aCAqIDIwKTtcblxuICAgICAgICAgICAgaWYgKHR5cGUgPT09ICdjaXJjbGUnKSB7XG4gICAgICAgICAgICAgICAgY29uc3Qgc3RlcCA9IDIgKiBNYXRoLlBJIC8gbGVuZ3RoO1xuXG4gICAgICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICAgICAgbGVmdDogYGNhbGMoJHtyYWRpdXMgKiBNYXRoLmNvcyhzdGVwICogaW5kZXgpfXB4ICsgdmFyKC0taXRlbS1kaWZmLXgsIDBweCkpYCxcbiAgICAgICAgICAgICAgICAgICAgdG9wOiBgY2FsYygke3JhZGl1cyAqIE1hdGguc2luKHN0ZXAgKiBpbmRleCl9cHggKyB2YXIoLS1pdGVtLWRpZmYteSwgMHB4KSlgLFxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2UgaWYgKHR5cGUgPT09ICdzZW1pLWNpcmNsZScpIHtcbiAgICAgICAgICAgICAgICBjb25zdCBkaXJlY3Rpb24gPSB0aGlzLmRpcmVjdGlvbjtcbiAgICAgICAgICAgICAgICBjb25zdCBzdGVwID0gTWF0aC5QSSAvIChsZW5ndGggLSAxKTtcbiAgICAgICAgICAgICAgICBjb25zdCB4ID0gYGNhbGMoJHtyYWRpdXMgKiBNYXRoLmNvcyhzdGVwICogaW5kZXgpfXB4ICsgdmFyKC0taXRlbS1kaWZmLXgsIDBweCkpYDtcbiAgICAgICAgICAgICAgICBjb25zdCB5ID0gYGNhbGMoJHtyYWRpdXMgKiBNYXRoLnNpbihzdGVwICogaW5kZXgpfXB4ICsgdmFyKC0taXRlbS1kaWZmLXksIDBweCkpYDtcbiAgICAgICAgICAgICAgICBpZiAoZGlyZWN0aW9uID09PSAndXAnKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB7IGxlZnQ6IHgsIGJvdHRvbTogeSB9O1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIGlmIChkaXJlY3Rpb24gPT09ICdkb3duJykge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4geyBsZWZ0OiB4LCB0b3A6IHkgfTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZWxzZSBpZiAoZGlyZWN0aW9uID09PSAnbGVmdCcpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHsgcmlnaHQ6IHksIHRvcDogeCB9O1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIGlmIChkaXJlY3Rpb24gPT09ICdyaWdodCcpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHsgbGVmdDogeSwgdG9wOiB4IH07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAodHlwZSA9PT0gJ3F1YXJ0ZXItY2lyY2xlJykge1xuICAgICAgICAgICAgICAgIGNvbnN0IGRpcmVjdGlvbiA9IHRoaXMuZGlyZWN0aW9uO1xuICAgICAgICAgICAgICAgIGNvbnN0IHN0ZXAgPSBNYXRoLlBJIC8gKDIgKiAobGVuZ3RoIC0gMSkpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHggPSBgY2FsYygke3JhZGl1cyAqIE1hdGguY29zKHN0ZXAgKiBpbmRleCl9cHggKyB2YXIoLS1pdGVtLWRpZmYteCwgMHB4KSlgO1xuICAgICAgICAgICAgICAgIGNvbnN0IHkgPSBgY2FsYygke3JhZGl1cyAqIE1hdGguc2luKHN0ZXAgKiBpbmRleCl9cHggKyB2YXIoLS1pdGVtLWRpZmYteSwgMHB4KSlgO1xuICAgICAgICAgICAgICAgIGlmIChkaXJlY3Rpb24gPT09ICd1cC1sZWZ0Jykge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4geyByaWdodDogeCwgYm90dG9tOiB5IH07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2UgaWYgKGRpcmVjdGlvbiA9PT0gJ3VwLXJpZ2h0Jykge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4geyBsZWZ0OiB4LCBib3R0b206IHkgfTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZWxzZSBpZiAoZGlyZWN0aW9uID09PSAnZG93bi1sZWZ0Jykge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4geyByaWdodDogeSwgdG9wOiB4IH07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2UgaWYgKGRpcmVjdGlvbiA9PT0gJ2Rvd24tcmlnaHQnKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB7IGxlZnQ6IHksIHRvcDogeCB9O1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB7fTtcbiAgICB9XG5cbiAgICBjYWxjdWxhdGVUcmFuc2l0aW9uRGVsYXkoaW5kZXgpIHtcbiAgICAgICAgY29uc3QgbGVuZ3RoID0gdGhpcy5tb2RlbC5sZW5ndGg7XG5cbiAgICAgICAgcmV0dXJuICh0aGlzLnZpc2libGUgPyBpbmRleCA6IGxlbmd0aCAtIGluZGV4IC0gMSkgKiB0aGlzLnRyYW5zaXRpb25EZWxheTtcbiAgICB9XG5cbiAgICBjb250YWluZXJDbGFzcygpIHtcbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIFsncC1zcGVlZGRpYWwgcC1jb21wb25lbnQnICsgYCBwLXNwZWVkZGlhbC0ke3RoaXMudHlwZX1gXTogdHJ1ZSxcbiAgICAgICAgICAgIFtgcC1zcGVlZGRpYWwtZGlyZWN0aW9uLSR7dGhpcy5kaXJlY3Rpb259YF06IHRoaXMudHlwZSAhPT0gJ2NpcmNsZScsXG4gIC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1lbnRDbGlja0xpc3RlbmVyKTtcbiAgICAgICAgICAgIHRoaXMuZG9jdW1lbnRDbGlja0xpc3RlbmVyID0gbnVsbDtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG5nT25EZXN0cm95KCkge1xuICAgICAgICB0aGlzLnVuYmluZERvY3VtZW50Q2xpY2tMaXN0ZW5lcigpO1xuICAgIH1cbn1cblxuQE5nTW9kdWxlKHtcbiAgICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLCBCdXR0b25Nb2R1bGUsIFJpcHBsZU1vZHVsZSwgVG9vbHRpcE1vZHVsZSwgUm91dGVyTW9kdWxlXSxcbiAgICBleHBvcnRzOiBbU3BlZWREaWFsLCBTaGFyZWRNb2R1bGUsIEJ1dHRvbk1vZHVsZSwgVG9vbHRpcE1vZHVsZSwgUm91dGVyTW9kdWxlXSxcbiAgICBkZWNsYXJhdGlvbnM6IFtTcGVlZERpYWxdXG59KVxuZXhwb3J0IGNsYXNzIFNwZWVkRGlhbE1vZHVsZSB7IH1cbiJdfQ==
Note: See TracBrowser for help on using the repository browser.