define(['dialogHelper', 'layoutManager', 'dialogText', 'html!./../prompt/icons.html', 'css!./../prompt/style.css', 'paper-button', 'paper-input'], function (dialogHelper, layoutManager, dialogText) { return function (options) { if (typeof options === 'string') { options = { title: '', text: options }; } var dialogOptions = { removeOnClose: true }; var backButton = false; var raisedButtons = false; if (layoutManager.tv) { dialogOptions.size = 'fullscreen'; backButton = true; raisedButtons = true; } else { dialogOptions.modal = false; dialogOptions.entryAnimationDuration = 160; dialogOptions.exitAnimationDuration = 200; } var dlg = dialogHelper.createDialog(dialogOptions); dlg.classList.add('promptDialog'); var html = ''; html += '
'; } else { html += '
'; } html += text; html += '
'; } var buttonText = options.type == 'error' ? 'Ok' : 'GotIt'; if (raisedButtons) { html += '