source: trip-planner-front/node_modules/primeng/esm2020/multiselect/multiselect.mjs@ 1ad8e64

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

adding photos

  • Property mode set to 100644
File size: 150.2 KB
Line 
1import { NgModule, Component, Input, Output, EventEmitter, forwardRef, ViewChild, ContentChildren, ContentChild, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
2import { trigger, style, transition, animate } from '@angular/animations';
3import { CommonModule } from '@angular/common';
4import { DomHandler, ConnectedOverlayScrollHandler } from 'primeng/dom';
5import { ObjectUtils, ZIndexUtils } from 'primeng/utils';
6import { SharedModule, PrimeTemplate, Footer, Header, TranslationKeys } from 'primeng/api';
7import { NG_VALUE_ACCESSOR } from '@angular/forms';
8import { ScrollingModule } from '@angular/cdk/scrolling';
9import { TooltipModule } from 'primeng/tooltip';
10import { RippleModule } from 'primeng/ripple';
11import * as i0 from "@angular/core";
12import * as i1 from "primeng/ripple";
13import * as i2 from "@angular/common";
14import * as i3 from "primeng/api";
15import * as i4 from "@angular/cdk/scrolling";
16import * as i5 from "primeng/tooltip";
17export const MULTISELECT_VALUE_ACCESSOR = {
18 provide: NG_VALUE_ACCESSOR,
19 useExisting: forwardRef(() => MultiSelect),
20 multi: true
21};
22export class MultiSelectItem {
23 constructor() {
24 this.onClick = new EventEmitter();
25 this.onKeydown = new EventEmitter();
26 }
27 onOptionClick(event) {
28 this.onClick.emit({
29 originalEvent: event,
30 option: this.option
31 });
32 }
33 onOptionKeydown(event) {
34 this.onKeydown.emit({
35 originalEvent: event,
36 option: this.option
37 });
38 }
39}
40MultiSelectItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MultiSelectItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
41MultiSelectItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: MultiSelectItem, selector: "p-multiSelectItem", inputs: { option: "option", selected: "selected", label: "label", disabled: "disabled", itemSize: "itemSize", template: "template" }, outputs: { onClick: "onClick", onKeydown: "onKeydown" }, host: { classAttribute: "p-element" }, ngImport: i0, template: `
42 <li class="p-multiselect-item" (click)="onOptionClick($event)" (keydown)="onOptionKeydown($event)" [attr.aria-label]="label"
43 [attr.tabindex]="disabled ? null : '0'" [ngStyle]="{'height': itemSize + 'px'}"
44 [ngClass]="{'p-highlight': selected, 'p-disabled': disabled}" pRipple>
45 <div class="p-checkbox p-component">
46 <div class="p-checkbox-box" [ngClass]="{'p-highlight': selected}">
47 <span class="p-checkbox-icon" [ngClass]="{'pi pi-check': selected}"></span>
48 </div>
49 </div>
50 <span *ngIf="!template">{{label}}</span>
51 <ng-container *ngTemplateOutlet="template; context: {$implicit: option}"></ng-container>
52 </li>
53 `, isInline: true, directives: [{ type: i1.Ripple, selector: "[pRipple]" }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], encapsulation: i0.ViewEncapsulation.None });
54i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MultiSelectItem, decorators: [{
55 type: Component,
56 args: [{
57 selector: 'p-multiSelectItem',
58 template: `
59 <li class="p-multiselect-item" (click)="onOptionClick($event)" (keydown)="onOptionKeydown($event)" [attr.aria-label]="label"
60 [attr.tabindex]="disabled ? null : '0'" [ngStyle]="{'height': itemSize + 'px'}"
61 [ngClass]="{'p-highlight': selected, 'p-disabled': disabled}" pRipple>
62 <div class="p-checkbox p-component">
63 <div class="p-checkbox-box" [ngClass]="{'p-highlight': selected}">
64 <span class="p-checkbox-icon" [ngClass]="{'pi pi-check': selected}"></span>
65 </div>
66 </div>
67 <span *ngIf="!template">{{label}}</span>
68 <ng-container *ngTemplateOutlet="template; context: {$implicit: option}"></ng-container>
69 </li>
70 `,
71 encapsulation: ViewEncapsulation.None,
72 host: {
73 'class': 'p-element'
74 }
75 }]
76 }], propDecorators: { option: [{
77 type: Input
78 }], selected: [{
79 type: Input
80 }], label: [{
81 type: Input
82 }], disabled: [{
83 type: Input
84 }], itemSize: [{
85 type: Input
86 }], template: [{
87 type: Input
88 }], onClick: [{
89 type: Output
90 }], onKeydown: [{
91 type: Output
92 }] } });
93export class MultiSelect {
94 constructor(el, renderer, cd, filterService, config, overlayService) {
95 this.el = el;
96 this.renderer = renderer;
97 this.cd = cd;
98 this.filterService = filterService;
99 this.config = config;
100 this.overlayService = overlayService;
101 this.filter = true;
102 this.displaySelectedLabel = true;
103 this.maxSelectedLabels = 3;
104 this.selectedItemsLabel = 'ellipsis';
105 this.showToggleAll = true;
106 this.emptyFilterMessage = '';
107 this.emptyMessage = '';
108 this.resetFilterOnHide = false;
109 this.dropdownIcon = 'pi pi-chevron-down';
110 this.optionGroupChildren = "items";
111 this.showHeader = true;
112 this.autoZIndex = true;
113 this.baseZIndex = 0;
114 this.showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
115 this.hideTransitionOptions = '.1s linear';
116 this.filterMatchMode = "contains";
117 this.tooltip = '';
118 this.tooltipPosition = 'right';
119 this.tooltipPositionStyle = 'absolute';
120 this.autofocusFilter = true;
121 this.display = 'comma';
122 this.onChange = new EventEmitter();
123 this.onFilter = new EventEmitter();
124 this.onFocus = new EventEmitter();
125 this.onBlur = new EventEmitter();
126 this.onClick = new EventEmitter();
127 this.onPanelShow = new EventEmitter();
128 this.onPanelHide = new EventEmitter();
129 this.scrollHeight = '200px';
130 this.onModelChange = () => { };
131 this.onModelTouched = () => { };
132 }
133 set defaultLabel(val) {
134 this._defaultLabel = val;
135 this.updateLabel();
136 }
137 get defaultLabel() {
138 return this._defaultLabel;
139 }
140 set placeholder(val) {
141 this._placeholder = val;
142 this.updateLabel();
143 }
144 get placeholder() {
145 return this._placeholder;
146 }
147 get options() {
148 return this._options;
149 }
150 set options(val) {
151 this._options = val;
152 this.updateLabel();
153 }
154 get filterValue() {
155 return this._filterValue;
156 }
157 set filterValue(val) {
158 this._filterValue = val;
159 this.activateFilter();
160 }
161 ngOnInit() {
162 this.updateLabel();
163 }
164 ngAfterContentInit() {
165 this.templates.forEach((item) => {
166 switch (item.getType()) {
167 case 'item':
168 this.itemTemplate = item.template;
169 break;
170 case 'group':
171 this.groupTemplate = item.template;
172 break;
173 case 'selectedItems':
174 this.selectedItemsTemplate = item.template;
175 break;
176 case 'header':
177 this.headerTemplate = item.template;
178 break;
179 case 'emptyfilter':
180 this.emptyFilterTemplate = item.template;
181 break;
182 case 'empty':
183 this.emptyTemplate = item.template;
184 break;
185 case 'footer':
186 this.footerTemplate = item.template;
187 break;
188 default:
189 this.itemTemplate = item.template;
190 break;
191 }
192 });
193 }
194 ngAfterViewInit() {
195 if (this.overlayVisible) {
196 this.show();
197 }
198 }
199 ngAfterViewChecked() {
200 if (this.filtered) {
201 this.alignOverlay();
202 this.filtered = false;
203 }
204 }
205 getOptionLabel(option) {
206 return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : (option.label != undefined ? option.label : option);
207 }
208 getOptionValue(option) {
209 return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : (this.optionLabel || option.value === undefined ? option : option.value);
210 }
211 getOptionGroupLabel(optionGroup) {
212 return this.optionGroupLabel ? ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel) : (optionGroup.label != undefined ? optionGroup.label : optionGroup);
213 }
214 getOptionGroupChildren(optionGroup) {
215 return this.optionGroupChildren ? ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren) : optionGroup.items;
216 }
217 isOptionDisabled(option) {
218 let disabled = this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : (option.disabled !== undefined ? option.disabled : false);
219 return (disabled || (this.maxSelectionLimitReached && !this.isSelected(option)));
220 }
221 writeValue(value) {
222 this.value = value;
223 this.updateLabel();
224 this.updateFilledState();
225 this.checkSelectionLimit();
226 this.cd.markForCheck();
227 }
228 checkSelectionLimit() {
229 if (this.selectionLimit && (this.value && this.value.length === this.selectionLimit)) {
230 this.maxSelectionLimitReached = true;
231 }
232 else {
233 this.maxSelectionLimitReached = false;
234 }
235 }
236 updateFilledState() {
237 this.filled = (this.value && this.value.length > 0);
238 }
239 registerOnChange(fn) {
240 this.onModelChange = fn;
241 }
242 registerOnTouched(fn) {
243 this.onModelTouched = fn;
244 }
245 setDisabledState(val) {
246 this.disabled = val;
247 this.cd.markForCheck();
248 }
249 onOptionClick(event) {
250 let option = event.option;
251 if (this.isOptionDisabled(option)) {
252 return;
253 }
254 let optionValue = this.getOptionValue(option);
255 let selectionIndex = this.findSelectionIndex(optionValue);
256 if (selectionIndex != -1) {
257 this.value = this.value.filter((val, i) => i != selectionIndex);
258 if (this.selectionLimit) {
259 this.maxSelectionLimitReached = false;
260 }
261 }
262 else {
263 if (!this.selectionLimit || (!this.value || this.value.length < this.selectionLimit)) {
264 this.value = [...this.value || [], optionValue];
265 }
266 this.checkSelectionLimit();
267 }
268 this.onModelChange(this.value);
269 this.onChange.emit({ originalEvent: event.originalEvent, value: this.value, itemValue: optionValue });
270 this.updateLabel();
271 this.updateFilledState();
272 }
273 isSelected(option) {
274 return this.findSelectionIndex(this.getOptionValue(option)) != -1;
275 }
276 findSelectionIndex(val) {
277 let index = -1;
278 if (this.value) {
279 for (let i = 0; i < this.value.length; i++) {
280 if (ObjectUtils.equals(this.value[i], val, this.dataKey)) {
281 index = i;
282 break;
283 }
284 }
285 }
286 return index;
287 }
288 get toggleAllDisabled() {
289 let optionsToRender = this.optionsToRender;
290 if (!optionsToRender || optionsToRender.length === 0) {
291 return true;
292 }
293 else {
294 for (let option of optionsToRender) {
295 if (!this.isOptionDisabled(option))
296 return false;
297 }
298 return true;
299 }
300 }
301 toggleAll(event) {
302 if (this.disabled || this.toggleAllDisabled || this.readonly) {
303 return;
304 }
305 let allChecked = this.allChecked;
306 if (allChecked)
307 this.uncheckAll();
308 else
309 this.checkAll();
310 this.onModelChange(this.value);
311 this.onChange.emit({ originalEvent: event, value: this.value });
312 this.updateFilledState();
313 this.updateLabel();
314 event.preventDefault();
315 }
316 checkAll() {
317 let optionsToRender = this.optionsToRender;
318 let val = [];
319 optionsToRender.forEach(opt => {
320 if (!this.group) {
321 let optionDisabled = this.isOptionDisabled(opt);
322 if (!optionDisabled || (optionDisabled && this.isSelected(opt))) {
323 val.push(this.getOptionValue(opt));
324 }
325 }
326 else {
327 let subOptions = this.getOptionGroupChildren(opt);
328 if (subOptions) {
329 subOptions.forEach(option => {
330 let optionDisabled = this.isOptionDisabled(option);
331 if (!optionDisabled || (optionDisabled && this.isSelected(option))) {
332 val.push(this.getOptionValue(option));
333 }
334 });
335 }
336 }
337 });
338 this.value = val;
339 }
340 uncheckAll() {
341 let optionsToRender = this.optionsToRender;
342 let val = [];
343 optionsToRender.forEach(opt => {
344 if (!this.group) {
345 let optionDisabled = this.isOptionDisabled(opt);
346 if (optionDisabled && this.isSelected(opt)) {
347 val.push(this.getOptionValue(opt));
348 }
349 }
350 else {
351 if (opt.items) {
352 opt.items.forEach(option => {
353 let optionDisabled = this.isOptionDisabled(option);
354 if (optionDisabled && this.isSelected(option)) {
355 val.push(this.getOptionValue(option));
356 }
357 });
358 }
359 }
360 });
361 this.value = val;
362 }
363 show() {
364 if (!this.overlayVisible) {
365 this.overlayVisible = true;
366 }
367 }
368 onOverlayClick(event) {
369 this.overlayService.add({
370 originalEvent: event,
371 target: this.el.nativeElement
372 });
373 }
374 onOverlayAnimationStart(event) {
375 switch (event.toState) {
376 case 'visible':
377 this.overlay = event.element;
378 this.appendOverlay();
379 if (this.autoZIndex) {
380 ZIndexUtils.set('overlay', this.overlay, this.config.zIndex.overlay);
381 }
382 this.alignOverlay();
383 this.bindDocumentClickListener();
384 this.bindDocumentResizeListener();
385 this.bindScrollListener();
386 if (this.filterInputChild && this.filterInputChild.nativeElement) {
387 this.preventModelTouched = true;
388 if (this.autofocusFilter) {
389 this.filterInputChild.nativeElement.focus();
390 }
391 }
392 this.onPanelShow.emit();
393 break;
394 case 'void':
395 this.onOverlayHide();
396 break;
397 }
398 }
399 onOverlayAnimationEnd(event) {
400 switch (event.toState) {
401 case 'void':
402 ZIndexUtils.clear(event.element);
403 break;
404 }
405 }
406 appendOverlay() {
407 if (this.appendTo) {
408 if (this.appendTo === 'body')
409 document.body.appendChild(this.overlay);
410 else
411 DomHandler.appendChild(this.overlay, this.appendTo);
412 if (!this.overlay.style.minWidth) {
413 this.overlay.style.minWidth = DomHandler.getWidth(this.containerViewChild.nativeElement) + 'px';
414 }
415 }
416 }
417 restoreOverlayAppend() {
418 if (this.overlay && this.appendTo) {
419 this.el.nativeElement.appendChild(this.overlay);
420 }
421 }
422 alignOverlay() {
423 if (this.overlay) {
424 if (this.appendTo)
425 DomHandler.absolutePosition(this.overlay, this.containerViewChild.nativeElement);
426 else
427 DomHandler.relativePosition(this.overlay, this.containerViewChild.nativeElement);
428 }
429 }
430 hide() {
431 this.overlayVisible = false;
432 this.unbindDocumentClickListener();
433 if (this.resetFilterOnHide) {
434 this.filterInputChild.nativeElement.value = '';
435 this._filterValue = null;
436 this._filteredOptions = null;
437 }
438 this.onPanelHide.emit();
439 this.cd.markForCheck();
440 }
441 close(event) {
442 this.hide();
443 event.preventDefault();
444 event.stopPropagation();
445 }
446 onMouseclick(event, input) {
447 if (this.disabled || this.readonly || event.target.isSameNode(this.accessibleViewChild.nativeElement)) {
448 return;
449 }
450 this.onClick.emit(event);
451 if (!this.isOverlayClick(event) && !DomHandler.hasClass(event.target, 'p-multiselect-token-icon')) {
452 if (this.overlayVisible) {
453 this.hide();
454 }
455 else {
456 input.focus();
457 this.show();
458 }
459 }
460 }
461 removeChip(chip, event) {
462 this.value = this.value.filter(val => !ObjectUtils.equals(val, chip, this.dataKey));
463 this.onModelChange(this.value);
464 this.checkSelectionLimit();
465 this.onChange.emit({ originalEvent: event, value: this.value, itemValue: chip });
466 this.updateLabel();
467 this.updateFilledState();
468 }
469 isOverlayClick(event) {
470 let targetNode = event.target;
471 return this.overlay ? (this.overlay.isSameNode(targetNode) || this.overlay.contains(targetNode)) : false;
472 }
473 isOutsideClicked(event) {
474 return !(this.el.nativeElement.isSameNode(event.target) || this.el.nativeElement.contains(event.target) || this.isOverlayClick(event));
475 }
476 onInputFocus(event) {
477 this.focus = true;
478 this.onFocus.emit({ originalEvent: event });
479 }
480 onInputBlur(event) {
481 this.focus = false;
482 this.onBlur.emit({ originalEvent: event });
483 if (!this.preventModelTouched) {
484 this.onModelTouched();
485 }
486 this.preventModelTouched = false;
487 }
488 onOptionKeydown(event) {
489 if (this.readonly) {
490 return;
491 }
492 switch (event.originalEvent.which) {
493 //down
494 case 40:
495 var nextItem = this.findNextItem(event.originalEvent.target.parentElement);
496 if (nextItem) {
497 nextItem.focus();
498 }
499 event.originalEvent.preventDefault();
500 break;
501 //up
502 case 38:
503 var prevItem = this.findPrevItem(event.originalEvent.target.parentElement);
504 if (prevItem) {
505 prevItem.focus();
506 }
507 event.originalEvent.preventDefault();
508 break;
509 //enter
510 case 13:
511 this.onOptionClick(event);
512 event.originalEvent.preventDefault();
513 break;
514 }
515 }
516 findNextItem(item) {
517 let nextItem = item.nextElementSibling;
518 if (nextItem)
519 return DomHandler.hasClass(nextItem.children[0], 'p-disabled') || DomHandler.isHidden(nextItem.children[0]) || DomHandler.hasClass(nextItem, 'p-multiselect-item-group') ? this.findNextItem(nextItem) : nextItem.children[0];
520 else
521 return null;
522 }
523 findPrevItem(item) {
524 let prevItem = item.previousElementSibling;
525 if (prevItem)
526 return DomHandler.hasClass(prevItem.children[0], 'p-disabled') || DomHandler.isHidden(prevItem.children[0]) || DomHandler.hasClass(prevItem, 'p-multiselect-item-group') ? this.findPrevItem(prevItem) : prevItem.children[0];
527 else
528 return null;
529 }
530 onKeydown(event) {
531 switch (event.which) {
532 //down
533 case 40:
534 if (!this.overlayVisible && event.altKey) {
535 this.show();
536 event.preventDefault();
537 }
538 break;
539 //space
540 case 32:
541 if (!this.overlayVisible) {
542 this.show();
543 event.preventDefault();
544 }
545 break;
546 //escape
547 case 27:
548 this.hide();
549 break;
550 }
551 }
552 updateLabel() {
553 if (this.value && this.options && this.value.length && this.displaySelectedLabel) {
554 let label = '';
555 for (let i = 0; i < this.value.length; i++) {
556 let itemLabel = this.findLabelByValue(this.value[i]);
557 if (itemLabel) {
558 if (label.length > 0) {
559 label = label + ', ';
560 }
561 label = label + itemLabel;
562 }
563 }
564 if (this.value.length <= this.maxSelectedLabels || this.selectedItemsLabel === 'ellipsis') {
565 this.valuesAsString = label;
566 }
567 else {
568 let pattern = /{(.*?)}/;
569 if (pattern.test(this.selectedItemsLabel)) {
570 this.valuesAsString = this.selectedItemsLabel.replace(this.selectedItemsLabel.match(pattern)[0], this.value.length + '');
571 }
572 else {
573 this.valuesAsString = this.selectedItemsLabel;
574 }
575 }
576 }
577 else {
578 this.valuesAsString = this.placeholder || this.defaultLabel;
579 }
580 }
581 findLabelByValue(val) {
582 if (this.group) {
583 let label = null;
584 for (let i = 0; i < this.options.length; i++) {
585 let subOptions = this.getOptionGroupChildren(this.options[i]);
586 if (subOptions) {
587 label = this.searchLabelByValue(val, subOptions);
588 if (label) {
589 break;
590 }
591 }
592 }
593 return label;
594 }
595 else {
596 return this.searchLabelByValue(val, this.options);
597 }
598 }
599 searchLabelByValue(val, options) {
600 let label = null;
601 for (let i = 0; i < options.length; i++) {
602 let option = options[i];
603 let optionValue = this.getOptionValue(option);
604 if (val == null && optionValue == null || ObjectUtils.equals(val, optionValue, this.dataKey)) {
605 label = this.getOptionLabel(option);
606 break;
607 }
608 }
609 return label;
610 }
611 get allChecked() {
612 let optionsToRender = this.optionsToRender;
613 if (!optionsToRender || optionsToRender.length === 0) {
614 return false;
615 }
616 else {
617 let selectedDisabledItemsLength = 0;
618 let unselectedDisabledItemsLength = 0;
619 let selectedEnabledItemsLength = 0;
620 let visibleOptionsLength = this.group ? 0 : this.optionsToRender.length;
621 for (let option of optionsToRender) {
622 if (!this.group) {
623 let disabled = this.isOptionDisabled(option);
624 let selected = this.isSelected(option);
625 if (disabled) {
626 if (selected)
627 selectedDisabledItemsLength++;
628 else
629 unselectedDisabledItemsLength++;
630 }
631 else {
632 if (selected)
633 selectedEnabledItemsLength++;
634 else
635 return false;
636 }
637 }
638 else {
639 for (let opt of this.getOptionGroupChildren(option)) {
640 let disabled = this.isOptionDisabled(opt);
641 let selected = this.isSelected(opt);
642 if (disabled) {
643 if (selected)
644 selectedDisabledItemsLength++;
645 else
646 unselectedDisabledItemsLength++;
647 }
648 else {
649 if (selected)
650 selectedEnabledItemsLength++;
651 else {
652 return false;
653 }
654 }
655 visibleOptionsLength++;
656 }
657 }
658 }
659 return (visibleOptionsLength === selectedDisabledItemsLength
660 || visibleOptionsLength === selectedEnabledItemsLength
661 || selectedEnabledItemsLength && visibleOptionsLength === (selectedEnabledItemsLength + unselectedDisabledItemsLength + selectedDisabledItemsLength));
662 }
663 }
664 get optionsToRender() {
665 return this._filteredOptions || this.options;
666 }
667 get emptyOptions() {
668 let optionsToRender = this.optionsToRender;
669 return !optionsToRender || optionsToRender.length === 0;
670 }
671 get emptyMessageLabel() {
672 return this.emptyMessage || this.config.getTranslation(TranslationKeys.EMPTY_MESSAGE);
673 }
674 get emptyFilterMessageLabel() {
675 return this.emptyFilterMessage || this.config.getTranslation(TranslationKeys.EMPTY_FILTER_MESSAGE);
676 }
677 hasFilter() {
678 return this._filterValue && this._filterValue.trim().length > 0;
679 }
680 onFilterInputChange(event) {
681 this._filterValue = event.target.value;
682 this.activateFilter();
683 this.onFilter.emit({ originalEvent: event, filter: this._filterValue });
684 this.cd.detectChanges();
685 this.alignOverlay();
686 }
687 activateFilter() {
688 if (this.hasFilter() && this._options) {
689 let searchFields = (this.filterBy || this.optionLabel || 'label').split(',');
690 if (this.group) {
691 let searchFields = (this.optionLabel || 'label').split(',');
692 let filteredGroups = [];
693 for (let optgroup of this.options) {
694 let filteredSubOptions = this.filterService.filter(this.getOptionGroupChildren(optgroup), searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
695 if (filteredSubOptions && filteredSubOptions.length) {
696 filteredGroups.push({ ...optgroup, ...{ [this.optionGroupChildren]: filteredSubOptions } });
697 }
698 }
699 this._filteredOptions = filteredGroups;
700 }
701 else {
702 this._filteredOptions = this.filterService.filter(this.options, searchFields, this._filterValue, this.filterMatchMode, this.filterLocale);
703 }
704 }
705 else {
706 this._filteredOptions = null;
707 }
708 }
709 onHeaderCheckboxFocus() {
710 this.headerCheckboxFocus = true;
711 }
712 onHeaderCheckboxBlur() {
713 this.headerCheckboxFocus = false;
714 }
715 bindDocumentClickListener() {
716 if (!this.documentClickListener) {
717 const documentTarget = this.el ? this.el.nativeElement.ownerDocument : 'document';
718 this.documentClickListener = this.renderer.listen(documentTarget, 'click', (event) => {
719 if (this.isOutsideClicked(event)) {
720 this.hide();
721 }
722 });
723 }
724 }
725 unbindDocumentClickListener() {
726 if (this.documentClickListener) {
727 this.documentClickListener();
728 this.documentClickListener = null;
729 }
730 }
731 bindDocumentResizeListener() {
732 this.documentResizeListener = this.onWindowResize.bind(this);
733 window.addEventListener('resize', this.documentResizeListener);
734 }
735 unbindDocumentResizeListener() {
736 if (this.documentResizeListener) {
737 window.removeEventListener('resize', this.documentResizeListener);
738 this.documentResizeListener = null;
739 }
740 }
741 onWindowResize() {
742 if (!DomHandler.isAndroid()) {
743 this.hide();
744 }
745 }
746 bindScrollListener() {
747 if (!this.scrollHandler) {
748 this.scrollHandler = new ConnectedOverlayScrollHandler(this.containerViewChild.nativeElement, () => {
749 if (this.overlayVisible) {
750 this.hide();
751 }
752 });
753 }
754 this.scrollHandler.bindScrollListener();
755 }
756 unbindScrollListener() {
757 if (this.scrollHandler) {
758 this.scrollHandler.unbindScrollListener();
759 }
760 }
761 onOverlayHide() {
762 this.unbindDocumentClickListener();
763 this.unbindDocumentResizeListener();
764 this.unbindScrollListener();
765 this.overlay = null;
766 this.onModelTouched();
767 }
768 ngOnDestroy() {
769 if (this.scrollHandler) {
770 this.scrollHandler.destroy();
771 this.scrollHandler = null;
772 }
773 if (this.overlay) {
774 ZIndexUtils.clear(this.overlay);
775 }
776 this.restoreOverlayAppend();
777 this.onOverlayHide();
778 }
779}
780MultiSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MultiSelect, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i3.FilterService }, { token: i3.PrimeNGConfig }, { token: i3.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
781MultiSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: MultiSelect, selector: "p-multiSelect", inputs: { style: "style", styleClass: "styleClass", panelStyle: "panelStyle", panelStyleClass: "panelStyleClass", inputId: "inputId", disabled: "disabled", readonly: "readonly", group: "group", filter: "filter", filterPlaceHolder: "filterPlaceHolder", filterLocale: "filterLocale", overlayVisible: "overlayVisible", tabindex: "tabindex", appendTo: "appendTo", dataKey: "dataKey", name: "name", ariaLabelledBy: "ariaLabelledBy", displaySelectedLabel: "displaySelectedLabel", maxSelectedLabels: "maxSelectedLabels", selectionLimit: "selectionLimit", selectedItemsLabel: "selectedItemsLabel", showToggleAll: "showToggleAll", emptyFilterMessage: "emptyFilterMessage", emptyMessage: "emptyMessage", resetFilterOnHide: "resetFilterOnHide", dropdownIcon: "dropdownIcon", optionLabel: "optionLabel", optionValue: "optionValue", optionDisabled: "optionDisabled", optionGroupLabel: "optionGroupLabel", optionGroupChildren: "optionGroupChildren", showHeader: "showHeader", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", filterBy: "filterBy", virtualScroll: "virtualScroll", itemSize: "itemSize", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", ariaFilterLabel: "ariaFilterLabel", filterMatchMode: "filterMatchMode", tooltip: "tooltip", tooltipPosition: "tooltipPosition", tooltipPositionStyle: "tooltipPositionStyle", tooltipStyleClass: "tooltipStyleClass", autofocusFilter: "autofocusFilter", display: "display", scrollHeight: "scrollHeight", defaultLabel: "defaultLabel", placeholder: "placeholder", options: "options", filterValue: "filterValue" }, outputs: { onChange: "onChange", onFilter: "onFilter", onFocus: "onFocus", onBlur: "onBlur", onClick: "onClick", onPanelShow: "onPanelShow", onPanelHide: "onPanelHide" }, host: { properties: { "class.p-inputwrapper-filled": "filled", "class.p-inputwrapper-focus": "focus || overlayVisible" }, classAttribute: "p-element p-inputwrapper" }, providers: [MULTISELECT_VALUE_ACCESSOR], queries: [{ propertyName: "footerFacet", first: true, predicate: Footer, descendants: true }, { propertyName: "headerFacet", first: true, predicate: Header, descendants: true }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }, { propertyName: "filterInputChild", first: true, predicate: ["filterInput"], descendants: true }, { propertyName: "accessibleViewChild", first: true, predicate: ["in"], descendants: true }], ngImport: i0, template: `
782 <div #container [ngClass]="{'p-multiselect p-component':true,
783 'p-multiselect-open':overlayVisible,
784 'p-multiselect-chip': display === 'chip',
785 'p-focus':focus,
786 'p-disabled': disabled}" [ngStyle]="style" [class]="styleClass"
787 (click)="onMouseclick($event,in)">
788 <div class="p-hidden-accessible">
789 <input #in type="text" readonly="readonly" [attr.id]="inputId" [attr.name]="name" (focus)="onInputFocus($event)" (blur)="onInputBlur($event)"
790 [disabled]="disabled" [attr.tabindex]="tabindex" (keydown)="onKeydown($event)" aria-haspopup="listbox" [attr.aria-expanded]="overlayVisible"
791 [attr.aria-labelledby]="ariaLabelledBy" role="listbox">
792 </div>
793 <div class="p-multiselect-label-container" [pTooltip]="tooltip" [tooltipPosition]="tooltipPosition" [positionStyle]="tooltipPositionStyle" [tooltipStyleClass]="tooltipStyleClass">
794 <div class="p-multiselect-label" [ngClass]="{'p-placeholder': valuesAsString === (defaultLabel || placeholder), 'p-multiselect-label-empty': ((valuesAsString == null || valuesAsString.length === 0) && (placeholder == null || placeholder.length === 0))}">
795 <ng-container *ngIf="!selectedItemsTemplate">
796 <ng-container *ngIf="display === 'comma'">{{valuesAsString || 'empty'}}</ng-container>
797 <ng-container *ngIf="display === 'chip'">
798 <div #token *ngFor="let item of value; let i = index;" class="p-multiselect-token">
799 <span class="p-multiselect-token-label">{{findLabelByValue(item)}}</span>
800 <span *ngIf="!disabled" class="p-multiselect-token-icon pi pi-times-circle" (click)="removeChip(item, $event)"></span>
801 </div>
802 <ng-container *ngIf="!value || value.length === 0">{{placeholder || defaultLabel || 'empty'}}</ng-container>
803 </ng-container>
804 </ng-container>
805 <ng-container *ngTemplateOutlet="selectedItemsTemplate; context: {$implicit: value}"></ng-container>
806 </div>
807 </div>
808 <div [ngClass]="{'p-multiselect-trigger':true}">
809 <span class="p-multiselect-trigger-icon" [ngClass]="dropdownIcon"></span>
810 </div>
811 <div *ngIf="overlayVisible" [ngClass]="['p-multiselect-panel p-component']" [@overlayAnimation]="{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}" (@overlayAnimation.start)="onOverlayAnimationStart($event)"onOverlayAnimationEnd
812 (@overlayAnimation.done)="onOverlayAnimationEnd($event)" [ngStyle]="panelStyle" [class]="panelStyleClass" (keydown)="onKeydown($event)" (click)="onOverlayClick($event)" >
813 <div class="p-multiselect-header" *ngIf="showHeader">
814 <ng-content select="p-header"></ng-content>
815 <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
816 <div class="p-checkbox p-component" *ngIf="showToggleAll && !selectionLimit" [ngClass]="{'p-checkbox-disabled': disabled || toggleAllDisabled}">
817 <div class="p-hidden-accessible">
818 <input type="checkbox" readonly="readonly" [checked]="allChecked" (focus)="onHeaderCheckboxFocus()" (blur)="onHeaderCheckboxBlur()" (keydown.space)="toggleAll($event)" [disabled]="disabled || toggleAllDisabled">
819 </div>
820 <div class="p-checkbox-box" role="checkbox" [attr.aria-checked]="allChecked" [ngClass]="{'p-highlight':allChecked, 'p-focus': headerCheckboxFocus, 'p-disabled': disabled || toggleAllDisabled}" (click)="toggleAll($event)">
821 <span class="p-checkbox-icon" [ngClass]="{'pi pi-check':allChecked}"></span>
822 </div>
823 </div>
824 <div class="p-multiselect-filter-container" *ngIf="filter">
825 <input #filterInput type="text" role="textbox" [value]="filterValue||''" (input)="onFilterInputChange($event)" class="p-multiselect-filter p-inputtext p-component" [disabled]="disabled" [attr.placeholder]="filterPlaceHolder" [attr.aria-label]="ariaFilterLabel">
826 <span class="p-multiselect-filter-icon pi pi-search"></span>
827 </div>
828 <button class="p-multiselect-close p-link" type="button" (click)="close($event)" pRipple>
829 <span class="p-multiselect-close-icon pi pi-times"></span>
830 </button>
831 </div>
832 <div class="p-multiselect-items-wrapper" [style.max-height]="virtualScroll ? 'auto' : (scrollHeight||'auto')">
833 <ul class="p-multiselect-items p-component" [ngClass]="{'p-multiselect-virtualscroll': virtualScroll}" role="listbox" aria-multiselectable="true">
834 <ng-container *ngIf="group">
835 <ng-template ngFor let-optgroup [ngForOf]="optionsToRender">
836 <li class="p-multiselect-item-group">
837 <span *ngIf="!groupTemplate">{{getOptionGroupLabel(optgroup)||'empty'}}</span>
838 <ng-container *ngTemplateOutlet="groupTemplate; context: {$implicit: optgroup}"></ng-container>
839 </li>
840 <ng-container *ngTemplateOutlet="itemslist; context: {$implicit: getOptionGroupChildren(optgroup)}"></ng-container>
841 </ng-template>
842 </ng-container>
843 <ng-container *ngIf="!group">
844 <ng-container *ngTemplateOutlet="itemslist; context: {$implicit: optionsToRender}"></ng-container>
845 </ng-container>
846 <ng-template #itemslist let-optionsToDisplay let-selectedOption="selectedOption">
847 <ng-container *ngIf="!virtualScroll; else virtualScrollList">
848 <ng-template ngFor let-option let-i="index" [ngForOf]="optionsToDisplay">
849 <p-multiSelectItem [option]="option" [selected]="isSelected(option)" [label]="getOptionLabel(option)" [disabled]="isOptionDisabled(option)" (onClick)="onOptionClick($event)" (onKeydown)="onOptionKeydown($event)"
850 [template]="itemTemplate"></p-multiSelectItem>
851 </ng-template>
852 </ng-container>
853 <ng-template #virtualScrollList>
854 <cdk-virtual-scroll-viewport #viewport [ngStyle]="{'height': scrollHeight}" [itemSize]="itemSize" *ngIf="virtualScroll && !emptyOptions">
855 <ng-container *cdkVirtualFor="let option of optionsToDisplay; let i = index; let c = count; let f = first; let l = last; let e = even; let o = odd">
856 <p-multiSelectItem [option]="option" [selected]="isSelected(option)" [label]="getOptionLabel(option)" [disabled]="isOptionDisabled(option)" (onClick)="onOptionClick($event)" (onKeydown)="onOptionKeydown($event)"
857 [template]="itemTemplate" [itemSize]="itemSize"></p-multiSelectItem>
858 </ng-container>
859 </cdk-virtual-scroll-viewport>
860 </ng-template>
861 <li *ngIf="hasFilter() && emptyOptions" class="p-multiselect-empty-message">
862 <ng-container *ngIf="!emptyFilterTemplate && !emptyTemplate; else emptyFilter">
863 {{emptyFilterMessageLabel}}
864 </ng-container>
865 <ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate || emptyTemplate"></ng-container>
866 </li>
867 <li *ngIf="!hasFilter() && emptyOptions" class="p-multiselect-empty-message">
868 <ng-container *ngIf="!emptyTemplate; else empty">
869 {{emptyMessageLabel}}
870 </ng-container>
871 <ng-container #empty *ngTemplateOutlet="emptyTemplate"></ng-container>
872 </li>
873 </ng-template>
874 </ul>
875 </div>
876 <div class="p-multiselect-footer" *ngIf="footerFacet || footerTemplate">
877 <ng-content select="p-footer"></ng-content>
878 <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
879 </div>
880 </div>
881 </div>
882 `, isInline: true, styles: [".p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;-ms-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1 1 auto;cursor:pointer}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect .p-multiselect-panel{min-width:100%}.p-multiselect-panel{position:absolute;top:0;left:0}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:normal;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1 1 auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container .p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid .p-multiselect{display:flex}\n"], components: [{ type: MultiSelectItem, selector: "p-multiSelectItem", inputs: ["option", "selected", "label", "disabled", "itemSize", "template"], outputs: ["onClick", "onKeydown"] }, { type: i4.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.Ripple, selector: "[pRipple]" }, { type: i4.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { type: i4.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }], animations: [
883 trigger('overlayAnimation', [
884 transition(':enter', [
885 style({ opacity: 0, transform: 'scaleY(0.8)' }),
886 animate('{{showTransitionParams}}')
887 ]),
888 transition(':leave', [
889 animate('{{hideTransitionParams}}', style({ opacity: 0 }))
890 ])
891 ])
892 ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
893i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MultiSelect, decorators: [{
894 type: Component,
895 args: [{ selector: 'p-multiSelect', template: `
896 <div #container [ngClass]="{'p-multiselect p-component':true,
897 'p-multiselect-open':overlayVisible,
898 'p-multiselect-chip': display === 'chip',
899 'p-focus':focus,
900 'p-disabled': disabled}" [ngStyle]="style" [class]="styleClass"
901 (click)="onMouseclick($event,in)">
902 <div class="p-hidden-accessible">
903 <input #in type="text" readonly="readonly" [attr.id]="inputId" [attr.name]="name" (focus)="onInputFocus($event)" (blur)="onInputBlur($event)"
904 [disabled]="disabled" [attr.tabindex]="tabindex" (keydown)="onKeydown($event)" aria-haspopup="listbox" [attr.aria-expanded]="overlayVisible"
905 [attr.aria-labelledby]="ariaLabelledBy" role="listbox">
906 </div>
907 <div class="p-multiselect-label-container" [pTooltip]="tooltip" [tooltipPosition]="tooltipPosition" [positionStyle]="tooltipPositionStyle" [tooltipStyleClass]="tooltipStyleClass">
908 <div class="p-multiselect-label" [ngClass]="{'p-placeholder': valuesAsString === (defaultLabel || placeholder), 'p-multiselect-label-empty': ((valuesAsString == null || valuesAsString.length === 0) && (placeholder == null || placeholder.length === 0))}">
909 <ng-container *ngIf="!selectedItemsTemplate">
910 <ng-container *ngIf="display === 'comma'">{{valuesAsString || 'empty'}}</ng-container>
911 <ng-container *ngIf="display === 'chip'">
912 <div #token *ngFor="let item of value; let i = index;" class="p-multiselect-token">
913 <span class="p-multiselect-token-label">{{findLabelByValue(item)}}</span>
914 <span *ngIf="!disabled" class="p-multiselect-token-icon pi pi-times-circle" (click)="removeChip(item, $event)"></span>
915 </div>
916 <ng-container *ngIf="!value || value.length === 0">{{placeholder || defaultLabel || 'empty'}}</ng-container>
917 </ng-container>
918 </ng-container>
919 <ng-container *ngTemplateOutlet="selectedItemsTemplate; context: {$implicit: value}"></ng-container>
920 </div>
921 </div>
922 <div [ngClass]="{'p-multiselect-trigger':true}">
923 <span class="p-multiselect-trigger-icon" [ngClass]="dropdownIcon"></span>
924 </div>
925 <div *ngIf="overlayVisible" [ngClass]="['p-multiselect-panel p-component']" [@overlayAnimation]="{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}" (@overlayAnimation.start)="onOverlayAnimationStart($event)"onOverlayAnimationEnd
926 (@overlayAnimation.done)="onOverlayAnimationEnd($event)" [ngStyle]="panelStyle" [class]="panelStyleClass" (keydown)="onKeydown($event)" (click)="onOverlayClick($event)" >
927 <div class="p-multiselect-header" *ngIf="showHeader">
928 <ng-content select="p-header"></ng-content>
929 <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
930 <div class="p-checkbox p-component" *ngIf="showToggleAll && !selectionLimit" [ngClass]="{'p-checkbox-disabled': disabled || toggleAllDisabled}">
931 <div class="p-hidden-accessible">
932 <input type="checkbox" readonly="readonly" [checked]="allChecked" (focus)="onHeaderCheckboxFocus()" (blur)="onHeaderCheckboxBlur()" (keydown.space)="toggleAll($event)" [disabled]="disabled || toggleAllDisabled">
933 </div>
934 <div class="p-checkbox-box" role="checkbox" [attr.aria-checked]="allChecked" [ngClass]="{'p-highlight':allChecked, 'p-focus': headerCheckboxFocus, 'p-disabled': disabled || toggleAllDisabled}" (click)="toggleAll($event)">
935 <span class="p-checkbox-icon" [ngClass]="{'pi pi-check':allChecked}"></span>
936 </div>
937 </div>
938 <div class="p-multiselect-filter-container" *ngIf="filter">
939 <input #filterInput type="text" role="textbox" [value]="filterValue||''" (input)="onFilterInputChange($event)" class="p-multiselect-filter p-inputtext p-component" [disabled]="disabled" [attr.placeholder]="filterPlaceHolder" [attr.aria-label]="ariaFilterLabel">
940 <span class="p-multiselect-filter-icon pi pi-search"></span>
941 </div>
942 <button class="p-multiselect-close p-link" type="button" (click)="close($event)" pRipple>
943 <span class="p-multiselect-close-icon pi pi-times"></span>
944 </button>
945 </div>
946 <div class="p-multiselect-items-wrapper" [style.max-height]="virtualScroll ? 'auto' : (scrollHeight||'auto')">
947 <ul class="p-multiselect-items p-component" [ngClass]="{'p-multiselect-virtualscroll': virtualScroll}" role="listbox" aria-multiselectable="true">
948 <ng-container *ngIf="group">
949 <ng-template ngFor let-optgroup [ngForOf]="optionsToRender">
950 <li class="p-multiselect-item-group">
951 <span *ngIf="!groupTemplate">{{getOptionGroupLabel(optgroup)||'empty'}}</span>
952 <ng-container *ngTemplateOutlet="groupTemplate; context: {$implicit: optgroup}"></ng-container>
953 </li>
954 <ng-container *ngTemplateOutlet="itemslist; context: {$implicit: getOptionGroupChildren(optgroup)}"></ng-container>
955 </ng-template>
956 </ng-container>
957 <ng-container *ngIf="!group">
958 <ng-container *ngTemplateOutlet="itemslist; context: {$implicit: optionsToRender}"></ng-container>
959 </ng-container>
960 <ng-template #itemslist let-optionsToDisplay let-selectedOption="selectedOption">
961 <ng-container *ngIf="!virtualScroll; else virtualScrollList">
962 <ng-template ngFor let-option let-i="index" [ngForOf]="optionsToDisplay">
963 <p-multiSelectItem [option]="option" [selected]="isSelected(option)" [label]="getOptionLabel(option)" [disabled]="isOptionDisabled(option)" (onClick)="onOptionClick($event)" (onKeydown)="onOptionKeydown($event)"
964 [template]="itemTemplate"></p-multiSelectItem>
965 </ng-template>
966 </ng-container>
967 <ng-template #virtualScrollList>
968 <cdk-virtual-scroll-viewport #viewport [ngStyle]="{'height': scrollHeight}" [itemSize]="itemSize" *ngIf="virtualScroll && !emptyOptions">
969 <ng-container *cdkVirtualFor="let option of optionsToDisplay; let i = index; let c = count; let f = first; let l = last; let e = even; let o = odd">
970 <p-multiSelectItem [option]="option" [selected]="isSelected(option)" [label]="getOptionLabel(option)" [disabled]="isOptionDisabled(option)" (onClick)="onOptionClick($event)" (onKeydown)="onOptionKeydown($event)"
971 [template]="itemTemplate" [itemSize]="itemSize"></p-multiSelectItem>
972 </ng-container>
973 </cdk-virtual-scroll-viewport>
974 </ng-template>
975 <li *ngIf="hasFilter() && emptyOptions" class="p-multiselect-empty-message">
976 <ng-container *ngIf="!emptyFilterTemplate && !emptyTemplate; else emptyFilter">
977 {{emptyFilterMessageLabel}}
978 </ng-container>
979 <ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate || emptyTemplate"></ng-container>
980 </li>
981 <li *ngIf="!hasFilter() && emptyOptions" class="p-multiselect-empty-message">
982 <ng-container *ngIf="!emptyTemplate; else empty">
983 {{emptyMessageLabel}}
984 </ng-container>
985 <ng-container #empty *ngTemplateOutlet="emptyTemplate"></ng-container>
986 </li>
987 </ng-template>
988 </ul>
989 </div>
990 <div class="p-multiselect-footer" *ngIf="footerFacet || footerTemplate">
991 <ng-content select="p-footer"></ng-content>
992 <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
993 </div>
994 </div>
995 </div>
996 `, animations: [
997 trigger('overlayAnimation', [
998 transition(':enter', [
999 style({ opacity: 0, transform: 'scaleY(0.8)' }),
1000 animate('{{showTransitionParams}}')
1001 ]),
1002 transition(':leave', [
1003 animate('{{hideTransitionParams}}', style({ opacity: 0 }))
1004 ])
1005 ])
1006 ], host: {
1007 'class': 'p-element p-inputwrapper',
1008 '[class.p-inputwrapper-filled]': 'filled',
1009 '[class.p-inputwrapper-focus]': 'focus || overlayVisible'
1010 }, providers: [MULTISELECT_VALUE_ACCESSOR], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: [".p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;-ms-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1 1 auto;cursor:pointer}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect .p-multiselect-panel{min-width:100%}.p-multiselect-panel{position:absolute;top:0;left:0}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:normal;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1 1 auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container .p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid .p-multiselect{display:flex}\n"] }]
1011 }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i3.FilterService }, { type: i3.PrimeNGConfig }, { type: i3.OverlayService }]; }, propDecorators: { style: [{
1012 type: Input
1013 }], styleClass: [{
1014 type: Input
1015 }], panelStyle: [{
1016 type: Input
1017 }], panelStyleClass: [{
1018 type: Input
1019 }], inputId: [{
1020 type: Input
1021 }], disabled: [{
1022 type: Input
1023 }], readonly: [{
1024 type: Input
1025 }], group: [{
1026 type: Input
1027 }], filter: [{
1028 type: Input
1029 }], filterPlaceHolder: [{
1030 type: Input
1031 }], filterLocale: [{
1032 type: Input
1033 }], overlayVisible: [{
1034 type: Input
1035 }], tabindex: [{
1036 type: Input
1037 }], appendTo: [{
1038 type: Input
1039 }], dataKey: [{
1040 type: Input
1041 }], name: [{
1042 type: Input
1043 }], ariaLabelledBy: [{
1044 type: Input
1045 }], displaySelectedLabel: [{
1046 type: Input
1047 }], maxSelectedLabels: [{
1048 type: Input
1049 }], selectionLimit: [{
1050 type: Input
1051 }], selectedItemsLabel: [{
1052 type: Input
1053 }], showToggleAll: [{
1054 type: Input
1055 }], emptyFilterMessage: [{
1056 type: Input
1057 }], emptyMessage: [{
1058 type: Input
1059 }], resetFilterOnHide: [{
1060 type: Input
1061 }], dropdownIcon: [{
1062 type: Input
1063 }], optionLabel: [{
1064 type: Input
1065 }], optionValue: [{
1066 type: Input
1067 }], optionDisabled: [{
1068 type: Input
1069 }], optionGroupLabel: [{
1070 type: Input
1071 }], optionGroupChildren: [{
1072 type: Input
1073 }], showHeader: [{
1074 type: Input
1075 }], autoZIndex: [{
1076 type: Input
1077 }], baseZIndex: [{
1078 type: Input
1079 }], filterBy: [{
1080 type: Input
1081 }], virtualScroll: [{
1082 type: Input
1083 }], itemSize: [{
1084 type: Input
1085 }], showTransitionOptions: [{
1086 type: Input
1087 }], hideTransitionOptions: [{
1088 type: Input
1089 }], ariaFilterLabel: [{
1090 type: Input
1091 }], filterMatchMode: [{
1092 type: Input
1093 }], tooltip: [{
1094 type: Input
1095 }], tooltipPosition: [{
1096 type: Input
1097 }], tooltipPositionStyle: [{
1098 type: Input
1099 }], tooltipStyleClass: [{
1100 type: Input
1101 }], autofocusFilter: [{
1102 type: Input
1103 }], display: [{
1104 type: Input
1105 }], containerViewChild: [{
1106 type: ViewChild,
1107 args: ['container']
1108 }], filterInputChild: [{
1109 type: ViewChild,
1110 args: ['filterInput']
1111 }], accessibleViewChild: [{
1112 type: ViewChild,
1113 args: ['in']
1114 }], footerFacet: [{
1115 type: ContentChild,
1116 args: [Footer]
1117 }], headerFacet: [{
1118 type: ContentChild,
1119 args: [Header]
1120 }], templates: [{
1121 type: ContentChildren,
1122 args: [PrimeTemplate]
1123 }], onChange: [{
1124 type: Output
1125 }], onFilter: [{
1126 type: Output
1127 }], onFocus: [{
1128 type: Output
1129 }], onBlur: [{
1130 type: Output
1131 }], onClick: [{
1132 type: Output
1133 }], onPanelShow: [{
1134 type: Output
1135 }], onPanelHide: [{
1136 type: Output
1137 }], scrollHeight: [{
1138 type: Input
1139 }], defaultLabel: [{
1140 type: Input
1141 }], placeholder: [{
1142 type: Input
1143 }], options: [{
1144 type: Input
1145 }], filterValue: [{
1146 type: Input
1147 }] } });
1148export class MultiSelectModule {
1149}
1150MultiSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MultiSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1151MultiSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MultiSelectModule, declarations: [MultiSelect, MultiSelectItem], imports: [CommonModule, SharedModule, ScrollingModule, TooltipModule, RippleModule], exports: [MultiSelect, SharedModule, ScrollingModule] });
1152MultiSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MultiSelectModule, imports: [[CommonModule, SharedModule, ScrollingModule, TooltipModule, RippleModule], SharedModule, ScrollingModule] });
1153i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: MultiSelectModule, decorators: [{
1154 type: NgModule,
1155 args: [{
1156 imports: [CommonModule, SharedModule, ScrollingModule, TooltipModule, RippleModule],
1157 exports: [MultiSelect, SharedModule, ScrollingModule],
1158 declarations: [MultiSelect, MultiSelectItem]
1159 }]
1160 }] });
1161//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXVsdGlzZWxlY3QuanMi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AgIDxuZy1jb250YWluZXIgKm5nSWY9XCIhc2VsZWN0ZWRJdGVtc1RlbXBsYXRlXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiZGlzcGxheSA9PT0gJ2NvbW1hJ1wiPnt7dmFsdWVzQXNTdHJpbmcgfHwgJ2VtcHR5J319PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiZGlzcGxheSA9PT0gJ2NoaXAnXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiAjdG9rZW4gKm5nRm9yPVwibGV0IGl0ZW0gb2YgdmFsdWU7IGxldCBpID0gaW5kZXg7XCIgY2xhc3M9XCJwLW11bHRpc2VsZWN0LXRva2VuXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwicC1tdWx0aXNlbGVjdC10b2tlbi1sYWJlbFwiPnt7ZmluZExhYmVsQnlWYWx1ZShpdGVtKX19PC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiAqbmdJZj1cIiFkaXNhYmxlZFwiIGNsYXNzPVwicC1tdWx0aXNlbGVjdC10b2tlbi1pY29uIHBpIHBpLXRpbWVzLWNpcmNsZVwiIChjbGljayk9XCJyZW1vdmVDaGlwKGl0ZW0sICRldmVudClcIj48L3NwYW4+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cIiF2YWx1ZSB8fCB2YWx1ZS5sZW5ndGggPT09IDBcIj57e3BsYWNlaG9sZGVyIHx8IGRlZmF1bHRMYWJlbCB8fCAnZW1wdHknfX08L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgICAg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3QtaXRlbS1ncm91cFwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gKm5nSWY9XCIhZ3JvdXBUZW1wbGF0ZVwiPnt7Z2V0T3B0aW9uR3JvdXBMYWJlbChvcHRncm91cCl8fCdlbXB0eSd9fTwvc3Bhbj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJncm91cFRlbXBsYXRlOyBjb250ZXh0OiB7JGltcGxpY2l0OiBvcHRncm91cH1cIj48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9saT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cIml0ZW1zbGlzdDsgY29udGV4dDogeyRpbXBsaWNpdDogZ2V0T3B0aW9uR3JvdXBDaGlsZHJlbihvcHRncm91cCl9XCI+PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9uZy10ZW1wbGF0ZT5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cIiFncm91cFwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJpdGVtc2xpc3Q7IGNvbnRleHQ6IHskaW1wbGljaXQ6IG9wdGlvbnNUb1JlbmRlcn1cIj48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgPG5nLXRlbXBsYXRlICNpdGVtc2xpc3QgbGV0LW9wdGlvbnNUb0Rpc3BsYXkgbGV0LXNlbGVjdGVkT3B0aW9uPVwic2VsZWN0ZWRPcHRpb25cIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiIXZpcnR1YWxTY3JvbGw7IGVsc2UgdmlydHVhbFNjcm9sbExpc3RcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG5nLXRlbXBsYXRlIG5nRm9yIGxldC1vcHRpb24gbGV0LWk9XCJpbmRleFwiIFtuZ0Zvck9mXT1cIm9wdGlvbnNUb0Rpc3BsYXlcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwLW11bHRpU2VsZWN0SXRlbSBbb3B0aW9uXT1cIm9wdGlvblwiIFtzZWxlY3RlZF09XCJpc1NlbGVjdGVkKG9wdGlvbilcIiBbbGFiZWxdPVwiZ2V0T3B0aW9uTGFiZWwob3B0aW9uKVwiIFtkaXNhYmxlZF09XCJpc09wdGlvbkRpc2FibGVkKG9wdGlvbilcIiAob25DbGljayk9XCJvbk9wdGlvbkNsaWNrKCRldmVudClcIiAob25LZXlkb3duKT1cIm9uT3B0aW9uS2V5ZG93bigkZXZlbnQpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3RlbXBsYXRlXT1cIml0ZW1UZW1wbGF0ZVwiPjwvcC1tdWx0aVNlbGVjdEl0ZW0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbmctdGVtcGxhdGU+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG5nLXRlbXBsYXRlICN2aXJ0dWFsU2Nyb2xsTGlzdD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGNkay12aXJ0dWFsLXNjcm9sbC12aWV3cG9ydCAjdmlld3BvcnQgW25nU3R5bGVdPVwieydoZWlnaHQnOiBzY3JvbGxIZWlnaHR9XCIgW2l0ZW1TaXplXT1cIml0ZW1TaXplXCIgKm5nSWY9XCJ2aXJ0dWFsU2Nyb2xsICYmICFlbXB0eU9wdGlvbnNcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKmNka1ZpcnR1YWxGb3I9XCJsZXQgb3B0aW9uIG9mIG9wdGlvbnNUb0Rpc3BsYXk7IGxldCBpID0gaW5kZXg7IGxldCBjID0gY291bnQ7IGxldCBmID0gZmlyc3Q7IGxldCBsID0gbGFzdDsgbGV0IGUgPSBldmVuOyBsZXQgbyA9IG9kZFwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwLW11bHRpU2VsZWN0SXRlbSBbb3B0aW9uXT1cIm9wdGlvblwiIFtzZWxlY3RlZF09XCJpc1NlbGVjdGVkKG9wdGlvbilcIiBbbGFiZWxdPVwiZ2V0T3B0aW9uTGFiZWwob3B0aW9uKVwiIFtkaXNhYmxlZF09XCJpc09wdGlvbkRpc2FibGVkKG9wdGlvbilcIiAob25DbGljayk9XCJvbk9wdGlvbkNsaWNrKCRldmVudClcIiAob25LZXlkb3duKT1cIm9uT3B0aW9uS2V5ZG93bigkZXZlbnQpXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3RlbXBsYXRlXT1cIml0ZW1UZW1wbGF0ZVwiIFtpdGVtU2l6ZV09XCJpdGVtU2l6ZVwiPjwvcC1tdWx0aVNlbGVjdEl0ZW0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9jZGstdmlydHVhbC1zY3JvbGwtdmlld3BvcnQ+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9uZy10ZW1wbGF0ZT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bGkgKm5nSWY9XCJoYXNGaWx0ZXIoKSAmJiBlbXB0eU9wdGlvbnNcIiBjbGFzcz1cInAtbXVsdGlzZWxlY3QtZW1wdHktbWVzc2FnZVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiIWVtcHR5RmlsdGVyVGVtcGxhdGUgJiYgIWVtcHR5VGVtcGxhdGU7IGVsc2UgZW1wdHlGaWx0ZXJcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt7ZW1wdHlGaWx0ZXJNZXNzYWdlTGFiZWx9fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAjZW1wdHlGaWx0ZXIgKm5nVGVtcGxhdGVPdXRsZXQ9XCJlbXB0eUZpbHRlclRlbXBsYXRlIHx8IGVtcHR5VGVtcGxhdGVcIj48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L2xpPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsaSAqbmdJZj1cIiFoYXNGaWx0ZXIoKSAmJiBlbXB0eU9wdGlvbnNcIiBjbGFzcz1cInAtbXVsdGlzZWxlY3QtZW1wdHktbWVzc2FnZVwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiIWVtcHR5VGVtcGxhdGU7IGVsc2UgZW1wdHlcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt7ZW1wdHlNZXNzYWdlTGFiZWx9fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAjZW1wdHkgKm5nVGVtcGxhdGVPdXRsZXQ9XCJlbXB0eVRlbXBsYXRlXCI+PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9saT5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvbmctdGVtcGxhdGU+XG4gICAgICAgICAgICAgICAgICAgIDwvdWw+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInAtbXVsdGlzZWxlY3QtZm9vdGVyXCIgKm5nSWY9XCJmb290ZXJGYWNldCB8fCBmb290ZXJUZW1wbGF0ZVwiPlxuICAgICAgICAgICAgICAgICAgICA8bmctY29udGVudCBzZWxlY3Q9XCJwLWZvb3RlclwiPjwvbmctY29udGVudD5cbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cImZvb3RlclRlbXBsYXRlXCI+PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8L2Rpdj5cbiAgICAgICAgPC9kaXY+XG4gICAgYCxcbiAgICBhbmltYXRpb25zOiBbXG4gICAgICAgIHRyaWdnZXIoJ292ZXJsYXlBbmltYXRpb24nLCBbXG4gICAgICAgICAgICB0cmFuc2l0aW9uKCc6ZW50ZXInLCBbXG4gICAgICAgICAgICAgICAgc3R5bGUoe29wYWNpdHk6IDAsIHRyYW5zZm9ybTogJ3NjYWxlWSgwLjgpJ30pLFxuICAgICAgICAgICAgICAgIGFuaW1hdGUoJ3t7c2hvd1RyYW5zaXRpb25QYXJhbXN9fScpXG4gICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICB0cmFuc2l0aW9uKCc6bGVhdmUnLCBbXG4gICAgICAgICAgICAgICAgYW5pbWF0ZSgne3toaWRlVHJhbnNpdGlvblBhcmFtc319Jywgc3R5bGUoeyBvcGFjaXR5OiAwIH0pKVxuICAgICAgICAgICAgICBdKVxuICAgICAgICBdKVxuICAgIF0sXG4gICAgaG9zdDoge1xuICAgICAgICAnY2xhc3MnOiAncC1lbGV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gICAgICAgY2FzZSAnc2VsZWN0ZWRJdGVtcyc6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2VsZWN0ZWRJdGVtc1RlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UgJ2hlYWRlcic6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaGVhZGVyVGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnZW1wdHlmaWx0ZXInOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLmVtcHR5RmlsdGVyVGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnZW1wdHknOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLmVtcHR5VGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnZm9vdGVyJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5mb290ZXJUZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgICAgICB0aGlzLml0ZW1UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIG5nQWZ0ZXJWaWV3SW5pdCgpIHtcbiAgICAgICAgaWYgKHRoaXMub3ZlcmxheVZpc2libGUpIHtcbiAgICAgICAgICAgIHRoaXMuc2hvdygpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgbmdBZnRlclZpZX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ICAgICBpZiAodGhpcy52YWx1ZSkge1xuICAgICAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCB0aGlzLnZhbHVlLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgICAgaWYgKE9iamVjdFV0aWxzLmVxdWFscyh0aGlzLnZhbHVlW2ldLCB2YWwsIHRoaXMuZGF0YUtleSkpIHtcbiAgICAgICAgICAgICAgICAgICAgaW5kZXggPSBpO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gaW5kZXg7XG4gICAgfVxuXG4gICAgZ2V0IHRvZ2dsZUFsbERpc2FibGVkKCk6IGJvb2xlYW4ge1xuICAgICAgICBsZXQgb3B0aW9uc1RvUmVuZGVyID0gdGhpcy5vcHRpb25zVG9SZW5kZXI7XG4gICAgICAgIGlmICghb3B0aW9uc1RvUmVuZGVyIHx8IG9wdGlvbnNUb1JlbmRlci5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgZm9yIChsZXQgb3B0aW9uIG9mIG9wdGlvbnNUb1JlbmRlcikge1xuICAgICAgICAgICAgICAgIGlmICghdGhpcy5pc09wdGlvbkRpc2FibGVkKG9wdGlvbikpXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICB0b2dnbGVBbGwoZXZlbnQpIHtcbiAgICAgICAgaWYgKHRoaXMuZGlzYWJsZWQgfHwgdGhpcy50b2dnbGVBbGxEaXNhYmxlZCB8fCB0aGlzLnJlYWRvbmx5KSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgYWxsQ2hlY2tlZCA9IHRoaXMuYWxsQ2hlY2tlZDtcblxuICAgICAgICBpZiAoYWxsQ2hlY2tlZClcbiAgICAgICAgICAgIHRoaXMudW5jaGVja0FsbCgpO1xuICAgICAgICBlbHNlXG4gICAgICAgICAgICB0aGlzLmNoZWNrQWxsKCk7XG5cbiAgICAgICAgdGhpcy5vbk1vZGVsQ2hhbmdlKHRoaXMudmFsdWUpO1xuICAgICAgICB0aGlzLm9uQ2hhbmdlLmVtaXQoeyBvcmlnaW5hbEV2ZW50OiBldmVudCwgdmFsdWU6IHRoaXMudmFsdWUgfSk7XG4gICAgICAgIHRoaXMudXBkYXRlRmlsbGVkU3RhdGUoKTtcbiAgICAgICAgdGhpcy51cGRhdGVMYWJlbCgpO1xuICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgIH1cblxuICAgIGNoZWNrQWxsKCkge1xuICAgICAgICBsZXQgb3B0aW9uc1RvUmVuZGVyID0gdGhpcy5vcHRpb25zVG9SZW5kZXI7XG4gICAgICAgIGxldCB2YWw6IGFueVtdID0gW107XG5cbiAgICAgICAgb3B0aW9uc1RvUmVuZGVyLmZvckVhY2gob3B0ID0+IHtcbiAgICAgICAgICAgIGlmICghdGhpcy5ncm91cCkge1xuICAgICAgICAgICAgICAgIGxldCBvcHRpb25EaXNhYmxlZCA9IHRoaXMuaXNPcHRpb25EaXNhYmxlZChvcHQpO1xuICAgICAgICAgICAgICAgIGlmICghb3B0aW9uRGlzYWJsZWQgfHwgKG9wdGlvbkRpc2FibGVkICYmIHRoaXMuaXNTZWxlY3RlZChvcHQpKSkge1xuICAgICAgICAgICAgICAgICAgICB2YWwucHVzaCh0aGlzLmdldE9wdGlvblZhbHVlKG9wdCkpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIGxldCBzdWJPcHRpb25zID0gdGhpcy5nZXRPcHRpb25Hcm91cENoaWxkcmVuKG9wdCk7XG5cbiAgICAgICAgICAgICAgICBpZiAoc3ViT3B0aW9ucykge1xuICAgICAgICAgICAgICAgICAgICBzdWJPcHRpb25zLmZvckVhY2gob3B0aW9uID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBvcHRpb25EaXNhYmxlZCA9IHRoaXMuaXNPcHRpb25EaXNhYmxlZChvcHRpb24pO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFvcHRpb25EaXNhYmxlZCB8fCAob3B0aW9uRGlzYWJsZWQgJiYgdGhpcy5pc1NlbGVjdGVkKG9wdGlvbikpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsLnB1c2godGhpcy5nZXRPcHRpb25WYWx1ZShvcHRpb24pKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcblxuICAgICAgICB0aGlzLnZhbHVlID0gdmFsO1xuICAgIH1cblxuICAgIHVuY2hlY2tBbGwoKSB7XG4gICAgICAgIGxldCBvcHRpb25zVG9SZW5kZXIgPSB0aGlzLm9wdGlvbnNUb1JlbmRlcjtcbiAgICAgICAgbGV0IHZhbDogYW55W10gPSBbXTtcblxuICAgICAgICBvcHRpb25zVG9SZW5kZXIuZm9yRWFjaChvcHQgPT4ge1xuICAgICAgICAgICAgaWYgKCF0aGlzLmdyb3VwKSB7XG4gICAgICAgICAgICAgICAgbGV0IG9wdGlvbkRpc2FibGVkID0gdGhpcy5pc09wdGlvbkRpc2FibGVkKG9wdCk7XG4gICAgICAgICAgICAgICAgaWYgKG9wdGlvbkRpc2FibGVkICYmIHRoaXMuaXNTZWxlY3RlZChvcHQpKSB7XG4gICAgICAgICAgICAgICAgICAgIHZhbC5wdXNoKHRoaXMuZ2V0T3B0aW9uVmFsdWUob3B0KSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgaWYgKG9wdC5pdGVtcykge1xuICAgICAgICAgICAgICAgICAgICBvcHQuaXRlbXMuZm9yRWFjaChvcHRpb24gPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IG9wdGlvbkRpc2FibGVkID0gdGhpcy5pc09wdGlvbkRpc2FibGVkKG9wdGlvbik7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAob3B0aW9uRGlzYWJsZWQgJiYgdGhpcy5pc1NlbGVjdGVkKG9wdGlvbikpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWwucHVzaCh0aGlzLmdldE9wdGlvblZhbHVlKG9wdGlvbikpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHRoaXMudmFsdWUgPSB2YWw7XG4gICAgfVxuXG4gICAgc2hvdygpIHtcbiAgICAgICAgaWYgKCF0aGlzLm92ZXJsYXlWaXNpYmxlKXtcbiAgICAgICAgICAgIHRoaXMub3ZlcmxheVZpc2libGUgPSB0cnVlO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25PdmVybGF5Q2xpY2soZXZlbnQpIHtcbiAgICAgICAgdGhpcy5vdmVybGF5U2VydmljZS5hZGQoe1xuICAgICAgICAgICAgb3JpZ2luYWxFdmVudDogZXZlbnQsXG4gICAgICAgICAgICB0YXJnZXQ6IHRoaXMuZWwubmF0aXZlRWxlbWVudFxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBvbk92ZXJsYXlBbmltYXRpb25TdGFydChldmVudDogQW5pbWF0aW9uRXZlbnQpIHtcbiAgICAgICAgc3dpdGNoIChldmVudC50b1N0YXRlKSB7XG4gICAgICAgICAgICBjYXNlICd2aXNpYmxlJzpcbiAgICAgICAgICAgICAgICB0aGlzLm92ZXJsYXkgPSBldmVudC5lbGVtZW50O1xuICAgICAgICAgICAgICAgIHRoaXMuYXBwZW5kT3ZlcmxheSgpO1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLmF1dG9aSW5kZXgpIHtcbiAgICAgICAgICAgICAgICAgICAgWkluZGV4VXRpbHMuc2V0KCdvdmVybGF5JywgdGhpcy5vdmVybGF5LCB0aGlzLmNvbmZpZy56SW5kZXgub3ZlcmxheSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHRoaXMuYWxpZ25PdmVybGF5KCk7XG4gICAgICAgICAgICAgICAgdGhpcy5iaW5kRG9jdW1lbnRDbGlja0xpc3RlbmVyKCk7XG4gICAgICAgICAgICAgICAgdGhpcy5iaW5kRG9jdW1lbnRSZXNpemVMaXN0ZW5lcigpO1xuICAgICAgICAgICAgICAgIHRoaXMuYmluZFNjcm9sbExpc3RlbmVyKCk7XG5cbiAgICAgICAgICAgICAgICBpZiAodGhpcy5maWx0ZXJJbnB1dENoaWxkICYmIHRoaXMuZmlsdGVySW5wdXRDaGlsZC5uYXRpdmVFbGVtZW50KSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucHJldmVudE1vZGVsVG91Y2hlZCA9IHRydWU7XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuYXV0b2ZvY3VzRmlsdGVyKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmZpbHRlcklucHV0Q2hpbGQubmF0aXZlRWxlbWVudC5mb2N1cygpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgdGhpcy5vblBhbmVsU2hvdy5lbWl0KCk7XG4gICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgY2FzZSAndm9pZCc6XG4gICAgICAgICAgICAgICAgdGhpcy5vbk92ZXJsYXlIaWRlKCk7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG9uT3ZlcmxheUFuaW1hdGlvbkVuZChldmVudDogQW5pbWF0aW9uRXZlbnQpIHtcbiAgICAgICAgc3dpdGNoIChldmVudC50b1N0YXRlKSB7XG4gICAgICAgICAgICBjYXNlICd2b2lkJzpcbiAgICAgICAgICAgICAgICBaSW5kZXhVdGlscy5jbGVhcihldmVudC5lbGVtZW50KTtcbiAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgYXBwZW5kT3ZlcmxheSgpIHtcbiAgICAgICAgaWYgKHRoaXMuYXBwZW5kVG8pIHtcbiAgICAgICAgICAgIGlmICh0aGlzLmFwcGVuZFRvID09PSAnYm9keScpXG4gICAgICAgICAgICAgICAgZG9jdW1lbnQuYm9keS5hcHBlbmRDaGlsZCh0aGlzLm92ZXJsYXkpO1xuICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgIERvbUhhbmRsZXIuYXBwZW5kQ2hpbGQodGhpcy5vdmVybGF5LCB0aGlzLmFwcGVuZFRvKTtcblxuICAgICAgICAgICAgaWYgKCF0aGlzLm92ZXJsYXkuc3R5bGUubWluV2lkdGgpIHtcbiAgICAgICAgICAgICAgICB0aGlzLm92ZXJsYXkuc3R5bGUubWluV2lkdGggPSBEb21IYW5kbGVyLmdldFdpZHRoKHRoaXMuY29udGFpbmVyVmlld0NoaWxkLm5hdGl2ZUVsZW1lbnQpICsgJ3B4JztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIHJlc3RvcmVPdmVybGF5QXBwZW5kKCkge1xuICAgICAgICBpZiAodGhpcy5vdmVybGF5ICYmIHRoaXMuYXBwZW5kVG8pIHtcbiAgICAgICAgICAgIHRoaXMuZWwubmF0aXZlRWxlbWVudC5hcHBlbmRDaGlsZCh0aGlzLm92ZXJsYXkpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgYWxpZ25PdmVybGF5KCkge1xuICAgICAgICBpZiAodGhpcy5vdmVybGF5KSB7XG4gIC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oaXMucmVhZG9ubHkpIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIHN3aXRjaChldmVudC5vcmlnaW5hbEV2ZW50LndoaWNoKSB7XG5cbiAgICAgICAgICAgIC8vZG93blxuICAgICAgICAgICAgY2FzZSA0MDpcbiAgICAgICAgICAgICAgICB2YXIgbmV4dEl0ZW0gPSB0aGlzLmZpbmROZXh0SXRlbShldmVudC5vcmlnaW5hbEV2ZW50LnRhcmdldC5wYXJlbnRFbGVtZW50KTtcbiAgICAgICAgICAgICAgICBpZiAobmV4dEl0ZW0pIHtcbiAgICAgICAgICAgICAgICAgICAgbmV4dEl0ZW0uZm9jdXMoKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBldmVudC5vcmlnaW5hbEV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgLy91cFxuICAgICAgICAgICAgY2FzZSAzODpcbiAgICAgICAgICAgICAgICB2YXIgcHJldkl0ZW0gPSB0aGlzLmZpbmRQcmV2SXRlbShldmVudC5vcmlnaW5hbEV2ZW50LnRhcmdldC5wYXJlbnRFbGVtZW50KTtcbiAgICAgICAgICAgICAgICBpZiAocHJldkl0ZW0pIHtcbiAgICAgICAgICAgICAgICAgICAgcHJldkl0ZW0uZm9jdXMoKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBldmVudC5vcmlnaW5hbEV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgLy9lbnRlclxuICAgICAgICAgICAgY2FzZSAxMzpcbiAgICAgICAgICAgICAgICB0aGlzLm9uT3B0aW9uQ2xpY2soZXZlbnQpO1xuICAgICAgICAgICAgICAgIGV2ZW50Lm9yaWdpbmFsRXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9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gICAgc3dpdGNoKGV2ZW50LndoaWNoKSB7XG4gICAgICAgICAgICAvL2Rvd25cbiAgICAgICAgICAgIGNhc2UgNDA6XG4gICAgICAgICAgICAgICAgaWYgKCF0aGlzLm92ZXJsYXlWaXNpYmxlICYmIGV2ZW50LmFsdEtleSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNob3coKTtcbiAgICAgICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgLy9zcGFjZVxuICAgICAgICAgICAgY2FzZSAzMjpcbiAgICAgICAgICAgICAgICBpZiAoIXRoaXMub3ZlcmxheVZpc2libGUpe1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNob3coKTtcbiAgICAgICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIC8vZXNjYXBlXG4gICAgICAgICAgICBjYXNlIDI3OlxuICAgICAgICAgICAgICAgIHRoaXMuaGlkZSgpO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICB1cGRhdGVMYWJlbCgpIHtcbiAgICAgICAgaWYgKHRoaXMudmFsdWUgJiYgdGhpcy5vcHRpb25zICYmIHRoaXMudmFsdWUubGVuZ3RoICYmIHRoaXMuZGlzcGxheVNlbGVjdGVkTGFiZWwpIHtcbiAgICAgICAgICAgIGxldCBsYWJlbCA9ICcnO1xuICAgICAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCB0aGlzLnZhbHVlLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICAgICAgbGV0IGl0ZW1MYWJlbCA9IHRoaXMuZmluZExhYmVsQnlWYWx1ZSh0aGlzLnZhbHVlW2ldKTtcbiAgICAgICAgICAgICAgICBpZiAoaXRlbUxhYmVsKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmIChsYWJlbC5sZW5ndGggPiAwKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsYWJlbCA9IGxhYmVsICsgJywgJztcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBsYWJlbCA9IGxhYmVsICsgaXRlbUxhYmVsO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKHRoaXMudmFsdWUubGVuZ3RoIDw9IHRoaXMubWF4U2VsZWN0ZWRMYWJlbHMgfHwgdGhpcy5zZWxlY3RlZEl0ZW1zTGFiZWwgPT09ICdlbGxpcHNpcycpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnZhbHVlc0FzU3RyaW5nID0gbGFiZWw7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICBsZXQgcGF0dGVybiA9IC97KC4qPyl9LztcbiAgICAgICAgICAgICAgICBpZiAocGF0dGVybi50ZXN0KHRoaXMuc2VsZWN0ZWRJdGVtc0xhYmVsKSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnZhbHVlc0FzU3RyaW5nID0gdGhpcy5zZWxlY3RlZEl0ZW1zTGFiZWwucmVwbGFjZSh0aGlzLnNlbGVjdGVkSXRlbXNMYWJlbC5tYXRjaChwYXR0ZXJuKVswXSwgdGhpcy52YWx1ZS5sZW5ndGggKyAnJyk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy52YWx1ZXNBc1N0cmluZyA9IHRoaXMuc2VsZWN0ZWRJdGVtc0xhYmVsO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMudmFsdWVzQXNTdHJpbmcgPSB0aGlzLnBsYWNlaG9sZGVyIHx8IHRoaXMuZGVmYXVsdExhYmVsO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZmluZExhYmVsQnlWYWx1ZSh2YWw6IGFueSk6IHN0cmluZyB7XG4gICAgICAgIGlmICh0aGlzLmdyb3VwKSB7XG4gICAgICAgICAgICBsZXQgbGFiZWwgPSBudWxsO1xuXG4gICAgICAgICAgICBmb3IgKGxldCBpID0gMDsgaSA8IHRoaXMub3B0aW9ucy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgICAgIGxldCBzdWJPcHRpb25zID0gdGhpcy5nZXRPcHRpb25Hcm91cENoaWxkcmVuKHRoaXMub3B0aW9uc1tpXSk7XG4gICAgICAgICAgICAgICAgaWYgKHN1Yk9wdGlvbnMpIHtcbiAgICAgICAgICAgICAgICAgICAgbGFiZWwgPSB0aGlzLnNlYXJjaExhYmVsQnlWYWx1ZSh2YWwsIHN1Yk9wdGlvbnMpO1xuXG4gICAgICAgICAgICAgICAgICAgIGlmIChsYWJlbCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHJldHVybiBsYWJlbDtcbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLnNlYXJjaExhYmVsQnlWYWx1ZSh2YWwsIHRoaXMub3B0aW9ucylcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHNlYXJjaExhYmVsQnlWYWx1ZSh2YWw6IGFueSwgb3B0aW9uczogYW55W10pOiBzdHJpbmcge1xuICAgICAgICBsZXQgbGFiZWwgPSBudWxsO1xuXG4gICAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgb3B0aW9ucy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgbGV0IG9wdGlvbiA9IG9wdGlvbnNbaV07XG4gICAgICAgICAgICBsZXQgb3B0aW9uVmFsdWUgPSB0aG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YmxlZCA9IHRoaXMuaXNPcHRpb25EaXNhYmxlZChvcHRpb24pO1xuICAgICAgICAgICAgICAgICAgICBsZXQgc2VsZWN0ZWQgPSB0aGlzLmlzU2VsZWN0ZWQob3B0aW9uKTtcblxuICAgICAgICAgICAgICAgICAgICBpZiAoZGlzYWJsZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChzZWxlY3RlZClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3RlZERpc2FibGVkSXRlbXNMZW5ndGgrKztcbiAgICAgICAgICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1bnNlbGVjdGVkRGlzYWJsZWRJdGVtc0xlbmd0aCsrO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHNlbGVjdGVkKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGVjdGVkRW5hYmxlZEl0ZW1zTGVuZ3RoKys7XG4gICAgICAgICAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBmb3IgKGxldCBvcHQgb2YgdGhpcy5nZXRPcHRpb25Hcm91cENoaWxkcmVuKG9wdGlvbikpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBkaXNhYmxlZCA9IHRoaXMuaXNPcHRpb25EaXNhYmxlZChvcHQpO1xuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHNlbGVjdGVkID0gdGhpcy5pc1NlbGVjdGVkKG9wdCk7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChkaXNhYmxlZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChzZWxlY3RlZClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZWN0ZWREaXNhYmxlZEl0ZW1zTGVuZ3RoKys7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1bnNlbGVjdGVkRGlzYWJsZWRJdGVtc0xlbmd0aCsrO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHNlbGVjdGVkKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxlY3RlZEVuYWJsZWRJdGVtc0xlbmd0aCsrO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICB2aXNpYmxlT3B0aW9uc0xlbmd0aCsrO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gKHZpc2libGVPcHRpb25zTGVuZ3RoID09PSBzZWxlY3RlZERpc2FibGVkSXRlbXNMZW5ndGhcbiAgICAgICAgICAgICAgICAgICAgfHwgdmlzaWJsZU9wdGlvbnNMZW5ndGggPT09IHNlbGVjdGVkRW5hYmxlZEl0ZW1zTGVuZ3RoXG4gICAgICAgICAgICAgICAgICAgIHx8wqBzZWxlY3RlZEVuYWJsZWRJdGVtc0xlbmd0aCAmJiB2aXNpYmxlT3B0aW9uc0xlbmd0aCA9PT0gKHNlbGVjdGVkRW5hYmxlZEl0ZW1zTGVuZ3RoICsgdW5zZWxlY3RlZERpc2FibGVkSXRlbXNMZW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Ghpcy5lbCA/IHRoaXMuZWwubmF0aXZlRWxlbWVudC5vd25lckRvY3VtZW50IDogJ2RvY3VtZW50JztcblxuICAgICAgICAgICAgdGhpcy5kb2N1bWVudENsaWNrTGlzdGVuZXIgPSB0aGlzLnJlbmRlcmVyLmxpc3Rlbihkb2N1bWVudFRhcmdldCwgJ2NsaWNrJywgKGV2ZW50KSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuaXNPdXRzaWRlQ2xpY2tlZChldmVudCkpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5oaWRlKCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICB1bmJpbmREb2N1bWVudENsaWNrTGlzdGVuZXIoKSB7XG4gICAgICAgIGlmICh0aGlzLmRvY3VtZW50Q2xpY2tMaXN0ZW5lcikge1xuICAgICAgICAgICAgdGhpcy5kb2N1bWVudENsaWNrTGlzdGVuZXIoKTtcbiAgICAgICAgICAgIHRoaXMuZG9jdW1lbnRDbGlja0xpc3RlbmVyID0gbnVsbDtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGJpbmREb2N1bWVudFJlc2l6ZUxpc3RlbmVyKCkge1xuICAgICAgICB0aGlzLmRvY3VtZW50UmVzaXplTGlzdGVuZXIgPSB0aGlzLm9uV2luZG93UmVzaXplLmJpbmQodGhpcyk7XG4gICAgICAgIHdpbmRvdy5hZGRFdmVudExpc3RlbmVyKCdyZXNpemUnLCB0aGlzLmRvY3VtZW50UmVzaXplTGlzdGVuZXIpO1xuICAgIH1cblxuICAgIHVuYmluZERvY3VtZW50UmVzaXplTGlzdGVuZXIoKSB7XG4gICAgICAgIGlmICh0aGlzLmRvY3VtZW50UmVzaXplTGlzdGVuZXIpIHtcbiAgICAgICAgICAgIHdpbmRvdy5yZW1vdmVFdmVudExpc3RlbmVyKCdyZXNpemUnLCB0aGlzLmRvY3VtZW50UmVzaXplTGlzdGVuZXIpO1xuICAgICAgICAgICAgdGhpcy5kb2N1bWVudFJlc2l6ZUxpc3RlbmVyID0gbnVsbDtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG9uV2luZG93UmVzaXplKCkge1xuICAgICAgICBpZiAoIURvbUhhbmRsZXIuaXNBbmRyb2lkKCkpIHtcbiAgICAgICAgICAgIHRoaXMuaGlkZSgpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgYmluZFNjcm9sbExpc3RlbmVyKCkge1xuICAgICAgICBpZiAoIXRoaXMuc2Nyb2xsSGFuZGxlcikge1xuICAgICAgICAgICAgdGhpcy5zY3JvbGxIYW5kbGVyID0gbmV3IENvbm5lY3RlZE92ZXJsYXlTY3JvbGxIYW5kbGVyKHRoaXMuY29udGFpbmVyVmlld0NoaWxkLm5hdGl2ZUVsZW1lbnQsICgpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5vdmVybGF5VmlzaWJsZSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmhpZGUoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuc2Nyb2xsSGFuZGxlci5iaW5kU2Nyb2xsTGlzdGVuZXIoKTtcbiAgICB9XG5cbiAgICB1bmJpbmRTY3JvbGxMaXN0ZW5lcigpIHtcbiAgICAgICAgaWYgKHRoaXMuc2Nyb2xsSGFuZGxlcikge1xuICAgICAgICAgICAgdGhpcy5zY3JvbGxIYW5kbGVyLnVuYmluZFNjcm9sbExpc3RlbmVyKCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbk92ZXJsYXlIaWRlKCkge1xuICAgICAgICB0aGlzLnVuYmluZERvY3VtZW50Q2xpY2tMaXN0ZW5lcigpO1xuICAgICAgICB0aGlzLnVuYmluZERvY3VtZW50UmVzaXplTGlzdGVuZXIoKTtcbiAgICAgICAgdGhpcy51bmJpbmRTY3JvbGxMaXN0ZW5lcigpO1xuICAgICAgICB0aGlzLm92ZXJsYXkgPSBudWxsO1xuICAgICAgICB0aGlzLm9uTW9kZWxUb3VjaGVkKCk7XG4gICAgfVxuXG4gICAgbmdPbkRlc3Ryb3koKSB7XG4gICAgICAgIGlmICh0aGlzLnNjcm9sbEhhbmRsZXIpIHtcbiAgICAgICAgICAgIHRoaXMuc2Nyb2xsSGFuZGxlci5kZXN0cm95KCk7XG4gICAgICAgICAgICB0aGlzLnNjcm9sbEhhbmRsZXIgPSBudWxsO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHRoaXMub3ZlcmxheSkge1xuICAgICAgICAgICAgWkluZGV4VXRpbHMuY2xlYXIodGhpcy5vdmVybGF5KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMucmVzdG9yZU92ZXJsYXlBcHBlbmQoKTtcbiAgICAgICAgdGhpcy5vbk92ZXJsYXlIaWRlKCk7XG4gICAgfVxuXG59XG5cbkBOZ01vZHVsZSh7XG4gICAgaW1wb3J0czogW0NvbW1vbk1vZHVsZSxTaGFyZWRNb2R1bGUsU2Nyb2xsaW5nTW9kdWxlLFRvb2x0aXBNb2R1bGUsUmlwcGxlTW9kdWxlXSxcbiAgICBleHBvcnRzOiBbTXVsdGlTZWxlY3QsU2hhcmVkTW9kdWxlLFNjcm9sbGluZ01vZHVsZV0sXG4gICAgZGVjbGFyYXRpb25zOiBbTXVsdGlTZWxlY3QsTXVsdGlTZWxlY3RJdGVtXVxufSlcbmV4cG9ydCBjbGFzcyBNdWx0aVNlbGVjdE1vZHVsZSB7IH1cbiJdfQ==
Note: See TracBrowser for help on using the repository browser.