PageSourceSearch

https://delivertrade.com/_next/static/chunks/pages/courier-request/order-summary-f00b3caaca9156fd994d.js

js delivertrade.com collected 2026-10-02 16:01:26 UTC 4,880 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[771],{58741:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return j}});var r=i(4942),n=i(70885),s=i(1066),c=i(87693),a=i(28107),d=i(14487),o=i(37048),l=i(67294),u=i(24097),m=i(42283),p=i(11163),x=i(85893);function h(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function f(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?h(Object(i),!0).forEach((function(t){(0,r.Z)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):h(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var v=u.ZP.div.withConfig({displayName:"order-summary__Container",componentId:"sc-sxd16t-0"})(["",""],{width:"100%",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 640px)":{maxWidth:"640px",flexDirection:"row",columnGap:"3rem"},"@media (min-width: 768px)":{maxWidth:"768px"},"@media (min-width: 1024px)":{maxWidth:"1024px"},"@media (min-width: 1280px)":{maxWidth:"1280px"},"@media (min-width: 1536px)":{maxWidth:"1536px"},paddingTop:"1.25rem",paddingBottom:"1.5rem",display:"flex",flexDirection:"column"}),b=function(e){var t,i=e.cart,r=e.product,u=(0,p.useRouter)(),h=(0,d.i)(),b=h.cartApplyDiscountCode,j=h.removeItemFromCart,y=l.useState(i),g=(0,n.Z)(y,2),w=g[0],N=g[1],k=l.useState(!1),O=(0,n.Z)(k,2),_=O[0],P=O[1],D=l.useState(!1),S=(0,n.Z)(D,2),C=S[0],A=S[1],T=(0,m.cI)({defaultValues:{code:""}}),E=T.register,F=T.handleSubmit;if(!w)return(0,x.jsx)(l.Fragment,{});var I=w.deliveries.length>0?w.deliveries[0]:null,W=null===r||void 0===r?void 0:r.productVariants.nodes.find((function(e){return e.id===(null===I||void 0===I?void 0:I.productVariantId)}));return(0,x.jsxs)(v,{children:[(0,x.jsxs)("div",{className:"w-full sm:w-2/3",children:[(0,x.jsx)("h1",{className:"text-lg text-black font-medium",children:"Order Summary"}),(0,x.jsx)("h2",{className:"text-base text-black text-opacity-80 mt-4",children:"Sent by DeliverTrade"}),(0,x.jsxs)("div",{className:"mt-4 bg-white rounded border border-grey p-2 flex flex-row items-center gap-x-2 relative",children:[null===I||void 0===I?void 0:I.items.map((function(e){return(0,x.jsxs)(l.Fragment,{children:[(0,x.jsx)("div",{className:"w-16",children:(0,x.jsx)("img",{alt:"variant-image",src:"".concat("https://d1zzb995j4vcxn.cloudfront.net","/fit-in/100x100/").concat(null===W||void 0===W?void 0:W.imageFile)})}),(0,x.jsxs)("div",{className:"w-full",children:[(0,x.jsx)("h3",{className:"text-base text-black font-medium",children:e.name}),(0,x.jsx)("p",{className:"text-xs text-black text-opacity-80",children:"Pick Up Address: ".concat(I.pickupUnitAddress," ").concat(I.pickupAddress)}),(0,x.jsx)("p",{className:"text-xs text-black text-opacity-80",children:"Delivery Address: ".concat(I.deliveryUnitAddress," ").concat(I.deliveryAddress)}),(0,x.jsx)("p",{className:"text-xs text-black text-opacity-80",children:"Date: ".concat(I.pickupTime," @ ").concat(I.pickupDate)})]}),(0,x.jsx)("div",{children:(0,x.jsx)("button",{className:"bg-whitesmoke p-2 rounded",onClick:function(){return t=e.id,A(!0),void j(t,(function(){A(!1),u.push("step-one")}),(function(e){A(!1),alert(e)}));var t},children:(0,x.jsx)(c.XH,{})})})]},e.id)})),C&&(0,x.jsx)("div",{className:"absolute inset-0 bg-white bg-opacity-50 backdrop-filter backdrop-blur-sm flex items-center justify-center overflow-hidden",children:(0,x.jsx)(s.TF,{})})]}),(0,x.jsx)("div",{className:"mt-7 bg-white rounded border border-grey p-2",children:(0,x.jsxs)("form",{className:"flex flex-row items-center",method:"post",onSubmit:F((function(e){var t=e.code;P(!0),b(t,(function(e){P(!1),e&&N(e)}),(function(e){return alert(e)}))})),children:[(0,x.jsx)("div",{children:(0,x.jsx)(c.R8,{})}),(0,x.jsx)("div",{className:"w-full pl-4",children:(0,x.jsx)("input",f({type:"text",className:"text-sm",placeholder:"Discount Code"},E("code")))}),(0,x.jsx)("div",{children:(0,x.jsx)("button",{type:"submit",className:"text-white text-sm text-center rounded py-2 px-5 bg-green",children:"Apply"})})]})})]}),(0,x.jsx)("div",{className:"mt-7 w-full sm:w-1/3",children:(0,x.jsx)(o.PQ,{deliveries:w.deliveries,discount:(null===(t=w.costs.find((function(e){return e.type===a.TK.DISCOUNT})))||void 0===t?void 0:t.amount)||0,totalAmount:w.total,onCheckout:function(){return u.push("payment")},isLoading:_})})]})};b.layout=s.HQ;var j=!0;t.default=b},17083:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/courier-request/order-summary",function(){return i(58741)}])}},function(e){e.O(0,[283,143,73,48,774,888,179],(function(){return t=17083,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.