WordPress/wp-includes/interface.js

9 lines
76 KiB
JavaScript
Raw Normal View History

/*
* Interface elements for jQuery - http://interface.eyecon.ro
*
* Copyright (c) 2006 Stefan Petre
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*/
eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[(function(e){return d[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}('j.19={6d:q(e,s){I l=0;I t=0;I 5u=0;I 5t=0;I w=j.A(e,\'Y\');I h=j.A(e,\'V\');I 1y=e.4g;I hb=e.66;76(e.am){l+=e.70+(e.1K?N(e.1K.4C)||0:0);t+=e.6Z+(e.1K?N(e.1K.4F)||0:0);if(s){5u+=e.3c.2x||0;5t+=e.3c.2u||0}e=e.am}l+=e.70+(e.1K?N(e.1K.4C)||0:0);t+=e.6Z+(e.1K?N(e.1K.4F)||0:0);5t=t-5t;5u=l-5u;C{x:l,y:t,2X:5u,2U:5t,w:w,h:h,1y:1y,hb:hb}},3J:q(e){I x=0;I y=0;I 5k=H;I es=e.Z;if(j(e).A(\'14\')==\'1k\'){5S=es.3f;an=es.X;es.3f=\'2T\';es.14=\'2D\';es.X=\'1N\';5k=1b}I el=e;76(el){x+=el.70+(el.1K&&!j.3z.9Z?N(el.1K.4C)||0:0);y+=el.6Z+(el.1K&&!j.3z.9Z?N(el.1K.4F)||0:0);el=el.am}el=e;76(el&&el.5w.68()!=\'21\'){x-=el.2x||0;y-=el.2u||0;el=el.3c}if(5k){es.14=\'1k\';es.X=an;es.3f=5S}C{x:x,y:y}},8n:q(el){I x=0,y=0;76(el){x+=el.70||0;y+=el.6Z||0;el=el.am}C{x:x,y:y}},2z:q(e){I w=j.A(e,\'Y\');I h=j.A(e,\'V\');I 1y=0;I hb=0;I es=e.Z;if(j(e).A(\'14\')!=\'1k\'){1y=e.4g;hb=e.66}Q{5S=es.3f;an=es.X;es.3f=\'2T\';es.14=\'2D\';es.X=\'1N\';1y=e.4g;hb=e.66;es.14=\'1k\';es.X=an;es.3f=5S}C{w:w,h:h,1y:1y,hb:hb}},8o:q(el){C{1y:el.4g||0,hb:el.66||0}},aO:q(e){I h,w,de;if(e){w=e.4N;h=e.5a}Q{de=18.3E;w=1x.ck||ay.ck||(de&&de.4N)||18.21.4N;h=1x.cd||ay.cd||(de&&de.5a)||18.21.5a}C{w:w,h:h}},69:q(e){I t,l,w,h,iw,ih;if(e&&e.9h.68()!=\'21\'){t=e.2u;l=e.2x;w=e.6F;h=e.6y;iw=0;ih=0}Q{if(18.3E&&18.3E.2u){t=18.3E.2u;l=18.3E.2x;w=18.3E.6F;h=18.3E.6y}Q if(18.21){t=18.21.2u;l=18.21.2x;w=18.21.6F;h=18.21.6y}iw=ay.ck||18.3E.4N||18.21.4N||0;ih=ay.cd||18.3E.5a||18.21.5a||0}C{t:t,l:l,w:w,h:h,iw:iw,ih:ih}},aT:q(e,7G){I el=j(e);I t=el.A(\'5j\')||\'\';I r=el.A(\'5f\')||\'\';I b=el.A(\'5g\')||\'\';I l=el.A(\'5i\')||\'\';if(7G)C{t:N(t)||0,r:N(r)||0,b:N(b)||0,l:N(l)};Q C{t:t,r:r,b:b,l:l}},bZ:q(e,7G){I el=j(e);I t=el.A(\'5E\')||\'\';I r=el.A(\'62\')||\'\';I b=el.A(\'5v\')||\'\';I l=el.A(\'4Y\')||\'\';if(7G)C{t:N(t)||0,r:N(r)||0,b:N(b)||0,l:N(l)};Q C{t:t,r:r,b:b,l:l}},6O:q(e,7G){I el=j(e);I t=el.A(\'4F\')||\'\';I r=el.A(\'5F\')||\'\';I b=el.A(\'5D\')||\'\';I l=el.A(\'4C\')||\'\';if(7G)C{t:N(t)||0,r:N(r)||0,b:N(b)||0,l:N(l)||0};Q C{t:t,r:r,b:b,l:l}},4H:q(1J){I x=1J.iW||(1J.8S+(18.3E.2x||18.21.2x))||0;I y=1J.jO||(1J.8T+(18.3E.2u||18.21.2u))||0;C{x:x,y:y}},c5:q(4R,cv){cv(4R);4R=4R.aV;76(4R){j.19.c5(4R,cv);4R=4R.jn}},eB:q(4R){j.19.c5(4R,q(el){2e(I 1j in el){if(1Z el[1j]===\'q\'){el[1j]=S}}})},j9:q(el,1P){I 5A=$.19.69();I bS=$.19.2z(el);if(!1P||1P==\'41\')$(el).A({O:5A.t+((16.3k(5A.h,5A.ih)-5A.t-bS.hb)/2)+\'T\'});if(!1P||1P==\'43\')$(el).A({M:5A.l+((16.3k(5A.w,5A.iw)-5A.l-bS.1y)/2)+\'T\'})},j3:q(el,ez){I 1S=$(\'1W[@2F*="84"]\',el||18),84;1S.1E(q(){84=k.2F;k.2F=ez;k.Z.4Z="ad:ae.af.j5(2F=\'"+84+"\')"})}};[].3D||(6N.j6.3D=q(v,n){n=(n==S)?0:n;I m=k.1t;2e(I i=n;i<m;i++)if(k[i]==v)C i;C-1});j.12={1c:S,F:S,5T:q(){C k.1E(q(){if(k.9l){k.u.51.3I(\'5p\',j.12.c1);k.u=S;k.9l=H}})},c1:q(e){if(j.12.F!=S){j.12.9S(e);C H}I B=k.3U;j(18).1Q(\'3O\',j.12.bX).1Q(\'6u\',j.12.9S);B.u.1H=j.19.4H(e);B.u.4k=B.u.1H;B.u.7u=H;B.u.j7=k!=k.3U;j.12.F=B;if(B.u.5d&&k!=k.3U){bR=j.19.3J(B.3c);bU=j.19.2z(B);bT={x:N(j.A(B,\'M\'))||0,y:N(j.A(B,\'O\'))||0};dx=B.u.4k.x-bR.x-bU.1y/2-bT.x;dy=B.u.4k.y-bR.y-bU.hb/2-bT.y;j.30.53(B,[dx,dy])}C H},eD:q(e){B=j.12.F;B.u.7u=1b;a0=B.Z;B.u.6T=j.A(B,\'14\');B.u.4d=j.A(B,\'X\');if(!B.u.bJ)B.u.bJ=B.u.4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