PageSourceSearch

https://www.cocktailcourier.com/_next/static/chunks/pages/order-confirmation/error-1026b8b9e93c5669.js

js cocktailcourier.com collected 2026-10-03 20:17:35 UTC 6,733 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4278],{47380:function(e,r,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/order-confirmation/error",function(){return o(73230)}])},92161:function(e,r,o){"use strict";o.d(r,{DE:function(){return i},cb:function(){return useAnnounce}});var t=o(38298),n=o(67294);function useAnnounce(){let e=(0,t.l8)(),r=(0,n.useCallback)(function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"polite";e&&e.announce&&r&&(e.announce("",o),setTimeout(()=>{e.announce(r,o)},100))},[e]);return r}let i={ITEM_ADDED_TO_CART:e=>"".concat(e," added to cart"),ITEM_REMOVED_FROM_CART:e=>"".concat(e," removed from cart"),CART_UPDATED:"Cart updated",CART_CLEARED:"Cart cleared",SEARCH_RESULTS:e=>"".concat(e," ").concat(1===e?"product":"products"," found"),NO_SEARCH_RESULTS:"No products found",FORM_SUBMITTED:"Form submitted successfully",FORM_ERROR:e=>"Error: ".concat(e),FIELD_REQUIRED:e=>"".concat(e," is required"),PAGE_LOADED:e=>"".concat(e," page loaded"),MODAL_OPENED:e=>"".concat(e," dialog opened"),MODAL_CLOSED:"Dialog closed",ORDER_SUCCESS:e=>"Order ".concat(e," placed successfully"),ORDER_ERROR:e=>"Order error: ".concat(e),LOADING:"Loading, please wait",LOADED:"Content loaded",FILTER_APPLIED:e=>"".concat(e," filter applied"),FILTERS_CLEARED:"All filters cleared"}},73230:function(e,r,o){"use strict";o.r(r),o.d(r,{default:function(){return ErrorCheckout}});var t=o(85893),n=o(73227),i=o(92161),c=o(67294),a=o(11163);function ErrorCheckout(){let e=(0,a.useRouter)(),{query:r,isReady:o}=e,[n,s]=(0,c.useState)(null),[l,d]=(0,c.useState)(!0),u=(0,c.useRef)(null),m=(0,i.cb)();return((0,c.useEffect)(()=>{if(!o)return;let getErrorDetails=async()=>{d(!0);try{let e=Array.isArray(r.message)?r.message[0]:r.message||"An unexpected error occurred during checkout",o=Array.isArray(r.code)?r.code[0]:r.code||"CHECKOUT_ERROR",t=Array.isArray(r.orderId)?r.orderId[0]:r.orderId;s({message:e,code:o,orderId:t}),m(i.DE.ORDER_ERROR(e),"assertive")}catch(e){console.error("Error fetching error details:",e),s({message:"An unexpected error occurred during checkout",code:"UNKNOWN_ERROR"}),m("Checkout error occurred. Please review the information below and try again.","assertive")}finally{d(!1)}};getErrorDetails()},[r,o,m]),(0,c.useEffect)(()=>{!l&&u.current&&setTimeout(()=>{var e;null===(e=u.current)||void 0===e||e.focus()},100)},[l]),l)?(0,t.jsx)("div",{className:"cart-page",children:(0,t.jsx)("div",{className:"container",children:(0,t.jsx)("div",{className:"cart-block-row",children:(0,t.jsx)("div",{className:"cart-block-left",children:(0,t.jsx)("div",{"aria-live":"polite","aria-busy":"true",role:"status",children:(0,t.jsx)("p",{children:"Loading error details..."})})})})})}):(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"cart-page",children:(0,t.jsxs)("div",{className:"container",children:[(0,t.jsx)("div",{className:"title-row text-left",children:(0,t.jsx)("h1",{ref:u,tabIndex:-1,style:{outline:"none"},children:"Checkout Error"})}),(0,t.jsx)("div",{className:"cart-block-row",children:(0,t.jsxs)("div",{className:"cart-block-left",children:[(0,t.jsxs)("div",{role:"alert","aria-live":"assertive",className:"error-message-box",style:{padding:"1.5rem",marginBottom:"2rem",border:"2px solid #dc2626",backgroundColor:"#fef2f2",borderRadius:"0.5rem"},children:[(0,t.jsx)("p",{style:{marginBottom:"1rem",fontWeight:"bold",color:"#dc2626"},children:(null==n?void 0:n.message)||"An unexpected error occurred during checkout"}),(null==n?void 0:n.code)&&(0,t.jsxs)("p",{style:{fontSize:"0.875rem",color:"#991b1b"},children:["Error Code: ",(0,t.jsx)("code",{children:n.code})]}),(null==n?void 0:n.orderId)&&(0,t.jsxs)("p",{style:{fontSize:"0.875rem",color:"#991b1b"},children:["Order Reference: ",(0,t.jsx)("code",{children:n.orderId})]})]}),(0,t.jsxs)("section",{"aria-labelledby":"error-details-heading",style:{marginBottom:"2rem"},children:[(0,t.jsx)("h2",{id:"error-details-heading",style:{marginBottom:"1rem"},children:"What happened?"}),(0,t.jsx)("p",{style:{marginBottom:"1rem"},children:"We encountered an issue while processing your checkout. This could be due to:"}),(0,t.jsxs)("ul",{style:{marginLeft:"1.5rem",marginBottom:"1rem",listStyleType:"disc"},children:[(0,t.jsx)("li",{children:"Payment processing issues"}),(0,t.jsx)("li",{children:"Network connectivity problems"}),(0,t.jsx)("li",{children:"Session timeout"}),(0,t.jsx)("li",{children:"Invalid shipping or billing information"})]})]}),(0,t.jsxs)("section",{"aria-labelledby":"next-steps-heading",style:{marginBottom:"2rem"},children:[(0,t.jsx)("h2",{id:"next-steps-heading",style:{marginBottom:"1rem"},children:"What can you do?"}),(0,t.jsxs)("ol",{style:{marginLeft:"1.5rem",marginBottom:"1rem",listStyleType:"decimal"},children:[(0,t.jsx)("li",{style:{marginBottom:"0.5rem"},children:"Return to your cart and verify your items"}),(0,t.jsx)("li",{style:{marginBottom:"0.5rem"},children:"Double-check your shipping and billing information"}),(0,t.jsx)("li",{style:{marginBottom:"0.5rem"},children:"Ensure your payment method is valid and has sufficient funds"}),(0,t.jsx)("li",{style:{marginBottom:"0.5rem"},children:"Try the checkout process again"})]})]}),(0,t.jsxs)("div",{style:{display:"flex",gap:"1rem",flexWrap:"wrap",marginBottom:"2rem"},role:"group","aria-label":"Available actions",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{m("Returning to cart","polite"),e.push("/cart",void 0,{shallow:!0})},className:"btn-brand btn","aria-label":"Return to your shopping cart and try again",children:"Return to Cart"}),(0,t.jsx)("button",{type:"button",onClick:()=>{m("Opening email to contact support","polite"),window.location.href="mailto:[email protected]?subject=Checkout Error"},className:"btn btn-secondary",style:{padding:"0.75rem 1.5rem",border:"2px s
1olid #e5e7eb",backgroundColor:"white",borderRadius:"0.375rem",cursor:"pointer"},"aria-label":"Contact customer support via email",children:"Contact Support"})]}),(0,t.jsxs)("aside",{"aria-labelledby":"support-info-heading",style:{marginTop:"2rem",padding:"1rem",backgroundColor:"#f9fafb",borderRadius:"0.375rem"},children:[(0,t.jsxs)("h3",{id:"support-info-heading",style:{fontSize:"0.875rem",marginBottom:"0.5rem"},children:[(0,t.jsx)("strong",{children:"Need help?"})," Our support team is here for you."]}),(0,t.jsxs)("p",{style:{fontSize:"0.875rem"},children:["Email:"," ",(0,t.jsx)("a",{href:"mailto:[email protected]",className:"orange-email-link","aria-label":"Email customer support at [email protected]",children:"[email protected]"})]})]})]})})]})})})}ErrorCheckout.Layout=n.Z}},function(e){e.O(0,[4885,7504,3227,9774,2888,179],function(){return e(e.s=47380)}),_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.