{"version":3,"file":"Compilator.Url-5.55.8.11.min.js","names":["compilator","url","_Ajax","type","options","expectedResultDataType","data","defaultOptions","cache","success","response","console","log","error","$kendo","openKendoErrorDialog","$","extend","traditional","JSON","stringify","contentType","undefined","dataType","ajax","$url"],"sources":["Compilator.Url.js"],"mappings":"AAAA,aAUA,IAAIA,WAAaA,YAAc,CAAC,EAChCA,WAAWC,IAAMD,WAAWC,KAAO,CAAC,EAEpCD,WAAWC,IAAIC,MAAQ,SAAUD,EAAKE,EAAMC,EAASC,EAAwBC,GAM3E,MAAMC,EAAiB,CACrBN,IAAKA,EACLE,KAAMA,EACNK,OAAO,EACPC,QAAS,SAAUC,GACjBC,QAAQC,IAAIF,EACd,EACAG,MAAO,SAAUH,GACfI,OAAOC,qBAAqBL,EAC9B,GAwBF,MArBa,QAATP,EACFa,EAAEC,OAAOV,EAAgB,CACvBD,KAAMA,EACNY,aAAa,IAIfF,EAAEC,OAAOV,EAAgB,CACvBD,KAAMa,KAAKC,UAAUd,GACrBe,YAAa,yCAIcC,IAA3BjB,GACFW,EAAEC,OAAOV,EAAgB,CACvBgB,SAAUlB,IAIdW,EAAEC,OAAOV,EAAgBH,GAElBY,EAAEQ,KAAKjB,EAChB,EAEA,IAAIkB,KAAOzB,WAAWC","sourcesContent":["\"use strict\";\r\n/*\r\nNOTES:\r\nThe modules in this file has to have leading upper case since the autogenerated file compilator.url.autogen.js\r\nhas leading upper case letters in the modules\r\n\r\nSHORTHANDS:\r\n$url - compilator.url\r\n\r\n*/\r\nvar compilator = compilator || {};\r\ncompilator.url = compilator.url || {};\r\n\r\ncompilator.url._Ajax = function (url, type, options, expectedResultDataType, data) {\r\n ///Performs an ajax operation\r\n ///Url\r\n ///Ajax type. Valid values: 'GET', 'POST', 'PUT', 'DELETE'\r\n ///Ajax override options\r\n ///Ajax data\r\n const defaultOptions = {\r\n url: url,\r\n type: type,\r\n cache: false,\r\n success: function (response) {\r\n console.log(response);\r\n },\r\n error: function (response) {\r\n $kendo.openKendoErrorDialog(response);\r\n }\r\n };\r\n\r\n if (type === \"GET\") {\r\n $.extend(defaultOptions, {\r\n data: data,\r\n traditional: true\r\n });\r\n }\r\n else {\r\n $.extend(defaultOptions, {\r\n data: JSON.stringify(data),\r\n contentType: \"application/json; charset=utf-8\"\r\n });\r\n }\r\n\r\n if (expectedResultDataType !== undefined) {\r\n $.extend(defaultOptions, {\r\n dataType: expectedResultDataType\r\n });\r\n }\r\n\r\n $.extend(defaultOptions, options);\r\n\r\n return $.ajax(defaultOptions);\r\n};\r\n\r\nvar $url = compilator.url;"]}