PageSourceSearch

https://www.gopili.de/_next/static/chunks/pages/[locale]/groups/af…/refund-983a7659a7f8f5b0.js

js gopili.de collected 2026-10-08 12:20:40 UTC 8,496 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];if(null!=t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:kombo-app":!0})}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5591,6963],{6372:()=>{},18414:(e,n,t)=>{"use strict";t.d(n,{Le:()=>o,TA:()=>c,i6:()=>u,il:()=>d});var r=t(74196),s=t(74915),a=t(53239),i=t(59809),l=t(88244);let o="group-booking",u="group-booking-allocated-seats",d=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t="number"==typeof e?e.toString():e,u=(0,r.I)({queryKey:[o,t],queryFn:t?async()=>{let e=await i._.getGroupBooking(t);if(!(null==e?void 0:e.groupBooking))throw Error("Group booking unavailable");return e}:s.hT,enabled:"0"!==t,staleTime:6e4,refetchOnWindowFocus:!1,refetchInterval:"function"==typeof n.refetchInterval?e=>n.refetchInterval(e.state.data):n.refetchInterval}),d=(0,a.useMemo)(()=>u.data?(0,l.P)(u.data.groupBooking,u.data.dependencies):void 0,[u.data]);return{...u,groupBooking:d}},c=function(e){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t="number"==typeof e?e.toString():e;return(0,r.I)({queryKey:[u,t],queryFn:t?async()=>i._.getGroupBookingAllocatedSeats(t):s.hT,enabled:n&&"0"!==t,staleTime:6e4,refetchOnWindowFocus:!1})}},19974:(e,n,t)=>{"use strict";t.d(n,{g:()=>d});var r=t(80263),s=t(77854),a=t(95217),i=t.n(a),l=t(97554),o=t.n(l);let u=i().bind(o()),d=e=>{let{role:n="banner",as:t,className:a,customPadding:i=!1,children:l}=e,o=u("header-form",a,i&&"no-padding");return(0,r.jsx)("div",{role:n,children:(0,r.jsx)("div",{className:o,children:(0,r.jsx)(s.E,{as:t,variant:"extraLarge",fontWeight:"bold",children:l})})})}},26670:(e,n,t)=>{"use strict";t.d(n,{A:()=>u});var r=t(80263),s=t(29515),a=t(19974),i=t(59913),l=t(44250),o=t(17744);t(6372);let u=e=>{let{headingText:n,children:t,notificationPlace:u,fixedButtons:d,onBack:c,displayButtons:g=!0,hideButtonsOnMobile:h=!1}=e;return(0,r.jsx)("main",{id:"main-content",children:(0,r.jsx)("div",{className:"uwmg2w0",children:(0,r.jsx)(i.A,{children:(0,r.jsx)(l.G,{buttons:d,onBack:c,displayButtons:g,hideButtonsOnMobile:h,fullHeight:!0,children:(0,r.jsxs)(o.A,{children:[n&&(0,r.jsx)(a.g,{as:"h1",className:"uwmg2w1",children:n}),u&&(0,r.jsx)(s.A,{place:u}),t]})})})})})}},27268:e=>{e.exports={"subtle-heading":"styles_subtle-heading__1i3Ch","subtle-heading-container":"styles_subtle-heading-container__aASh5","subtle-heading-line":"styles_subtle-heading-line__paCw1","subtle-heading-line-left":"styles_subtle-heading-line-left__2TGOr"}},40418:(e,n,t)=>{"use strict";t.r(n),t.d(n,{__N_SSP:()=>R,default:()=>O});var r=t(80263),s=t(48629),a=t(17343),i=t(87913),l=t(42895),o=t(55579),u=t(14073),d=t(50343),c=t(18414),g=t(17744),h=t(90684),f=t(26670),m=t(59809),p=t(19702),x=t(44915),b=t(88797),_=t(74196),v=t(13609),A=t(55514),y=t(69768),j=t(48719),N=t.n(j),E=t(65708),w=t(53239),S=t(85080),T=t(56267),k=t(87449),C=t(12325),B=t(22837),I=t(68219);let P=e=>{var n,t,s,j;let{groupBookingId:I}=e,P=(0,d.T)(),{t:R}=(0,A.Bd)([x.NS.GroupBooking,x.NS.Aftersales,x.NS.Common]),{groupBooking:O}=(0,c.il)(I),M=(0,E.useRouter)(),L=(0,T.Y)(),F=(0,S.wA)(),G=(0,b.jE)(),[q,D]=(0,w.useState)(),K=null!=(n=null==O?void 0:O.totalPrice.currency)?n:a.Currency.EUR,V=(0,_.I)({queryKey:["group-booking-refund-details",String(I)],queryFn:async()=>m._.getGroupBookingRefundDetails(String(I)),enabled:!!I,refetchOnWindowFocus:!1,staleTime:3e5}),W=(0,v.n)({mutationFn:async()=>m._.cancelGroupBooking(String(I)),onSuccess:async e=>{D(e),e.success&&e.refundSuccess||F((0,p.VR)(p.ME.AfterSalesAction,!0,p.VL.Error,"ERROR_CONTACT_US_REFUND")),e.success&&await Promise.all([G.invalidateQueries({queryKey:[c.Le,String(I)]}),G.invalidateQueries({queryKey:[c.i6,String(I)]})])},onError:e=>{F((0,p.VR)(p.ME.AfterSalesAction,!0,p.VL.Error,"ERROR_TRY_AGAIN")),console.error(e)}}),H=(0,w.useMemo)(()=>{var e,n;return{amount:null!=(e=null==(n=V.data)?void 0:n.refundableAmount)?e:0,currency:K}},[null==(t=V.data)?void 0:t.refundableAmount,K]),U=(null==q?void 0:q.success)&&q.refundSuccess?{amount:q.refundedAmount,currency:K}:void 0;if(!O)return(0,r.jsxs)(f.A,{children:[(0,r.jsx)(h.M,{title:R("PREBOOKING_PREFIX",{ns:x.NS.Account})+" G"+I,as:"h1"}),(0,r.jsx)(l.A,{})]});if(null==q?void 0:q.success)return(0,r.jsx)(f.A,{children:(0,r.jsx)(k.O,{icon:"jackpot",title:R("CONFIRMED_CANCELLATION",{ns:x.NS.Aftersales,count:O.passengerCount}),buttonLabel:R("BACK_TO_RESERVATION",{ns:x.NS.Aftersales}),onContinue:()=>
1{M.replace("/".concat(L,"/groups/aftersales/").concat(I))},children:U&&U.amount>0&&(0,r.jsx)(u.A,{variant:"small",children:R("CANCELLATION_REIMBURSEMENT_DAYS",{ns:x.NS.Aftersales,amount:P(U)})})})});let Y=O.allSubTrips,X=V.isLoading,z=V.isError||(null==(s=V.data)?void 0:s.success)===!1,Q=W.isPending;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(N(),{children:(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})}),(0,r.jsx)(y.bV,{noindex:!0,nofollow:!0,title:R("defaultTitle")}),(0,r.jsx)(f.A,{children:(0,r.jsx)(C.A,{btnText:R((null==Y?void 0:Y.some(e=>1===e.segments.length))?"Annuler le billet":"Annuler les billets"),onConfirm:()=>W.mutate(),isLoading:Q||X,subTrips:Y,isDisabled:z||X,passengerCount:O.passengerCount,priceOverride:O.totalPrice,passengerToRefundNames:["Tous les passagers"],displayPricePerPassenger:!0,children:(0,r.jsx)(i.A,{marginBottom:"16px",marginTop:"16px",children:X?(0,r.jsx)(o.A,{size:"medium",color:"secondaryContrast"}):(0,r.jsxs)(g.A,{children:[(0,r.jsx)(i.A,{marginBottom:"16px",children:(0,r.jsx)(B.h,{initialPrice:O.totalPrice,amountToRefund:H,cancelledPassengerCount:O.passengerCount,segments:Y.flatMap(e=>e.segments),cancellationFeesDetails:null==(j=V.data)?void 0:j.cancellationFeesDetails})}),(0,r.jsx)(u.A,{variant:"medium",fontWeight:"medium",textAlign:"left",color:"redError",children:R("CANCELLATION_DEFINITIVE",{ns:x.NS.Aftersales})})]})})})})]})};P.getLayout=function(e){return(0,r.jsxs)(I.l,{headerProps:{sticky:!0,isHeaderNarrow:!0,compactMenu:!0,showBackButton:!0,showShareButton:!0},bottomNavProps:{isHidden:!0},children:[e,(0,r.jsx)(s.c,{})]})};var R=!0;let O=P},59913:(e,n,t)=>{"use strict";t.d(n,{A:()=>l});var r=t(80263),s=t(45732),a=t(92979),i=t(77626);let l=e=>{let{children:n}=e,t={duration:.5,ease:[.43,.13,.23,.96]};return(0,r.jsx)(s.F,{features:a.l,children:(0,r.jsx)(i.m.div,{initial:"exit",animate:"enter",exit:"exit",children:(0,r.jsx)(i.m.div,{variants:{exit:{x:100,opacity:0,transition:t},enter:{x:0,opacity:1,transition:t}},children:(0,r.jsx)(i.m.div,{initial:"initial",animate:"enter",exit:"exit",children:n})})})})}},68219:(e,n,t)=>{"use strict";t.d(n,{l:()=>l});var r=t(80263),s=t(92392),a=t(40340),i=t(56267);let l=e=>{let{children:n,headerProps:t={},bottomNavProps:l}=e,o=(0,i.Y)();return(0,r.jsx)(s.L,{headerProps:{variant:"deepBlue",logoHref:"/".concat(o,"/groups"),...t},bottomNavProps:l,children:(0,r.jsx)(a.a,{className:"bg-color-darker",children:n})})}},90684:(e,n,t)=>{"use strict";t.d(n,{M:()=>d});var r=t(80263),s=t(77854),a=t(95217),i=t.n(a),l=t(27268),o=t.n(l);let u=i().bind(o()),d=e=>{let{title:n,isTitleBold:t=!0,subTitle:a,isSubTitleBold:i=!0,titleVariant:l="small",as:o="p",centered:d=!1}=e;return(0,r.jsxs)("div",{className:u("subtle-heading-container",{centered:d}),children:[(0,r.jsxs)("div",{className:u("subtle-heading"),children:[d&&(0,r.jsx)("span",{className:u("subtle-heading-line","subtle-heading-line-left")}),(0,r.jsx)(s.E,{d:"flex",alignItems:"center",gap:"4px",as:o,variant:l,fontWeight:t?"semibold":"normal",flexGrow:0,children:n}),(0,r.jsx)("span",{className:u("subtle-heading-line","subtle-heading-line-right")})]}),a&&(0,r.jsx)(s.E,{d:"flex",alignItems:"center",gap:"4px",as:"p",variant:"small",textAlign:d?"center":"left",justifyContent:d?"center":"flex-start",marginTop:"8px",fontWeight:i?"semibold":"normal",children:a})]})}},95830:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/groups/aftersales/[groupBookingId]/refund",function(){return t(40418)}])},97554:e=>{e.exports={"header-form":"styles_header-form__jzhmk","no-padding":"styles_no-padding__EaV1s"}}},e=>{e.O(0,[596,7146,4457,8834,2392,2496,4335,3937,5744,8514,1609,8023,6649,1916,636,6593,8792],()=>e(e.s=95830)),_N_E=e.O()}]);

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.