text: 'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol?"symbol":typeof obj;};$(function(){function log(settings,response){var s=[],str;s.push(settings.type.toUpperCase()+' url = "'+ settings.url+'"');for(var a in settings.data){if(settings.data[a]&&_typeof(settings.data[a])==='object'){str=[];for(var j in settings.data[a]){str.push(j+': "'+ settings.data[a][j]+'"');}
  str='{ '+ str.join(', ')+' }';}else{str='"'+ settings.data[a]+'"';}
  s.push(a+' = '+ str);}
  s.push('RESPONSE: status = '+ response.status);if(response.responseText){if($.isArray(response.responseText)){s.push('[');$.each(response.responseText,function(i,v){s.push('{value: '+ v.value+', text: "'+ v.text+'"}');});s.push(']');}else{s.push($.trim(response.responseText));}}
  s.push('--------------------------------------\n');$('#console').val(s.join('\n')+ $('#console').val());}
  $.mockjaxSettings.responseTime=500;$.mockjax({url:'/post',response:function response(settings){log(settings,this);}});$.mockjax({url:'/error',status:400,statusText:'Bad Request',response:function response(settings){this.responseText='Please input correct value';log(settings,this);}});$.mockjax({url:'/status',status:500,response:function response(settings){this.responseText='Internal Server Error';log(settings,this);}});$.mockjax({url:'/groups',response:function response(settings){this.responseText=[{value:0,text:'Guest'},{value:1,text:'Service'},{value:2,text:'Customer'},{value:3,text:'Operator'},{value:4,text:'Support'},{value:5,text:'Admin'}];log(settings,this);}});});//# sourceMappingURL=demo-mock.js.map
  