PageSourceSearch

https://telepathicinstruments.com/cdn/shopifycloud/checkout-web/as…ShopPayNewSignupLoginExperiment.vaE9WYHy.js

js telepathicinstruments.com collected 2026-09-25 23:50:36 UTC 1,653 bytes, 1 lines download raw bytes

1import{T as y,q as g,h as v}from"./esnext-vendor.B9Da21W6.js";import{a4 as S,g1 as _,f3 as m,h7 as O,kt as p,f1 as I,f4 as f,S as N}from"./addresses-is-address-empty.Bn2lNY_L.js";import{ck as T,f as C}from"./hydrate.DZ4YTm7p.js";const b=()=>{const{value:o}=S().deliveryNext,t=_(o,"ONE_TIME_PURCHASE"),a=t?.status==="available"?t:void 0,[r,n]=T({type:"ONE_TIME_PURCHASE",deliveryMethodType:"PICKUP_POINT"}),{negotiate:s}=C(),e=y(()=>a?.methods?.filter(i=>i.pickupLocation&&i.methodType==="PICKUP_POINT")??[],[a]),l=y(()=>e.find(({handle:i})=>i===r),[e,r]),u=g(({pickupPoint:i,pickupPointHandle:c})=>{const P=i??e.find(({handle:d})=>d===c);P&&(n(P.handle),s({}))},[e,n,s]);return v(()=>{if(e?.length<1)return;e.some(c=>c.handle===r)||n(e[0].handle)},[n,r,e]),{pickupPoints:e,selectedPickupPoint:l,setProposedPickupPoint:u}},h=p.Control,E="shop_pay_new_signup_login_variant",U=["draftOrder","simulated"];function R({shop:o,checkout:t,source:a,router:r,client:n},{url:s=r.currentUrl.value}={}){const e=t.identity.current.value==="shopPay",l=s.searchParams.get(m),u=o.hasFlagEnabled(O),i=t.proposal.negotiated.fields.buyerIdentity.value?.customerProfile!=null,c=l!==f.ShopPayAsPaymentMethod&&l!==f.ShopPayInstallmentsAsPaymentMethod;if(!(e&&c&&!U.includes(a.type)&&(!i||u)))return h;const d=A({client:n},s);return d||(I(s.search)?h:u?p.UnauthenticatedCheckout:h)}function A({client:o},t){const a=Object.values(p),r=t.searchParams.get(E),n=a.find(e=>e===r);if(n)return n;const s=o.cookies.get(E);return a.find(e=>e===s)}const D=[p.UnauthenticatedCheckout];function H(){const o=N(),t=o.router.currentUrl.value;return R(o,{url:t})}export{D as U,H as a,b 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.