<button
type="button"
class="btn btn-primary"
data-sp-toggle="dialog"
data-sp-target="#dialog-10"
>
Enable 2FA
</button>
<dialog
id="dialog-10"
class="dialog"
aria-labelledby="dialog-10-title"
aria-describedby="dialog-10-description"
>
<div class="dialog-backdrop"></div>
<div class="dialog-panel">
<button
type="button"
class="btn btn-ghost btn-icon-xs absolute top-3 right-3"
aria-label="Close"
data-sp-dismiss="dialog"
>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="size-4"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg>
</button>
<div class="dialog-content grid gap-6">
<div>
<h2 id="dialog-10-title" class="text-lg font-semibold tracking-tight">
Enable two-factor authentication
</h2>
<p
id="dialog-10-description"
class="text-sm/6 text-muted-foreground mt-2"
>
Scan the QR code below with your authenticator app, or enter the
provided setup key manually.
</p>
</div>
<div
class="flex aspect-3/2 items-center justify-center rounded-lg border bg-muted/50"
>
<div class="relative rounded-lg bg-white p-2 dark:bg-white">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 37" shape-rendering="crispEdges" class="size-32" role="img" aria-label="QR code"><path fill="#ffffff" d="M0 0h37v37H0z"></path><path stroke="#000000" d="M4 4.5h7m8 0h6m1 0h7M4 5.5h1m5 0h1m3 0h1m7 0h1m1 0h1m1 0h1m5 0h1M4 6.5h1m1 0h3m1 0h1m1 0h1m1 0h1m1 0h1m1 0h1m1 0h1m2 0h2m1 0h1m1 0h3m1 0h1M4 7.5h1m1 0h3m1 0h1m1 0h3m5 0h2m1 0h1m2 0h1m1 0h3m1 0h1M4 8.5h1m1 0h3m1 0h1m1 0h3m1 0h4m1 0h4m1 0h1m1 0h3m1 0h1M4 9.5h1m5 0h1m1 0h1m2 0h1m1 0h5m4 0h1m5 0h1M4 10.5h7m1 0h1m1 0h1m1 0h1m1 0h1m1 0h1m1 0h1m1 0h1m1 0h7M12 11.5h1m2 0h3m1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
class="absolute top-0 left-0 size-3 rounded-tl border-t-2 border-l-2 border-primary"
></div>
<div
class="absolute top-0 right-0 size-3 rounded-tr border-t-2 border-r-2 border-primary"
></div>
<div
class="absolute bottom-0 right-0 size-3 rounded-br border-b-2 border-r-2 border-primary"
></div>
<div
class="absolute bottom-0 left-0 size-3 rounded-bl border-b-2 border-l-2 border-primary"
></div>
</div>
</div>
</div>
<div class="field">
<label class="label" for="dialog-10-setup-key">Setup key</label>
<input
id="dialog-10-setup-key"
type="text"
readonly=""
class="input font-mono text-sm"
value="JBSWY3DPEHPK3PXP"
/>
</div>
<form class="field-group">
<div class="field">
<label class="label" for="dialog-10-code">Verification code</label>
<input
id="dialog-10-code"
type="text"
inputmode="numeric"
autocomplete="one-time-code"
class="input"
placeholder="123456"
name="code"
/>
</div>
<div class="grid grid-cols-2 gap-2">
<button type="button" class="btn" data-sp-dismiss="dialog">
Cancel
</button>
<button type="submit" class="btn btn-primary">Confirm</button>
</div>
</form>
</div>
</div>
</dialog>