{"version":3,"mappings":"6EAMA,eAAsBA,EAAa,CAClC,KAAAC,EACA,SAAAC,EACA,MAAAC,CACD,EAAsE,GAAkC,CACvG,OAAAC,EAAA,WAAO,yBAAwB,0CACxB,MAAMC,EAA+B,CAC3C,WAAY,IAAM,CACX,MAAAC,EAAK,IAAIC,EACZ,OAAAD,EAAA,MAAM,YAAY,qBAAsB,OAAO,EAClDE,EAAwBF,CAAE,EACnBA,CACR,EACA,OAAQ,GACR,SAAWG,GACVC,EACCC;AAAAA;AAAAA,iBAEa,IAAMF,EAAQ,MAAM,EAAK,CAAC;AAAA,eAC3BG,GAAmBH,EAAQ,MAAM,EAAI,CAAC;AAAA,mBACnCI,EAAUX,CAAQ,CAAC;AAAA,eACvBW,EAAUZ,CAAI,CAAC;AAAA,gBACdY,EAAUV,CAAK,CAAC;AAAA;AAAA,MAG5BM,CACD,CACD,GAAE,QACJ","names":["openUserAuth","text","headline","kinds","__vitePreload","openDialog","$d","WebDialog","prepareDialogForWrapper","$dialog","render","html","e","ifDefined"],"sources":["../../src/dialogs/open-user-auth.ts"],"sourcesContent":["import { openDialog, WebDialog } from \"web-dialog\";\nimport { html, render } from \"lit\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { prepareDialogForWrapper } from \"../atoms/dialog-wrapper\";\nimport { AuthProviderKind } from \"shared\";\n\nexport async function openUserAuth({\n\ttext,\n\theadline,\n\tkinds\n}: { text?: string; headline?: string; kinds?: AuthProviderKind[] } = {}): Promise {\n\timport(\"../molecules/user-auth\");\n\treturn await openDialog({\n\t\tinitialize: () => {\n\t\t\tconst $d = new WebDialog();\n\t\t\t$d.style.setProperty(\"--dialog-max-width\", \"400px\");\n\t\t\tprepareDialogForWrapper($d);\n\t\t\treturn $d;\n\t\t},\n\t\tcenter: true,\n\t\t$content: ($dialog) =>\n\t\t\trender(\n\t\t\t\thtml`\n\t\t\t\t\t $dialog.close(false)}\"\n\t\t\t\t\t\t@done=\"${(e: CustomEvent) => $dialog.close(true)}\"\n\t\t\t\t\t\t.headline=\"${ifDefined(headline)}\"\n\t\t\t\t\t\t.text=\"${ifDefined(text)}\"\n\t\t\t\t\t\t.kinds=\"${ifDefined(kinds)}\"\n\t\t\t\t\t>\n\t\t\t\t`,\n\t\t\t\t$dialog\n\t\t\t)\n\t}).resolver;\n}\n"],"file":"src/open-user-auth-MWiakZTt.js"}