1import{k as e}from"./2c1ab0fe.qpvfywqb.js";import{e as a,O as t,Q as r,T as o,U as s}from"./4b4bc88f.DkycdxSK.js";import{N as n}from"./164ad2e3.DcJn775M.js";function c(e){return function(e){return e.replace(/([a-z])([A-Z]+)/g,(e,a,t)=>`${a} ${t}`).replace(/([A-Z])([A-Z]+)([^a-zA-Z0-9]*)$/,(e,a,t,r)=>a+t.toLowerCase()+r).replace(/([A-Z]+)([A-Z][a-z])/g,(e,a,t)=>`${a.toLowerCase()} ${t}`)}(e).replace(/\W+/g," ").split(/ |\B(?=[A-Z])/).map(e=>e.toLowerCase()).join("_")}function l(){const{client:e}=a();return!0===e.unstable_getSerialization("preloaded")}function i(){const{checkout:c,router:i}=a(),{checkoutProtocolPresentedSignal:u}=c.negotiator.context,{allViolations:p}=c.negotiator.current.fields,f=l();return e(()=>{const e=i.currentUrl.value,a="false"===e.searchParams.get(t),l=e.searchParams.get(r),m=c.latestReceipt.value,g=!!m&&n(m),A=p.value,d=A?.some(e=>o.has(e.code));return Boolean(l&&l!==s.PromptAllowed&&!a||e.searchParams.get("storefront_wallet")||d||f&&!u.value||g)})}export{i as a,c as t,l as u};
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.