PageSourceSearch

https://www.glowdiet.com/_next/static/chunks/pages/glp1/payment-pending-4abefb86d45586b4.js

js glowdiet.com collected 2026-10-09 16:55:34 UTC 2,712 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6373],{3866:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/glp1/payment-pending",function(){return n(1455)}])},1455:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(4848),c=n(6540),o=n(6715),u=n(4853),i=n(1557),l=n(1930),s=n(9590);function a(){let e=(0,o.useRouter)(),t=(0,c.useMemo)(()=>l.Yk.getSession(),[]),n=(0,c.useMemo)(()=>l.Yk.getPendingCheckout(),[]),[a,d]=(0,c.useState)(!1),[p,h]=(0,c.useState)(!1),[k,_]=(0,c.useState)(!1),[f,w]=(0,c.useState)(""),m=(0,c.useRef)(!1),g=(0,c.useRef)(!1),y=(0,c.useCallback)(async()=>{if(t&&!m.current&&!g.current){m.current=!0,h(!0),w("");try{(0,s.I)("web_glp1_checkout_reconcile_started");let e=await l.ng.reconcileCheckout(t.token);e.completed?(l.Yk.clearDraft(),l.Yk.clearPendingCheckout(),g.current=!0,_(!0),(0,s.I)("web_glp1_checkout_completed",{result:e.overall_status})):(0,s.I)("web_glp1_checkout_reconcile_pending")}catch(e){w(e instanceof Error?e.message:"We could not confirm payment yet."),(0,s.I)("web_glp1_checkout_reconcile_failed",{error_type:"reconcile"})}finally{m.current=!1,h(!1)}}},[t]);return(0,c.useEffect)(()=>{if(!t){e.replace("/glp1/start");return}y()},[y,e,t]),(0,c.useEffect)(()=>{if(!t||k)return;let e=window.setInterval(()=>void y(),5e3);return()=>window.clearInterval(e)},[k,y,t]),(0,r.jsxs)(i.YW,{children:[(0,r.jsx)(u.bV,{title:"GLP-1 Secure Checkout | Glow",noindex:!0,nofollow:!0}),(0,r.jsx)(i.Gk,{action:k?"status":"get-app"}),(0,r.jsx)(i.$f,{children:(0,r.jsxs)(i.Zp,{children:[(0,r.jsx)(i.JR,{children:k?"Payment confirmed.":a?"Complete payment in the secure checkout tab.":"Your secure checkout is ready."}),(0,r.jsx)(i.nB,{children:k?"Your intake is now queued for licensed clinical review.":"Keep this page open. Glow will confirm payment from the care system and update automatically."}),!k&&a&&(0,r.jsx)(i.$T,{children:"After paying, return to this tab. Confirmation can take a few moments."}),f&&(0,r.jsx)(i.$T,{$error:!0,children:f}),(0,r.jsx)(i.En,{children:k?(0,r.jsx)(i.$n,{type:"button",onClick:()=>void e.push("/glp1/status"),children:"Check status"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.$n,{type:"button",$secondary:!0,onClick:()=>void y(),disabled:p,children:p?"Checking…":"I completed payment"}),(0,r.jsx)(i.$n,{type:"button",onClick:()=>{if(!(null==n?void 0:n.url)){w("Your secure checkout link expired. Return to the intake to create a new one.");return}d(!0),(0,s.I)("web_glp1_checkout_opened",{action:"new_tab"}),window.open(n.url,"_blank","noopener,noreferrer")},children:a?"Reopen secure checkout":"Open secure checkout"})]})})]})})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[1106,1112,636,6593,8792],()=>t(3866)),_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.