PageSourceSearch

https://www.viajeselcorteingles.es/estaticos/javascript/ui-home-se…ome-searchforms-js-trainLogiSearch_es_ES.js

js viajeselcorteingles.es collected 2026-10-04 00:07:39 UTC 4,332 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[416],{86237:function(e,t,n){n.d(t,{h:function(){return o}});var r=n(47520);const o=e=>{switch(e){case null:case!1:case!0:return null;default:return(0,r.uB)(e)}}},93917:function(e,t,n){n.d(t,{A:function(){return r}});class r{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=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,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null;this.origin=e,this.destination=t,this.carType=n,this.distribution=r,this.departureDate=o,this.returnDate=a,this.searchMode=i,this.createdAt=s,this.webOrigen=l}}},39061:function(e,t,n){n.d(t,{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(e,t,n){n.d(t,{mE:function(){return l},uB:function(){return s}});var r=n(93917),o=n(39061);const a=e=>e?.length?e.replace(/-/g,""):null,i=e=>null!=e?{...e,name:e.description,code:e.renfeCode??e.locationCode,country:{iso:e.country?.isoCode,name:e.country?.description}}:e,s=e=>{let{originAutocomplete:t,destinationAutocomplete:n,origin:s,destination:l,classType:u,type:c,returnDate:d,departureDate:p,timeStamp:h=Date.now(),infants:g=0,children:y=0,adults:R=1,youngCard:v=0,goldenCard:E=0,webOrigen:f}=e;return new r.A(i(t||s),i(n||l),u,{passengers:{babies:g,kids:y,adults:R},discounts:{tarjetaJoven:v,tarjetaDorada:E}},a(p),a(d),c===o.r6.NAME?o.r6.KEY:o.NP.KEY,h,f)},l=e=>null!=e?s(e):null},38024:function(e,t,n){n.r(t),n.d(t,{default:function(){return w}});var r=n(86326),o=n(97598),a=n(53584),i=n(4438),s=n(42046),l=n(74582),u=n(99232),c=n(39061),d=n(86237),p=n(1451),h=n(47520);const g=e=>{const t=(()=>{const e=(0,p.A)(window,["veci","trenes","SearchSummary"],null);return(0,h.mE)(e)})(),n=d.h(null!=e&&"object"==typeof e?e.searchSummary:e);return{...n&&{...n},...t&&{...t}}},y=(e,t)=>((e,t)=>{const n=t.split("; ").map((e=>e.split("="))).find((([t])=>decodeURIComponent(t)===e));try{const e=null==n?void 0:n[1];return null==e?void 0:decodeURIComponent((e=>'"'!==e[0]?e:e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"))(e).replace(/\+/g," "))}catch(e){return}})(t,e.cookie);var R=n(90263),v=n(39978),E=n(45385),f=n(98062);const{S4:A}=R;var T=e=>{const t=(0,E.A)(),{departureDate:n,returnDate:r,destination:{type:o,code:a},distribution:{passengers:{adults:i=0,babies:u=0,kids:c=0},discounts:{tarjetaDorada:d,tarjetaJoven:p}},origin:{type:h,code:g}}=e,R=`${t}/transportstrxbabylon/`,T=new URLSearchParams;T.set(l.aX.LINE_OF_BUSINESS,l.kn),T.set(l.aX.PRODUCT_TYPE,l.IA),T.set(l.aX.HASH_ROOMS,(0,f.rD)(i,u,c,0,0,d,p,!0)),T.set(l.aX.ITINERARY_HASH,(0,f.al)([{departureDate:n,origin:{code:g,type:h},destination:{code:a,type:o}},...null!=r?[{departureDate:r,destination:{code:g,type:h},origin:{code:a,type:o}}]:[]]));const D=y(document,l.qS);null!=D&&"1"===D&&T.set(l.aX.TYPE,"Tc"),s._P===v.wh&&(T.set(l.aX.ORIGIN_AIRPORT,g),T.set(l.aX.DESTINATION_AIRPORT,a),T.set(l.aX.DEPARTURE_DATE,(0,f.Ro)(n)),T.set(l.aX.DEPARTURE_HOUR,l.KD),null!=r&&(T.set(l.aX.RETURN_HOUR,l.KD),T.set(l.aX.RETURN_DATE,(0,f.Ro)(r)))),A.assignURL(`${R}?${T.toString()}`)};var D=function(e,t){const n=g(e);return null==window.dataLayer&&(window.dataLayer=[]),r.createElement(i.A,{onSearchLocations:(e,t,n)=>(0,u.A)({text:e,searchField:t,leg:n,transportType:l.vK.ESTATION,operators:[c.yq,c.pL]}),onSearch:e=>{T(e)},groupResultsBy:a.i.TYPE,showSwitch:!0,showCarSelector:t,locale:"pt"===s.vV?"pt":"es",searchMode:n?.searchMode,lastSearch:n})},S=n(45331);const m=e=>{let{display:t,preloadData:n}=e;return r.createElement(S.A,{display:t},D(n))};m.propTypes={display:o.bool,preloadData:(0,o.oneOfType)([o.object,o.bool])};var w=m}
1,1451:function(e,t){t.A=(e,t,n)=>{const r=null==e?void 0:((e,t)=>{let n=0,r=e;const o=t.length;for(;null!=r&&n<o;)r=r[t[n]],n+=1;return n===o?r:void 0})(e,t);return void 0===r?n:r}}}]);

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.