You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2009/03/19 11:37:20 UTC

svn commit: r755904 [19/40] - in /camel/trunk/components/camel-web/src/main/webapp/js/dojox: ./ analytics/ analytics/logger/ analytics/plugins/ analytics/profiles/ atom/ atom/io/ atom/widget/ atom/widget/nls/ atom/widget/nls/cs/ atom/widget/nls/de/ ato...

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/crypto/Blowfish.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/crypto/Blowfish.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/crypto/Blowfish.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/crypto/Blowfish.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,275 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.encoding.crypto.Blowfish"]){
+dojo._hasResource["dojox.encoding.crypto.Blowfish"]=true;
+dojo.provide("dojox.encoding.crypto.Blowfish");
+dojo.require("dojox.encoding.base64");
+dojo.require("dojox.encoding.crypto._base");
+dojox.encoding.crypto.Blowfish=new function(){
+var _1=Math.pow(2,2);
+var _2=Math.pow(2,3);
+var _3=Math.pow(2,4);
+var _4=Math.pow(2,8);
+var _5=Math.pow(2,16);
+var _6=Math.pow(2,24);
+var iv=null;
+var _8={p:[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s0:[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,7724
 90370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,28
 4835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],s
 1:[1266315497,3048417604,3681880366,3289982499,2909710000,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,61
 6741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,4489396
 70,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],s2:[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095
 763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079
 ,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364
 ,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],s3:[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2
 615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412
 390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409000,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,84686
 1322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]};
+function _9(x,y){
+return (((x>>16)+(y>>16)+(((x&65535)+(y&65535))>>16))<<16)|(((x&65535)+(y&65535))&65535);
+};
+function _c(x,y){
+return (((x>>16)^(y>>16))<<16)|(((x&65535)^(y&65535))&65535);
+};
+function $(v,box){
+var d=box.s3[v&255];
+v>>=8;
+var c=box.s2[v&255];
+v>>=8;
+var b=box.s1[v&255];
+v>>=8;
+var a=box.s0[v&255];
+var r=(((a>>16)+(b>>16)+(((a&65535)+(b&65535))>>16))<<16)|(((a&65535)+(b&65535))&65535);
+r=(((r>>16)^(c>>16))<<16)|(((r&65535)^(c&65535))&65535);
+return (((r>>16)+(d>>16)+(((r&65535)+(d&65535))>>16))<<16)|(((r&65535)+(d&65535))&65535);
+};
+function eb(o,box){
+var l=o.left;
+var r=o.right;
+l=_c(l,box.p[0]);
+r=_c(r,_c($(l,box),box.p[1]));
+l=_c(l,_c($(r,box),box.p[2]));
+r=_c(r,_c($(l,box),box.p[3]));
+l=_c(l,_c($(r,box),box.p[4]));
+r=_c(r,_c($(l,box),box.p[5]));
+l=_c(l,_c($(r,box),box.p[6]));
+r=_c(r,_c($(l,box),box.p[7]));
+l=_c(l,_c($(r,box),box.p[8]));
+r=_c(r,_c($(l,box),box.p[9]));
+l=_c(l,_c($(r,box),box.p[10]));
+r=_c(r,_c($(l,box),box.p[11]));
+l=_c(l,_c($(r,box),box.p[12]));
+r=_c(r,_c($(l,box),box.p[13]));
+l=_c(l,_c($(r,box),box.p[14]));
+r=_c(r,_c($(l,box),box.p[15]));
+l=_c(l,_c($(r,box),box.p[16]));
+o.right=l;
+o.left=_c(r,box.p[17]);
+};
+function db(o,box){
+var l=o.left;
+var r=o.right;
+l=_c(l,box.p[17]);
+r=_c(r,_c($(l,box),box.p[16]));
+l=_c(l,_c($(r,box),box.p[15]));
+r=_c(r,_c($(l,box),box.p[14]));
+l=_c(l,_c($(r,box),box.p[13]));
+r=_c(r,_c($(l,box),box.p[12]));
+l=_c(l,_c($(r,box),box.p[11]));
+r=_c(r,_c($(l,box),box.p[10]));
+l=_c(l,_c($(r,box),box.p[9]));
+r=_c(r,_c($(l,box),box.p[8]));
+l=_c(l,_c($(r,box),box.p[7]));
+r=_c(r,_c($(l,box),box.p[6]));
+l=_c(l,_c($(r,box),box.p[5]));
+r=_c(r,_c($(l,box),box.p[4]));
+l=_c(l,_c($(r,box),box.p[3]));
+r=_c(r,_c($(l,box),box.p[2]));
+l=_c(l,_c($(r,box),box.p[1]));
+o.right=l;
+o.left=_c(r,box.p[0]);
+};
+function _21(key){
+var k=key;
+if(dojo.isString(k)){
+k=dojo.map(k.split(""),function(_24){
+return _24.charCodeAt(0)&255;
+});
+}
+var pos=0,_26=0,res={left:0,right:0},i,j,l;
+var box={p:dojo.map(_8.p.slice(0),function(_2c){
+var l=k.length,j;
+for(j=0;j<4;j++){
+_26=(_26*_4)|k[pos++%l];
+}
+return (((_2c>>16)^(_26>>16))<<16)|(((_2c&65535)^(_26&65535))&65535);
+}),s0:_8.s0.slice(0),s1:_8.s1.slice(0),s2:_8.s2.slice(0),s3:_8.s3.slice(0)};
+for(i=0,l=box.p.length;i<l;){
+eb(res,box);
+box.p[i++]=res.left,box.p[i++]=res.right;
+}
+for(i=0;i<4;i++){
+for(j=0,l=box["s"+i].length;j<l;){
+eb(res,box);
+box["s"+i][j++]=res.left,box["s"+i][j++]=res.right;
+}
+}
+return box;
+};
+this.getIV=function(_2e){
+var out=_2e||dojox.encoding.crypto.outputTypes.Base64;
+switch(out){
+case dojox.encoding.crypto.outputTypes.Hex:
+return dojo.map(iv,function(_30){
+return (_30<=15?"0":"")+_30.toString(16);
+}).join("");
+case dojox.encoding.crypto.outputTypes.String:
+return iv.join("");
+case dojox.encoding.crypto.outputTypes.Raw:
+return iv;
+default:
+return dojox.encoding.base64.encode(iv);
+}
+};
+this.setIV=function(_31,_32){
+var ip=_32||dojox.encoding.crypto.outputTypes.Base64;
+var ba=null;
+switch(ip){
+case dojox.encoding.crypto.outputTypes.String:
+ba=dojo.map(_31.split(""),function(_35){
+return _35.charCodeAt(0);
+});
+break;
+case dojox.encoding.crypto.outputTypes.Hex:
+ba=[];
+for(var i=0,l=_31.length-1;i<l;i+=2){
+ba.push(parseInt(_31.substr(i,2),16));
+}
+break;
+case dojox.encoding.crypto.outputTypes.Raw:
+ba=_31;
+break;
+default:
+ba=dojox.encoding.base64.decode(_31);
+break;
+}
+iv={};
+iv.left=ba[0]*_6|ba[1]*_5|ba[2]*_4|ba[3];
+iv.right=ba[4]*_6|ba[5]*_5|ba[6]*_4|ba[7];
+};
+this.encrypt=function(_38,key,ao){
+var out=dojox.encoding.crypto.outputTypes.Base64;
+var _3c=dojox.encoding.crypto.cipherModes.ECB;
+if(ao){
+if(ao.outputType){
+out=ao.outputType;
+}
+if(ao.cipherMode){
+_3c=ao.cipherMode;
+}
+}
+var bx=_21(key),_3e=8-(_38.length&7);
+for(var i=0;i<_3e;i++){
+_38+=String.fromCharCode(_3e);
+}
+var _40=[],_41=_38.length>>3,pos=0,o={},_44=(_3c==dojox.encoding.crypto.cipherModes.CBC);
+var _45={left:iv.left||null,right:iv.right||null};
+for(var i=0;i<_41;i++){
+o.left=_38.charCodeAt(pos)*_6|_38.charCodeAt(pos+1)*_5|_38.charCodeAt(pos+2)*_4|_38.charCodeAt(pos+3);
+o.right=_38.charCodeAt(pos+4)*_6|_38.charCodeAt(pos+5)*_5|_38.charCodeAt(pos+6)*_4|_38.charCodeAt(pos+7);
+if(_44){
+o.left=(((o.left>>16)^(_45.left>>16))<<16)|(((o.left&65535)^(_45.left&65535))&65535);
+o.right=(((o.right>>16)^(_45.right>>16))<<16)|(((o.right&65535)^(_45.right&65535))&65535);
+}
+eb(o,bx);
+if(_44){
+_45.left=o.left;
+_45.right=o.right;
+}
+_40.push((o.left>>24)&255);
+_40.push((o.left>>16)&255);
+_40.push((o.left>>8)&255);
+_40.push(o.left&255);
+_40.push((o.right>>24)&255);
+_40.push((o.right>>16)&255);
+_40.push((o.right>>8)&255);
+_40.push(o.right&255);
+pos+=8;
+}
+switch(out){
+case dojox.encoding.crypto.outputTypes.Hex:
+return dojo.map(_40,function(_46){
+return (_46<=15?"0":"")+_46.toString(16);
+}).join("");
+case dojox.encoding.crypto.outputTypes.String:
+return _40.join("");
+case dojox.encoding.crypto.outputTypes.Raw:
+return _40;
+default:
+return dojox.encoding.base64.encode(_40);
+}
+};
+this.decrypt=function(_47,key,ao){
+var ip=dojox.encoding.crypto.outputTypes.Base64;
+var _4b=dojox.encoding.crypto.cipherModes.ECB;
+if(ao){
+if(ao.outputType){
+ip=ao.outputType;
+}
+if(ao.cipherMode){
+_4b=ao.cipherMode;
+}
+}
+var bx=_21(key);
+var pt=[];
+var c=null;
+switch(ip){
+case dojox.encoding.crypto.outputTypes.Hex:
+c=[];
+for(var i=0,l=_47.length-1;i<l;i+=2){
+c.push(parseInt(_47.substr(i,2),16));
+}
+break;
+case dojox.encoding.crypto.outputTypes.String:
+c=dojo.map(_47.split(""),function(_51){
+return _51.charCodeAt(0);
+});
+break;
+case dojox.encoding.crypto.outputTypes.Raw:
+c=_47;
+break;
+default:
+c=dojox.encoding.base64.decode(_47);
+break;
+}
+var _52=c.length>>3,pos=0,o={},_55=(_4b==dojox.encoding.crypto.cipherModes.CBC);
+var _56={left:iv.left||null,right:iv.right||null};
+for(var i=0;i<_52;i++){
+o.left=c[pos]*_6|c[pos+1]*_5|c[pos+2]*_4|c[pos+3];
+o.right=c[pos+4]*_6|c[pos+5]*_5|c[pos+6]*_4|c[pos+7];
+if(_55){
+var _57=o.left;
+var _58=o.right;
+}
+db(o,bx);
+if(_55){
+o.left=(((o.left>>16)^(_56.left>>16))<<16)|(((o.left&65535)^(_56.left&65535))&65535);
+o.right=(((o.right>>16)^(_56.right>>16))<<16)|(((o.right&65535)^(_56.right&65535))&65535);
+_56.left=_57;
+_56.right=_58;
+}
+pt.push((o.left>>24)&255);
+pt.push((o.left>>16)&255);
+pt.push((o.left>>8)&255);
+pt.push(o.left&255);
+pt.push((o.right>>24)&255);
+pt.push((o.right>>16)&255);
+pt.push((o.right>>8)&255);
+pt.push(o.right&255);
+pos+=8;
+}
+if(pt[pt.length-1]==pt[pt.length-2]||pt[pt.length-1]==1){
+var n=pt[pt.length-1];
+pt.splice(pt.length-n,n);
+}
+return dojo.map(pt,function(_5a){
+return String.fromCharCode(_5a);
+}).join("");
+};
+this.setIV("0000000000000000",dojox.encoding.crypto.outputTypes.Hex);
+}();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/crypto/Blowfish.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/crypto/_base.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/crypto/_base.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/crypto/_base.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/crypto/_base.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,16 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.encoding.crypto._base"]){
+dojo._hasResource["dojox.encoding.crypto._base"]=true;
+dojo.provide("dojox.encoding.crypto._base");
+(function(){
+var c=dojox.encoding.crypto;
+c.cipherModes={ECB:0,CBC:1,PCBC:2,CFB:3,OFB:4,CTR:5};
+c.outputTypes={Base64:0,Hex:1,String:2,Raw:3};
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/crypto/_base.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/digests/MD5.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/digests/MD5.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/digests/MD5.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/digests/MD5.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,158 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.encoding.digests.MD5"]){
+dojo._hasResource["dojox.encoding.digests.MD5"]=true;
+dojo.provide("dojox.encoding.digests.MD5");
+dojo.require("dojox.encoding.digests._base");
+(function(){
+var _1=dojox.encoding.digests;
+var _2=8;
+function R(n,c){
+return (n<<c)|(n>>>(32-c));
+};
+function C(q,a,b,x,s,t){
+return _1.addWords(R(_1.addWords(_1.addWords(a,q),_1.addWords(x,t)),s),b);
+};
+function FF(a,b,c,d,x,s,t){
+return C((b&c)|((~b)&d),a,b,x,s,t);
+};
+function GG(a,b,c,d,x,s,t){
+return C((b&d)|(c&(~d)),a,b,x,s,t);
+};
+function HH(a,b,c,d,x,s,t){
+return C(b^c^d,a,b,x,s,t);
+};
+function II(a,b,c,d,x,s,t){
+return C(c^(b|(~d)),a,b,x,s,t);
+};
+function _2d(x,len){
+x[len>>5]|=128<<((len)%32);
+x[(((len+64)>>>9)<<4)+14]=len;
+var a=1732584193;
+var b=-271733879;
+var c=-1732584194;
+var d=271733878;
+for(var i=0;i<x.length;i+=16){
+var _35=a;
+var _36=b;
+var _37=c;
+var _38=d;
+a=FF(a,b,c,d,x[i+0],7,-680876936);
+d=FF(d,a,b,c,x[i+1],12,-389564586);
+c=FF(c,d,a,b,x[i+2],17,606105819);
+b=FF(b,c,d,a,x[i+3],22,-1044525330);
+a=FF(a,b,c,d,x[i+4],7,-176418897);
+d=FF(d,a,b,c,x[i+5],12,1200080426);
+c=FF(c,d,a,b,x[i+6],17,-1473231341);
+b=FF(b,c,d,a,x[i+7],22,-45705983);
+a=FF(a,b,c,d,x[i+8],7,1770035416);
+d=FF(d,a,b,c,x[i+9],12,-1958414417);
+c=FF(c,d,a,b,x[i+10],17,-42063);
+b=FF(b,c,d,a,x[i+11],22,-1990404162);
+a=FF(a,b,c,d,x[i+12],7,1804603682);
+d=FF(d,a,b,c,x[i+13],12,-40341101);
+c=FF(c,d,a,b,x[i+14],17,-1502002290);
+b=FF(b,c,d,a,x[i+15],22,1236535329);
+a=GG(a,b,c,d,x[i+1],5,-165796510);
+d=GG(d,a,b,c,x[i+6],9,-1069501632);
+c=GG(c,d,a,b,x[i+11],14,643717713);
+b=GG(b,c,d,a,x[i+0],20,-373897302);
+a=GG(a,b,c,d,x[i+5],5,-701558691);
+d=GG(d,a,b,c,x[i+10],9,38016083);
+c=GG(c,d,a,b,x[i+15],14,-660478335);
+b=GG(b,c,d,a,x[i+4],20,-405537848);
+a=GG(a,b,c,d,x[i+9],5,568446438);
+d=GG(d,a,b,c,x[i+14],9,-1019803690);
+c=GG(c,d,a,b,x[i+3],14,-187363961);
+b=GG(b,c,d,a,x[i+8],20,1163531501);
+a=GG(a,b,c,d,x[i+13],5,-1444681467);
+d=GG(d,a,b,c,x[i+2],9,-51403784);
+c=GG(c,d,a,b,x[i+7],14,1735328473);
+b=GG(b,c,d,a,x[i+12],20,-1926607734);
+a=HH(a,b,c,d,x[i+5],4,-378558);
+d=HH(d,a,b,c,x[i+8],11,-2022574463);
+c=HH(c,d,a,b,x[i+11],16,1839030562);
+b=HH(b,c,d,a,x[i+14],23,-35309556);
+a=HH(a,b,c,d,x[i+1],4,-1530992060);
+d=HH(d,a,b,c,x[i+4],11,1272893353);
+c=HH(c,d,a,b,x[i+7],16,-155497632);
+b=HH(b,c,d,a,x[i+10],23,-1094730640);
+a=HH(a,b,c,d,x[i+13],4,681279174);
+d=HH(d,a,b,c,x[i+0],11,-358537222);
+c=HH(c,d,a,b,x[i+3],16,-722521979);
+b=HH(b,c,d,a,x[i+6],23,76029189);
+a=HH(a,b,c,d,x[i+9],4,-640364487);
+d=HH(d,a,b,c,x[i+12],11,-421815835);
+c=HH(c,d,a,b,x[i+15],16,530742520);
+b=HH(b,c,d,a,x[i+2],23,-995338651);
+a=II(a,b,c,d,x[i+0],6,-198630844);
+d=II(d,a,b,c,x[i+7],10,1126891415);
+c=II(c,d,a,b,x[i+14],15,-1416354905);
+b=II(b,c,d,a,x[i+5],21,-57434055);
+a=II(a,b,c,d,x[i+12],6,1700485571);
+d=II(d,a,b,c,x[i+3],10,-1894986606);
+c=II(c,d,a,b,x[i+10],15,-1051523);
+b=II(b,c,d,a,x[i+1],21,-2054922799);
+a=II(a,b,c,d,x[i+8],6,1873313359);
+d=II(d,a,b,c,x[i+15],10,-30611744);
+c=II(c,d,a,b,x[i+6],15,-1560198380);
+b=II(b,c,d,a,x[i+13],21,1309151649);
+a=II(a,b,c,d,x[i+4],6,-145523070);
+d=II(d,a,b,c,x[i+11],10,-1120210379);
+c=II(c,d,a,b,x[i+2],15,718787259);
+b=II(b,c,d,a,x[i+9],21,-343485551);
+a=_1.addWords(a,_35);
+b=_1.addWords(b,_36);
+c=_1.addWords(c,_37);
+d=_1.addWords(d,_38);
+}
+return [a,b,c,d];
+};
+function _39(_3a,key){
+var wa=_1.stringToWord(key);
+if(wa.length>16){
+wa=_2d(wa,key.length*_2);
+}
+var l=[],r=[];
+for(var i=0;i<16;i++){
+l[i]=wa[i]^909522486;
+r[i]=wa[i]^1549556828;
+}
+var h=_2d(l.concat(_1.stringToWord(_3a)),512+_3a.length*_2);
+return _2d(r.concat(h),640);
+};
+_1.MD5=function(_41,_42){
+var out=_42||_1.outputTypes.Base64;
+var wa=_2d(_1.stringToWord(_41),_41.length*_2);
+switch(out){
+case _1.outputTypes.Raw:
+return wa;
+case _1.outputTypes.Hex:
+return _1.wordToHex(wa);
+case _1.outputTypes.String:
+return _1.wordToString(wa);
+default:
+return _1.wordToBase64(wa);
+}
+};
+_1.MD5._hmac=function(_45,key,_47){
+var out=_47||_1.outputTypes.Base64;
+var wa=_39(_45,key);
+switch(out){
+case _1.outputTypes.Raw:
+return wa;
+case _1.outputTypes.Hex:
+return _1.wordToHex(wa);
+case _1.outputTypes.String:
+return _1.wordToString(wa);
+default:
+return _1.wordToBase64(wa);
+}
+};
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/digests/MD5.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/digests/SHA1.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/digests/SHA1.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/digests/SHA1.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/digests/SHA1.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,137 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.encoding.digests.SHA1"]){
+dojo._hasResource["dojox.encoding.digests.SHA1"]=true;
+dojo.provide("dojox.encoding.digests.SHA1");
+dojo.require("dojox.encoding.digests._base");
+(function(){
+var _1=dojox.encoding.digests;
+var _2=8,_3=(1<<_2)-1;
+function R(n,c){
+return (n<<c)|(n>>>(32-c));
+};
+function FT(t,b,c,d){
+if(t<20){
+return (b&c)|((~b)&d);
+}
+if(t<40){
+return b^c^d;
+}
+if(t<60){
+return (b&c)|(b&d)|(c&d);
+}
+return b^c^d;
+};
+function KT(t){
+return (t<20)?1518500249:(t<40)?1859775393:(t<60)?-1894007588:-899497514;
+};
+function _e(x,len){
+x[len>>5]|=128<<(24-len%32);
+x[((len+64>>9)<<4)+15]=len;
+var w=new Array(80),a=1732584193,b=-271733879,c=-1732584194,d=271733878,e=-1009589776;
+for(var i=0;i<x.length;i+=16){
+var _18=a,_19=b,_1a=c,_1b=d,_1c=e;
+for(var j=0;j<80;j++){
+if(j<16){
+w[j]=x[i+j];
+}else{
+w[j]=R(w[j-3]^w[j-8]^w[j-14]^w[j-16],1);
+}
+var t=_1.addWords(_1.addWords(R(a,5),FT(j,b,c,d)),_1.addWords(_1.addWords(e,w[j]),KT(j)));
+e=d;
+d=c;
+c=R(b,30);
+b=a;
+a=t;
+}
+a=_1.addWords(a,_18);
+b=_1.addWords(b,_19);
+c=_1.addWords(c,_1a);
+d=_1.addWords(d,_1b);
+e=_1.addWords(e,_1c);
+}
+return [a,b,c,d,e];
+};
+function _1f(_20,key){
+var wa=_23(key);
+if(wa.length>16){
+wa=_e(wa,key.length*_2);
+}
+var _24=new Array(16),_25=new Array(16);
+for(var i=0;i<16;i++){
+_24[i]=wa[i]^909522486;
+_25[i]=wa[i]^1549556828;
+}
+var _27=_e(_24.concat(_23(_20)),512+_20.length*_2);
+return _e(_25.concat(_27),512+160);
+};
+function _23(s){
+var wa=[];
+for(var i=0,l=s.length*_2;i<l;i+=_2){
+wa[i>>5]|=(s.charCodeAt(i/_2)&_3)<<(32-_2-i%32);
+}
+return wa;
+};
+function _2c(wa){
+var h="0123456789abcdef",s=[];
+for(var i=0,l=wa.length*4;i<l;i++){
+s.push(h.charAt((wa[i>>2]>>((3-i%4)*8+4))&15),h.charAt((wa[i>>2]>>((3-i%4)*8))&15));
+}
+return s.join("");
+};
+function _32(wa){
+var s=[];
+for(var i=0,l=wa.length*32;i<l;i+=_2){
+s.push(String.fromCharCode((wa[i>>5]>>>(32-_2-i%32))&_3));
+}
+return s.join("");
+};
+function _37(wa){
+var p="=",tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=[];
+for(var i=0,l=wa.length*4;i<l;i+=3){
+var t=(((wa[i>>2]>>8*(3-i%4))&255)<<16)|(((wa[i+1>>2]>>8*(3-(i+1)%4))&255)<<8)|((wa[i+2>>2]>>8*(3-(i+2)%4))&255);
+for(var j=0;j<4;j++){
+if(i*8+j*6>wa.length*32){
+s.push(p);
+}else{
+s.push(tab.charAt((t>>6*(3-j))&63));
+}
+}
+}
+return s.join("");
+};
+_1.SHA1=function(_40,_41){
+var out=_41||_1.outputTypes.Base64;
+var wa=_e(_23(_40),_40.length*_2);
+switch(out){
+case _1.outputTypes.Raw:
+return wa;
+case _1.outputTypes.Hex:
+return _2c(wa);
+case _1.outputTypes.String:
+return _32(wa);
+default:
+return _37(wa);
+}
+};
+_1.SHA1._hmac=function(_44,key,_46){
+var out=_46||_1.outputTypes.Base64;
+var wa=_1f(_44,key);
+switch(out){
+case _1.outputTypes.Raw:
+return wa;
+case _1.outputTypes.Hex:
+return _2c(wa);
+case _1.outputTypes.String:
+return _32(wa);
+default:
+return _37(wa);
+}
+};
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/digests/SHA1.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/digests/_base.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/digests/_base.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/digests/_base.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/digests/_base.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,57 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.encoding.digests._base"]){
+dojo._hasResource["dojox.encoding.digests._base"]=true;
+dojo.provide("dojox.encoding.digests._base");
+(function(){
+var d=dojox.encoding.digests;
+d.outputTypes={Base64:0,Hex:1,String:2,Raw:3};
+d.addWords=function(a,b){
+var l=(a&65535)+(b&65535);
+var m=(a>>16)+(b>>16)+(l>>16);
+return (m<<16)|(l&65535);
+};
+var _6=8;
+var _7=(1<<_6)-1;
+d.stringToWord=function(s){
+var wa=[];
+for(var i=0,l=s.length*_6;i<l;i+=_6){
+wa[i>>5]|=(s.charCodeAt(i/_6)&_7)<<(i%32);
+}
+return wa;
+};
+d.wordToString=function(wa){
+var s=[];
+for(var i=0,l=wa.length*32;i<l;i+=_6){
+s.push(String.fromCharCode((wa[i>>5]>>>(i%32))&_7));
+}
+return s.join("");
+};
+d.wordToHex=function(wa){
+var h="0123456789abcdef",s=[];
+for(var i=0,l=wa.length*4;i<l;i++){
+s.push(h.charAt((wa[i>>2]>>((i%4)*8+4))&15)+h.charAt((wa[i>>2]>>((i%4)*8))&15));
+}
+return s.join("");
+};
+d.wordToBase64=function(wa){
+var p="=",tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=[];
+for(var i=0,l=wa.length*4;i<l;i+=3){
+var t=(((wa[i>>2]>>8*(i%4))&255)<<16)|(((wa[i+1>>2]>>8*((i+1)%4))&255)<<8)|((wa[i+2>>2]>>8*((i+2)%4))&255);
+for(var j=0;j<4;j++){
+if(i*8+j*6>wa.length*32){
+s.push(p);
+}else{
+s.push(tab.charAt((t>>6*(3-j))&63));
+}
+}
+}
+return s.join("");
+};
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/digests/_base.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/easy64.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/easy64.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/easy64.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/easy64.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,47 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.encoding.easy64"]){
+dojo._hasResource["dojox.encoding.easy64"]=true;
+dojo.provide("dojox.encoding.easy64");
+(function(){
+var c=function(_2,_3,_4){
+for(var i=0;i<_3;i+=3){
+_4.push(String.fromCharCode((_2[i]>>>2)+33),String.fromCharCode(((_2[i]&3)<<4)+(_2[i+1]>>>4)+33),String.fromCharCode(((_2[i+1]&15)<<2)+(_2[i+2]>>>6)+33),String.fromCharCode((_2[i+2]&63)+33));
+}
+};
+dojox.encoding.easy64.encode=function(_6){
+var _7=[],_8=_6.length%3,_9=_6.length-_8;
+c(_6,_9,_7);
+if(_8){
+var t=_6.slice(_9);
+while(t.length<3){
+t.push(0);
+}
+c(t,3,_7);
+for(var i=3;i>_8;_7.pop(),--i){
+}
+}
+return _7.join("");
+};
+dojox.encoding.easy64.decode=function(_c){
+var n=_c.length,r=[],b=[0,0,0,0],i,j,d;
+for(i=0;i<n;i+=4){
+for(j=0;j<4;++j){
+b[j]=_c.charCodeAt(i+j)-33;
+}
+d=n-i;
+for(j=d;j<4;b[++j]=0){
+}
+r.push((b[0]<<2)+(b[1]>>>4),((b[1]&15)<<4)+(b[2]>>>2),((b[2]&3)<<6)+b[3]);
+for(j=d;j<4;++j,r.pop()){
+}
+}
+return r;
+};
+})();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/encoding/easy64.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,12 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.flash"]){
+dojo._hasResource["dojox.flash"]=true;
+dojo.provide("dojox.flash");
+dojo.require("dojox.flash._base");
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/DojoExternalInterface.as
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/DojoExternalInterface.as?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/DojoExternalInterface.as (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/DojoExternalInterface.as Thu Mar 19 10:37:00 2009
@@ -0,0 +1,177 @@
+/**
+	A wrapper around Flash 8's ExternalInterface; this is needed
+	because ExternalInterface has a number of serialization bugs that we 
+	need to correct for.
+	
+	@author Brad Neuberg
+*/
+
+import flash.external.ExternalInterface;
+
+class DojoExternalInterface{
+	public static var available:Boolean;
+	public static var dojoPath = "";
+		
+	public static function initialize(){
+		//trace("DojoExternalInterface.initialize");
+		
+		// extract the dojo base path
+		DojoExternalInterface.dojoPath = DojoExternalInterface.getDojoPath();
+		
+		// see if we need to do an express install
+		var install:ExpressInstall = new ExpressInstall();
+		if(install.needsUpdate){
+			install.init();
+		}
+		
+		// set whether communication is available
+		DojoExternalInterface.available = ExternalInterface.available;
+		
+		// make sure we can play nice in XD settings
+		System.security.allowDomain(unescape(_root.xdomain));
+	}
+	
+	/** Called when we are finished adding methods through addCallback. */
+	public static function done(){
+		//trace("done");
+		DojoExternalInterface.call("dojox.flash.loaded");
+	}
+	
+	public static function addCallback(methodName:String, instance:Object, 
+									   method:Function):Boolean{
+		//trace("addCallback");
+		ExternalInterface.addCallback(methodName, instance, function(){
+			instance = (instance) ? instance : null;
+			var params = [];
+			if(arguments && arguments.length){
+				for(var i = 0; i < arguments.length; i++){
+					params[i] = DojoExternalInterface.decodeData(arguments[i]);
+				}
+			}
+			
+			var results = method.apply(instance, params);
+			results = DojoExternalInterface.encodeData(results);
+			
+			return results;
+		});
+		
+		// tell JavaScript about DojoExternalInterface new method so we can create a proxy
+		ExternalInterface.call("dojox.flash.comm._addExternalInterfaceCallback", 
+													 methodName);
+													 
+		return true;
+	}
+	
+	public static function call(methodName:String):Void{
+		// we might have any number of optional arguments, so we have to 
+		// pass them in dynamically; strip out the results callback
+		var parameters = new Array();
+		for(var i = 0; i < arguments.length; i++){
+			parameters.push(arguments[i]);
+		}
+		
+		// FIXME: Should we be encoding or decoding the data to get
+		// around Flash's serialization bugs?
+		
+		var results = ExternalInterface.call.apply(ExternalInterface, parameters);
+		
+		return results;
+	}
+	
+	/** 
+		Called by Flash to indicate to JavaScript that we are ready to have
+		our Flash functions called. Calling loaded()
+		will fire the dojox.flash.loaded() event, so that JavaScript can know that
+		Flash has finished loading and adding its callbacks, and can begin to
+		interact with the Flash file.
+	*/
+	public static function loaded(){
+		DojoExternalInterface.call("dojox.flash.loaded");
+	}
+	
+	/**
+		Utility trace implementation that prints out to console.debug.
+	*/
+	public static function trace(msg){
+		DojoExternalInterface.call("console.debug", "FLASH: " + msg);
+	}
+	
+	private static function decodeData(data):String{
+		if(!data || typeof data != "string"){
+			return data;
+		}
+		
+		//      JAC: Using unicode character 0001 to store instead of Unicode null 
+		//      which causes trouble 
+		data = replaceStr(data, "&custom_null;", "\u0001");
+		
+		// we have to use custom encodings for certain characters when passing
+		// them over; for example, passing a backslash over as //// from JavaScript
+		// to Flash doesn't work
+		data = replaceStr(data, "&custom_backslash;", "\\");
+		
+		return data;
+	}
+	
+	private static function encodeData(data):String{	
+		if(!data || typeof data != "string"){
+			return data;
+		}
+		
+		// double encode all entity values, or they will be mis-decoded 
+		// by Flash when returned 
+		data = replaceStr(data, "&", "&amp;");
+		
+		// certain XMLish characters break Flash's wire serialization for
+		// ExternalInterface; encode these into a custom encoding, rather than
+		// the standard entity encoding, because otherwise we won't be able to
+		// differentiate between our own encoding and any entity characters
+		// that are being used in the string itself
+		data = replaceStr(data, '<', '&custom_lt;');
+		data = replaceStr(data, '>', '&custom_gt;');
+		
+		// needed for IE
+		data = replaceStr(data, '\\', '&custom_backslash;');
+		data = replaceStr(data, "\u0001", "&custom_null;");
+		
+		// encode control characters and JavaScript delimiters
+		data = replaceStr(data, "\n", "\\n");
+		data = replaceStr(data, "\r", "\\r");
+		data = replaceStr(data, "\f", "\\f");
+		data = replaceStr(data, "'", "\\'");
+		data = replaceStr(data, '"', '\"');
+		
+		return data;
+	}
+	
+	/** 
+			Flash ActionScript has no String.replace method or support for
+			Regular Expressions! We roll our own very simple one.
+	*/
+	public static function replaceStr(inputStr:String, replaceThis:String, 
+										withThis:String):String{
+		var splitStr = inputStr.split(replaceThis);
+		if(!splitStr){
+			return inputStr;
+		}
+		
+		inputStr = splitStr.join(withThis);
+		return inputStr;
+	}
+	
+	private static function getDojoPath(){
+		var url = _root._url;
+		var start = url.indexOf("baseUrl=") + "baseUrl=".length;
+		var path = url.substring(start);
+		var end = path.indexOf("&");
+		if(end != -1){
+			path = path.substring(0, end);
+		}
+		
+		// some browsers append a junk string at the end: '%20'%20quality=
+		if(path.indexOf("'%20'%20quality=") != -1){
+			path = path.substring(0, path.indexOf("'%20'%20quality="));
+		}
+		return unescape(path);
+	}
+}

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/ExpressInstall.as
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/ExpressInstall.as?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/ExpressInstall.as (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/ExpressInstall.as Thu Mar 19 10:37:00 2009
@@ -0,0 +1,71 @@
+/**
+ * Based on the expressinstall.as class created by Geoff Stearns as part
+ * of the FlashObject library.
+ *
+ * Use this file to invoke the Macromedia Flash Player Express Install functionality
+ * This file is intended for use with the FlashObject embed script. You can download FlashObject 
+ * and this file at the following URL: http://blog.deconcept.com/flashobject/
+ *
+ * Usage: 
+ *          var ExpressInstall = new ExpressInstall();
+ *          
+ *          // test to see if install is needed:
+ *          if (ExpressInstall.needsUpdate) { // returns true if update is needed
+ *              ExpressInstall.init(); // starts the update
+ *          }
+ *
+ *	NOTE: Your Flash movie must be at least 214px by 137px in order to use ExpressInstall.
+ *
+ */
+
+class ExpressInstall{
+	public var needsUpdate:Boolean;
+	private var updater:MovieClip;
+	private var hold:MovieClip;
+	
+	public function ExpressInstall(){
+		// does the user need to update?
+		this.needsUpdate = (_root.MMplayerType == undefined) ? false : true;	
+	}
+
+	public function init():Void{
+		this.loadUpdater();
+	}
+
+	public function loadUpdater():Void{
+		System.security.allowDomain("fpdownload.macromedia.com");
+
+		// hope that nothing is at a depth of 10000000, you can change this depth if needed, but you want
+		// it to be on top of your content if you have any stuff on the first frame
+		this.updater = _root.createEmptyMovieClip("expressInstallHolder", 10000000);
+
+		// register the callback so we know if they cancel or there is an error
+		var _self = this;
+		this.updater.installStatus = _self.onInstallStatus;
+		this.hold = this.updater.createEmptyMovieClip("hold", 1);
+
+		// can't use movieClipLoader because it has to work in 6.0.65
+		this.updater.onEnterFrame = function():Void {
+			if(typeof this.hold.startUpdate == 'function'){
+				_self.initUpdater();
+				this.onEnterFrame = null;
+			}
+		}
+
+		var cacheBuster:Number = Math.random();
+
+		this.hold.loadMovie("http://fpdownload.macromedia.com/pub/flashplayer/"
+												+"update/current/swf/autoUpdater.swf?"+ cacheBuster);
+	}
+
+	private function initUpdater():Void{
+		this.hold.redirectURL = _root.MMredirectURL;
+		this.hold.MMplayerType = _root.MMplayerType;
+		this.hold.MMdoctitle = _root.MMdoctitle;
+		this.hold.startUpdate();
+	}
+
+	public function onInstallStatus(msg):Void{
+		getURL("javascript:dojox.flash.install._onInstallStatus('"+msg+"')");
+	}
+}

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/README
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/README?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/README (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/README Thu Mar 19 10:37:00 2009
@@ -0,0 +1,31 @@
+-------------------------------------------------------------------------------
+dojox.flash
+-------------------------------------------------------------------------------
+Version 0.5
+Release date: 2008-03-10
+-------------------------------------------------------------------------------
+Project state: experimental
+-------------------------------------------------------------------------------
+Project authors
+	Brad Neuberg (BradNeuberg@dojotoolkit.org)
+	Alex Russell (alex@dojotoolkit.org, only handled minor porting issues)
+-------------------------------------------------------------------------------
+Project description
+
+Infrastructure for high-performance Flash/JS communication
+-------------------------------------------------------------------------------
+Dependencies:
+
+MTASC for creating builds
+-------------------------------------------------------------------------------
+Documentation
+
+TODOC
+-------------------------------------------------------------------------------
+Installation instructions
+
+Not intended as a stand-alone module.
+-------------------------------------------------------------------------------
+Additional Notes
+
+TODOC

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/README
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/_base.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/_base.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/_base.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/_base.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,299 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.flash._base"]){
+dojo._hasResource["dojox.flash._base"]=true;
+dojo.provide("dojox.flash._base");
+dojo.experimental("dojox.flash");
+dojo.require("dijit._base.place");
+dojox.flash=function(){
+};
+dojox.flash={ready:false,url:null,_visible:true,_loadedListeners:[],_installingListeners:[],setSwf:function(_1,_2){
+this.url=_1;
+this._visible=true;
+if(_2!==null&&_2!==undefined){
+this._visible=_2;
+}
+this._initialize();
+},addLoadedListener:function(_3){
+this._loadedListeners.push(_3);
+},addInstallingListener:function(_4){
+this._installingListeners.push(_4);
+},loaded:function(){
+dojox.flash.ready=true;
+if(dojox.flash._loadedListeners.length){
+for(var i=0;i<dojox.flash._loadedListeners.length;i++){
+dojox.flash._loadedListeners[i].call(null);
+}
+}
+},installing:function(){
+if(dojox.flash._installingListeners.length){
+for(var i=0;i<dojox.flash._installingListeners.length;i++){
+dojox.flash._installingListeners[i].call(null);
+}
+}
+},_initialize:function(){
+var _7=new dojox.flash.Install();
+dojox.flash.installer=_7;
+if(_7.needed()){
+_7.install();
+}else{
+dojox.flash.obj=new dojox.flash.Embed(this._visible);
+dojox.flash.obj.write();
+dojox.flash.comm=new dojox.flash.Communicator();
+}
+}};
+dojox.flash.Info=function(){
+this._detectVersion();
+};
+dojox.flash.Info.prototype={version:-1,versionMajor:-1,versionMinor:-1,versionRevision:-1,capable:false,installing:false,isVersionOrAbove:function(_8,_9,_a){
+_a=parseFloat("."+_a);
+if(this.versionMajor>=_8&&this.versionMinor>=_9&&this.versionRevision>=_a){
+return true;
+}else{
+return false;
+}
+},_detectVersion:function(){
+var _b;
+for(var _c=25;_c>0;_c--){
+if(dojo.isIE){
+var _d;
+try{
+if(_c>6){
+_d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_c);
+}else{
+_d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
+}
+if(typeof _d=="object"){
+if(_c==6){
+_d.AllowScriptAccess="always";
+}
+_b=_d.GetVariable("$version");
+}
+}
+catch(e){
+continue;
+}
+}else{
+_b=this._JSFlashInfo(_c);
+}
+if(_b==-1){
+this.capable=false;
+return;
+}else{
+if(_b!=0){
+var _e;
+if(dojo.isIE){
+var _f=_b.split(" ");
+var _10=_f[1];
+_e=_10.split(",");
+}else{
+_e=_b.split(".");
+}
+this.versionMajor=_e[0];
+this.versionMinor=_e[1];
+this.versionRevision=_e[2];
+var _11=this.versionMajor+"."+this.versionRevision;
+this.version=parseFloat(_11);
+this.capable=true;
+break;
+}
+}
+}
+},_JSFlashInfo:function(_12){
+if(navigator.plugins!=null&&navigator.plugins.length>0){
+if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){
+var _13=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";
+var _14=navigator.plugins["Shockwave Flash"+_13].description;
+var _15=_14.split(" ");
+var _16=_15[2].split(".");
+var _17=_16[0];
+var _18=_16[1];
+var _19=(_15[3]||_15[4]).split("r");
+var _1a=_19[1]>0?_19[1]:0;
+var _1b=_17+"."+_18+"."+_1a;
+return _1b;
+}
+}
+return -1;
+}};
+dojox.flash.Embed=function(_1c){
+this._visible=_1c;
+};
+dojox.flash.Embed.prototype={width:215,height:138,id:"flashObject",_visible:true,protocol:function(){
+switch(window.location.protocol){
+case "https:":
+return "https";
+break;
+default:
+return "http";
+break;
+}
+},write:function(_1d){
+var _1e;
+var _1f=dojox.flash.url;
+var _20=_1f;
+var _21=_1f;
+var _22=dojo.baseUrl;
+var _23=document.location.protocol+"//"+document.location.host;
+if(_1d){
+var _24=escape(window.location);
+document.title=document.title.slice(0,47)+" - Flash Player Installation";
+var _25=escape(document.title);
+_20+="?MMredirectURL="+_24+"&MMplayerType=ActiveX"+"&MMdoctitle="+_25+"&baseUrl="+escape(_22)+"&xdomain="+escape(_23);
+_21+="?MMredirectURL="+_24+"&MMplayerType=PlugIn"+"&baseUrl="+escape(_22)+"&xdomain="+escape(_23);
+}else{
+_20+="?cachebust="+new Date().getTime();
+_20+="&baseUrl="+escape(_22);
+_20+="&xdomain="+escape(_23);
+}
+if(_21.indexOf("?")==-1){
+_21+="?baseUrl="+escape(_22);
+}else{
+_21+="&baseUrl="+escape(_22);
+}
+_21+="&xdomain="+escape(_23);
+_1e="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" "+"codebase=\""+this.protocol()+"://fpdownload.macromedia.com/pub/shockwave/cabs/flash/"+"swflash.cab#version=8,0,0,0\"\n "+"width=\""+this.width+"\"\n "+"height=\""+this.height+"\"\n "+"id=\""+this.id+"\"\n "+"name=\""+this.id+"\"\n "+"align=\"middle\">\n "+"<param name=\"allowScriptAccess\" value=\"always\"></param>\n "+"<param name=\"movie\" value=\""+_20+"\"></param>\n "+"<param name=\"quality\" value=\"high\"></param>\n "+"<param name=\"bgcolor\" value=\"#ffffff\"></param>\n "+"<embed src=\""+_21+"\" "+"quality=\"high\" "+"bgcolor=\"#ffffff\" "+"width=\""+this.width+"\" "+"height=\""+this.height+"\" "+"id=\""+this.id+"Embed"+"\" "+"name=\""+this.id+"\" "+"swLiveConnect=\"true\" "+"align=\"middle\" "+"allowScriptAccess=\"always\" "+"type=\"application/x-shockwave-flash\" "+"pluginspage=\""+this.protocol()+"://www.macromedia.com/go/getflashplayer\" "+"></embed>\n"+"</object>\n";
+dojo.connect(dojo,"loaded",dojo.hitch(this,function(){
+var _26=this.id+"Container";
+if(dojo.byId(_26)){
+return;
+}
+var div=document.createElement("div");
+div.id=this.id+"Container";
+div.style.width=this.width+"px";
+div.style.height=this.height+"px";
+if(!this._visible){
+div.style.position="absolute";
+div.style.zIndex="10000";
+div.style.top="-1000px";
+}
+div.innerHTML=_1e;
+var _28=document.getElementsByTagName("body");
+if(!_28||!_28.length){
+throw new Error("No body tag for this page");
+}
+_28=_28[0];
+_28.appendChild(div);
+}));
+},get:function(){
+if(dojo.isIE||dojo.isWebKit){
+return dojo.byId(this.id);
+}else{
+return document[this.id+"Embed"];
+}
+},setVisible:function(_29){
+var _2a=dojo.byId(this.id+"Container");
+if(_29){
+_2a.style.position="absolute";
+_2a.style.visibility="visible";
+}else{
+_2a.style.position="absolute";
+_2a.style.y="-1000px";
+_2a.style.visibility="hidden";
+}
+},center:function(){
+var _2b=this.width;
+var _2c=this.height;
+var _2d=dijit.getViewport();
+var x=_2d.l+(_2d.w-_2b)/2;
+var y=_2d.t+(_2d.h-_2c)/2;
+var _30=dojo.byId(this.id+"Container");
+_30.style.top=y+"px";
+_30.style.left=x+"px";
+}};
+dojox.flash.Communicator=function(){
+};
+dojox.flash.Communicator.prototype={_addExternalInterfaceCallback:function(_31){
+var _32=dojo.hitch(this,function(){
+var _33=new Array(arguments.length);
+for(var i=0;i<arguments.length;i++){
+_33[i]=this._encodeData(arguments[i]);
+}
+var _35=this._execFlash(_31,_33);
+_35=this._decodeData(_35);
+return _35;
+});
+this[_31]=_32;
+},_encodeData:function(_36){
+if(!_36||typeof _36!="string"){
+return _36;
+}
+_36=_36.replace("\\","&custom_backslash;");
+_36=_36.replace(/\0/g,"&custom_null;");
+return _36;
+},_decodeData:function(_37){
+if(_37&&_37.length&&typeof _37!="string"){
+_37=_37[0];
+}
+if(!_37||typeof _37!="string"){
+return _37;
+}
+_37=_37.replace(/\&custom_null\;/g,"\x00");
+_37=_37.replace(/\&custom_lt\;/g,"<").replace(/\&custom_gt\;/g,">").replace(/\&custom_backslash\;/g,"\\");
+return _37;
+},_execFlash:function(_38,_39){
+var _3a=dojox.flash.obj.get();
+_39=(_39)?_39:[];
+for(var i=0;i<_39;i++){
+if(typeof _39[i]=="string"){
+_39[i]=this._encodeData(_39[i]);
+}
+}
+var _3c=function(){
+return eval(_3a.CallFunction("<invoke name=\""+_38+"\" returntype=\"javascript\">"+__flash__argumentsToXML(_39,0)+"</invoke>"));
+};
+var _3d=_3c.call(_39);
+if(typeof _3d=="string"){
+_3d=this._decodeData(_3d);
+}
+return _3d;
+}};
+dojox.flash.Install=function(){
+};
+dojox.flash.Install.prototype={needed:function(){
+if(!dojox.flash.info.capable){
+return true;
+}
+if(!dojox.flash.info.isVersionOrAbove(8,0,0)){
+return true;
+}
+return false;
+},install:function(){
+var _3e;
+dojox.flash.info.installing=true;
+dojox.flash.installing();
+if(dojox.flash.info.capable==false){
+_3e=new dojox.flash.Embed(false);
+_3e.write();
+}else{
+if(dojox.flash.info.isVersionOrAbove(6,0,65)){
+_3e=new dojox.flash.Embed(false);
+_3e.write(true);
+_3e.setVisible(true);
+_3e.center();
+}else{
+alert("This content requires a more recent version of the Macromedia "+" Flash Player.");
+window.location.href=+dojox.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer";
+}
+}
+},_onInstallStatus:function(msg){
+if(msg=="Download.Complete"){
+dojox.flash._initialize();
+}else{
+if(msg=="Download.Cancelled"){
+alert("This content requires a more recent version of the Macromedia "+" Flash Player.");
+window.location.href=dojox.flash.Embed.protocol()+"://www.macromedia.com/go/getflashplayer";
+}else{
+if(msg=="Download.Failed"){
+alert("There was an error downloading the Flash Player update. "+"Please try again later, or visit macromedia.com to download "+"the latest version of the Flash plugin.");
+}
+}
+}
+}};
+dojox.flash.info=new dojox.flash.Info();
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/flash/_base.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/BusyButton.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/BusyButton.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/BusyButton.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/BusyButton.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,79 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.BusyButton"]){
+dojo._hasResource["dojox.form.BusyButton"]=true;
+dojo.provide("dojox.form.BusyButton");
+dojo.require("dijit.form.Button");
+dojo.requireLocalization("dijit","loading",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,ko,nb,nl,pl,pt,pt-pt,ru,sk,sl,sv,th,tr,zh,zh-tw");
+dojo.declare("dojox.form._BusyButtonMixin",null,{isBusy:false,busyLabel:"",timeout:null,useIcon:true,postMixInProperties:function(){
+this.inherited(arguments);
+if(!this.busyLabel){
+this.busyLabel=dojo.i18n.getLocalization("dijit","loading",this.lang).loadingState;
+}
+},postCreate:function(){
+this._label=this.containerNode.innerHTML;
+this._initTimeout=this.timeout;
+if(this.isBusy){
+this.makeBusy();
+}
+},makeBusy:function(){
+this.isBusy=true;
+this.attr("disabled",true);
+this.setLabel(this.busyLabel,this.timeout);
+},cancel:function(){
+this.attr("disabled",false);
+this.isBusy=false;
+this.setLabel(this._label);
+if(this._timeout){
+clearTimeout(this._timeout);
+}
+this.timeout=this._initTimeout;
+},resetTimeout:function(_1){
+if(this._timeout){
+clearTimeout(this._timeout);
+}
+if(_1){
+this._timeout=setTimeout(dojo.hitch(this,function(){
+this.cancel();
+}),_1);
+}else{
+if(_1==undefined||_1===0){
+this.cancel();
+}
+}
+},setLabel:function(_2,_3){
+this.label=_2;
+while(this.containerNode.firstChild){
+this.containerNode.removeChild(this.containerNode.firstChild);
+}
+this.containerNode.innerHTML=this.label;
+this._layoutHack();
+if(this.showLabel==false&&!(dojo.attr(this.domNode,"title"))){
+this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");
+}
+if(_3){
+this.resetTimeout(_3);
+}else{
+this.timeout=null;
+}
+if(this.useIcon&&this.isBusy){
+var _4=new Image();
+_4.src=this._blankGif;
+dojo.attr(_4,"id",this.id+"_icon");
+dojo.addClass(_4,"dojoxBusyButtonIcon");
+this.containerNode.appendChild(_4);
+}
+},_clicked:function(e){
+if(!this.isBusy){
+this.makeBusy();
+}
+}});
+dojo.declare("dojox.form.BusyButton",[dijit.form.Button,dojox.form._BusyButtonMixin],{});
+dojo.declare("dojox.form.BusyComboButton",[dijit.form.ComboButton,dojox.form._BusyButtonMixin],{});
+dojo.declare("dojox.form.BusyDropDownButton",[dijit.form.DropDownButton,dojox.form._BusyButtonMixin],{});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/BusyButton.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/CheckedMultiSelect.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/CheckedMultiSelect.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/CheckedMultiSelect.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/CheckedMultiSelect.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,99 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.CheckedMultiSelect"]){
+dojo._hasResource["dojox.form.CheckedMultiSelect"]=true;
+dojo.provide("dojox.form.CheckedMultiSelect");
+dojo.require("dijit.form.CheckBox");
+dojo.require("dojox.form._FormSelectWidget");
+dojo.declare("dojox.form._CheckedMultiSelectItem",[dijit._Widget,dijit._Templated],{widgetsInTemplate:true,templateString:"<div class=\"dijitReset ${baseClass}\"\n\t><input class=\"${baseClass}Box\" dojoType=\"dijit.form.CheckBox\" dojoAttachPoint=\"checkBox\" \n\t\tdojoAttachEvent=\"_onClick:_changeBox\" type=\"${_type.type}\" baseClass=\"${_type.baseClass}\"\n\t><div class=\"dijitInline ${baseClass}Label\" dojoAttachPoint=\"labelNode\" dojoAttachEvent=\"onmousedown:_onMouse,onmouseover:_onMouse,onmouseout:_onMouse,onclick:_onClick\"></div\n></div>\n",baseClass:"dojoxMultiSelectItem",option:null,parent:null,disabled:false,readOnly:false,postMixInProperties:function(){
+if(this.parent._multiValue){
+this._type={type:"checkbox",baseClass:"dijitCheckBox"};
+}else{
+this._type={type:"radio",baseClass:"dijitRadio"};
+}
+this.disabled=this.option.disabled=this.option.disabled||false;
+this.inherited(arguments);
+},postCreate:function(){
+this.inherited(arguments);
+this.labelNode.innerHTML=this.option.label;
+},_changeBox:function(){
+if(this.attr("disabled")||this.attr("readOnly")){
+return;
+}
+if(this.parent._multiValue){
+this.option.selected=this.checkBox.attr("value")&&true;
+}else{
+this.parent.attr("value",this.option.value);
+}
+this.parent._updateSelection();
+this.parent.focus();
+},_onMouse:function(e){
+if(this.attr("disabled")||this.attr("readOnly")){
+dojo.stopEvent(e);
+}else{
+this.checkBox._onMouse(e);
+}
+},_onClick:function(e){
+if(this.attr("disabled")||this.attr("readOnly")){
+dojo.stopEvent(e);
+}else{
+this.checkBox._onClick(e);
+}
+},_updateBox:function(){
+this.checkBox.attr("value",this.option.selected);
+},_setDisabledAttr:function(_3){
+this.disabled=_3||this.option.disabled;
+this.checkBox.attr("disabled",this.disabled);
+dojo.toggleClass(this.domNode,"dojoxMultiSelectDisabled",this.disabled);
+},_setReadOnlyAttr:function(_4){
+this.checkBox.attr("readOnly",_4);
+this.checkBox._setStateClass();
+this.readOnly=_4;
+}});
+dojo.declare("dojox.form.CheckedMultiSelect",dojox.form._FormSelectWidget,{templateString:"",templateString:"<div class=\"dijit dijitReset dijitInline\" dojoAttachEvent=\"onmousedown:_mouseDown,onclick:focus\"\n\t><select class=\"${baseClass}Select\" multiple=\"true\" dojoAttachPoint=\"containerNode,focusNode\"></select\n\t><div dojoAttachPoint=\"wrapperDiv\"></div\n></div>\n",baseClass:"dojoxMultiSelect",_mouseDown:function(e){
+dojo.stopEvent(e);
+},_addOptionItem:function(_6){
+this.wrapperDiv.appendChild(new dojox.form._CheckedMultiSelectItem({option:_6,parent:this}).domNode);
+},_updateSelection:function(){
+this.inherited(arguments);
+dojo.forEach(this._getChildren(),function(c){
+c._updateBox();
+});
+},_getChildren:function(){
+return dojo.map(this.wrapperDiv.childNodes,function(n){
+return dijit.byNode(n);
+});
+},invertSelection:function(_9){
+dojo.forEach(this.options,function(i){
+i.selected=!i.selected;
+});
+this._updateSelection();
+},_setDisabledAttr:function(_b){
+this.inherited(arguments);
+dojo.forEach(this._getChildren(),function(_c){
+if(_c&&_c.attr){
+_c.attr("disabled",_b);
+}
+});
+},_setReadOnlyAttr:function(_d){
+if("readOnly" in this.attributeMap){
+this._attrToDom("readOnly",_d);
+}
+this.readOnly=_d;
+dojo.forEach(this._getChildren(),function(_e){
+if(_e&&_e.attr){
+_e.attr("readOnly",_d);
+}
+});
+this._setStateClass();
+},uninitialize:function(){
+dojo.forEach(this._getChildren(),function(_f){
+_f.destroyRecursive();
+});
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/CheckedMultiSelect.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/DateTextBox.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/DateTextBox.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/DateTextBox.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/DateTextBox.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,58 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.DateTextBox"]){
+dojo._hasResource["dojox.form.DateTextBox"]=true;
+dojo.provide("dojox.form.DateTextBox");
+dojo.require("dojox.widget.Calendar");
+dojo.require("dojox.widget.CalendarViews");
+dojo.require("dijit.form._DateTimeTextBox");
+dojo.declare("dojox.form.DateTextBox",dijit.form._DateTimeTextBox,{popupClass:"dojox.widget.Calendar",_selector:"date",_open:function(){
+this.inherited(arguments);
+dojo.style(this._picker.domNode.parentNode,"position","absolute");
+}});
+dojo.declare("dojox.form.DayTextBox",dojox.form.DateTextBox,{popupClass:"dojox.widget.DailyCalendar",format:function(_1){
+return _1.getDate();
+},validator:function(_2){
+var _3=Number(_2);
+var _4=/(^-?\d\d*$)/.test(String(_2));
+return _2==""||_2==null||(_4&&_3>=1&&_3<=31);
+},_open:function(){
+this.inherited(arguments);
+this._picker.onValueSelected=dojo.hitch(this,function(_5){
+this.focus();
+setTimeout(dojo.hitch(this,"_close"),1);
+dijit.form.TextBox.prototype._setValueAttr.call(this,_5,true,String(_5.getDate()));
+});
+}});
+dojo.declare("dojox.form.MonthTextBox",dojox.form.DateTextBox,{popupClass:"dojox.widget.MonthlyCalendar",format:function(_6){
+return _6+1;
+},validator:function(_7){
+var _8=Number(_7);
+var _9=/(^-?\d\d*$)/.test(String(_7));
+return _7==""||_7==null||(_9&&_8>=1&&_8<=12);
+},_open:function(){
+this.inherited(arguments);
+this._picker.onValueSelected=dojo.hitch(this,function(_a){
+this.focus();
+setTimeout(dojo.hitch(this,"_close"),1);
+dijit.form.TextBox.prototype._setValueAttr.call(this,_a+1,true,_a+1);
+});
+}});
+dojo.declare("dojox.form.YearTextBox",dojox.form.DateTextBox,{popupClass:"dojox.widget.YearlyCalendar",format:function(_b){
+return _b;
+},validator:function(_c){
+return _c==""||_c==null||/(^-?\d\d*$)/.test(String(_c));
+},_open:function(){
+this.inherited(arguments);
+this._picker.onValueSelected=dojo.hitch(this,function(_d){
+this.focus();
+setTimeout(dojo.hitch(this,"_close"),1);
+dijit.form.TextBox.prototype._setValueAttr.call(this,_d,true,_d);
+});
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/DateTextBox.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/DropDownSelect.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/DropDownSelect.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/DropDownSelect.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/DropDownSelect.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,133 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.DropDownSelect"]){
+dojo._hasResource["dojox.form.DropDownSelect"]=true;
+dojo.provide("dojox.form.DropDownSelect");
+dojo.require("dojox.form._FormSelectWidget");
+dojo.require("dojox.form._HasDropDown");
+dojo.require("dijit.Menu");
+dojo.requireLocalization("dijit.form","validate",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,ko,nb,nl,pl,pt,pt-pt,ru,sk,sl,sv,th,tr,zh,zh-tw");
+dojo.declare("dojox.form.DropDownSelect",[dojox.form._FormSelectWidget,dojox.form._HasDropDown],{attributeMap:dojo.mixin(dojo.clone(dojox.form._FormSelectWidget.prototype.attributeMap),{value:"valueNode",name:"valueNode"}),baseClass:"dojoxDropDownSelect",templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\n\tdojoAttachPoint=\"dropDownNode,tableNode\" cellspacing='0' cellpadding='0' waiRole=\"presentation\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\" \n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  dojoAttachPoint=\"containerNode,popupStateNode\" id=\"${id}_label\"></span\n\t\t\t><input type=\"hidden\" ${nameAttrSetting} dojoAttachPoint=\"valueNode\" value=\"${value}\" />\n\t\t</td><td class=\"dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDown
 ArrowButton\" \n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode\" waiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\">&thinsp;</div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n",attributeMap:dojo.mixin(dojo.clone(dojox.form._FormSelectWidget.prototype.attributeMap),{style:"tableNode"}),required:false,state:"",tooltipPosition:[],emptyLabel:"",_isLoaded:false,_childrenLoaded:false,_fillContent:function(){
+this.inherited(arguments);
+if(this.options.length&&!this.value){
+var si=this.srcNodeRef.selectedIndex;
+this.value=this.options[si!=-1?si:0].value;
+}
+this.dropDown=new dijit.Menu();
+dojo.addClass(this.dropDown.domNode,this.baseClass+"Menu");
+},_getMenuItemForOption:function(_2){
+if(!_2.value){
+return new dijit.MenuSeparator();
+}else{
+var _3=dojo.hitch(this,"_setValueAttr",_2);
+return new dijit.MenuItem({option:_2,label:_2.label,onClick:_3,disabled:_2.disabled||false});
+}
+},_addOptionItem:function(_4){
+this.dropDown.addChild(this._getMenuItemForOption(_4));
+},_getChildren:function(){
+return this.dropDown.getChildren();
+},_loadChildren:function(){
+this.inherited(arguments);
+var _5=this.options.length;
+this._isLoaded=false;
+this._childrenLoaded=true;
+if(!this._iReadOnly){
+this.attr("readOnly",(_5===1));
+delete this._iReadOnly;
+}
+if(!this._iDisabled){
+this.attr("disabled",(_5===0));
+delete this._iDisabled;
+}
+this._setValueAttr(this.value);
+},_setValueAttr:function(_6){
+this.inherited(arguments);
+dojo.attr(this.valueNode,"value",this.attr("value"));
+},_setDisplay:function(_7){
+this.containerNode.innerHTML="<span class=\" "+this.baseClass+"Label\">"+(_7||this.emptyLabel||"&nbsp;")+"</span>";
+this._layoutHack();
+},validate:function(_8){
+var _9=this.isValid(_8);
+this.state=_9?"":"Error";
+this._setStateClass();
+dijit.setWaiState(this.focusNode,"invalid",_9?"false":"true");
+var _a=_9?"":this._missingMsg;
+if(this._message!==_a){
+this._message=_a;
+dijit.hideTooltip(this.domNode);
+if(_a){
+dijit.showTooltip(_a,this.domNode,this.tooltipPosition);
+}
+}
+return _9;
+},isValid:function(_b){
+return (!this.required||!(/^\s*$/.test(this.value)));
+},reset:function(){
+this.inherited(arguments);
+dijit.hideTooltip(this.domNode);
+this.state="";
+this._setStateClass();
+delete this._message;
+},postMixInProperties:function(){
+this.inherited(arguments);
+this._missingMsg=dojo.i18n.getLocalization("dijit.form","validate",this.lang).missingMessage;
+},postCreate:function(){
+this.inherited(arguments);
+if(dojo.attr(this.srcNodeRef,"disabled")){
+this.attr("disabled",true);
+}
+if(this.tableNode.style.width){
+dojo.addClass(this.domNode,this.baseClass+"FixedWidth");
+}
+},startup:function(){
+if(this._started){
+return;
+}
+if(!this.dropDown){
+var _c=dojo.query("[widgetId]",this.dropDownContainer)[0];
+this.dropDown=dijit.byNode(_c);
+delete this.dropDownContainer;
+}
+this.inherited(arguments);
+},_onMenuMouseup:function(e){
+var _e=this.dropDown,t=e.target;
+if(_e.onItemClick){
+var _10;
+while(t&&!(_10=dijit.byNode(t))){
+t=t.parentNode;
+}
+if(_10&&_10.onClick&&_10.getParent){
+_10.getParent().onItemClick(_10,e);
+}
+}
+},isLoaded:function(){
+return this._isLoaded;
+},loadDropDown:function(_11){
+this._loadChildren();
+this._isLoaded=true;
+_11();
+},_setReadOnlyAttr:function(_12){
+this._iReadOnly=_12;
+if(!_12&&this._childrenLoaded&&this.options.length===1){
+return;
+}
+this.readOnly=_12;
+},_setDisabledAttr:function(_13){
+this._iDisabled=_13;
+if(!_13&&this._childrenLoaded&&this.options.length===0){
+return;
+}
+this.inherited(arguments);
+},uninitialize:function(_14){
+if(this.dropDown){
+this.dropDown.destroyRecursive(_14);
+delete this.dropDown;
+}
+this.inherited(arguments);
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/DropDownSelect.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/DropDownStack.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/DropDownStack.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/DropDownStack.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/DropDownStack.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,14 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.DropDownStack"]){
+dojo._hasResource["dojox.form.DropDownStack"]=true;
+dojo.provide("dojox.form.DropDownStack");
+dojo.require("dojox.form.DropDownSelect");
+dojo.require("dojox.form._SelectStackMixin");
+dojo.declare("dojox.form.DropDownStack",[dojox.form.DropDownSelect,dojox.form._SelectStackMixin],{});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/DropDownStack.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FileInput.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FileInput.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FileInput.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FileInput.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,42 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.FileInput"]){
+dojo._hasResource["dojox.form.FileInput"]=true;
+dojo.provide("dojox.form.FileInput");
+dojo.experimental("dojox.form.FileInput");
+dojo.require("dijit.form._FormWidget");
+dojo.require("dijit._Templated");
+dojo.declare("dojox.form.FileInput",dijit.form._FormWidget,{label:"Browse ...",cancelText:"Cancel",name:"uploadFile",templateString:"<div class=\"dijitFileInput\">\n\t<input id=\"${id}\" class=\"dijitFileInputReal\" type=\"file\" dojoAttachPoint=\"fileInput\" name=\"${name}\" />\n\t<div class=\"dijitFakeInput\">\n\t\t<input class=\"dijitFileInputVisible\" type=\"text\" dojoAttachPoint=\"focusNode, inputNode\" />\n\t\t<div class=\"dijitInline dijitFileInputText\" dojoAttachPoint=\"titleNode\">${label}</div>\n\t\t<div class=\"dijitInline dijitFileInputButton\" dojoAttachPoint=\"cancelNode\" \n\t\t\tdojoAttachEvent=\"onclick:reset\">${cancelText}</div>\n\t</div>\n</div>\n",startup:function(){
+this._listener=this.connect(this.fileInput,"onchange","_matchValue");
+this._keyListener=this.connect(this.fileInput,"onkeyup","_matchValue");
+},_matchValue:function(){
+this.inputNode.value=this.fileInput.value;
+if(this.inputNode.value){
+this.cancelNode.style.visibility="visible";
+dojo.fadeIn({node:this.cancelNode,duration:275}).play();
+}
+},setLabel:function(_1,_2){
+this.titleNode.innerHTML=_1;
+},reset:function(e){
+this.disconnect(this._listener);
+this.disconnect(this._keyListener);
+if(this.fileInput){
+this.domNode.removeChild(this.fileInput);
+}
+dojo.fadeOut({node:this.cancelNode,duration:275}).play();
+this.fileInput=document.createElement("input");
+this.fileInput.setAttribute("type","file");
+this.fileInput.setAttribute("id",this.id);
+this.fileInput.setAttribute("name",this.name);
+dojo.addClass(this.fileInput,"dijitFileInputReal");
+this.domNode.appendChild(this.fileInput);
+this._keyListener=this.connect(this.fileInput,"onkeyup","_matchValue");
+this._listener=this.connect(this.fileInput,"onchange","_matchValue");
+this.inputNode.value="";
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FileInput.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FileInputAuto.js
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FileInputAuto.js?rev=755904&view=auto
==============================================================================
--- camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FileInputAuto.js (added)
+++ camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FileInputAuto.js Thu Mar 19 10:37:00 2009
@@ -0,0 +1,95 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojox.form.FileInputAuto"]){
+dojo._hasResource["dojox.form.FileInputAuto"]=true;
+dojo.provide("dojox.form.FileInputAuto");
+dojo.require("dojox.form.FileInput");
+dojo.require("dojo.io.iframe");
+dojo.declare("dojox.form.FileInputAuto",dojox.form.FileInput,{url:"",blurDelay:2000,duration:500,uploadMessage:"Uploading ...",triggerEvent:"onblur",_sent:false,templateString:"<div class=\"dijitFileInput\">\n\t<input id=\"${id}\" name=\"${name}\" class=\"dijitFileInputReal\" type=\"file\" dojoAttachPoint=\"fileInput\" />\n\t<div class=\"dijitFakeInput\" dojoAttachPoint=\"fakeNodeHolder\">\n\t\t<input class=\"dijitFileInputVisible\" type=\"text\" dojoAttachPoint=\"focusNode, inputNode\" />\n\t\t<div class=\"dijitInline dijitFileInputText\" dojoAttachPoint=\"titleNode\">${label}</div>\n\t\t<div class=\"dijitInline dijitFileInputButton\" dojoAttachPoint=\"cancelNode\" dojoAttachEvent=\"onclick:reset\">${cancelText}</div>\n\t</div>\n\t<div class=\"dijitProgressOverlay\" dojoAttachPoint=\"overlay\">&nbsp;</div>\n</div>\n",startup:function(){
+this._blurListener=this.connect(this.fileInput,this.triggerEvent,"_onBlur");
+this._focusListener=this.connect(this.fileInput,"onfocus","_onFocus");
+this.inherited(arguments);
+},_onFocus:function(){
+if(this._blurTimer){
+clearTimeout(this._blurTimer);
+}
+},_onBlur:function(){
+if(this._blurTimer){
+clearTimeout(this._blurTimer);
+}
+if(!this._sent){
+this._blurTimer=setTimeout(dojo.hitch(this,"_sendFile"),this.blurDelay);
+}
+},setMessage:function(_1){
+this.overlay.removeChild(this.overlay.firstChild);
+this.overlay.appendChild(document.createTextNode(_1));
+},_sendFile:function(e){
+if(this._sent||this._sending||!this.fileInput.value){
+return;
+}
+this._sending=true;
+dojo.style(this.fakeNodeHolder,"display","none");
+dojo.style(this.overlay,{opacity:0,display:"block"});
+this.setMessage(this.uploadMessage);
+dojo.fadeIn({node:this.overlay,duration:this.duration}).play();
+var _3;
+if(dojo.isIE){
+_3=document.createElement("<form enctype=\"multipart/form-data\" method=\"post\">");
+_3.encoding="multipart/form-data";
+}else{
+_3=document.createElement("form");
+_3.setAttribute("enctype","multipart/form-data");
+}
+_3.appendChild(this.fileInput);
+dojo.body().appendChild(_3);
+dojo.io.iframe.send({url:this.url,form:_3,handleAs:"json",handle:dojo.hitch(this,"_handleSend")});
+},_handleSend:function(_4,_5){
+this.overlay.removeChild(this.overlay.firstChild);
+this._sent=true;
+this._sending=false;
+dojo.style(this.overlay,{opacity:0,border:"none",background:"none"});
+this.overlay.style.backgroundImage="none";
+this.fileInput.style.display="none";
+this.fakeNodeHolder.style.display="none";
+dojo.fadeIn({node:this.overlay,duration:this.duration}).play(250);
+this.disconnect(this._blurListener);
+this.disconnect(this._focusListener);
+dojo.body().removeChild(_5.args.form);
+this.fileInput=null;
+this.onComplete(_4,_5,this);
+},reset:function(e){
+if(this._blurTimer){
+clearTimeout(this._blurTimer);
+}
+this.disconnect(this._blurListener);
+this.disconnect(this._focusListener);
+this.overlay.style.display="none";
+this.fakeNodeHolder.style.display="";
+this.inherited(arguments);
+this._sent=false;
+this._sending=false;
+this._blurListener=this.connect(this.fileInput,this.triggerEvent,"_onBlur");
+this._focusListener=this.connect(this.fileInput,"onfocus","_onFocus");
+},onComplete:function(_7,_8,_9){
+}});
+dojo.declare("dojox.form.FileInputBlind",dojox.form.FileInputAuto,{startup:function(){
+this.inherited(arguments);
+this._off=dojo.style(this.inputNode,"width");
+this.inputNode.style.display="none";
+this._fixPosition();
+},_fixPosition:function(){
+if(dojo.isIE){
+dojo.style(this.fileInput,"width","1px");
+}else{
+dojo.style(this.fileInput,"left","-"+(this._off)+"px");
+}
+},reset:function(e){
+this.inherited(arguments);
+this._fixPosition();
+}});
+}

Propchange: camel/trunk/components/camel-web/src/main/webapp/js/dojox/form/FileInputAuto.js
------------------------------------------------------------------------------
    svn:eol-style = native