!function(e,o){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(t){return o(t,e.document)}):"object"==typeof module&&module.exports?module.exports=function(t,e){return t||(t=window),void 0===e&&(e="undefined"!=typeof window?require("jquery"):require("jquery")(t)),o(e,t.document),e}:o(jQuery,e.document)}("undefined"!=typeof window?window:this,function(h,e){"use strict";var m,o=0,l=[],a=function(t){try{h(":input:visible",t.w).first().focus()}catch(t){}},w=function(t){a(t)},n=function(t){var e=m[l[l.length-1]],o=!h(t.target).parents(".jqmID"+e.s)[0],n=h(t.target).offset(),i=void 0!==t.pageX?t.pageX:n.left,s=void 0!==t.pageY?t.pageY:n.top,r=function(){var o=!1;return h(".jqmID"+e.s).each(function(){var t=h(this),e=t.offset();if(e.top<=s&&s<=e.top+t.height()&&e.left<=i&&i<=e.left+t.width())return!(o=!0)}),o};return!("mousedown"===t.type||!r())||("mousedown"===t.type&&o&&(r()&&(o=!1),o&&!h(t.target).is(":input")&&a(e)),!o)},p=function(t){h(e)[t]("keypress keydown mousedown",n)},i=function(t,e,o){return t.each(function(){var t=this._jqm;h(e).each(function(){this[o]||(this[o]=[],h(this).click(function(){var t,e,o,n=["jqmShow","jqmHide"];for(t=0;t").css({height:"100%",width:"100%",position:"fixed",left:0,top:0,"z-index":f-1,opacity:d.overlay/100}),a.a||(a.t=e,a.a=!0,a.w.css("z-index",f),h(a.w[0].ownerDocument).data("ui-dialog-overlays")&&a.w.addClass("ui-dialog"),d.modal?(l[0]||setTimeout(function(){p("bind")},1),l.push(t)):0').insertAfter(a.o),a.w.css({top:u.top+r,left:u.left+s})),d.onShow?d.onShow(a):a.w.show(),w(a)),!1},close:function(t){var e=m[t];return e.a&&(e.a=!1,l[0]&&(l.pop(),l[0]||p("unbind")),e.c.toTop&&e.o&&h("#jqmP"+e.w[0]._jqm).after(e.w).remove(),e.c.onHide?e.c.onHide(e):(e.w.hide(),e.o&&e.o.remove())),!1},params:{}},m=h.jqm.hash}); //# sourceMappingURL=jqmodal.js.map