1import{h as r}from"./2c1ab0fe.Bywc2Brn.js";import{c as e}from"./9dba8418.ogFVeXB5.js";import{k as o}from"./164ad2e3.CZ86Jn5i.js";import{u as t}from"./24773686.BN3rGjti.js";import"./app.DWJ9FfA1.js";import"./d0bb51ec.DFDQ8Mc_.js";import"./f67abd2c.LtwWKIr5.js";import"./60a453ce.CcyvSWbx.js";import"./e12db40c.B9ahJFAB.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.