Rocky_Mountain_Vending/.pnpm-store/v10/files/49/fd56603590c49e40b46fea1968692c12c7bcbe69f2646ce62b1b8d23052425641b679a80ced93a04a7cc5195763dfebeba64d2e541f917cbada63a9976b284
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

32 lines
729 B
Text

/**
* @license
* Copyright 2017 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
import {Dialog} from '../api/Dialog.js';
import type {UserPrompt} from './core/UserPrompt.js';
export class BidiDialog extends Dialog {
static from(prompt: UserPrompt): BidiDialog {
return new BidiDialog(prompt);
}
#prompt: UserPrompt;
private constructor(prompt: UserPrompt) {
super(prompt.info.type, prompt.info.message, prompt.info.defaultValue);
this.#prompt = prompt;
this.handled = prompt.handled;
}
override async handle(options: {
accept: boolean;
text?: string;
}): Promise<void> {
await this.#prompt.handle({
accept: options.accept,
userText: options.text,
});
}
}