1"use strict";(self.webpackChunklebara_web_app=self.webpackChunklebara_web_app||[]).push([[8191,34765,39373,46374],{9097:(e,s,a)=>{a.r(s),a.d(s,{default:()=>t});const t={}},85391:(e,s,a)=>{a.r(s),a.d(s,{default:()=>b});var t=a(65043),n=(a(9097),a(20590)),r=a(66783),c=a(53338),l=a(59217),d=a(18049),i=a(67997),o=a(52450),u=a(1367),m=a(70579);const b=function(e){const[s,a]=(0,t.useState)(!1),[b,h]=(0,t.useState)(!1),[p,g]=(0,t.useState)(null),v=(0,i.Db)("id"),f=(0,i.Db)("orderId"),y=(0,i.Db)("payment_id");let _=(0,d.oD)(l.D7q,l.WdP);const x=t.useCallback(()=>{(0,d.k8)("transaction_id","local")},[]);return(0,t.useEffect)(()=>{if(v||f||y){var e;h(!0);let s=(0,d.oD)(l.RWS,"local"),t={id:null!==(e=null!==v&&void 0!==v?v:f)&&void 0!==e?e:y},n={};a(!0),c.A.commitPayment(s,t).then(()=>{h(!0),n={success:!0,message:"The order has successfully completed, your order number is ".concat(_,"."),action:x},g(n),a(!1)}).catch(e=>{var s,t,c;const l=r.A.key(null!==(s=null===e||void 0===e||null===(t=e.response)||void 0===t||null===(c=t.data)||void 0===c?void 0:c.messageKey)&&void 0!==s?s:"generic_paymnt_error_msg");n={success:!1,message:l,btnLabel:r.A.key("generic_error_btn_try_again"),action:x},g(n),a(!1),h(!0)})}},[v,f,y]),(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("div",{className:"payment-container",children:[!b&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("h1",{children:r.A.key("b2b_payment_time")}),(0,m.jsx)(u.A,{redirect:window.location.href,source:"m2m-order",externalId:e.orderID.toString()})]}),p&&(0,m.jsx)("div",{className:"message-area",children:(0,m.jsx)(n.A,{action:p.action,success:p.success,message:p.message,btnLabel:p.btnLabel})}),s&&(0,m.jsx)(o.default,{})]})})}},86920:(e,s,a)=>{a.r(s),a.d(s,{default:()=>m});var t=a(65043),n=a(85391),r=a(18049),c=a(59217),l=a(66783),d=(a(90322),a(12691)),i=a(97508),o=a(50805),u=a(70579);const m=(0,i.Ng)(e=>({pageContent:e.layout.pageContent}),e=>(0,o.zH)({setRoute:d.gN},e))(function(e){let s=(0,r.oD)(c.D7q,c.WdP);const{setRoute:a,routeId:d}=e;return(0,t.useEffect)(()=>{a({name:"business/payment",id:d})},[a,d]),(0,u.jsx)("div",{children:(0,u.jsxs)("div",{className:"mainWrapper",children:[(0,u.jsx)("div",{className:"shape-rectangle-header",children:(0,u.jsx)("div",{className:"shape-title",children:l.A.key("b2b_payment")})}),(0,u.jsx)("div",{children:null!==s&&(0,u.jsx)(n.default,{orderID:s})})]})})})},90322:(e,s,a)=>{a.r(s),a.d(s,{default:()=>t});const t={}}}]); 2//# sourceMappingURL=informative-business-payment.6d14bb53.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.