1import{h as r}from"./2c1ab0fe.RaLGJvq2.js";import{a as e}from"./f67abd2c.BTHhdhoM.js";import{j as o}from"./164ad2e3.bPUx3Fg0.js";import{u as t}from"./24773686.DFsBOEme.js";import"./app.CPIYcwpp.js";import"./d0bb51ec.BIqtCEEY.js";import"./60a453ce.BHWO3gHr.js";import"./e12db40c.CeuzD2R-.js";import"./9dba8418.DCzpk36x.js";function s(){const{currentPage:s}=o().value,{router:p,observability:u,shopPay:n}=e(),{search:c,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(n.config.checkoutAsGuestUrl))},[m,u,l,n.config.checkoutAsGuestUrl]),d?(p.redirect({pathname:s.route,search:c}),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.