class Avo::ActionsComponent

def encrypted_arguments(action)

We use Base64 to encode the encrypted string so we can safely pass it as a query param and don't break the URL.
EncryptionService can generate special characters that can break the URL.
Encrypt the arguments so we can pass them as a query param.
def encrypted_arguments(action)
  return if action.arguments.blank?
  Base64.encode64 Avo::Services::EncryptionService.encrypt(
    message: action.arguments,
    purpose: :action_arguments
  )
end