1 | {"version":3,"file":"primeng-cascadeselect.mjs","sources":["../../src/app/components/cascadeselect/cascadeselect.ts","../../src/app/components/cascadeselect/primeng-cascadeselect.ts"],"sourcesContent":["import { NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, TemplateRef, ContentChildren, QueryList, ElementRef, Output, EventEmitter, ViewChild, forwardRef, ChangeDetectorRef, Renderer2, OnDestroy, OnInit, AfterContentInit, Inject} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SharedModule, PrimeTemplate, PrimeNGConfig, OverlayService } from 'primeng/api';\nimport { ObjectUtils, ZIndexUtils } from 'primeng/utils';\nimport { DomHandler } from 'primeng/dom';\nimport { trigger,style,transition,animate,AnimationEvent} from '@angular/animations';\nimport { ConnectedOverlayScrollHandler } from 'primeng/dom';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { RippleModule } from 'primeng/ripple';\n\nexport const CASCADESELECT_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => CascadeSelect),\n multi: true\n};\n\n@Component({\n selector: 'p-cascadeSelectSub',\n template: `\n <ul class=\"p-cascadeselect-panel p-cascadeselect-items\" [ngClass]=\"{'p-cascadeselect-panel-root': root}\" role=\"listbox\" aria-orientation=\"horizontal\">\n <ng-template ngFor let-option [ngForOf]=\"options\" let-i=\"index\">\n <li [ngClass]=\"getItemClass(option)\" role=\"none\">\n <div class=\"p-cascadeselect-item-content\" (click)=\"onOptionClick($event, option)\" tabindex=\"0\" (keydown)=\"onKeyDown($event, option, i)\" pRipple>\n <ng-container *ngIf=\"optionTemplate;else defaultOptionTemplate\">\n <ng-container *ngTemplateOutlet=\"optionTemplate; context: {$implicit: option}\"></ng-container>\n </ng-container>\n <ng-template #defaultOptionTemplate>\n <span class=\"p-cascadeselect-item-text\">{{getOptionLabelToRender(option)}}</span>\n </ng-template>\n <span class=\"p-cascadeselect-group-icon pi pi-angle-right\" *ngIf=\"isOptionGroup(option)\"></span>\n </div>\n <p-cascadeSelectSub *ngIf=\"isOptionGroup(option) && isOptionActive(option)\" class=\"p-cascadeselect-sublist\" [selectionPath]=\"selectionPath\" [options]=\"getOptionGroupChildren(option)\"\n [optionLabel]=\"optionLabel\" [optionValue]=\"optionValue\" [level]=\"level + 1\" (onSelect)=\"onOptionSelect($event)\" (onOptionGroupSelect)=\"onOptionGroupSelect()\"\n [optionGroupLabel]=\"optionGroupLabel\" [optionGroupChildren]=\"optionGroupChildren\" [parentActive]=\"isOptionActive(option)\" [dirty]=\"dirty\" [optionTemplate]=\"optionTemplate\">\n </p-cascadeSelectSub>\n </li>\n </ng-template>\n </ul>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class CascadeSelectSub implements OnInit {\n\n @Input() selectionPath: any[];\n\n @Input() options: any[];\n\n @Input() optionGroupChildren: any[];\n\n @Input() optionTemplate: TemplateRef<any>;\n\n @Input() level: number = 0;\n\n @Input() optionLabel: string;\n\n @Input() optionValue: string;\n\n @Input() optionGroupLabel: string;\n\n @Input() dirty: boolean;\n\n @Input() root: boolean;\n\n @Output() onSelect: EventEmitter<any> = new EventEmitter();\n\n @Output() onGroupSelect: EventEmitter<any> = new EventEmitter();\n\n @Input() get parentActive(): boolean {\n return this._parentActive;\n };\n set parentActive(val) {\n if (!val) {\n this.activeOption = null;\n }\n\n this._parentActive = val;\n }\n\n activeOption: any = null;\n\n _parentActive: boolean;\n\n cascadeSelect: CascadeSelect;\n\n constructor(@Inject(forwardRef(() => CascadeSelect)) cascadeSelect, private el: ElementRef) {\n this.cascadeSelect = cascadeSelect as CascadeSelect;\n }\n\n ngOnInit() {\n if (this.selectionPath && this.options && !this.dirty) {\n for (let option of this.options) {\n if (this.selectionPath.includes(option)) {\n this.activeOption = option;\n break;\n }\n }\n }\n\n if (!this.root) {\n this.position();\n }\n }\n\n onOptionClick(event, option) {\n if (this.isOptionGroup(option)) {\n this.activeOption = (this.activeOption === option) ? null : option;\n\n this.onGroupSelect.emit({\n originalEvent: event,\n value: option\n });\n }\n else {\n this.onSelect.emit({\n originalEvent: event,\n value: this.getOptionValue(option)\n });\n }\n }\n\n onOptionSelect(event) {\n this.onSelect.emit(event);\n }\n\n onOptionGroupSelect(event) {\n this.onGroupSelect.emit(event);\n }\n\n getOptionLabel(option) {\n return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option;\n }\n\n getOptionValue(option) {\n return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : option;\n }\n\n getOptionGroupLabel(optionGroup) {\n return this.optionGroupLabel ? ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel) : null;\n }\n\n getOptionGroupChildren(optionGroup) {\n return ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren[this.level]);\n }\n\n isOptionGroup(option) {\n return Object.prototype.hasOwnProperty.call(option, this.optionGroupChildren[this.level]);\n }\n\n getOptionLabelToRender(option) {\n return this.isOptionGroup(option) ? this.getOptionGroupLabel(option) : this.getOptionLabel(option);\n }\n\n getItemClass(option) {\n return {\n 'p-cascadeselect-item': true,\n 'p-cascadeselect-item-group': this.isOptionGroup(option),\n 'p-cascadeselect-item-active p-highlight': this.isOptionActive(option)\n }\n }\n\n isOptionActive(option) {\n return this.activeOption === option;\n }\n\n onKeyDown(event, option, index) {\n let listItem = event.currentTarget.parentElement;\n\n switch (event.key) {\n case 'Down':\n case 'ArrowDown':\n var nextItem = this.el.nativeElement.children[0].children[index + 1];\n if (nextItem) {\n nextItem.children[0].focus();\n }\n\n event.preventDefault();\n break;\n\n case 'Up':\n case 'ArrowUp':\n var prevItem = this.el.nativeElement.children[0].children[index - 1];\n if (prevItem) {\n prevItem.children[0].focus();\n }\n\n event.preventDefault();\n break;\n\n case 'Right':\n case 'ArrowRight':\n if (this.isOptionGroup(option)) {\n if (this.isOptionActive(option)) {\n listItem.children[1].children[0].children[0].children[0].focus();\n }\n else {\n this.activeOption = option;\n }\n }\n\n event.preventDefault();\n break;\n\n case 'Left':\n case 'ArrowLeft':\n this.activeOption = null;\n\n var parentList = listItem.parentElement.parentElement.parentElement;\n if (parentList) {\n parentList.children[0].focus();\n }\n\n event.preventDefault();\n break;\n\n case 'Enter':\n this.onOptionClick(event, option);\n\n event.preventDefault();\n break;\n\n case 'Tab':\n case 'Escape':\n this.cascadeSelect.hide();\n\n event.preventDefault();\n break;\n }\n }\n\n position() {\n const parentItem = this.el.nativeElement.parentElement;\n const containerOffset = DomHandler.getOffset(parentItem);\n const viewport = DomHandler.getViewport();\n const sublistWidth = this.el.nativeElement.children[0].offsetParent ? this.el.nativeElement.children[0].offsetWidth : DomHandler.getHiddenElementOuterWidth(this.el.nativeElement.children[0]);\n const itemOuterWidth = DomHandler.getOuterWidth(parentItem.children[0]);\n\n if ((parseInt(containerOffset.left, 10) + itemOuterWidth + sublistWidth) > (viewport.width - DomHandler.calculateScrollbarWidth())) {\n this.el.nativeElement.children[0].style.left = '-200%';\n }\n }\n}\n\n@Component({\n selector: 'p-cascadeSelect',\n template: `\n <div #container [ngClass]=\"containerClass()\" [class]=\"styleClass\" [ngStyle]=\"style\" (click)=\"onClick($event)\">\n <div class=\"p-hidden-accessible\">\n <input #focusInput type=\"text\" [attr.id]=\"inputId\" readonly [disabled]=\"disabled\" (focus)=\"onFocus()\" (blur)=\"onBlur()\" (keydown)=\"onKeyDown($event)\" [attr.tabindex]=\"tabindex\"\n aria-haspopup=\"listbox\" [attr.aria-expanded]=\"overlayVisible\" [attr.aria-labelledby]=\"ariaLabelledBy\">\n </div>\n <span [ngClass]=\"labelClass()\">\n <ng-container *ngIf=\"valueTemplate;else defaultValueTemplate\">\n <ng-container *ngTemplateOutlet=\"valueTemplate; context: {$implicit: value, placeholder: placeholder}\"></ng-container>\n </ng-container>\n <ng-template #defaultValueTemplate>\n {{label()}}\n </ng-template>\n </span>\n <div class=\"p-cascadeselect-trigger\" role=\"button\" aria-haspopup=\"listbox\" [attr.aria-expanded]=\"overlayVisible\">\n <span class=\"p-cascadeselect-trigger-icon pi pi-chevron-down\"></span>\n </div>\n <div class=\"p-cascadeselect-panel p-component\" *ngIf=\"overlayVisible\" (click)=\"onOverlayClick($event)\"\n [@overlayAnimation]=\"{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}\" (@overlayAnimation.start)=\"onOverlayAnimationStart($event)\" (@overlayAnimation.done)=\"onOverlayAnimationDone($event)\">\n <div class=\"p-cascadeselect-items-wrapper\">\n <p-cascadeSelectSub [options]=\"options\" [selectionPath]=\"selectionPath\" class=\"p-cascadeselect-items\"\n [optionLabel]=\"optionLabel\" [optionValue]=\"optionValue\" [level]=\"0\" [optionTemplate]=\"optionTemplate\"\n [optionGroupLabel]=\"optionGroupLabel\" [optionGroupChildren]=\"optionGroupChildren\"\n (onSelect)=\"onOptionSelect($event)\" (onGroupSelect)=\"onOptionGroupSelect($event)\" [dirty]=\"dirty\" [root]=\"true\">\n </p-cascadeSelectSub>\n </div>\n </div>\n </div>\n `,\n animations: [\n trigger('overlayAnimation', [\n transition(':enter', [\n style({opacity: 0, transform: 'scaleY(0.8)'}),\n animate('{{showTransitionParams}}')\n ]),\n transition(':leave', [\n animate('{{hideTransitionParams}}', style({ opacity: 0 }))\n ])\n ])\n ],\n host: {\n 'class': 'p-element p-inputwrapper',\n '[class.p-inputwrapper-filled]': 'filled',\n '[class.p-inputwrapper-focus]': 'focused || overlayVisible'\n },\n providers: [CASCADESELECT_VALUE_ACCESSOR],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./cascadeselect.css']\n})\nexport class CascadeSelect implements OnInit, AfterContentInit, OnDestroy {\n\n @Input() styleClass: string;\n\n @Input() style: any;\n\n @Input() options: any[];\n\n @Input() optionLabel: string;\n\n @Input() optionValue: string;\n\n @Input() optionGroupLabel: string;\n\n @Input() optionGroupChildren: any[];\n\n @Input() placeholder: string;\n\n @Input() value: string;\n\n @Input() dataKey: string;\n\n @Input() inputId: string;\n\n @Input() tabindex: string;\n\n @Input() ariaLabelledBy: string;\n\n @Input() appendTo: any;\n\n @Input() disabled: boolean;\n\n @Input() rounded: boolean;\n\n @Input() showTransitionOptions: string = '.12s cubic-bezier(0, 0, 0.2, 1)';\n\n @Input() hideTransitionOptions: string = '.1s linear';\n\n @ViewChild('focusInput') focusInputEl: ElementRef;\n\n @ViewChild('container') containerEl: ElementRef;\n\n @Output() onChange: EventEmitter<any> = new EventEmitter();\n\n @Output() onGroupChange: EventEmitter<any> = new EventEmitter();\n\n @Output() onShow: EventEmitter<any> = new EventEmitter();\n\n @Output() onHide: EventEmitter<any> = new EventEmitter();\n\n @Output() onBeforeShow: EventEmitter<any> = new EventEmitter();\n\n @Output() onBeforeHide: EventEmitter<any> = new EventEmitter();\n\n @ContentChildren(PrimeTemplate) templates: QueryList<any>;\n\n selectionPath: any = null;\n\n focused: boolean = false;\n\n filled: boolean = false;\n\n overlayVisible: boolean = false;\n\n dirty: boolean = false;\n\n valueTemplate: TemplateRef<any>;\n\n optionTemplate: TemplateRef<any>;\n\n outsideClickListener: any;\n\n scrollHandler: any;\n\n resizeListener: any;\n\n overlayEl: any;\n\n onModelChange: Function = () => {};\n\n onModelTouched: Function = () => {};\n\n constructor(private el: ElementRef, private cd: ChangeDetectorRef, private config: PrimeNGConfig, public overlayService: OverlayService) { }\n\n ngOnInit() {\n this.updateSelectionPath();\n }\n\n ngAfterContentInit() {\n this.templates.forEach((item) => {\n switch(item.getType()) {\n case 'value':\n this.valueTemplate = item.template;\n break;\n case 'option':\n this.optionTemplate = item.template;\n break;\n }\n });\n }\n\n onOptionSelect(event) {\n this.value = event.value;\n this.updateSelectionPath();\n this.onModelChange(this.value);\n this.onChange.emit(event);\n this.hide();\n this.focusInputEl.nativeElement.focus();\n }\n\n onOptionGroupSelect(event) {\n this.dirty = true;\n this.onGroupChange.emit(event);\n }\n\n getOptionLabel(option) {\n return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option;\n }\n\n getOptionValue(option) {\n return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : option;\n }\n\n getOptionGroupChildren(optionGroup, level) {\n return ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren[level]);\n }\n\n isOptionGroup(option, level) {\n return Object.prototype.hasOwnProperty.call(option, this.optionGroupChildren[level]);\n }\n\n updateSelectionPath() {\n let path;\n if (this.value != null && this.options) {\n for (let option of this.options) {\n path = this.findModelOptionInGroup(option, 0);\n if (path) {\n break;\n }\n }\n }\n\n this.selectionPath = path;\n this.updateFilledState();\n }\n\n updateFilledState() {\n this.filled = !(this.selectionPath == null || this.selectionPath.length == 0);\n }\n\n findModelOptionInGroup(option, level) {\n if (this.isOptionGroup(option, level)) {\n let selectedOption;\n for (let childOption of this.getOptionGroupChildren(option, level)) {\n selectedOption = this.findModelOptionInGroup(childOption, level + 1);\n if (selectedOption) {\n selectedOption.unshift(option);\n return selectedOption;\n }\n }\n }\n else if ((ObjectUtils.equals(this.value, this.getOptionValue(option), this.dataKey))) {\n return [option];\n }\n\n return null;\n }\n\n show() {\n this.onBeforeShow.emit();\n this.overlayVisible = true;\n }\n\n hide() {\n this.onBeforeHide.emit();\n this.overlayVisible = false;\n this.cd.markForCheck();\n }\n\n onClick(event) {\n if (this.disabled) {\n return;\n }\n\n if (!this.overlayEl || !this.overlayEl || !this.overlayEl.contains(event.target)) {\n if (this.overlayVisible){\n this.hide();\n }\n else{\n this.show();\n }\n\n this.focusInputEl.nativeElement.focus();\n }\n }\n\n onFocus() {\n this.focused = true;\n }\n\n onBlur() {\n this.focused = false;\n }\n\n onOverlayClick(event) {\n this.overlayService.add({\n originalEvent: event,\n target: this.el.nativeElement\n });\n }\n\n onOverlayAnimationStart(event: AnimationEvent) {\n switch (event.toState) {\n case 'visible':\n this.overlayEl = event.element;\n this.onOverlayEnter();\n break;\n }\n }\n\n onOverlayAnimationDone(event: AnimationEvent) {\n switch (event.toState) {\n case 'void':\n this.onOverlayLeave();\n break;\n }\n }\n\n onOverlayEnter() {\n ZIndexUtils.set('overlay', this.overlayEl, this.config.zIndex.overlay);\n this.appendContainer();\n this.alignOverlay();\n this.bindOutsideClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n this.onShow.emit();\n }\n\n onOverlayLeave() {\n this.unbindOutsideClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n this.onHide.emit();\n ZIndexUtils.clear(this.overlayEl);\n this.overlayEl = null;\n this.dirty = false;\n }\n\n writeValue(value: any) : void {\n this.value = value;\n this.updateSelectionPath();\n this.cd.markForCheck();\n }\n\n registerOnChange(fn: Function): void {\n this.onModelChange = fn;\n }\n\n registerOnTouched(fn: Function): void {\n this.onModelTouched = fn;\n }\n\n setDisabledState(val: boolean): void {\n this.disabled = val;\n this.cd.markForCheck();\n }\n\n alignOverlay() {\n if (this.appendTo) {\n DomHandler.absolutePosition(this.overlayEl, this.containerEl.nativeElement);\n this.overlayEl.style.minWidth = DomHandler.getOuterWidth(this.containerEl.nativeElement) + 'px';\n } else {\n DomHandler.relativePosition(this.overlayEl, this.containerEl.nativeElement);\n }\n }\n\n bindOutsideClickListener() {\n if (!this.outsideClickListener) {\n this.outsideClickListener = (event) => {\n if (this.overlayVisible && this.overlayEl && !this.containerEl.nativeElement.contains(event.target) && !this.overlayEl.contains(event.target)) {\n this.hide();\n }\n };\n document.addEventListener('click', this.outsideClickListener);\n }\n }\n\n unbindOutsideClickListener() {\n if (this.outsideClickListener) {\n document.removeEventListener('click', this.outsideClickListener);\n this.outsideClickListener = null;\n }\n }\n\n bindScrollListener() {\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.containerEl.nativeElement, () => {\n if (this.overlayVisible) {\n this.hide();\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n }\n\n unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n\n bindResizeListener() {\n if (!this.resizeListener) {\n this.resizeListener = () => {\n if (this.overlayVisible) {\n this.hide();\n }\n };\n window.addEventListener('resize', this.resizeListener);\n }\n }\n\n unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n }\n\n appendContainer() {\n if (this.appendTo) {\n if (this.appendTo === 'body')\n document.body.appendChild(this.overlayEl);\n else\n document.getElementById(this.appendTo).appendChild(this.overlayEl);\n }\n }\n\n restoreAppend() {\n if (this.overlayEl && this.appendTo) {\n if (this.appendTo === 'body')\n document.body.removeChild(this.overlayEl);\n else\n document.getElementById(this.appendTo).removeChild(this.overlayEl);\n }\n }\n\n label() {\n if (this.selectionPath)\n return this.getOptionLabel(this.selectionPath[this.selectionPath.length - 1]);\n else\n return this.placeholder||'p-emptylabel';\n }\n\n onKeyDown(event) {\n switch(event.code) {\n case 'Down':\n case 'ArrowDown':\n if (this.overlayVisible) {\n DomHandler.findSingle(this.overlayEl, '.p-cascadeselect-item').children[0].focus();\n }\n else if (event.altKey && this.options && this.options.length) {\n this.show();\n }\n event.preventDefault();\n break;\n\n case 'Space':\n case 'Enter':\n if (!this.overlayVisible)\n this.show();\n else\n this.hide();\n\n event.preventDefault();\n break;\n\n case 'Tab':\n case 'Escape':\n if (this.overlayVisible) {\n this.hide();\n event.preventDefault();\n }\n break;\n }\n }\n\n containerClass() {\n return {\n 'p-cascadeselect p-component p-inputwrapper': true,\n 'p-disabled': this.disabled,\n 'p-focus': this.focused\n };\n }\n\n labelClass() {\n return {\n 'p-cascadeselect-label': true,\n 'p-placeholder': this.label() === this.placeholder,\n 'p-cascadeselect-label-empty': !this.value && (this.label() === 'p-emptylabel' || this.label().length === 0)\n };\n }\n\n ngOnDestroy() {\n this.restoreAppend();\n this.unbindOutsideClickListener();\n this.unbindResizeListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n this.overlayEl = null;\n }\n}\n\n@NgModule({\n imports: [CommonModule, SharedModule, RippleModule],\n exports: [CascadeSelect, CascadeSelectSub, SharedModule],\n declarations: [CascadeSelect, CascadeSelectSub]\n})\nexport class CascadeSelectModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAUa,4BAA4B,GAAQ;IAC7C,OAAO,EAAE,iBAAiB;IAC1B,WAAW,EAAE,UAAU,CAAC,MAAM,aAAa,CAAC;IAC5C,KAAK,EAAE,IAAI;EACb;MA4BW,gBAAgB;IA2CzB,YAAqD,aAAa,EAAU,EAAc;QAAd,OAAE,GAAF,EAAE,CAAY;QAjCjF,UAAK,GAAW,CAAC,CAAC;QAYjB,aAAQ,GAAsB,IAAI,YAAY,EAAE,CAAC;QAEjD,kBAAa,GAAsB,IAAI,YAAY,EAAE,CAAC;QAahE,iBAAY,GAAQ,IAAI,CAAC;QAOrB,IAAI,CAAC,aAAa,GAAG,aAA8B,CAAC;KACvD;IAnBD,IAAa,YAAY;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC;KAC7B;;IACD,IAAI,YAAY,CAAC,GAAG;QAChB,IAAI,CAAC,GAAG,EAAE;YACN,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;SAC5B;QAED,IAAI,CAAC,aAAa,GAAG,GAAG,CAAC;KAC5B;IAYD,QAAQ;QACJ,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACnD,KAAK,IAAI,MAAM,IAAI,IAAI,CAAC,OAAO,EAAE;gBAC7B,IAAI,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;oBACrC,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;oBAC3B,MAAM;iBACT;aACJ;SACJ;QAED,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACZ,IAAI,CAAC,QAAQ,EAAE,CAAC;SACnB;KACJ;IAED,aAAa,CAAC,KAAK,EAAE,MAAM;QACvB,IAAI,IAAI,CAAC,aAAa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