import{Pt as e}from"./630ba094.L_X-5TXi.js";import{Mh as t,Sh as a,Tw as o,Zh as r,bf as s,xO as l}from"./6ec9a0fa.rdcQt2v8.js";import{t as c}from"./8b7d6012.TWTlrVbe.js";function n(){const{checkout:n,router:u}=l(),{checkoutProtocolPresentedSignal:i}=n.negotiator.context,{allViolations:m}=n.negotiator.current.fields,f=c();return e(()=>{const e=u.currentUrl.value,l="false"===e.searchParams.get(a),c=e.searchParams.get(s),h=n.latestReceipt.value,P=!!h&&r(h),g=m.value?.some(e=>o.has(e.code));return Boolean(c&&c!==t.PromptAllowed&&!l||e.searchParams.get("storefront_wallet")||g||f&&!i.value||P)})}export{n as t};