1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[681],{86237:function(t,e,n){n.d(e,{h:function(){return o}});var r=n(47520);const o=t=>{switch(t){case null:case!1:case!0:return null;default:return(0,r.uB)(t)}}},93917:function(t,e,n){n.d(e,{A:function(){return r}});class r{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null;this.origin=t,this.destination=e,this.carType=n,this.distribution=r,this.departureDate=o,this.returnDate=a,this.searchMode=i,this.createdAt=s,this.webOrigen=u}}},39061:function(t,e,n){n.d(e,{NP:function(){return o},pL:function(){return s},r6:function(){return a},yq:function(){return i}});var r=n(54384);const o={NAME:"IV",KEY:r.uz},a={NAME:"I",KEY:r.bc},i="RNF",s="IRYO"},47520:function(t,e,n){n.d(e,{mE:function(){return u},uB:function(){return s}});var r=n(93917),o=n(39061);const a=t=>t?.length?t.replace(/-/g,""):null,i=t=>null!=t?{...t,name:t.description,code:t.renfeCode??t.locationCode,country:{iso:t.country?.isoCode,name:t.country?.description}}:t,s=t=>{let{originAutocomplete:e,destinationAutocomplete:n,origin:s,destination:u,classType:l,type:c,returnDate:d,departureDate:p,timeStamp:h=Date.now(),infants:g=0,children:y=0,adults:f=1,youngCard:v=0,goldenCard:A=0,webOrigen:S}=t;return new r.A(i(e||s),i(n||u),l,{passengers:{babies:g,kids:y,adults:f},discounts:{tarjetaJoven:v,tarjetaDorada:A}},a(p),a(d),c===o.r6.NAME?o.r6.KEY:o.NP.KEY,h,S)},u=t=>null!=t?s(t):null},26170:function(t,e,n){n.r(e),n.d(e,{default:function(){return E}});var r=n(86326),o=n(97598),a=n(53584),i=n(4438),s=n(42046),u=n(74582),l=n(99232),c=n(86237);var d=n(90263),p=n(45385),h=n(98062);const{S4:g}=d;var y=t=>{const e=(0,p.A)(),{departureDate:n,returnDate:r,destination:{type:o,code:a},distribution:{passengers:{adults:i=0,babies:s=0,kids:l=0},discounts:{tarjetaDorada:c,tarjetaJoven:d}},origin:{type:y,code:f}}=t,v=`${e}/transportstrxalex/`,A=new URLSearchParams;A.set(u.aX.LINE_OF_BUSINESS,u.kn),A.set(u.aX.PRODUCT_TYPE,u.IA),A.set(u.aX.HASH_ROOMS,(0,h.rD)(i,s,l,0,0,c,d,!0)),A.set(u.aX.ITINERARY_HASH,(0,h.al)([{departureDate:n,origin:{code:f,type:y},destination:{code:a,type:o}},...r?[{departureDate:r,destination:{code:f,type:y},origin:{code:a,type:o}}]:[]])),g.assignURL(`${v}?${A.toString()}`)},f=n(39061);var v=function(t,e){const n=(t=>{const e=c.h(null!=t&&"object"==typeof t?t.searchSummary:t);return{...e&&{...e}}})(t);return null==window.dataLayer&&(window.dataLayer=[]),r.createElement(i.A,{onSearchLocations:(t,e,n)=>(0,l.A)({text:t,searchField:e,leg:n,transportType:u.vK.ESTATION,operators:[f.yq,f.pL]}),onSearch:t=>{y(t)},groupResultsBy:a.i.TYPE,showSwitch:!0,showCarSelector:e,locale:s.vV,searchMode:n?.searchMode,lastSearch:n})},A=n(45331);const S=t=>{let{display:e,preloadData:n}=t;return r.createElement(A.A,{display:e},v(n))};S.propTypes={display:o.bool,preloadData:(0,o.oneOfType)([o.object,o.bool])};var E=S}}]);
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.