webroot.openapi-viewer.js.chunk-2f70627e-legacy.3eab5b78.js Maven / Gradle / Ivy
Show all versions of smartvillage-platform Show documentation
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2f70627e"],{"004a":function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:"sw-tree "+(t.showDescr?"sw-show-descr":"sw-hide-descr")+" sw-format-"+t.displayFormat,style:{"background-color":t.treeContentBackground,position:t.currentDeep>1?"":"relative"},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)}}},[Array.isArray(t.data)||t.isObject(t.data)?[a("bracket-left",{attrs:{visible:t.visible,data:t.data,"show-length":t.showLength,"not-last-key":t.notLastKey},on:{"update:visible":function(e){t.visible=e}}},[t.currentDeep>1&&!Array.isArray(t.parentData)?a("span",[t._v(t._s(t.currentKey)+":")]):t._e()]),t._l(t.data,function(e,r){return a("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],key:r,staticClass:"sw-tree-content"},[a("json-tree",{attrs:{"parent-data":t.data,data:e,deep:t.deep,"show-length":t.showLength,path:t.path+(Array.isArray(t.data)?"["+r+"]":"."+r),"allow-interaction":t.allowInteraction,"current-key":r,"display-format":t.displayFormat,"current-deep":t.currentDeep+1},on:{click:t.handleItemClick}})],1)}),a("bracket-right",{attrs:{visible:t.visible,data:t.data,"not-last-key":t.notLastKey},on:{"update:visible":function(e){t.visible=e}}})]:a("content-block",{attrs:{parentDataType:t.getDataType(t.parentData),dataType:t.getDataType(t.data),text:t.data+"",notLastKey:t.notLastKey,displayFormat:t.displayFormat,currentKey:t.currentKey}})],2)},n=[],s=(a("6b54"),a("a4bb")),i=a.n(s),o=a("a745"),c=a.n(o),l=(a("c5f6"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sw-content-block"},["object"===t.parentDataType?a("div",{staticClass:"sw-content-key"},[t._v(t._s(t.currentKey)+":")]):t._e(),a("div",{class:"sw-content sw-datatype-"+("json"===t.displayFormat?t.dataType:t.text.substring(0,4))},[t._v(t._s(t.getText()))]),a("div",{staticStyle:{flex:"1","min-width":"15px"}}),a("div",{ref:"descrDiv",class:"sw-descr "+t.descrClass},[t._v("\n "+t._s(t.description)+" \n ")]),t.description?a("span",{staticClass:"sw-descr-expander",on:{click:function(e){return t.handleItemToggleDescr()}}},[t._v(" \n "+t._s("sw-descr-collapsed"===t.descrClass?"⤵":"⤴")+"\n ")]):t._e()])}),p=[],u=(a("28a5"),{props:{parentDataType:String,dataType:String,text:String,notLastKey:Boolean,currentKey:[Number,String],displayFormat:{type:String,default:"json"}},data:function(){return{description:this.getDescription(),descrClass:"sw-descr-collapsed",showDescrExpander:!0}},methods:{getText:function(){if("text"===this.displayFormat)return this.text.split("~|~")[0];var t=this.text;return"string"===this.dataType&&(t='"'.concat(t,'"')),this.notLastKey&&(t+=","),t},getDescription:function(){if("text"===this.displayFormat){var t=this.text.split("~|~");return t[1]?t[1]:""}return""},handleItemToggleDescr:function(){"sw-descr-collapsed"===this.descrClass?this.descrClass="sw-descr-expanded":this.descrClass="sw-descr-collapsed",this.$emit("toggleDescription")}}}),d=u,f=a("2877"),m=Object(f["a"])(d,l,p,!1,null,null,null),h=m.exports,y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._t("default"),a("span",{directives:[{name:"show",rawName:"v-show",value:t.dataVisiable,expression:"dataVisiable"}],staticClass:"sw-tree-bracket-left",on:{click:function(e){return e.stopPropagation(),t.toggleBrackets(e)}}},[t._v("\n "+t._s(Array.isArray(t.data)?"[":"{")+"\n ")]),a("span",{directives:[{name:"show",rawName:"v-show",value:!t.dataVisiable,expression:"!dataVisiable"}],staticClass:"sw-tree-bracket-left",on:{click:function(e){return e.stopPropagation(),t.toggleBrackets(e)}}},[t._v("\n "+t._s(t.doubleBracketsGenerator(t.data))+"\n ")])],2)},v=[],b={props:{visible:{required:!0,type:Boolean},data:{required:!0},notLastKey:Boolean},computed:{dataVisiable:{get:function(){return this.visible},set:function(t){this.$emit("update:visible",t)}}},methods:{toggleBrackets:function(){this.dataVisiable=!this.dataVisiable},bracketsFormatter:function(t){return this.notLastKey?"".concat(t,","):t}}},g={mixins:[b],props:{showLength:Boolean},methods:{doubleBracketsGenerator:function(t){var e=c()(t),a=e?"[...]":"{...}";if(this.showLength){var r=e?"".concat(t.length," items"):"".concat(i()(t).length," keys");a+=" // ".concat(r)}return this.bracketsFormatter(a)}}},w=g,_=Object(f["a"])(w,y,v,!1,null,null,null),x=_.exports,k=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.dataVisiable,expression:"dataVisiable"}]},[a("span",{staticClass:"sw-tree-bracket-right",on:{click:function(e){return e.stopPropagation(),t.toggleBrackets(e)}}},[t._v("\n "+t._s(t.bracketsFormatter(Array.isArray(t.data)?"]":"}"))+"\n ")])])},C=[],D={mixins:[b]},N=D,I=Object(f["a"])(N,k,C,!1,null,null,null),S=I.exports,A={name:"json-tree",components:{ContentBlock:h,BracketLeft:x,BracketRight:S},props:{data:{},deep:{type:Number,default:1/0},showLength:{type:Boolean,default:!1},path:{type:String,default:"root"},allowInteraction:{type:Boolean,default:!0},parentData:{},currentDeep:{type:Number,default:1},currentKey:[Number,String],displayFormat:{type:String,default:"json"}},data:function(){return{visible:this.currentDeep<=this.deep,treeContentBackground:"transparent",showDescr:!0}},computed:{lastKey:function(){if(c()(this.parentData))return this.parentData.length-1;if(this.isObject(this.parentData)){var t=i()(this.parentData);return t[t.length-1]}},notLastKey:function(){return this.currentKey!==this.lastKey}},methods:{handleClick:function(t){this.allowInteraction&&this.$emit("click",this.path,this.data)},handleItemClick:function(t,e){this.$emit("click",t,e)},isObject:function(t){return"object"===this.getDataType(t)},getDataType:function(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}},watch:{deep:function(t){this.visible=this.currentDeep<=t}}},T=A,L=(a("f1ac"),Object(f["a"])(T,r,n,!1,null,null,null));e["a"]=L.exports},"07a6":function(t,e,a){},"0ccf":function(t,e,a){},"11e9":function(t,e,a){var r=a("52a7"),n=a("4630"),s=a("6821"),i=a("6a99"),o=a("69a8"),c=a("c69a"),l=Object.getOwnPropertyDescriptor;e.f=a("9e1e")?l:function(t,e){if(t=s(t),e=i(e,!0),c)try{return l(t,e)}catch(a){}if(o(t,e))return n(!r.f.call(t,e),t[e])}},"1af6":function(t,e,a){var r=a("63b6");r(r.S,"Array",{isArray:a("9003")})},"4efa":function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"sw-table",staticStyle:{width:"100%"}},t._l(t.parameters,function(e,r){return a("tr",{key:r},[a("td",{staticStyle:{"min-width":"80px"}},[a("div",{staticClass:"sw-param-name"},[e.required?a("span",{staticClass:"sw-param-req"},[t._v("*")]):t._e(),t._v(t._s(e.name))]),a("div",{staticClass:"sw-param-type",domProps:{innerHTML:t._s(t.getTypeInfoHtml(e.schema))}})]),a("td",{staticStyle:{"min-width":"100px"}},["string"===e.schema.type&&e.schema.enum?a("el-select",{staticStyle:{width:"100%"},attrs:{"popper-class":"sw-small-height-options",size:"medium"},model:{value:e.example,callback:function(a){t.$set(e,"example",a)},expression:"param.example"}},t._l(e.schema.enum,function(t){return a("el-option",{key:t,attrs:{label:t.toString(),value:t}})}),1):"array"===e.schema.type&&e.schema.items?["string"===e.schema.items.type&&e.schema.items.enum?a("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"","popper-class":"sw-small-height-options",size:"medium"},model:{value:e.example,callback:function(a){t.$set(e,"example",a)},expression:"param.example"}},t._l(e.schema.items.enum,function(t){return a("el-option",{key:t,attrs:{label:t.toString(),value:t}})}),1):a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.example,expression:"param.example"}],staticClass:"sw-mono-font",staticStyle:{"min-height":"42px"},domProps:{value:e.example},on:{input:function(a){a.target.composing||t.$set(e,"example",a.target.value)}}})]:a("input",{directives:[{name:"model",rawName:"v-model",value:e.example,expression:"param.example"}],staticClass:"sw-medium",staticStyle:{width:"100%"},attrs:{type:"text"},domProps:{value:e.example},on:{input:function(a){a.target.composing||t.$set(e,"example",a.target.value)}}})],2),a("td",[a("div",{staticClass:"sw-markdown-block",staticStyle:{"word-break":"break-word"}},[a("span",{domProps:{innerHTML:t._s(t.$marked(e.description?e.description:""))}}),e.schema.enum?a("span",[t._v(" \n "+t._s(e.schema.pattern?"Pattern: "+e.schema.pattern:"")+" \n ")]):t._e()])])])}),0)},n=[],s=a("b279"),i={props:{parameters:{type:Array,default:function(){return[]}},showInputs:{type:Boolean,default:!0}},data:function(){return{parametersLocal:this.parameters}},methods:{getTypeInfoHtml:function(t){return Object(s["d"])(t)}}},o=i,c=(a("5d4e"),a("2877")),l=Object(c["a"])(o,r,n,!1,null,"949a757c",null);e["a"]=l.exports},"5d4e":function(t,e,a){"use strict";var r=a("0ccf"),n=a.n(r);n.a},"5dbc":function(t,e,a){var r=a("d3f4"),n=a("8b97").set;t.exports=function(t,e,a){var s,i=e.constructor;return i!==a&&"function"==typeof i&&(s=i.prototype)!==a.prototype&&r(s)&&n&&n(t,s),t}},"8b97":function(t,e,a){var r=a("d3f4"),n=a("cb7c"),s=function(t,e){if(n(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=a("9b43")(Function.call,a("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(n){e=!0}return function(t,a){return s(t,a),e?t.__proto__=a:r(t,a),t}}({},!1):void 0),check:s}},9093:function(t,e,a){var r=a("ce10"),n=a("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,n)}},a745:function(t,e,a){t.exports=a("f410")},aa77:function(t,e,a){var r=a("5ca1"),n=a("be13"),s=a("79e5"),i=a("fdef"),o="["+i+"]",c="
",l=RegExp("^"+o+o+"*"),p=RegExp(o+o+"*$"),u=function(t,e,a){var n={},o=s(function(){return!!i[t]()||c[t]()!=c}),l=n[t]=o?e(d):i[t];a&&(n[a]=l),r(r.P+r.F*o,"String",n)},d=u.trim=function(t,e){return t=String(n(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(p,"")),t};t.exports=u},c5f6:function(t,e,a){"use strict";var r=a("7726"),n=a("69a8"),s=a("2d95"),i=a("5dbc"),o=a("6a99"),c=a("79e5"),l=a("9093").f,p=a("11e9").f,u=a("86cc").f,d=a("aa77").trim,f="Number",m=r[f],h=m,y=m.prototype,v=s(a("2aeb")(y))==f,b="trim"in String.prototype,g=function(t){var e=o(t,!1);if("string"==typeof e&&e.length>2){e=b?e.trim():d(e,3);var a,r,n,s=e.charCodeAt(0);if(43===s||45===s){if(a=e.charCodeAt(2),88===a||120===a)return NaN}else if(48===s){switch(e.charCodeAt(1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+e}for(var i,c=e.slice(2),l=0,p=c.length;ln)return NaN;return parseInt(c,r)}}return+e};if(!m(" 0o1")||!m("0b1")||m("+0x1")){m=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof m&&(v?c(function(){y.valueOf.call(a)}):s(a)!=f)?i(new h(g(e)),a,m):g(e)};for(var w,_=a("9e1e")?l(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;_.length>x;x++)n(h,w=_[x])&&!n(m,w)&&u(m,w,p(h,w));m.prototype=y,y.constructor=m,a("2aba")(r,f,m)}},f1ac:function(t,e,a){"use strict";var r=a("07a6"),n=a.n(r);n.a},f410:function(t,e,a){a("1af6"),t.exports=a("584a").Array.isArray},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}}]);
//# sourceMappingURL=chunk-2f70627e-legacy.3eab5b78.js.map