PageSourceSearch

https://shop.mindbodygreen.com/cdn/shopifycloud/checkout-web/asset…s-useSuppressShopPayModalOnLoad.CI5bzdLE.js

js mindbodygreen.com collected 2026-09-24 08:24:40 UTC 2,186 bytes, 1 lines download raw bytes

1import{T as f,q as g,f as v}from"./esnext-vendor.D7ldIee_.js";import{N as l,B as b,x as k,an as w,$ as E,eQ as R,mX as y,fb as C,kL as F,mY as x}from"./addresses-is-address-empty.-MuOhIyI.js";import{c as B,D as p,b as O}from"./constants.DowbVE6J.js";import{hK as _}from"./hydrate.ByRIsqvd.js";function N(){let e,r;const a=new Promise((t,s)=>{e=t,r=s});return{get promise(){return a},resolve(t){e(t)},reject(t){r(t)}}}let u=null,i=null;function L({observability:e,url:r}){if(i)return i;const a=r.sandboxAutocomplete(),t={current:null},{promise:s,resolve:o}=N();if(i=s,!u){const d=n=>async c=>{e.leaveErrorBreadcrumb("Autocomplete iframe loaded",{url:a,event:JSON.stringify(c),time:Date.now(),specialId:n?.getAttribute(p)}),t.current=O(n,a,"autocomplete",e,{}),o(t)};u=B({id:"Autocomplete-IFrame",name:"Autocomplete-IFrame",url:a,privileges:["allow-scripts","allow-same-origin"],iframeSpecialId:k(),onLoad:d}),e.leaveErrorBreadcrumb("Autocomplete iframe created",{url:a,specialId:u.getAttribute(p)})}return i}function h(){const{observability:e,url:r}=l();return g(()=>L({observability:e,url:r}),[e,r])}function j(){const{shop:{id:e},source:{sourceId:r,checkoutSessionIdentifier:a}}=l(),t=h();return f(()=>{function s(){return{shopId:b(e),sourceId:r||"",checkoutSessionIdentifier:a||""}}return{async search(...o){return(await t()).current.call.search(...o)},async fetchAddress(...o){return(await t()).current.call.fetchAddress(...o)},async formatAddress(o){return(await t()).current.call.formatAddress(o,s())},async fetchCountriesWithPhoneNumberPrefix(o){return(await t()).current.call.fetchCountriesWithPhoneNumberPrefix(o,s())}}},[t,e,r,a])}function G(){const e=h();return f(()=>({async validation(...r){return(await e()).current.call.validation(...r)}}),[e])}function M(){const{checkoutProtocolPresentedSignal:e}=w(),{checkout:r,router:a}=l(),{allViolations:t}=E(),s=R();return v(()=>{const o=a.currentUrl.value,n=o.searchParams.get(y)==="false",c=o.searchParams.get(C),m=r.latestReceipt.value,P=m?_(m):!1,S=t.value?.some(I=>F.has(I.code)),A=()=>s&&!e.value;return!!(c&&c!==x.PromptAllowed&&!n||o.searchParams.get("storefront_wallet")||S||A()||P)})}export{M as a,G as b,L as g,j 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.