aboutsummaryrefslogtreecommitdiffstats
path: root/template-common/lib/ui/packed/ui.sortable.packed.js
blob: 9ccec8ab19d89d794429e77a6eb4f8511123c192 (plain)
1
2
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}('(b(B){b A(E,D){9 C=B.2Y.3Z&&B.2Y.3Y<3X;5(E.2X&&!C){d E.2X(D)}5(E.2W){d!!(E.2W(D)&16)}1T(D=D.1d){5(D==E){d V}}d w}B.3W("j.p",B.2j({},B.j.3V,{3U:b(){9 C=4.8;4.Q={};4.g.2a("j-p");4.2P();4.14=4.c.z?(/6|28/).1e(4.c[0].t.f("3T")):w;5(!(/(2V|1m|3S)/).1e(4.g.f("O"))){4.g.f("O","2V")}4.a=4.g.a();4.3R()},3Q:{},j:b(C){d{l:(C||4)["l"],r:(C||4)["r"]||B([]),O:(C||4)["O"],3P:(C||4)["18"],8:4.8,g:4.g,t:(C||4)["i"],3O:C?C.g:P}},v:b(F,E,C,D){B.j.1b.Y(4,F,[E,4.j(C)]);5(!D){4.g.2t(F=="1a"?F:"1a"+F,[E,4.j(C)],4.8[F])}},2i:b(E){9 C=(B.1N(4.8.c)?4.8.c.Y(4.g):B(4.8.c,4.g)).21(".j-p-l");9 D=[];E=E||{};C.1x(b(){9 F=(B(4).2S(E.3N||"2R")||"").3M(E.2T||(/(.+)[-=3L](.+)/));5(F){D.1y((E.2U||F[1])+"[]="+(E.2U&&E.2T?F[1]:F[2]))}});d D.3K("&")},2h:b(C){9 D=(B.1N(4.8.c)?4.8.c.Y(4.g):B(4.8.c,4.g)).21(".j-p-l");9 E=[];D.1x(b(){E.1y(B(4).2S(C||"2R"))});d E},2J:b(J){9 E=4.18.6,D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){F[G][0].1x(b(){B.19(4,"p-t",F[G][1]);D.1y({t:B(4),2O:F[G][1],n:0,o:0,6:0,7:0})})}},1G:b(D){5(4.u){9 C=4.u.a();4.a.m={7:C.7+4.1v.7,6:C.6+4.1v.6}}R(9 F=4.c.z-1;F>=0;F--){5(4.c[F].2O!=4.1w&&4.1w&&4.c[F].t[0]!=4.i[0]){1I}9 E=4.8.2N?B(4.8.2N,4.c[F].t):4.c[F].t;5(!D){4.c[F].n=E[0].1Q;4.c[F].o=E[0].1S}9 G=E.a();4.c[F].6=G.6;4.c[F].7=G.7}5(4.8.2d&&4.8.2d.2M){4.8.2d.2M.Y(4)}X{R(9 F=4.e.z-1;F>=0;F--){9 G=4.e[F].g.a();4.e[F].Q.6=G.6;4.e[F].Q.7=G.7;4.e[F].Q.n=4.e[F].g.1L();4.e[F].Q.o=4.e[F].g.1K()}}},3I:b(){4.g.3H("j-p j-p-2c").2L("p").3G(".p");4.3F();R(9 C=4.c.z-1;C>=0;C--){4.c[C].t.2L("p-t")}},29:b(E){9 C=E||4,F=C.8;5(F.r.3E==3D){9 D=F.r;F.r={g:b(){d B("<2K></2K>").2a(D)[0]},1s:b(G,H){H.f(G.a()).f({n:G.1L(),o:G.1K()})}}}C.r=B(F.r.g.Y(C.g,C.i)).1D("U").f({O:"1m"});F.r.1s.Y(C.g,C.i,C.r)},2u:b(F){R(9 D=4.e.z-1;D>=0;D--){5(4.2J(4.e[D].Q)){5(!4.e[D].Q.1h){5(4.1w!=4.e[D]){9 I=3C;9 H=P;9 E=4.18[4.e[D].14?"6":"7"];R(9 C=4.c.z-1;C>=0;C--){5(!A(4.e[D].g[0],4.c[C].t[0])){1I}9 G=4.c[C][4.e[D].14?"6":"7"];5(1n.2I(G-E)<I){I=1n.2I(G-E);H=4.c[C]}}5(!H&&!4.8.2g){1I}5(4.r){4.r.1E()}5(4.e[D].8.r){4.e[D].29(4)}X{4.r=P}4.1w=4.e[D];H?4.1H(F,H,P,V):4.1H(F,P,4.e[D].g,V);4.v("23",F);4.e[D].v("23",F,4)}4.e[D].v("1h",F,4);4.e[D].Q.1h=1}}X{5(4.e[D].Q.1h){4.e[D].v("2m",F,4);4.e[D].Q.1h=0}}}},3B:b(G,F){5(4.8.2c||4.8.2v=="3A"){d w}4.2b();9 E=P,D=4,C=B(G.1M).2G().1x(b(){5(B.19(4,"p-t")==D){E=B(4);d w}});5(B.19(G.1M,"p-t")==D){E=B(G.1M)}5(!E){d w}5(4.8.2H&&!F){9 H=w;B(4.8.2H,E).3z("*").3y().1x(b(){5(4==G.1M){H=V}});5(!H){d w}}4.i=E;d V},3x:b(H,F,C){9 J=4.8;4.1w=4;4.1G();4.l=3w J.l=="b"?B(J.l.3v(4.g[0],[H,4.i])):4.i.1Y();5(!4.l.2G("U").z){B(J.1D!="m"?J.1D:4.i[0].1d)[0].2s(4.l[0])}4.l.f({O:"1m",1F:"3u"}).2a("j-p-l");4.W={6:(L(4.i.f("3t"),10)||0),7:(L(4.i.f("3s"),10)||0)};4.a=4.i.a();4.a={7:4.a.7-4.W.7,6:4.a.6-4.W.6};4.a.q={6:H.1i-4.a.6,7:H.1j-4.a.7};4.u=4.l.u();9 D=4.u.a();4.1v={7:(L(4.u.f("26"),10)||0),6:(L(4.u.f("27"),10)||0)};4.a.m={7:D.7+4.1v.7,6:D.6+4.1v.6};4.15=4.25(H);4.1Z={1t:4.i.1t()[0],m:4.i.m()[0]};4.s={n:4.l.1L(),o:4.l.1K()};5(J.r){4.29()}4.v("1p",H);4.s={n:4.l.1L(),o:4.l.1K()};5(J.13){5(J.13.6!=1J){4.a.q.6=J.13.6}5(J.13.28!=1J){4.a.q.6=4.s.n-J.13.28}5(J.13.7!=1J){4.a.q.7=J.13.7}5(J.13.2F!=1J){4.a.q.7=4.s.o-J.13.2F}}5(J.k){5(J.k=="m"){J.k=4.l[0].1d}5(J.k=="h"||J.k=="1c"){4.k=[0-4.a.m.6,0-4.a.m.7,B(J.k=="h"?h:1c).n()-4.a.m.6-4.s.n-4.W.6-(L(4.g.f("2E"),10)||0),(B(J.k=="h"?h:1c).o()||h.U.1d.2C)-4.a.m.7-4.s.o-4.W.7-(L(4.g.f("2B"),10)||0)]}5(!(/^(h|1c|m)$/).1e(J.k)){9 G=B(J.k)[0];9 I=B(J.k).a();4.k=[I.6+(L(B(G).f("27"),10)||0)-4.a.m.6,I.7+(L(B(G).f("26"),10)||0)-4.a.m.7,I.6+1n.2D(G.3r,G.1Q)-(L(B(G).f("27"),10)||0)-4.a.m.6-4.s.n-4.W.6-(L(4.i.f("2E"),10)||0),I.7+1n.2D(G.2C,G.1S)-(L(B(G).f("26"),10)||0)-4.a.m.7-4.s.o-4.W.7-(L(4.i.f("2B"),10)||0)]}}5(4.8.r!="1Y"){4.i.f("2k","3q")}5(!C){R(9 E=4.e.z-1;E>=0;E--){4.e[E].v("3p",H,4)}}5(B.j.17){B.j.17.3o=4}5(B.j.17&&!J.2p){B.j.17.3n(4,H)}4.2l=V;4.2z(H);d V},24:b(D,E){5(!E){E=4.O}9 C=D=="1m"?1:-1;d{7:(E.7+4.a.m.7*C-(4.u[0]==h.U?0:4.u[0].N)*C+4.W.7*C),6:(E.6+4.a.m.6*C-(4.u[0]==h.U?0:4.u[0].M)*C+4.W.6*C)}},25:b(F){9 G=4.8;9 C={7:(F.1j-4.a.q.7-4.a.m.7+(4.u[0]==h.U?0:4.u[0].N)),6:(F.1i-4.a.q.6-4.a.m.6+(4.u[0]==h.U?0:4.u[0].M))};5(!4.15){d C}5(4.k){5(C.6<4.k[0]){C.6=4.k[0]}5(C.7<4.k[1]){C.7=4.k[1]}5(C.6>4.k[2]){C.6=4.k[2]}5(C.7>4.k[3]){C.7=4.k[3]}}5(G.12){9 E=4.15.7+1n.2A((C.7-4.15.7)/G.12[1])*G.12[1];C.7=4.k?(!(E<4.k[1]||E>4.k[3])?E:(!(E<4.k[1])?E-G.12[1]:E+G.12[1])):E;9 D=4.15.6+1n.2A((C.6-4.15.6)/G.12[0])*G.12[0];C.6=4.k?(!(D<4.k[0]||D>4.k[2])?D:(!(D<4.k[0])?D-G.12[0]:D+G.12[0])):D}d C},2z:b(D){4.O=4.25(D);4.18=4.24("1m");B.j.1b.Y(4,"1a",[D,4.j()]);4.18=4.24("1m");4.l[0].2y.6=4.O.6+"2x";4.l[0].2y.7=4.O.7+"2x";R(9 C=4.c.z-1;C>=0;C--){9 E=4.2w(4.c[C]);5(!E){1I}5(4.c[C].t[0]!=4.i[0]&&4.i[E==1?"3m":"1t"]()[0]!=4.c[C].t[0]&&!A(4.i[0],4.c[C].t[0])&&(4.8.2v=="3l-3k"?!A(4.g[0],4.c[C].t[0]):V)){4.2r=E==1?"2q":"3j";4.1H(D,4.c[C]);4.v("23",D);3i}}4.2u(D);5(B.j.17){B.j.17.3h(4,D)}4.g.2t("1a",[D,4.j()],4.8["1a"]);d w},1H:b(H,G,D,F){D?D[0].2s(4.i[0]):G.t[0].1d.3g(4.i[0],(4.2r=="2q"?G.t[0]:G.t[0].3f));4.1u=4.1u?++4.1u:1;9 E=4,C=4.1u;1c.3e(b(){5(C==E.1u){E.1G(!F)}},0);5(4.8.r){4.8.r.1s.Y(4.g,4.i,4.r)}},3d:b(E,D){5(B.j.17&&!4.8.2p){B.j.17.3c(4,E)}5(4.8.22){9 C=4;9 F=C.i.a();5(C.r){C.r.2o({1f:"3b"},(L(4.8.22,10)||2n)-3a)}B(4.l).2o({6:F.6-4.a.m.6-C.W.6+(4.u[0]==h.U?0:4.u[0].M),7:F.7-4.a.m.7-C.W.7+(4.u[0]==h.U?0:4.u[0].N)},L(4.8.22,10)||2n,b(){C.1F(E)})}X{4.1F(E,D)}d w},1F:b(E,D){5(4.1Z.1t!=4.i.1t().21(".j-p-l")[0]||4.1Z.m!=4.i.m()[0]){4.v("1s",E,P,D)}5(!A(4.g[0],4.i[0])){4.v("1E",E,P,D);R(9 C=4.e.z-1;C>=0;C--){5(A(4.e[C].g[0],4.i[0])){4.e[C].v("1s",E,4,D);4.e[C].v("39",E,4,D)}}}R(9 C=4.e.z-1;C>=0;C--){4.e[C].v("38",E,4,D);5(4.e[C].Q.1h){4.e[C].v("2m",E,4);4.e[C].Q.1h=0}}4.2l=w;5(4.37){4.v("1q",E,P,D);d w}B(4.i).f("2k","");5(4.r){4.r.1E()}4.l.1E();4.l=P;4.v("1q",E,P,D);d V}}));B.2j(B.j.p,{36:"2i 2h",35:{l:"1Y",1r:"1X",34:1,33:0,1k:V,11:20,Z:20,32:":31",c:"> *",1g:30,2g:V,1D:"m"}});B.j.1b.1o("p","1l",{1p:b(E,D){9 C=B("U");5(C.f("1l")){D.8.1W=C.f("1l")}C.f("1l",D.8.1l)},1q:b(D,C){5(C.8.1W){B("U").f("1l",C.8.1W)}}});B.j.1b.1o("p","1g",{1p:b(E,D){9 C=D.l;5(C.f("1g")){D.8.1V=C.f("1g")}C.f("1g",D.8.1g)},1q:b(D,C){5(C.8.1V){B(C.l).f("1g",C.8.1V)}}});B.j.1b.1o("p","1f",{1p:b(E,D){9 C=D.l;5(C.f("1f")){D.8.1U=C.f("1f")}C.f("1f",D.8.1f)},1q:b(D,C){5(C.8.1U){B(C.l).f("1f",C.8.1U)}}});B.j.1b.1o("p","1k",{1p:b(E,D){9 F=D.8;9 C=B(4).19("p");C.T=b(G){2f{5(/1C|1k/.1e(G.f("1B"))||(/1C|1k/).1e(G.f("1B-y"))){d G}G=G.m()}1T(G[0].1d);d B(h)}(C.i);C.S=b(G){2f{5(/1C|1k/.1e(G.f("1B"))||(/1C|1k/).1e(G.f("1B-x"))){d G}G=G.m()}1T(G[0].1d);d B(h)}(C.i);5(C.T[0]!=h&&C.T[0].1A!="1z"){C.1R=C.T.a()}5(C.S[0]!=h&&C.S[0].1A!="1z"){C.1P=C.S.a()}},1a:b(E,D){9 F=D.8;9 C=B(4).19("p");5(C.T[0]!=h&&C.T[0].1A!="1z"){5((C.1R.7+C.T[0].1S)-E.1j<F.11){C.T[0].N=C.T[0].N+F.Z}5(E.1j-C.1R.7<F.11){C.T[0].N=C.T[0].N-F.Z}}X{5(E.1j-B(h).N()<F.11){B(h).N(B(h).N()-F.Z)}5(B(1c).o()-(E.1j-B(h).N())<F.11){B(h).N(B(h).N()+F.Z)}}5(C.S[0]!=h&&C.S[0].1A!="1z"){5((C.1P.6+C.S[0].1Q)-E.1i<F.11){C.S[0].M=C.S[0].M+F.Z}5(E.1i-C.1P.6<F.11){C.S[0].M=C.S[0].M-F.Z}}X{5(E.1i-B(h).M()<F.11){B(h).M(B(h).M()-F.Z)}5(B(1c).n()-(E.1i-B(h).M())<F.11){B(h).M(B(h).M()+F.Z)}}}});B.j.1b.1o("p","1O",{1a:b(E,D){9 C=B(4).19("p");5(D.8.1O=="y"){C.O.6=C.15.6}5(D.8.1O=="x"){C.O.7=C.15.7}}})})(2Z)',62,248,'||||this|if|left|top|options|var|offset|function|items|return|containers|css|element|document|currentItem|ui|containment|helper|parent|width|height|sortable|click|placeholder|helperProportions|item|offsetParent|propagate|false|||length||||||||||||parseInt|scrollLeft|scrollTop|position|null|containerCache|for|overflowX|overflowY|body|true|margins|else|call|scrollSpeed||scrollSensitivity|grid|cursorAt|floating|originalPosition||ddmanager|positionAbs|data|sort|plugin|window|parentNode|test|opacity|zIndex|over|pageX|pageY|scroll|cursor|absolute|Math|add|start|stop|tolerance|update|prev|counter|offsetParentBorders|currentContainer|each|push|HTML|tagName|overflow|auto|appendTo|remove|clear|refreshPositions|rearrange|continue|undefined|outerHeight|outerWidth|target|isFunction|axis|overflowXOffset|offsetWidth|overflowYOffset|offsetHeight|while|_opacity|_zIndex|_cursor|guess|clone|domPosition||not|revert|change|convertPositionTo|generatePosition|borderTopWidth|borderLeftWidth|right|createPlaceholder|addClass|refreshItems|disabled|custom|connectWith|do|dropOnEmpty|toArray|serialize|extend|visibility|dragging|out|500|animate|dropBehaviour|down|direction|appendChild|triggerHandler|contactContainers|type|intersectsWithEdge|px|style|mouseDrag|round|marginBottom|scrollHeight|max|marginRight|bottom|parents|handle|abs|intersectsWith|div|removeData|refreshContainers|toleranceElement|instance|refresh|pointer|id|attr|expression|key|relative|compareDocumentPosition|contains|browser|jQuery|1000|input|cancel|delay|distance|defaults|getter|cancelHelperRemoval|deactivate|receive|50|hide|drop|mouseStop|setTimeout|nextSibling|insertBefore|drag|break|up|dynamic|semi|next|prepareOffsets|current|activate|hidden|scrollWidth|marginTop|marginLeft|both|apply|typeof|mouseStart|andSelf|find|static|mouseCapture|10000|String|constructor|mouseDestroy|unbind|removeClass|destroy|forcePointerForContainers|join|_|match|attribute|sender|absolutePosition|plugins|mouseInit|fixed|float|init|mouse|widget|522|version|safari'.split('|'),0,{}))