Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 uid=1(daemon) gid=1(daemon) grupos=1(daemon) Safe-mode: OFF (not secure) /opt/apex_led/www/swagger/ drwxrwxr-x |
Viewing file: Select action/file-type: function clippyCopiedCallback(e){$("#api_key_copied").fadeIn().delay(1e3).fadeOut()}$(function(){$.fn.vAlign=function(){return this.each(function(e){var t=$(this).height(),n=$(this).parent().height(),a=(n-t)/2;$(this).css("margin-top",a)})},$.fn.stretchFormtasticInputWidthToParent=function(){return this.each(function(e){var t=$(this).closest("form").innerWidth(),n=parseInt($(this).closest("form").css("padding-left"),10)+parseInt($(this).closest("form").css("padding-right"),10),a=parseInt($(this).css("padding-left"),10)+parseInt($(this).css("padding-right"),10);$(this).css("width",t-n-a)})},$("form.formtastic li.string input, form.formtastic textarea").stretchFormtasticInputWidthToParent(),$("ul.downplayed li div.content p").vAlign(),$("form.sandbox").submit(function(){var e=!0;return $(this).find("input.required").each(function(){$(this).removeClass("error"),""==$(this).val()&&($(this).addClass("error"),$(this).wiggle(),e=!1)}),e})}),log=function(){log.history=log.history||[],log.history.push(arguments),this.console&&console.log(Array.prototype.slice.call(arguments)[0])},Function.prototype.bind&&console&&"object"==typeof console.log&&["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(e){console[e]=this.bind(console[e],console)},Function.prototype.call);var Docs={shebang:function(){var e=$.param.fragment().split("/");switch(e.shift(),e.length){case 1:var t=e[0].replace(/\s/g,"_"),n=t.split("/"),a="group_resource_"+n[0];Docs.expandResourceListForGroupResource(n[0]),$("#"+a).slideto({highlight:!1});var s="resource_"+e[0];Docs.expandEndpointListForResource(e[0]),$("#"+s).slideto({highlight:!1});break;case 2:var t=e[0].replace(/\s/g,"_"),n=t.split("/"),a="group_resource_"+n[0];Docs.expandResourceListForGroupResource(n[0]),$("#"+a).slideto({highlight:!1}),Docs.expandEndpointListForResource(e[0]),$("#"+s).slideto({highlight:!1});var r=e.join("_"),i=r+"_content";Docs.expandOperation($("#"+i)),$("#"+r).slideto({highlight:!1});break;case 3:var t=e[0].replace(/\s/g,"_"),n=t.split("/"),a="group_resource_"+n[0];Docs.expandResourceListForGroupResource(n[0]),$("#"+a).slideto({highlight:!1}),Docs.expandEndpointListForResource(e[0]+"/"+e[1]),$("#"+s).slideto({highlight:!1});var r=Docs.escapeResourceName(e[0]+"/"+e[1])+"_"+e[2],i=r+"_content";Docs.expandOperation($("#"+i)),$("#"+r).slideto({highlight:!1})}},toggleResourceListForGroupResource:function(e){var t=$("li#group_resource_"+Docs.escapeGroupResourceName(e)+" ul.resources");t.is(":visible")?Docs.collapseResourceListForGroupResource(e):Docs.expandResourceListForGroupResource(e)},expandResourceListForGroupResource:function(e){var e=Docs.escapeGroupResourceName(e);if(""==e)return void $(".group_resource ul.resources").slideDown();$("li#group_resource_"+e).addClass("group_active");var t=$("li#group_resource_"+e+" ul.resources");t.slideDown()},collapseResourceListForGroupResource:function(e){var e=Docs.escapeGroupResourceName(e);if(""==e)return void $(".group_resource ul.resources").slideUp();$("li#group_resource_"+e).removeClass("group_active");var t=$("li#group_resource_"+e+" ul.resources");t.slideUp()},expandResourcesForGroupResource:function(e){return Docs.expandResourceListForGroupResource(e),""==e?void $(".group_resource ul.resources li.resource div.content").slideDown():void $("li#group_resource_"+Docs.escapeGroupResourceName(e)+" ul.resources div.content").each(function(){Docs.expandEndpointListForResource($(this))})},collapseResourcesForGroupResource:function(e){return Docs.expandResourceListForGroupResource(e),""==e?void $(".group_resource ul.resources li.resource div.content").slideUp():void $("li#group_resource_"+Docs.escapeGroupResourceName(e)+" ul.resources div.content").each(function(){Docs.collapseEndpointListForResource($(this))})},escapeGroupResourceName:function(e){return e.replace(/[!"#$%&'()*+,.\/:;<=>?@\[\\\]\^`{|}~]/g,"\\$&")},toggleEndpointListForResource:function(e){var t=$("li#resource_"+Docs.escapeResourceName(e)+" ul.endpoints");t.is(":visible")?Docs.collapseEndpointListForResource(e):Docs.expandEndpointListForResource(e)},expandEndpointListForResource:function(e){var e=Docs.escapeResourceName(e);if(""==e)return void $(".resource ul.endpoints").slideDown();$("li#resource_"+e).addClass("active");var t=$("li#resource_"+e+" ul.endpoints");t.slideDown()},collapseEndpointListForResource:function(e){var e=Docs.escapeResourceName(e);if(""==e)return void $(".resource ul.endpoints").slideUp();$("li#resource_"+e).removeClass("active");var t=$("li#resource_"+e+" ul.endpoints");t.slideUp()},expandOperationsForResource:function(e){return Docs.expandEndpointListForResource(e),""==e?void $(".resource ul.endpoints li.operation div.content").slideDown():void $("li#resource_"+Docs.escapeResourceName(e)+" li.operation div.content").each(function(){Docs.expandOperation($(this))})},collapseOperationsForResource:function(e){return Docs.expandEndpointListForResource(e),""==e?void $(".resource ul.endpoints li.operation div.content").slideUp():void $("li#resource_"+Docs.escapeResourceName(e)+" li.operation div.content").each(function(){Docs.collapseOperation($(this))})},escapeResourceName:function(e){return e.replace(/[!"#$%&'()*+,.\/:;<=>?@\[\\\]\^`{|}~]/g,"\\$&")},expandOperation:function(e){e.slideDown()},collapseOperation:function(e){e.slideUp()}},SwaggerUi,extend=function(e,t){function n(){this.constructor=e}for(var a in t)hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},hasProp={}.hasOwnProperty;SwaggerUi=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return extend(t,e),t.prototype.dom_id="swagger_ui",t.prototype.options=null,t.prototype.api=null,t.prototype.headerView=null,t.prototype.mainView=null,t.prototype.initialize=function(e){return null==e&&(e={}),null!=e.dom_id&&(this.dom_id=e.dom_id,delete e.dom_id),null==e.supportedSubmitMethods&&(e.supportedSubmitMethods=["get","put","post","delete","head","options","patch"]),null==$("#"+this.dom_id)&&$("body").append('<div id="'+this.dom_id+'"></div>'),this.options=e,this.options.success=function(e){return function(){return e.render()}}(this),this.options.progress=function(e){return function(t){return e.showMessage(t)}}(this),this.options.failure=function(e){return function(t){return e.onLoadFailure(t)}}(this),this.headerView=new HeaderView({el:$("#header")}),this.headerView.on("update-swagger-ui",function(e){return function(t){return e.updateSwaggerUi(t)}}(this))},t.prototype.setOption=function(e,t){return this.options[e]=t},t.prototype.getOption=function(e){return this.options[e]},t.prototype.updateSwaggerUi=function(e){return this.options.url=e.url,this.load()},t.prototype.load=function(){var e,t;return null!=(e=this.mainView)&&e.clear(),t=this.options.url,t&&0!==t.indexOf("http")&&(t=this.buildUrl(window.location.href.toString(),t)),this.options.url=t,this.headerView.update(t),this.api=new SwaggerClient(this.options)},t.prototype.collapseAll=function(){return Docs.collapseEndpointListForResource("")},t.prototype.listAll=function(){return Docs.collapseOperationsForResource("")},t.prototype.expandAll=function(){return Docs.expandOperationsForResource("")},t.prototype.render=function(){switch(this.showMessage("Finished Loading Resource Information. Rendering Swagger UI..."),this.mainView=new MainView({model:this.api,el:$("#"+this.dom_id),swaggerOptions:this.options}).render(),this.showMessage(),this.options.docExpansion){case"full":this.expandAll();break;case"list":this.listAll()}return this.renderGFM(),this.options.onComplete&&this.options.onComplete(this.api,this),setTimeout(function(e){return function(){return Docs.shebang()}}(this),4e3)},t.prototype.buildUrl=function(e,t){var n,a;return 0===t.indexOf("/")?(a=e.split("/"),e=a[0]+"//"+a[2],e+t):(n=e.length,e.indexOf("?")>-1&&(n=Math.min(n,e.indexOf("?"))),e.indexOf("#")>-1&&(n=Math.min(n,e.indexOf("#"))),e=e.substring(0,n),-1!==e.indexOf("/",e.length-1)?e+t:e+"/"+t)},t.prototype.showMessage=function(e){return null==e&&(e=""),$("#message-bar").removeClass("message-fail"),$("#message-bar").addClass("message-success"),$("#message-bar").html(e)},t.prototype.onLoadFailure=function(e){var t;return null==e&&(e=""),$("#message-bar").removeClass("message-success"),$("#message-bar").addClass("message-fail"),t=$("#message-bar").html(e),null!=this.options.onFailure&&this.options.onFailure(e),t},t.prototype.renderGFM=function(e){return null==e&&(e=""),$(".markdown").each(function(e){return $(this).html(marked($(this).html()))})},t}(Backbone.Router),window.SwaggerUi=SwaggerUi,this.Handlebars=this.Handlebars||{},this.Handlebars.templates=this.Handlebars.templates||{},this.Handlebars.templates.apikey_button_view=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return"<!--div class='auth_button' id='apikey_button'><img class='auth_icon' alt='apply api key' src='images/apikey.jpeg'></div-->\n<div class='auth_container' id='apikey_container'>\n <div class='key_input_container'>\n <div class='auth_label'>"+o((s=null!=(s=t.keyName||(null!=e?e.keyName:e))?s:i,typeof s===r?s.call(e,{name:"keyName",hash:{},data:a}):s))+'</div>\n <input placeholder="api_key" class="auth_input" id="input_apiKey_entry" name="apiKey" type="text"/>\n <div class=\'auth_submit\'><a class=\'auth_submit_button\' id="apply_api_key" href="#">Aplicar</a></div>\n </div>\n</div>\n\n'},useData:!0}),Handlebars.registerHelper("sanitize",function(e){return e=e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,""),new Handlebars.SafeString(e)}),this.Handlebars.templates.basic_auth_button_view=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){return'<div class=\'auth_button\' id=\'basic_auth_button\'><img class=\'auth_icon\' src=\'images/password.jpeg\'></div>\n<div class=\'auth_container\' id=\'basic_auth_container\'>\n <div class=\'key_input_container\'>\n <div class="auth_label">Usuario</div>\n <input placeholder="username" class="auth_input" id="input_username" name="username" type="text"/>\n <div class="auth_label">Password</div>\n <input placeholder="password" class="auth_input" id="input_password" name="password" type="password"/>\n <div class=\'auth_submit\'><a class=\'auth_submit_button\' id="apply_basic_auth" href="#">Aplicar</a></div>\n </div>\n</div>\n\n'},useData:!0});var ApiKeyButton,extend=function(e,t){function n(){this.constructor=e}for(var a in t)hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},hasProp={}.hasOwnProperty;ApiKeyButton=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return extend(t,e),t.prototype.initialize=function(){},t.prototype.render=function(){var e;return e=this.template(),$(this.el).html(e(this.model)),this},t.prototype.events={"click #apikey_button":"toggleApiKeyContainer","click #apply_api_key":"applyApiKey"},t.prototype.applyApiKey=function(){var e;return window.authorizations.add(this.model.name,new ApiKeyAuthorization(this.model.name,$("#input_apiKey_entry").val(),this.model["in"])),window.swaggerUi.load(),e=$("#apikey_container").show()},t.prototype.toggleApiKeyContainer=function(){var e;return $("#apikey_container").length>0?(e=$("#apikey_container").first(),e.is(":visible")?e.hide():($(".auth_container").hide(),e.show())):void 0},t.prototype.template=function(){return Handlebars.templates.apikey_button_view},t}(Backbone.View),this.Handlebars.templates.content_type=Handlebars.template({1:function(e,t,n,a){var s,r="";return s=t.each.call(e,null!=e?e.produces:e,{name:"each",hash:{},fn:this.program(2,a),inverse:this.noop,data:a}),null!=s&&(r+=s),r},2:function(e,t,n,a){var s,r=this.lambda,i=' <option value="';return s=r(e,e),null!=s&&(i+=s),i+='">',s=r(e,e),null!=s&&(i+=s),i+"</option>\n"},4:function(e,t,n,a){return' <option value="application/json">application/json</option>\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,r='<label for="contentType"></label>\n<select name="contentType">\n';return s=t["if"].call(e,null!=e?e.produces:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(4,a),data:a}),null!=s&&(r+=s),r+"</select>\n"},useData:!0});var BasicAuthButton,extend=function(e,t){function n(){this.constructor=e}for(var a in t)hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},hasProp={}.hasOwnProperty;BasicAuthButton=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return extend(t,e),t.prototype.initialize=function(){},t.prototype.render=function(){var e;return e=this.template(),$(this.el).html(e(this.model)),this},t.prototype.events={"click #basic_auth_button":"togglePasswordContainer","click #apply_basic_auth":"applyPassword"},t.prototype.applyPassword=function(){var e,t,n;return n=$(".input_username").val(),t=$(".input_password").val(),window.authorizations.add(this.model.type,new PasswordAuthorization("basic",n,t)),window.swaggerUi.load(),e=$("#basic_auth_container").hide()},t.prototype.togglePasswordContainer=function(){var e;return $("#basic_auth_container").length>0?(e=$("#basic_auth_container").show(),e.is(":visible")?e.slideUp():($(".auth_container").hide(),e.show())):void 0},t.prototype.template=function(){return Handlebars.templates.basic_auth_button_view},t}(Backbone.View),this.Handlebars.templates.group_resource=Handlebars.template({1:function(e,t,n,a){return": "},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,r,i,o="function",l=t.helperMissing,p=this.escapeExpression,u=t.blockHelperMissing,c="<div class='panel panel-default'>\n\n <div class='panel-heading heading pointer-cursor toggleResourceList' href='#!/"+p((r=null!=(r=t.id||(null!=e?e.id:e))?r:l,typeof r===o?r.call(e,{name:"id",hash:{},data:a}):r))+"' data-id=\""+p((r=null!=(r=t.id||(null!=e?e.id:e))?r:l,typeof r===o?r.call(e,{name:"id",hash:{},data:a}):r))+'">\n <h2>\n '+p((r=null!=(r=t.name||(null!=e?e.name:e))?r:l,typeof r===o?r.call(e,{name:"name",hash:{},data:a}):r))+" ";return r=null!=(r=t.summary||(null!=e?e.summary:e))?r:l,i={name:"summary",hash:{},fn:this.program(1,a),inverse:this.noop,data:a},s=typeof r===o?r.call(e,i):r,t.summary||(s=u.call(e,s,i)),null!=s&&(c+=s),r=null!=(r=t.summary||(null!=e?e.summary:e))?r:l,s=typeof r===o?r.call(e,{name:"summary",hash:{},data:a}):r,null!=s&&(c+=s),c+"\n </h2>\n \n </div>\n\n <div class='container' id='resources_container'>\n <ul id='resources' class = 'resources' style='display:none'>\n \n </ul>\n </div>\n\n</div>"},useData:!0}),this.Handlebars.templates.main=Handlebars.template({1:function(e,t,n,a){var s,r=this.lambda,i=this.escapeExpression,o=' <div class="info_title">'+i(r(null!=(s=null!=e?e.info:e)?s.title:s,e))+'</div>\n <div class="info_description markdown">';return s=r(null!=(s=null!=e?e.info:e)?s.description:s,e),null!=s&&(o+=s),o+="</div>\n ",s=t["if"].call(e,null!=(s=null!=e?e.info:e)?s.termsOfServiceUrl:s,{name:"if",hash:{},fn:this.program(2,a),inverse:this.noop,data:a}),null!=s&&(o+=s),o+="\n ",s=t["if"].call(e,null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.name:s,{name:"if",hash:{},fn:this.program(4,a),inverse:this.noop,data:a}),null!=s&&(o+=s),o+="\n ",s=t["if"].call(e,null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.url:s,{name:"if",hash:{},fn:this.program(6,a),inverse:this.noop,data:a}),null!=s&&(o+=s),o+="\n ",s=t["if"].call(e,null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.email:s,{name:"if",hash:{},fn:this.program(8,a),inverse:this.noop,data:a}),null!=s&&(o+=s),o+="\n ",s=t["if"].call(e,null!=(s=null!=e?e.info:e)?s.license:s,{name:"if",hash:{},fn:this.program(10,a),inverse:this.noop,data:a}),null!=s&&(o+=s),o+"\n"},2:function(e,t,n,a){var s,r=this.lambda,i=this.escapeExpression;return'<div class="info_tos"><a href="'+i(r(null!=(s=null!=e?e.info:e)?s.termsOfServiceUrl:s,e))+'">Terminos de Servicio</a></div>'},4:function(e,t,n,a){var s,r=this.lambda,i=this.escapeExpression;return"<div class='info_name'>Creado por "+i(r(null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.name:s,e))+"</div>"},6:function(e,t,n,a){var s,r=this.lambda,i=this.escapeExpression;return"<div class='info_url'>Ver más en <a href=\""+i(r(null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.url:s,e))+'">'+i(r(null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.url:s,e))+"</a></div>"},8:function(e,t,n,a){var s,r=this.lambda,i=this.escapeExpression;return"<div class='info_email'><a href=\"mailto:"+i(r(null!=(s=null!=(s=null!=e?e.info:e)?s.contact:s)?s.email:s,e))+"?subject="+i(r(null!=(s=null!=e?e.info:e)?s.title:s,e))+'">Contactar desarrollador</a></div>'},10:function(e,t,n,a){var s,r=this.lambda,i=this.escapeExpression;return"<div class='info_license'><a href='"+i(r(null!=(s=null!=(s=null!=e?e.info:e)?s.license:s)?s.url:s,e))+"'>"+i(r(null!=(s=null!=(s=null!=e?e.info:e)?s.license:s)?s.name:s,e))+"</a></div>"},12:function(e,t,n,a){var s,r=this.lambda,i=this.escapeExpression;return' , <span style="font-variant: small-caps">version api</span>: '+i(r(null!=(s=null!=e?e.info:e)?s.version:s,e))+"\n "},14:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return' <span style="float:right"><a href="'+o((s=null!=(s=t.validatorUrl||(null!=e?e.validatorUrl:e))?s:i,typeof s===r?s.call(e,{name:"validatorUrl",hash:{},data:a}):s))+"/debug?url="+o((s=null!=(s=t.url||(null!=e?e.url:e))?s:i,typeof s===r?s.call(e,{name:"url",hash:{},data:a}):s))+'"><img id="validator" src="'+o((s=null!=(s=t.validatorUrl||(null!=e?e.validatorUrl:e))?s:i,typeof s===r?s.call(e,{name:"validatorUrl",hash:{},data:a}):s))+"?url="+o((s=null!=(s=t.url||(null!=e?e.url:e))?s:i,typeof s===r?s.call(e,{name:"url",hash:{},data:a}):s))+'"></a>\n </span>\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,r,i="function",o=t.helperMissing,l=this.escapeExpression,p="<div class='info' id='api_info'>\n";return s=t["if"].call(e,null!=e?e.info:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.noop,data:a}),null!=s&&(p+=s),p+="</div>\n<div class='container' id='group_resources_container'>\n <ul id='group_resources'></ul>\n\n <div class=\"footer\">\n <br>\n <br>\n <h4 style=\"color: #999\">[ <span style=\"font-variant: small-caps\">url base</span>: "+l((r=null!=(r=t.basePath||(null!=e?e.basePath:e))?r:o,typeof r===i?r.call(e,{name:"basePath",hash:{},data:a}):r))+"\n",s=t["if"].call(e,null!=(s=null!=e?e.info:e)?s.version:s,{name:"if",hash:{},fn:this.program(12,a),inverse:this.noop,data:a}),null!=s&&(p+=s),p+="]\n",s=t["if"].call(e,null!=e?e.validatorUrl:e,{name:"if",hash:{},fn:this.program(14,a),inverse:this.noop,data:a}),null!=s&&(p+=s),p+" </h4>\n </div>\n</div>\n"},useData:!0});var ContentTypeView,extend=function(e,t){function n(){this.constructor=e}for(var a in t)hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},hasProp={}.hasOwnProperty;ContentTypeView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return extend(t,e),t.prototype.initialize=function(){},t.prototype.render=function(){var e;return e=this.template(),$(this.el).html(e(this.model)),$("label[for=contentType]",$(this.el)).text("Content type de la respuesta"),this},t.prototype.template=function(){return Handlebars.templates.content_type},t}(Backbone.View),this.Handlebars.templates.operation=Handlebars.template({1:function(e,t,n,a){return"deprecated"},3:function(e,t,n,a){return" <h4>Cuidado: Deprecado</h4>\n"},5:function(e,t,n,a){var s,r,i="function",o=t.helperMissing,l=' <h4>Notas de implementación</h4>\n <p class="markdown">';return r=null!=(r=t.description||(null!=e?e.description:e))?r:o,s=typeof r===i?r.call(e,{name:"description",hash:{},data:a}):r,null!=s&&(l+=s),l+"</p>\n"},7:function(e,t,n,a){return' <div class="auth">\n <span class="api-ic ic-error"></span>'},9:function(e,t,n,a){var s,r=' <div id="api_information_panel" style="top: 526px; left: 776px; display: none;">\n';return s=t.each.call(e,e,{name:"each",hash:{},fn:this.program(10,a),inverse:this.noop,data:a}),null!=s&&(r+=s),r+" </div>\n"},10:function(e,t,n,a){var s,r=this.lambda,i=this.escapeExpression,o=" <div title='";return s=r(null!=e?e.description:e,e),null!=s&&(o+=s),o+"'>"+i(r(null!=e?e.scope:e,e))+"</div>\n"},12:function(e,t,n,a){return"</div>"},14:function(e,t,n,a){return' <div class=\'access\'>\n <span class="api-ic ic-off" title="click to authenticate"></span>\n </div>\n'},16:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return" <h4>Respuesta éxitosa (Status "+o((s=null!=(s=t.successCode||(null!=e?e.successCode:e))?s:i,typeof s===r?s.call(e,{name:"successCode",hash:{},data:a}):s))+')</h4>\n <p><span class="model-signature" /></p>\n <br/>\n <div class="response-content-type" />\n'},18:function(e,t,n,a){return' <h4>Parámetros</h4>\n <table class=\'fullwidth\'>\n <thead>\n <tr>\n <th style="width: 100px; max-width: 100px">Parámetro</th>\n <th style="width: 310px; max-width: 310px">Valor</th>\n <th style="width: 200px; max-width: 200px">Descripción</th>\n <th style="width: 100px; max-width: 100px">Tipo Param</th>\n <th style="width: 220px; max-width: 230px">Tipo Dato</th>\n </tr>\n </thead>\n <tbody class="operation-params">\n\n </tbody>\n </table>\n'},20:function(e,t,n,a){return" <div style='margin:0;padding:0;display:inline'></div>\n <h4>Respuestas</h4>\n <table class='fullwidth'>\n <thead>\n <tr>\n <th>Estado HTTP</th>\n <th>Motivo</th>\n <th>Modelo de Respuesta</th>\n </tr>\n </thead>\n <tbody class=\"operation-status\">\n \n </tbody>\n </table>\n"},22:function(e,t,n,a){return""},24:function(e,t,n,a){return" <div class='sandbox_header'>\n <input class='submit' name='commit' type='button' value='Try it out!' />\n <a href='#' class='response_hider' style='display:none'>Ocultar</a>\n <span class='response_throbber' style='display:none'></span>\n </div>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,r,i,o="function",l=t.helperMissing,p=this.escapeExpression,u=t.blockHelperMissing,c="\n <ul class='operations' >\n <li class='"+p((r=null!=(r=t.method||(null!=e?e.method:e))?r:l,typeof r===o?r.call(e,{name:"method",hash:{},data:a}):r))+" operation' id='"+p((r=null!=(r=t.parentId||(null!=e?e.parentId:e))?r:l,typeof r===o?r.call(e,{name:"parentId",hash:{},data:a}):r))+"_"+p((r=null!=(r=t.nickname||(null!=e?e.nickname:e))?r:l,typeof r===o?r.call(e,{name:"nickname",hash:{},data:a}):r))+"'>\n <div class='heading'>\n <h3>\n <span class='http_method'>\n <a href='#!/"+p((r=null!=(r=t.parentId||(null!=e?e.parentId:e))?r:l,typeof r===o?r.call(e,{name:"parentId",hash:{},data:a}):r))+"/"+p((r=null!=(r=t.nickname||(null!=e?e.nickname:e))?r:l,typeof r===o?r.call(e,{name:"nickname",hash:{},data:a}):r))+'\' class="toggleOperation">'+p((r=null!=(r=t.method||(null!=e?e.method:e))?r:l,typeof r===o?r.call(e,{name:"method",hash:{},data:a}):r))+"</a>\n </span>\n <span class='path'>\n <a href='#!/"+p((r=null!=(r=t.parentId||(null!=e?e.parentId:e))?r:l,typeof r===o?r.call(e,{name:"parentId",hash:{},data:a}):r))+"/"+p((r=null!=(r=t.nickname||(null!=e?e.nickname:e))?r:l,typeof r===o?r.call(e,{name:"nickname",hash:{},data:a}):r))+"' class=\"toggleOperation ";return s=t["if"].call(e,null!=e?e.deprecated:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.noop,data:a}),null!=s&&(c+=s),c+='">'+p((r=null!=(r=t.path||(null!=e?e.path:e))?r:l,typeof r===o?r.call(e,{name:"path",hash:{},data:a}):r))+"</a>\n </span>\n </h3>\n <ul class='options'>\n <li>\n <a href='#!/"+p((r=null!=(r=t.parentId||(null!=e?e.parentId:e))?r:l,typeof r===o?r.call(e,{name:"parentId",hash:{},data:a}):r))+"/"+p((r=null!=(r=t.nickname||(null!=e?e.nickname:e))?r:l,typeof r===o?r.call(e,{name:"nickname",hash:{},data:a}):r))+'\' class="toggleOperation">',r=null!=(r=t.summary||(null!=e?e.summary:e))?r:l,s=typeof r===o?r.call(e,{name:"summary",hash:{},data:a}):r,null!=s&&(c+=s),c+="</a>\n </li>\n </ul>\n </div>\n <div class='content' id='"+p((r=null!=(r=t.parentId||(null!=e?e.parentId:e))?r:l,typeof r===o?r.call(e,{name:"parentId",hash:{},data:a}):r))+"_"+p((r=null!=(r=t.nickname||(null!=e?e.nickname:e))?r:l,typeof r===o?r.call(e,{name:"nickname",hash:{},data:a}):r))+"_content' style='display:none'>\n",s=t["if"].call(e,null!=e?e.deprecated:e,{name:"if",hash:{},fn:this.program(3,a),inverse:this.noop,data:a}),null!=s&&(c+=s),s=t["if"].call(e,null!=e?e.description:e,{name:"if",hash:{},fn:this.program(5,a),inverse:this.noop,data:a}),null!=s&&(c+=s),r=null!=(r=t.oauth||(null!=e?e.oauth:e))?r:l,i={name:"oauth",hash:{},fn:this.program(7,a),inverse:this.noop,data:a},s=typeof r===o?r.call(e,i):r,t.oauth||(s=u.call(e,s,i)),null!=s&&(c+=s),c+="\n",s=t.each.call(e,null!=e?e.oauth:e,{name:"each",hash:{},fn:this.program(9,a),inverse:this.noop,data:a}),null!=s&&(c+=s),c+=" ",r=null!=(r=t.oauth||(null!=e?e.oauth:e))?r:l,i={name:"oauth",hash:{},fn:this.program(12,a),inverse:this.noop,data:a},s=typeof r===o?r.call(e,i):r,t.oauth||(s=u.call(e,s,i)),null!=s&&(c+=s),c+="\n",r=null!=(r=t.oauth||(null!=e?e.oauth:e))?r:l,i={name:"oauth",hash:{},fn:this.program(14,a),inverse:this.noop,data:a},s=typeof r===o?r.call(e,i):r,t.oauth||(s=u.call(e,s,i)),null!=s&&(c+=s),s=t["if"].call(e,null!=e?e.type:e,{name:"if",hash:{},fn:this.program(16,a),inverse:this.noop,data:a}),null!=s&&(c+=s),c+=" <form accept-charset='UTF-8' class='sandbox'>\n <div style='margin:0;padding:0;display:inline'></div>\n",s=t["if"].call(e,null!=e?e.parameters:e,{name:"if",hash:{},fn:this.program(18,a),inverse:this.noop,data:a}),null!=s&&(c+=s),s=t["if"].call(e,null!=e?e.responseMessages:e,{name:"if",hash:{},fn:this.program(20,a),inverse:this.noop,data:a}),null!=s&&(c+=s),s=t["if"].call(e,null!=e?e.isReadOnly:e,{name:"if",hash:{},fn:this.program(22,a),inverse:this.program(24,a),data:a}),null!=s&&(c+=s),c+" </form>\n <div class='response' style='display:none'>\n <h4>URL Pedido</h4>\n <div class='block request_url'></div>\n <h4>Cuerpo Respuesta</h4>\n <div class='block response_body'></div>\n <h4>Estado Respuesta</h4>\n <div class='block response_code'></div>\n <h4>Headers Respuesta</h4>\n <div class='block response_headers'></div>\n </div>\n </div>\n </li>\n </ul>\n"},useData:!0});var GroupResourceView,extend=function(e,t){function n(){this.constructor=e}for(var a in t)hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},hasProp={}.hasOwnProperty;GroupResourceView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return extend(t,e),t.prototype.initialize=function(e){return null==e&&(e={}),this.auths=e.auths,this.group_model=e.model,""===this.group_model.description?this.group_model.description=null:void 0},t.prototype.render=function(){var e,t,n,a,s,r,i,o;for(s={},$(this.el).html(Handlebars.templates.group_resource(this.group_model)),o={},e=0,r=this.group_model.resources,t=0,a=r.length;a>t;t++){for(i=r[t],n=i.name;"undefined"!=typeof o[n];)n=n+"_"+e,e+=1;i.id=n,o[n]=i,this.addResource(i,this.group_model.auths)}return $(".toggleResourceList",this.el).click(this.callDocs.bind(this,"toggleResourceListForGroupResource")),$(".collapseGroupResource",this.el).click(this.callDocs.bind(this,"collapseResourcesForGroupResource")),$(".expandGroupResource",this.el).click(this.callDocs.bind(this,"expandResourcesForGroupResource")),this},t.prototype.addResource=function(e,t){var n;return e.id=e.id.replace(/\s/g,"_"),n=new ResourceView({model:e,tagName:"li",id:"resource_"+e.id,className:"resource",auths:t,swaggerOptions:this.options.swaggerOptions}),$("#resources",$(this.el)).append(n.render().el)},t.prototype.callDocs=function(e,t){return t.preventDefault(),Docs[e](t.currentTarget.getAttribute("data-id"))},t}(Backbone.View);var HeaderView,extend=function(e,t){function n(){this.constructor=e}for(var a in t)hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},hasProp={}.hasOwnProperty;HeaderView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return extend(t,e),t.prototype.events={"click #explore":"showCustom","keyup #input_baseUrl":"showCustomOnKeyup","keyup #input_apiKey":"showCustomOnKeyup"},t.prototype.initialize=function(){},t.prototype.showCustomOnKeyup=function(e){return 13===e.keyCode?this.showCustom():void 0},t.prototype.showCustom=function(e){return null!=e&&e.preventDefault(),this.trigger("update-swagger-ui",{url:$("#input_baseUrl").val(),apiKey:$("#input_apiKey").val()})},t.prototype.update=function(e,t,n){return null==n&&(n=!1),$("#input_baseUrl").val(e),n?this.trigger("update-swagger-ui",{url:e}):void 0},t}(Backbone.View),this.Handlebars.templates.param=Handlebars.template({1:function(e,t,n,a){var s,r="";return s=t["if"].call(e,null!=e?e.isFile:e,{name:"if",hash:{},fn:this.program(2,a),inverse:this.program(4,a),data:a}),null!=s&&(r+=s),r},2:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return' <input type="file" name=\''+o((s=null!=(s=t.name||(null!=e?e.name:e))?s:i,typeof s===r?s.call(e,{name:"name",hash:{},data:a}):s))+'\'/>\n <div class="parameter-content-type" />\n'},4:function(e,t,n,a){var s,r="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(5,a),inverse:this.program(7,a),data:a}),null!=s&&(r+=s),r},5:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return" <textarea class='body-textarea' name='"+o((s=null!=(s=t.name||(null!=e?e.name:e))?s:i,typeof s===r?s.call(e,{name:"name",hash:{},data:a}):s))+"'>"+o((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:i,typeof s===r?s.call(e,{name:"default",hash:{},data:a}):s))+'</textarea>\n <br />\n <div class="parameter-content-type" />\n'},7:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return" <textarea class='body-textarea' name='"+o((s=null!=(s=t.name||(null!=e?e.name:e))?s:i,typeof s===r?s.call(e,{name:"name",hash:{},data:a}):s))+'\'></textarea>\n <br />\n <div class="parameter-content-type" />\n'},9:function(e,t,n,a){var s,r="";return s=t["if"].call(e,null!=e?e.isFile:e,{name:"if",hash:{},fn:this.program(2,a),inverse:this.program(10,a),data:a}),null!=s&&(r+=s),r},10:function(e,t,n,a){var s,r="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(11,a),inverse:this.program(13,a),data:a}),null!=s&&(r+=s),r},11:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return" <input class='parameter' minlength='0' name='"+o((s=null!=(s=t.name||(null!=e?e.name:e))?s:i,typeof s===r?s.call(e,{name:"name",hash:{},data:a}):s))+"' placeholder='' type='text' value='"+o((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:i,typeof s===r?s.call(e,{name:"default",hash:{},data:a}):s))+"'/>\n"},13:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return" <input class='parameter' minlength='0' name='"+o((s=null!=(s=t.name||(null!=e?e.name:e))?s:i,typeof s===r?s.call(e,{name:"name",hash:{},data:a}):s))+"' placeholder='' type='text' value=''/>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){ var s,r,i="function",o=t.helperMissing,l=this.escapeExpression,p="<td class='code'>"+l((r=null!=(r=t.name||(null!=e?e.name:e))?r:o,typeof r===i?r.call(e,{name:"name",hash:{},data:a}):r))+"</td>\n<td>\n\n";return s=t["if"].call(e,null!=e?e.isBody:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(9,a),data:a}),null!=s&&(p+=s),p+='\n</td>\n<td class="markdown">',r=null!=(r=t.description||(null!=e?e.description:e))?r:o,s=typeof r===i?r.call(e,{name:"description",hash:{},data:a}):r,null!=s&&(p+=s),p+="</td>\n<td>",r=null!=(r=t.paramType||(null!=e?e.paramType:e))?r:o,s=typeof r===i?r.call(e,{name:"paramType",hash:{},data:a}):r,null!=s&&(p+=s),p+'</td>\n<td>\n <span class="model-signature"></span>\n</td>\n'},useData:!0}),this.Handlebars.templates.param_list=Handlebars.template({1:function(e,t,n,a){return" multiple='multiple'"},3:function(e,t,n,a){return""},5:function(e,t,n,a){var s,r="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(3,a),inverse:this.program(6,a),data:a}),null!=s&&(r+=s),r},6:function(e,t,n,a){var s,r=t.helperMissing,i="";return s=(t.isArray||e&&e.isArray||r).call(e,e,{name:"isArray",hash:{},fn:this.program(3,a),inverse:this.program(7,a),data:a}),null!=s&&(i+=s),i},7:function(e,t,n,a){return" <option selected=\"\" value=''></option>\n"},9:function(e,t,n,a){var s,r="";return s=t["if"].call(e,null!=e?e.isDefault:e,{name:"if",hash:{},fn:this.program(10,a),inverse:this.program(12,a),data:a}),null!=s&&(r+=s),r},10:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return' <option selected="" value=\''+o((s=null!=(s=t.value||(null!=e?e.value:e))?s:i,typeof s===r?s.call(e,{name:"value",hash:{},data:a}):s))+"'>"+o((s=null!=(s=t.value||(null!=e?e.value:e))?s:i,typeof s===r?s.call(e,{name:"value",hash:{},data:a}):s))+" (default)</option>\n"},12:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return" <option value='"+o((s=null!=(s=t.value||(null!=e?e.value:e))?s:i,typeof s===r?s.call(e,{name:"value",hash:{},data:a}):s))+"'>"+o((s=null!=(s=t.value||(null!=e?e.value:e))?s:i,typeof s===r?s.call(e,{name:"value",hash:{},data:a}):s))+"</option>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,r,i="function",o=t.helperMissing,l=this.escapeExpression,p="<td class='code'>"+l((r=null!=(r=t.name||(null!=e?e.name:e))?r:o,typeof r===i?r.call(e,{name:"name",hash:{},data:a}):r))+"</td>\n<td>\n <select ";return s=(t.isArray||e&&e.isArray||o).call(e,e,{name:"isArray",hash:{},fn:this.program(1,a),inverse:this.noop,data:a}),null!=s&&(p+=s),p+=" class='parameter' name='"+l((r=null!=(r=t.name||(null!=e?e.name:e))?r:o,typeof r===i?r.call(e,{name:"name",hash:{},data:a}):r))+"'>\n",s=t["if"].call(e,null!=e?e.required:e,{name:"if",hash:{},fn:this.program(3,a),inverse:this.program(5,a),data:a}),null!=s&&(p+=s),s=t.each.call(e,null!=(s=null!=e?e.allowableValues:e)?s.descriptiveValues:s,{name:"each",hash:{},fn:this.program(9,a),inverse:this.noop,data:a}),null!=s&&(p+=s),p+=' </select>\n</td>\n<td class="markdown">',r=null!=(r=t.description||(null!=e?e.description:e))?r:o,s=typeof r===i?r.call(e,{name:"description",hash:{},data:a}):r,null!=s&&(p+=s),p+="</td>\n<td>",r=null!=(r=t.paramType||(null!=e?e.paramType:e))?r:o,s=typeof r===i?r.call(e,{name:"paramType",hash:{},data:a}):r,null!=s&&(p+=s),p+'</td>\n<td><span class="model-signature"></span></td>'},useData:!0});var MainView,extend=function(e,t){function n(){this.constructor=e}for(var a in t)hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},hasProp={}.hasOwnProperty;MainView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}var n;return extend(t,e),n={alpha:function(e,t){return e.path.localeCompare(t.path)},method:function(e,t){return e.method.localeCompare(t.method)}},t.prototype.initialize=function(e){var t,n,a,s;null==e&&(e={}),this.model.auths=[],a=this.model.securityDefinitions;for(n in a)s=a[n],t={name:n,type:s.type,value:s},this.model.auths.push(t);return"2.0"===this.model.swaggerVersion?this.model.validatorUrl="validatorUrl"in e.swaggerOptions?e.swaggerOptions.validatorUrl:this.model.url.indexOf("localhost")>0?null:"http://online.swagger.io/validator":void 0},t.prototype.render=function(){var e,t,n,a,s,r,i,o,l;if(this.model.securityDefinitions)for(l in this.model.securityDefinitions)t=this.model.securityDefinitions[l],"apiKey"===t.type&&0===$("#apikey_button").length&&(n=new ApiKeyButton({model:t}).render().el,$(".auth_main_container").append(n)),"basicAuth"===t.type&&0===$("#basic_auth_button").length&&(n=new BasicAuthButton({model:t}).render().el,$(".auth_main_container").append(n));$(this.el).html(Handlebars.templates.main(this.model)),i=[],e=this.getGroupResource(),s=0;for(a in e){for(r=e[a],o=r.name;"undefined"!=typeof i[o];)o=o+"_"+s,s+=1;r.id=o,i[o]=r,this.addGroupResource(r,this.model.auths)}return $(".propWrap").hover(function(){return $(".optionsWrapper",$(this)).show()},function(){return $(".optionsWrapper",$(this)).hide()}),this},t.prototype.addGroupResource=function(e,t){var n;return e.id=e.id.replace(/\s/g,"_"),n=new GroupResourceView({model:e,tagName:"li",id:"group_resource_"+e.id,className:"group_resource",auths:t,swaggerOptions:this.options.swaggerOptions}),$("#group_resources").append(n.render().el)},t.prototype.getGroupResource=function(){var e,t,n,a,s,r,i,o,l,p;for(e=[],l=this.model.apisArray,i=0,o=l.length;o>i;i++)if(p=l[i],r=p.name.replace(/\s/g,"_"),a=r.split("/"),"undefined"!=typeof a[0]){for(s=0,n=!1,t=e.length;t>s&&!n;)e[s].name===a[0]?n=!0:s+=1;n?e[s].resources[e[s].resources.length]=p:(e[s]=[],e[s].name=a[0],e[s].resources=[],e[s].resources[e[s].resources.length]=p)}return e},t.prototype.clear=function(){return $(this.el).html("")},t}(Backbone.View);var OperationView,extend=function(e,t){function n(){this.constructor=e}for(var a in t)hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},hasProp={}.hasOwnProperty;OperationView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return extend(t,e),t.prototype.invocationUrl=null,t.prototype.events={"submit .sandbox":"submitOperation","click .submit":"submitOperation","click .response_hider":"hideResponse","click .toggleOperation":"toggleOperationContent","mouseenter .api-ic":"mouseEnter","mouseout .api-ic":"mouseExit"},t.prototype.initialize=function(e){return null==e&&(e={}),this.auths=e.auths,this.parentId=this.model.parentId,this.nickname=this.model.nickname,this},t.prototype.mouseEnter=function(e){var t,n,a,s,r,i,o,l,p,u;return t=$(this.el).find(".content"),p=e.pageX,u=e.pageY,i=$(window).scrollLeft(),o=$(window).scrollTop(),s=i+$(window).width(),r=o+$(window).height(),l=t.width(),n=t.height(),p+l>s&&(p=s-l),i>p&&(p=i),u+n>r&&(u=r-n),o>u&&(u=o),a={},a.top=u,a.left=p,t.css(a),$(e.currentTarget.parentNode).find("#api_information_panel").show()},t.prototype.mouseExit=function(e){return $(e.currentTarget.parentNode).find("#api_information_panel").hide()},t.prototype.render=function(){var e,t,n,a,s,r,i,o,l,p,u,c,h,d,m,f,y,g,v,_,w,b,x,k,R,O,D,C,P,S,T,E,H,M,V,F,N,U;if(r=jQuery.inArray(this.model.method,this.model.supportedSubmitMethods())>=0,r||(this.model.isReadOnly=!0),this.model.description=this.model.description||this.model.notes,this.model.description&&(this.model.description=this.model.description.replace(/(?:\r\n|\r|\n)/g,"<br />")),this.model.oauth=null,f=this.model.authorizations||this.model.security)if(Array.isArray(f))for(l=0,p=f.length;p>l;l++){n=f[l];for(o in n){t=n[o];for(e in this.auths)if(t=this.auths[e],"oauth2"===t.type){this.model.oauth={},this.model.oauth.scopes=[],x=t.value.scopes;for(i in x)N=x[i],E=n[o].indexOf(i),E>=0&&(g={scope:i,description:N},this.model.oauth.scopes.push(g))}}}else for(i in f)if(N=f[i],"oauth2"===i)for(null===this.model.oauth&&(this.model.oauth={}),void 0===this.model.oauth.scopes&&(this.model.oauth.scopes=[]),m=0,u=N.length;u>m;m++)g=N[m],this.model.oauth.scopes.push(g);if("undefined"!=typeof this.model.responses){this.model.responseMessages=[],k=this.model.responses;for(a in k)U=k[a],S=null,T=this.model.responses[a].schema,T&&T.$ref&&(S=T.$ref,0===S.indexOf("#/definitions/")&&(S=S.substring("#/definitions/".length))),this.model.responseMessages.push({code:a,message:U.description,responseModel:S})}if("undefined"==typeof this.model.responseMessages&&(this.model.responseMessages=[]),H=null,this.model.successResponse){V=this.model.successResponse;for(o in V)U=V[o],this.model.successCode=o,"object"==typeof U&&"function"==typeof U.createJSONSample&&(H={sampleJSON:JSON.stringify(U.createJSONSample(),void 0,2),isParam:!1,signature:U.getMockSignature()})}else this.model.responseClassSignature&&"string"!==this.model.responseClassSignature&&(H={sampleJSON:this.model.responseSampleJSON,isParam:!1,signature:this.model.responseClassSignature});for($(this.el).html(Handlebars.templates.operation(this.model)),H?(P=new SignatureView({model:H,tagName:"div"}),$(".model-signature",$(this.el)).append(P.render().el)):(this.model.responseClassSignature="string",$(".model-signature",$(this.el)).html(this.model.type)),s={isParam:!1},s.consumes=this.model.consumes,s.produces=this.model.produces,R=this.model.parameters,y=0,c=R.length;c>y;y++)_=R[y],F=_.type||_.dataType||"","undefined"==typeof F&&(S=_.schema,S&&S.$ref&&(b=S.$ref,F=0===b.indexOf("#/definitions/")?b.substring("#/definitions/".length):b)),F&&"file"===F.toLowerCase()&&(s.consumes||(s.consumes="multipart/form-data")),_.type=F;for(C=new ResponseContentTypeView({model:s}),$(".response-content-type",$(this.el)).append(C.render().el),O=this.model.parameters,v=0,h=O.length;h>v;v++)_=O[v],this.addParameter(_,s.consumes);for(D=this.model.responseMessages,w=0,d=D.length;d>w;w++)M=D[w],this.addStatusCode(M);return this},t.prototype.addParameter=function(e,t){var n;return e.consumes=t,n=new ParameterView({model:e,tagName:"tr",readOnly:this.model.isReadOnly}),$(".operation-params",$(this.el)).append(n.render().el)},t.prototype.addStatusCode=function(e){var t;return t=new StatusCodeView({model:e,tagName:"tr"}),$(".operation-status",$(this.el)).append(t.render().el)},t.prototype.submitOperation=function(e){var t,n,a,s,r,i,o,l,p,u,c,h,d,m,f,y;if(null!=e&&e.preventDefault(),n=$(".sandbox",$(this.el)),t=!0,n.find("input.required").each(function(){return $(this).removeClass("error"),""===jQuery.trim($(this).val())?($(this).addClass("error"),$(this).wiggle({callback:function(e){return function(){return $(e).focus()}}(this)}),t=!1):void 0}),n.find("textarea.required").each(function(){return $(this).removeClass("error"),""===jQuery.trim($(this).val())?($(this).addClass("error"),$(this).wiggle({callback:function(e){return function(){return $(e).focus()}}(this)}),t=!1):void 0}),t){for(p={},h={parent:this},a=!1,d=n.find("input"),s=0,r=d.length;r>s;s++)c=d[s],null!=c.value&&jQuery.trim(c.value).length>0&&(p[c.name]=c.value),"file"===c.type&&(a=!0);for(m=n.find("textarea"),l=0,i=m.length;i>l;l++)c=m[l],null!=c.value&&jQuery.trim(c.value).length>0&&(p[c.name]=c.value);for(f=n.find("select"),u=0,o=f.length;o>u;u++)c=f[u],y=this.getSelectedValue(c),null!=y&&jQuery.trim(y).length>0&&(p[c.name]=y);return h.responseContentType="*/*",h.requestContentType=$("div select[name=parameterContentType]",$(this.el)).val(),$(".response_throbber",$(this.el)).show(),a?this.handleFileUpload(p,n):this.model["do"](p,h,this.showCompleteStatus,this.showErrorStatus,this)}},t.prototype.success=function(e,t){return t.showCompleteStatus(e)},t.prototype.handleFileUpload=function(e,t){var n,a,s,r,i,o,l,p,u,c,h,d,m,f,y,g,v,_,w;for(g=t.serializeArray(),r=0,i=g.length;i>r;r++)h=g[r],null!=h.value&&jQuery.trim(h.value).length>0&&(e[h.name]=h.value);for(n=new FormData,y=0,v=this.model.parameters,u=0,o=v.length;o>u;u++)f=v[u],"form"===f.paramType&&"file"!==f.type.toLowerCase()&&void 0!==e[f.name]&&n.append(f.name,e[f.name]);for(s={},_=this.model.parameters,c=0,l=_.length;l>c;c++)f=_[c],"header"===f.paramType&&(s[f.name]=e[f.name]);for(w=t.find('input[type~="file"]'),m=0,p=w.length;p>m;m++)a=w[m],"undefined"!=typeof a.files[0]&&(n.append($(a).attr("name"),a.files[0]),y+=1);return this.invocationUrl=this.model.supportHeaderParams()?(s=this.model.getHeaderParams(e),delete s["Content-Type"],this.model.urlify(e,!1)):this.model.urlify(e,!0),$(".request_url",$(this.el)).html("<pre></pre>"),$(".request_url pre",$(this.el)).text(this.invocationUrl),d={type:this.model.method,url:this.invocationUrl,headers:s,data:n,dataType:"json",contentType:!1,processData:!1,error:function(e){return function(t,n,a){return e.showErrorStatus(e.wrap(t),e)}}(this),success:function(e){return function(t){return e.showResponse(t,e)}}(this),complete:function(e){return function(t){return e.showCompleteStatus(e.wrap(t),e)}}(this)},window.authorizations&&window.authorizations.apply(d),0===y&&d.data.append("fake","true"),jQuery.ajax(d),!1},t.prototype.wrap=function(e){var t,n,a,s,r,i,o;for(a={},n=e.getAllResponseHeaders().split("\r"),r=0,i=n.length;i>r;r++)s=n[r],t=s.match(/^([^:]*?):(.*)$/),t||(t=[]),t.shift(),void 0!==t[0]&&void 0!==t[1]&&(a[t[0].trim()]=t[1].trim());return o={},o.content={},o.content.data=e.responseText,o.headers=a,o.request={},o.request.url=this.invocationUrl,o.status=e.status,o},t.prototype.getSelectedValue=function(e){var t,n,a,s,r;if(e.multiple){for(s=[],r=e.options,t=0,n=r.length;n>t;t++)a=r[t],a.selected&&s.push(a.value);return s.length>0?s:null}return e.value},t.prototype.hideResponse=function(e){return null!=e&&e.preventDefault(),$(".response",$(this.el)).slideUp(),$(".response_hider",$(this.el)).fadeOut()},t.prototype.showResponse=function(e){var t;return t=JSON.stringify(e,null," ").replace(/\n/g,"<br>"),$(".response_body",$(this.el)).html(escape(t))},t.prototype.showErrorStatus=function(e,t){return t.showStatus(e)},t.prototype.showCompleteStatus=function(e,t){return t.showStatus(e)},t.prototype.formatXml=function(e){var t,n,a,s,r,i,o,l,p,u,c,h,d;for(c=/(>)(<)(\/*)/g,d=/[ ]*(.*)[ ]+\n/g,t=/(<.+>)(.+\n)/g,e=e.replace(c,"$1\n$2$3").replace(d,"$1\n").replace(t,"$1\n$2"),u=0,a="",l=e.split("\n"),s=0,i="other",h={"single->single":0,"single->closing":-1,"single->opening":0,"single->other":0,"closing->single":0,"closing->closing":-1,"closing->opening":0,"closing->other":0,"opening->single":1,"opening->closing":0,"opening->opening":1,"opening->other":1,"other->single":0,"other->closing":-1,"other->opening":0,"other->other":0},n=function(e){var t,n,r,o,l,p,u;return p={single:Boolean(e.match(/<.+\/>/)),closing:Boolean(e.match(/<\/.+>/)),opening:Boolean(e.match(/<[^!?].*>/))},l=function(){var e;e=[];for(r in p)u=p[r],u&&e.push(r);return e}()[0],l=void 0===l?"other":l,t=i+"->"+l,i=l,o="",s+=h[t],o=function(){var e,t,a;for(a=[],n=e=0,t=s;t>=0?t>e:e>t;n=t>=0?++e:--e)a.push(" ");return a}().join(""),"opening->closing"===t?a=a.substr(0,a.length-1)+e+"\n":a+=o+e+"\n"},r=0,o=l.length;o>r;r++)p=l[r],n(p);return a},t.prototype.showStatus=function(e){var t,n,a,s,r,i,o,l,p,u,c;if(void 0===e.content?(n=e.data,c=e.url):(n=e.content.data,c=e.request.url),r=e.headers,a=null,r&&(a=r["Content-Type"]||r["content-type"],a&&(a=a.split(";")[0].trim())),$(".response_body",$(this.el)).removeClass("json"),$(".response_body",$(this.el)).removeClass("xml"),n)if("application/json"===a||/\+json$/.test(a)){i=null;try{i=JSON.stringify(JSON.parse(n),null," ")}catch(h){s=h,i="can't parse JSON. Raw result:\n\n"+n}t=$("<code />").text(i),l=$('<pre class="json" />').append(t)}else"application/xml"===a||/\+xml$/.test(a)?(t=$("<code />").text(this.formatXml(n)),l=$('<pre class="xml" />').append(t)):"text/html"===a?(t=$("<code />").html(_.escape(n)),l=$('<pre class="xml" />').append(t)):/^image\//.test(a)?l=$("<img>").attr("src",c):(t=$("<code />").text(n),l=$('<pre class="json" />').append(t));else t=$("<code />").text("no content"),l=$('<pre class="json" />').append(t);return p=l,$(".request_url",$(this.el)).html("<pre></pre>"),$(".request_url pre",$(this.el)).text(c),$(".response_code",$(this.el)).html("<pre>"+e.status+"</pre>"),$(".response_body",$(this.el)).html(p),$(".response_headers",$(this.el)).html("<pre>"+_.escape(JSON.stringify(e.headers,null," ")).replace(/\n/g,"<br>")+"</pre>"),$(".response",$(this.el)).slideDown(),$(".response_hider",$(this.el)).show(),$(".response_throbber",$(this.el)).hide(),u=$(".response_body",$(this.el))[0],o=this.options.swaggerOptions,o.highlightSizeThreshold&&e.data.length>o.highlightSizeThreshold?u:hljs.highlightBlock(u)},t.prototype.toggleOperationContent=function(){var e;return e=$("#"+Docs.escapeResourceName(this.parentId+"_"+this.nickname+"_content")),e.is(":visible")?Docs.collapseOperation(e):Docs.expandOperation(e)},t}(Backbone.View),this.Handlebars.templates.param_readonly=Handlebars.template({1:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return" <textarea class='body-textarea' readonly='readonly' name='"+o((s=null!=(s=t.name||(null!=e?e.name:e))?s:i,typeof s===r?s.call(e,{name:"name",hash:{},data:a}):s))+"'>"+o((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:i,typeof s===r?s.call(e,{name:"default",hash:{},data:a}):s))+"</textarea>\n"},3:function(e,t,n,a){var s,r="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(4,a),inverse:this.program(6,a),data:a}),null!=s&&(r+=s),r},4:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return" "+o((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:i,typeof s===r?s.call(e,{name:"default",hash:{},data:a}):s))+"\n"},6:function(e,t,n,a){return" (vacío)\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,r,i="function",o=t.helperMissing,l=this.escapeExpression,p="<td class='code'>"+l((r=null!=(r=t.name||(null!=e?e.name:e))?r:o,typeof r===i?r.call(e,{name:"name",hash:{},data:a}):r))+"</td>\n<td>\n";return s=t["if"].call(e,null!=e?e.isBody:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(3,a),data:a}),null!=s&&(p+=s),p+='</td>\n<td class="markdown">',r=null!=(r=t.description||(null!=e?e.description:e))?r:o,s=typeof r===i?r.call(e,{name:"description",hash:{},data:a}):r,null!=s&&(p+=s),p+="</td>\n<td>",r=null!=(r=t.paramType||(null!=e?e.paramType:e))?r:o,s=typeof r===i?r.call(e,{name:"paramType",hash:{},data:a}):r,null!=s&&(p+=s),p+'</td>\n<td><span class="model-signature"></span></td>\n'},useData:!0});var ParameterContentTypeView,extend=function(e,t){function n(){this.constructor=e}for(var a in t)hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},hasProp={}.hasOwnProperty;ParameterContentTypeView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return extend(t,e),t.prototype.initialize=function(){},t.prototype.render=function(){var e;return e=this.template(),$(this.el).html(e(this.model)),$("label[for=parameterContentType]",$(this.el)).text("Content type del parámetro:"),this},t.prototype.template=function(){return Handlebars.templates.parameter_content_type},t}(Backbone.View),this.Handlebars.templates.param_readonly_required=Handlebars.template({1:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return" <textarea class='body-textarea' readonly='readonly' placeholder='(required)' name='"+o((s=null!=(s=t.name||(null!=e?e.name:e))?s:i,typeof s===r?s.call(e,{name:"name",hash:{},data:a}):s))+"'>"+o((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:i,typeof s===r?s.call(e,{name:"default",hash:{},data:a}):s))+"</textarea>\n"},3:function(e,t,n,a){var s,r="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(4,a),inverse:this.program(6,a),data:a}),null!=s&&(r+=s),r},4:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return" "+o((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:i,typeof s===r?s.call(e,{name:"default",hash:{},data:a}):s))+"\n"},6:function(e,t,n,a){return" (empty)\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,r,i="function",o=t.helperMissing,l=this.escapeExpression,p="<td class='code required'>"+l((r=null!=(r=t.name||(null!=e?e.name:e))?r:o,typeof r===i?r.call(e,{name:"name",hash:{},data:a}):r))+"</td>\n<td>\n";return s=t["if"].call(e,null!=e?e.isBody:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(3,a),data:a}),null!=s&&(p+=s),p+='</td>\n<td class="markdown">',r=null!=(r=t.description||(null!=e?e.description:e))?r:o,s=typeof r===i?r.call(e,{name:"description",hash:{},data:a}):r,null!=s&&(p+=s),p+="</td>\n<td>",r=null!=(r=t.paramType||(null!=e?e.paramType:e))?r:o,s=typeof r===i?r.call(e,{name:"paramType",hash:{},data:a}):r,null!=s&&(p+=s),p+'</td>\n<td><span class="model-signature"></span></td>\n'},useData:!0}),this.Handlebars.templates.param_required=Handlebars.template({1:function(e,t,n,a){var s,r="";return s=t["if"].call(e,null!=e?e.isFile:e,{name:"if",hash:{},fn:this.program(2,a),inverse:this.program(4,a),data:a}),null!=s&&(r+=s),r},2:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return' <input type="file" name=\''+o((s=null!=(s=t.name||(null!=e?e.name:e))?s:i,typeof s===r?s.call(e,{name:"name",hash:{},data:a}):s))+"'/>\n"},4:function(e,t,n,a){var s,r="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(5,a),inverse:this.program(7,a),data:a}),null!=s&&(r+=s),r},5:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return" <textarea class='body-textarea required' placeholder='(requerido)' name='"+o((s=null!=(s=t.name||(null!=e?e.name:e))?s:i,typeof s===r?s.call(e,{name:"name",hash:{},data:a}):s))+"'>"+o((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:i,typeof s===r?s.call(e,{name:"default",hash:{},data:a}):s))+'</textarea>\n <br />\n <div class="parameter-content-type" />\n'},7:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return" <textarea class='body-textarea required' placeholder='(requerido)' name='"+o((s=null!=(s=t.name||(null!=e?e.name:e))?s:i,typeof s===r?s.call(e,{name:"name",hash:{},data:a}):s))+'\'></textarea>\n <br />\n <div class="parameter-content-type" />\n'},9:function(e,t,n,a){var s,r="";return s=t["if"].call(e,null!=e?e.isFile:e,{name:"if",hash:{},fn:this.program(10,a),inverse:this.program(12,a),data:a}),null!=s&&(r+=s),r},10:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return" <input class='parameter' class='required' type='file' name='"+o((s=null!=(s=t.name||(null!=e?e.name:e))?s:i,typeof s===r?s.call(e,{name:"name",hash:{},data:a}):s))+"'/>\n"},12:function(e,t,n,a){var s,r="";return s=t["if"].call(e,null!=e?e["default"]:e,{name:"if",hash:{},fn:this.program(13,a),inverse:this.program(15,a),data:a}),null!=s&&(r+=s),r},13:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return" <input class='parameter required' minlength='1' name='"+o((s=null!=(s=t.name||(null!=e?e.name:e))?s:i,typeof s===r?s.call(e,{name:"name",hash:{},data:a}):s))+"' placeholder='(requerido)' type='text' value='"+o((s=null!=(s=t["default"]||(null!=e?e["default"]:e))?s:i,typeof s===r?s.call(e,{name:"default",hash:{},data:a}):s))+"'/>\n"},15:function(e,t,n,a){var s,r="function",i=t.helperMissing,o=this.escapeExpression;return" <input class='parameter required' minlength='1' name='"+o((s=null!=(s=t.name||(null!=e?e.name:e))?s:i,typeof s===r?s.call(e,{name:"name",hash:{},data:a}):s))+"' placeholder='(requerido)' type='text' value=''/>\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,r,i="function",o=t.helperMissing,l=this.escapeExpression,p="<td class='code required'>"+l((r=null!=(r=t.name||(null!=e?e.name:e))?r:o,typeof r===i?r.call(e,{name:"name",hash:{},data:a}):r))+"</td>\n<td>\n";return s=t["if"].call(e,null!=e?e.isBody:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(9,a),data:a}),null!=s&&(p+=s),p+='</td>\n<td>\n <strong><span class="markdown">',r=null!=(r=t.description||(null!=e?e.description:e))?r:o,s=typeof r===i?r.call(e,{name:"description",hash:{},data:a}):r,null!=s&&(p+=s),p+="</span></strong>\n</td>\n<td>",r=null!=(r=t.paramType||(null!=e?e.paramType:e))?r:o,s=typeof r===i?r.call(e,{name:"paramType",hash:{},data:a}):r,null!=s&&(p+=s),p+'</td>\n<td><span class="model-signature"></span></td>\n'},useData:!0});var ParameterView,extend=function(e,t){function n(){this.constructor=e}for(var a in t)hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},hasProp={}.hasOwnProperty;ParameterView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return extend(t,e),t.prototype.initialize=function(){return Handlebars.registerHelper("isArray",function(e,t){return"array"===e.type.toLowerCase()||e.allowMultiple?t.fn(this):t.inverse(this)})},t.prototype.render=function(){var e,t,n,a,s,r,i,o,l,p;return p=this.model.type||this.model.dataType,"undefined"==typeof p&&(r=this.model.schema,r&&r.$ref&&(a=r.$ref,p=0===a.indexOf("#/definitions/")?a.substring("#/definitions/".length):a)),this.model.type=p,this.model.paramType=this.model["in"]||this.model.paramType,("body"===this.model.paramType||"body"===this.model["in"])&&(this.model.isBody=!0),p&&"file"===p.toLowerCase()&&(this.model.isFile=!0),this.model["default"]=this.model["default"]||this.model.defaultValue,this.model.allowableValues&&(this.model.isList=!0),l=this.template(),$(this.el).html(l(this.model)),i={sampleJSON:this.model.sampleJSON,isParam:!0,signature:this.model.signature},this.model.sampleJSON?(o=new SignatureView({model:i,tagName:"div"}),$(".model-signature",$(this.el)).append(o.render().el)):$(".model-signature",$(this.el)).html(this.model.signature),t=!1,this.model.isBody&&(t=!0),e={isParam:t},e.consumes=this.model.consumes,t?(n=new ParameterContentTypeView({model:e}),$(".parameter-content-type",$(this.el)).append(n.render().el)):(s=new ResponseContentTypeView({model:e}),$(".response-content-type",$(this.el)).append(s.render().el)),this},t.prototype.template=function(){return this.model.isList?Handlebars.templates.param_list:this.options.readOnly?this.model.required?Handlebars.templates.param_readonly_required:Handlebars.templates.param_readonly:this.model.required?Handlebars.templates.param_required:Handlebars.templates.param},t}(Backbone.View);var ResourceView,extend=function(e,t){function n(){this.constructor=e}for(var a in t)hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},hasProp={}.hasOwnProperty;ResourceView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return extend(t,e),t.prototype.initialize=function(e){return null==e&&(e={}),this.auths=e.auths,""===this.model.description?this.model.description=null:void 0},t.prototype.render=function(){var e,t,n,a,s,r,i;for(s={},$(this.el).html(Handlebars.templates.resource(this.model)),i=this.model.operationsArray,t=0,a=i.length;a>t;t++){for(r=i[t],e=0,n=r.nickname;"undefined"!=typeof s[n];)n=n+"_"+e,e+=1;s[n]=r,r.nickname=n,r.parentId=this.model.id,this.addOperation(r)}return $(".toggleEndpointList",this.el).click(this.callDocs.bind(this,"toggleEndpointListForResource")),$(".collapseResource",this.el).click(this.callDocs.bind(this,"collapseOperationsForResource")),$(".expandResource",this.el).click(this.callDocs.bind(this,"expandOperationsForResource")),this},t.prototype.addOperation=function(e){var t;return e.number=this.number,t=new OperationView({model:e,tagName:"li",className:"endpoint",swaggerOptions:this.options.swaggerOptions,auths:this.auths}),$(".endpoints",$(this.el)).append(t.render().el),this.number++},t.prototype.callDocs=function(e,t){return t.preventDefault(),Docs[e](t.currentTarget.getAttribute("data-id"))},t}(Backbone.View),this.Handlebars.templates.parameter_content_type=Handlebars.template({1:function(e,t,n,a){var s,r="";return s=t.each.call(e,null!=e?e.consumes:e,{name:"each",hash:{},fn:this.program(2,a),inverse:this.noop,data:a}),null!=s&&(r+=s),r},2:function(e,t,n,a){var s,r=this.lambda,i=' <option value="';return s=r(e,e),null!=s&&(i+=s),i+='">',s=r(e,e),null!=s&&(i+=s),i+"</option>\n"},4:function(e,t,n,a){return' <option value="application/json">application/json</option>\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,r='<label for="parameterContentType"></label>\n<select name="parameterContentType">\n';return s=t["if"].call(e,null!=e?e.consumes:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(4,a),data:a}),null!=s&&(r+=s),r+"</select>\n"},useData:!0});var ResponseContentTypeView,extend=function(e,t){function n(){this.constructor=e}for(var a in t)hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},hasProp={}.hasOwnProperty;ResponseContentTypeView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return extend(t,e),t.prototype.initialize=function(){},t.prototype.render=function(){var e;return e=this.template(),$(this.el).html(e(this.model)),$("label[for=responseContentType]",$(this.el)).text("Content type de la respuesta"),this},t.prototype.template=function(){return Handlebars.templates.response_content_type},t}(Backbone.View),this.Handlebars.templates.resource=Handlebars.template({1:function(e,t,n,a){return": "},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,r,i,o="function",l=t.helperMissing,p=this.escapeExpression,u=t.blockHelperMissing,c="<div class='panel panel-default'>\n\n <div class='panel-heading heading pointer-cursor toggleEndpointList' href='#!/"+p((r=null!=(r=t.id||(null!=e?e.id:e))?r:l,typeof r===o?r.call(e,{name:"id",hash:{},data:a}):r))+"' data-id=\""+p((r=null!=(r=t.id||(null!=e?e.id:e))?r:l,typeof r===o?r.call(e,{name:"id",hash:{},data:a}):r))+'">\n <h2>\n '+p((r=null!=(r=t.name||(null!=e?e.name:e))?r:l,typeof r===o?r.call(e,{name:"name",hash:{},data:a}):r))+" ";return r=null!=(r=t.summary||(null!=e?e.summary:e))?r:l,i={name:"summary",hash:{},fn:this.program(1,a),inverse:this.noop,data:a},s=typeof r===o?r.call(e,i):r,t.summary||(s=u.call(e,s,i)),null!=s&&(c+=s),r=null!=(r=t.summary||(null!=e?e.summary:e))?r:l,s=typeof r===o?r.call(e,{name:"summary",hash:{},data:a}):r,null!=s&&(c+=s),c+"\n </h2>\n </div>\n\n\n <div class='panel-body'>\n <ul class='endpoints' id='"+p((r=null!=(r=t.id||(null!=e?e.id:e))?r:l,typeof r===o?r.call(e,{name:"id",hash:{},data:a}):r))+"_endpoint_list' style='display:none'>\n\n </ul>\n </div>\n</div>"},useData:!0});var SignatureView,extend=function(e,t){function n(){this.constructor=e}for(var a in t)hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},hasProp={}.hasOwnProperty;SignatureView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return extend(t,e),t.prototype.events={"click a.description-link":"switchToDescription","click a.snippet-link":"switchToSnippet","mousedown .snippet":"snippetToTextArea"},t.prototype.initialize=function(){},t.prototype.render=function(){var e;return e=this.template(),$(this.el).html(e(this.model)),this.switchToSnippet(),this.isParam=this.model.isParam,this.isParam&&$(".notice",$(this.el)).text("Clickear para setear como respuesta!"),this},t.prototype.template=function(){return Handlebars.templates.signature},t.prototype.switchToDescription=function(e){return null!=e&&e.preventDefault(),$(".snippet",$(this.el)).hide(),$(".description",$(this.el)).show(),$(".description-link",$(this.el)).addClass("selected"),$(".snippet-link",$(this.el)).removeClass("selected")},t.prototype.switchToSnippet=function(e){return null!=e&&e.preventDefault(),$(".description",$(this.el)).hide(),$(".snippet",$(this.el)).show(),$(".snippet-link",$(this.el)).addClass("selected"),$(".description-link",$(this.el)).removeClass("selected"); },t.prototype.snippetToTextArea=function(e){var t;return this.isParam&&(null!=e&&e.preventDefault(),t=$("textarea",$(this.el.parentNode.parentNode.parentNode)),""===$.trim(t.val()))?t.val(this.model.sampleJSON):void 0},t}(Backbone.View),this.Handlebars.templates.response_content_type=Handlebars.template({1:function(e,t,n,a){var s,r="";return s=t.each.call(e,null!=e?e.produces:e,{name:"each",hash:{},fn:this.program(2,a),inverse:this.noop,data:a}),null!=s&&(r+=s),r},2:function(e,t,n,a){var s,r=this.lambda,i=' <option value="';return s=r(e,e),null!=s&&(i+=s),i+='">',s=r(e,e),null!=s&&(i+=s),i+"</option>\n"},4:function(e,t,n,a){return' <option value="application/json">application/json</option>\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,r='<label for="responseContentType"></label>\n<select name="responseContentType">\n';return s=t["if"].call(e,null!=e?e.produces:e,{name:"if",hash:{},fn:this.program(1,a),inverse:this.program(4,a),data:a}),null!=s&&(r+=s),r+"</select>\n"},useData:!0});var StatusCodeView,extend=function(e,t){function n(){this.constructor=e}for(var a in t)hasProp.call(t,a)&&(e[a]=t[a]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},hasProp={}.hasOwnProperty;StatusCodeView=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return extend(t,e),t.prototype.initialize=function(){},t.prototype.render=function(){var e,t,n;return n=this.template(),$(this.el).html(n(this.model)),swaggerUi.api.models.hasOwnProperty(this.model.responseModel)?(e={sampleJSON:JSON.stringify(swaggerUi.api.models[this.model.responseModel].createJSONSample(),null,2),isParam:!1,signature:swaggerUi.api.models[this.model.responseModel].getMockSignature()},t=new SignatureView({model:e,tagName:"div"}),$(".model-signature",this.$el).append(t.render().el)):$(".model-signature",this.$el).html(""),this},t.prototype.template=function(){return Handlebars.templates.status_code},t}(Backbone.View),this.Handlebars.templates.signature=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,r,i="function",o=t.helperMissing,l=this.escapeExpression,p='<div>\n<ul class="signature-nav">\n <li><a class="description-link" href="#">Modelo</a></li>\n <li><a class="snippet-link" href="#">Esquema</a></li>\n</ul>\n<div>\n\n<div class="signature-container">\n <div class="description">\n ';return r=null!=(r=t.signature||(null!=e?e.signature:e))?r:o,s=typeof r===i?r.call(e,{name:"signature",hash:{},data:a}):r,null!=s&&(p+=s),p+'\n </div>\n\n <div class="snippet">\n <pre><code>'+l((r=null!=(r=t.sampleJSON||(null!=e?e.sampleJSON:e))?r:o,typeof r===i?r.call(e,{name:"sampleJSON",hash:{},data:a}):r))+'</code></pre>\n <small class="notice"></small>\n </div>\n</div>\n\n'},useData:!0}),this.Handlebars.templates.status_code=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(e,t,n,a){var s,r,i="function",o=t.helperMissing,l=this.escapeExpression,p="<td width='15%' class='code'>"+l((r=null!=(r=t.code||(null!=e?e.code:e))?r:o,typeof r===i?r.call(e,{name:"code",hash:{},data:a}):r))+"</td>\n<td>";return r=null!=(r=t.message||(null!=e?e.message:e))?r:o,s=typeof r===i?r.call(e,{name:"message",hash:{},data:a}):r,null!=s&&(p+=s),p+"</td>\n<td width='50%'><span class=\"model-signature\" /></td>"},useData:!0}); |
:: Command execute :: | |
--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.5892 ]-- |