@* Create/edit modal for an equipment-bound scripted alarm, wired straight into IUnsTreeService. The host page owns visibility and supplies the owning equipment id (create) or the loaded ScriptedAlarmEditDto (edit), plus the candidate predicate-script list. The owning equipment is fixed by the tab, so there is no equipment selector. On a successful save it raises OnSaved so the host can refresh the equipment's alarms in place. Lifted from the standalone ScriptedAlarmEdit page (retired in a later task). *@ @using System.ComponentModel.DataAnnotations @using Microsoft.AspNetCore.Components.Forms @using ZB.MOM.WW.OtOpcUa.AdminUI.Uns @inject IUnsTreeService Svc @if (Visible) {