import type { Theme } from "@earendil-works/pi-coding-agent"; import { LAN_VOICE_BROWSER_SCRIPT } from "./browser-script.ts"; import { LAN_VOICE_BROWSER_SETTINGS_SCRIPT } from "./browser-settings-script.ts"; import { resolveLanVoiceWebTheme } from "./theme.ts"; export function createLanVoiceWebUi(piTheme: Theme): string { const theme = resolveLanVoiceWebTheme(piTheme); return String.raw` GipPity remote control

GipPity

remote control

Tap to start voice

Connecting
Voice settings

Saved settings apply on the next Start. Saving does not restart or change the current call.

Off starts without a Pi context summary. Models use their own account's pricing or subscription allowance.

This browser uses its own microphone and speaker. Choose browser devices in your browser or system settings; native host device choices stay in Pi settings.

Credentials and account selection stay in Pi. Closing this page leaves the host call running; Stop ends it.

`; }