define(["dialog","globalize"],function(dialog,globalize){"use strict";return function(text,title){var options="string"==typeof text?{title:title,text:text}:text,items=[];return items.push({name:options.confirmText||globalize.translate("ButtonGotIt"),id:"ok",type:"submit",href:options.confirmHref}),options.buttons=items,dialog(options).then(function(result){return"ok"===result?Promise.resolve():Promise.reject()})}});