text: function sjeClass(){return new ValueTransformer}var ValueTransformer=function(){this.displayName="Fakeimg.pl - Fake Images",this.shortDescription="Fakeimg.pl - Generate fake image urls.",this.isEditingDisabled=!0,this.infoUrl="https://github.com/SmartJSONEditor/PublicDocuments/wiki/ValueTransformer-Fakeimg.pl",this.parameters=function(){var e={name:"width",displayName:"Image Width",description:"Set fake image width.",type:"Number",defaultValue:"200"},a={name:"height",displayName:"Image Height",description:"Set fake image height.",type:"Number",defaultValue:"150"},r={name:"color",displayName:"Color hex code",description:"Set background color hex code such: ffffff / 000000.",type:"String",defaultValue:""},t={name:"text",displayName:"Placeholder text",description:"Set placehoder text",type:"String",defaultValue:""},i=[{displayName:"Prepend",enabled:0},{displayName:"Replace",enabled:1},{displayName:"Append",enabled:0}],n={type:"Segments",name:"output",displayName:"Output",description:"Prepend, replace or append value.",defaultValue:i};return[e,a,r,t,n]},this.transform=function(e,a,r,t){var i="http://fakeimg.pl/";return i=i+t.width+"x",i=i+t.height+"/",""!=t.color&&(i=i+t.color+"/"),""!=t.text&&(i=i+"?text="+t.text),1==t.output[0].enabled?i+e:1==t.output[1].enabled?i:1==t.output[2].enabled?e+i:void 0}};