1import{h as r}from"./2c1ab0fe.qpvfywqb.js";import{e}from"./4b4bc88f.DkycdxSK.js";import{k as o}from"./164ad2e3.DcJn775M.js";import{u as t}from"./24773686.NjNSWG1C.js";import"./app.DH8n-1bp.js";import"./d0bb51ec.CWfbNPnY.js";import"./f67abd2c.CNaB0QaR.js";import"./e12db40c.DhbHW8sF.js";import"./9dba8418.4R19B40l.js";import"./60a453ce.DBFo6PRx.js";function s(){const{currentPage:s}=o().value,{router:p,observability:u,shopPay:c}=e(),{search:n,pathname:i}=p.currentUrl.value,m=i.includes("/shoppay"),{replaceShopPayInHistory:l}=t(),d=s&&!m;return r(()=>{m&&(u.error(new a('Attempted to render "/shoppay" route in 3 page layout, which is not supported')),u.counter({name:"shop_pay_route_not_found",value:1}),l(c.config.checkoutAsGuestUrl))},[m,u,l,c.config.checkoutAsGuestUrl]),d?(p.redirect({pathname:s.route,search:n}),null):null}class a extends Error{constructor(r){super(r),this.name="RouteNotFoundError"}}export{a as RouteNotFoundError,s as default};
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.