()
| 718 | } |
| 719 | }; |
| 720 | J4 = (r3) => new TD({ validate: r3.validate, placeholder: r3.placeholder, defaultValue: r3.defaultValue, initialValue: r3.initialValue, render() { |
| 721 | const n2 = `${import_picocolors2.default.gray(a2)} |
| 722 | ${h2(this.state)} ${r3.message} |
| 723 | `, s2 = r3.placeholder ? import_picocolors2.default.inverse(r3.placeholder[0]) + import_picocolors2.default.dim(r3.placeholder.slice(1)) : import_picocolors2.default.inverse(import_picocolors2.default.hidden("_")), t2 = this.value ? this.valueWithCursor : s2; |
| 724 | switch (this.state) { |
| 725 | case "error": |
| 726 | return `${n2.trim()} |
| 727 | ${import_picocolors2.default.yellow(a2)} ${t2} |
| 728 | ${import_picocolors2.default.yellow(o)} ${import_picocolors2.default.yellow(this.error)} |
| 729 | `; |
| 730 | case "submit": |
| 731 | return `${n2}${import_picocolors2.default.gray(a2)} ${import_picocolors2.default.dim(this.value || r3.placeholder)}`; |
| 732 | case "cancel": |
| 733 | return `${n2}${import_picocolors2.default.gray(a2)} ${import_picocolors2.default.strikethrough(import_picocolors2.default.dim(this.value ?? ""))}${this.value?.trim() ? ` |
| 734 | ` + import_picocolors2.default.gray(a2) : ""}`; |
| 735 | default: |
| 736 | return `${n2}${import_picocolors2.default.cyan(a2)} ${t2} |
| 737 | ${import_picocolors2.default.cyan(o)} |
| 738 | `; |
| 739 | } |
| 740 | } }).prompt(); |
| 741 | Y3 = (r3) => new mD2({ validate: r3.validate, mask: r3.mask ?? q4, render() { |
| 742 | const n2 = `${import_picocolors2.default.gray(a2)} |
| 743 | ${h2(this.state)} ${r3.message} |
no test coverage detected
searching dependent graphs…