define(["modules/forms/module"],function(a){"use strict";a.registerController("ImageEditorCtrl",["$scope",function(a){a.apiDemoSelection=[100,100,400,300],a.apiDemoOptions={allowSelect:!0,allowResize:!0,allowMove:!0,animate:!1},a.apiRandomSelection=function(){a.apiDemoOptions.animate=!1,a.apiDemoSelection=[Math.round(600*Math.random()),Math.round(400*Math.random()),Math.round(600*Math.random()),Math.round(400*Math.random())]},a.apiRandomAnimation=function(){a.apiDemoOptions.animate=!0,a.apiDemoSelection=[Math.round(600*Math.random()),Math.round(400*Math.random()),Math.round(600*Math.random()),Math.round(400*Math.random())]},a.apiReleaseSelection=function(){a.apiDemoOptions.animate=!0,a.apiDemoSelection="release"},a.apiToggleDisable=function(){a.apiDemoOptions.disabled=!a.apiDemoOptions.disabled},a.apiToggleDestroy=function(){a.apiDemoOptions.destroyed=!a.apiDemoOptions.destroyed},a.apiDemoShowAspect=!1,a.apiDemoToggleAspect=function(){a.apiDemoShowAspect=!a.apiDemoShowAspect,a.apiDemoOptions.aspectRatio=a.apiDemoShowAspect?4/3:0},a.apiDemoShowSizeRestrict=!1,a.apiDemoToggleSizeRestrict=function(){a.apiDemoShowSizeRestrict=!a.apiDemoShowSizeRestrict,a.apiDemoShowSizeRestrict?(a.apiDemoOptions.minSizeWidth=80,a.apiDemoOptions.minSizeHeight=80,a.apiDemoOptions.maxSizeWidth=350,a.apiDemoOptions.maxSizeHeight=350):(a.apiDemoOptions.minSizeWidth=0,a.apiDemoOptions.minSizeHeight=0,a.apiDemoOptions.maxSizeWidth=0,a.apiDemoOptions.maxSizeHeight=0)},a.setApiDemoImage=function(b){a.apiDemoImage=b,a.apiDemoOptions.src=b.src,a.apiDemoOptions.bgOpacity=b.bgOpacity,a.apiDemoOptions.outerImage=b.outerImage,a.apiRandomAnimation()},a.apiDemoImages=[{name:"Lego",src:"styles/img/superbox/superbox-full-24.jpg",bgOpacity:.6},{name:"Breakdance",src:"styles/img/superbox/superbox-full-7.jpg",bgOpacity:.6},{name:"Dragon Fly",src:"styles/img/superbox/superbox-full-20.jpg",bgOpacity:1,outerImage:"styles/img/superbox/superbox-full-20-bw.jpg"}],a.apiDemoImage=a.apiDemoImages[1],a.animationsDemoOptions={bgOpacity:void 0,bgColor:void 0,bgFade:!0,shade:!1,animate:!0},a.animationsDemoSelection=void 0,a.selections={1:[217,122,382,284],2:[20,20,580,380],3:[24,24,176,376],4:[347,165,550,355],5:[136,55,472,183],Release:"release"},a.opacities={Low:.2,Mid:.5,High:.8,Full:1},a.colors={R:"#900",B:"#4BB6F0",Y:"#F0B207",G:"#46B81C",W:"white",K:"black"},a.styles=[{name:"jcrop-light",bgFade:!0,animate:!0,selection:[130,65,480,350],bgColor:"white",bgOpacity:.5},{name:"jcrop-dark",bgFade:!0,animate:!0,selection:[130,65,480,350],bgColor:"black",bgOpacity:.4},{name:"jcrop-normal",bgFade:!0,animate:!0,selection:[130,65,480,350],bgColor:"black",bgOpacity:.6}],a.demoStyle=a.styles[0]}])});