PageSourceSearch

https://one-delivery.co.uk/_next/static/chunks/pages/pay/[order_id]-c01589963d582549.js

js one-delivery.co.uk collected 2026-10-01 14:20:41 UTC 4,036 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2245],{80106:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pay/[order_id]",function(){return t(60116)}])},41662:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var o=t(85893),r=t(48076),a=t.n(r),s=t(67294),i=t(44297);function c(e){var n,t,r;let{branding:c,title:l}=e,[u,d]=(0,s.useState)(!1),f=(null==c?void 0:c.logo_fit)==="SQUARE"?a().squareLogo:a().rectLogo,m=(0,s.useRef)(),p=()=>{if((0,i.X)()>720)d(window.scrollY>30);else{let e=window.innerHeight/100*65,n=window.innerHeight-window.scrollY-100,t=window.innerHeight-e;d(n-150<t)}};return(0,s.useEffect)(()=>{m.current=(0,i.X)()},[]),(0,s.useEffect)(()=>(window.addEventListener("scroll",e=>p(e)),p(),()=>{window.removeEventListener("scroll",e=>p(e))}),[]),(0,o.jsxs)("div",{className:"".concat(a().header," ").concat(u?a().solidHeader:""),children:[m.current>720?(0,o.jsx)("div",{className:"".concat(a().logo," ").concat(f),style:{backgroundImage:"url(".concat(null===(n=c.logo_on_white)||void 0===n?void 0:n.path,")")}}):(0,o.jsx)("div",{className:"".concat(a().logo," ").concat(f),style:{backgroundImage:u?"url(".concat(null===(t=c.logo_on_white)||void 0===t?void 0:t.path,")"):"url(".concat(null===(r=c.logo)||void 0===r?void 0:r.path,")")}}),(0,o.jsx)("h1",{children:l})]})}},92472:function(e,n,t){"use strict";t.d(n,{j:function(){return r},u:function(){return o}});let o={fontCss:["https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap"],styles:{base:{label:{color:"#333",fontSize:"0.8rem",fontFamily:"Source Sans Pro, sans-serif"},default:{border:"1px solid rgb(204, 204, 204)",marginTop:"2px",backgroundColor:"#fff",boxShadow:"none",padding:"8px 10px",fontSize:"1.1rem",fontFamily:"Source Sans Pro, sans-serif",fontWeight:400,borderRadius:"4px"},"default::-webkit-input-placeholder":{color:"#000"},container:{margin:"0px",marginBottom:"8px"}}}},r={emailRequired:!0,shippingAddressRequired:!0,buttonConfig:{type:"checkout"}}},44297:function(e,n,t){"use strict";t.d(n,{X:function(){return r},u:function(){return o}});let o=e=>e&&e.match(/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/g),r=()=>window.innerWidth},60116:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return f},default:function(){return m}});var o=t(85893),r=t(67294),a=t(41662),s=t(4298),i=t.n(s),c=t(80417),l=t.n(c),u=t(92472),d=t(8433),f=!0;function m(e){let{branding:n,area:t,order_id:s}=e,c=(0,r.useRef)(),f=(0,r.useRef)(),m=(0,r.useRef)(),p=(0,r.useRef)(),g=(0,r.useRef)(!1),[h,w]=(0,r.useState)(!1),[_,y]=(0,r.useState)(!1),[v,S]=(0,r.useState)([]),x=async()=>{w(!0);let e=null;try{e=await d.Z.post("".concat(l().serverUrl,"/dojo/transactions/paymentintent"),{amount:{value:1e3,currencyCode:"GBP"},tipsAmount:{value:10,currencyCode:"GBP"},reference:"Order #"+s,paymentMethods:["Card"],metaData:{splitType:null,orderId:s}})}catch(e){console.log("err ",e),w(!1);return}let n={paymentDetails:{paymentToken:e.data.clientSessionSecret},containerId:"payment-form",onIframeLoaded:()=>{g.current=!0,w(!1)},...u.u},t={paymentDetails:{paymentToken:e.data.clientSessionSecret},containerId:"wallet-form",...u.j,onPaymentInitiated:()=>{console.log("CLICK!!!")}};m.current=new Dojo.Payment(n,b),p.current=new Dojo.WalletPayment(t,b,j)},j=e=>{w(!1),console.log("result : ",e)},b=e=>{let n=[];if(e&&e.length)for(let t of e)n.push(t.message);console.log("errorArr : ",n)};return(0,r.useEffect)(()=>{x()},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.Z,{branding:n,title:"pay me"}),(0,o.jsx)(i(),{src:"https://cdn.dojo.tech/payments/v1/client.js"}),(0,o.jsxs)("h1",{children:["Pay me ",s]}),(0,o.jsx)("div",{ref:f,id:"wallet-form"}),(0,o.jsx)("div",{ref:c,id:"payment-form",className:"".concat("")})]})}},48076:function(e){e.exports={header:"Header_header__iG0T4",logo:"Header_logo__YVuNB",squareLogo:"Header_squareLogo__ZHBA5",rectLogo:"Header_rectLogo__1FQb6",solidHeader:"Header_solidHeader__zJo2W"}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=80106)}),_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.