PageSourceSearch

https://www.gopili.it/_next/static/chunks/9699-a204a4f94b01c3a9.js

js gopili.it collected 2026-09-25 03:15:25 UTC 14,867 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];if(null!=i)for(var l in i)i.hasOwnProperty(l)&&(e[l]=i[l])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:kombo-app":!0})}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9699],{1424:(e,t,i)=>{"use strict";i.d(t,{TX:()=>r,FU:()=>s,te:()=>o});var l=i(1368);let n=[{travelClassId:l.TravelClassId.SncfSecondClass,flexibilityName:"Semi-flexible",companyName:"Eurostar",title:"Standard"},{travelClassId:l.TravelClassId.SncfFirstClass,flexibilityName:"Semi-flexible",companyName:"Eurostar",title:"Standard Premier"},{travelClassId:l.TravelClassId.SncfFirstClass,flexibilityName:"Flexible",companyName:"Eurostar",title:"Business Premier"},{travelClassId:l.TravelClassId.SncfSecondClass,flexibilityName:"Semi-flexible",companyName:"Thalys",title:"Standard"},{travelClassId:l.TravelClassId.SncfFirstClass,flexibilityName:"Semi-flexible",companyName:"Thalys",title:"Comfort"},{travelClassId:l.TravelClassId.SncfFirstClass,flexibilityName:"Flexible",companyName:"Thalys",title:"Premier"},{travelClassId:l.TravelClassId.SncfFirstClass,flexibilityName:"Semi-flexible",companyName:"lyria",title:"Semi-flex Premi\xe8re"},{travelClassId:l.TravelClassId.SncfFirstClass,flexibilityName:"Flexible",companyName:"lyria",title:"Flex Premi\xe8re Signature"},{companyName:"european-sleeper",flexibilityLevel:0,title:"Easy Night"},{companyName:"european-sleeper",flexibilityLevel:1,title:"Good Night"},{companyName:"european-sleeper",flexibilityLevel:2,title:"Flex Night"}],a=["sncf","renfe","ice","eurostar","ter","inoui","thello","thalys","talgo","lyria"],r=(e,t,i)=>a.some(t=>t===e.company.logoName)&&(null==i?void 0:i.includes("SEMI_FLEX"))?"".concat(t("+2€ de frais de gestion.")):"",s=(e,t,i,l)=>{var a;if(i)return null==(a=n.find(n=>n.companyName===i&&(void 0===n.travelClassId||n.travelClassId===e)&&(void 0!==n.flexibilityLevel?n.flexibilityLevel===l:n.flexibilityName===t)))?void 0:a.title},o=e=>{var t;let i=null==e||null==(t=e.name)?void 0:t.toUpperCase();return i===l.FlexibilityName.FLEX_OPTIMUM||i===l.FlexibilityName.FLEX_OPTIMUM_PLUS}},9382:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var l=i(80263),n=i(30007),a=i(74418),r=i(95249);let s=e=>{var t;let{options:i,segment:s,expandableDescriptions:o=!0,price:c}=e,d=(0,a.T)(),p=null==(t=i[0])?void 0:t.flexibility.name;return(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"recap-info-content recap-info-content-single",children:[(0,l.jsxs)(n.a,{d:"flex",justifyContent:"space-between",alignItems:"center",gap:"8px",marginBottom:"4px",children:[(0,l.jsx)(n.E,{as:"p",variant:"medium",color:"primaryDarker",fontWeight:"semibold",children:p}),c&&(0,l.jsx)(n.E,{as:"p",variant:"medium",color:"primaryDarker",fontWeight:"semibold",whiteSpace:"nowrap",children:d(c)})]}),(0,l.jsx)("span",{className:"detail",children:(0,l.jsx)(n.E,{variant:"medium",color:"grey3",children:(0,l.jsx)(r.n,{options:i,segment:s,expandableDescriptions:o})})},"flexibility-choice")]})})}},24757:(e,t,i)=>{"use strict";i.d(t,{X:()=>o,t:()=>s});var l=i(52955),n=i(1368),a=i(275);let r=(e,t)=>e.arrivalStation.id!==t.departureStation.id,s=e=>{var t,i,l;let a=e.arrivalSegment;return!!n.TER_COMPANY_IDS.includes(a.company.id)&&(null==(l=a.selectedOption)||null==(i=l[0])||null==(t=i.flexibility)?void 0:t.isDayValid)===!0},o=(e,t)=>{let i=[],n=e.flatMap(e=>e.segments),o=e[e.length-1],c=e[e.length-2],d=!!o&&s(o),p=null==o?void 0:o.departureSegment,u=null==c?void 0:c.arrivalSegment.company.displayName;for(let e=1;e<n.length;e++){let s=n[e-1],o=n[e];if(!s||!o)continue;if(p===o&&d&&u){i.push(t("NOT_PROTECTED_COMBINATION_TER_DAY_VALID",{company:u}));continue}let c=(0,l.o)(o.departureTime,s.arrivalTime),m=(0,a.lY)((0,a.Ds)(s.arrivalTime,o.departureTime,s.arrivalCity,o.departureCity)),y=r(s,o);
1(y?c<120:c<30)||(y&&c>=120&&c<180?i.push(t(c>=120&&c<180?"STOP_DURATION_SHORT":"STOP_DURATION_LONG",{city:o.departureCity.name,minutesStop:m})):y||i.push(t(c>=31&&c<45?"STOP_DURATION_SHORT":"STOP_DURATION_LONG",{city:o.departureCity.name,minutesStop:m})))}return i}},42881:(e,t,i)=>{"use strict";i.d(t,{Z:()=>l.A});var l=i(53276)},50814:e=>{e.exports={cancelled:"stepAccordion_cancelled___rDsd","collapsible-container-anchor":"stepAccordion_collapsible-container-anchor__MCGZU"}},51566:e=>{e.exports={separator:"styles_separator__MA4qW","no-margin-top":"styles_no-margin-top__bYkdP",disabled:"styles_disabled__5nSiT","insurance-warning-sentence":"styles_insurance-warning-sentence__HmboT","insurance-advantages-list":"styles_insurance-advantages-list__qcWtN","insurance-radio-buttons-container":"styles_insurance-radio-buttons-container__nYP_7","insurance-price-diff":"styles_insurance-price-diff__31_uE","insurance-selected-tag":"styles_insurance-selected-tag__mqubr"}},63819:(e,t,i)=>{"use strict";i.d(t,{E:()=>x});var l=i(80263),n=i(1368),a=i(95217),r=i.n(a),s=i(53239),o=i(94638),c=i(12257),d=i(34786),p=i(27242),u=i(50814),m=i.n(u);let y=r().bind(m()),x=e=>{let{tripType:t,departureSegment:i,arrivalSegment:a,fallbackDepartureName:r,fallbackArrivalName:u,fallbackTime:m,accordionClickable:x=!1,accordionOpen:v=!0,accordionConfirmed:h=!1,accordionClick:f,children:T,reserved:g=!1,isCancelled:b=!1,isLoading:N=!1,isOpenByDefault:_=!1}=e,{t:E}=(0,o.B)([d.NS.Common]),[S,C]=(0,s.useState)(null),j=(0,c.L0)(),I="",A="",O=(null==i?void 0:i.departureCity.name)||r,w=(null==a?void 0:a.arrivalCity.name)||(null==i?void 0:i.arrivalCity.name)||u,F=(null==i?void 0:i.departureTime)||m,M=!1;O&&w&&(M=(A="".concat(O," ➜ ").concat(w)).length>24),F&&(A="".concat(E("DATE_LISIBLE_MOBILE",{date:F})," • ").concat(A)),I=A,O||w||!t||(I=E(t===n.TripType.Outward?"OUTWARD_TRIP":"RETURN_TRIP")),I.length>80&&(I=I.trim().substring(0,80)+"...");
1let L=t===n.TripType.Outward?"btn-show-aller":"btn-show-return";return(0,s.useEffect)(()=>{if(S&&j){let e=document.querySelectorAll(".collapsible-container-anchor").length;S.style.top="".concat(40*e+11*e,"px"),S.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}},[S,j]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:y("collapsible-container-anchor"),ref:C}),(0,l.jsx)(p.A,{title:I,confirmed:h,open:v,clickable:x,handleClick:f,reserved:g,innerWrapperClass:y(b&&"cancelled"),wrapperClass:y(b&&"cancelled"),isLoading:N,isTripStepAccordion:!0,isLongText:M,divId:L,isOpenByDefault:_,children:T})]})}},79561:(e,t,i)=>{"use strict";i.d(t,{A:()=>M});var l=i(80263),n=i(95217),a=i.n(n),r=i(94638),s=i(85538),o=i(58782),c=i(87533),d=i(34786),p=i(51566),u=i.n(p),m=i(1368);let y=[{type:m.InsuranceType.CancellationInsurance,countAdvantages:4,asteriskSentence:!1},{type:m.InsuranceType.ConnectionInsurance,countAdvantages:3,asteriskSentence:!0}];var x=i(58089),v=i(53239),h=i(42729),f=i(65065),T=i(74418);let g=a().bind(u()),b=e=>{let{insurance:t,tripType:i}=e,{updateSelectedInsurance:n,isOutwardInsuranceSelected:a,isInwardInsuranceSelected:s,rawOutwardTrip:o,rawInwardTrip:c}=(0,h.mx)(),p=(0,T.T)(),{t:u}=(0,r.B)([d.NS.TripFlexibility]),y=(0,v.useMemo)(()=>{let e=i===m.TripType.Outward?o:c;if(e)return(0,f.jE)(t,e)},[t,c,o,i]),b=[{label:u("NO_INSURANCE"),value:"no"},{label:u(t.type===m.InsuranceType.CancellationInsurance?"Garantie annulation":"Garantie correspondance"),secondaryLabel:y?p(y,!1):"",value:"yes"}];return(0,l.jsx)("div",{className:g("insurance-radio-buttons-container"),children:(0,l.jsx)(x.A,{options:b,defaultValue:"no",onValueChange:e=>{n(i,"yes"===e)},value:i===m.TripType.Outward?a:s})})};var N=i(33895);let _=a().bind(u()),E=e=>{let{insuranceType:t,transDetails:i}=e,{t:n}=(0,r.B)([d.NS.TripFlexibility]);return(0,l.jsxs)("div",{className:_("insurance-advantages-list"),children:[(0,l.jsx)(N.E,{color:"primary",fontWeight:"medium",variant:"large",as:"h3",children:n("WITH_KOMBO_INSURANCE")}),i&&(e=>{let t=[];for(let i=1;i<=e.countAdvantages;i++)t.push("INSURANCE_ADV_".concat(i));return t})(i).map((e,i)=>(0,l.jsxs)(N.E,{variant:"small",as:"p",children:[(0,l.jsx)(N.I,{icon:"check",color:"goodGreen",height:"16px",width:"16px"}),n(e,{context:t})]},i))]})};var S=i(53967),C=i(79161);let j=e=>{let{insuranceType:t,companyName:i}=e,{t:n}=(0,r.B)([d.NS.TripFlexibility]);return(0,l.jsx)(S.a,{marginTop:"12px",children:(0,l.jsx)(S.E,{variant:C.VL.Warning,message:n("INSURANCE_WARNING_SENTENCE",{context:t,companyName:i})})})};var I=i(80920);let A=e=>{let{insuranceType:t}=e,{t:i}=(0,r.B)([d.NS.TripFlexibility]);return(0,l.jsxs)(I.E,{as:"p",variant:"small",w:"100%",marginTop:"16px",children:["*",i("INSURANCE_ASTERISK_SENTENCE",{context:t})]})},O=a().bind(u()),w=e=>{let{price:t,hidePrice:i=!1}=e,{t:n}=(0,r.B)([d.NS.TripFlexibility]),a=(0,T.T)();return(0,l.jsxs)("div",{className:O("insurance-selected-tag"),children:[(0,l.jsx)(I.E,{fontWeight:"semibold",color:"goodGreen",variant:"medium",as:"p",children:n("SELECTED_OPTION")}),!i&&t&&(0,l.jsx)(I.E,{fontWeight:"medium",color:"goodGreen",variant:"medium",as:"span",children:a(t,!1)})]})},F=a().bind(u()),M=e=>{let{insurance:t,tripType:i,isTripBooked:n,companyName:a,hidePrice:p=!1,disableAboveCardStyling:u}=e,{t:m}=(0,r.B)([d.NS.TripFlexibility]),x=y.find(e=>e.type===t.type);return x?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:F("separator",{"no-margin-top":n,disabled:u})}),n?(0,l.jsxs)(s.A,{noMarginTop:u,children:[(0,l.jsx)(c.A,{title:m("INSURANCE_TITLE",{context:t.type})}),(0,l.jsxs)(o.A,{children:[(0,l.jsx)(E,{insuranceType:t.type,transDetails:x}),(0,l.jsx)(w,{price:t.price,hidePrice:p}),x.asteriskSentence&&(0,l.jsx)(A,{insuranceType:t.type})]})]}):(0,l.jsxs)(s.A,{children:[(0,l.jsx)(c.A,{title:m("INSURANCE_TITLE",{context:t.type})}),(0,l.jsxs)(o.A,{children:[a&&(0,l.jsx)(j,{insuranceType:t.type,companyName:a}),(0,l.jsx)(E,{insuranceType:t.type,transDetails:x}),(0,l.jsx)(b,{insurance:t,tripType:i}),x.asteriskSentence&&(0,l.jsx)(A,{insuranceType:t.type})]})]})]}):null}},87089:(e,t,i)=>{"use strict";i.d(t,{EY:()=>n.A,Eg:()=>l.A,VL:()=>l.V});var l=i(16645),n=i(13204)},95188:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var l=i(80263),n=i(87089),a=i(94638),r=i(72804),s=i(53239),o=i(34786),c=i(24757);let d=e=>{let{subTrips:t}=e,{t:i}=(0,a.B)([o.NS.TripFlexibility]),d=(0,s.useMemo)(()=>t?(0,c.X)(t,i):[],[t,i]);return(0,l.jsxs)(n.Eg,{variant:n.VL.Info,children:[(0,l.jsx)(n.EY,{variant:"small",fontWeight:"bold",color:"primary",children:i("NOT_PROTECTED_COMB
1INATION_TITLE")}),(0,l.jsx)("br",{}),(0,l.jsxs)(n.EY,{variant:"small",color:"primary",children:[(0,l.jsx)(r.x,{i18nKey:"NOT_PROTECTED_COMBINATION_TEXT",components:{1:(0,l.jsx)("br",{})},ns:o.NS.TripFlexibility}),(0,l.jsx)("br",{}),d.map((e,t)=>(0,l.jsxs)(s.Fragment,{children:[e,(0,l.jsx)("br",{})]},t))]})]})}},95249:(e,t,i)=>{"use strict";i.d(t,{n:()=>y});var l=i(80263),n=i(30007),a=i(94638),r=i(77374),s=i(53239),o=i(80920);let c=e=>{let{text:t,maxLines:i=2,whiteSpace:n="pre-line",prefix:r,prefixTextProps:c,...d}=e,{t:p}=(0,a.B)(),[u,m]=(0,s.useState)(!1),[y,x]=(0,s.useState)(t),v=(0,s.useRef)(null),h=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let e=()=>{if(!v.current||!h.current)return;let e=v.current.querySelector("span"),l=h.current.querySelector("span");if(!e||!l)return;let n=document.createTextNode(t);l.style.width="".concat(e.clientWidth,"px"),l.appendChild(n);let a=Math.round(parseFloat(window.getComputedStyle(e).lineHeight)*i);if(l.clientHeight<=a){m(!1),l.removeChild(n);return}let r=0,s=t.length,o="";for(;r<=s;){let e=Math.floor((r+s)/2);n.textContent="".concat(t.slice(0,e),"... ").concat(p("SEE_MORE")),Math.ceil(l.clientHeight)<=a?(o="".concat(t.slice(0,e),"... "),r=e+1):s=e-1}m(!0),l.removeChild(n),x(o)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t,i,r,p]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{ref:v,children:(0,l.jsxs)(o.E,{textAlign:"left",...d,style:{display:"-webkit-box",whiteSpace:n},onClick:()=>m(!1),children:[r&&(0,l.jsx)(o.E,{...d,...c,children:r}),u?(0,l.jsxs)(l.Fragment,{children:[y,(0,l.jsx)(o.E,{as:"span",variant:d.variant,color:"primary",cursor:"pointer",children:p("SEE_MORE")})]}):t]})}),(0,l.jsx)("div",{ref:h,style:{position:"absolute",visibility:"hidden",display:"-webkit-box",whiteSpace:n},children:(0,l.jsx)(o.E,{textAlign:"left",...d,style:{display:"-webkit-box",whiteSpace:n},children:r&&(0,l.jsx)(o.E,{...d,...c,children:r})})})]})};var d=i(34786),p=i(1424),u=i(96892);let m=e=>{let{key:t,prefix:i,description:a,expandableDescriptions:r}=e;return(0,l.jsx)(n.a,{children:r?(0,l.jsx)(c,{text:a,variant:"small",color:"grey3",prefix:i,prefixTextProps:{fontWeight:"semibold"}}):(0,l.jsxs)(n.E,{variant:"small",color:"grey3",children:[i&&(0,l.jsx)(n.E,{variant:"small",color:"grey3",fontWeight:"semibold",children:i}),a]})},t)},y=e=>{var t;let{segment:i,options:s,displayCancellationFee:o=!0,expandableDescriptions:c=!1}=e,{t:y}=(0,a.B)([d.NS.TripFlexibility,d.NS.GroupBooking]),x=s.some(e=>!!e.passengerCategory),v=[];if(x){let e=[],t=new Map;for(let i of s){let l=i.flexibility.description;if(!l)continue;let n=i.passengerCategory;if(!n)continue;let a=t.get(n);a||(a=[],t.set(n,a),e.push(n)),a.includes(l)||a.push(l)}e.forEach((e,i)=>{var a;let s=null!=(a=t.get(e))?a:[],o="".concat(y("GROUP_CATEGORY_TITLE_".concat(e),{ns:d.NS.GroupBooking}),": ");i>0&&v.push((0,l.jsx)(n.a,{children:(0,l.jsx)(n.E,{variant:"small",children:"\xa0"})},"".concat(e,"-spacer"))),s.forEach((t,i)=>{v.push(m({key:"".concat(e,"-").concat(i),prefix:o,description:(0,r.dL)(t),expandableDescriptions:!1}))})})}else{let e=s.map(e=>e.flexibility);e.forEach((t,i)=>{let l=(0,u.gM)(e,t.description),n="";if(e.length>1){var a,s;n=y("passager"),n="".concat(null!=(s=null==(a=n[0])?void 0:a.toUpperCase())?s:"").concat(n.slice(1)),n="".concat(n," ").concat(l.join(", "),": ")}!((l[0]||0)<i+1)&&l.length&&(t.description||c)&&v.push(m({key:i,prefix:n,description:(0,r.dL)(t.description||""),expandableDescriptions:c}))})}return(0,l.jsxs)(l.Fragment,{children:[v.map((e,t)=>(0,l.jsx)("span",{children:e},t)),o&&i&&(0,p.TX)(i,y,null==(t=s[0])?void 0:t.flexibility.name)]})}},96892:(e,t,i)=>{"use strict";i.d(t,{Af:()=>a,gM:()=>r});var l=i(12658),n=i(1424);let a=(e,t,i)=>{var a;let r=e.segments.map(e=>{var i,l;return null==(l=e.options[t])||null==(i=l[0])?void 0:i.flexibility}).filter(l.isTruthy),s=r[0];for(let e of r)e.level&&(null==s?void 0:s.level)&&e.level<s.level&&(s=e);let o=1===e.segments.length?null==(a=e.segments[0])?void 0:a.company.searchName:void 0,c=(null==i?void 0:i.name)?(0,n.FU)(i.id,null==s?void 0:s.name,o,null==s?void 0:s.level):void 0;return null!=c?c:null==s?void 0:s.name},r=(e,t)=>e.reduce((e,i,l)=>(i&&i.description===t&&e.push(l+1),e),[])}}]);

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.