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t\t\t\t\t\t\t
\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t
\n\n"}}); define("dojox/widget/ColorPicker",["dojo/_base/kernel","dojo/_base/declare","dojo/_base/lang","dojo/_base/array","dojo/_base/html","dojo/_base/connect","dojo/_base/sniff","dojo/_base/window","dojo/_base/event","dojo/dom","dojo/dom-class","dojo/keys","dojo/fx","dojo/dnd/move","dijit/registry","dijit/_base/focus","dijit/form/_FormWidget","dijit/typematic","dojox/color","dojo/i18n","dojo/i18n!./nls/ColorPicker","dojo/i18n!dojo/cldr/nls/number","dojo/text!./ColorPicker/ColorPicker.html"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,fx,_d,_e,_f,_10,_11,_12,_13,_14,_15,_16){ _1.experimental("dojox.widget.ColorPicker"); var _17=function(hex){ return hex; }; return _2("dojox.widget.ColorPicker",_10,{showRgb:true,showHsv:true,showHex:true,webSafe:true,animatePoint:true,slideDuration:250,liveUpdate:false,PICKER_HUE_H:150,PICKER_SAT_VAL_H:150,PICKER_SAT_VAL_W:150,PICKER_HUE_SELECTOR_H:8,PICKER_SAT_SELECTOR_H:10,PICKER_SAT_SELECTOR_W:10,value:"#ffffff",_underlay:_1.moduleUrl("dojox.widget","ColorPicker/images/underlay.png"),_hueUnderlay:_1.moduleUrl("dojox.widget","ColorPicker/images/hue.png"),_pickerPointer:_1.moduleUrl("dojox.widget","ColorPicker/images/pickerPointer.png"),_huePickerPointer:_1.moduleUrl("dojox.widget","ColorPicker/images/hueHandle.png"),_huePickerPointerAlly:_1.moduleUrl("dojox.widget","ColorPicker/images/hueHandleA11y.png"),templateString:_16,postMixInProperties:function(){ if(_b.contains(_8.body(),"dijit_a11y")){ this._huePickerPointer=this._huePickerPointerAlly; } this._uId=_e.getUniqueId(this.id); _3.mixin(this,_13.getLocalization("dojox.widget","ColorPicker")); _3.mixin(this,_13.getLocalization("dojo.cldr","number")); this.inherited(arguments); },postCreate:function(){ this.inherited(arguments); if(_7("ie")<7){ this.colorUnderlay.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this._underlay+"', sizingMethod='scale')"; this.colorUnderlay.src=this._blankGif.toString(); } if(!this.showRgb){ this.rgbNode.style.visibility="hidden"; } if(!this.showHsv){ this.hsvNode.style.visibility="hidden"; } if(!this.showHex){ this.hexNode.style.visibility="hidden"; } if(!this.webSafe){ this.safePreviewNode.style.visibility="hidden"; } },startup:function(){ if(this._started){ return; } this._started=true; this.set("value",this.value); this._mover=new _d.boxConstrainedMoveable(this.cursorNode,{box:{t:-(this.PICKER_SAT_SELECTOR_H/2),l:-(this.PICKER_SAT_SELECTOR_W/2),w:this.PICKER_SAT_VAL_W,h:this.PICKER_SAT_VAL_H}}); this._hueMover=new _d.boxConstrainedMoveable(this.hueCursorNode,{box:{t:-(this.PICKER_HUE_SELECTOR_H/2),l:0,w:0,h:this.PICKER_HUE_H}}); this._subs=[]; this._subs.push(_6.subscribe("/dnd/move/stop",_3.hitch(this,"_clearTimer"))); this._subs.push(_6.subscribe("/dnd/move/start",_3.hitch(this,"_setTimer"))); this._keyListeners=[]; this._connects.push(_11.addKeyListener(this.hueCursorNode,{charOrCode:_c.UP_ARROW,shiftKey:false,metaKey:false,ctrlKey:false,altKey:false},this,_3.hitch(this,this._updateHueCursorNode),25,25)); this._connects.push(_11.addKeyListener(this.hueCursorNode,{charOrCode:_c.DOWN_ARROW,shiftKey:false,metaKey:false,ctrlKey:false,altKey:false},this,_3.hitch(this,this._updateHueCursorNode),25,25)); this._connects.push(_11.addKeyListener(this.cursorNode,{charOrCode:_c.UP_ARROW,shiftKey:false,metaKey:false,ctrlKey:false,altKey:false},this,_3.hitch(this,this._updateCursorNode),25,25)); this._connects.push(_11.addKeyListener(this.cursorNode,{charOrCode:_c.DOWN_ARROW,shiftKey:false,metaKey:false,ctrlKey:false,altKey:false},this,_3.hitch(this,this._updateCursorNode),25,25)); this._connects.push(_11.addKeyListener(this.cursorNode,{charOrCode:_c.LEFT_ARROW,shiftKey:false,metaKey:false,ctrlKey:false,altKey:false},this,_3.hitch(this,this._updateCursorNode),25,25)); this._connects.push(_11.addKeyListener(this.cursorNode,{charOrCode:_c.RIGHT_ARROW,shiftKey:false,metaKey:false,ctrlKey:false,altKey:false},this,_3.hitch(this,this._updateCursorNode),25,25)); },_setValueAttr:function(_18){ if(!this._started){ return; } this.setColor(_18,true); },setColor:function(col,_19){ col=_12.fromString(col); this._updatePickerLocations(col); this._updateColorInputs(col); this._updateValue(col,_19); },_setTimer:function(_1a){ if(_1a.node!=this.cursorNode){ return; } _f.focus(_1a.node); _a.setSelectable(this.domNode,false); this._timer=setInterval(_3.hitch(this,"_updateColor"),45); },_clearTimer:function(_1b){ if(!this._timer){ return; } clearInterval(this._timer); this._timer=null; this.onChange(this.value); _a.setSelectable(this.domNode,true); },_setHue:function(h){ _5.style(this.colorUnderlay,"backgroundColor",_12.fromHsv(h,100,100).toHex()); },_updateHueCursorNode:function(_1c,_1d,e){ if(_1c!==-1){ var y=_5.style(this.hueCursorNode,"top"); var _1e=this.PICKER_HUE_SELECTOR_H/2; y+=_1e; var _1f=false; if(e.charOrCode==_c.UP_ARROW){ if(y>0){ y-=1; _1f=true; } }else{ if(e.charOrCode==_c.DOWN_ARROW){ if(y0){ y-=1; _24=true; } }else{ if(e.charOrCode==_c.DOWN_ARROW){ if(y0){ x-=1; _24=true; } }else{ if(e.charOrCode==_c.RIGHT_ARROW){ if(x