1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4872],{5321(e,s,r){r.r(s),r.d(s,{TransactionPageComponent:()=>L,default:()=>w});var n=r(98477),a=r(37643),o=(r(13319),r(68208)),t=r(35097),i=r(33642),c=r(36275),l=r.n(c),g=r(81555),d=r(99585),m=r(60962),u=(r(51520),r(48757)),h=r(63516),P=r(51395),I=r(95635),M=r(37444),S=r(96221),E=r(19651),T=r(97066),b=r(16391);const f="TransactionPage_root__1v+zz",p="TransactionPage_loading__-y40I",_="TransactionPage_error__VLeh1",v="TransactionPage_tabContent__SGH+n",R="TransactionPage_tabContentVisible__NUgLp",k="TransactionPage_footer__S6tW8";var C=r(32447);const F=["bookingStartTime","bookingEndTime","deafUserName","bookingBuilding","bookingLocation","bookingInfo","buildingOrRemote"],L=e=>{const s=e.currentUser,r=e.initialMessageFailedToTransaction,o=e.savePaymentMethodFailed,t=e.fetchMessagesError,i=e.fetchMessagesInProgress,c=e.totalMessagePages,I=e.oldestMessagePageFetched,M=e.fetchTransactionError,S=e.history,b=e.intl,L=e.messages,w=e.onFetchTimeSlots,D=e.onManageDisableScrolling,x=e.onSendMessage,y=e.onSendReview,A=e.onShowMoreMessages,j=e.params,U=e.scrollingDisabled,N=e.sendMessageError,q=e.sendMessageInProgress,O=e.sendReviewError,z=e.sendReviewInProgress,H=e.transaction,B=e.transactionRole,V=e.acceptInProgress,W=e.acceptSaleError,Y=e.declineInProgress,Z=e.declineSaleError,K=e.onAcceptSale,G=e.onDeclineSale,J=e.monthlyTimeSlots,$=e.processTransitions,Q=e.callSetInitialValues,X=e.onInitializeCardPaymentData,ee=e.onFetchTransactionLineItems,se=e.lineItems,re=e.fetchLineItemsInProgress,ne=e.fetchLineItemsError,ae=e.onHandleAccept,oe=e.handleReverseMarketplaceRequestInProgress,te=e.reverseMarketplaceRequestInProgressError,ie=e.handleCustomCancel,ce=e.customerCancelError,le=e.customerCancelInProgress,ge=(0,u.RO)(H),de=(0,u.$r)(ge.listing),me="provider"===B,ue="customer"===B,he=b.formatMessage({id:"TransactionPage.deletedListing"}),Pe=de.attributes.deleted?he:de.attributes.title,Ie=s&&ge.id&&ge.id.uuid===j.id&&ge.attributes.lineItems&&ge.customer&&ge.provider&&!M,Me=Ie&&me&&s.id.uuid===ge.provider.id.uuid,Se=Ie&&ue&&s.id.uuid===ge.customer.id.uuid;if(Ie&&me&&!Me)return console.error("Tried to access a sale that was not owned by the current user"),(0,C.jsx)(E.M0C,{name:"InboxPage",params:{tab:"sales"}});if(Ie&&ue&&!Se)return console.error("Tried to access an order that was not owned by the current user"),(0,C.jsx)(E.M0C,{name:"InboxPage",params:{tab:"orders"}});const Ee=l()(v,R),Te=ue?"TransactionPage.fetchOrderFailed":"TransactionPage.fetchSaleFailed",be=ue?"TransactionPage.loadingOrderData":"TransactionPage.loadingSaleData",fe=M?(0,C.jsx)("p",{className:_,children:(0,C.jsx)(g.sA,{id:"".concat(Te)})}):(0,C.jsx)("p",{className:p,children:(0,C.jsx)(g.sA,{id:"".concat(be)})}),pe=!(!r||!ge.id||r.uuid!==ge.id.uuid),_e=Ie?(0,C.jsx)(E.lHh,{className:Ee,currentUser:s,transaction:ge,fetchMessagesInProgress:i,totalMessagePages:c,oldestMessagePageFetched:I,messages:L,initialMessageFailed:pe,savePaymentMethodFailed:o,fetchMessagesError:t,sendMessageInProgress:q,sendMessageError:N,sendReviewInProgress:z,sendReviewError:O,onFetchTimeSlots:w,onManageDisableScrolling:D,onShowMoreMessages:A,onSendMessage:x,onSendReview:y,transactionRole:B,onAcceptSale:K,onDeclineSale:G,acceptInProgress:V,declineInProgress:Y,acceptSaleError:W,declineSaleError:Z,nextTransitions:$,onSubmitBookingRequest:e=>{const s=e.bookingStartTime,r=e.bookingEndTime,o=(e.deafUserName,e.bookingBuilding,e.bookingLocation,e.bookingInfo,e.buildingOrRemote,(0,a.A)(e,F)),t=(0,h.kU)(s),i=(0,h.kU)(r),c=(0,n.A)({quantity:(0,h.fL)(t,i)},o);(e=>{const s=(0,m.A)(),r=(0,d.yY)("CheckoutPage",s).setInitialValues;Q(r,e),X(),S.push((0,d.__)("CheckoutPage",s,{id:de.id.uuid,slug:(0,P.e9)(de.attributes.title)},{}))})({listing:de,transaction:ge,bookingData:c,bookingDates:{bookingStart:t,bookingEnd:i},confirmPaymentError:null})},monthlyTimeSlots:J,onFetchTransactionLineItems:ee,lineItems:se,fetchLineItemsInProgress:re,fetchLineItemsError:ne,onHandleAccept:ae,handleReverseMarketplaceRequestInProgress:oe,reverseMarketplaceRequestInProgressError:te,handleCustomCancel:ie,customerCancelError:ce,customerCancelInProgress:le}):fe;return(0,C.jsx)(E.YW0,{title:b.formatMessage({id:"TransactionPage.title"},{title:Pe}),scrollingDisabled:U,children:(0,C.jsxs)(E.JIv,{children:[(0,C.jsx)(E.gw9,{children:(0,C.jsx)(T.Wo,{})}),(0,C.jsx)(E.fmY,{children:(0,C.jsx)("div",{className:f,children:_e})}),(0,C.jsx)(E.F_4,{className:k,children:(0,C.jsx)(E.wi6,{})})]})})},w=(0,o.Zz)(i.withRouter,(0,t.Ng)(e=>{const s=e.TransactionPage,r=s.fetchTransactionError,n=s.acceptSaleError,a=s.declineSaleError,o=s.acceptInProgress,t=s.declineInProgress,i=s.transactionRef,c=s.fetchMessagesInProgress,l=s.fetchMessagesError,g=s.totalMessagePages,d=s.oldestMessagePageFetched,m=s.messages,u=s.initialMessageFailedToTransaction,h=s.savePaymentMethodFailed,P=s.sendMessageInProgress,S=s.sendMessageError,E=s.sendReviewInProgress,T=s.sendReviewError,b=s.monthlyTimeSlots,f=s.processTransitions,p=s.lineItems,_=s.fetchLineItemsInProgress,v=s.handleReverseMarketplaceRequestInProgress,R=s.reverseMarketplaceRequestInProgressError,k=s.fetchLineItemsError,C=s.customerCancelError,F=s.customerCancelInProgress,L=e.user.currentUser,w=(0,I.F4)(e,i?[i]:[]),D=w.length>0?w[0]:null;return{currentUser:L,fetchTransactionError:r,acceptSaleError:n,declineSaleError:a,acceptInProgress:o,declineInProgress:t,scrollingDisabled:(0,M.kl)(e),transaction:D,fetchMessagesInProgress:c,fetchMessagesError:l,totalMessagePages:g,oldestMessagePageFetched:d,messages:m,initialMessageFailedToTransaction:u,savePaymentMethodFailed:h,sendMessageInProgress:P,
1sendMessageError:S,sendReviewInProgress:E,sendReviewError:T,monthlyTimeSlots:b,processTransitions:f,lineItems:p,fetchLineItemsInProgress:_,fetchLineItemsError:k,handleReverseMarketplaceRequestInProgress:v,reverseMarketplaceRequestInProgressError:R,customerCancelError:C,customerCancelInProgress:F}},e=>({onAcceptSale:s=>e((0,b.O9)(s)),onDeclineSale:s=>e((0,b.uZ)(s)),onShowMoreMessages:s=>e((0,b.mh)(s)),onSendMessage:(s,r)=>e((0,b._z)(s,r)),onManageDisableScrolling:(s,r)=>e((0,M.l)(s,r)),onSendReview:(s,r,n,a)=>e((0,b.rU)(s,r,n,a)),callSetInitialValues:(s,r)=>e(s(r)),onInitializeCardPaymentData:()=>e((0,S.vb)()),onFetchTimeSlots:(s,r,n,a)=>e((0,b.r_)(s,r,n,a)),onFetchTransactionLineItems:(s,r,n)=>e((0,b.Zu)(s,r,n)),onHandleAccept:s=>e((0,b.BF)(s)),handleCustomCancel:s=>e((0,b.zz)(s))})),g.j4)(L)}}]); 2//# sourceMappingURL=TransactionPage.eb5844e5.chunk.js.map
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.