" +
// Error icon
"
\n \n \n \n \n
" +
// Warning icon
"
\n \n \n
" +
// Info icon
"
" +
// Success icon
"
" + "
" +
// Title, text and input
"
Title
\n
Text
\n
\n \n \n Not valid\n \n
" +
// Cancel and confirm buttons
"
" +
// End of modal
"
";
exports.default = injectedHTML;
},{}],7:[function(require,module,exports){
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _utils = require('./utils');
var _handleSwalDom = require('./handle-swal-dom');
var _handleDom = require('./handle-dom');
var alertTypes = ['error', 'warning', 'info', 'success', 'input', 'prompt'];
/*
* Set type, text and actions on modal
*/
var setParameters = function setParameters(params) {
var modal = (0, _handleSwalDom.getModal)();
var $title = modal.querySelector('h2');
var $text = modal.querySelector('p');
var $cancelBtn = modal.querySelector('button.cancel');
var $confirmBtn = modal.querySelector('button.confirm');
/*
* Title
*/
$title.innerHTML = params.html ? params.title : (0, _handleDom.escapeHtml)(params.title).split('\n').join('