+_                       = require 'lodash'
 kd                      = require 'kd'
 KDButtonView            = kd.ButtonView
 KDCustomHTMLView        = kd.CustomHTMLView

    else kd.utils.wait 8000, @bound 'unlockSubmit'


  getPayload: -> return @embedBox.getData()


  showError: (err, options = {}) ->

    return  if @locked
    return @reset yes  unless body = value.trim()

    activity        = @getData()
    {app, channel}  = @getOptions()
    embedBoxPayload = @getEmbedBoxPayload()

    payload = _.assign {}, activity?.payload, embedBoxPayload

    timestamp       = Date.now()
    clientRequestId = generateFakeIdentifier timestamp
