1import{X as f,x as v,T as l,q as u,h as m}from"./esnext-vendor.DDpcaSqU.js";import{a5 as C,g2 as E,T as M,dE as T}from"./utilities-previous.Cnwy8G2v.js";import{cs as U,e as g}from"./hydrate.BcfGVx0L.js";const p=f(!1);p.displayName="CompactContext";function b(){return v(p)}const x=()=>{const{value:t}=C().deliveryNext,o=E(t,"ONE_TIME_PURCHASE"),n=o?.status==="available"?o:void 0,[i,a]=U({type:"ONE_TIME_PURCHASE",deliveryMethodType:"PICKUP_POINT"}),{negotiate:c}=g(),e=l(()=>n?.methods?.filter(s=>s.pickupLocation&&s.methodType==="PICKUP_POINT")??[],[n]),h=l(()=>e.find(({handle:s})=>s===i),[e,i]),y=u(({pickupPoint:s,pickupPointHandle:r})=>{const d=s??e.find(({handle:P})=>P===r);d&&(a(d.handle),c({}))},[e,a,c]);return m(()=>{if(e?.length<1)return;e.some(r=>r.handle===i)||a(e[0].handle)},[a,i,e]),{pickupPoints:e,selectedPickupPoint:h,setProposedPickupPoint:y}};function _(){const{observability:t,source:o,shopPay:n}=M();return{openModal:u(a=>{n.user.isUnauthenticatedUser.value?n.session.unstable_setUnauthenticatedErrorModal(a):t.error(new T("Cannot open an unauthenticated error modal outside of the unauthenticated flow",{groupingHash:"ShopPayError::UnauthenticatedErrorModal"}),{severity:"error",metadata:{source:{type:o.type},checkout:{token:o.checkoutSessionIdentifier||o.sourceId},event:{modalType:a.type,shopPayFlow:n.user.flow.value}}})},[t,o,n])}}const H=t=>t===""?"":`${t.charAt(0).toLocaleUpperCase()+t.substring(1)}`;export{p as C,x as a,b,H as c,_ 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.