silverstripe-framework/thirdparty/jquery-validate/jquery.validate.pack.js

15 lines
14 KiB
JavaScript
Raw Normal View History

/*
* jQuery validation plug-in 1.5.5
*
* http://bassistance.de/jquery-plugins/jquery-plugin-validation/
* http://docs.jquery.com/Plugins/Validation
*
* Copyright (c) 2006 - 2008 Jörn Zaefferer
*
* $Id: jquery.validate.js 6403 2009-06-17 14:27:16Z joern.zaefferer $
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(7($){$.H($.2M,{1F:7(d){l(!6.F){d&&d.2p&&30.1z&&1z.57("3B 2B, 4L\'t 1F, 6e 3B");8}q c=$.17(6[0],\'u\');l(c){8 c}c=2c $.u(d,6[0]);$.17(6[0],\'u\',c);l(c.p.3C){6.3w("1x, 3n").1m(".4H").3e(7(){c.3b=w});l(c.p.2I){6.3w("1x, 3n").1m(":20").3e(7(){c.1U=6})}6.20(7(b){l(c.p.2p)b.5Y();7 2l(){l(c.p.2I){l(c.1U){q a=$("<1x 1k=\'5x\'/>").1t("v",c.1U.v).3L(c.1U.R).56(c.V)}c.p.2I.Z(c,c.V);l(c.1U){a.3F()}8 L}8 w}l(c.3b){c.3b=L;8 2l()}l(c.N()){l(c.1g){c.1v=w;8 L}8 2l()}1b{c.2w();8 L}})}8 c},M:7(){l($(6[0]).31(\'N\')){8 6.1F().N()}1b{q b=w;q a=$(6[0].N).1F();6.P(7(){b&=a.J(6)});8 b}},4G:7(c){q d={},$J=6;$.P(c.1T(/\\s/),7(a,b){d[b]=$J.1t(b);$J.6o(b)});8 d},1h:7(h,k){q f=6[0];l(h){q i=$.17(f.N,\'u\').p;q d=i.1h;q c=$.u.36(f);2q(h){1e"1f":$.H(c,$.u.1J(k));d[f.v]=c;l(k.I)i.I[f.v]=$.H(i.I[f.v],k.I);2L;1e"3F":l(!k){Q d[f.v];8 c}q e={};$.P(k.1T(/\\s/),7(a,b){e[b]=c[b];Q c[b]});8 e}}q g=$.u.41($.H({},$.u.3Y(f),$.u.3X(f),$.u.3S(f),$.u.36(f)),f);l(g.13){q j=g.13;Q g.13;g=$.H({13:j},g)}8 g}});$.H($.5u[":"],{5t:7(a){8!$.1j(a.R)},5o:7(a){8!!$.1j(a.R)},5k:7(a){8!a.3J}});$.u=7(b,a){6.p=$.H({},$.u.2N,b);6.V=a;6.4l()};$.u.15=7(c,b){l(U.F==1)8 7(){q a=$.3I(U);a.4V(c);8 $.u.15.1M(6,a)};l(U.F>2&&b.29!=3D){b=$.3I(U).4R(1)}l(b.29!=3D){b=[b]}$.P(b,7(i,n){c=c.27(2c 3z("\\\\{"+i+"\\\\}","g"),n)});8 c};$.H($.u,{2N:{I:{},26:{},1h:{},1c:"3t",24:"M",2E:"4N",2w:w,3s:$([]),2A:$([]),3C:w,3q:[],3p:L,4M:7(a){6.3l=a;l(6.p.4K&&!6.4J){6.p.1S&&6.p.1S.Z(6,a,6.p.1c,6.p.24);6.1P(a).2y()}},4E:7(a){l(!6.1u(a)&&(a.v 14 6.1o||!6.G(a))){6.J(a)}},6n:7(a){l(a.v 14 6.1o||a==6.4z){6.J(a)}},6l:7(a){l(a.v 14 6.1o)6.J(a)},34:7(a,c,b){$(a).1V(c).2t(b)},1S:7(a,c,b){$(a).2t(c).1V(b)}},6d:7(a){$.H($.u.2N,a)},I:{13:"6c 4p 31 13.",1Z:"K 37 6 4p.",1K:"K O a M 1K 67.",1p:"K O a M 66.",1r:"K O a M 1r.",22:"K O a M 1r (64).",2n:"4c 4b 49 2J 5Z<35>5X 5U 2J.",1C:"K O a M 1C.",2f:"4c 4b 49 5P 5M 2J.",1O:"K O 5J 1O",2i:"K O a M 5G 5F 1C.",3W:"K O 3V 5B R 5z.",3R:"K O a R 5w a M 5v.",18:$.u.15("K O 3P 5s 2W {0} 2P."),1y:$.u.15("K O 5n 5l {0} 2P."),2k:$.u.15("K O a R 4A {0} 3K {1} 2P 5h."),2m:$.u.15("K O a R 4A {0} 3K {1}."),1A:$.u.15("K O a R 5d 2W 4d 4f 4s {0}."),1B:$.u.15("K O a R 53 2W 4d 4f 4s {0}.")},4r:L,4Z:{4l:7(){6.2u=$(6.p.2A);6.4v=6.2u.F&&6.2u||$(6.V);6.2o=$(6.p.3s).1f(6.p.2A);6.1o={};6.4T={};6.1g=0;6.1d={};6.1a={};6.1L();q f=(6.26={});$.P(6.p.26,7(d,c){$.P(c.1T(/\\s/),7(a,b){f[b]=d})});q e=6.p.1h;$.P(e,7(b,a){e[b]=$.u.1J(a)});7 1q(a){q b=$.17(6[0].N,"u");b.p["3H"+a.1k]&&b.p["3H"+a.1k].Z(b,6[0])}$(6.V).1q("3G 3E 4S",":2H, :4Q, :4P, 28, 4O",1q).1q("3e",":3A, :3y",1q);l(6.p.3x)$(6.V).3v("1a-N.1F",6.p.3x)},N:7(){6.3u();$.H(6.1o,6.1s);6.1a=$.H({},6.1s);l(!6.M())$(6.V).2G("1a-N",[6]);6.1i();8 6.M()},3u:7(){6.2F();S(q i=0,11=(6.23=6.11());11[i];i++){6.2a(11[i])}8 6.M()},J:7(a){a=6.2D(a);6.4z=a;6.2C(a);6.23=$(a);q b=6.2a(a);l(b){Q 6.1a[a.v]}1b{6.1a[a.v]=w}l(!6.3r()){6.12=6.12.1f(6.2o)}6.1i();8 b},1i:7(b){l(b){$.H(6.1s,b);6.T=[];S(q c 14 b){6.T.2e({19:b[c],J:6.21(c)[0]})}6.1l=$.3o(6.1l,7(a){8!(a.v 14 b)})}6.p.1i?6.p.1i.Z(6,6.1s,6.T):6.3m()},2U:7(){l($.2M.2U)$(6.V).2U();6.1o={};6.2F();6.2S();6.11().2t(6.p.1c)},3r:7(){8 6.2g(6.1a)},2g:7(a){q b=0;S(q i 14 a)b++;8 b},2S:7(){6.2z(6.12).2y()},M:7(){8 6.3k()==0},3k:7(){8 6.T.F},2w:7(){l(6.p.2w){3j{$(6.3i()||6.T.F&&6.T[0].J||[]).1m(":4I").3g()}3f(e){}}},3i:7(){q a=6.3l;8 a&&$.3o(6.T,7(n){8 n.J.v==a.v}).F==1&&a},11:7(){q a=6,2V={};8 $([]).1f(6.V.11).1m(":1x").1I(":20, :1L, :4F, [4D]").1I(6.p.3q).1m(7(){!6.v&&a.p.2p&&30.1z&&1z.3t("%o 4C 3P v 4B",6);l(6.v 14 2V||!a.2g($(6).1h()))8 L;2V[6.v]=w;8 w})},2D:7(a){8 $(a)[0]},2x:7(){8 $(6.p.2E+"."+6.p.1c,6.4v)},1L:7(){6.1l=[];6.T=[];6.1s={};6.1n=$([]);6.12=$([]);6.1v=L;6.23=$([])},2F:7(){6.1L();6.12=6.2x().1f(6.2o)},2C:7(a){6.1L();6.12=6.1P(a)},2a:7(d){d=6.2D(d);l(6.1u(d)){d=6.21(d.v)[0]}q a=$(d).1h();q c