PageSourceSearch

https://www.grays-hockey.com/cdn/shopifycloud/checkout-web/assets/…s-useSuppressShopPayModalOnLoad.Cvo-K0z2.js

js grays-hockey.com collected 2026-09-28 23:59:44 UTC 2,599 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["component-PhoneNumberFormatter.6-emdPAH.js","exports-getCountryCallingCode.B1Uy0QN5.js"])))=>i.map(i=>d[i]);
2import{_ as I}from"./app.DdDscdWN.js";import{N as E,A as v,h as w,q as _,T as R,r as V,f as k}from"./esnext-vendor.DDpcaSqU.js";import{a$ as A,T,a5 as B,eO as L,mD as $,f7 as j,kr as K,mE as D}from"./utilities-previous.Cnwy8G2v.js";import{ig as M}from"./hydrate.BcfGVx0L.js";let b=null,P=null;function Y(e,r="",o,c){const[a,u]=E(({formatter:n,regionCode:s,phoneNumber:S},h)=>{switch(h.type){case"reset":return h.state;case"formatter":{const{PhoneNumberFormatter:m}=h,O=new m(s);return C(S,s,O,o)}case"phone":return C(h.phoneNumber,s,n)}},{phoneNumber:r,regionCode:e,loading:!0},({regionCode:n,phoneNumber:s})=>F(s,n,c,o));let{phoneNumber:p,regionCode:l,formatter:t}=a;const f=a.loading,i=v(r),d=v(e);if(i.current!==r||d.current!==e){const n=d.current!==e,s=/^\+\d/.test(r),S=!n&&s;i.current=r,d.current=e;const m=F(r,S?l??e:e,a.formatter);p=m.phoneNumber,l=m.regionCode,t=m.formatter,u({type:"reset",state:m})}w(()=>{let n=!0;return(async function(){if(t)return;const s=await x();n&&u({type:"formatter",PhoneNumberFormatter:s})})(),()=>{n=!1}},[t]);const N=_(n=>{t&&!/^\+\d/.test(n)&&t.updateRegionCode(e),u({type:"phone",phoneNumber:n})},[t,e]),g=_(n=>{t!=null&&(t.updateRegionCode(n),u({type:"phone",phoneNumber:`+${t.countryCode}${t.getNationalNumber(p)}`}))},[t,p]),y=R(()=>t==null?"+1":`+${t.getCountryCodeFromRegionCode(l??d.current)}`,[t,l]);return{loading:f,formattedNumber:p,formattedNumberValueObject:a.phoneNumberValueObject,regionCode:l,prefix:y,setPhoneNumber:N,selectCountry:g}}function x(){return P||(P=(async()=>{const{default:e}=await V(()=>I(()=>import("./component-PhoneNumberFormatter.6-emdPAH.js"),__vite__mapDeps([0,1])));return b=e,b})(),P)}function C(e,r,o,c){if(o==null)return{phoneNumber:e,phoneNumberValueObject:{value:e},regionCode:r,loading:!0};const a=o.format(e||(c?`+${o.countryCode}`:""));return{formatter:o,phoneNumber:a,phoneNumberValueObject:{value:a},regionCode:o?.regionCode,loading:!1}}function F(e,r,o,c){let a;return o?(o.updateRegionCode(r),a=o):a=b?new b(r):void 0,C(e,r,a,c)}function z(){const{checkoutProtocolPresentedSignal:e}=A(),{checkout:r,router:o}=T(),{allViolations:c}=B(),a=L();return k(()=>{const u=o.currentUrl.value,l=u.searchParams.get($)==="false",t=u.searchParams.get(j),f=r.latestReceipt.value,i=f?M(f):!1,N=c.value?.some(y=>K.has(y.code)),g=()=>a&&!e.value;return!!(t&&t!==D.PromptAllowed&&!l||u.searchParams.get("storefront_wallet")||N||g()||i)})}export{z as a,Y 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.