PageSourceSearch

https://www.sindbad.pl/chunk-IOICV4AW.js

js sindbad.pl collected 2026-10-02 03:08:48 UTC 7,185 bytes, 1 lines download raw bytes

1import{a as te}from"./chunk-CVUFIJNN.js";import{b as I,h as ee}from"./chunk-SEWNJXTM.js";import{b as j,f as J,k as K,p as X,r as Y,v as Z}from"./chunk-CO7MV662.js";import{a as $}from"./chunk-RKLLVET2.js";import{a as H}from"./chunk-RSN73FRZ.js";import{a as U}from"./chunk-DF7WOO6L.js";import{j as y,k as G,m as w,q as Q,u as N}from"./chunk-JXPCPXGO.js";import"./chunk-SCOLU66M.js";import"./chunk-T4RP7A5Y.js";import"./chunk-XTCFZ3KI.js";import{v as z}from"./chunk-CSDGJEBX.js";import{$b as a,$c as d,Cb as O,Db as S,Fc as p,Gc as m,Ic as V,Jc as W,Kc as F,La as P,Lb as E,Lc as R,Pb as L,Pc as x,Tb as v,Vb as M,_b as c,ac as r,ad as g,bc as u,fb as o,ha as s,jc as T,ma as h,na as _,oc as D,qc as f,rd as q,uc as B,vc as C,wb as k,wc as b}from"./chunk-57UVUD7B.js";import"./chunk-C6Q5SG76.js";var ie=["infoWindow"],oe=()=>[j,J,X,Y,K,I,ee,y];function ae(n,t){if(n&1&&(a(0,"div",14)(1,"span"),p(2),d(3,"transloco"),r(),p(4," : "),a(5,"b"),p(6),r()()),n&2){let e=f(3);o(2),m(g(3,2,"lbl_agent_email")),o(4),m(e.agent==null?null:e.agent.email)}}function re(n,t){if(n&1){let e=T();a(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7)(5,"input",8),d(6,"transloco"),R("ngModelChange",function(l){h(e);let A=f(2);return F(A.city,l)||(A.city=l),_(l)}
1),r(),a(7,"button",9),D("click",function(){h(e);let l=f(2);return _(l.searchAgent())}),a(8,"span"),p(9),d(10,"transloco"),r()()()()()()(),a(11,"div",10)(12,"google-map",11,0)(14,"map-info-window",null,1)(16,"div",12)(17,"h5",13),p(18),r()(),a(19,"div",14)(20,"span"),p(21),d(22,"transloco"),r(),p(23," : "),a(24,"b"),p(25),r()(),v(26,ae,7,4,"div",14),a(27,"div",14)(28,"b"),p(29),r()()()()()}if(n&2){let e=f(2);o(5),c("placeholder",x(g(6,11,"lbl_select_city"))),W("ngModel",e.city),o(4),m(g(10,13,"btn_search_agent")),o(3),c("options",e.mapOptions),o(6),m(e.agent==null?null:e.agent.name),o(3),m(g(22,15,"lbl_agent_tel")),o(4),m(e.agent==null?null:e.agent.phone),o(),M(e.agent!=null&&e.agent.email?26:-1),o(3),V("",e.agent==null?null:e.agent.postCode," ",e.agent==null?null:e.agent.city)}}function pe(n,t){n&1&&u(0,"app-loader",15),n&2&&c("articleLoader",!0)}function le(n,t){n&1&&u(0,"app-loader",15),n&2&&c("articleLoader",!0)}function se(n,t){n&1&&(O(0,re,30,17)(1,pe,1,1)(2,le,1,1),E(3,0,oe,1,2,null,2,null,S),L(0,-1))}function me(n,t){n&1&&(a(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",16),u(4,"input",17),d(5,"transloco"),r(),a(6,"div",18)(7,"button",19)(8,"span"),p(9),d(10,"transloco"),r()()()()()(),a(11,"div",20),u(12,"app-loader",15),r()),n&2&&(o(4),c("placeholder",x(g(5,4,"lbl_select_city"))),o(5),m(g(10,6,"btn_search_agent")),o(3),c("articleLoader",!0))}var ne=class n{infoWindow;map;city="";lang=s(N).currentLanguage();langEnum=()=>this.lang;routeManager=s(Q);agent=null;communicationService=s(U);platformId=s(P);googleMapsLoader=s(te);cdr=s(q);isBrowser=!1;mapOptions={center:{lat:52.2297,lng:21.0122},zoom:6,streetViewControl:!1,mapTypeControl:!1};agents=[];markers=[];metaTagsService=s(H);constructor(){let t=w.siteEndPoint+"/assets/images/sindbad-default-image.webp";this.metaTagsService.setMetaTags(t)}waitForMapReady(t,e=10){let i=()=>{this.map?.googleMap?t():e>0&&(setTimeout(()=>i(),1e3),e--)};i()}getAgents(){let t={range:1,distance:1e4,position:null,longitude:17.9261947,latitude:50.6922765};this.communicationService.getAgentsByCoordinates(t).subscribe(e=>{this.agents=e.agents,this.waitForMapReady(()=>{this.addAdvancedMarkers(),this.cdr.markForCheck()})})}getIconUrl(){return"/assets/images/map/ticket-sale-22x23.png"}ngAfterViewInit(){z(this.platformId)&&(this.isBrowser=!0,this.googleMapsLoader.loadGoogleMaps().then(()=>{this.getAgents()}),this.cdr.detectChanges())}async addAdvancedMarkers(){if(this.map?.googleMap){await this.googleMapsLoader.loadGoogleMaps(),await google.maps.importLibrary("marker"),this.markers.forEach(t=>t.map=null),this.markers=[];for(let t of this.agents){let e={lat:t.latitude,lng:t.longitude},i=new google.maps.marker.AdvancedMarkerElement({position:e,map:this.map.googleMap,title:t.name,content:this.createMarkerIcon()});i.addListener("click",()=>{this.openInfoWindow(i,t)}),this.markers.push(i)}}}createMarkerIcon(){let t=document.createElement("img");return t.src=this.getIconUrl(),t.width=22,t.height=23,t.alt="Agent",t}openInfoWindow(t,e){let i=t.position;this.agent=e,this.cdr.markForCheck(),this.infoWindow.options={position:i},this.infoWindow.open(),this.cdr.detectChanges()}searchAgent(){location.href=w.siteEndPoint+"/"+this.routeManager.getFullPath("sellPoints","agents",this.langEnum())+"?city="+this.city}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=k({type:n,selectors:[["app-map"]],viewQuery:function(e,i){if(e&1&&B(ie,5)(I,5),e&2){let l;C(l=b())&&(i.infoWindow=l.first),C(l=b())&&(i.map=l.first)}},decls:2,vars:1,consts:[["map",""],["infoWindow","mapInfoWindow"],[100,null],[1,"container-fluid","searchOnMap"],[1,"container"],[1,"row","search-widget","col-sm-12"],[1,"col-12","col-sm-6","d-flex","align-items-center","py-3"],[1,"input-group"],["required","","maxlength","40",1,"form-control",3,"ngModelChange","ngModel","placeholder"],[1,"btn","btn-sm","my-0","btn-warning","infoButton",3,"click"],["ngSkipHydration","",1,"mt-1"],["mapId","sindbadMap","height","80vh","width","100%",3,"options"],[1,"pe-5","pt-0","pb-2"],[1,"titleMap"],[1,"ps-3","pe-5","pt-0","pb-2"],[3,"articleLoader"],[1,"col-12","col-sm-6"],["maxlength","40",1,"form-control",3,"placeholder"],[1,"col-12","col-sm-6","text-end","text-sm-start"],[1,"btn","btn-warning","infoButton"],[1,"mt-1"]],template:function(e,i){e&1&&v(0,se,5,0)(1,me,13,8),e&2&&M(i.isBrowser?0:1)},dependencies:[Z,G,$,y],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]     .gm-style-iw{padding:0!important}[_nghost-%COMP%]     .gm-style-iw-chr{position:absolute;top:3px;right:3px}[_nghost-%COMP%]     h5.titleMap{padding:7px 10px 10px;margin-bottom:0}[_nghost-%COMP%]     button.gm-ui-hover-effect{width:20px!important;height:20px!important}[_nghost-%COMP%]     button.gm-ui-hover-effect:focus, [_nghost-%COMP%]     button.gm-ui-hover-effect:hover, [_nghost-%COMP%]     button.gm-ui-hover-effect:active, [_nghost-%COMP%]     button.gm-ui-hover-effect:visited, [_nghost-%COMP%]     button.gm-ui-hover-effect:link, [_nghost-%COMP%]     button.gm-ui-hover-effect:focus-visible, [_nghost-%COMP%]     button.gm-ui-hover-effect::-moz-focus-inner{outline:none!important;border:none!important;box-shadow:none!important}[_nghost-%COMP%]     button.gm-ui-hover-effect span{width:20px!important;height:20px!important;margin:0!important}[_nghost-%COMP%]     button.gm-ui-hover-effect span:focus, [_nghost-%COMP%]     button.gm-ui-hover-effect span:hover, [_nghost-%COMP%]     button.gm-ui-hover-effect span:active, [_nghost-%COMP%]     button.gm-ui-hover-effect span:visited, [_nghost-%COMP%]     button.gm-ui-hover-effect span:link, [_nghost-%COMP%]     button.gm-ui-hover-effect span:focus-visible, [_nghost-%COMP%]     button.gm-ui-hover-effect span::-moz-focus-inner{outline:none!important;border:none!important;box-shadow:none!important}.searchOnMap[_ngcontent-%COMP%]{display:flex;align-items:center;z-index:var(--z-index-search-box);width:100%}"],changeDetection:0})};export{ne as AgentsMapComponent};

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.