PageSourceSearch

https://cp.sk/bundles/app-maps?v=QB2_nlamvD1VfZ_CZqvKGGP1-TTr03ZiGrVsZT0Frww1

js cp.sk collected 2026-09-24 18:07:24 UTC 3,992 bytes, 1 lines download raw bytes

1var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),Maps;(function(n){var w=function(){function n(n,t,i,r){this.combId=n;this.ajaxBaseUrl=t;this.mapSettings=i;this.msgService=r}return n.prototype.IsErrorJSON=function(n){return typeof n.ErrorMessage!="undefined"},n.prototype.getTrainDelayCss=function(n){return n===-2?"expdelay":n<=0?"nodelay":n<=5?"delayto5":n<=15?"delayto15":n<=30?"delayto30":"delayto"},n.prototype.getTrainDelayCssBackground=function(n){return n===-2?"expdelay-background":n<=0?"nodelay-background":n<=5?"delayto5-background":n<=15?"delayto15-background":n<=30?"delayto30-background":"delayto-background"},n.prototype.getDelayText=function(n){var t=this.msgService.getMessages().maps.noDelay,i=this.msgService.getMessages().maps.delay,r=this.msgService.getMessages().maps.minutes;return n<=0?t:"".concat(i," ").concat(n," ").concat(r)},n.prototype.getDepartureArrivalTime=function(n,t){var u="",f=!1,e=this.addMinutes(n,t),s=new Date,o=Math.ceil((e.getTime()-(new Date).getTime())/6e4),i,r;f=s>e;var h=this.msgService.getMessages().maps.now,c=this.msgService.getMessages().maps.inMin,l=this.msgService.getMessages().maps.minutes;return o>=0&&o<30&&!f?u=o<=0?"".concat(h):"".concat(c," ").concat(o," ").concat(l):f?u=n:(i=String(e.getHours()),i.length==1&&(i="0"+i),r=String(e.getMinutes()),r.length==1&&(r="0"+r),u="".concat(i,":").concat(r)),{timeText:u,isGone:f}},n.prototype.addMinutes=function(n,t){var r=n.split(":").map(Number),u=r[0],f=r[1],i=new Date;return i.setHours(u),i.setMinutes(f+t),i},n.prototype.hasStations=function(n){return typeof n.aoStations!="undefined"&&n.aoStations!==null&&n.aoStations.length!==0},n.prototype.getFirstStation=function(n){return this.hasStations(n)?n.aoStations[0]:null},n.prototype.getLastStation=function(n){return this.hasStations(n)?n.aoStations[n.aoStations.length-1]:null},n.prototype.getFirstStationOnRoute=function(n){if(!this.hasStations(n))return null;var t=n.aoStations.filter(function(n){return n.bIsOnSearchedRoute});return idosSupport.emptyArray(t)?null:t[0]},n.prototype.getLastStationOnRoute=function(n){if(!this.hasStations(n))return null;var t=n.aoStations.filter(function(n){return n.bIsLastOnSearchedRoute});return idosSupport.emptyArray(t)?null:t[t.length-1]},n.prototype.getStationIndexOnRoute=function(n,t){return!n||!this.hasStations(t)?-1:t.aoStations.indexOf(n)},n}(),i,r,u,f,t,e,o,s,h,c,l,a,v,y,p,b;n.MapsBase=w;i=function(){function n(){}return n}();n.MapSetting=i;r=function(){function n(){this.iDetailTrainIndex=-1}return n}();n.ConnMapData=r;u=function(){function n(){}return n}();n.ActualPositionData=u;f=function(){function n(){}return n}();n.TrainMapData=f;t=function(){function n(){}return n}();n.StationItem=t;e=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(t);n.RouteStationItem=e;o=function(){function n(){}return n}();n.MapPoint=o;s=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t}(t);n.MapStationItem=s;h=function(){function n(){}return n}();n.ArrDepResult=h;c=function(){function n(){}return n}();n.LineBoxHTML=c;l=function(){function n(){}return n}();n.DepartureTable=l;a=function(){function n(){}return n}();n.DepBox=a;v=function(){function n(){}return n}();n.ZJRBuildResults=v;y=function(){function n(){}return n}();n.ZJRChange=y;p=function(){function n(){}return n}();n.ZJRStat=p,function(n){n[n.Default=0]="Default";n[n.Address=1]="Address";n[n.MyLocation=2]="MyLocation"}(b=n.StationType||(n.StationType={}))})(Maps||(Maps={}))

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.