REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.21 KB
Close
/home/nshryvcy/himaltourism.com/wp-content/plugins/wpforms-lite/assets/js/integrations/ai/modules/helpers-text.js
Text
Base64
/* global WPFormsAIChatHTMLElement */ /** * The WPForms AI chat element. * * Choices helpers module. * * @since 1.9.1 * * @param {WPFormsAIChatHTMLElement} chat The chat element. * * @return {Function} The app cloning function. */ export default function( chat ) { // eslint-disable-line no-unused-vars /** * The default `text` mode helpers object. * * @since 1.9.1 */ return { /** * Get the `text` answer based on AI response data. * * @since 1.9.1 * * @param {Object} response The AI response data. * * @return {string} HTML markup. */ getAnswer( response ) { return ` <h4>${ response?.heading ?? '' }</h4> <p>${ response?.text ?? '' }</p> <span>${ response?.footer ?? '' }</span> `; }, /** * Get the answer pre-buttons HTML markup. * * @since 1.9.1 * * @return {string} The answer pre-buttons HTML markup. */ getAnswerButtonsPre() { return ''; }, /** * Added answer callback. * * @since 1.9.1 */ addedAnswer() {}, /** * Determine whether the Welcome Screen should be displayed. * * @since 1.9.2 * * @return {boolean} Display the Welcome Screen or not. */ isWelcomeScreen() { return true; }, }; }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
api.js
3.15 KB
lrw-r--r--
2025-01-05 05:34:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
api.min.js
998 B
lrw-r--r--
2025-01-05 05:34:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
helpers-choices.js
8.35 KB
lrw-r--r--
2025-01-05 05:34:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
helpers-choices.min.js
3.49 KB
lrw-r--r--
2025-01-05 05:34:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
helpers-text.js
1.21 KB
lrw-r--r--
2025-01-05 05:34:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
helpers-text.min.js
229 B
lrw-r--r--
2025-01-05 05:34:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).