PageSourceSearch

https://www.giftya.com/_next/static/chunks/pages/checkout/payment-d47d6752420ff5d2.js

js giftya.com collected 2026-09-24 22:38:52 UTC 4,785 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8475],{33877:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout/payment",function(){return n(63874)}])},63874:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return E}});var r=n(85893),a=n(67294),o=n(14416),i=n(18654),s=n(96128),c=n(5152),u=n.n(c),l=n(11163),d=n(97953),p=n(53618),m=n(81531);n(9008),n(47041);var h=n(62623),f=n(28492),x=n(67720),g=n(23972),v=n(48263),b=n(46689),y=n(18491);let j=u()(()=>Promise.all([n.e(1276),n.e(4754)]).then(n.bind(n,34754)),{loadableGenerated:{webpack:()=>[34754]}}),w=u()(()=>Promise.all([n.e(5574),n.e(4506)]).then(n.bind(n,94506)),{loadableGenerated:{webpack:()=>[94506]},loading:()=>(0,r.jsx)(b.Z,{})}),_=(0,i.ZL)()(e=>({summary:{[e.breakpoints.down("md")]:{display:"none"}},card:{marginBottom:e.spacing(2),padding:"16px 22px",overflow:"visible"}}));var E=!0;t.default=(0,o.$j)(e=>({cart:e.cart.cart,updateCartSuccess:e.cart.updateCartSuccess,account:e.user.account,accessToken:e.auth.accessToken}),{setScrollToElement:s.J4,updateCart:p.xu,updateCartReset:p.Wz,setModal:s.cf,getAccount:m.D0})(e=>{let{cart:t,setScrollToElement:n,setModal:o,account:i,getAccount:s,accessToken:c}=e,{classes:u}=_(),p=(0,l.useRouter)();return(0,a.useEffect)(()=>{(null==i||!i.id)&&c&&s()},[c,i]),(0,a.useEffect)(()=>{var e;(null==t?void 0:null===(e=t.items)||void 0===e?void 0:e.length)===0&&p.push("/cart")},[]),(0,a.useEffect)(()=>{(null==i?void 0:i.id)&&(!i.profile_complete||!i.detailed_profile_form_viewed)&&o("complete-profile")},[null==i?void 0:i.id]),a.useEffect(()=>{(null==t?void 0:t.cartCount)===0&&p.push("/cart")},[t]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(y.default,{checkoutSummaryProps:{step:d.Go},children:[(0,r.jsx)(j,{}),(0,r.jsx)("div",{style:{paddingTop:"16px"},children:(0,r.jsx)(h.Z,{className:u.card,children:(0,r.jsxs)(f.Z,{children:[(0,r.jsxs)(v.ZP,{container:!0,children:[(0,r.jsx)(v.ZP,{item:!0,xs:12,children:(0,r.jsx)(g.Z,{variant:"h5",component:"h1",style:{marginBottom:"16px"},children:"Select payment method"})}),(0,r.jsx)(v.ZP,{item:!0,xs:12,children:(0,r.jsx)(x.Z,{style:{marginBottom:"16px"}})})]}),(0,r.jsx)(w,{setScrollToElement:n,cart:t})]})})})]})})})},46689:function(e,t,n){"use strict";var r=n(85893);n(67294);var a=n(88078),o=n(18654),i=n(67212);let s=(0,o.ZL)()(()=>({srOnly:{position:"absolute",width:"1px",height:"1px",overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap"},row:{marginTop:i.mE,border:"1px solid ".concat(i.xj),borderRadius:i.E5,boxShadow:i.uM,padding:i.ez,display:"flex",alignItems:"center"},icon:{flexShrink:0,marginRight:"12px"},button:{marginTop:"16px",borderRadius:i.E5}}));t.Z=()=>{let{classes:e}=s();return(0,r.jsxs)("div",{"aria-busy":"true","aria-live":"polite",children:[(0,r.jsx)("span",{className:e.srOnly,children:"Loading payment options"}),[45,35,40].map(t=>(0,r.jsxs)("div",{className:e.row,children:[(0,r.jsx)(a.Z,{variant:"circular",width:20,height:20,className:e.icon}),(0,r.jsx)(a.Z,{variant:"text",width:"".concat(t,"%"),height:18})]},t)),(0,r.jsx)(a.Z,{variant:"rectangular",height:42,className:e.button})]})}},67212:function(e,t,n){"use strict";n.d(t,{$_:function(){return s},CR:function(){return c},E5:function(){return o},EE:function(){return m},If:function(){return p},Oc:function(){return a},Tb:function(){return h},ZV:function(){return f},ez:function(){return u},mE:function(){return l},mv:function(){return i},uM:function(){return d},xj:function(){return r}});let r="#E6E6E6",a="#0570DE",o="8px",i="#30313D",s="#FFFFFF",c="#F7F8F9",u="14px 16px",l="12px",d="0 1px 1px rgba(0, 0, 0, 0.03)",p="background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease",m="15px",h="500",f='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'},97953:function(e,t,n){"use strict";n.d(t,{Go:function(){return o},Tj:function(){return getCheckoutSessionReturn},dM:function(){return a},jN:function(){return r},pF:function(){return getNextUri},x9:function(){return getCartProgress},z4:function(){return i}});let getCheckoutSessionReturn=()=>{let e=new URLSearchParams(window.location.search);return{sessionId:e.get("stripe_checkout_return"),paymentMethod:e.get("payment_method")}},r="cart",a="sender",o="payment",i="summary",getCartProgress=e=>{let t=!!(e.firstName&&e.lastName&&e.email&&e.phoneNumber),n=e.checkoutSessionConfirmed||"paypal"===e.paymentMethod,r=e.guestCheckoutPhoneVerified;return{hasSenderDetails:t,hasPaymentDetails:n,hasGuestCheckoutVerifiedPhone:r}},getNextUri=e=>{let t=getCartProgress(e);return t.hasPaymentDetails&&t.hasSenderDetails?"/checkout/summary":t.hasSenderDetails&&!t.hasPaymentDetails?"/checkout/payment":""}}},function(e){e.O(0,[8078,7779,8491,9774,2888,179],function(){return e(e.s=3387
17)}),_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.