!function(e,n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(t){return n(t,e,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)),n(e,t,t.document),e}:n(jQuery,e,e.document)}("undefined"!=typeof window?window:this,function(m,t,l){"use strict";var e=".jqGrid",o="mousedown",g="mousemove",y="mouseup",v=function(t){var e=t.originalEvent.targetTouches;return e?{x:(e=e[0]).pageX,y:e.pageY}:{x:t.pageX,y:t.pageY}},w={drag:function(t){var e=t.data,n=e.e,o=e.dnr,i=e.ar,r=e.dnrAr,u=v(t);return"move"===o.k?n.css({left:o.X+u.x-o.pX,top:o.Y+u.y-o.pY}):(n.css({width:Math.max(u.x-o.pX+o.W,0),height:Math.max(u.y-o.pY+o.H,0)}),r&&i.css({width:Math.max(u.x-r.pX+r.W,0),height:Math.max(u.y-r.pY+r.H,0)})),!1},stop:function(){m(l).off(g,w.drag).off(y,w.stop)}},n=function(t,e,n,h){return t.each(function(){(e=e?m(e,t):t).on(o,{e:t,k:n},function(t){var e,n,o,i,r,u,a=t.data,s={},d=function(t,e){return parseInt(t.css(e),10)||!1},f=function(t){return d(n,t)},p=function(t){return d(i,t)},c=v(t);if(!m(t.target).hasClass("ui-jqdialog-titlebar-close")&&!m(t.target).parent().hasClass("ui-jqdialog-titlebar-close")){if(n=a.e,i=!!h&&m(h),"relative"!==n.css("position"))try{n.position(s)}catch(t){}if(o={X:s.left||f("left")||0,Y:s.top||f("top")||0,W:f("width")||n[0].scrollWidth||0,H:f("height")||n[0].scrollHeight||0,pX:c.x,pY:c.y,k:a.k},r=!(!i||"move"===a.k)&&{X:s.left||p("left")||0,Y:s.top||p("top")||0,W:i[0].offsetWidth||p("width")||0,H:i[0].offsetHeight||p("height")||0,pX:c.x,pY:c.y,k:a.k},0<(e=n.find("input.hasDatepicker")).length)try{e.datepicker("hide")}catch(t){}return u={e:n,dnr:o,ar:i,dnrAr:r},m(l).on(g,u,w.drag),m(l).on(y,u,w.stop),!1}})})};t.PointerEvent?(o+=e+" pointerdown"+e,g+=e+" pointermove"+e,y+=e+" pointerup"+e):t.MSPointerEvent?(o+=e+" mspointerdown"+e,g+=e+" mspointermove"+e,y+=e+" mspointerup"):(o+=e+" touchstart"+e,g+=e+" touchmove"+e,y+=e+" touchend"+e),m.jqDnR=w,m.fn.jqDrag=function(t){return n(this,t,"move")},m.fn.jqResize=function(t,e){return n(this,t,"resize",e)}}); //# sourceMappingURL=jqdnr.js.map