PageSourceSearch

https://www.gopili.it/_next/static/chunks/pages/[locale]/groups/af…/refund-51974623fedbd50d.js

js gopili.it collected 2026-09-25 03:15:04 UTC 8,518 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 n=1;n<arguments.length;n++){var t=arguments[n];if(null!=t)for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:kombo-app":!0})}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6963,7423],{25419:()=>{},28409:(e,n,t)=>{"use strict";t.d(n,{g:()=>u});var s=t(80263),r=t(80920),a=t(95217),i=t.n(a),l=t(92619),o=t.n(l);let d=i().bind(o()),u=e=>{let{role:n="banner",as:t,className:a,customPadding:i=!1,children:l}=e,o=d("header-form",a,i&&"no-padding");return(0,s.jsx)("div",{role:n,children:(0,s.jsx)("div",{className:o,children:(0,s.jsx)(r.E,{as:t,variant:"h4",fontWeight:"bold",children:l})})})}},55276:(e,n,t)=>{"use strict";t.d(n,{A:()=>l});var s=t(80263),r=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,s.jsx)(r.F,{features:a.l,children:(0,s.jsx)(i.m.div,{initial:"exit",animate:"enter",exit:"exit",children:(0,s.jsx)(i.m.div,{variants:{exit:{x:100,opacity:0,transition:t},enter:{x:0,opacity:1,transition:t}},children:(0,s.jsx)(i.m.div,{initial:"initial",animate:"enter",exit:"exit",children:n})})})})}},56774:(e,n,t)=>{"use strict";t.d(n,{A:()=>d});var s=t(80263),r=t(17533),a=t(28409),i=t(55276),l=t(14308),o=t(53601);t(25419);let d=e=>{let{headingText:n,children:t,notificationPlace:d,fixedButtons:u,onBack:c,displayButtons:g=!0,hideButtonsOnMobile:h=!1}=e;return(0,s.jsx)("main",{id:"main-content",children:(0,s.jsx)("div",{className:"uwmg2w0",children:(0,s.jsx)(i.A,{children:(0,s.jsx)(l.G,{buttons:u,onBack:c,displayButtons:g,hideButtonsOnMobile:h,fullHeight:!0,children:(0,s.jsxs)(o.A,{children:[n&&(0,s.jsx)(a.g,{as:"h1",className:"uwmg2w1",children:n}),d&&(0,s.jsx)(r.A,{place:d}),t]})})})})})}},64155:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/groups/aftersales/[groupBookingId]/refund",function(){return t(88945)}])},65187:(e,n,t)=>{"use strict";t.d(n,{Le:()=>o,TA:()=>c,i6:()=>d,il:()=>u});var s=t(74196),r=t(74915),a=t(53239),i=t(38882),l=t(67213);let o="group-booking",d="group-booking-allocated-seats",u=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t="number"==typeof e?e.toString():e,d=(0,s.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}:r.hT,enabled:"0"!==t,staleTime:6e4,refetchOnWindowFocus:!1,refetchInterval:"function"==typeof n.refetchInterval?e=>n.refetchInterval(e.state.data):n.refetchInterval}),u=(0,a.useMemo)(()=>d.data?(0,l.P)(d.data.groupBooking,d.data.dependencies):void 0,[d.data]);return{...d,groupBooking:u}},c=function(e){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t="number"==typeof e?e.toString():e;return(0,s.I)({queryKey:[d,t],queryFn:t?async()=>i._.getGroupBookingAllocatedSeats(t):r.hT,enabled:n&&"0"!==t,staleTime:6e4,refetchOnWindowFocus:!1})}},80098:(e,n,t)=>{"use strict";t.d(n,{l:()=>l});var s=t(80263),r=t(98421),a=t(51298),i=t(38776);let l=e=>{let{children:n,headerProps:t={},bottomNavProps:l}=e,o=(0,i.Y)();return(0,s.jsx)(r.L,{headerProps:{variant:"deepBlue",logoHref:"/".concat(o,"/groups"),...t},bottomNavProps:l,children:(0,s.jsx)(a.a,{className:"bg-color-darker",children:n})})}},83133:(e,n,t)=>{"use strict";t.d(n,{M:()=>u});var s=t(80263),r=t(80920),a=t(95217),i=t.n(a),l=t(97361),o=t.n(l);let d=i().bind(o()),u=e=>{let{title:n,isTitleBold:t=!0,subTitle:a,isSubTitleBold:i=!0,titleVariant:l="small",as:o="p",centered:u=!1}=e;return(0,s.jsxs)("div",{className:d("subtle-heading-container",{centered:u}),children:[(0,s.jsxs)("div",{className:d("subtle-heading"),children:[u&&(0,s.jsx)("span",{className:d("subtle-heading-line","subtle-heading-line-left")}),(0,s.jsx)(r.E,{d:"flex",alignItems:"center",gap:"4px",as:o,variant:l,fontWeight:t?"semibold":"normal",flexGrow:0,children:n}),(0,s.jsx)("span",{className:d("subtle-heading-line","subtle-heading-line-right")})]}),a&&(0,s.jsx)(r.E,{d:"flex",alignItems:"center",gap:"4px",as:"p",variant:"small",textAlign:u?"center":"left",justifyContent:u?"center":"flex-start",marginTop:"8px",fontWeight:i?"semibold":"normal",children:a})]})}},88945:(e,n,t)=>{"use strict";t.r(n),t.d(n,{__N_SSP:()=>R,default:()=>O});var s=t(80263),r=t(80274),a=t(1368),i=t(26912),l=t(45396),o=t(9241),d=t(13204),u=t(74418),c=t(65187),g=t(53601),h=t(83133),f=t(56774),m=t(38882),p=t(79161),x=t(34786),b=t(88797),_=t(74196),v=t(13609),A=t(55506),y=t(35244),j=t(12212),N=t.n(j),E=t(77823),w=t(53239),S=t(85080),T=t(38776),k=t(77044),C=t(14424),B=t(42571),I=t(80098);let P=e=>{var n,t,r,j;let{groupBookingId:I}=e,P=(0,u.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)(),F=(0,T.Y)(),L=(0,S.wA)(),G=(0,b.jE)(),[q,D]=(0,w.useState)(),K=null!=(j=null==O?void 0:O.totalPrice.currency)?j: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||L((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=>{L((0,p.VR)(p.ME.AfterSalesAction,!0,p.VL.Error,"ERROR_TRY_AGAIN")),console.error(e)}}),H=(0,w.useMemo)(()=>{var e,n;
1return{amount:null!=(n=null==(e=V.data)?void 0:e.refundableAmount)?n:0,currency:K}},[null==(n=V.data)?void 0:n.refundableAmount,K]),U=(null==q?void 0:q.success)&&q.refundSuccess?{amount:q.refundedAmount,currency:K}:void 0;if(!O)return(0,s.jsxs)(f.A,{children:[(0,s.jsx)(h.M,{title:R("PREBOOKING_PREFIX",{ns:x.NS.Account})+" G"+I,as:"h1"}),(0,s.jsx)(l.A,{})]});if(null==q?void 0:q.success)return(0,s.jsx)(f.A,{children:(0,s.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:()=>{M.replace("/".concat(F,"/groups/aftersales/").concat(I))},children:U&&U.amount>0&&(0,s.jsx)(d.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==(t=V.data)?void 0:t.success)===!1,Q=W.isPending;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(N(),{children:(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})}),(0,s.jsx)(y.bV,{noindex:!0,nofollow:!0,title:R("defaultTitle")}),(0,s.jsx)(f.A,{children:(0,s.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,s.jsx)(i.A,{marginBottom:"16px",marginTop:"16px",children:X?(0,s.jsx)(o.A,{size:"medium",color:"secondaryContrast"}):(0,s.jsxs)(g.A,{children:[(0,s.jsx)(i.A,{marginBottom:"16px",children:(0,s.jsx)(B.h,{initialPrice:O.totalPrice,amountToRefund:H,cancelledPassengerCount:O.passengerCount,segments:Y.flatMap(e=>e.segments),cancellationFeesDetails:null==(r=V.data)?void 0:r.cancellationFeesDetails})}),(0,s.jsx)(d.A,{variant:"medium",fontWeight:"medium",textAlign:"left",color:"redError",children:R("CANCELLATION_DEFINITIVE",{ns:x.NS.Aftersales})})]})})})})]})};P.getLayout=function(e){return(0,s.jsxs)(I.l,{headerProps:{sticky:!0,isHeaderNarrow:!0,compactMenu:!0,showBackButton:!0,showShareButton:!0},bottomNavProps:{isHidden:!0},children:[e,(0,s.jsx)(r.c,{})]})};var R=!0;let O=P},92619:e=>{e.exports={"header-form":"styles_header-form__jzhmk","no-padding":"styles_no-padding__EaV1s"}},97361: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"}}},e=>{e.O(0,[2918,663,7359,8027,8421,8805,1287,9483,4033,2729,1322,2124,272,636,6593,8792],()=>e(e.s=64155)),_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.