PATH:
home
/
thebhoeo
/
.trash
/
wpforms-lite-pro
/
assets
/
js
/
integrations
/
ai
/
chat-element
/
modules
export default function(r){let t={init(){r.sessionId&&(WPFormsAIFormGenerator.state.chatStart=!0,WPFormsAIFormGenerator.main.el.$templateCard.next(".selected").removeClass("selected"))},resetInput(){r.resizeInput()},getAnswer(e){var t;return e?(t=Math.floor(Math.random()*r.modeStrings.footer.length),t=r.modeStrings.footer[t],` <h4>${e.explanation||(e.form_title??"")}</h4> <span>${t}</span> `):""},getAnswerButtonsPre(){return` <button type="button" class="wpforms-ai-chat-use-form wpforms-ai-chat-answer-action wpforms-btn-sm wpforms-btn-orange" > <span>${r.modeStrings.useForm}</span> </button> `},addedAnswer(e){t.updateInactiveAnswers()},setActiveAnswer(e){t.updateInactiveAnswers(),e.querySelector(".wpforms-chat-item-content").setAttribute("title","")},updateInactiveAnswers(){r.messageList.querySelectorAll(".wpforms-chat-item-answer:not(.active) .wpforms-chat-item-content").forEach(e=>{e.setAttribute("title",r.modeStrings.inactiveAnswerTitle)})},isWelcomeScreen(){return!0},sanitizeResponse(e){return e.explanation&&(e.explanation=wpf.sanitizeHTML(e.explanation,wpforms_builder.allowed_label_html_tags)),e}};return t}
[-] helpers-text.min.js
[edit]
[-] helpers-forms.min.js
[edit]
[-] helpers-text.js
[edit]
[-] helpers-choices.js
[edit]
[+]
..
[-] helpers-forms.js
[edit]
[-] api.js
[edit]
[-] helpers-choices.min.js
[edit]
[-] api.min.js
[edit]