function Request(){let t=this;this.post=function(e,i,n,a){$.ajax({type:"POST",url:e,data:i,success:n,dataType:a,error:t.handleAjaxError})},this.postForm=function(e,i,n,a,o){let s=$("#"+i),r=s.serializeArray();s.find("input[type='datetime-local'], input[type='datetime']").each(function(t,e){r.push({name:e.name,value:e.value})});let u="&action="+n+"&"+$.param(r);t.post(e+"#GalleryTabImage",u,a,o)},this.postModule=function(t,e,i){this.postForm(URL_MODULE_AJAX,t,e,i,"json")},this.parsePartial=function(t,e){void 0===t.redirectFromAjax&&$(e).html(t)},this.postPlugin=function(t,e,i,n){"string"==typeof i?i+="&Action="+e+"&PluginName="+t:(i.Action=e,i.PluginName=t),this.post(URL_CLIENT_REQUEST,i,n,"json")},this.handleAjaxError=function(t){419===t.status&&(document.open(),document.write(t.responseText),document.close())}}