PageSourceSearch

https://www.sindbad.pl/chunk-5WAVZ42R.js

js sindbad.pl collected 2026-09-24 17:43:58 UTC 14,521 bytes, 1 lines download raw bytes

1import{a as xt}from"./chunk-JCYPUXSM.js";import{a as ut,b as yt,c as ht}from"./chunk-K7SGHAES.js";import{a as Ct}from"./chunk-V2QD5X5A.js";import{b as _t}from"./chunk-2RAE67EC.js";import{a as ft}from"./chunk-7JHKWGY6.js";import{a as gt}from"./chunk-3LECDLHD.js";import{b as dt}from"./chunk-7UFMLEWM.js";import"./chunk-I32USF4V.js";import"./chunk-MEEXHVO6.js";import"./chunk-J5UBJCUY.js";import"./chunk-3T5TBKRK.js";import"./chunk-6MMC2X66.js";import"./chunk-GNE4DY6I.js";import{a as mt}from"./chunk-3CKZCKDM.js";import"./chunk-BHKEU3RB.js";import{j as rt,k as st,m as b,t as ct,u as pt}from"./chunk-EGIU7VS7.js";import{h as nt,i as ot,m as at,o as lt}from"./chunk-NPWQZTEF.js";import{c as et,d as it}from"./chunk-2KTGVLUA.js";import"./chunk-MQJJQO5W.js";import{h as Q,j as X,n as Y,q as Z,w as k,y as tt}from"./chunk-EWIZ4PBL.js";import{$b as v,Aa as $,Db as q,Gc as c,Hc as x,I as R,Ic as S,Jc as G,La as z,Mb as H,Ob as j,Qa as U,Qc as K,Sc as V,Tc as D,Ub as g,Wb as C,Xb as P,Xc as W,Zb as T,_b as w,ac as l,ad as y,bb as M,bc as r,bd as h,ca as N,cb as F,cc as _,gb as o,ha as p,nd as E,rc as d,sd as J,xb as A}from"./chunk-AP6LFJSD.js";import"./chunk-C6Q5SG76.js";var I=class i{translitMap={\u0105:"a",\u0107:"c",\u0119:"e",\u0142:"l",\u0144:"n",\u00F3:"o",\u015B:"s",\u017A:"z",\u017C:"z",\u0430:"a",\u0431:"b",\u0432:"w",\u0433:"g",\u0434:"d",\u0435:"e",\u0451:"e",\u0436:"z",\u0437:"z",\u0438:"i",\u0439:"j",\u043A:"k",\u043B:"l",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"p",\u0440:"r",\u0441:"s",\u0442:"t",\u0443:"u",\u0444:"f",\u0445:"h",\u0446:"c",\u0447:"c",\u0448:"s",\u0449:"s",\u044B:"y",\u044D:"e",\u044E:"u",\u044F:"j",\u0491:"g",\u0454:"e",\u0456:"i",\u0457:"i"};normalizeLetter(e){if(!e)return"";let t=e.trim().toLowerCase();return this.translitMap[t]??t}normalizeCityName(e){if(!e)return"";let t=e.trim().toLowerCase();return t=this.removeDiacritics(t),t=t.replace(/[\s_]+/g,"-"),t=t.replace(/[^a-z0-9-]/g,""),t=t.replace(/-{2,}/g,"-"),t}removeDiacritics(e){return e.split("").map(t=>this.translitMap[t]??t).join("")}isValidCityUrl(e,t,n,a){if(!this.isLang(e)||t!=="cities")return!1;let s=this.normalizeLetter(n);return!(!/^[a-z]$/.test(s)||!/^[a-z0-9-]+$/.test(a))}isLang(e){return/^(pl|en|de|it|fr|ru|uk)$/.test((e??"").toLowerCase())}buildCityUrlPath(e,t){let n=(e.city?.[0]??"").toLowerCase(),a=t==="pl"?e.pl:e.url;return`${t}/cities/${n}/${a}`}static \u0275fac=function(t){return new(t||i)};static \u0275prov=N({token:i,factory:i.\u0275fac,providedIn:"root"})};var bt=()=>[import("./chunk-GZDJTTMZ.js").then(i=>i.SearchRoutesComponent)],It=(i,e)=>({"float-start me-3":i,"float-end ms-3":e});function Lt(i,e){if(i&1&&(l(0,"h1",4),c(1),r()),i&2){let t=d(2);o(),x(t.mainArticleTitle)}}function Mt(i,e){if(i&1&&(c(0),y(1,"transloco"),l(2,"b"),c(3),y(4,"uppercase"),r(),c(5),y(6,"transloco"),l(7,"span"),c(8),y(9,"transloco"),l(10,"span"),c(11),r(),c(12),y(13,"transloco"),r()),i&2){let t=d(2);S(" ",h(1,6,"lbl_cities_from_the_city")," "),o(3),x(h(4,8,t.city.city)),o(2),S(" ",h(6,10,"lbl_cities_get_there")," "),o(3),S(" ",h(9,12,"lbl_cities_to")," "),o(3),x(t.cityConnections.length),o(),S(" ",h(13,14,"lbl_cities_cities")," ")}}function Pt(i,e){i&1&&(l(0,"span"),c(1),y(2,"transloco"),r()),i&2&&(o(),x(h(2,1,"lbl_cities_no_connections")))}function Tt(i,e){if(i&1&&_(0,"app-search-routes",14),i&2){let t=d(2);v("context",t.ESearchRoutesContext.normal)}}function wt(i,e){i&1&&(l(0,"div",15),_(1,"div",16),r())}function Dt(i,e){if(i&1&&_(0,"img",20),i&2){let t=d().$implicit;v("ngSrc",t.imgSrc)("title",t.imgTitle?t.imgTitle:t.title)("alt",t.imgAlt?t.imgAlt:t.title)}}function Et(i,e){if(i&1&&(l(0,"mat-tab",18)(1,"div",19),g(2,Dt,1,3,"img",20),l(3,"div",21),c(4),r()()()),i&2){let t=e.$implicit,n=d(3);v("label",K(t.title)),o(2),C(!t.notShowImageInContent&&t.imgSrc?2:-1),o(),v("innerHtml",t.fullContent,M),o(),S(" ",n.articleList.length," ")}}function kt(i,e){if(i&1&&(l(0,"div",2)(1,"mat-tab-group",17),T(2,Et,5,5,"mat-tab",18,P),r()()),i&2){let t=d(2);o(2),w(t.articleList)}}function Bt(i,e){if(i&1&&_(0,"img",22),i&2){let t=d(3);v("ngSrc",t.articleList[0].imgSrc)("alt",t.articleList[0].imgAlt?t.articleList[0].imgAlt:t.articleList[0].imgTitle)("title",t.articleList[0].imgTitle?t.articleList[0].imgTitle:t.city.city)("ngClass",W(4,It,!t.articleList[0].isImageRight,t.articleList[0].isImageRight))}}function Ot(i,e){if(i&1&&(l(0,"div",10),g(1,Bt,1,7,"img",22),_(2,"div",21),r()),i&2){let t=d(2);o(),C(!t.articleList[0].notShowImageInContent&&t.articleList[0].imgSrc?1:-1),o(),v("innerHtml",t.articleList[0].fullContent,M)}}function Rt(i,e){i&1&&(l(0,"div",2),_(1,"hr"),r())}function Nt(i,e){if(i&1&&(_(0,"hr"),l(1,"h3",23)(2,"b"),c(3),y(4,"uppercase"),r(),c(5
1),y(6,"transloco"),r()),i&2){let t=d(2);o(3),x(h(4,2,t.city.city)),o(2),S(" - ",h(6,4,"lbl_cities_list_inter_conn")," ")}}function $t(i,e){i&1&&c(0," PLN, ")}function zt(i,e){i&1&&c(0," PLN ")}function Ut(i,e){if(i&1&&(l(0,"span")(1,"b"),c(2),r(),g(3,$t,1,0)(4,zt,1,0),r()),i&2){let t=d().$implicit;o(2),x(t.pln),o(),C(t.eur?3:4)}}function Ft(i,e){if(i&1&&(l(0,"span")(1,"b"),c(2),r(),c(3," EUR "),r()),i&2){let t=d().$implicit;o(2),x(t.eur)}}function At(i,e){if(i&1&&(l(0,"div",13)(1,"a",24),y(2,"uppercase"),c(3),y(4,"uppercase"),l(5,"small"),c(6),r()(),l(7,"div"),c(8),y(9,"transloco"),g(10,Ut,5,2,"span"),g(11,Ft,4,1,"span"),r(),_(12,"br"),r()),i&2){let t=e.$implicit,n=d(2);o(),v("title",V("Sindbad: ",h(2,17,n.city.city)," - ",t.cityLang))("href",D("/",n.lang,"/courses/",n.city.url,"/",t.url),F)("routerLink",D("/",n.lang,"/courses/",n.city.url,"/",t.url)),o(2),G(" ",h(4,19,n.city.city)," - ",t.cityLang," "),o(3),x(t.co),o(2),S(" ",h(9,21,"lbl_cities_tickets_price")," "),o(2),C(t.pln?10:-1),o(),C(t.eur?11:-1)}}function qt(i,e){if(i&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),g(4,Lt,2,1,"h1",4),l(5,"div",5),g(6,Mt,14,16)(7,Pt,3,3,"span"),r()()()(),l(8,"div",6)(9,"div",7),q(10,Tt,1,1)(11,wt,2,0),H(12,10,bt,null,11),j(),r()(),l(14,"div",8)(15,"div",2)(16,"h2",9),c(17),r(),_(18,"hr"),r(),g(19,kt,4,0,"div",2),g(20,Ot,3,2,"div",10),g(21,Rt,2,0,"div",2),l(22,"div",2),_(23,"app-city-stops-map",11),r(),l(24,"div",2),g(25,Nt,7,6),l(26,"div",12),T(27,At,13,23,"div",13,P),r()()()()),i&2){let t=d();o(4),C(t.mainArticleTitle?4:-1),o(2),C(t.cityConnections&&t.cityConnections.length>0?6:7),o(11),x(t.city.city),o(2),C(t.articleList&&t.articleList.length>1?19:-1),o(),C(t.articleList&&t.articleList.length===1?20:-1),o(),C(t.articleList&&t.articleList.length>0&&t.cityConnections&&t.cityConnections.length>0?21:-1),o(2),v("cityName",t.city.city)("busStopsCoordinates",t.busStopsCoordinates)("sindbadBusStops",t.sindbadBusStops)("nonSindbadBusStops",t.nonSindbadBusStops)("markerPositions",t.markerPositions)("center",t.center)("zoom",t.zoom)("googleMapOptions",t.googleMapOptions),o(2),C(t.cityConnections&&t.cityConnections.length>0?25:-1),o(2),w(t.cityConnections)}}var vt=class i{cityCodeName=E.required();letter=E.required();platformId=p(z);languageService=p(pt);router=p(nt);location=p(Q);meta=p(et);title=p(it);seoLinksService=p(ft);cityService=p(ct);googleMapsLoader=p(Ct);metaTagsService=p(mt);cityUrlService=p(I);cdr=p(J);breadcrumbService=p(_t);response=p(lt,{optional:!0});ESearchRoutesContext=gt;get lang(){return this.languageService.getLanguage()}isPageLoaded=!1;mainArticleTitle;articleList=[];busStopsCoordinates=new Array;cityConnections;city;cityNo=0;sindbadBusStops=[];nonSindbadBusStops=[];googleMapOptions={streetViewControl:!1,disableDefaultUI:!0};markerPositions;center;zoom=12;enterUrlLetter="";cityFirstLetter="";requestSeq=0;citiesInputChangeService=p(dt);transferState=p(U);constructor(){let t=this.location.path().split("/"),n=t[0]===""?1:0,a=t[n]??"",s=t[n+1]??"",u=decodeURIComponent(t[n+2]??""),f=t[n+3]??"";if(!k(this.platformId)&&s==="cities"&&f){let m=`city-details-${f}-${a}`;this.transferState.hasKey(m)&&(this.isPageLoaded=!0)}if(this.googleMapsLoader.loadGoogleMaps(),$(()=>{let m=this.cityCodeName(),L=this.languageService.currentLanguage();m&&m!="installHook.js.map"&&this.getDataFromService(m,L)}),s==="cities"&&u!==u.toLowerCase()&&u.toLowerCase().length===1){let m=`/${a}/cities/${u.toLowerCase()}/${f}`;this.router.navigateByUrl(m,{replaceUrl:!0});return}}ngOnInit(){}getDataFromService(e,t){let n=++this.requestSeq;this.cityService.getCompleteCityDetails(e,t).pipe(R(1)).subscribe({next:a=>{if(n!==this.requestSeq)return;this.replaceImageSrc(a),this.initializeCityDetails(a);let s=`/${this.cityUrlService.buildCityUrlPath(a.city,t)}`;if(decodeURIComponent(this.location.path().split("?")[0])!==s){let f=this.location.path(),m=f.indexOf("?"),L=m>=0?f.substring(m):"",B=new URLSearchParams(L);B.delete("gclid");let O=B.toString();this.router.navigateByUrl(`${s}${O?"?"+O:""}`,{replaceUrl:!0});return}this.setMetaTags(a.metatags),this.setRoutingAndHreflang(a.city,a.hreflangs,t),this.breadcrumbService.set("@cityCodeName",a.city.city),this.isPageLoaded=!0,this.cityService.setCurrentCityDetails(a),this.setCityNo(a.city.nr),this.cdr.detectChanges()},error:a=>{console.error("City details error:",a);let s=`/${t}/home`;k(this.platformId)?(this.response?.status(301),this.response?.setHeader("Location",s)):window.location.href=s}})}setCityNo(e){this.citiesInputChangeService.setCityFromWithNr(e),this.citiesInputChangeService.resetCityTo()}
1replaceImageSrc(e){e.articles.articleInfoItems.forEach(t=>{if(t.imgSrc){let n=t.imgSrc.replace("/images/media/",b.imagesMediaEndPoint+"/");t.imgSrc=n}})}initializeCityDetails(e){let t=e.articles.articleInfoItems?.length===1?e.articles.articleInfoItems[0].imgSrc:void 0;if(t||(t=b.siteEndPoint+"/assets/images/sindbad-default-image.webp"),this.metaTagsService.setMetaTags(t),this.city=e.city,this.mainArticleTitle=e.articles.articleInfoItems?.length===1?e.articles.articleInfoItems[0]?.title:"",this.articleList=e.articles.articleInfoItems,this.cityConnections=e.connections,this.busStopsCoordinates=e.coordinates,this.sindbadBusStops=e.coordinates.filter(n=>n.idCarrier?.toUpperCase()==="SINDBADOPO"),this.nonSindbadBusStops=e.coordinates.filter(n=>n.idCarrier?.toUpperCase()!=="SINDBADOPO"),this.markerPositions=e.coordinates.map(n=>({lat:n.lat,lng:n.lng})),this.sindbadBusStops.length>0?this.center={lat:this.sindbadBusStops[0].lat,lng:this.sindbadBusStops[0].lng}:this.nonSindbadBusStops.length>0&&(this.center={lat:this.nonSindbadBusStops[0].lat,lng:this.nonSindbadBusStops[0].lng}),this.markerPositions.length>1){let n=this.markerPositions.map(m=>m.lat),a=this.markerPositions.map(m=>m.lng),s=Math.max(...n)-Math.min(...n),u=Math.max(...a)-Math.min(...a),f=Math.max(s,u);f>.1?this.zoom=10:f>.05?this.zoom=11:this.zoom=13}else this.zoom=14;this.googleMapOptions={streetViewControl:!1,disableDefaultUI:!0}}setMetaTags(e){this.meta.updateTag({name:"description",content:e.d}),this.meta.updateTag({name:"keywords",content:e.k}),this.title.setTitle(e.t),typeof document<"u"&&["og:title","og:description","og:url","og:type","og:locale","og:site_name"].forEach(a=>{let s=document.head.querySelector(`meta[name='${a}']`);s&&s.parentElement?.removeChild(s)});let t=b.siteEndPoint&&b.siteEndPoint.trim().length?b.siteEndPoint:"https://www.sindbad.pl";this.meta.updateTag({property:"og:title",content:e.t}),this.meta.updateTag({property:"og:description",content:e.d}),this.meta.updateTag({property:"og:url",content:t+this.router.url}),this.meta.updateTag({property:"og:type",content:"website"});let n=this.languageService.getLanguage();this.meta.updateTag({property:"og:locale",content:`${n}-${n.toUpperCase()}`}),this.meta.updateTag({property:"og:site_name",content:"Sindbad.pl"})}async setRoutingAndHreflang(e,t,n){let a={};t.forEach(s=>{let u;s.lang===n?u=(e.city?.[0]??"").toLowerCase():s.cityFromNative?u=(s.cityFromNative[0]??"").toLowerCase():u=(s.cityFrom?.[0]??"").toLowerCase();let f=s.lang==="pl"?e.pl:s.cityFrom,m=`${s.lang}/cities/${u}/${f}`;a[s.lang]=m}),this.seoLinksService.setCustomAlternateLinks(a)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=A({type:i,selectors:[["app-seo-city-details"]],inputs:{cityCodeName:[1,"cityCodeName"],letter:[1,"letter"]},decls:1,vars:1,consts:[[1,"container"],[1,"row","boxMainCityInfo","w-100","my-3"],[1,"col-sm-12"],[1,"alert","alert-success","text-center","my-0"],[1,"my-0","fs-3"],[1,"mt-3","fs-5"],[1,"row","boxSearchRoutes","w-100","my-1"],[1,"col","mt-4","mb-2","px-0"],[1,"row","w-100","mb-3"],[1,"mt-4","mb-2","fs-2"],["id","top-content"],["parentComponent","cityDetails",3,"cityName","busStopsCoordinates","sindbadBusStops","nonSindbadBusStops","markerPositions","center","zoom","googleMapOptions"],[1,"row"],[1,"col-md-4","col-sm-6","col-xs-6"],[3,"context"],["aria-hidden","true",1,"search-routes-placeholder"],[1,"search-routes-placeholder__spinner"],["mat-stretch-tabs","false","mat-align-tabs","start"],[3,"label"],[1,"mt-2"],["width","550","height","365",1,"float-start","img-fluid","col-12","col-sm-6",3,"ngSrc","title","alt"],[1,"top-content",3,"innerHtml"],["width","550","height","365",1,"img-fluid","mb
1-2",3,"ngSrc","alt","title","ngClass"],[1,"mt-3","mb-4"],[1,"text-decoration-none","text-start","p-0","not-flex",3,"title","href","routerLink"]],template:function(t,n){t&1&&g(0,qt,29,15,"div",0),t&2&&C(n.isPageLoaded?0:-1)},dependencies:[st,at,ot,Z,X,tt,ht,ut,yt,xt,rt,Y],styles:["[_ngcontent-%COMP%]:root{--grid-breakpoint-xs: 0;--grid-breakpoint-sm: 768px;--grid-breakpoint-md: 1280px;--grid-max-width-xs: 767px;--grid-max-width-sm: 1279px;--grid-max-width-md: 1400px;--container-max-width-xs: 720px;--container-max-width-sm: 730px;--container-max-width-md: 1200px}[_nghost-%COMP%]     .top-content{text-align:justify}[_nghost-%COMP%]     .top-content a{padding:0;text-decoration:none}[_nghost-%COMP%]     .top-content a .not-flex{display:inline!important}[_nghost-%COMP%]     .top-content h2{margin-top:23px;margin-bottom:10px}[_nghost-%COMP%]     .top-content p{margin-bottom:10px}[_nghost-%COMP%]     .top-content img{display:block;max-width:500px}.boxMainCityInfo[_ngcontent-%COMP%]{min-height:110px}.boxSearchRoutes[_ngcontent-%COMP%]{min-height:132px}#top-content[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;width:100%;max-width:550px;margin-bottom:10px!important;margin-right:25px!important}@media(max-width:1279px){.boxMainCityInfo[_ngcontent-%COMP%]{min-height:140px}.boxSearchRoutes[_ngcontent-%COMP%]{min-height:383px}#top-content[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;width:100%;max-width:720px;margin-right:0!important;margin-bottom:20px!important}}"],changeDetection:0})};export{vt as CityDetailsComponent};

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.