import { formscreen } from "./formscreen.js"; export class rents_screen extends formscreen { #target; #email; #phone; get _email() { return this.#email(); } get _phone() { return this.#phone(); } constructor(target) { super(); this.#target = target; } get _target() { return this.#target; } _build_form() { this.#email = this._create_input( "email", "E-mail:", "sample@example.com", (input) => { input.type = "email"; } ); this.#phone = this._create_input( "phone", "Phone number:", "123-456-789", (input) => { input.type = "tel"; input.pattern = "[0-9]{3}-[0-9]{3}-[0-9]{3}"; } ); } }