PageSourceSearch

https://regiojet.com/_next/static/chunks/40128-174ff61e18e73e93.js

js regiojet.com collected 2026-09-24 09:46:57 UTC 22,780 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7c862128-96f6-4dca-bed6-bdc54e61a13f",e._sentryDebugIdIdentifier="sentry-dbid-7c862128-96f6-4dca-bed6-bdc54e61a13f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[40128],{77210:function(e,t,n){var o=n(72253),a=n(14932),i=n(47702),l=n(85893),s=n(23123),r=n(67294),c=n(24335),u=n(40977),d=n(93967),f=n.n(d),p=n(33299),m=n(88240),h=n(62564),v=function(e){var t=e.children,n=(0,i._)(e,["children"]);return(0,l.jsxs)(c.c.ValueContainer,(0,a._)((0,o._)({},n),{children:[(0,l.jsx)(c.c.Placeholder,(0,a._)((0,o._)({},n),{isFocused:n.isFocused,children:n.selectProps.placeholder})),r.Children.map(t,function(e){return e&&(null==e?void 0:e.type)!==c.c.Placeholder?e:null})]}))},x=function(e){var t=e.isFourNearestStationsOnMobile,n=e.onGps,s=e.Icon,r=e.isGeolocationAllowed;return function(e){var u=e.children,d=(0,i._)(e,["children"]),f=(0,m.Z)().isMobile;return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)(c.c.Control,(0,a._)((0,o._)({},d),{children:[(0,l.jsx)("span",{className:"select-icon",children:(0,l.jsx)(s,{})}),u]})),f&&n&&(0,l.jsx)(p.Z,{className:"pr-1 w-4 h-4 absolute right-[17px] top-1.5 z-60 bg-neutral-white",onClick:n,children:(0,l.jsx)("span",{className:"closest-stations-icon",children:t&&r?(0,l.jsx)(h.Clear,{}):(0,l.jsx)(h.Gps,{})})})]})}};t.Z=function(e){var t=e.Icon,n=(e.children,e.className),c=e.setIsFourNearestStationsOnMobile,d=e.isFourNearestStationsOnMobile,p=e.isGeolocationAllowed,h=e.components,g=(0,i._)(e,["Icon","children","className","setIsFourNearestStationsOnMobile","isFourNearestStationsOnMobile","isGeolocationAllowed","components"]),b=(0,s.$G)().t,y=(0,m.Z)().isMobile,j=(0,r.useMemo)(function(){return x({isFourNearestStationsOnMobile:d,onGps:c,Icon:t,isGeolocationAllowed:p})},[d,t,p]);return(0,l.jsx)(u.ZP,(0,o._)({className:f()("select-dropdown",n),classNamePrefix:"react-select",ariaLiveMessages:{guidance:function(e){return b("accesibility.cities.cityGuidance",{ariaLabel:(null==e?void 0:e["aria-label"])||""})},onFilter:function(e){return b("accesibility.cities.resultsCount",{inputValue:e.inputValue,resultsCount:e.resultsMessage.split(" ")[0]})},onFocus:function(e){return b("accesibility.cities.selectedValue",{label:e.label})}},styles:{valueContainer:function(e){return(0,a._)((0,o._)({},e),{overflow:"visible"})},control:function(e){return(0,a._)((0,o._)({},e),{border:"1px solid #C0D2DB",borderRadius:6,cursor:"pointer"})},placeholder:function(e,t){return(0,a._)((0,o._)({},e),{display:"initial",marginBottom:(t.hasValue||t.selectProps.inputValue)&&y?"18px":(t.hasValue||t.selectProps.inputValue)&&!y?"26px":"0px",width:"100%",top:t.isMulti&&t.hasValue?8:t.isFocused||t.hasValue||t.selectProps.inputValue?10:"50%",transition:"top 0.1s, font-size 0.1s",fontSize:(t.isFocused||t.hasValue||t.selectProps.inputValue)&&12})},option:function(e,t){var n=t.isFocused;return(0,a._)((0,o._)({},e),{color:n?"#00519E":void 0,backgroundColor:n?"#EDF6FF":void 0,borderRadius:6,cursor:"pointer"})},multiValue:function(e){return(0,a._)((0,o._)({},e),{backgroundColor:"#00519E",borderRadius:6,color:"#FFFFFF",cursor:"pointer"})},multiValueLabel:function(e){return(0,a._)((0,o._)({},e),{color:"white",fontSize:"100%"})},multiValueRemove:function(e){return(0,a._)((0,o._)({},e),{":hover":{backgroundColor:"black",color:"white"}})},singleValue:function(e){return(0,a._)((0,o._)({},e),{fontSize:14,margin:"8px 2px 2px 2px"})}},components:(0,o._)({ValueContainer:v,Control:j},h||{})},g))}},40128:function(e,t,n){var o=n(85893),a=n(32873),i=n(93967),l=n.n(i),s=n(55673),r=n(31453),c=n(46220),u=n(88240),d=n(61165),f=n(57890
1);t.Z=function(e){var t=e.component,n=(0,u.Z)().isMobile;if(!t)return null;var i=t.bannerDesktop,p=t.bannerMobile,m=t.header,h=t.subheader,v=t.button,x=t.image,g=t.backgroundColor,b=t.searchBar,y=t.fullWidth,j=f.Ei[g],N=null==b?void 0:b.queryValues,w=N?(0,d.wV)(N):void 0;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:l()(j,"relative",!y&&"page-layout--desktop lg:rounded-md"),children:[(0,o.jsx)("div",{className:l()(y?"lg:h-[400px] fullhd:h-[600px]":"lg:h-auto"),children:(0,o.jsx)(r.Z,{loading:"eager",image:n?p:i,alt:m})}),(0,o.jsx)("div",{className:"page-layout sm:pb-4",children:(0,o.jsxs)("div",{className:"lg:absolute lg:top-1/2 lg:-translate-y-1/2 lg:w-[425px] sm:text-center",children:[m&&(0,o.jsx)("h1",{className:"text-headline leading-tight mt-2",children:m}),h&&(0,o.jsx)(c.Z,{text:h}),(null==v?void 0:v.url)&&(null==v?void 0:v.text)&&(0,o.jsx)(s.ZP,{href:null==v?void 0:v.url,target:"_blank",children:null==v?void 0:v.text}),x&&(0,o.jsx)(r.Z,{loading:"eager",className:"sm:mx-auto",image:x,alt:m})]})})]}),b&&(0,o.jsx)(a.default,{initialValues:w,className:"lg:-mt-5 pt-2"})]})}},32873:function(e,t,n){n.r(t),n.d(t,{citySelectValues:function(){return X},default:function(){return ee},getCorrectDate:function(){return Q}});var o=n(11010),a=n(72253),i=n(14932),l=n(47702),s=n(24043),r=n(70655),c=n(85893),u=n(22980),d=n(48494),f=n(14174),p=n(69599),m=n(23123),h=n(11163),v=n(67294),x=n(93967),g=n.n(x),b=n(40397),y=n(71816),j=n(66082),N=n(55673),w=n(84782),_=n(61262),D=n(248),L=n(43716),I=n(29964),S=n(33299),C=n(27348),T=n(13732),F=function(){var e=(0,T.Z)(C.Z,function(e){return e.hideAllModals});return(0,c.jsxs)("div",{className:"flex flex-col",children:[(0,c.jsx)("h2",{className:"h2",children:(0,c.jsx)(m.cC,{i18nKey:"geolocation.not.allowed.headline"})}),(0,c.jsx)("span",{className:"my-2",children:(0,c.jsx)(m.cC,{i18nKey:"geolocation.not.allowed"})}),(0,c.jsx)("div",{children:(0,c.jsx)("div",{className:"flex justify-end",children:(0,c.jsx)(N.zx,{className:"sm:w-full",size:"big",onClick:e,children:(0,c.jsx)(m.cC,{i18nKey:"ticket.passengerConfirmationModal.button.understand"})})})})]})},Z=n(77210),O=n(68399),M=n(24335),k=n(88240),V=n(62564),P=function(e){switch(!0){case!e.length:return"searchbox.city.whichDestination";case e.length<3:return"searchbox.minimum.length";default:return"searchbox.city.not.found"}},A=function(e){var t=P(e.inputValue);return(0,c.jsxs)("div",{className:"sm:text-black",children:[(0,c.jsx)(V.Emptysearch,{className:"lg:hidden w-52 h-52 flex-shrink-0 mx-auto"}),(0,c.jsx)("p",{children:(0,c.jsx)(m.cC,{i18nKey:t})})]})},E=function(e){var t,n=e.data,o=(e.children,(0,l._)(e,["data","children"])),s=(0,k.Z)().isMobile,r=(0,v.useRef)(null),u=function(){var e;return null==o?void 0:null===(e=o.selectProps)||void 0===e?void 0:e.onChange(n,{action:"select-option",option:void 0})};return(0,v.useEffect)(function(){if(s){var e;null==r||null===(e=r.current)||void 0===e||e.addEventListener("click",u,!0)}return function(){var e;null==r||null===(e=r.current)||void 0===e||e.removeEventListener("click",u)}},[s,n]),(0,c.jsx)("div",{ref:r,children:(0,c.jsx)(M.c.Option,(0,i._)((0,a._)({},o),{data:n,children:(0,c.jsxs)("div",{className:"flex menu-row",children:["CITY"===n.placeType&&(0,c.jsx)(V.LocationOn,{className:"w-2.5 h-2.5 mr-1"}),"STATION"===n.placeType&&n.vehicleTypes.includes("BUS_STATION")&&(0,c.jsx)(V.DirectionsBus,{className:"w-2.5 h-2.5 ml-2 mr-1"}),"STATION"===n.placeType&&n.vehicleTypes.includes("TRAIN_STATION")&&(0,c.jsx)(V.DirectionsTrain,{className:g()("w-2.5 h-2.5 mr-1",n.vehicleTypes.length<2&&"ml-2")}),"closestOption"===n.value||n.closestStation?(0,c.jsxs)("div",{className:"flex",children:[(0,c.jsx)("div",{className:"self-center sm:hidden",children:(0,c.jsx)(V.Gps,{className:"w-2.5 h-2.5 mr-1"})}),(0,c.jsxs)("div",{className:"flex flex-col",children:[(0,c.jsx)("span",{children:n.label}),(0,c.jsx)("div",{className:"text-12",children:s?(0,c.jsx)(m.cC,{i18nKey:"citiesSelect.distance.from.you",values:{distance:null===(t=n.distance)||void 0===t?void 0:t.toFixed(2)}}):n.getLocationTitle})]})]}):n.label]})}))})},z=function(e){var t=e.children,n=(0,l._)(e,["children"]);return(0,c.jsx)(M.c.Menu,(0,i._)((0,a._)({}
1,n),{className:"menu",children:t}))},G=n(87011),R=n(47269),K={action:"select-option",option:void 0,name:void 0},B=function(e){var t,o,l=e.handleSelectFrom,r=e.handleSelectTo,u=e.isOpenFrom,d=e.isOpenTo,f=e.onFromChange,p=e.onToChange,x=e.defaultValues,b=e.strapiFavorites,j=(0,m.$G)().t,N=(0,h.useRouter)().query,w=(0,k.Z)().isMobile,_=(0,y.Z_)(),C=_.loading,M=_.getDestination,P=_.data,B=(0,T.Z)(y.zD,function(e){return e.state.fav},[]),q=(0,s._)((0,v.useState)(""),2),H=q[0],$=q[1],W=(0,s._)((0,v.useState)((null==x?void 0:x.from)||null),2),Y=W[0],J=W[1],U=(0,s._)((0,v.useState)((null==x?void 0:x.to)||null),2),X=U[0],Q=U[1],ee=(0,s._)((0,v.useState)(null),2),et=ee[0],en=ee[1],eo=(0,s._)((0,v.useState)(null),2),ea=eo[0],ei=eo[1],el=(0,y.Fs)(H),es=el.shouldSearch,er=el.filtered,ec=(0,s._)((0,v.useState)(!1),2),eu=ec[0],ed=ec[1],ef=(0,s._)((0,v.useState)(!1),2),ep=ef[0],em=ef[1],eh=(0,s._)((0,v.useState)(!1),2),ev=eh[0],ex=eh[1],eg=(0,s._)((0,L.Z)("closest-stations",{label:"",options:[]}),2),eb=eg[0],ey=eg[1],ej=(0,s._)((0,L.Z)("user-location",{userLatitude:0,userLongitude:0}),2),eN=ej[0],ew=eN.userLatitude,e_=eN.userLongitude,eD=ej[1],eL=!!(null===(t=n.g.window)||void 0===t?void 0:t.ontouchstart),eI=(0,O.Z)().showModal,eS=(0,v.useMemo)(function(){return er.flatMap(function(e){return[(0,R.c)(e)].concat((0,D._)(e.stations.map(R.c)))})},[er]),eC=(0,v.useMemo)(function(){if(C)return[];var e=(null==b?void 0:b.map(function(e){return{fromLocationId:+e.fromLocationId,toLocationId:+e.toLocationId}}))||[],t=new Set;return(0,D._)(B).concat((0,D._)(e)).filter(function(e){var n="".concat(e.fromLocationId,"-").concat(e.toLocationId);return!t.has(n)&&(t.add(n),!0)}).slice(0,4).map(function(e){return{from:M(e.fromLocationId),to:M(e.toLocationId)}}).filter(function(e){return e.from&&e.to})},[C,B,b]),eT={label:j("stationDepartures.closeststation"),getLocationTitle:eb.label?null===(o=eb.options[0])||void 0===o?void 0:o.label:j("stationDepartures.getLocation"),value:"closestOption"},eF={label:j("station.favourite.connection.header"),options:eC.map(function(e,t){return{label:"".concat(e.from.fullname||e.from.name," ⟶ ").concat(e.to.fullname||e.to.name),placeType:"CITY",value:"fav".concat(t),stationIds:{from:e.from.id,to:e.to.id}}})},eZ=(0,v.useMemo)(function(){return es?{from:eS,to:eS}:{from:ev&&eb.options.length&&eu?[eb]:[eF],to:[]}},[es,eS,et,ea,!ev,eu,!!eC.length,eb]),eO=(0,v.useMemo)(function(){return{from:es?(0,D._)(eS):[eT,eF],to:es?(0,D._)(eS):[]}},[es,eS,!!eC.length]),eM=function(e,t){Q(e),p(e,t),ei(null)},ek=function(e,t){J(e),f(e,t),en(null),w&&eu&&eM({label:"",placeType:"",value:""},K)},eV=function(e){eb.options[0]&&("to"===e?eM:ek)(eb.options[0],K)},eP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"from";navigator.geolocation&&navigator.geolocation.getCurrentPosition(function(t){var n=t.coords;if(ex(!0),w){if(eu){ed(!eu);return}ed(!eu)}if(e_===Number.parseFloat(n.longitude.toFixed(4))&&ew===Number.parseFloat(n.latitude.toFixed(4))&&eb.options.length)!w&&eb.options.length&&eV(e);else{eD({userLatitude:Number.parseFloat(n.latitude.toFixed(4)),userLongitude:Number.parseFloat(n.longitude.toFixed(4))});var o=null==P?void 0:P.flatMap(function(e){return e.stations.map(function(e){return(0,i._)((0,a._)({},e),{distance:y.P6.calculateDistance(e.latitude,e.longitude,n.latitude,n.longitude)})})}).sort(function(e,t){return e.distance-t.distance}).slice(0,4).map(function(e){return{label:e.name,value:e.id.toString(),placeType:"STATION",vehicleTypes:e.types,latitude:e.latitude,longitude:e.longitude,distance:e.distance}}),l={label:j("stationDepartures.closeststation"),options:o.map(function(e){return(0,i._)((0,a._)({},e),{closestStation:!0})})};ey(l),!w&&l.options[0]&&("to"===e?eM:ek)(l.options[0],K)}},function(){ex(!1),eI((0,c.jsx)(F,{}),{zIndex:1301})})},eA=function(){Y&&(eM(Y,K),X||ek(null,K)),X&&(ek(X,K),Y||eM(null,K))},eE=function(e){return function(t,n){if(t.value.startsWith("fav")){ek((0,R.c)(M(t.stationIds.from)),K),eM((0,R.c)(M(t.stationIds.to)),K);return}var o="to"===e?eM:ek;
1return"closestOption"===t.value?eP(e):o(t,n)}},ez=function(){ed(!1),en(null),ei(null)};return(0,v.useEffect)(function(){if(N.fromLocationId&&N.fromLocationId!==(null==Y?void 0:Y.value)){var e=M(+N.fromLocationId);e&&ek((0,R.c)(e),K)}if(N.toLocationId&&N.toLocationId!==(null==X?void 0:X.value)){var t=M(+N.toLocationId);t&&eM((0,R.c)(t),K)}},[N.fromLocationId,N.toLocationId,C]),w?(0,c.jsxs)("div",{className:"w-full relative lg:flex",children:[(0,c.jsx)(S.Z,{className:"rounded-t-sm bg-neutral-white flex px-1 h-12 w-full",onClick:function(e){return en(e.target)},children:(0,c.jsxs)("div",{className:"flex items-center gap-1",children:[(0,c.jsx)(V.DestinationFrom,{className:"w-2.5 h-2.5 fill-neutral-gray2"}),(0,c.jsxs)("div",{className:"text-14",children:[(0,c.jsx)("span",{className:g()("clickableDiv-placeholder",Y?"selected":"default"),children:(0,c.jsx)(m.cC,{i18nKey:"arrivalsDepartures.firstStation"})}),(0,c.jsx)("span",{className:"clickableDiv-input city",children:null==Y?void 0:Y.label})]})]})}),(0,c.jsx)("div",{className:"cities-select__delimiter h-px bg-white"}),(0,c.jsx)(S.Z,{className:"absolute z-10 swap-cities","aria-label":j("accessibility.button.reverseDirection"),onClick:eA,children:(0,c.jsx)(V.ArrowSyncAlt,{className:"w-3 h-3 fill-neutral-gray2 bg-neutral-white"})}),(0,c.jsx)(S.Z,{className:"rounded-b-sm bg-neutral-white flex px-1 h-12 w-full",onClick:function(e){return ei(e.target)},children:(0,c.jsxs)("div",{className:"flex items-center",children:[(0,c.jsx)(V.LocationOn,{className:"w-2.5 h-2.5 mr-1 fill-neutral-gray2"}),(0,c.jsxs)("div",{className:"text-14",children:[(0,c.jsx)("span",{className:g()("clickableDiv-placeholder",X?"selected":"default"),children:(0,c.jsx)(m.cC,{i18nKey:"arrivalsDepartures.lastStation"})}),(0,c.jsx)("span",{className:"clickableDiv-input city",children:null==X?void 0:X.label})]})]})}),(0,c.jsxs)(I.ZP,{anchorEl:et,anchorReference:"none",transitionDuration:0,open:!!et,onClose:function(){return en(null)},PaperProps:{className:"cssreset-popover-paper"},style:{zIndex:600},children:[(0,c.jsx)(G.Z,{i18nKey:"arrivalsDepartures.firstStation",handleBack:ez,hasShadow:!1}),(0,c.jsx)("div",{className:"inline-block searchBox-mob-container popover-city",children:(0,c.jsx)(Z.Z,{autoFocus:!0,Icon:V.DestinationFrom,className:"city-select border-t rounded-sm",loadingMessage:function(){return j("accessibility.loader")},placeholder:eu&&ev&&!ep&&!Y&&j("stationDepartures.myLocation"),options:eZ.from,noOptionsMessage:A,value:Y,components:{Option:E},onChange:eE("from"),onInputChange:function(e){em(!!e.length),$(e)},filterOption:function(){return!0},isFourNearestStationsOnMobile:eu,setIsFourNearestStationsOnMobile:eP,isGeolocationAllowed:ev,menuIsOpen:!0,isLoading:C})})]}),(0,c.jsxs)(I.ZP,{anchorEl:ea,anchorReference:"none",transitionDuration:0,open:!!ea,onClose:function(){return ei(null)},PaperProps:{className:"cssreset-popover-paper"},style:{zIndex:600},children:[(0,c.jsx)(G.Z,{i18nKey:"arrivalsDepartures.lastStation",handleBack:ez,hasShadow:!1}),(0,c.jsx)("div",{className:"inline-block searchBox-mob-container popover-city",children:(0,c.jsx)(Z.Z,{autoFocus:!0,Icon:V.LocationOn,className:"city-select border-t rounded-sm",loadingMessage:function(){return j("accessibility.loader")},placeholder:eu&&ev&&!ep&&!X&&j("stationDepartures.myLocation"),options:eZ.to,filterOption:function(){return!0},noOptionsMessage:A,value:X,isFourNearestStationsOnMobile:eu,onInputChange:function(e){em(!!e.length),$(e)},setIsFourNearestStationsOnMobile:eP,isGeolocationAllowed:ev,components:{Option:E},onChange:eE("to"),menuIsOpen:!0,isLoading:C})})]})]}):(0,c.jsxs)("div",{className:"relative w-auto mx-0.5 flex flex-row justify-center items-center rounded-sm bg-neutral-white",children:[(0,c.jsx)(Z.Z,{Icon:V.DestinationFrom,className:g()("city-select rounded-sm",u&&"pointer-events-auto"),"data-id":"departure-station",loadingMessage:function(){return j("accessibility.loader")},"aria-label":j("arrivalsDepartures.firstStation"),placeholder:j("arrivalsDepartures.firstStation"),options:eO.from,filterOption:function(){return!0},noOptionsMessage:A,value:Y,onInputChange:function(e){return $(e)},components:{Menu:z,Option:E},onChange:eE("from"),menuIsOpen:eL?void 0:u,onMenuOpen:eL?void 0:function(){return l(!0)},onMenuClose:eL?void 0:function(){return l(!1)},isLoading:C}),(0,c.jsx)(S.Z,{className:"relative px-1 z-10 swap-cities","aria-label":j("accessibility.button.reverseDirection"),onClick:eA,children:(0,c.jsx)(V.ArrowSyncAlt,{className:"w-3 h-3 fill-neutral-gray2 bg-neutral-white"})}),(0,c.jsx)(Z.Z,{Icon:V.LocationOn,className:g()("city-select rounded-sm",d&&"pointer-events-auto"),"data-id":"arrival-station",loadingMessage:function(){return j("accessibility.loader")},"aria-label":j("arrivalsDepartures.lastStation"),placeholder:j("arrivalsDepartures.lastStation"),options:eO.to,noOptionsMessage:A,value:X,onInputChange:function(e){return $(e)},filterOption:function(){return!0},components:{Menu:z,Option:E},onChange:eE("to"),menuIsOpen:eL?void 0:d,onMenuOpen:eL?void 0:function(){return r(!0)},onMenuClose:eL?void 0:function(){return r(!1)},isLoading:C})]})},q=n(93509),H=n(98478),$=n(33824),W=n(61948),Y=function(e){var t=e.fromLocation,n=e.toLocation,o=e.departureDate,a=e.returnDepartureDate,i=e.passengers,l=e.setShowFullBox;return(0,c.jsxs)(S.Z,{onClick:function(){return l(!0)},className:"lg:hidden mb-2.5 px-2 pt-1 pb-2 bg-primary-yellow",children:[(0,c.jsxs)("div",{className:"mb-1 px-1 h-4 flex justify-between items-center rounded-sm bg-white",children:[(0,c.jsxs)("div",{className:"w-11/12 flex items-center text-14",children:[(0,c.jsx)("div",{className:"overflow-ellipsis overflow-hidden whitespace-nowrap",children:t}),(0,c.jsx)(V.ArrowSyncAlt,{className:"w-2.5 h-2.5 mx-1.5 flex-shrink-0"}),(0,c.jsx)("div",{className:"overflow-ellipsis overflow-hidden whitespace-nowrap",children:n})]}),(0,c.jsx)(V.Search,{className:"w-3 h-3 flex-shrink-0 fill-neutral-gray"})]}),(0,c.jsxs)("div",{className:"flex justify-between items-center text-13",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)(W.Z,{date:o,formatType:"SHORT_DATE"}),a&&(0,c.jsxs)(c.Fragment,{children:["- ",(0,c.jsx)(W.Z,{date:a,formatType:"SHORT_DATE"})]}),", ",i]}),(0,c.jsx)("div",{className:"text-primary-blue",children:(0,c.jsx)(m.cC,{i18nKey:"ticket.passengers.edit"})})]})]})},J=n(80631),U=n(61165),X={aliases:[],placeType:null,value:null,vehicleTypes:null},Q=function(e){if(!e)return null;var t=(0,u.Z)(e),n=(0,d.Z)((0,p.Z)(new Date,"Europe/Prague"));return(0,f.Z)(t,n)?(0,d.Z)((0,p.Z)(e,"Europe/Prague")):null},ee=function(e){var t,u,d,f=e.className,p=e.layoutClassName,x=e.showCompactBox,D=e.setSroTicketsFetching,L=e.initialValues,I=e.loading,S=e.strapiFavorites,C=(0,m.$G)().t,T=(0,h.useRouter)().push,F=(0,k.Z)().isMobile,Z=(0,y.aF)().user,O=(0,y.Z_)().getDestination,M=(0,s._)((0,v.useState)(null),2),V=M[0],P=M[1],A=(0,s._)((0,v.useState)(!1),2),E=A[0],z=A[1],G=(0,s._)((0,v.useState)(!x),2),R=G[0],K=G[1],W=(0,s._)((0,v.useState)(!1),2),ee=W[0],et=W[1],en=!!(null===(u=n.g.window)||void 0===u?void 0:u.ontouchstart),eo=(t=(0,o._)(function(e){var t;return(0,r.__generator)(this,function(n){switch(n.label){case 0:if(e.fromLocationName,e.toLocationName,!(!(t=(0,l._)(e,["fromLocationName","toLocationName"])).fromLocationId||!t.toLocationId))return[3,1];return et(!0),[3,3];case 1:return null==D||D(!1),[4,T({pathname:J.ZP.HOMEPAGE,query:(0,U.XP)((0,a._)({},t))})];case 2:n.sent(),n.label=3;case 3:return[2]}})}),function(e){return t.apply(this,arguments)}),ea={departureDate:null,tariffs:[(null==Z?void 0:null===(d=Z.user)||void 0===d?void 0:d.defaultTariffKey)||$.ZP.Regular],fromLocationId:null,fromLocationName:null,fromLocationType:null,toLocationId:null,toLocationName:null,toLocationType:null},ei=function(){if(!L)return null;var e=O(+(null==L?void 0:L.fromLocationId)),t=O(+(null==L?void 0:L.toLocationId));return{from:(0,i._)((0,a._)({},X),{label:null==e?void 0:e.name}),to:(0,i._)((0,a._)({},X),{label:null==t?void 0:t.name}),departureDate:Q(null==L?void 0:L.departureDate),returnDepartureDate:Q(null==L?void 0:L.returnDepartureDate)}}();return(0,c.jsx)(b.J9,{initialValues:L||ea,onSubmit:eo,children:function(e){var t,n=e.values,o=e.setFieldValue;return(0,j.Z)({fromLocationId:n.fromLocationId,toLocationId:n.toLocationId,fromLocationType:n.fromLocationType,toLocationType:n.toLocationType,currentTariffs:n.tariffs||[],onTariffsChanged:function(e){return o("tariffs",e)}}),(0,c.jsxs)(b.l0,{children:[!en&&(V||E)&&(0,c.jsx)(w.Z,{}),(0,c.jsxs)("div",{className:g()("page-layout--desktop overlay-shadow",p),children:[x&&!R&&(0,c.jsx)(Y,{fromLocation:n.fromLocationName,toLocation:n.toLocationName,departureDate:n.departureDate,returnDepartureDate:n.returnDepartureDate,passengers:C("searchbox.compact.passengers",{count:(null===(t=n.tariffs
1)||void 0===t?void 0:t.length)||1}),setShowFullBox:K}),(0,c.jsxs)("div",{className:g()("relative z-30 shadow-md w-full px-2 pb-2 flex flex-col lg:flex-row justify-between items-center bg-primary-yellow lg:rounded-md",f,!R&&"sm:hidden"),children:[(0,c.jsx)(_.Z,{title:C("searchbox.tooltip.missingCities"),open:!F&&ee,placement:"top",children:(0,c.jsx)("div",{className:"sm:w-full",children:(0,c.jsx)(B,{onFromChange:function(e){e&&(o("fromLocationId",Number.parseInt(e.value,10)),o("fromLocationName",e.label),o("fromLocationType",e.placeType))},onToChange:function(e){e&&(o("toLocationId",Number.parseInt(e.value,10)),o("toLocationName",e.label),o("toLocationType",e.placeType))},handleSelectFrom:function(e){return P(e?"from":null)},handleSelectTo:function(e){return P(e?"to":null)},isOpenFrom:"from"===V,isOpenTo:"to"===V,defaultValues:{from:null==ei?void 0:ei.from,to:null==ei?void 0:ei.to},strapiFavorites:S})})}),(0,c.jsx)(q.Z,{className:"date-select sm:w-full sm:my-1.5 lg:mx-0.5",setDepartureDate:function(e){return o("departureDate",e)},setReturnDepartureDate:function(e){return o("returnDepartureDate",e)},defaultDepartureDate:(null==ei?void 0:ei.departureDate)||null,defaultArrivalDate:(null==ei?void 0:ei.returnDepartureDate)||null,handleOverlay:z}),(0,c.jsx)(H.Z,{onTariffsChanged:function(e){return o("tariffs",e)},onInteracted:z}),(0,c.jsx)("div",{className:"sm:w-full sm:mt-1.5 lg:mx-0.5",children:(0,c.jsx)(N.zx,{"data-id":"search-btn",className:"sm:w-full",size:"big",type:"submit",disabled:I,tabIndex:0,onKeyDown:function(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.target.click())},children:(0,c.jsx)(m.cC,{i18nKey:"search.title"})})})]})]})]})}})}},47269:function(e,t,n){n.d(t,{c:function(){return o}});var o=function(e){return{aliases:null==e?void 0:e.aliases,label:null==e?void 0:e.name,placeType:null==e?void 0:e.placeType,value:e.id.toString(),vehicleTypes:e.types}}}}]);

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.