PageSourceSearch

https://hermes-dvg.pages.dev/assets/checkout-redirect-CG6ozzQV.js

js hermes-dvg.pages.dev collected 2026-10-03 05:13:14 UTC 2,256 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`c1a726f6141e4aa01dfe7e02a11027378f02d107`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`b08aff87-9245-4748-a2fc-5e50699abd88`,e._sentryDebugIdIdentifier=`sentry-dbid-b08aff87-9245-4748-a2fc-5e50699abd88`)}catch{}})();import{a as e}from"./rolldown-runtime-DW32sG3F.js";import{JO as t,YO as n,cO as r,dO as i,nO as a}from"./api-resources-CSaVvmVc.js";import{Ar as o,Mr as s,jr as c}from"./ui-components-DGaxy1bU.js";import{_r as l,wr as u}from"./ui-libs-6zPYteRq.js";import{U as d}from"./ui-date-BIzbLEGT.js";import{t as f}from"./payment-methods-ClMm_XZk.js";import{t as p}from"./with-permissions-fV4AnkX1.js";import{n as m,r as h,t as g}from"./checkout-return-to-CShhxfy1.js";var _=e(n(),1),v=t(),y={i18n:[`checkout`],i18nTitle:`pages:checkoutRedirect.title`},b=(e,t)=>{let n=h(e);return g(e),m(n,t)?n:null},x=async({request:e,params:t})=>{let n=new URL(e.url),s=n.searchParams.get(`purchase_id`),c=n.searchParams.get(`pos`)===`1`?`&pos=1`:``,u=t?.lang||`ar-sa`;if(!s)return l(`/`);o(s),await a();let d=(await i.fetchQuery(r.getOptions()))?.user?.store?.id,p=n.searchParams.get(`payment_method`),m=`purchase_id=${s}&from=${n.pathname.includes(`subscription/checkout/checkout-redirect`)?`subscription`:`checkout`}${p===f.BANK_TRANSFER||p===f.ZID_WALLET?`&payment_method=${p}`:``}${c}`,h=b(s,d);return l(h?`/${u}${h}?${m}`:`/${u}/stores/${d}?${m}`)},S=p(()=>{let e=c(),{id:t}=d(),n=(0,_.useRef)(!1),{search:r,pathname:i}=u(),a=(0,_.useMemo)(()=>new URLSearchParams(r),[r]),o=a.get(`purchase_id`)??``,l=a.get(`pos`)===`1`?`&pos=1`:``,p=a.get(`payment_method`),m=p===f.BANK_TRANSFER||p===f.ZID_WALLET?`&payment_method=${p}`:``;return(0,_.useEffect)(()=>{if(!o||n.current)return;let r=`purchase_id=${o}&from=${i.includes(`subscription/checkout/checkout-redirect`)?`subscription`:`checkout`}${m}${l}`;n.current=!0;let a=b(o,t);if(a){e(`${a}?${r}`,{replace:!0});return}e(`/stores/${t}/?${r}`,{replace:!0})},[o,t,e,i,l,m]),(0,v.jsx)(s,{})},{checkOne:`checkout.page.options.manage`});export{x as n,y as r,S as t};
2//# sourceMappingURL=checkout-redirect-CG6ozzQV.js.map

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.