source: trip-planner-front/node_modules/primeng/esm2020/treeselect/treeselect.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: 72.3 KB
Line 
1import { NgModule, Component, EventEmitter, Output, Input, ChangeDetectionStrategy, ViewEncapsulation, ContentChildren, forwardRef, ViewChild } from '@angular/core';
2import { CommonModule } from '@angular/common';
3import { RippleModule } from 'primeng/ripple';
4import { PrimeTemplate, SharedModule, TranslationKeys } from 'primeng/api';
5import { animate, style, transition, trigger } from '@angular/animations';
6import { NG_VALUE_ACCESSOR } from '@angular/forms';
7import { ConnectedOverlayScrollHandler, DomHandler } from 'primeng/dom';
8import { TreeModule } from 'primeng/tree';
9import { ZIndexUtils } from 'primeng/utils';
10import * as i0 from "@angular/core";
11import * as i1 from "primeng/api";
12import * as i2 from "primeng/tree";
13import * as i3 from "@angular/common";
14export const TREESELECT_VALUE_ACCESSOR = {
15 provide: NG_VALUE_ACCESSOR,
16 useExisting: forwardRef(() => TreeSelect),
17 multi: true
18};
19export class TreeSelect {
20 constructor(config, cd, el, overlayService) {
21 this.config = config;
22 this.cd = cd;
23 this.el = el;
24 this.overlayService = overlayService;
25 this.type = "button";
26 this.scrollHeight = "400px";
27 this.metaKeySelection = true;
28 this.display = "comma";
29 this.selectionMode = "single";
30 this.propagateSelectionDown = true;
31 this.propagateSelectionUp = true;
32 this.showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
33 this.hideTransitionOptions = '.1s linear';
34 this.onNodeExpand = new EventEmitter();
35 this.onNodeCollapse = new EventEmitter();
36 this.onShow = new EventEmitter();
37 this.onHide = new EventEmitter();
38 this.onNodeUnselect = new EventEmitter();
39 this.onNodeSelect = new EventEmitter();
40 this.expandedNodes = [];
41 this.onModelChange = () => { };
42 this.onModelTouched = () => { };
43 }
44 get options() {
45 return this._options;
46 }
47 ;
48 set options(options) {
49 this._options = options;
50 this.updateTreeState();
51 }
52 ngOnInit() {
53 this.updateTreeState();
54 }
55 ngAfterContentInit() {
56 this.templates.forEach((item) => {
57 switch (item.getType()) {
58 case 'value':
59 this.valueTemplate = item.template;
60 break;
61 case 'header':
62 this.headerTemplate = item.template;
63 break;
64 case 'empty':
65 this.emptyTemplate = item.template;
66 break;
67 case 'footer':
68 this.footerTemplate = item.template;
69 break;
70 default:
71 this.valueTemplate = item.template;
72 break;
73 }
74 });
75 }
76 onOverlayAnimationStart(event) {
77 switch (event.toState) {
78 case 'visible':
79 this.overlayEl = event.element;
80 this.onOverlayEnter();
81 break;
82 }
83 }
84 onOverlayAnimationDone(event) {
85 switch (event.toState) {
86 case 'void':
87 this.onOverlayLeave();
88 break;
89 }
90 }
91 onSelectionChange(event) {
92 this.value = event;
93 this.onModelChange(this.value);
94 this.cd.markForCheck();
95 }
96 onClick(event) {
97 if (!this.disabled && (!this.overlayEl || !this.overlayEl.contains(event.target)) && !DomHandler.hasClass(event.target, 'p-treeselect-close')) {
98 if (this.overlayVisible) {
99 this.hide();
100 }
101 else
102 this.show();
103 this.focusInput.nativeElement.focus();
104 }
105 }
106 onKeyDown(event) {
107 switch (event.which) {
108 //down
109 case 40:
110 if (!this.overlayVisible && event.altKey) {
111 this.show();
112 event.preventDefault();
113 }
114 else if (this.overlayVisible && this.overlayEl) {
115 let focusableElements = DomHandler.getFocusableElements(this.overlayEl);
116 if (focusableElements && focusableElements.length > 0) {
117 focusableElements[0].focus();
118 }
119 event.preventDefault();
120 }
121 break;
122 //space
123 case 32:
124 if (!this.overlayVisible) {
125 this.show();
126 event.preventDefault();
127 }
128 break;
129 //enter and escape
130 case 13:
131 case 27:
132 if (this.overlayVisible) {
133 this.hide();
134 event.preventDefault();
135 }
136 break;
137 //tab
138 case 9:
139 this.hide();
140 break;
141 default:
142 break;
143 }
144 }
145 show() {
146 this.overlayVisible = true;
147 }
148 hide() {
149 this.overlayVisible = false;
150 this.cd.markForCheck();
151 }
152 onOverlayClick(event) {
153 this.overlayService.add({
154 originalEvent: event,
155 target: this.el.nativeElement
156 });
157 }
158 updateTreeState() {
159 if (this.value) {
160 let selectedNodes = this.selectionMode === "single" ? [this.value] : [...this.value];
161 this.resetExpandedNodes();
162 if (selectedNodes && this.options) {
163 this.updateTreeBranchState(null, null, selectedNodes);
164 }
165 }
166 }
167 updateTreeBranchState(node, path, selectedNodes) {
168 if (node) {
169 if (this.isSelected(node)) {
170 this.expandPath(path);
171 selectedNodes.splice(selectedNodes.indexOf(node), 1);
172 }
173 if (selectedNodes.length > 0 && node.children) {
174 for (let childNode of node.children) {
175 path.push(node);
176 this.updateTreeBranchState(childNode, path, selectedNodes);
177 }
178 }
179 }
180 else {
181 for (let childNode of this.options) {
182 this.updateTreeBranchState(childNode, [], selectedNodes);
183 }
184 }
185 }
186 expandPath(expandedNodes) {
187 for (let node of expandedNodes) {
188 node.expanded = true;
189 }
190 this.expandedNodes = [...expandedNodes];
191 }
192 nodeExpand(event) {
193 this.onNodeExpand.emit(event);
194 this.expandedNodes.push(event.node);
195 }
196 nodeCollapse(event) {
197 this.onNodeCollapse.emit(event);
198 this.expandedNodes.splice(this.expandedNodes.indexOf(event.node), 1);
199 }
200 resetExpandedNodes() {
201 for (let node of this.expandedNodes) {
202 node.expanded = false;
203 }
204 this.expandedNodes = [];
205 }
206 findSelectedNodes(node, keys, selectedNodes) {
207 if (node) {
208 if (this.isSelected(node)) {
209 selectedNodes.push(node);
210 delete keys[node.key];
211 }
212 if (Object.keys(keys).length && node.children) {
213 for (let childNode of node.children) {
214 this.findSelectedNodes(childNode, keys, selectedNodes);
215 }
216 }
217 }
218 else {
219 for (let childNode of this.options) {
220 this.findSelectedNodes(childNode, keys, selectedNodes);
221 }
222 }
223 }
224 isSelected(node) {
225 return this.findIndexInSelection(node) != -1;
226 }
227 findIndexInSelection(node) {
228 let index = -1;
229 if (this.value) {
230 if (this.selectionMode === "single") {
231 let areNodesEqual = (this.value.key && this.value.key === node.key) || this.value == node;
232 index = areNodesEqual ? 0 : -1;
233 }
234 else {
235 for (let i = 0; i < this.value.length; i++) {
236 let selectedNode = this.value[i];
237 let areNodesEqual = (selectedNode.key && selectedNode.key === node.key) || selectedNode == node;
238 if (areNodesEqual) {
239 index = i;
240 break;
241 }
242 }
243 }
244 }
245 return index;
246 }
247 onSelect(node) {
248 this.onNodeSelect.emit(node);
249 if (this.selectionMode === 'single') {
250 this.hide();
251 }
252 }
253 onUnselect(node) {
254 this.onNodeUnselect.emit(node);
255 }
256 onOverlayEnter() {
257 ZIndexUtils.set('overlay', this.overlayEl, this.config.zIndex.overlay);
258 this.appendContainer();
259 this.alignOverlay();
260 this.bindOutsideClickListener();
261 this.bindScrollListener();
262 this.bindResizeListener();
263 this.onShow.emit();
264 }
265 onOverlayLeave() {
266 this.unbindOutsideClickListener();
267 this.unbindScrollListener();
268 this.unbindResizeListener();
269 ZIndexUtils.clear(this.overlayEl);
270 this.overlayEl = null;
271 this.onHide.emit();
272 }
273 onFocus() {
274 this.focused = true;
275 }
276 onBlur() {
277 this.focused = false;
278 }
279 writeValue(value) {
280 this.value = value;
281 this.updateTreeState();
282 this.cd.markForCheck();
283 }
284 registerOnChange(fn) {
285 this.onModelChange = fn;
286 }
287 registerOnTouched(fn) {
288 this.onModelTouched = fn;
289 }
290 setDisabledState(val) {
291 this.disabled = val;
292 this.cd.markForCheck();
293 }
294 appendContainer() {
295 if (this.appendTo) {
296 if (this.appendTo === 'body')
297 document.body.appendChild(this.overlayEl);
298 else
299 document.getElementById(this.appendTo).appendChild(this.overlayEl);
300 }
301 }
302 restoreAppend() {
303 if (this.overlayEl && this.appendTo) {
304 if (this.appendTo === 'body')
305 document.body.removeChild(this.overlayEl);
306 else
307 document.getElementById(this.appendTo).removeChild(this.overlayEl);
308 }
309 }
310 alignOverlay() {
311 if (this.appendTo) {
312 DomHandler.absolutePosition(this.overlayEl, this.containerEl.nativeElement);
313 this.overlayEl.style.minWidth = DomHandler.getOuterWidth(this.containerEl.nativeElement) + 'px';
314 }
315 else {
316 DomHandler.relativePosition(this.overlayEl, this.containerEl.nativeElement);
317 }
318 }
319 bindOutsideClickListener() {
320 if (!this.outsideClickListener) {
321 this.outsideClickListener = (event) => {
322 if (this.overlayVisible && this.overlayEl && !this.containerEl.nativeElement.contains(event.target) && !this.overlayEl.contains(event.target)) {
323 this.hide();
324 }
325 };
326 document.addEventListener('click', this.outsideClickListener);
327 }
328 }
329 unbindOutsideClickListener() {
330 if (this.outsideClickListener) {
331 document.removeEventListener('click', this.outsideClickListener);
332 this.outsideClickListener = null;
333 }
334 }
335 bindScrollListener() {
336 if (!this.scrollHandler) {
337 this.scrollHandler = new ConnectedOverlayScrollHandler(this.containerEl.nativeElement, () => {
338 if (this.overlayVisible) {
339 this.hide();
340 }
341 });
342 }
343 this.scrollHandler.bindScrollListener();
344 }
345 unbindScrollListener() {
346 if (this.scrollHandler) {
347 this.scrollHandler.unbindScrollListener();
348 }
349 }
350 bindResizeListener() {
351 if (!this.resizeListener) {
352 this.resizeListener = () => {
353 if (this.overlayVisible) {
354 this.hide();
355 }
356 };
357 window.addEventListener('resize', this.resizeListener);
358 }
359 }
360 unbindResizeListener() {
361 if (this.resizeListener) {
362 window.removeEventListener('resize', this.resizeListener);
363 this.resizeListener = null;
364 }
365 }
366 ngOnDestroy() {
367 this.restoreAppend();
368 this.unbindOutsideClickListener();
369 this.unbindResizeListener();
370 if (this.scrollHandler) {
371 this.scrollHandler.destroy();
372 this.scrollHandler = null;
373 }
374 if (this.overlayEl) {
375 ZIndexUtils.clear(this.overlayEl);
376 this.overlayEl = null;
377 }
378 }
379 containerClass() {
380 return {
381 'p-treeselect p-component p-inputwrapper': true,
382 'p-treeselect-chip': this.display === 'chip',
383 'p-disabled': this.disabled,
384 'p-focus': this.focused
385 };
386 }
387 labelClass() {
388 return {
389 'p-treeselect-label': true,
390 'p-placeholder': this.label === this.placeholder,
391 'p-treeselect-label-empty': !this.placeholder && this.emptyValue
392 };
393 }
394 get emptyMessageText() {
395 return this.emptyMessage || this.config.getTranslation(TranslationKeys.EMPTY_MESSAGE);
396 }
397 get emptyValue() {
398 return !this.value || Object.keys(this.value).length === 0;
399 }
400 get emptyOptions() {
401 return !this.options || this.options.length === 0;
402 }
403 get label() {
404 let value = this.value || [];
405 return value.length ? value.map(node => node.label).join(', ') : (this.selectionMode === "single" && this.value) ? value.label : this.placeholder;
406 }
407}
408TreeSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TreeSelect, deps: [{ token: i1.PrimeNGConfig }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
409TreeSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: TreeSelect, selector: "p-treeSelect", inputs: { type: "type", inputId: "inputId", scrollHeight: "scrollHeight", disabled: "disabled", metaKeySelection: "metaKeySelection", display: "display", selectionMode: "selectionMode", tabindex: "tabindex", ariaLabelledBy: "ariaLabelledBy", placeholder: "placeholder", panelClass: "panelClass", emptyMessage: "emptyMessage", appendTo: "appendTo", propagateSelectionDown: "propagateSelectionDown", propagateSelectionUp: "propagateSelectionUp", options: "options", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions" }, outputs: { onNodeExpand: "onNodeExpand", onNodeCollapse: "onNodeCollapse", onShow: "onShow", onHide: "onHide", onNodeUnselect: "onNodeUnselect", onNodeSelect: "onNodeSelect" }, host: { properties: { "class.p-inputwrapper-filled": "!emptyValue", "class.p-inputwrapper-focus": "focused || overlayVisible" }, classAttribute: "p-element p-inputwrapper" }, providers: [TREESELECT_VALUE_ACCESSOR], queries: [{ propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "containerEl", first: true, predicate: ["container"], descendants: true }, { propertyName: "focusInput", first: true, predicate: ["focusInput"], descendants: true }], ngImport: i0, template: `
410 <div #container [ngClass]="containerClass()" (click)="onClick($event)">
411 <div class="p-hidden-accessible">
412 <input #focusInput type="text" role="listbox" [attr.id]="inputId" readonly [disabled]="disabled" (focus)="onFocus()" (blur)="onBlur()" (keydown)="onKeyDown($event)" [attr.tabindex]="tabindex"
413 aria-haspopup="true" [attr.aria-expanded]="overlayVisible" [attr.aria-labelledby]="ariaLabelledBy"/>
414 </div>
415 <div class="p-treeselect-label-container">
416 <div [ngClass]="labelClass()">
417 <ng-container *ngIf="valueTemplate;else defaultValueTemplate">
418 <ng-container *ngTemplateOutlet="valueTemplate; context: {$implicit: value, placeholder: placeholder}"></ng-container>
419 </ng-container>
420 <ng-template #defaultValueTemplate>
421 <ng-container *ngIf="display === 'comma';else chipsValueTemplate">
422 {{label || 'empty'}}
423 </ng-container>
424 <ng-template #chipsValueTemplate>
425 <div *ngFor="let node of value" class="p-treeselect-token">
426 <span class="p-treeselect-token-label">{{node.label}}</span>
427 </div>
428 <ng-container *ngIf="emptyValue">{{placeholder || 'empty'}}</ng-container>
429 </ng-template>
430 </ng-template>
431 </div>
432 </div>
433 <div class="p-treeselect-trigger">
434 <span class="p-treeselect-trigger-icon pi pi-chevron-down"></span>
435 </div>
436
437 <div #overlayRef class="p-treeselect-panel p-component" *ngIf="overlayVisible" (click)="onOverlayClick($event)"
438 [@overlayAnimation]="{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}" (@overlayAnimation.start)="onOverlayAnimationStart($event)" (@overlayAnimation.done)="onOverlayAnimationDone($event)">
439 <ng-container *ngTemplateOutlet="headerTemplate; context: {$implicit: value, options: options}"></ng-container>
440 <div class="p-treeselect-items-wrapper" [ngStyle]="{'max-height': scrollHeight}">
441 <p-tree [value]="options" [propagateSelectionDown]="propagateSelectionDown" [propagateSelectionUp]="propagateSelectionUp" [selectionMode]="selectionMode" (selectionChange)="onSelectionChange($event)" [selection]="value"
442 [metaKeySelection]="metaKeySelection" (onNodeExpand)="nodeExpand($event)" (onNodeCollapse)="nodeCollapse($event)"
443 (onNodeSelect)="onSelect($event)" (onNodeUnselect)="onUnselect($event)"></p-tree>
444 <div *ngIf="emptyOptions" class="p-treeselect-empty-message">
445 <ng-container *ngIf="!emptyTemplate; else empty">
446 {{emptyMessageText}}
447 </ng-container>
448 <ng-container *ngTemplateOutlet="emptyTemplate;"></ng-container>
449 </div>
450 </div>
451 <ng-container *ngTemplateOutlet="footerTemplate; context: {$implicit: value, options: options}"></ng-container>
452 </div>
453 </div>
454 `, isInline: true, styles: [".p-treeselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;-ms-user-select:none;user-select:none}.p-treeselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-treeselect-label-container{overflow:hidden;flex:1 1 auto;cursor:pointer}.p-treeselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-treeselect-label-empty{overflow:hidden;visibility:hidden}.p-treeselect-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-treeselect .p-treeselect-panel{min-width:100%}.p-treeselect-panel{position:absolute;top:0;left:0}.p-treeselect-items-wrapper{overflow:auto}.p-fluid .p-treeselect{display:flex}\n"], components: [{ type: i2.Tree, selector: "p-tree", inputs: ["value", "selectionMode", "selection", "style", "styleClass", "contextMenu", "layout", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterBy", "filterMode", "filterPlaceholder", "filterLocale", "scrollHeight", "virtualScroll", "virtualNodeHeight", "minBufferPx", "maxBufferPx", "indentation", "trackBy"], outputs: ["selectionChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDrop", "onFilter"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], animations: [
455 trigger('overlayAnimation', [
456 transition(':enter', [
457 style({ opacity: 0, transform: 'scaleY(0.8)' }),
458 animate('{{showTransitionParams}}')
459 ]),
460 transition(':leave', [
461 animate('{{hideTransitionParams}}', style({ opacity: 0 }))
462 ])
463 ])
464 ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
465i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TreeSelect, decorators: [{
466 type: Component,
467 args: [{ selector: 'p-treeSelect', template: `
468 <div #container [ngClass]="containerClass()" (click)="onClick($event)">
469 <div class="p-hidden-accessible">
470 <input #focusInput type="text" role="listbox" [attr.id]="inputId" readonly [disabled]="disabled" (focus)="onFocus()" (blur)="onBlur()" (keydown)="onKeyDown($event)" [attr.tabindex]="tabindex"
471 aria-haspopup="true" [attr.aria-expanded]="overlayVisible" [attr.aria-labelledby]="ariaLabelledBy"/>
472 </div>
473 <div class="p-treeselect-label-container">
474 <div [ngClass]="labelClass()">
475 <ng-container *ngIf="valueTemplate;else defaultValueTemplate">
476 <ng-container *ngTemplateOutlet="valueTemplate; context: {$implicit: value, placeholder: placeholder}"></ng-container>
477 </ng-container>
478 <ng-template #defaultValueTemplate>
479 <ng-container *ngIf="display === 'comma';else chipsValueTemplate">
480 {{label || 'empty'}}
481 </ng-container>
482 <ng-template #chipsValueTemplate>
483 <div *ngFor="let node of value" class="p-treeselect-token">
484 <span class="p-treeselect-token-label">{{node.label}}</span>
485 </div>
486 <ng-container *ngIf="emptyValue">{{placeholder || 'empty'}}</ng-container>
487 </ng-template>
488 </ng-template>
489 </div>
490 </div>
491 <div class="p-treeselect-trigger">
492 <span class="p-treeselect-trigger-icon pi pi-chevron-down"></span>
493 </div>
494
495 <div #overlayRef class="p-treeselect-panel p-component" *ngIf="overlayVisible" (click)="onOverlayClick($event)"
496 [@overlayAnimation]="{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}" (@overlayAnimation.start)="onOverlayAnimationStart($event)" (@overlayAnimation.done)="onOverlayAnimationDone($event)">
497 <ng-container *ngTemplateOutlet="headerTemplate; context: {$implicit: value, options: options}"></ng-container>
498 <div class="p-treeselect-items-wrapper" [ngStyle]="{'max-height': scrollHeight}">
499 <p-tree [value]="options" [propagateSelectionDown]="propagateSelectionDown" [propagateSelectionUp]="propagateSelectionUp" [selectionMode]="selectionMode" (selectionChange)="onSelectionChange($event)" [selection]="value"
500 [metaKeySelection]="metaKeySelection" (onNodeExpand)="nodeExpand($event)" (onNodeCollapse)="nodeCollapse($event)"
501 (onNodeSelect)="onSelect($event)" (onNodeUnselect)="onUnselect($event)"></p-tree>
502 <div *ngIf="emptyOptions" class="p-treeselect-empty-message">
503 <ng-container *ngIf="!emptyTemplate; else empty">
504 {{emptyMessageText}}
505 </ng-container>
506 <ng-container *ngTemplateOutlet="emptyTemplate;"></ng-container>
507 </div>
508 </div>
509 <ng-container *ngTemplateOutlet="footerTemplate; context: {$implicit: value, options: options}"></ng-container>
510 </div>
511 </div>
512 `, animations: [
513 trigger('overlayAnimation', [
514 transition(':enter', [
515 style({ opacity: 0, transform: 'scaleY(0.8)' }),
516 animate('{{showTransitionParams}}')
517 ]),
518 transition(':leave', [
519 animate('{{hideTransitionParams}}', style({ opacity: 0 }))
520 ])
521 ])
522 ], host: {
523 'class': 'p-element p-inputwrapper',
524 '[class.p-inputwrapper-filled]': '!emptyValue',
525 '[class.p-inputwrapper-focus]': 'focused || overlayVisible'
526 }, changeDetection: ChangeDetectionStrategy.OnPush, providers: [TREESELECT_VALUE_ACCESSOR], encapsulation: ViewEncapsulation.None, styles: [".p-treeselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;-ms-user-select:none;user-select:none}.p-treeselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-treeselect-label-container{overflow:hidden;flex:1 1 auto;cursor:pointer}.p-treeselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-treeselect-label-empty{overflow:hidden;visibility:hidden}.p-treeselect-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-treeselect .p-treeselect-panel{min-width:100%}.p-treeselect-panel{position:absolute;top:0;left:0}.p-treeselect-items-wrapper{overflow:auto}.p-fluid .p-treeselect{display:flex}\n"] }]
527 }], ctorParameters: function () { return [{ type: i1.PrimeNGConfig }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.OverlayService }]; }, propDecorators: { type: [{
528 type: Input
529 }], inputId: [{
530 type: Input
531 }], scrollHeight: [{
532 type: Input
533 }], disabled: [{
534 type: Input
535 }], metaKeySelection: [{
536 type: Input
537 }], display: [{
538 type: Input
539 }], selectionMode: [{
540 type: Input
541 }], tabindex: [{
542 type: Input
543 }], ariaLabelledBy: [{
544 type: Input
545 }], placeholder: [{
546 type: Input
547 }], panelClass: [{
548 type: Input
549 }], emptyMessage: [{
550 type: Input
551 }], appendTo: [{
552 type: Input
553 }], propagateSelectionDown: [{
554 type: Input
555 }], propagateSelectionUp: [{
556 type: Input
557 }], options: [{
558 type: Input
559 }], showTransitionOptions: [{
560 type: Input
561 }], hideTransitionOptions: [{
562 type: Input
563 }], templates: [{
564 type: ContentChildren,
565 args: [PrimeTemplate]
566 }], containerEl: [{
567 type: ViewChild,
568 args: ['container']
569 }], focusInput: [{
570 type: ViewChild,
571 args: ['focusInput']
572 }], onNodeExpand: [{
573 type: Output
574 }], onNodeCollapse: [{
575 type: Output
576 }], onShow: [{
577 type: Output
578 }], onHide: [{
579 type: Output
580 }], onNodeUnselect: [{
581 type: Output
582 }], onNodeSelect: [{
583 type: Output
584 }] } });
585export class TreeSelectModule {
586}
587TreeSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TreeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
588TreeSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TreeSelectModule, declarations: [TreeSelect], imports: [CommonModule, RippleModule, SharedModule, TreeModule], exports: [TreeSelect, SharedModule, TreeModule] });
589TreeSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TreeSelectModule, imports: [[CommonModule, RippleModule, SharedModule, TreeModule], SharedModule, TreeModule] });
590i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: TreeSelectModule, decorators: [{
591 type: NgModule,
592 args: [{
593 imports: [CommonModule, RippleModule, SharedModule, TreeModule],
594 exports: [TreeSelect, SharedModule, TreeModule],
595 declarations: [TreeSelect]
596 }]
597 }] });
598//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZXNlbGVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy90cmVlc2VsZWN0L3RyZWVzZWxlY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxTQUFTLEVBQUMsWUFBWSxFQUFDLE1BQU0sRUFBQyxLQUFLLEVBQUMsdUJBQXVCLEVBQUUsaUJBQWlCLEVBQUUsZUFBZSxFQUE0QyxVQUFVLEVBQXFCLFNBQVMsRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUN2TyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGdCQUF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XNwbGF5ID09PSAnY29tbWEnO2Vsc2UgY2hpcHNWYWx1ZVRlbXBsYXRlXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICB7e2xhYmVsIHx8ICdlbXB0eSd9fVxuICAgICAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgPG5nLXRlbXBsYXRlICNjaGlwc1ZhbHVlVGVtcGxhdGU+XG4gICAgICAgICAgICAgICAgICAgICAgICA8ZGl2ICpuZ0Zvcj1cImxldCBub2RlIG9mIHZhbHVlXCIgY2xhc3M9XCJwLXRyZWVzZWxlY3QtdG9rZW5cIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cInAtdHJlZXNlbGVjdC10b2tlbi1sYWJlbFwiPnt7bm9kZS5sYWJlbH19PC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiZW1wdHlWYWx1ZVwiPnt7cGxhY2Vob2xkZXIgfHwgJ2VtcHR5J319PC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgICAgIDwvbmctdGVtcGxhdGU+XG4gICAgICAgICAgICAgICAgPC9uZy10ZW1wbGF0ZT5cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICA8L2Rpdj5cbiAgICAgICAgPGRpdiBjbGFzcz1cInAtdHJlZXNlbGVjdC10cmlnZ2VyXCI+XG4gICAgICAgICAgICA8c3BhbiBjbGFzcz1cInAtdHJlZXNlbGVjdC10cmlnZ2VyLWljb24gcGkgcGktY2hldnJvbi1kb3duXCI+PC9zcGFuPlxuICAgICAgICA8L2Rpdj5cblxuICAgICAgICA8ZGl2ICNvdmVybGF5UmVmIGNsYXNzPVwicC10cmVlc2VsZWN0LXBhbmVsIHAtY29tcG9uZW50XCIgKm5nSWY9XCJvdmVybGF5VmlzaWJsZVwiIChjbGljayk9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gICAgICAgICAgICAgICB0aGlzLmhlYWRlclRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UgJ2VtcHR5JzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5lbXB0eVRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UgJ2Zvb3Rlcic6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZm9vdGVyVGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy52YWx1ZVRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgb25PdmVybGF5QW5pbWF0aW9uU3RhcnQoZXZlbnQ6IEFuaW1hdGlvbkV2ZW50KSB7XG4gICAgICAgIHN3aXRjaCAoZXZlbnQudG9TdGF0ZSkge1xuICAgICAgICAgICAgY2FzZSAndmlzaWJsZSc6XG4gICAgICAgICAgICAgICAgdGhpcy5vdmVybGF5RWwgPSBldmVudC5lbGVtZW50O1xuICAgICAgICAgICAgICAgIHRoaXMub25PdmVybGF5RW50ZXIoKTtcbiAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25PdmVybGF5QW5pbWF0aW9uRG9uZShldmVudDogQW5pbWF0aW9uRXZlbnQpIHtcbiAgICAgICAgc3dpdGNoIChldmVudC50b1N0YXRlKSB7XG4gICAgICAgICAgICBjYXNlICd2b2lkJzpcbiAgICAgICAgICAgICAgICB0aGlzLm9uT3ZlcmxheUxlYXZlKCk7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG9uU2VsZWN0aW9uQ2hhbmdlKGV2ZW50KSB7XG4gICAgICAgIHRoaXMudmFsdWUgPSBldmVudDtcbiAgICAgICAgdGhpcy5vbk1vZGVsQ2hhbmdlKHRoaXMudmFsdWUpO1xuICAgICAgICB0aGlzLmNkLm1hcmtGb3JDaGVjaygpO1xuICAgIH1cblxuICAgIG9uQ2xpY2soZXZlbnQpIHtcbiAgICAgICAgaWYgKCF0aGlzLmRpc2FibGVkICYmICghdGhpcy5vdmVybGF5RWwgfHwgIXRoaXMub3ZlcmxheUVsLmNvbnRhaW5zKGV2ZW50LnRhcmdldCkpICYmICFEb21IYW5kbGVyLmhhc0NsYXNzKGV2ZW50LnRhcmdldCwgJ3AtdHJlZXNlbGVjdC1jbG9zZScpKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5vdmVybGF5VmlzaWJsZSl7XG4gICAgICAgICAgICAgICAgdGhpcy5oaWRlKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgdGhpcy5zaG93KCk7XG5cbiAgICAgICAgICAgIHRoaXMuZm9jdXNJbnB1dC5uYXRpdmVFbGVtZW50LmZvY3VzKCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbktleURvd24oZXZlbnQpIHtcbiAgICAgICAgc3dpdGNoKGV2ZW50LndoaWNoKSB7XG4gICAgICAgICAgICAvL2Rvd25cbiAgICAgICAgICAgIGNhc2UgNDA6XG4gICAgICAgICAgICAgICAgaWYgKCF0aGlzLm92ZXJsYXlWaXNpYmxlICYmIGV2ZW50LmFsdEtleSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNob3coKTtcbiAgICAgICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZWxzZSBpZiAodGhpcy5vdmVybGF5VmlzaWJsZSAmJiB0aGlzLm92ZXJsYXlFbCkge1xuICAgICAgICAgICAgICAgICAgICBsZXQgZm9jdXNhYmxlRWxlbWVudHMgPSBEb21IYW5kbGVyLmdldEZvY3VzYWJsZUVsZW1lbnRzKHRoaXMub3ZlcmxheUVsKTtcblxuICAgICAgICAgICAgICAgICAgICBpZiAoZm9jdXNhYmxlRWxlbWVudHMgJiYgZm9jdXNhYmxlRWxlbWVudHMubGVuZ3RoID4gMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgZm9jdXNhYmxlRWxlbWVudHNbMF0uZm9jdXMoKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIC8vc3BhY2VcbiAgICAgICAgICAgIGNhc2UgMzI6XG4gICAgICAgICAgICAgICAgaWYgKCF0aGlzLm92ZXJsYXlWaXNpYmxlKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2hvdygpO1xuICAgICAgICAgICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAvL2VudGVyIGFuZCBlc2NhcGVcbiAgICAgICAgICAgIGNhc2UgMTM6XG4gICAgICAgICAgICBjYXNlIDI3OlxuICAgICAgICAgICAgICAgIGlmICh0aGlzLm92ZXJsYXlWaXNpYmxlKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaGlkZSgpO1xuICAgICAgICAgICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAvL3RhYlxuICAgICAgICAgICAgY2FzZSA5OlxuICAgICAgICAgICAgICAgIHRoaXMuaGlkZSgpO1xuICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHNob3coKSB7XG4gICAgICAgIHRoaXMub3ZlcmxheVZpc2libGUgPSB0cnVlO1xuICAgIH1cblxuICAgIGhpZGUoKSB7XG4gICAgICAgIHRoaXMub3ZlcmxheVZpc2libGUgPSBmYWxzZTtcbiAgICAgICAgdGhpcy5jZC5tYXJrRm9yQ2hlY2soKTtcbiAgICB9XG5cbiAgICBvbk92ZXJsYXlDbGljayhldmVudCkge1xuICAgICAgICB0aGlzLm92ZXJsYXlTZXJ2aWNlLmFkZCh7XG4gICAgICAgICAgICBvcmlnaW5hbEV2ZW50OiBldmVudCxcbiAgICAgICAgICAgIHRhcmdldDogdGhpcy5lbC5uYXRpdmVFbGVtZW50XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHVwZGF0ZVRyZWVTdGF0ZSgpIHtcbiAgICAgICAgaWYgKHRoaXMudmFsdWUpIHtcbiAgICAgICAgICAgIGxldCBzZWxlY3RlZE5vZGVzID0gdGhpcy5zZWxlY3Rpb25Nb2RlID09PSBcInNpbmdsZVwiID8gW3RoaXMudmFsdWVdIDogWy4uLnRoaXMudmFsdWVdO1xuICAgICAgICAgICAgdGhpcy5yZXNldEV4cGFuZGVkTm9kZXMoKTtcbiAgICAgICAgICAgIGlmIChzZWxlY3RlZE5vZGVzICYmIHRoaXMub3B0aW9ucykge1xuICAgICAgICAgICAgICAgIHRoaXMudXBkYXRlVHJlZUJyYW5jaFN0YXRlKG51bGwsIG51bGwsIHNlbGVjdGVkTm9kZXMpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgdXBkYXRlVHJlZUJyYW5jaFN0YXRlKG5vZGUsIHBhdGgsIHNlbGVjdGVkTm9kZXMpIHtcbiAgICAgICAgaWYgKG5vZGUpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLm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09IG5vZGUua2V5KSB8fCBzZWxlY3RlZE5vZGUgPT0gbm9kZTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGFyZU5vZGVzRXF1YWwpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGluZGV4ID0gaTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGluZGV4O1xuICAgIH1cblxuICAgIG9uU2VsZWN0KG5vZGUpIHtcbiAgICAgICAgdGhpcy5vbk5vZGVTZWxlY3QuZW1pdChub2RlKTtcblxuICAgICAgICBpZiAodGhpcy5zZWxlY3Rpb25Nb2RlID09PSAnc2luZ2xlJykge1xuICAgICAgICAgICAgdGhpcy5oaWRlKCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvblVuc2VsZWN0KG5vZGUpIHtcbiAgICAgICAgdGhpcy5vbk5vZGVVbnNlbGVjdC5lbWl0KG5vZGUpO1xuICAgIH1cblxuICAgIG9uT3ZlcmxheUVudGVyKCkge1xuICAgICAgICBaSW5kZXhVdGlscy5zZXQoJ292ZXJsYXknLCB0aGlzLm92ZXJsYXlFbCwgdGhpcy5jb25maWcuekluZGV4Lm92ZXJsYXkpO1xuICAgICAgICB0aGlzLmFwcGVuZENvbnRhaW5lcigpO1xuICAgICAgICB0aGlzLmFsaWduT3ZlcmxheSgpO1xuICAgICAgICB0aGlzLmJpbmRPdXRzaWRlQ2xpY2tMaXN0ZW5lcigpO1xuICAgICAgICB0aGlzLmJpbmRTY3JvbGxMaXN0ZW5lcigpO1xuICAgICAgICB0aGlzLmJpbmRSZXNpemVMaXN0ZW5lcigpO1xuICAgICAgICB0aGlzLm9uU2hvdy5lbWl0KCk7XG4gICAgfVxuXG4gICAgb25PdmVybGF5TGVhdmUoKSB7XG4gICAgICAgIHRoaXMudW5iaW5kT3V0c2lkZU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FuZGxlciA9IG5ldyBDb25uZWN0ZWRPdmVybGF5U2Nyb2xsSGFuZGxlcih0aGlzLmNvbnRhaW5lckVsLm5hdGl2ZUVsZW1lbnQsICgpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5vdmVybGF5VmlzaWJsZSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmhpZGUoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuc2Nyb2xsSGFuZGxlci5iaW5kU2Nyb2xsTGlzdGVuZXIoKTtcbiAgICB9XG5cbiAgICB1bmJpbmRTY3JvbGxMaXN0ZW5lcigpIHtcbiAgICAgICAgaWYgKHRoaXMuc2Nyb2xsSGFuZGxlcikge1xuICAgICAgICAgICAgdGhpcy5zY3JvbGxIYW5kbGVyLnVuYmluZFNjcm9sbExpc3RlbmVyKCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBiaW5kUmVzaXplTGlzdGVuZXIoKSB7XG4gICAgICAgIGlmICghdGhpcy5yZXNpemVMaXN0ZW5lcikge1xuICAgICAgICAgICAgdGhpcy5yZXNpemVMaXN0ZW5lciA9ICgpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5vdmVybGF5VmlzaWJsZSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmhpZGUoKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgd2luZG93LmFkZEV2ZW50TGlzdGVuZXIoJ3Jlc2l6ZScsIHRoaXMucmVzaXplTGlzdGVuZXIpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgdW5iaW5kUmVzaXplTGlzdGVuZXIoKSB7XG4gICAgICAgIGlmICh0aGlzLnJlc2l6ZUxpc3RlbmVyKSB7XG4gICAgICAgICAgICB3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigncmVzaXplJywgdGhpcy5yZXNpemVMaXN0ZW5lcik7XG4gICAgICAgICAgICB0aGlzLnJlc2l6ZUxpc3RlbmVyID0gbnVsbDtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG5nT25EZXN0cm95KCkge1xuICAgICAgICB0aGlzLnJlc3RvcmVBcHBlbmQoKTtcbiAgICAgICAgdGhpcy51bmJpbmRPdXRzaWRlQ2xpY2tMaXN0ZW5lcigpO1xuICAgICAgICB0aGlzLnVuYmluZFJlc2l6ZUxpc3RlbmVyKCk7XG5cbiAgICAgICAgaWYgKHRoaXMuc2Nyb2xsSGFuZGxlcikge1xuICAgICAgICAgICAgdGhpcy5zY3JvbGxIYW5kbGVyLmRlc3Ryb3koKTtcbiAgICAgICAgICAgIHRoaXMuc2Nyb2xsSGFuZGxlciA9IG51bGw7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5vdmVybGF5RWwpIHtcbiAgICAgICAgICAgIFpJbmRleFV0aWxzLmNsZWFyKHRoaXMub3ZlcmxheUVsKTtcbiAgICAgICAgICAgIHRoaXMub3ZlcmxheUVsID0gbnVsbDtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGNvbnRhaW5lckNsYXNzKCkge1xuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgJ3AtdHJlZXNlbGVjdCBwLWNvbXBvbmVudCBwLWlucHV0d3JhcHBlcic6IHRydWUsXG4gICAgICAgICAgICAncC10cmVlc2VsZWN0LWNoaXAnOiB0aGlzLmRpc3BsYXkgPT09ICdjaGlwJyxcbiAgICAgICAgICAgICdwLWRpc2FibGVkJzogdGhpcy5kaXNhYmxlZCxcbiAgICAgICAgICAgICdwLWZvY3VzJzogdGhpcy5mb2N1c2VkXG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBsYWJlbENsYXNzKCkge1xuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgJ3AtdHJlZXNlbGVjdC1sYWJlbCc6IHRydWUsXG4gICAgICAgICAgICAncC1wbGFjZWhvbGRlcic6IHRo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