1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3699],{93626:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/link-building.disabled/order-success",function(){return t(27462)}])},28335:function(e,r,t){"use strict";t.d(r,{Z:function(){return n}});let n=(0,t(1).Z)("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},50947:function(e,r,t){"use strict";t.d(r,{Ol:function(){return l},SZ:function(){return d},Zb:function(){return i},aY:function(){return o},eW:function(){return u},ll:function(){return c}});var n=t(85893),s=t(67294),a=t(91220);let i=s.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,n.jsx)("div",{ref:r,className:(0,a.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",t),...s})});i.displayName="Card";let l=s.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,n.jsx)("div",{ref:r,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",t),...s})});l.displayName="CardHeader";let c=s.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,n.jsx)("h3",{ref:r,className:(0,a.cn)("text-2xl font-semibold leading-none tracking-tight",t),...s})});c.displayName="CardTitle";let d=s.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,n.jsx)("p",{ref:r,className:(0,a.cn)("text-sm text-muted-foreground",t),...s})});d.displayName="CardDescription";let o=s.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,n.jsx)("div",{ref:r,className:(0,a.cn)("p-6 pt-0",t),...s})});o.displayName="CardContent";let u=s.forwardRef((e,r)=>{let{className:t,...s}=e;return(0,n.jsx)("div",{ref:r,className:(0,a.cn)("flex items-center p-6 pt-0",t),...s})});u.displayName="CardFooter"},27462:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return j}});var n=t(85893),s=t(67294),a=t(9008),i=t.n(a),l=t(11163),c=t(41664),d=t.n(c),o=t(43579),u=t(50947),f=t(95364),x=t(11373),m=t(28335),h=t(42392),p=t(975);function j(){let e=(0,l.useRouter)(),{order_id:r,payment_intent:t,redirect_status:a}=e.query,[c,j]=(0,s.useState)("loading"),[g,N]=(0,s.useState)(null);return(0,s.useEffect)(()=>{e.isReady&&(async()=>{if(r){let e=Number(r);if(N(e),"succeeded"!==a&&a)j("error");else try{await p.S.confirmOrder(e),j("success")}catch(e){console.error("Error confirming order:",e),j("success")}}else j("error")})()},[e.isReady,r,a]),(0,n.jsxs)(o.A,{children:[(0,n.jsx)(i(),{children:(0,n.jsx)("title",{children:"Order Status | ReviewMySiteNow"})}),(0,n.jsx)("div",{className:"container mx-auto px-4 py-16 max-w-lg",children:(0,n.jsx)(u.Zb,{children:(0,n.jsxs)(u.aY,{className:"py-12 text-center",children:["loading"===c&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.Z,{className:"h-16 w-16 animate-spin mx-auto mb-4 text-primary"}),(0,n.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"Processing Your Order"}),(0,n.jsx)("p",{className:"text-muted-foreground",children:"Please wait while we confirm your payment..."})]}),"success"===c&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.Z,{className:"h-16 w-16 text-green-500 mx-auto mb-4"}),(0,n.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"Order Placed Successfully!"}),(0,n.jsxs)("p",{className:"text-muted-foreground mb-6",children:["Your order #",g," has been received. We'll start working on it right away."]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-center",children:[(0,n.jsx)(d(),{href:"/link-building/orders/".concat(g),children:(0,n.jsx)(f.z,{children:"View Order"})}),(0,n.jsx)(d(),{href:"/link-building",children:(0,n.jsx)(f.z,{variant:"outline",children:"Back to Link Building"})})]})]}),"error"===c&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.Z,{className:"h-16 w-16 text-red-500 mx-auto mb-4"}),(0,n.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"Payment Issue"}),(0,n.jsx)("p",{className:"text-muted-foreground mb-6",children:"There was an issue processing your payment. Please try again or contact support."}),(0,n.jsx)("div",{className:"flex gap-4 justify-center",children:(0,n.jsx)(d(),{href:"/link-building",children:(0,n.jsx)(f.z,{children:"Back to Link Building"})})})]})]})})})]})}},9008:function(e,r,t){e.exports=t(50494)}},function(e){e.O(0,[400,9580,5214,3579,2888,9774,179],function(){return e(e.s=93626)}),_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.