infowindow.js 6.73 KB
google.maps.__gjsload__('infowindow', 'function SD(a,b){this.A=a;this.j=b;this.b=[]}L(SD,W);SD[D].anchorPoint_changed=function(){TD(this)};SD[D].modelPixelOffset_changed=function(){TD(this)};function TD(a){var b=a.get("modelPixelOffset")||pf,c=a.get("anchorPoint")||of;a.set("viewPixelOffset",new U(b[u]+qd(c.x),b[H]+qd(c.y)))}SD[D].content_changed=function(){O(this.b,R[jb]);this.b=[];var a=this.get("content");if(a){var b;"string"==typeof a?(b=$("div"),Ia(b[F],"auto"),Vq(b,a)):3==a[db]?(b=$("div"),b[Va](a)):b=a;this.n=b;UD(this)}};\nfunction UD(a){ph(a.n,function(b){"IMG"==b[xc]&&!b[gq]("height")&&(!b[F]||!b[F][H])&&a.b[q](R.addDomListenerOnce(b,vl,P(a,a.e)))});a.e()}function VD(a){return(a=a.get("panes"))&&a[mj]}\nSD[D].e=function(){var a=this,b=a.n,c=a.get("maxWidth")||a.A,c=pd(c,a.A),d=0,e=a.get("containerBounds");if(e)var f=a.get("viewPixelOffset")||pf,c=od(0,pd(c,e.I-e.H-a.j[u]-f[u])),d=e.K-e.G-a.j[H]+f[H];a.set("contentNode",j);ws(b,function(c){if(c[u]||c[H]||!K(a.b))a.set("contentNode",b),d&&Ta(c,pd(c[H],d)),a.set("contentSize",c)},c,VD(a))};for(var WD=[],XD=0;10>XD;++XD){var YD=o[fb](54-5*(XD+1));WD[q](["iw3",o[eb](97-9.3*XD)-YD,o[eb](7)+1,YD,o[eb](715+7*XD),"iw_tap_"+XD])}WD[q](["iw3",97,25,0,691,"iw_tap"]);\nvar ZD=[["iws3",70,30,323,0,"iws_nw"],["iws3",70,30,1033,0,"iws_ne"],["iws3",70,60,14,310,"iws_sw"],["iws3",70,60,754,310,"iws_se"],["iws3",140,60,119,310,"iws_tap"],["iws3",654,30,393,0,"iws_n"],["iws3",360,280,50,30,"iws_w"],["iws3",360,280,734,30,"iws_e"],["iws3",320,60,345,310,"iws_s1"],["iws3",320,60,345,310,"iws_s2"],["iws3",654,612,360,30,"iws_c"]];function $D(){Ug[ic](this);this.F=new U(213,54);this.C={}}L($D,Ug);var aE=new U(0,94);I=$D[D];I.ee=Gf("content");I.zf=Gf("panes");\nip(I,function(){this.set("pixelBounds",j);var a=this.zf();if(a){if(this.e){var b=this.e[yc],c=this.b[yc];b&&b!=a[mj]&&(b[ec](this.e),a[mj][Va](this.e));c&&c!=a[zj]&&(c[ec](this.b),a[zj][Va](this.b))}else{var b=a[zj],c=a[mj],a=this.C,d=new U(690,786),e=[];Ed(e,WD);c=bE(a,c,e,d);d=213;e=54;pq()||(d-=2,e-=2);d=$("div",c,of,new U(d,e));Ia(d[F],"hidden");a.iw_mid=d;km(d);a=d[F];Mi(a,"white");ij(a,"1px solid #ababab");2==Z[y]&&(a=Tm(El("iw3"),d,new T(-70,-30),new U(654,612)),Mq(a));R[sc](c,tl,Wd);R[sc](c,\nrl,Wd);R[sc](c,sl,Wd);R[sc](c,ul,Wd);R[sc](c,Le,Wd);R[sc](c,"touchstart",Wd);R[sc](c,"touchend",Wd);R[sc](c,"touchmove",Wd);R.T(c,Me,this,this.vi);R.T(c,ql,this,Ud);R.T(c,pl,this,Ud);im(c,"default");this.e=c;b=bE(this.C,b,ZD,new U(1144,370));Nq(b);this.b=b;this.B=$("div",this.e);new xs(this.B,P(this,this.wi));cE(this)}this.P()}else dE(this),this.e&&Zk(this.e),this.b&&Zk(this.b),this.b=this.e=j});Fa(I,function(a){"pixelBounds"!=a&&this.P();"scale"==a&&eE(this)});\nI.content_changed=function(){dE(this);this.P()};\nI.Z=function(){if(this.zf()&&this.ee()){if(this.B){var a=this.n=this.ee(),b=this.A;b||(b=this.A=$("div",this.B),im(b,"default"),ro[jq](b,new T(18,18)),gm(b),jm(b,2));a[yc]!=b&&(a[F][Ij]&&Ia(b[F],a[F][Ij]),b[Va](a),this.J=i)}var a=this.get("size"),c=new U(Ad(a[u],213,654),Ad(a[H],54,612));2.3<c[H]/c[u]&&qa(c,qd(c[H]/2.3));Vg(this.A,c);qa(c,c[u]+36);Ta(c,c[H]+36);this.F=c;var a=this.C,d=c[u],b=c[H],e=qd((d-97)/2);this.Q=e;c=new U(c[u]-(pq()?0:2),c[H]);Ta(c,c[H]-(pq()?0:2));Vg(a.iw_mid,c);Ta(c,c[H]-\n(pq()?2:0));Vg(this.B,c);c=c[H]-23;cm(a.iw_mid,new T(0,0));cm(a.iw_tap,new T(e,c));for(var f=0;10>f;++f)cm(a["iw_tap_"+f],new T(e+o[fb](54-5*(f+1)),c+o[eb](24+7*f)));var e=d-10-50,d=qd(b/2)-20-25,b=d+70,g=e-b+70,c=qd((e-140)/2)-25,f=e-140-c;qa(a.iws_n[F],X(e-30));0<g&&0<d?(Vg(a.iws_c,new U(g,d)),hm(a.iws_c)):gm(a.iws_c);g=new U(b+pd(g,0),d);if(0<d){var h=new T(393-b,30);Kq(a.iws_e,g,new T(1133-b,30));Kq(a.iws_w,g,h);hm(a.iws_w);hm(a.iws_e)}else gm(a.iws_w),gm(a.iws_e);qa(a.iws_s1[F],X(c));qa(a.iws_s2[F],\nX(f));e=70+e;c=70+c;f=c+140;g=30+d;d=29+d;cm(a.iws_nw,new T(d,0));cm(a.iws_n,new T(70+d,0));cm(a.iws_ne,new T(e-30+d,0));cm(a.iws_w,new T(29,30));cm(a.iws_c,new T(b+29,30));cm(a.iws_e,new T(e+29,30));cm(a.iws_sw,new T(0,g));cm(a.iws_s1,new T(70,g));cm(a.iws_tap,new T(c,g));cm(a.iws_s2,new T(f,g));cm(a.iws_se,new T(e,g));if(e=this.get("position")){var a=g=this.F,b=new U(a[u],a[H]+94-25),a=this.get("pixelOffset"),c=(this.Q||0)+5-a[u],f=b[H]-a[H],d=c-9-a[u],g=qd((g[H]+94)/2)+23-a[H]-25,h=e.x,m=e.y,e=\nnew T(h-c,m-f);cm(this.e,e);cm(this.b,new T(h-d,m-g));d=this.get("zIndex");d=N(d)?d:m;jm(this.e,d);jm(this.b,d);d=e.x-5;c=e.y-5;f=e.x+b[u]+5;b=e.y+b[H]+5;0>a[H]&&(b-=a[H]);this.set("pixelBounds",new qf([new T(d,c),new T(f,b)]))}eE(this)}else cE(this)};function cE(a){a.e&&gm(a.e);a.b&&gm(a.b)}function eE(a){if(a.get("position")&&a.e&&a.b){a.A&&hm(a.A);hm(a.e);hm(a.b);var b=a.get("scale"),b=!(b&&0.3>b);Rq(a.e,b);Rq(a.b,b);b&&a.J&&(R[s](a,"domready"),a.J=k)}}I.wi=function(a){Wd(a);R[s](this,$q)};\nI.vi=function(a){for(var b=k,c=a[gc];!b&&c;)b=c==this.ee(),c=c[yc];b?Ud(a):Td(a)};function dE(a){a.n&&a.n[yc]&&a.n[yc][ec](a.n);a.n=j;a.A&&Zk(a.A);a.A=j}function bE(a,b,c,d){for(var b=$("div",b,new T(-1E4,0)),e=0,f=K(c);e<f;e++){var g=c[e],h=Lq(El(g[0]),b,new T(g[3],g[4]),new U(g[1],g[2]),j,d,{alpha:i});2==Z[y]&&Sm(h,Fl,i);jm(h,1);km(h);a[g[5]]=h}return b};function fE(a,b,c){b.n=[R[E](a,$q,b),R[G](a,$q,function(){b.set("map",j)}),R[E](a,"domready",b),R[E](c,Ne,a)]}function gE(a){a.b||(a.b=new SD(654,aE));return a.b}function hE(a){a.fb||(a.fb=new Cr);return a.fb}\nfunction iE(a,b){var c=a.nb=a.nb||new $D,d=gE(a);c[t]("content",d,"contentNode");c[t]("size",d,"contentSize");c[t]("zIndex",a);c[t]("pixelOffset",d,"viewPixelOffset");d[t]("modelPixelOffset",a,"pixelOffset");var e=hE(a),f=b.N();c[t]("panes",f);d[t]("panes",f);e[t]("center",f,"projectionCenterQ");e[t]("zoom",f);e[t]("offset",f);e[t]("projection",b);e[t]("focus",b,"position");d[t]("containerBounds",f,"layoutPixelBounds");d[t]("maxWidth",a);d[t]("content",a);a.get("disableAutoPan")||(a.e=R[G](c,"pixelbounds_changed",\nfunction(){var b=c.get("pixelBounds");b&&(R[jb](a.e),a.e=ba,R[s](f,kl,b))}));(d=a.get("anchor"))?e[t]("latLngPosition",d,"position"):e[t]("latLngPosition",a,"position");c[t]("scale",e);c[t]("position",e,"pixelPosition");fE(c,a,b)}\nfunction jE(a){a.j&&(R[jb](a.j),a.j=j);var b=a.get("anchor");if(b){a.set("map",b.get("map"));a.j=R[G](b,"map_changed",function(){a.set("map",b.get("map"))});var c=gE(a);c[t]("anchorPoint",b);c=hE(a);c[t]("latLngPosition",b,"position")}else{if(c=a.b)c[mb]("anchorPoint"),c.set("anchorPoint",j),kE(a);if(c=a.fb)a.set("position",c.get("latLngPosition")),c[t]("latLngPosition",a,"position")}}function kE(a){!a.get("anchor")&&!a.get("map")&&a.b&&(a.b[Aj](),a.b=j)};function lE(){}Fa(lE[D],function(a,b){"anchor"==b&&jE(a);if("map"==b){var c=a.get("map");a.n&&(O(a.n,R[jb]),La(a.n,0));a.e&&(R[jb](a.e),a.e=ba);if(c)iE(a,c);else if((c=a.get("anchor"))&&c.get("map")&&a.set("anchor",j),c=a.nb)c[Aj](),c.set("panes",j),a.nb=j,kE(a),a.fb[Aj](),a.fb=j}});var mE=new lE;ff[xe]=function(a){eval(a)};jf(xe,mE);\n')