text: define(["app/plugins/sdk","jquery","lodash","app/core/app_events","moment"],function(e,t,n,r,i){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DSInfo=function(e){this.isProxy=!1,this.withCredentials=!1,this.name=e.name,e.url?this.baseURL=e.url:e.urls&&(this.baseURL=e.urls[0]),this.baseURL||(this.baseURL=""),this.isProxy=this.baseURL.startsWith("/api/"),this.withCredentials=e.withCredentials,this.basicAuth=e.basicAuth};var r,i=t.RenderMode=void 0;(r=i||(t.RenderMode=i={})).html="html",r.text="text",r.pre="pre",r.image="image",r.json="json",r.template="template"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PanelCtrl=t.AjaxCtrl=void 0;var r=n(2),i=u(n(3)),o=u(n(4)),s=u(n(5)),a=u(n(6));n(7);var l=n(0),p=n(12);function u(e){return e&&e.__esModule?e:{default:e}}var c,h=(c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t,n,r,i,s,a,l,u,c,h){var d=e.call(this,t,n)||this;return d.$rootScope=r,d.$q=i,d.$timeout=s,d.$sce=a,d.templateSrv=l,d.datasourceSrv=u,d.backendSrv=c,d.$compile=h,d.isIframe=!1,d.objectURL=null,d.scopedVars=null,d.requestCount=0,d.lastRequestTime=-1,d.panel.useDatasource&&(d.panel.request="datasource",delete d.panel.useDatasource),o.default.defaults(d.panel,p.examples[0].config),t.$on("$destroy",function(){d.objectURL&&URL.revokeObjectURL(d.objectURL)}),d.events.on("data-received",d.onDataReceived.bind(d)),d.events.on("data-snapshot-load",d.onDataSnapshotLoad.bind(d)),d.events.on("data-error",d.onDataError.bind(d)),d.events.on("init-edit-mode",d.onInitEditMode.bind(d)),d.events.on("panel-initialized",d.onPanelInitalized.bind(d)),d.events.on("render",d.notifyWhenRenderingCompleted.bind(d)),d}return h(t,e),t.$inject=["$scope","$injector","$rootScope","$q","$timeout","$sce","templateSrv","datasourceSrv","backendSrv","$compile"],t.prototype.onDataSnapshotLoad=function(e){this.onDataReceived(e)},t.prototype.onDataError=function(e){console.log("onDataError",e)},t.prototype.onDataReceived=function(e){this.process(e),this.loading=!1},t.prototype.notifyWhenRenderingCompleted=function(){var e=this;if(this.timer&&this.$timeout.cancel(this.timer),0<this.requestCount){var t=this.requestCount;this.timer=this.$timeout(function(){e.timer=void 0,e.requestCount==t&&(e.loading?e.notifyWhenRenderingCompleted():e.renderingCompleted())},100)}},t.prototype.getStaticExamples=function(){return p.examples},t.prototype.isUsingMetricQuery=function(){return this.panel.request.startsWith("query")},t.prototype.loadExample=function(e,t){var n=this;t&&(t.stopPropagation(),t.preventDefault()),console.log("Loading example",e);var r=p.examples[0].config;o.default.forEach(o.default.keys(r),function(e){delete n.panel[e]}),o.default.defaults(this.panel,e.config),o.default.defaults(this.panel,r),(0,i.default)(window).scrollTop(0),s.default.emit("dash-scroll",{animate:!1,evt:0}),this.$rootScope.appEvent("alert-success",["Loaded Example Configuraiton",e.name]),e.editorTabIndex?this.editorTabIndex=e.editorTabIndex:this.editorTabIndex=1,this.$scope.response=null,this.updateFN(),this.updateTemplate(),this.refresh()},t.prototype.getCurrentParams=function(e){var t={};return this.params_fn&&(t=this.params_fn(this)),t},t.prototype.template=function(e){return e?this.templateSrv.replace(e,this.scopedVars):null},t.prototype.getHeaders=function(e){return this.header_fn?this.header_fn(this):null},t.prototype._getURL=function(e){var t=this.templateSrv.replace(this.panel.url,e),n=this.getCurrentParams();if(n){var r=i.default.param(n);if(r){var o=0<t.indexOf("?");t=t+(o?"&":"?")+r}}return"datasource"===this.panel.request&&this.dsInfo?this.dsInfo.baseURL+t:t},t.prototype.updateTimeRange=function(t){var n=this.timeInfo,r=e.prototype.updateTimeRange.call(this,t);return this.panel.showTime&&n&&(this.timeInfo=n),r},t.prototype.issueQueries=function(t){var n=this;if(this.isUsingMetricQuery())return e.prototype.issueQueries.call(this,t);if(this.fn_error)return this.loading=!1,this.error=this.fn_error,null;var r=this.scopedVars=Object.assign({},this.panel.scopedVars,{__interval:{text:this.interval,value:this.interval},__interval_ms:{text:this.intervalMs,value:this.intervalMs}});this.debugParams&&(this.debugParams={},o.default.each(r,function(e,t){n.debugParams[t]=e.text}),o.default.each(this.templateSrv.variables,function(e){n.debugParams[e.name]=e.getValueForUrl()}));var i=this._getURL(r);if(this.panel.skipSameURL&&i===this.lastURL)return this.loading=!1,null;this.lastURL=i,this.error=null;var s=Date.now();if(this.isIframe)return this.$scope.url=this.$sce.trustAsResourceUrl(i),void(this.objectURL&&(this.img.css("display","none"),URL.revokeObjectURL(this.objectURL),this.objectURL=null));var a=this.templateSrv.replace(this.panel.url,r),p=this.getCurrentParams(),u={method:this.panel.method,responseType:this.panel.responseType,url:a,params:p,headers:this.getHeaders(),cache:!1,withCredentials:this.panel.withCredentials};u.headers=u.headers||{};var c=Promise.resolve({});if("datasource"===this.panel.request)c=this.datasourceSrv.get(this.panel.datasource).then(function(e){console.log("DDDD",e,n),e?(n.dsInfo=new l.DSInfo(e),(n.dsInfo.basicAuth||n.dsInfo.withCredentials)&&(u.withCredentials=!0),n.dsInfo.basicAuth&&(u.headers.Authorization=n.dsInfo.basicAuth),u.url=n.dsInfo.baseURL+a):n.dsInfo=null});else{if(!u.url)return this.error="Missing URL",void this.showError(this.error,null);if(u.url.indexOf("://")<0&&u.url.indexOf("api/")<0)return this.error="Invalid URL: "+u.url,void this.showError(this.error,p)}return this.requestCount++,this.loading=!0,c.then(function(){n.backendSrv.datasourceRequest(u).then(function(e){n.lastRequestTime=s,n.process(e),n.loading=!1},function(e){console.log("ERR",e),n.lastRequestTime=s,n.loading=!1,n.error=e,n.inspector={error:e},n.showError("Request Error",e)})}),null},t.prototype.handleQueryResult=function(t){if(this.loading=!1,t&&this.isUsingMetricQuery())return e.prototype.handleQueryResult.call(this,t);this.render()},t.prototype.onPanelInitalized=function(){var e=this;this.updateFN(),this.updateTemplate(),(0,i.default)(window).on("resize",o.default.debounce(function(t){e.refresh()},250))},t.prototype.onConfigChanged=function(){this.lastURL=void 0,this.refresh()},t.prototype.onInitEditMode=function(){this.debugParams={},this.addEditorTab("Request","public/plugins/"+this.pluginId+"/partials/editor.request.html",2),this.addEditorTab("Display","public/plugins/"+this.pluginId+"/partials/editor.display.html",3),this.addEditorTab("Examples","public/plugins/"+this.pluginId+"/partials/editor.examples.html",5),this.editorTabIndex=2,this.updateFN()},t.prototype.updateFN=function(){if(this.fn_error=null,this.params_fn=void 0,this.panel.params_js)try{this.params_fn=new Function("ctrl","return "+this.panel.params_js)}catch(e){console.warn("error parsing params_js",this.panel.params_js,e),this.params_fn=void 0,this.fn_error=e}if(this.panel.header_js)try{this.header_fn=new Function("ctrl","return "+this.panel.header_js)}catch(e){console.warn("error parsing header_js",this.panel.header_js,e),this.header_fn=void 0,this.fn_error=e}this.onConfigChanged()},t.prototype.updateTemplate=function(){var e="";if(this.isIframe="iframe"===this.panel.method,this.panel.mode==l.RenderMode.template)this.panel.template||(this.panel.template="<pre>{{ response }}</pre>"),e=this.panel.template;else if(delete this.panel.template,this.isIframe)e='<iframe           frameborder="0"           width="100%"            height="{{ ctrl.height }}"           ng-src="{{ url }}"           ng-if="ctrl.panel.method === \'iframe\'"></iframe>';else{this.panel.mode||(this.panel.mode=l.RenderMode.html);var t=this.panel.mode;switch(t===l.RenderMode.html&&this.isUsingMetricQuery()&&(t=l.RenderMode.pre),t){case l.RenderMode.html:e='<div ng-bind-html="response"></div>';break;case l.RenderMode.text:e="{{ response }}";break;case l.RenderMode.pre:e="<pre>{{ response }}</pre>";break;case l.RenderMode.json:e='<json-tree root-name="sub" object="response" start-expanded="true"></json-tree>';break;case l.RenderMode.image:e="";break;default:console.warn("Unsupported render mode:",this.panel.mode)}}this.ngtemplate.html(e),this.$compile(this.ngtemplate.contents())(this.$scope),this.$scope.response&&this.render()},t.prototype.showError=function(e,t){this.timeInfo=null,this.objectURL&&(this.img.css("display","none"),URL.revokeObjectURL(this.objectURL),this.objectURL=null);var n="<h1>"+e+"</h1>";t&&(n+="<pre>"+JSON.stringify(t)+"</pre>"),this.ngtemplate.html(n),this.$compile(this.ngtemplate.contents())(this.$scope),this.$scope.response&&this.render()},t.prototype.process=function(e){if(this.panel.showTime){var t=this.panel.showTimePrefix?this.panel.showTimePrefix:"";if(this.panel.showTimeValue){var n=void 0;if("request"===this.panel.showTimeValue)n=this.lastRequestTime;else if("recieve"===this.panel.showTimeValue)n=Date.now();else if(this.panel.showTimeValue.startsWith("header-")){var r=this.panel.showTimeValue.substring("header-".length),i=e.headers[r];if(i)console.log("TODO, parse header",i,r);else{var o={};for(var s in e.headers())o[s]=e.headers[s];console.log("Header:",r,"not found in:",o,e)}}t+=n?(0,a.default)(n).format(this.panel.showTimeFormat):"missing: "+this.panel.showTimeValue}this.timeInfo=t}else this.timeInfo=null;if(e){this.$scope.response=e.hasOwnProperty("data")?e.data:e;var p="";if(e.hasOwnProperty("headers")&&(p=e.headers("Content-Type")),p&&p.startsWith("image/")){var u=new Blob([e.data],{type:p}),c=this.objectURL;return this.objectURL=URL.createObjectURL(u),this.img.attr("src",this.objectURL),c&&URL.revokeObjectURL(c),this.img.css("display","block"),void(this.panel.mode!=l.RenderMode.image&&(this.panel.mode=l.RenderMode.image,this.updateTemplate()))}this.objectURL&&(this.img.css("display","none"),URL.revokeObjectURL(this.objectURL),this.objectURL=null),this.panel.mode==l.RenderMode.json&&this.updateTemplate()}},t.prototype.openFullscreen=function(){var e=this;this.overlay.find("img").attr("src",this.objectURL),(0,i.default)(".grafana-app").append(this.overlay),this.overlay.on("click",function(){e.overlay.remove()})},t.prototype.link=function(e,t,n,r){this.img=(0,i.default)(t.find("img")[0]),this.ngtemplate=(0,i.default)(t.find(".ngtemplate")[0]),this.overlay=(0,i.default)(t.find(".ajaxmodal")[0]),this.overlay.remove(),this.overlay.css("display","block"),this.img.css("display","none")},t.templateUrl="partials/module.html",t.scrollable=!0,t}(r.MetricsPanelCtrl);t.AjaxCtrl=d,t.PanelCtrl=d},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t){e.exports=i},function(e,t,n){var r=n(8);"string"==typeof r&&(r=[[e.i,r,""]]);n(10)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(9)(!0)).push([e.i,".small-link a {\n  text-decoration: none;\n  color: #33b5e5;\n}\n\n.small-link a:hover {\n  text-decoration: underline;\n}\n\n.small-link .label-tag {\n  background-color: rgb(117, 117, 117);\n  border-color: rgb(155, 155, 155);\n  margin-right: 5px;\n  cursor: context-menu;\n}\n\n.imgwrap img {\n  width: 100%;\n  height: 100%;\n}\n.imgwrap img:hover {\n  border: 3px solid #33b5e5;\n  cursor: pointer;\n}\n\n.center-popup {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  z-index: 1050;\n  cursor: pointer;\n}\n","",{version:3,sources:["/Users/ryan/workspace/grafana-plugins/ajax-panel/src/style.css"],names:[],mappings:"AAAA;EACE,sBAAsB;EACtB,eAAe;CAChB;;AAED;EACE,2BAA2B;CAC5B;;AAED;EACE,qCAAqC;EACrC,iCAAiC;EACjC,kBAAkB;EAClB,qBAAqB;CACtB;;AAED;EACE,YAAY;EACZ,aAAa;CACd;AACD;EACE,0BAA0B;EAC1B,gBAAgB;CACjB;;AAED;EACE,mBAAmB;EACnB,SAAS;EACT,UAAU;EACV,iCAAiC;EACjC,cAAc;EACd,gBAAgB;CACjB",file:"style.css",sourcesContent:[".small-link a {\n  text-decoration: none;\n  color: #33b5e5;\n}\n\n.small-link a:hover {\n  text-decoration: underline;\n}\n\n.small-link .label-tag {\n  background-color: rgb(117, 117, 117);\n  border-color: rgb(155, 155, 155);\n  margin-right: 5px;\n  cursor: context-menu;\n}\n\n.imgwrap img {\n  width: 100%;\n  height: 100%;\n}\n.imgwrap img:hover {\n  border: 3px solid #33b5e5;\n  cursor: pointer;\n}\n\n.center-popup {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  z-index: 1050;\n  cursor: pointer;\n}\n"],sourceRoot:""}])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n,r=e[1]||"",i=e[3];if(!i)return r;if(t&&"function"==typeof btoa){var o=(n=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),s=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[r].concat(s).concat([o]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){var r,i,o,s={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),l=(o={},function(e,t){if("function"==typeof e)return e();if(void 0===o[e]){var n=function(e,t){return t?t.querySelector(e):document.querySelector(e)}.call(this,e,t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}o[e]=n}return o[e]}),p=null,u=0,c=[],h=n(11);function d(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=s[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(y(r.parts[o],t))}else{var a=[];for(o=0;o<r.parts.length;o++)a.push(y(r.parts[o],t));s[r.id]={id:r.id,refs:1,parts:a}}}}function f(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],s=t.base?o[0]+t.base:o[0],a={css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}function m(e,t){var n=l(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=c[c.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),c.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=l(e.insertAt.before,n);n.insertBefore(t,i)}}function g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=c.indexOf(e);0<=t&&c.splice(t,1)}function v(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=n.nc;r&&(e.attrs.nonce=r)}return b(t,e.attrs),m(e,t),t}function b(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function y(e,t){var n,r,i,o,s,a;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var l=u++;n=p||(p=v(t)),r=x.bind(null,n,l,!1),i=x.bind(null,n,l,!0)}else i=e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(s=t,a=document.createElement("link"),void 0===s.attrs.type&&(s.attrs.type="text/css"),s.attrs.rel="stylesheet",b(a,s.attrs),m(s,a),r=function(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=h(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var s=new Blob([r],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}.bind(null,n=a,t),function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),function(){g(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return d(n,t),function(e){for(var r=[],i=0;i<n.length;i++){var o=n[i];(a=s[o.id]).refs--,r.push(a)}for(e&&d(f(e,t),t),i=0;i<r.length;i++){var a;if(0===(a=r[i]).refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete s[a.id]}}}};var A,R=(A=[],function(e,t){return A[e]=t,A.filter(Boolean).join("\n")});function x(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=R(t,i);else{var o=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.examples=void 0;var r=n(0);t.examples=[{name:"Simple",text:"loads static content from github",config:{request:"http",method:"GET",mode:r.RenderMode.html,template:"",url:"https://raw.githubusercontent.com/ryantxu/ajax-panel/master/static/example.txt",params_js:"{\n from:ctrl.range.from.format('x'),  // x is unix ms timestamp\n to:ctrl.range.to.format('x'), \n height:ctrl.height,\n now:Date.now(),\n interval: ctrl.template('$__interval'),\n sample: 'Not escaped: $__interval',\n since:ctrl.lastRequestTime\n}",header_js:"{}",responseType:"text",withCredentials:!1,skipSameURL:!0,showTime:!1,showTimePrefix:null,showTimeFormat:"LTS",showTimeValue:"request",templateResponse:!0}},{name:"Echo Service",text:"Responds with the request attributes",config:{method:"GET",mode:r.RenderMode.json,url:"https://httpbin.org/anything?templateInURL=$__interval",header_js:"{\n  Accept: 'text/plain'\n}",showTime:!0}},{name:"Echo Service with Template",text:"Format the response with an angular template",editorTabIndex:2,config:{method:"GET",mode:r.RenderMode.template,template:"<h5>Origin: {{ response.origin }}</h5>\n\n<pre>{{ response | json }}</pre>",url:"https://httpbin.org/anything?templateInURL=$__interval",header_js:"{\n  Accept: 'text/plain'\n}",showTime:!0}},{name:"Webcamera in Thailand",text:"Load an image dynamically",config:{method:"GET",url:"http://tat.touch-ics.com/CCTV/cam.php?cam=31&datatype=image&langISO=EN&t=current&reloadtime=1",params_js:"{\n __now:Date.now(),\n}",responseType:"arraybuffer",showTime:!0}},{name:"Image",text:'Sending "Accept" header',config:{method:"GET",url:"https://httpbin.org/image",params_js:"{}",header_js:"{\n  Accept: 'image/jpeg'\n}",responseType:"blob",showTime:!0,showTimeValue:"recieve"}},{name:"Image in IFrame",text:"load an image in an iframe",config:{method:"iframe",url:"https://dummyimage.com/600x300/4286f4/000&text=GRAFANA",params_js:"{}"}},{name:"Results from Grafana API",text:"grafana settings api w/ template",config:{mode:r.RenderMode.template,template:"<h5>{{ response.DEFAULT.instance_name }}</h5>\n\n<pre>{{ response | json }}</pre>",url:"/api/admin/settings",params_js:"{}"}},{name:"Results from Grafana API",text:"formatted as JSON",config:{mode:r.RenderMode.json,url:"/api/admin/stats",params_js:"{}"}},{name:"Basic Auth (success)",text:"send correct basic auth",config:{url:"https://httpbin.org/basic-auth/user/pass",withCredentials:!0,params_js:"{}",header_js:"{\n   Authorization: 'Basic ' + btoa('user' + ':' + 'pass')\n// Authorization: 'Basic dXNlcjpwYXNz'\n}"}},{name:"Basic Auth (fail)",text:"send correct basic auth",config:{url:"https://httpbin.org/basic-auth/userx/passx",withCredentials:!0,params_js:"{}",header_js:"{\n Authorization: 'Basic ...bad..'\n}"}}]}])});
  //# sourceMappingURL=module.js.map