import { policyOptions } from "@goauthentik/admin/applications/ApplicationForm"; import { first } from "@goauthentik/common/utils.js"; import "@goauthentik/components/ak-radio-input"; import "@goauthentik/components/ak-slug-input"; import "@goauthentik/components/ak-switch-input"; import "@goauthentik/components/ak-text-input"; import "@goauthentik/elements/forms/FormGroup"; import "@goauthentik/elements/forms/HorizontalFormElement"; import { msg } from "@lit/localize"; import { customElement } from "@lit/reactive-element/decorators/custom-element.js"; import { TemplateResult, html } from "lit"; import { ifDefined } from "lit/directives/if-defined.js"; import BasePanel from "../BasePanel"; @customElement("ak-application-wizard-application-details") export class ApplicationWizardApplicationDetails extends BasePanel { handleChange(_ev: Event) { const formValues = this.formValues; if (!formValues) { throw new Error("No application values on form?"); } this.dispatchWizardUpdate({ update: { ...this.wizard, app: formValues, }, status: this.valid ? "valid" : "invalid", }); } render(): TemplateResult { return html`
`; } } export default ApplicationWizardApplicationDetails; declare global { interface HTMLElementTagNameMap { "ak-application-wizard-application-details": ApplicationWizardApplicationDetails; } }