/*! amazeui-dialog v0.0.2 | by Amaze UI Team | (c) 2016 AllMobilize, Inc. | Licensed under MIT | 2016-06-22T10:19:33+0800 */ !function o(n,a,i){function s(d,l){if(!a[d]){if(!n[d]){var e="function"==typeof require&&require;if(!l&&e)return e(d,!0);if(t)return t(d,!0);var u=new Error("Cannot find module '"+d+"'");throw u.code="MODULE_NOT_FOUND",u}var m=a[d]={exports:{}};n[d][0].call(m.exports,function(o){var a=n[d][1][o];return s(a?a:o)},m,m.exports,o,n,a,i)}return a[d].exports}for(var t="function"==typeof require&&require,d=0;d'),n.push('
'),n.push('
'+o.title+"
"),n.push('
'+o.content+"
"),n.push(''),n.push("
"),n.push(""),a(n.join("")).appendTo("body").modal().on("closed.modal.amui",function(){o.onConfirm(),a(this).remove()})},s.confirm=function(o){o=o||{},o.title=o.title||"提示",o.content=o.content||"提示内容",o.onConfirm=o.onConfirm||function(){},o.onCancel=o.onCancel||function(){};var n=[];return n.push('
'),n.push('
'),n.push('
'+o.title+"
"),n.push('
'+o.content+"
"),n.push('"),n.push("
"),n.push("
"),a(n.join("")).appendTo("body").modal({onConfirm:function(e){o.onConfirm(e)},onCancel:function(){o.onCancel()}}).on("closed.modal.amui",function(){a(this).remove()})},s.loading=function(o){o=o||{},o.title=o.title||"正在载入...";var n=[];return n.push('
'),n.push('
'),n.push('
'+o.title+"
"),n.push('
'),n.push(''),n.push("
"),n.push("
"),n.push("
"),a(n.join("")).appendTo("body").modal().on("closed.modal.amui",function(){a(this).remove()})},s.actions=function(o){o=o||{},o.title=o.title||"您想整咋样?",o.items=o.items||[],o.onSelected=o.onSelected||function(){i.close()};var n=[];n.push('
'),n.push('
'),n.push('
    '),n.push('
  • '+o.title+"
  • "),o.items.forEach(function(o,a){n.push('
  • '+o.content+"
  • ")}),n.push("
"),n.push("
"),n.push('
'),n.push(''),n.push("
"),n.push("
");var i=a(n.join("")).appendTo("body");return i.find(".am-list>li").bind("click",function(n){o.onSelected(a(this).attr("index"),this)}),{show:function(){i.modal("open")},close:function(){i.modal("close")}}},s.popup=function(o){o=o||{},o.title=o.title||"标题",o.content=o.content||"正文",o.onClose=o.onClose||function(){};var n=[];return n.push('
'),n.push('
'),n.push('
'),n.push('

'+o.title+"

"),n.push('×'),n.push("
"),n.push('
'+o.content+"
"),n.push("
"),n.push("
"),a(n.join("")).appendTo("body").modal().on("closed.modal.amui",function(){a(this).remove(),o.onClose()})},n.exports=i.dialog=s}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);