{ "version": 3, "sources": ["../../src/flow/stages/autosubmit/AutosubmitStage.ts"], "sourcesContent": ["import \"@goauthentik/elements/EmptyState\";\nimport { BaseStage } from \"@goauthentik/flow/stages/base\";\n\nimport { msg } from \"@lit/localize\";\nimport { CSSResult, TemplateResult, html } from \"lit\";\nimport { customElement, query } from \"lit/decorators.js\";\n\nimport PFButton from \"@patternfly/patternfly/components/Button/button.css\";\nimport PFForm from \"@patternfly/patternfly/components/Form/form.css\";\nimport PFFormControl from \"@patternfly/patternfly/components/FormControl/form-control.css\";\nimport PFLogin from \"@patternfly/patternfly/components/Login/login.css\";\nimport PFTitle from \"@patternfly/patternfly/components/Title/title.css\";\nimport PFBase from \"@patternfly/patternfly/patternfly-base.css\";\n\nimport { AutoSubmitChallengeResponseRequest, AutosubmitChallenge } from \"@goauthentik/api\";\n\n@customElement(\"ak-stage-autosubmit\")\nexport class AutosubmitStage extends BaseStage<\n AutosubmitChallenge,\n AutoSubmitChallengeResponseRequest\n> {\n @query(\"form\")\n private form?: HTMLFormElement;\n\n static get styles(): CSSResult[] {\n return [PFBase, PFLogin, PFForm, PFFormControl, PFButton, PFTitle];\n }\n\n updated(): void {\n this.form?.submit();\n }\n\n render(): TemplateResult {\n if (!this.challenge) {\n return html` `;\n }\n let title = this.challenge.flowInfo?.title;\n if (this.challenge.title && this.challenge.title !== \"\") {\n title = this.challenge.title;\n }\n if (!title) {\n title = msg(\"Loading\");\n }\n return html`
\n ${Object.entries(this.challenge.attrs).map(([key, value]) => {\n return html``;\n })}\n \n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"ak-stage-autosubmit\": AutosubmitStage;\n }\n}\n"], "mappings": "0RAiBO,IAAMA,EAAN,cAA8BC,CAGnC,CAIE,WAAW,QAAsB,CAC7B,MAAO,CAACC,EAAQC,EAASC,EAAQC,EAAeC,EAAUC,CAAO,CACrE,CAEA,SAAgB,CACZ,KAAK,MAAM,OAAO,CACtB,CAEA,QAAyB,CACrB,GAAI,CAAC,KAAK,UACN,OAAOC,8CAEX,IAAIC,EAAQ,KAAK,UAAU,UAAU,MACrC,OAAI,KAAK,UAAU,OAAS,KAAK,UAAU,QAAU,KACjDA,EAAQ,KAAK,UAAU,OAEtBA,IACDA,EAAQC,EAAI,SAAS,GAElBF,oCAAuC,KAAK,UAAU,GAAG;AAAA,cAC1D,OAAO,QAAQ,KAAK,UAAU,KAAK,EAAE,IAAI,CAAC,CAACG,EAAKC,CAAK,IAC5CJ;AAAA;AAAA,4BAEKG,CAAa;AAAA,6BACZC,CAAe;AAAA,mBAE/B,CAAC;AAAA,4CAC8BH,CAAK;AAAA,gBAE7C,CACJ,EAhCYI,EAAA,CADPC,EAAM,MAAM,GAJJd,EAKD,oBALCA,EAANa,EAAA,CADNE,EAAc,qBAAqB,GACvBf", "names": ["AutosubmitStage", "BaseStage", "patternfly_base_default", "login_default", "form_default", "form_control_default", "button_default", "title_default", "ke", "title", "msg", "key", "value", "__decorateClass", "e", "t"] }