text: /*!
   * Mochi Plugin - Dialog v1.0 (https://github.com/codeworksdev/mochi/tree/master/dist/frontend/js/plugins/dialog)
   * Copyright (c) 2014-2018 CODEWORKS <support@codeworksnyc.com>
   * Licensed under the MIT license
   */
  $(document).ready(function(){$m.extend('dialog',MochiPlugin__Dialog)});function MochiPlugin__Dialog(){this._options(),this._html(),this._vars()}MochiPlugin__Dialog.prototype={_options:function(){this.options={appendTo:'body',autoOpen:!0,buttons:{OK:function(){$(this).dialog('close')}},classes:{'ui-dialog':'ui-corner-all mochi-plugin-dialog','ui-dialog-titlebar':'ui-corner-all'},closeOnEscape:!1,closeText:'close',draggable:!1,height:'auto',hide:null,maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!0,position:{my:'top',at:'center top',of:window},resizable:!1,show:null,title:null,width:function(a){return 670<a?640:a-30}($('body').width())}},_html:function(){$m.__body.append('<div data-mochi="plugin" id="mochi-plugin-dialog" title="Confirm"></div>')},_vars:function(){this.container=$('#mochi-plugin-dialog')},html:function(a,c){if('string'==typeof a)if(c)switch(typeof c){case'string':this.container.find(c).html(a);}else this.container.html(a);return this},open:function(a,c,d){var e=_.extend(this.options,c||{});return this.container.html(a).dialog(e),d&&_.isFunction(d)&&d.call(this.container),this.container.parent().find('.ui-dialog-titlebar .ui-dialog-titlebar-close').focus(),function(f){var g=$('body > .ui-widget-overlay'),h=f.buttons;0==_.size(h)&&g.css({cursor:'default'}).on('click',function(){$m.dialog.container.dialog('close')})}(e),this}};
  