PageSourceSearch

https://my.getours.com/getours/js/7894.6820db14d16d31375158.js

js getours.com collected 2026-10-02 10:02:20 UTC 4,333 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmy_travel_portal_frontend=self.webpackChunkmy_travel_portal_frontend||[]).push([[7894],{59656:function(e,t,n){n.r(t),n.d(t,{default:function(){return B}});var a=n(65043),s=n(97508),i=n(50805),o=n(67978),l=n(4769),r=n(32125),d=n(7263),c=n(82339),m=n(60400),u=n(45205),g=n(91688),p=n(37182),v=n(38743),y=n(80229),h=n(70579);const k=({instalmentOptions:e,dispatchUpdateInstalmentPlan:t,history:n,thunks:s})=>((0,a.useEffect)((()=>{window.instalmentWidgetCalled||(window.instalmentWidgetCalled=!0,window.ttcpaymentgateway.instalments.attachInstalmentPlanCalculator(JSON.stringify(e),"#payment-gateway-instalment-service-component",(e=>{console.log("111",e);const{instalmentPlanDetails:a={}}=JSON.parse(e);if(sessionStorage.removeItem("plancancelled"),a&&a.status&&"FAILED"!==a.status){const e=()=>{t(a)},{paymentGatewayResponseReceived:i}=s;i({},n,{},!0,e)}})))})),(0,h.jsx)("div",{id:"payment-gateway-instalment-service-component"}));k.displayName="PaymentCalculatorWidget";var x=k;const{InstalmentPlan:{themeName:w},App:{sellingCompanyCurrencyCodes:N}}=m.Aq.getConfigs(),{InstalmentPlan:{title:C},InstalmentPlanSuccess:{viewFAQText:D,questions:P}}=m.Aq.getTranslations(),f=P.map(((e,t)=>({title:(0,h.jsx)("h3",{children:e.question}),content:(0,h.jsx)("div",{children:(0,y.Ay)(e.answer)}),id:e.id,expanded:0===t,index:t}))),I=e=>{const{activeBookingDetails:t,activeBooking:n,dispatchUpdateInstalmentPlan:s,history:i,thunks:o}=e,{paymentSchedule:l=[],allPassengers:r}=t,d=r.find((e=>e.isLeadPassenger)),{address:c={},firstName:m,lastName:g,emailAddress:p}=d||{},{line1:y,city:k,region:P,postcode:I,countryCode:A=""}=c,{sellingCompany:j,bookingNumber:{name:b},bookingPassenger:{clientID:B}}=n,{sellingCompanyShortName:F}=j,O=N[F.substring(2)],S=l.find((e=>"Final Payment"===e.paymentType));let q=0,H=0;const T=l.find((e=>"Deposit"===e.paymentType));T&&(q=T.paymentAmount),T&&t.amountPaid<q&&(H=q-t.amountPaid);const E={currencyCode:O,sellingCompanyCode:F,bookingId:b,planOwnerId:B,totalAmount:Number(t.totalPrice).toFixed(2),balanceDue:Number(t.dueAmount).toFixed(2),totalDepositAmount:Number(q).toFixed(2),requiredDepositAmount:Number(H).toFixed(2),finalPaymentISODate:S.paymentDueDate,cardTypes:"VISA,AMEX,ECMC,DISCOVER",customerDetails:{firstName:m,lastName:g,email:p,addressLine1:y,addressLine2:"",addressCity:k,addressStateName:P,addressCountry:A.toUpperCase(),addressPostalCode:I}};return(0,a.useEffect)((()=>{const e=document.querySelector(".InstalmentPlan");return e&&e.scrollIntoView(),()=>{window.instalmentWidgetCalled=!1}}),[]),(0,h.jsx)("div",{className:"InstalmentPlan",children:(0,h.jsxs)(u.A,{componentName:"InstalmentPlan",themeName:w,children:[(0,h.jsx)(u.A.Header,{withHomeButton:!0,children:C}),(0,h.jsxs)(u.A.Body,{children:[(0,h.jsx)(v.A,{header:!0,className:"faq-accordion",allowMultiple:!0,items:f}),(0,h.jsx)("a",{onClick:()=>{const e=document.querySelector(".InstalmentPlanFAQTile");e&&e.scrollIntoView()},className:"view-faq-message",children:D}),(0,h.jsx)(x,{history:i,thunks:o,dispatchUpdateInstalmentPlan:s,instalmentOptions:E})]})]})})};I.displayName="InstalmentPlan";var A=(0,g.y)((0,s.Ng)((e=>({activeBooking:e.activeBooking,activeBookingDetails:e.activeBookingDetails,bookingDetailsForOverview:e.bookingDetailsForOverview})),(e=>({actions:(0,i.zH)(o,e),thunks:(0,i.zH)(l,e),dispatchUpdateInstalmentPlan:(0,i.zH)(p.KH,e)})))(I)),j=n(78307);const b=e=>{const{activeBookingDetails:t,activeBooking:n,thunks:a,actions:s,bookingDetailsForOverview:i}=e,{isfutureTravelCredit:o}=n;return(0,h.jsxs)("div",{className:"cell TravelExtras",children:[(0,h.jsx)(r.A,{withCountdown:!o}),(0,h.jsx)("div",{className:"grid-container",children:(0,h.jsxs)("div",{className:"grid-x grid-margin-x",children:[(0,h.jsxs)("div",{className:"cell large-8",children:[(0,h.jsx)(A,{}),(0,h.jsx)("div",{id:"instalment-plan-faq",children:(0,h.jsx)(j.A,{})})]}),(0,h.jsxs)("div",{className:"cell large-4",children:[(0,h.jsx)(c.A,{activeBookingDetails:t,bookingDetailsForOverview:i,activeBooking:n,dontLoadData:!0,thunks:a,actions:s}),(0,h.jsx)(d.A,{})]})]})})]})};b.displayName="InstalmentPlan";var B=(0,s.Ng)((e=>({activeBooking:e.activeBooking,activeBookingDetails:e.activeBookingDetails,bookingDetailsForOverview:e.bookingDetailsForOverview})),(e=>({actions:(0,i.zH)(o,e),thunks:(0,i.zH)(l,e)})))(b)}}]);

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.