{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "settings-05",
  "title": "Security",
  "description": "Sign-in accounts that connect and disconnect, with a confirm in place before the last way in goes; signed-in devices with this one marked, where a device signed out folds away and the others go after one confirm; and a two-step switch that grows its setup panel while the six digits of the first code fill in.",
  "dependencies": [
    "motion"
  ],
  "registryDependencies": [
    "https://ui.ndekocode.dev/r/animated-size.json",
    "https://ui.ndekocode.dev/r/badge.json",
    "https://ui.ndekocode.dev/r/brand-logos.json",
    "https://ui.ndekocode.dev/r/brand-tile.json",
    "https://ui.ndekocode.dev/r/button.json",
    "https://ui.ndekocode.dev/r/chat-motion.json",
    "https://ui.ndekocode.dev/r/copy-button.json",
    "https://ui.ndekocode.dev/r/demonstration.json",
    "https://ui.ndekocode.dev/r/icons.json",
    "https://ui.ndekocode.dev/r/letter-tile.json",
    "https://ui.ndekocode.dev/r/live-duration.json",
    "https://ui.ndekocode.dev/r/live-region.json",
    "https://ui.ndekocode.dev/r/morph-button.json",
    "https://ui.ndekocode.dev/r/motion-presets.json",
    "https://ui.ndekocode.dev/r/otp-field.json",
    "https://ui.ndekocode.dev/r/replay-button.json",
    "https://ui.ndekocode.dev/r/switch.json",
    "https://ui.ndekocode.dev/r/theme.json",
    "https://ui.ndekocode.dev/r/use-prefers-reduced-motion.json",
    "https://ui.ndekocode.dev/r/use-session.json",
    "https://ui.ndekocode.dev/r/use-timeouts.json",
    "https://ui.ndekocode.dev/r/utils.json"
  ],
  "files": [
    {
      "path": "registry/ndeko/blocks/settings/settings-05/index.tsx",
      "content": "'use client';\n\nimport { useSession } from '@/registry/ndeko/hooks/use-session';\nimport { useTimeouts } from '@/registry/ndeko/hooks/use-timeouts';\nimport {\n  pressedQuietOf,\n  spokenUnless,\n} from '@/registry/ndeko/lib/demonstration';\nimport { Button } from '@/registry/ndeko/ui/button';\nimport { Swap } from '@/registry/ndeko/ui/chat-motion';\nimport { ClockGate } from '@/registry/ndeko/ui/live-duration';\nimport { LiveRegion } from '@/registry/ndeko/ui/live-region';\nimport { ReplayButton } from '@/registry/ndeko/ui/replay-button';\n\nimport type { ProviderId, SignedInDevice } from './data';\nimport { DeviceList } from './devices';\nimport {\n  CONNECT_MS,\n  connectedCountOf,\n  INITIAL,\n  LOOP_AFTER_MS,\n  otherDevicesOf,\n  reducer,\n  RESTING,\n  SCRIPT,\n  VERIFY_MS,\n  type SecurityState,\n} from './session';\nimport { SettingsFrame, SettingsSection } from './settings-frame';\nimport { SignInWays } from './sign-in-ways';\nimport { TwoStepCard } from './two-step';\n\nconst SESSION = {\n  reducer,\n  initial: INITIAL,\n  resting: RESTING,\n  script: SCRIPT,\n  loopAfter: LOOP_AFTER_MS,\n};\n\nfunction waysLineOf(state: SecurityState) {\n  const count = connectedCountOf(state);\n  if (count === 0) {\n    return 'No account signs you in: you sign in with a link sent by email';\n  }\n  if (count > 1) {\n    return `${count} accounts can sign you in`;\n  }\n  const only = state.providers.find(\n    (provider) => provider.status === 'connected'\n  );\n  return `Only ${only?.name} signs you in. Connect a second account so losing one never locks you out`;\n}\n\n/** A device signed out takes its button with it: the focus goes to the next device, or to the list. */\nfunction focusAfterSignOutOf(devices: SignedInDevice[], id: string) {\n  const others = devices.filter((device) => !device.isThisDevice);\n  const index = others.findIndex((device) => device.id === id);\n  const neighbour = others[index + 1] ?? others[index - 1];\n  if (neighbour) {\n    return `[data-sign-out=\"${neighbour.id}\"]`;\n  }\n  return '[data-devices]';\n}\n\nexport default function Settings05() {\n  const {\n    ref,\n    isInView,\n    isAutoplaying,\n    state,\n    act,\n    pressed,\n    isFinished,\n    restart,\n  } = useSession(SESSION);\n  const { schedule, clearAll } = useTimeouts();\n  const otherCount = otherDevicesOf(state).length;\n  const hasOthers = otherCount > 0;\n  const showsSignOutAll = hasOthers && !state.isConfirmingAll;\n  const waysLine = waysLineOf(state);\n  const message = spokenUnless(isAutoplaying, state.spoken);\n  const canReplay = isFinished && !isAutoplaying;\n\n  function focusLater(selector: string) {\n    requestAnimationFrame(() => {\n      const target = ref.current?.querySelector<HTMLElement>(selector);\n      target?.focus();\n    });\n  }\n\n  function connect(id: ProviderId) {\n    act({ type: 'connectStarted', id });\n    schedule(() => act({ type: 'connected', id }), CONNECT_MS);\n  }\n\n  function disconnect(id: ProviderId) {\n    const after = reducer(state, { type: 'disconnectAsked', id });\n    act({ type: 'disconnectAsked', id });\n    if (after.confirmingId === id) {\n      focusLater(`[data-keep=\"${id}\"]`);\n    }\n  }\n\n  function confirmDisconnect(id: ProviderId) {\n    act({ type: 'disconnectConfirmed', id });\n    focusLater(`[data-provider-action=\"${id}\"]`);\n  }\n\n  function keep() {\n    const id = state.confirmingId;\n    act({ type: 'disconnectCancelled' });\n    if (id) {\n      focusLater(`[data-provider-action=\"${id}\"]`);\n    }\n  }\n\n  function signOut(id: string) {\n    const target = focusAfterSignOutOf(state.devices, id);\n    act({ type: 'signedOut', id });\n    focusLater(target);\n  }\n\n  function askSignOutAll() {\n    act({ type: 'signOutAllAsked' });\n    focusLater('[data-sign-out-cancel]');\n  }\n\n  function cancelSignOutAll() {\n    act({ type: 'signOutAllCancelled' });\n    focusLater('[data-sign-out-all]');\n  }\n\n  function confirmSignOutAll() {\n    act({ type: 'signOutAllConfirmed' });\n    focusLater('[data-devices]');\n  }\n\n  function switchTwoStep(isOn: boolean) {\n    const wasAsking = state.twoStep === 'confirmingOff';\n    act({ type: 'twoStepSwitched', isOn });\n    if (wasAsking) {\n      focusLater('[data-two-step]');\n    }\n  }\n\n  function changeCode(code: string) {\n    act({ type: 'codeTyped', value: code });\n  }\n\n  function finishVerify() {\n    act({ type: 'verified' });\n    focusLater('[data-two-step]');\n  }\n\n  function verify() {\n    const after = reducer(state, { type: 'verifyPressed' });\n    act({ type: 'verifyPressed' });\n    if (after.twoStep === 'verifying') {\n      schedule(finishVerify, VERIFY_MS);\n    }\n  }\n\n  function turnOff() {\n    act({ type: 'turnOffConfirmed' });\n    focusLater('[data-two-step]');\n  }\n\n  /** A link or a check on its way belongs to the round it was asked for in. */\n  function replay() {\n    clearAll();\n    restart();\n  }\n\n  const signOutAllButton = showsSignOutAll && (\n    <Button\n      type='button'\n      variant='outline'\n      size='sm'\n      data-sign-out-all\n      onClick={askSignOutAll}\n      className={pressedQuietOf(pressed === 'sign-out-all')}\n    >\n      Sign out all others\n    </Button>\n  );\n\n  return (\n    <ClockGate isActive={isInView}>\n      <SettingsFrame\n        ref={ref}\n        title='Security'\n        line='How you sign in to Tidewell Studio, where you are signed in, and the second step that guards your account.'\n        aside={\n          <ReplayButton isShown={canReplay} onReplay={replay} label='Replay' />\n        }\n      >\n        <SettingsSection\n          title='Ways to sign in'\n          line={<Swap swapKey={waysLine}>{waysLine}</Swap>}\n        >\n          <SignInWays\n            state={state}\n            pressed={pressed}\n            onConnect={connect}\n            onDisconnect={disconnect}\n            onConfirmDisconnect={confirmDisconnect}\n            onKeep={keep}\n          />\n        </SettingsSection>\n        <SettingsSection\n          title='Signed-in devices'\n          line='Sign out of any device you do not recognise. Places are approximate'\n          action={signOutAllButton}\n        >\n          <DeviceList\n            devices={state.devices}\n            otherCount={otherCount}\n            isConfirmingAll={state.isConfirmingAll}\n            pressed={pressed}\n            onSignOut={signOut}\n            onCancelAll={cancelSignOutAll}\n            onConfirmAll={confirmSignOutAll}\n          />\n        </SettingsSection>\n        <SettingsSection\n          title='Two-step verification'\n          line='A code from your phone on top of your sign-in'\n        >\n          <TwoStepCard\n            state={state}\n            pressed={pressed}\n            onSwitch={switchTwoStep}\n            onCodeChange={changeCode}\n            onVerify={verify}\n            onTurnOff={turnOff}\n          />\n        </SettingsSection>\n        <LiveRegion message={message} />\n      </SettingsFrame>\n    </ClockGate>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/settings-05/index.tsx"
    },
    {
      "path": "registry/ndeko/blocks/settings/settings-05/sign-in-ways.tsx",
      "content": "'use client';\n\nimport { AnimatePresence, motion } from 'motion/react';\n\nimport { usePrefersReducedMotion } from '@/registry/ndeko/hooks/use-prefers-reduced-motion';\nimport { pressedQuietOf } from '@/registry/ndeko/lib/demonstration';\nimport { LoaderCircleIcon } from '@/registry/ndeko/lib/icons';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport { AnimatedSize } from '@/registry/ndeko/ui/animated-size';\nimport { BrandTile } from '@/registry/ndeko/ui/brand-tile';\nimport { Button } from '@/registry/ndeko/ui/button';\nimport { Fold, Swap } from '@/registry/ndeko/ui/chat-motion';\n\nimport { EMAIL, type Provider, type ProviderId } from './data';\nimport type { SecurityState } from './session';\nimport { SURFACE } from './settings-frame';\n\nconst SPINNER_IN = {\n  initial: { opacity: 0, scale: 0.6 },\n  animate: { opacity: 1, scale: 1 },\n  exit: { opacity: 0, scale: 0.6 },\n};\n\nconst SPINNER_FADE = {\n  initial: { opacity: 0 },\n  animate: { opacity: 1 },\n  exit: { opacity: 0 },\n};\n\nfunction spinnerMotionOf(shouldReduceMotion: boolean) {\n  if (shouldReduceMotion) {\n    return SPINNER_FADE;\n  }\n  return SPINNER_IN;\n}\n\nfunction statusLineOf(provider: Provider) {\n  if (provider.status === 'connected') {\n    return `Signed in as ${provider.account} since ${provider.connectedSince}`;\n  }\n  if (provider.status === 'connecting') {\n    return `Waiting for ${provider.name} to send you back`;\n  }\n  return 'Not connected';\n}\n\nfunction actionLabelOf(provider: Provider) {\n  if (provider.status === 'connected') {\n    return 'Disconnect';\n  }\n  if (provider.status === 'connecting') {\n    return 'Connecting';\n  }\n  return 'Connect';\n}\n\nfunction pressKeyOf(provider: Provider) {\n  if (provider.status === 'connected') {\n    return `disconnect-${provider.id}`;\n  }\n  return `connect-${provider.id}`;\n}\n\ntype ProviderActionProps = {\n  provider: Provider;\n  isPressed: boolean;\n  onPress: (provider: Provider) => void;\n};\n\n/**\n * One button for the whole life of the link, so the focus stays on it from Connect to\n * Connecting to Disconnect and back.\n */\nfunction ProviderAction({ provider, isPressed, onPress }: ProviderActionProps) {\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const spinnerMotion = spinnerMotionOf(shouldReduceMotion);\n  const label = actionLabelOf(provider);\n  const isConnecting = provider.status === 'connecting';\n\n  return (\n    <Button\n      type='button'\n      size='sm'\n      variant='outline'\n      data-provider-action={provider.id}\n      disabled={isConnecting}\n      focusableWhenDisabled\n      onClick={() => onPress(provider)}\n      className={cn('data-disabled:opacity-100', pressedQuietOf(isPressed))}\n    >\n      <AnimatedSize\n        as='span'\n        axis='width'\n        contentClassName='relative flex items-center gap-1.5'\n      >\n        <AnimatePresence mode='popLayout' initial={false}>\n          {isConnecting && (\n            <motion.span key='spinner' className='flex' {...spinnerMotion}>\n              <LoaderCircleIcon className='animate-spin' />\n            </motion.span>\n          )}\n        </AnimatePresence>\n        <Swap swapKey={label}>{label}</Swap>\n      </AnimatedSize>\n    </Button>\n  );\n}\n\ntype LastWayConfirmProps = {\n  provider: Provider;\n  pressed: string | null;\n  onKeep: () => void;\n  onConfirm: (id: ProviderId) => void;\n};\n\nfunction LastWayConfirm({\n  provider,\n  pressed,\n  onKeep,\n  onConfirm,\n}: LastWayConfirmProps) {\n  function keepOnEscape(event: React.KeyboardEvent<HTMLDivElement>) {\n    if (event.key !== 'Escape') {\n      return;\n    }\n    event.preventDefault();\n    onKeep();\n  }\n\n  return (\n    <div\n      role='group'\n      aria-label={`Disconnect ${provider.name}`}\n      onKeyDown={keepOnEscape}\n      className='bg-warning/10 mx-4 mb-3 flex flex-col gap-3 rounded-lg p-3'\n    >\n      <p className='text-[13px] text-pretty'>\n        <span className='font-medium'>{`${provider.name} is your only way to sign in.`}</span>{' '}\n        {`Disconnect it and you sign in with a link sent to ${EMAIL} instead.`}\n      </p>\n      <div className='flex flex-wrap justify-end gap-2'>\n        <Button\n          type='button'\n          variant='ghost'\n          size='sm'\n          data-keep={provider.id}\n          onClick={onKeep}\n          className={pressedQuietOf(pressed === `keep-${provider.id}`)}\n        >\n          {`Keep ${provider.name}`}\n        </Button>\n        <Button\n          type='button'\n          variant='destructive'\n          size='sm'\n          onClick={() => onConfirm(provider.id)}\n        >\n          Disconnect anyway\n        </Button>\n      </div>\n    </div>\n  );\n}\n\ntype SignInWaysProps = {\n  state: SecurityState;\n  pressed: string | null;\n  onConnect: (id: ProviderId) => void;\n  onDisconnect: (id: ProviderId) => void;\n  onConfirmDisconnect: (id: ProviderId) => void;\n  onKeep: () => void;\n};\n\nexport function SignInWays({\n  state,\n  pressed,\n  onConnect,\n  onDisconnect,\n  onConfirmDisconnect,\n  onKeep,\n}: SignInWaysProps) {\n  function press(provider: Provider) {\n    if (provider.status === 'connected') {\n      onDisconnect(provider.id);\n      return;\n    }\n    onConnect(provider.id);\n  }\n\n  return (\n    <ul\n      className={cn(SURFACE, 'hairline-divide-y divide-border flex flex-col')}\n    >\n      {state.providers.map((provider) => {\n        const statusLine = statusLineOf(provider);\n        const isConfirming = state.confirmingId === provider.id;\n        const pressKey = pressKeyOf(provider);\n\n        return (\n          <li key={provider.id} className='flex flex-col'>\n            <div className='flex flex-wrap items-center gap-x-3 gap-y-2 px-4 py-3'>\n              <BrandTile brand={provider.brand} size='xl' />\n              <div className='flex min-w-0 flex-1 basis-44 flex-col gap-0.5'>\n                <p className='text-[13px] font-medium'>{provider.name}</p>\n                <p className='text-muted-foreground flex min-w-0 text-xs'>\n                  <Swap swapKey={statusLine} className='min-w-0'>\n                    {statusLine}\n                  </Swap>\n                </p>\n              </div>\n              <ProviderAction\n                provider={provider}\n                isPressed={pressed === pressKey}\n                onPress={press}\n              />\n            </div>\n            <Fold open={isConfirming}>\n              <LastWayConfirm\n                provider={provider}\n                pressed={pressed}\n                onKeep={onKeep}\n                onConfirm={onConfirmDisconnect}\n              />\n            </Fold>\n          </li>\n        );\n      })}\n    </ul>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/settings-05/sign-in-ways.tsx"
    },
    {
      "path": "registry/ndeko/blocks/settings/settings-05/devices.tsx",
      "content": "'use client';\n\nimport { AnimatePresence, motion } from 'motion/react';\n\nimport { usePrefersReducedMotion } from '@/registry/ndeko/hooks/use-prefers-reduced-motion';\nimport { pressedQuietOf } from '@/registry/ndeko/lib/demonstration';\nimport {\n  LaptopIcon,\n  MonitorIcon,\n  SmartphoneIcon,\n  TabletIcon,\n  type Icon,\n} from '@/registry/ndeko/lib/icons';\nimport { rowPresenceOf } from '@/registry/ndeko/lib/motion-presets';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport { Badge } from '@/registry/ndeko/ui/badge';\nimport { Button } from '@/registry/ndeko/ui/button';\nimport { Fold } from '@/registry/ndeko/ui/chat-motion';\n\nimport type { DeviceKind, SignedInDevice } from './data';\nimport { devicesWordOf } from './session';\nimport { SURFACE } from './settings-frame';\n\nconst DEVICE_ICON: Record<DeviceKind, Icon> = {\n  laptop: LaptopIcon,\n  phone: SmartphoneIcon,\n  desktop: MonitorIcon,\n  tablet: TabletIcon,\n};\n\ntype DeviceRowProps = {\n  device: SignedInDevice;\n  isPressed: boolean;\n  onSignOut: (id: string) => void;\n};\n\nfunction DeviceRow({ device, isPressed, onSignOut }: DeviceRowProps) {\n  const DeviceIcon = DEVICE_ICON[device.kind];\n\n  return (\n    <div className='flex flex-wrap items-center gap-x-3 gap-y-2 px-4 py-3'>\n      <span className='keycap-3d text-muted-foreground flex size-8 shrink-0 items-center justify-center rounded-lg'>\n        <DeviceIcon className='size-4' />\n      </span>\n      <div className='flex min-w-0 flex-1 basis-44 flex-col gap-0.5'>\n        <p className='flex flex-wrap items-center gap-x-2 gap-y-1 text-[13px] font-medium'>\n          <span className='min-w-0'>{device.device}</span>\n          {device.isThisDevice && <Badge>This device</Badge>}\n        </p>\n        <p className='text-muted-foreground text-xs'>\n          {device.place} · {device.lastActive}\n        </p>\n      </div>\n      {!device.isThisDevice && (\n        <Button\n          type='button'\n          variant='ghost'\n          size='sm'\n          data-sign-out={device.id}\n          onClick={() => onSignOut(device.id)}\n          className={cn('text-muted-foreground', pressedQuietOf(isPressed))}\n        >\n          Sign out\n        </Button>\n      )}\n    </div>\n  );\n}\n\ntype SignOutAllConfirmProps = {\n  count: number;\n  onCancel: () => void;\n  onConfirm: () => void;\n};\n\nfunction SignOutAllConfirm({\n  count,\n  onCancel,\n  onConfirm,\n}: SignOutAllConfirmProps) {\n  function cancelOnEscape(event: React.KeyboardEvent<HTMLDivElement>) {\n    if (event.key !== 'Escape') {\n      return;\n    }\n    event.preventDefault();\n    onCancel();\n  }\n\n  return (\n    <div\n      role='group'\n      aria-label='Sign out of every other device'\n      onKeyDown={cancelOnEscape}\n      className='bg-foreground/[0.03] flex flex-wrap items-center gap-x-4 gap-y-2 px-4 py-3'\n    >\n      <p className='min-w-0 flex-1 basis-56 text-[13px] text-pretty'>\n        <span className='font-medium'>{`Sign out of ${devicesWordOf(count)}?`}</span>{' '}\n        Each one asks for a new sign-in.\n      </p>\n      <div className='flex gap-2'>\n        <Button\n          type='button'\n          variant='ghost'\n          size='sm'\n          data-sign-out-cancel\n          onClick={onCancel}\n        >\n          Cancel\n        </Button>\n        <Button\n          type='button'\n          variant='destructive'\n          size='sm'\n          onClick={onConfirm}\n        >\n          Sign out all\n        </Button>\n      </div>\n    </div>\n  );\n}\n\ntype DeviceListProps = {\n  devices: SignedInDevice[];\n  otherCount: number;\n  isConfirmingAll: boolean;\n  pressed: string | null;\n  onSignOut: (id: string) => void;\n  onCancelAll: () => void;\n  onConfirmAll: () => void;\n};\n\n/** A device signed out folds away; the confirm for all of them opens above the list, in place. */\nexport function DeviceList({\n  devices,\n  otherCount,\n  isConfirmingAll,\n  pressed,\n  onSignOut,\n  onCancelAll,\n  onConfirmAll,\n}: DeviceListProps) {\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const presence = rowPresenceOf(shouldReduceMotion);\n\n  return (\n    <div className={cn(SURFACE, 'overflow-hidden')}>\n      <Fold open={isConfirmingAll}>\n        <SignOutAllConfirm\n          count={otherCount}\n          onCancel={onCancelAll}\n          onConfirm={onConfirmAll}\n        />\n      </Fold>\n      <ul\n        data-devices\n        tabIndex={-1}\n        aria-label='Signed-in devices'\n        className='hairline-divide-y divide-border flex flex-col outline-none'\n      >\n        <AnimatePresence initial={false}>\n          {devices.map((device) => (\n            <motion.li\n              key={device.id}\n              className='overflow-hidden'\n              {...presence}\n            >\n              <DeviceRow\n                device={device}\n                isPressed={pressed === `sign-out-${device.id}`}\n                onSignOut={onSignOut}\n              />\n            </motion.li>\n          ))}\n        </AnimatePresence>\n      </ul>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/settings-05/devices.tsx"
    },
    {
      "path": "registry/ndeko/blocks/settings/settings-05/two-step.tsx",
      "content": "'use client';\n\nimport { Fragment, useId } from 'react';\n\nimport {\n  pressedQuietOf,\n  pressedSolidOf,\n} from '@/registry/ndeko/lib/demonstration';\nimport { ShieldCheckIcon } from '@/registry/ndeko/lib/icons';\nimport { cn } from '@/registry/ndeko/lib/utils';\nimport { Button } from '@/registry/ndeko/ui/button';\nimport { Fold, Swap } from '@/registry/ndeko/ui/chat-motion';\nimport { CopyButton } from '@/registry/ndeko/ui/copy-button';\nimport { LetterTile } from '@/registry/ndeko/ui/letter-tile';\nimport { MorphButton, type MorphState } from '@/registry/ndeko/ui/morph-button';\nimport {\n  OTPField,\n  OTPFieldInput,\n  OTPFieldSeparator,\n} from '@/registry/ndeko/ui/otp-field';\nimport { Switch } from '@/registry/ndeko/ui/switch';\n\nimport { CODE_LENGTH, SETUP_KEY, SETUP_KEY_TEXT, TODAY } from './data';\nimport {\n  isTwoStepSwitchedOn,\n  type SecurityState,\n  type TwoStep,\n} from './session';\nimport { describedByOf, ErrorLine, SURFACE } from './settings-frame';\n\nconst SLOTS = Array.from({ length: CODE_LENGTH }, (_, index) => index);\n\nconst SEPARATOR_AFTER = 2;\n\nconst VERIFY_LABELS: Record<MorphState, string> = {\n  idle: 'Turn on',\n  busy: 'Checking',\n  done: 'Turned on',\n};\n\nconst LINE: Record<TwoStep, string> = {\n  off: 'Ask for a code from an authenticator app when you sign in on a new device',\n  setup: 'Finish the two steps below to turn it on',\n  verifying: 'Finish the two steps below to turn it on',\n  on: `On since ${TODAY}. A new device asks for a code from your app`,\n  confirmingOff: 'Still on until you confirm below',\n};\n\nfunction verifyStateOf(twoStep: TwoStep): MorphState {\n  if (twoStep === 'verifying') {\n    return 'busy';\n  }\n  return 'idle';\n}\n\nfunction slotLabelOf(index: number) {\n  const position = index + 1;\n  return `Digit ${position} of ${CODE_LENGTH}`;\n}\n\nfunction isSettingUp(twoStep: TwoStep) {\n  const isSetup = twoStep === 'setup';\n  const isVerifying = twoStep === 'verifying';\n  return isSetup || isVerifying;\n}\n\ntype SetupStepsProps = {\n  state: SecurityState;\n  pressed: string | null;\n  onCodeChange: (code: string) => void;\n  onVerify: () => void;\n};\n\nfunction SetupSteps({\n  state,\n  pressed,\n  onCodeChange,\n  onVerify,\n}: SetupStepsProps) {\n  const codeLabelId = useId();\n  const errorId = useId();\n  const isVerifying = state.twoStep === 'verifying';\n  const hasError = state.codeError !== null;\n\n  function submit(event: React.FormEvent<HTMLFormElement>) {\n    event.preventDefault();\n    onVerify();\n  }\n\n  return (\n    <ol className='flex flex-col gap-5 px-4 pt-1 pb-4'>\n      <li className='flex gap-3'>\n        <LetterTile initial='1' size='lg' />\n        <div className='flex min-w-0 flex-1 flex-col gap-2'>\n          <p className='text-[13px] text-pretty'>\n            Add Tidewell to your authenticator app with this setup key\n          </p>\n          <div className='bg-foreground/[0.05] flex w-fit max-w-full items-center gap-1 rounded-lg py-1 ps-3 pe-1'>\n            <code className='font-mono text-[13px] break-all'>{SETUP_KEY}</code>\n            <CopyButton text={SETUP_KEY_TEXT} label='Copy the setup key' />\n          </div>\n        </div>\n      </li>\n      <li className='flex gap-3'>\n        <LetterTile initial='2' size='lg' />\n        <form\n          noValidate\n          onSubmit={submit}\n          className='flex min-w-0 flex-1 flex-col gap-2'\n        >\n          <p id={codeLabelId} className='text-[13px] text-pretty'>\n            Enter the six-digit code your app shows\n          </p>\n          <OTPField\n            length={CODE_LENGTH}\n            value={state.code}\n            autoComplete='one-time-code'\n            readOnly={isVerifying}\n            aria-labelledby={codeLabelId}\n            aria-describedby={describedByOf(hasError, errorId)}\n            onValueChange={onCodeChange}\n            onValueComplete={onVerify}\n            className='gap-1.5'\n          >\n            {SLOTS.map((index) => (\n              <Fragment key={index}>\n                <OTPFieldInput\n                  aria-label={slotLabelOf(index)}\n                  aria-invalid={hasError}\n                  className='size-9'\n                />\n                {index === SEPARATOR_AFTER && <OTPFieldSeparator />}\n              </Fragment>\n            ))}\n          </OTPField>\n          <ErrorLine\n            id={errorId}\n            error={state.codeError}\n            attempts={state.attempts}\n          />\n          <div className='flex flex-wrap items-center gap-x-3 gap-y-2 pt-1'>\n            <MorphButton\n              type='submit'\n              size='sm'\n              state={verifyStateOf(state.twoStep)}\n              labels={VERIFY_LABELS}\n              className={pressedSolidOf(pressed === 'verify')}\n            />\n            <p className='text-muted-foreground text-xs'>\n              This preview takes any six digits\n            </p>\n          </div>\n        </form>\n      </li>\n    </ol>\n  );\n}\n\ntype TurnOffConfirmProps = {\n  onKeep: () => void;\n  onConfirm: () => void;\n};\n\nfunction TurnOffConfirm({ onKeep, onConfirm }: TurnOffConfirmProps) {\n  function keepOnEscape(event: React.KeyboardEvent<HTMLDivElement>) {\n    if (event.key !== 'Escape') {\n      return;\n    }\n    event.preventDefault();\n    onKeep();\n  }\n\n  return (\n    <div\n      role='group'\n      aria-label='Turn off two-step verification'\n      onKeyDown={keepOnEscape}\n      className='bg-warning/10 mx-4 mb-4 flex flex-col gap-3 rounded-lg p-3'\n    >\n      <p className='text-[13px] text-pretty'>\n        <span className='font-medium'>Turn off two-step verification?</span>{' '}\n        Anyone who gets into one of your sign-in accounts gets into Tidewell\n        too.\n      </p>\n      <div className='flex flex-wrap justify-end gap-2'>\n        <Button\n          type='button'\n          variant='ghost'\n          size='sm'\n          data-keep-two-step\n          onClick={onKeep}\n        >\n          Keep it on\n        </Button>\n        <Button\n          type='button'\n          variant='destructive'\n          size='sm'\n          onClick={onConfirm}\n        >\n          Turn off\n        </Button>\n      </div>\n    </div>\n  );\n}\n\ntype TwoStepCardProps = {\n  state: SecurityState;\n  pressed: string | null;\n  onSwitch: (isOn: boolean) => void;\n  onCodeChange: (code: string) => void;\n  onVerify: () => void;\n  onTurnOff: () => void;\n};\n\n/** The switch grows a setup panel under it; the first code turns it on. */\nexport function TwoStepCard({\n  state,\n  pressed,\n  onSwitch,\n  onCodeChange,\n  onVerify,\n  onTurnOff,\n}: TwoStepCardProps) {\n  const labelId = useId();\n  const lineId = useId();\n  const twoStep = state.twoStep;\n  const isChecked = isTwoStepSwitchedOn(twoStep);\n  const isVerifying = twoStep === 'verifying';\n  const isOn = twoStep === 'on';\n  const line = LINE[twoStep];\n\n  return (\n    <div className={SURFACE}>\n      <div className='flex items-center gap-3 px-4 py-3'>\n        <span\n          className={cn(\n            'keycap-3d flex size-8 shrink-0 items-center justify-center rounded-lg transition-colors duration-200',\n            isOn && 'text-success-foreground',\n            !isOn && 'text-muted-foreground'\n          )}\n        >\n          <ShieldCheckIcon className='size-4' />\n        </span>\n        <div className='flex min-w-0 flex-1 flex-col gap-0.5'>\n          <p id={labelId} className='text-[13px] font-medium'>\n            Two-step verification\n          </p>\n          <p id={lineId} className='text-muted-foreground flex min-w-0 text-xs'>\n            <Swap swapKey={line} className='min-w-0'>\n              {line}\n            </Swap>\n          </p>\n        </div>\n        <span\n          className={cn(\n            'inline-flex rounded-full transition-[scale] duration-150 ease-(--ease-out-strong)',\n            pressedQuietOf(pressed === 'two-step')\n          )}\n        >\n          <Switch\n            data-two-step\n            checked={isChecked}\n            disabled={isVerifying}\n            onCheckedChange={onSwitch}\n            aria-labelledby={labelId}\n            aria-describedby={lineId}\n          />\n        </span>\n      </div>\n      <Fold open={isSettingUp(twoStep)}>\n        <SetupSteps\n          state={state}\n          pressed={pressed}\n          onCodeChange={onCodeChange}\n          onVerify={onVerify}\n        />\n      </Fold>\n      <Fold open={twoStep === 'confirmingOff'}>\n        <TurnOffConfirm onKeep={() => onSwitch(true)} onConfirm={onTurnOff} />\n      </Fold>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/settings-05/two-step.tsx"
    },
    {
      "path": "registry/ndeko/blocks/settings/settings-05/settings-frame.tsx",
      "content": "'use client';\n\nimport { AnimatePresence, motion } from 'motion/react';\nimport { useId } from 'react';\n\nimport { usePrefersReducedMotion } from '@/registry/ndeko/hooks/use-prefers-reduced-motion';\nimport { rowPresenceOf, SPRING } from '@/registry/ndeko/lib/motion-presets';\n\nexport const SURFACE =\n  'bg-card hairline-ring ring-border rounded-xl shadow-[0_1px_2px_rgb(0_0_0/0.04)] dark:bg-foreground/[0.03]';\n\nconst NUDGE = { initial: { x: 4 }, animate: { x: 0 } };\n\nconst STILL = { initial: false, animate: { x: 0 } };\n\nfunction nudgeOf(shouldReduceMotion: boolean) {\n  if (shouldReduceMotion) {\n    return STILL;\n  }\n  return NUDGE;\n}\n\nexport function describedByOf(hasError: boolean, errorId: string) {\n  if (hasError) {\n    return errorId;\n  }\n  return undefined;\n}\n\ntype SettingsFrameProps = {\n  ref?: React.Ref<HTMLDivElement>;\n  title: string;\n  line: string;\n  /** Sits beside the title: the Replay of the demonstration. */\n  aside?: React.ReactNode;\n  children: React.ReactNode;\n};\n\n/** A settings page that follows its own width: one column, the title above, the sections under it. */\nexport function SettingsFrame({\n  ref,\n  title,\n  line,\n  aside,\n  children,\n}: SettingsFrameProps) {\n  return (\n    <div\n      ref={ref}\n      className='bg-background text-foreground @container min-h-dvh w-full'\n    >\n      <div className='mx-auto flex w-full max-w-3xl flex-col gap-8 px-4 py-8 @2xl:px-6 @2xl:py-10'>\n        <header className='flex flex-wrap items-start gap-x-3 gap-y-2'>\n          <div className='flex min-w-0 flex-1 basis-64 flex-col gap-1'>\n            <h1 className='text-2xl font-semibold text-balance @xl:text-3xl'>\n              {title}\n            </h1>\n            <p className='text-muted-foreground text-[13px] text-pretty'>\n              {line}\n            </p>\n          </div>\n          {aside}\n        </header>\n        {children}\n      </div>\n    </div>\n  );\n}\n\ntype SettingsSectionProps = {\n  title: string;\n  line?: React.ReactNode;\n  action?: React.ReactNode;\n  children: React.ReactNode;\n};\n\nexport function SettingsSection({\n  title,\n  line,\n  action,\n  children,\n}: SettingsSectionProps) {\n  const headingId = useId();\n\n  return (\n    <section aria-labelledby={headingId} className='flex flex-col gap-3'>\n      <div className='flex flex-wrap items-end justify-between gap-x-3 gap-y-2'>\n        <div className='flex min-w-0 flex-col gap-0.5'>\n          <h2 id={headingId} className='text-sm font-medium'>\n            {title}\n          </h2>\n          {line && (\n            <p className='text-muted-foreground text-xs text-pretty'>{line}</p>\n          )}\n        </div>\n        {action}\n      </div>\n      {children}\n    </section>\n  );\n}\n\ntype ErrorLineProps = {\n  /** The field points to it with `aria-describedby` while it shows. */\n  id: string;\n  error: string | null;\n  /** A new refusal of the same entry nudges the line again. */\n  attempts: number;\n};\n\n/** A refusal grows in under its field, nudges 4px, and folds away once the person types again. */\nexport function ErrorLine({ id, error, attempts }: ErrorLineProps) {\n  const shouldReduceMotion = usePrefersReducedMotion();\n  const presence = rowPresenceOf(shouldReduceMotion);\n  const nudge = nudgeOf(shouldReduceMotion);\n\n  return (\n    <AnimatePresence initial={false}>\n      {error && (\n        <motion.div key='error' className='overflow-hidden' {...presence}>\n          <motion.p\n            key={attempts}\n            id={id}\n            className='text-destructive-ink pt-0.5 text-xs text-pretty'\n            transition={SPRING}\n            {...nudge}\n          >\n            {error}\n          </motion.p>\n        </motion.div>\n      )}\n    </AnimatePresence>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/blocks/settings-05/settings-frame.tsx"
    },
    {
      "path": "registry/ndeko/blocks/settings/settings-05/session.ts",
      "content": "import type { SessionStep } from '@/registry/ndeko/hooks/use-session';\nimport { keyDelayOf, prefixesOf } from '@/registry/ndeko/lib/demonstration';\n\nimport {\n  CODE_LENGTH,\n  DEVICES,\n  PROVIDERS,\n  TODAY,\n  type Provider,\n  type ProviderId,\n  type SignedInDevice,\n} from './data';\n\n/** Off, being set up, checking the first code, on, or asking before it goes off. */\nexport type TwoStep = 'off' | 'setup' | 'verifying' | 'on' | 'confirmingOff';\n\nexport type SecurityState = {\n  providers: Provider[];\n  /** The provider whose Disconnect waits for a confirm, because it is the last way in. */\n  confirmingId: ProviderId | null;\n  devices: SignedInDevice[];\n  isConfirmingAll: boolean;\n  twoStep: TwoStep;\n  code: string;\n  codeError: string | null;\n  attempts: number;\n  spoken: string;\n};\n\nexport type SecurityAction =\n  | { type: 'connectStarted'; id: ProviderId }\n  | { type: 'connected'; id: ProviderId }\n  | { type: 'disconnectAsked'; id: ProviderId }\n  | { type: 'disconnectConfirmed'; id: ProviderId }\n  | { type: 'disconnectCancelled' }\n  | { type: 'signedOut'; id: string }\n  | { type: 'signOutAllAsked' }\n  | { type: 'signOutAllCancelled' }\n  | { type: 'signOutAllConfirmed' }\n  | { type: 'twoStepSwitched'; isOn: boolean }\n  | { type: 'codeTyped'; value: string }\n  | { type: 'verifyPressed' }\n  | { type: 'verified' }\n  | { type: 'turnOffConfirmed' };\n\ntype Step = SessionStep<SecurityState, SecurityAction>;\n\n/** How long a provider takes to send the person back once they allowed the link. */\nexport const CONNECT_MS = 1100;\n\n/** How long the first code takes to be checked. */\nexport const VERIFY_MS = 900;\n\nexport const INITIAL: SecurityState = {\n  providers: PROVIDERS,\n  confirmingId: null,\n  devices: DEVICES,\n  isConfirmingAll: false,\n  twoStep: 'off',\n  code: '',\n  codeError: null,\n  attempts: 0,\n  spoken: '',\n};\n\nexport function providerOf(state: SecurityState, id: ProviderId) {\n  return state.providers.find((provider) => provider.id === id);\n}\n\nexport function connectedCountOf(state: SecurityState) {\n  const connected = state.providers.filter(\n    (provider) => provider.status === 'connected'\n  );\n  return connected.length;\n}\n\nexport function otherDevicesOf(state: SecurityState) {\n  return state.devices.filter((device) => !device.isThisDevice);\n}\n\nexport function isTwoStepSwitchedOn(twoStep: TwoStep) {\n  const isOff = twoStep === 'off';\n  const isAsking = twoStep === 'confirmingOff';\n  return !isOff && !isAsking;\n}\n\nfunction withProvider(\n  state: SecurityState,\n  id: ProviderId,\n  change: Partial<Provider>\n): SecurityState {\n  const providers = state.providers.map((provider) => {\n    if (provider.id !== id) {\n      return provider;\n    }\n    return { ...provider, ...change };\n  });\n  return { ...state, providers };\n}\n\nfunction connectStarted(state: SecurityState, id: ProviderId) {\n  const provider = providerOf(state, id);\n  if (provider?.status !== 'disconnected') {\n    return state;\n  }\n  const next = withProvider(state, id, { status: 'connecting' });\n  return {\n    ...next,\n    confirmingId: null,\n    spoken: `Connecting ${provider.name}`,\n  };\n}\n\nfunction connected(state: SecurityState, id: ProviderId) {\n  const provider = providerOf(state, id);\n  if (provider?.status !== 'connecting') {\n    return state;\n  }\n  const next = withProvider(state, id, {\n    status: 'connected',\n    connectedSince: TODAY,\n  });\n  return { ...next, spoken: `${provider.name} connected` };\n}\n\nfunction disconnected(state: SecurityState, id: ProviderId): SecurityState {\n  const provider = providerOf(state, id);\n  if (provider?.status !== 'connected') {\n    return state;\n  }\n  const next = withProvider(state, id, { status: 'disconnected' });\n  return {\n    ...next,\n    confirmingId: null,\n    spoken: `${provider.name} disconnected`,\n  };\n}\n\n/** The last way in is never removed by one press: it asks first. */\nfunction disconnectAsked(state: SecurityState, id: ProviderId) {\n  const isLastWay = connectedCountOf(state) === 1;\n  if (!isLastWay) {\n    return disconnected(state, id);\n  }\n  const provider = providerOf(state, id);\n  if (provider?.status !== 'connected') {\n    return state;\n  }\n  return {\n    ...state,\n    confirmingId: id,\n    spoken: `${provider.name} is your only way to sign in. Confirm to disconnect it`,\n  };\n}\n\nfunction signedOut(state: SecurityState, id: string): SecurityState {\n  const device = state.devices.find((candidate) => candidate.id === id);\n  const canSignOut = device !== undefined && !device.isThisDevice;\n  if (!canSignOut) {\n    return state;\n  }\n  const devices = state.devices.filter((candidate) => candidate.id !== id);\n  const hasOthersLeft = devices.some((candidate) => !candidate.isThisDevice);\n  const isConfirmingAll = state.isConfirmingAll && hasOthersLeft;\n  return {\n    ...state,\n    devices,\n    isConfirmingAll,\n    spoken: `Signed out of ${device.device}`,\n  };\n}\n\nfunction signOutAllConfirmed(state: SecurityState): SecurityState {\n  const others = otherDevicesOf(state);\n  const devices = state.devices.filter((device) => device.isThisDevice);\n  return {\n    ...state,\n    devices,\n    isConfirmingAll: false,\n    spoken: `Signed out of ${devicesWordOf(others.length)}`,\n  };\n}\n\nexport function devicesWordOf(count: number) {\n  if (count === 1) {\n    return '1 other device';\n  }\n  return `${count} other devices`;\n}\n\nfunction switchedOn(state: SecurityState): SecurityState {\n  if (state.twoStep === 'off') {\n    return {\n      ...state,\n      twoStep: 'setup',\n      code: '',\n      codeError: null,\n      spoken: 'Two-step setup opened',\n    };\n  }\n  if (state.twoStep === 'confirmingOff') {\n    return {\n      ...state,\n      twoStep: 'on',\n      spoken: 'Two-step verification stays on',\n    };\n  }\n  return state;\n}\n\n/** Leaving the setup unfinished turns it off at once; turning it off once it is on asks first. */\nfunction switchedOff(state: SecurityState): SecurityState {\n  if (state.twoStep === 'on') {\n    return {\n      ...state,\n      twoStep: 'confirmingOff',\n      spoken: 'Confirm to turn off two-step verification',\n    };\n  }\n  const isSettingUp = state.twoStep === 'setup';\n  if (isSettingUp) {\n    return { ...state, twoStep: 'off', spoken: 'Two-step setup closed' };\n  }\n  return state;\n}\n\nfunction twoStepSwitched(state: SecurityState, isOn: boolean) {\n  if (isOn) {\n    return switchedOn(state);\n  }\n  return switchedOff(state);\n}\n\nfunction verifyPressed(state: SecurityState): SecurityState {\n  if (state.twoStep !== 'setup') {\n    return state;\n  }\n  const isComplete = state.code.length === CODE_LENGTH;\n  if (!isComplete) {\n    const problem = `Enter the ${CODE_LENGTH} digits your app shows`;\n    return {\n      ...state,\n      codeError: problem,\n      attempts: state.attempts + 1,\n      spoken: problem,\n    };\n  }\n  return { ...state, twoStep: 'verifying', spoken: 'Checking the code' };\n}\n\nfunction verified(state: SecurityState): SecurityState {\n  if (state.twoStep !== 'verifying') {\n    return state;\n  }\n  return {\n    ...state,\n    twoStep: 'on',\n    code: '',\n    spoken: 'Two-step verification is on',\n  };\n}\n\nexport function reducer(\n  state: SecurityState,\n  action: SecurityAction\n): SecurityState {\n  switch (action.type) {\n    case 'connectStarted':\n      return connectStarted(state, action.id);\n    case 'connected':\n      return connected(state, action.id);\n    case 'disconnectAsked':\n      return disconnectAsked(state, action.id);\n    case 'disconnectConfirmed':\n      return disconnected(state, action.id);\n    case 'disconnectCancelled':\n      return { ...state, confirmingId: null, spoken: '' };\n    case 'signedOut':\n      return signedOut(state, action.id);\n    case 'signOutAllAsked':\n      return { ...state, isConfirmingAll: true };\n    case 'signOutAllCancelled':\n      return { ...state, isConfirmingAll: false };\n    case 'signOutAllConfirmed':\n      return signOutAllConfirmed(state);\n    case 'twoStepSwitched':\n      return twoStepSwitched(state, action.isOn);\n    case 'codeTyped':\n      return { ...state, code: action.value, codeError: null };\n    case 'verifyPressed':\n      return verifyPressed(state);\n    case 'verified':\n      return verified(state);\n    case 'turnOffConfirmed':\n      return {\n        ...state,\n        twoStep: 'off',\n        spoken: 'Two-step verification is off',\n      };\n  }\n}\n\nconst DIGIT_MS = 130;\n\nconst SAMPLE_CODE = '428913';\n\nfunction codeSteps(startAfter: number): Step[] {\n  const prefixes = prefixesOf(SAMPLE_CODE);\n  return prefixes.map((value, index) => ({\n    after: keyDelayOf(index, startAfter, DIGIT_MS),\n    by: 'demo',\n    action: { type: 'codeTyped', value },\n  }));\n}\n\n/**\n * The demonstration tries to drop the last way in and keeps it, connects a second account, signs\n * out a device it does not use, then sets up two-step and types the first code. That is where the\n * page rests under reduced motion: every section in use, the code ready to send.\n */\nconst BEFORE_VERIFY: Step[] = [\n  {\n    after: 1300,\n    by: 'demo',\n    press: 'disconnect-google',\n    action: { type: 'disconnectAsked', id: 'google' },\n  },\n  {\n    after: 1900,\n    by: 'demo',\n    press: 'keep-google',\n    action: { type: 'disconnectCancelled' },\n  },\n  {\n    after: 900,\n    by: 'demo',\n    press: 'connect-github',\n    action: { type: 'connectStarted', id: 'github' },\n  },\n  { after: CONNECT_MS, action: { type: 'connected', id: 'github' } },\n  {\n    after: 1400,\n    by: 'demo',\n    press: 'sign-out-windows',\n    action: { type: 'signedOut', id: 'windows' },\n  },\n  {\n    after: 1500,\n    by: 'demo',\n    press: 'two-step',\n    action: { type: 'twoStepSwitched', isOn: true },\n  },\n  ...codeSteps(1300),\n];\n\nexport const SCRIPT: Step[] = [\n  ...BEFORE_VERIFY,\n  {\n    after: 600,\n    by: 'demo',\n    press: 'verify',\n    action: { type: 'verifyPressed' },\n  },\n  { after: VERIFY_MS, action: { type: 'verified' } },\n];\n\nfunction endOf(steps: Step[]) {\n  let state = INITIAL;\n  for (const step of steps) {\n    state = reducer(state, step.action);\n  }\n  return state;\n}\n\nexport const RESTING: SecurityState = { ...endOf(BEFORE_VERIFY), spoken: '' };\n\nexport const LOOP_AFTER_MS = 3400;\n",
      "type": "registry:component",
      "target": "components/blocks/settings-05/session.ts"
    },
    {
      "path": "registry/ndeko/blocks/settings/settings-05/data.ts",
      "content": "import type { BrandSlug } from '@/registry/ndeko/lib/brand-logos';\n\nexport type ProviderId = 'google' | 'github' | 'gitlab';\n\nexport type LinkStatus = 'connected' | 'connecting' | 'disconnected';\n\nexport type Provider = {\n  id: ProviderId;\n  name: string;\n  brand: BrandSlug;\n  /** The account the provider signs in, once it is connected. */\n  account: string;\n  status: LinkStatus;\n  connectedSince: string;\n};\n\nexport type DeviceKind = 'laptop' | 'phone' | 'desktop' | 'tablet';\n\nexport type SignedInDevice = {\n  id: string;\n  device: string;\n  kind: DeviceKind;\n  /** Places are invented, like everyone in the sample. */\n  place: string;\n  lastActive: string;\n  isThisDevice: boolean;\n};\n\nexport const EMAIL = 'dana@tidewell.example';\n\nexport const TODAY = 'Nov 12, 2026';\n\nexport const CODE_LENGTH = 6;\n\n/** A sample setup key: the word in it says it is one. */\nconst SETUP_KEY_GROUPS = ['SAMP', 'LE7K', 'Q4TW', 'DM2X'];\n\nexport const SETUP_KEY = SETUP_KEY_GROUPS.join(' ');\n\n/** What an authenticator app takes when the key is pasted. */\nexport const SETUP_KEY_TEXT = SETUP_KEY_GROUPS.join('');\n\nexport const PROVIDERS: Provider[] = [\n  {\n    id: 'google',\n    name: 'Google',\n    brand: 'google',\n    account: EMAIL,\n    status: 'connected',\n    connectedSince: 'Mar 3, 2024',\n  },\n  {\n    id: 'github',\n    name: 'GitHub',\n    brand: 'github',\n    account: 'dana-whitfield',\n    status: 'disconnected',\n    connectedSince: '',\n  },\n  {\n    id: 'gitlab',\n    name: 'GitLab',\n    brand: 'gitlab',\n    account: 'dwhitfield',\n    status: 'disconnected',\n    connectedSince: '',\n  },\n];\n\nexport const DEVICES: SignedInDevice[] = [\n  {\n    id: 'macbook',\n    device: 'Safari on a MacBook Air',\n    kind: 'laptop',\n    place: 'Port Calder',\n    lastActive: 'Active now',\n    isThisDevice: true,\n  },\n  {\n    id: 'iphone',\n    device: 'Tidewell app on an iPhone',\n    kind: 'phone',\n    place: 'Port Calder',\n    lastActive: '2 hours ago',\n    isThisDevice: false,\n  },\n  {\n    id: 'windows',\n    device: 'Firefox on Windows',\n    kind: 'desktop',\n    place: 'Lindenfeld',\n    lastActive: 'Yesterday',\n    isThisDevice: false,\n  },\n  {\n    id: 'tablet',\n    device: 'Chrome on an Android tablet',\n    kind: 'tablet',\n    place: 'Harrowgate Bay',\n    lastActive: 'Oct 28',\n    isThisDevice: false,\n  },\n];\n",
      "type": "registry:component",
      "target": "components/blocks/settings-05/data.ts"
    }
  ],
  "categories": [
    "blocks",
    "settings"
  ],
  "type": "registry:block"
}