PageSourceSearch

https://app.cardless.com/_next/static/chunks/pages/points-transfer/confirmation-27012e8ff17832ee.js

js cardless.com collected 2026-10-01 13:53:49 UTC 8,593 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1781],{7439:(e,n,r)=>{"use strict";r.r(n),r.d(n,{__N_SSG:()=>L,default:()=>P});var t=r(14232),o=r(1105),a=r(22356),s=r(35435),i=r(64596),c=r(81572),u=r(45706),d=r(22035),l=r(84088),p=r(53887),f=r(5406),m=r(70964),h=r(86619),w=r(84587),x=r(37876),b=function(){},R=(0,m.Ay)(h.n5).withConfig({displayName:"PointsTransferTransferCells__StyledFlexContainer",componentId:"sc-17tankp-0"})(["margin-top:30px;margin-bottom:30px;position:relative;"]),k=(0,m.Ay)(w.nz).withConfig({displayName:"PointsTransferTransferCells__StyledInputLine",componentId:"sc-17tankp-1"})(["margin-bottom:8px;width:100%;input{background-color:",";color:",";padding-top:","px;border:0px solid ",";&:focus{border:0px solid ",";}}label{color:",";}"],function(e){return e.theme.color.marlinsSecondary},function(e){return e.theme.color.white},function(e){return 4*e.theme.spacer},function(e){return e.theme.color.white},function(e){return e.theme.color.white},function(e){return e.theme.color.white}),A=(0,m.Ay)(function(e){var n=e.className;return(0,x.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:[(0,x.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,x.jsx)("circle",{cx:"20",cy:"20",r:"20",fill:"white"}),(0,x.jsx)("path",{d:"M20 29L17.7594 29L15 22.25M20 29L22.2406 29L25 22.25M20 29L20 11",stroke:"#022B86",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,x.jsx)("defs",{children:(0,x.jsx)("clipPath",{id:"clip0",children:(0,x.jsx)("rect",{width:"40",height:"40",fill:"white"})})})]})}).withConfig({displayName:"PointsTransferTransferCells__StyledTransferIcon",componentId:"sc-17tankp-2"})(["position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2;"]),T=(0,m.Ay)(c.EY).withConfig({displayName:"PointsTransferTransferCells__StyledTextContainer",componentId:"sc-17tankp-3"})(["position:absolute;top:35%;left:70%;transform:translate(-5%,-90%);z-index:2;color:",";"],function(e){return e.theme.color.white}),g=function(e){var n=e.fromAmount,r=e.fromLabel,t=e.toAmount,o=e.toLabel;return(0,x.jsxs)(R,{direction:"column",children:[(0,x.jsx)(k,{type:"number",value:n,label:r,name:"customAmount",className:"input-amount",bordered:!0,onChange:b,onKeyDown:b,onFocus:b,onBlur:b}),(0,x.jsx)(T,{size:c.$C.Tiny,children:"10 points = 1 Home Run Rewards point"}),(0,x.jsx)(A,{}),(0,x.jsx)(k,{type:"number",value:t,label:o,name:"customAmount",step:.01,min:.01,className:"input-amount",bordered:!0,onChange:b,onKeyDown:b,onFocus:b,onBlur:b})]})},C=r(56259),v=r(82790),y=r(7245),L=!0;let P=function(){(0,C._)();var e=(0,o.wA)(),n=(0,o.d4)(a.al).pointsToTransfer,r=(0,o.d4)(a.Rz).username,m=(0,t.useCallback)(function(){e((0,s.c)())},[e]);return(0,x.jsxs)(v.x,{title:"Cardless - Points Transfer Confirmation",children:[(0,x.jsx)(f.j,{completedSteps:3,totalSteps:4,dismissPath:(0,p.uJ)(d.M4.PointsTransfer,d.LC.EnterPoints)}),(0,x.jsxs)(i.h,{asSubTitleOnMobile:!0,color:l.w.color.white,children:["You’re about to transfer ",n.amount," Cardless points to Home Run Rewards."]}),(0,x.jsx)(g,{fromAmount:n.amount.toString(),fromLabel:"Cardless points",toAmount:(0,p._3)(n.amount).toString(),toLabel:"Home Run Rewards points"}),(0,x.jsxs)(y.A,{children:[(0,x.jsxs)(h.n5,{direction:"column",justify:"center",align:"flex-start",children:[(0,x.jsxs)(c.EY,{size:c.$C.Tiny,color:l.w.color.white,children:["Home Run Rewards points will be added to your"," ",(0,x.jsx)(c.EY,{inline:!0,bold:!0,size:c.$C.Tiny,color:l.w.color.white,children:r})," ","Home Run Rewards account."]}),(0,x.jsx)(c.EY,{size:c.$C.Tiny,color:l.w.color.white,children:"Cardless points will be deducted from your Cardless account."}),(0,x.jsx)(c.EY,{size:c.$C.Tiny,color:l.w.color.white,children:"All points transfers are final."})]}),(0,x.jsx)(u.jn,{onClick:m,children:"Confirm transfer"})]})]})}},35435:(e,n,r)=>{"use strict";r.d(n,{c:()=>b,f:()=>x});var t=r(42969),o=r(63857),a=r(43081),s=r.n(a),i=r(89099),c=r.n(i),u=r(91514),d=r(65004),l=r(22035),p=r(53887),f=r(22356),m=r(32789),h=function(e){return e.InsufficientBalance="Insufficient funds for points redemption.",e.UnauthenticatedRequest="Unauthenticated request",e.VendorAccountNotFound="Vendor account not found",e.VendorAccountExpired="Vendor account expired",e.VendorAccountBlocked="Vendor account blocked",e.VendorAccountNotPermitted="Vendor account not permitted",e}(h||{}),w=function(e){return e.VendorLoginHRRAccountNotfound="No Home Run Rewards account found",e.VendorLoginHRRAccountBlocked="Your Home Run Rewards account is blocked",e.VendorLoginHRRAccountExpired="Your Home Run Rewards account is expired",e.VendorLoginInvalidCredentials="Invalid email or password",e.VendorLoginRewardsLevelNotPermitted="Rewards level not permitted",e.VendorLoginInternalErrors="Oops, we're having internal issues. Please try again.",e.PointsTransferFailed="Oops! We’re having trouble completing your points transfer.",e.PointsTransferHRRAccountBlocked="Oops! Your Home Run Rewards account is blocked.",e.PointsTransferHRRAccountExpired="Oops! Your Home Run Rewards account is expired.",e.PointsTransferInsufficientBalance="Oops! You have insufficient Cardless points.",e}(w||{}),x=function(){var e;return e=(0,o.A)(s().mark(function e(n,r,o){var a,i,x,b,R,k,A,T,g;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=o.api,n((0,m.qj)(!0)),n((0,m.OO)(null)),x=(i=(0,f.Rz)(r())).userUuid,b=i.accountUuid,R=i.username,k=i.password,A=i.authToken,e.prev=4,a.setSessionData((0,t.A)({},d.Pp.AccessToken,{value:A,attributes:{expires:3599*u.Mv}})),e.next=8,a.getPointsTransferCredentials({userUuid:x,accountUuid:b,username:R,password:k});case 8:if(!(T=e.sent).error){e.next=28;break}g="",e.t0=T.error,e.next=e.t0===h.UnauthenticatedRequest?14:e.t0===h.VendorAccountNotFound?16:e.t0===h.VendorAccountNotPermitted?18:e.t0===h.VendorAccountBlocked?20:e.t0===h.VendorAccountExpired?22:24;break;case 14:return g=w.VendorLoginInvalidCredentials,e.abrupt("break",25);case 16:return g=w.VendorLoginHRRAccountNotfound,e.abrupt("break",25);case 18:return g=w.VendorLoginRewardsLevelNotPermitted,e.abrupt("break",25);case 20:return g=w.VendorLoginHRRAccountBlocked,e.abrupt("break",25);case 22:return g=w.VendorLoginHRRAccountExpired,e.abrupt("break",25);case 24:g=w.VendorLoginInternalErrors;case 25:return n((0,m.OO)(g)),n((0,m.qj)(!1)),e.abrupt("return");case 28:T.data&&(n((0,m.X$)(T.data)),T.data.transferAccounts.length>1?c().replace((0,p.uJ)(l.M4.PointsTransfer,l.LC.AccountSelection)):(c().replace((0,p.uJ)(l.M4.PointsTransfer,l.LC.Confirmation)),n((0,m.a8)({transferAccountId:T.data.transferAccounts[0].externalId})))),e.next=34;break;case 31:e.prev=31,e.t1=e.catch(4),n((0,m.OO)(w.VendorLoginInternalErrors));case 34:n((0,m.qj)(!1));case 35:case"end":return e.stop()}},e,null,[[4,31]])})),function(n,r,t){return e.apply(this,arguments)}},b=function(){var e;return e=(0,o.A)(s().mark(function e(n,r,t){var o,a,i,u,d,x,b,R,k,A,T;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.api,n((0,m.K)(!0)),n((0,m.Sr)(null)),i=(a=(0,f.al)(r())).userUuid,u=a.accountUuid,d=a.transferAccountId,x=a.pointsToTransfer,b=a.points
1Balance,R={amountE2:100*x.amount,type:x.type},e.next=7,o.redeemPointsForTransfer({userUuid:i,accountUuid:u,transferAccountId:d,pointsToTransfer:R});case 7:if(!(k=e.sent).error){e.next=24;break}A="",e.t0=k.error,e.next=e.t0===h.VendorAccountBlocked?13:e.t0===h.VendorAccountExpired?15:e.t0===h.InsufficientBalance?17:19;break;case 13:return A=w.PointsTransferHRRAccountBlocked,e.abrupt("break",20);case 15:return A=w.PointsTransferHRRAccountExpired,e.abrupt("break",20);case 17:return A=w.PointsTransferInsufficientBalance,e.abrupt("break",20);case 19:A=w.PointsTransferFailed;case 20:return n((0,m.Sr)(A)),n((0,m.K)(!1)),c().replace((0,p.uJ)(l.M4.PointsTransfer,l.LC.Result,"/".concat(l.Q7.Error))),e.abrupt("return");case 24:k.data&&(c().replace((0,p.uJ)(l.M4.PointsTransfer,l.LC.Result,"/".concat(l.Q7.Success))),n((0,m.Nt)(k.data)),T=b-x.amount,n((0,m.a8)({pointsBalance:T}))),n((0,m.K)(!1));case 26:case"end":return e.stop()}},e)})),function(n,r,t){return e.apply(this,arguments)}}},56259:(e,n,r)=>{"use strict";r.d(n,{_:()=>s});var t=r(14232),o=r(1105),a=r(22356),s=function(){var e=(0,o.d4)(a.Rz);(0,t.useEffect)(function(){if(!e.loading&&!e.authToken)throw Error("Invalid points transfer state")},[e])}},81734:(e,n,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/points-transfer/confirmation",function(){return r(7439)}])}},e=>{e.O(0,[5200,9086,823,636,6593,8792],()=>e(e.s=81734)),_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.