1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | import { ComponentPortal } from '@angular/cdk/portal';
|
---|
9 | import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, forwardRef, Inject, Input, Optional, Output, ViewChild, ViewEncapsulation, } from '@angular/core';
|
---|
10 | import { DateAdapter, MAT_DATE_FORMATS, } from '@angular/material/core';
|
---|
11 | import { Subject } from 'rxjs';
|
---|
12 | import { createMissingDateImplError } from './datepicker-errors';
|
---|
13 | import { MatDatepickerIntl } from './datepicker-intl';
|
---|
14 | import { MatMonthView } from './month-view';
|
---|
15 | import { getActiveOffset, isSameMultiYearView, MatMultiYearView, yearsPerPage } from './multi-year-view';
|
---|
16 | import { MatYearView } from './year-view';
|
---|
17 | import { MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER, DateRange } from './date-selection-model';
|
---|
18 | /** Counter used to generate unique IDs. */
|
---|
19 | let uniqueId = 0;
|
---|
20 | /** Default header for MatCalendar */
|
---|
21 | export class MatCalendarHeader {
|
---|
22 | constructor(_intl, calendar, _dateAdapter, _dateFormats, changeDetectorRef) {
|
---|
23 | this._intl = _intl;
|
---|
24 | this.calendar = calendar;
|
---|
25 | this._dateAdapter = _dateAdapter;
|
---|
26 | this._dateFormats = _dateFormats;
|
---|
27 | this._buttonDescriptionId = `mat-calendar-button-${uniqueId++}`;
|
---|
28 | this.calendar.stateChanges.subscribe(() => changeDetectorRef.markForCheck());
|
---|
29 | }
|
---|
30 | /** The label for the current calendar view. */
|
---|
31 | get periodButtonText() {
|
---|
32 | if (this.calendar.currentView == 'month') {
|
---|
33 | return this._dateAdapter
|
---|
34 | .format(this.calendar.activeDate, this._dateFormats.display.monthYearLabel)
|
---|
35 | .toLocaleUpperCase();
|
---|
36 | }
|
---|
37 | if (this.calendar.currentView == 'year') {
|
---|
38 | return this._dateAdapter.getYearName(this.calendar.activeDate);
|
---|
39 | }
|
---|
40 | // The offset from the active year to the "slot" for the starting year is the
|
---|
41 | // *actual* first rendered year in the multi-year view, and the last year is
|
---|
42 | // just yearsPerPage - 1 away.
|
---|
43 | const activeYear = this._dateAdapter.getYear(this.calendar.activeDate);
|
---|
44 | const minYearOfPage = activeYear - getActiveOffset(this._dateAdapter, this.calendar.activeDate, this.calendar.minDate, this.calendar.maxDate);
|
---|
45 | const maxYearOfPage = minYearOfPage + yearsPerPage - 1;
|
---|
46 | const minYearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(minYearOfPage, 0, 1));
|
---|
47 | const maxYearName = this._dateAdapter.getYearName(this._dateAdapter.createDate(maxYearOfPage, 0, 1));
|
---|
48 | return this._intl.formatYearRange(minYearName, maxYearName);
|
---|
49 | }
|
---|
50 | get periodButtonLabel() {
|
---|
51 | return this.calendar.currentView == 'month' ?
|
---|
52 | this._intl.switchToMultiYearViewLabel : this._intl.switchToMonthViewLabel;
|
---|
53 | }
|
---|
54 | /** The label for the previous button. */
|
---|
55 | get prevButtonLabel() {
|
---|
56 | return {
|
---|
57 | 'month': this._intl.prevMonthLabel,
|
---|
58 | 'year': this._intl.prevYearLabel,
|
---|
59 | 'multi-year': this._intl.prevMultiYearLabel
|
---|
60 | }[this.calendar.currentView];
|
---|
61 | }
|
---|
62 | /** The label for the next button. */
|
---|
63 | get nextButtonLabel() {
|
---|
64 | return {
|
---|
65 | 'month': this._intl.nextMonthLabel,
|
---|
66 | 'year': this._intl.nextYearLabel,
|
---|
67 | 'multi-year': this._intl.nextMultiYearLabel
|
---|
68 | }[this.calendar.currentView];
|
---|
69 | }
|
---|
70 | /** Handles user clicks on the period label. */
|
---|
71 | currentPeriodClicked() {
|
---|
72 | this.calendar.currentView = this.calendar.currentView == 'month' ? 'multi-year' : 'month';
|
---|
73 | }
|
---|
74 | /** Handles user clicks on the previous button. */
|
---|
75 | previousClicked() {
|
---|
76 | this.calendar.activeDate = this.calendar.currentView == 'month' ?
|
---|
77 | this._dateAdapter.addCalendarMonths(this.calendar.activeDate, -1) :
|
---|
78 | this._dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? -1 : -yearsPerPage);
|
---|
79 | }
|
---|
80 | /** Handles user clicks on the next button. */
|
---|
81 | nextClicked() {
|
---|
82 | this.calendar.activeDate = this.calendar.currentView == 'month' ?
|
---|
83 | this._dateAdapter.addCalendarMonths(this.calendar.activeDate, 1) :
|
---|
84 | this._dateAdapter.addCalendarYears(this.calendar.activeDate, this.calendar.currentView == 'year' ? 1 : yearsPerPage);
|
---|
85 | }
|
---|
86 | /** Whether the previous period button is enabled. */
|
---|
87 | previousEnabled() {
|
---|
88 | if (!this.calendar.minDate) {
|
---|
89 | return true;
|
---|
90 | }
|
---|
91 | return !this.calendar.minDate ||
|
---|
92 | !this._isSameView(this.calendar.activeDate, this.calendar.minDate);
|
---|
93 | }
|
---|
94 | /** Whether the next period button is enabled. */
|
---|
95 | nextEnabled() {
|
---|
96 | return !this.calendar.maxDate ||
|
---|
97 | !this._isSameView(this.calendar.activeDate, this.calendar.maxDate);
|
---|
98 | }
|
---|
99 | /** Whether the two dates represent the same view in the current view mode (month or year). */
|
---|
100 | _isSameView(date1, date2) {
|
---|
101 | if (this.calendar.currentView == 'month') {
|
---|
102 | return this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2) &&
|
---|
103 | this._dateAdapter.getMonth(date1) == this._dateAdapter.getMonth(date2);
|
---|
104 | }
|
---|
105 | if (this.calendar.currentView == 'year') {
|
---|
106 | return this._dateAdapter.getYear(date1) == this._dateAdapter.getYear(date2);
|
---|
107 | }
|
---|
108 | // Otherwise we are in 'multi-year' view.
|
---|
109 | return isSameMultiYearView(this._dateAdapter, date1, date2, this.calendar.minDate, this.calendar.maxDate);
|
---|
110 | }
|
---|
111 | }
|
---|
112 | MatCalendarHeader.decorators = [
|
---|
113 | { type: Component, args: [{
|
---|
114 | selector: 'mat-calendar-header',
|
---|
115 | template: "<div class=\"mat-calendar-header\">\n <div class=\"mat-calendar-controls\">\n <button mat-button type=\"button\" class=\"mat-calendar-period-button\"\n (click)=\"currentPeriodClicked()\" [attr.aria-label]=\"periodButtonLabel\"\n [attr.aria-describedby]=\"_buttonDescriptionId\"\n cdkAriaLive=\"polite\">\n <span [attr.id]=\"_buttonDescriptionId\">{{periodButtonText}}</span>\n <div class=\"mat-calendar-arrow\"\n [class.mat-calendar-invert]=\"calendar.currentView !== 'month'\"></div>\n </button>\n\n <div class=\"mat-calendar-spacer\"></div>\n\n <ng-content></ng-content>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-previous-button\"\n [disabled]=\"!previousEnabled()\" (click)=\"previousClicked()\"\n [attr.aria-label]=\"prevButtonLabel\">\n </button>\n\n <button mat-icon-button type=\"button\" class=\"mat-calendar-next-button\"\n [disabled]=\"!nextEnabled()\" (click)=\"nextClicked()\"\n [attr.aria-label]=\"nextButtonLabel\">\n </button>\n </div>\n</div>\n",
|
---|
116 | exportAs: 'matCalendarHeader',
|
---|
117 | encapsulation: ViewEncapsulation.None,
|
---|
118 | changeDetection: ChangeDetectionStrategy.OnPush
|
---|
119 | },] }
|
---|
120 | ];
|
---|
121 | MatCalendarHeader.ctorParameters = () => [
|
---|
122 | { type: MatDatepickerIntl },
|
---|
123 | { type: MatCalendar, decorators: [{ type: Inject, args: [forwardRef(() => MatCalendar),] }] },
|
---|
124 | { type: DateAdapter, decorators: [{ type: Optional }] },
|
---|
125 | { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [MAT_DATE_FORMATS,] }] },
|
---|
126 | { type: ChangeDetectorRef }
|
---|
127 | ];
|
---|
128 | /** A calendar that is used as part of the datepicker. */
|
---|
129 | export class MatCalendar {
|
---|
130 | constructor(_intl, _dateAdapter, _dateFormats, _changeDetectorRef) {
|
---|
131 | this._dateAdapter = _dateAdapter;
|
---|
132 | this._dateFormats = _dateFormats;
|
---|
133 | this._changeDetectorRef = _changeDetectorRef;
|
---|
134 | /**
|
---|
135 | * Used for scheduling that focus should be moved to the active cell on the next tick.
|
---|
136 | * We need to schedule it, rather than do it immediately, because we have to wait
|
---|
137 | * for Angular to re-evaluate the view children.
|
---|
138 | */
|
---|
139 | this._moveFocusOnNextTick = false;
|
---|
140 | /** Whether the calendar should be started in month or year view. */
|
---|
141 | this.startView = 'month';
|
---|
142 | /** Emits when the currently selected date changes. */
|
---|
143 | this.selectedChange = new EventEmitter();
|
---|
144 | /**
|
---|
145 | * Emits the year chosen in multiyear view.
|
---|
146 | * This doesn't imply a change on the selected date.
|
---|
147 | */
|
---|
148 | this.yearSelected = new EventEmitter();
|
---|
149 | /**
|
---|
150 | * Emits the month chosen in year view.
|
---|
151 | * This doesn't imply a change on the selected date.
|
---|
152 | */
|
---|
153 | this.monthSelected = new EventEmitter();
|
---|
154 | /**
|
---|
155 | * Emits when the current view changes.
|
---|
156 | */
|
---|
157 | this.viewChanged = new EventEmitter(true);
|
---|
158 | /** Emits when any date is selected. */
|
---|
159 | this._userSelection = new EventEmitter();
|
---|
160 | /**
|
---|
161 | * Emits whenever there is a state change that the header may need to respond to.
|
---|
162 | */
|
---|
163 | this.stateChanges = new Subject();
|
---|
164 | if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
---|
165 | if (!this._dateAdapter) {
|
---|
166 | throw createMissingDateImplError('DateAdapter');
|
---|
167 | }
|
---|
168 | if (!this._dateFormats) {
|
---|
169 | throw createMissingDateImplError('MAT_DATE_FORMATS');
|
---|
170 | }
|
---|
171 | }
|
---|
172 | this._intlChanges = _intl.changes.subscribe(() => {
|
---|
173 | _changeDetectorRef.markForCheck();
|
---|
174 | this.stateChanges.next();
|
---|
175 | });
|
---|
176 | }
|
---|
177 | /** A date representing the period (month or year) to start the calendar in. */
|
---|
178 | get startAt() { return this._startAt; }
|
---|
179 | set startAt(value) {
|
---|
180 | this._startAt = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
---|
181 | }
|
---|
182 | /** The currently selected date. */
|
---|
183 | get selected() { return this._selected; }
|
---|
184 | set selected(value) {
|
---|
185 | if (value instanceof DateRange) {
|
---|
186 | this._selected = value;
|
---|
187 | }
|
---|
188 | else {
|
---|
189 | this._selected = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
---|
190 | }
|
---|
191 | }
|
---|
192 | /** The minimum selectable date. */
|
---|
193 | get minDate() { return this._minDate; }
|
---|
194 | set minDate(value) {
|
---|
195 | this._minDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
---|
196 | }
|
---|
197 | /** The maximum selectable date. */
|
---|
198 | get maxDate() { return this._maxDate; }
|
---|
199 | set maxDate(value) {
|
---|
200 | this._maxDate = this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(value));
|
---|
201 | }
|
---|
202 | /**
|
---|
203 | * The current active date. This determines which time period is shown and which date is
|
---|
204 | * highlighted when using keyboard navigation.
|
---|
205 | */
|
---|
206 | get activeDate() { return this._clampedActiveDate; }
|
---|
207 | set activeDate(value) {
|
---|
208 | this._clampedActiveDate = this._dateAdapter.clampDate(value, this.minDate, this.maxDate);
|
---|
209 | this.stateChanges.next();
|
---|
210 | this._changeDetectorRef.markForCheck();
|
---|
211 | }
|
---|
212 | /** Whether the calendar is in month view. */
|
---|
213 | get currentView() { return this._currentView; }
|
---|
214 | set currentView(value) {
|
---|
215 | const viewChangedResult = this._currentView !== value ? value : null;
|
---|
216 | this._currentView = value;
|
---|
217 | this._moveFocusOnNextTick = true;
|
---|
218 | this._changeDetectorRef.markForCheck();
|
---|
219 | if (viewChangedResult) {
|
---|
220 | this.viewChanged.emit(viewChangedResult);
|
---|
221 | }
|
---|
222 | }
|
---|
223 | ngAfterContentInit() {
|
---|
224 | this._calendarHeaderPortal = new ComponentPortal(this.headerComponent || MatCalendarHeader);
|
---|
225 | this.activeDate = this.startAt || this._dateAdapter.today();
|
---|
226 | // Assign to the private property since we don't want to move focus on init.
|
---|
227 | this._currentView = this.startView;
|
---|
228 | }
|
---|
229 | ngAfterViewChecked() {
|
---|
230 | if (this._moveFocusOnNextTick) {
|
---|
231 | this._moveFocusOnNextTick = false;
|
---|
232 | this.focusActiveCell();
|
---|
233 | }
|
---|
234 | }
|
---|
235 | ngOnDestroy() {
|
---|
236 | this._intlChanges.unsubscribe();
|
---|
237 | this.stateChanges.complete();
|
---|
238 | }
|
---|
239 | ngOnChanges(changes) {
|
---|
240 | const change = changes['minDate'] || changes['maxDate'] || changes['dateFilter'];
|
---|
241 | if (change && !change.firstChange) {
|
---|
242 | const view = this._getCurrentViewComponent();
|
---|
243 | if (view) {
|
---|
244 | // We need to `detectChanges` manually here, because the `minDate`, `maxDate` etc. are
|
---|
245 | // passed down to the view via data bindings which won't be up-to-date when we call `_init`.
|
---|
246 | this._changeDetectorRef.detectChanges();
|
---|
247 | view._init();
|
---|
248 | }
|
---|
249 | }
|
---|
250 | this.stateChanges.next();
|
---|
251 | }
|
---|
252 | /** Focuses the active date. */
|
---|
253 | focusActiveCell() {
|
---|
254 | this._getCurrentViewComponent()._focusActiveCell(false);
|
---|
255 | }
|
---|
256 | /** Updates today's date after an update of the active date */
|
---|
257 | updateTodaysDate() {
|
---|
258 | this._getCurrentViewComponent()._init();
|
---|
259 | }
|
---|
260 | /** Handles date selection in the month view. */
|
---|
261 | _dateSelected(event) {
|
---|
262 | const date = event.value;
|
---|
263 | if (this.selected instanceof DateRange ||
|
---|
264 | (date && !this._dateAdapter.sameDate(date, this.selected))) {
|
---|
265 | this.selectedChange.emit(date);
|
---|
266 | }
|
---|
267 | this._userSelection.emit(event);
|
---|
268 | }
|
---|
269 | /** Handles year selection in the multiyear view. */
|
---|
270 | _yearSelectedInMultiYearView(normalizedYear) {
|
---|
271 | this.yearSelected.emit(normalizedYear);
|
---|
272 | }
|
---|
273 | /** Handles month selection in the year view. */
|
---|
274 | _monthSelectedInYearView(normalizedMonth) {
|
---|
275 | this.monthSelected.emit(normalizedMonth);
|
---|
276 | }
|
---|
277 | /** Handles year/month selection in the multi-year/year views. */
|
---|
278 | _goToDateInView(date, view) {
|
---|
279 | this.activeDate = date;
|
---|
280 | this.currentView = view;
|
---|
281 | }
|
---|
282 | /** Returns the component instance that corresponds to the current calendar view. */
|
---|
283 | _getCurrentViewComponent() {
|
---|
284 | // The return type is explicitly written as a union to ensure that the Closure compiler does
|
---|
285 | // not optimize calls to _init(). Without the explict return type, TypeScript narrows it to
|
---|
286 | // only the first component type. See https://github.com/angular/components/issues/22996.
|
---|
287 | return this.monthView || this.yearView || this.multiYearView;
|
---|
288 | }
|
---|
289 | }
|
---|
290 | MatCalendar.decorators = [
|
---|
291 | { type: Component, args: [{
|
---|
292 | selector: 'mat-calendar',
|
---|
293 | template: "<ng-template [cdkPortalOutlet]=\"_calendarHeaderPortal\"></ng-template>\n\n<div class=\"mat-calendar-content\" [ngSwitch]=\"currentView\" cdkMonitorSubtreeFocus tabindex=\"-1\">\n <mat-month-view\n *ngSwitchCase=\"'month'\"\n [(activeDate)]=\"activeDate\"\n [selected]=\"selected\"\n [dateFilter]=\"dateFilter\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [dateClass]=\"dateClass\"\n [comparisonStart]=\"comparisonStart\"\n [comparisonEnd]=\"comparisonEnd\"\n (_userSelection)=\"_dateSelected($event)\">\n </mat-month-view>\n\n <mat-year-view\n *ngSwitchCase=\"'year'\"\n [(activeDate)]=\"activeDate\"\n [selected]=\"selected\"\n [dateFilter]=\"dateFilter\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [dateClass]=\"dateClass\"\n (monthSelected)=\"_monthSelectedInYearView($event)\"\n (selectedChange)=\"_goToDateInView($event, 'month')\">\n </mat-year-view>\n\n <mat-multi-year-view\n *ngSwitchCase=\"'multi-year'\"\n [(activeDate)]=\"activeDate\"\n [selected]=\"selected\"\n [dateFilter]=\"dateFilter\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [dateClass]=\"dateClass\"\n (yearSelected)=\"_yearSelectedInMultiYearView($event)\"\n (selectedChange)=\"_goToDateInView($event, 'year')\">\n </mat-multi-year-view>\n</div>\n",
|
---|
294 | host: {
|
---|
295 | 'class': 'mat-calendar',
|
---|
296 | },
|
---|
297 | exportAs: 'matCalendar',
|
---|
298 | encapsulation: ViewEncapsulation.None,
|
---|
299 | changeDetection: ChangeDetectionStrategy.OnPush,
|
---|
300 | providers: [MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER],
|
---|
301 | styles: [".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:\"\";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:\"\";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-abbr{text-decoration:none}\n"]
|
---|
302 | },] }
|
---|
303 | ];
|
---|
304 | MatCalendar.ctorParameters = () => [
|
---|
305 | { type: MatDatepickerIntl },
|
---|
306 | { type: DateAdapter, decorators: [{ type: Optional }] },
|
---|
307 | { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [MAT_DATE_FORMATS,] }] },
|
---|
308 | { type: ChangeDetectorRef }
|
---|
309 | ];
|
---|
310 | MatCalendar.propDecorators = {
|
---|
311 | headerComponent: [{ type: Input }],
|
---|
312 | startAt: [{ type: Input }],
|
---|
313 | startView: [{ type: Input }],
|
---|
314 | selected: [{ type: Input }],
|
---|
315 | minDate: [{ type: Input }],
|
---|
316 | maxDate: [{ type: Input }],
|
---|
317 | dateFilter: [{ type: Input }],
|
---|
318 | dateClass: [{ type: Input }],
|
---|
319 | comparisonStart: [{ type: Input }],
|
---|
320 | comparisonEnd: [{ type: Input }],
|
---|
321 | selectedChange: [{ type: Output }],
|
---|
322 | yearSelected: [{ type: Output }],
|
---|
323 | monthSelected: [{ type: Output }],
|
---|
324 | viewChanged: [{ type: Output }],
|
---|
325 | _userSelection: [{ type: Output }],
|
---|
326 | monthView: [{ type: ViewChild, args: [MatMonthView,] }],
|
---|
327 | yearView: [{ type: ViewChild, args: [MatYearView,] }],
|
---|
328 | multiYearView: [{ type: ViewChild, args: [MatMultiYearView,] }]
|
---|
329 | };
|
---|
330 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsZW5kYXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbWF0ZXJpYWwvZGF0ZXBpY2tlci9jYWxlbmRhci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsZUFBZSxFQUF3QixNQUFNLHFCQUFxQixDQUFDO0FBQzNFLE9BQU8sRUFHTCx1QkFBdUIsRUFDdkIsaUJBQ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