PageSourceSearch

https://hamuhk.com/cdn/shopifycloud/checkout-web/assets/c1/ed9f2238.ChGZ5py3.js

js hamuhk.com collected 2026-10-02 05:41:31 UTC 5,391 bytes, 1 lines download raw bytes

1import{g as p,h as M,q as a}from"./2c1ab0fe.BqEHHmaW.js";import{bp as v,bZ as I,O as l,G as g,Q as h,cG as D,cI as B}from"./4c290a1e.FJVsH4yi.js";import{iU as x,ck as T}from"./164ad2e3.BA-GikTU.js";var z=(e=>(e.ApplePay="ApplePay",e.Checkout="Checkout",e.PayPalV6="PayPalV6",e.Venmo="Venmo",e.GooglePay="GooglePay",e.ShopifyPay="ShopifyPay",e.ShopPayApplePay="ShopPayApplePay",e))(z||{}),F=(e=>(e.Attempt="attempt",e.Success="success",e.Cancelled="cancelled",e.Failure="failure",e.Clicked="clicked",e.Initialized="initialized",e.NascarDrawerOpen="open",e.NascarDrawerClose="close",e))(F||{}),u=(e=>(e.Express="express",e.PaymentMethod="payment_method",e))(u||{}),G=(e=>(e.InitCalled="spb_init_called",e.ClickAcceleratedClicked="spb_instrument_click__accelerated__clicked",e.ClickSheetClicked="spb_instrument_click__sheet__clicked",e.ClickAcceleratedInitialized="spb_instrument_click__accelerated__initialized",e.ClickSheetInitialized="spb_instrument_click__sheet__initialized",e.ClickAcceleratedSuccess="spb_instrument_click__accelerated__success",e.ClickSheetSuccess="spb_instrument_click__sheet__success",e.ClickAcceleratedCancelled="spb_instrument_click__accelerated__cancelled",e.ClickSheetCancelled="spb_instrument_click__sheet__cancelled",e.ClickAcceleratedFailed="spb_instrument_click__accelerated__failure",e.ClickSheetFailed="spb_instrument_click__sheet__failure",e.SheetLoaded="spb_instrument_sheet_loaded",e.AuthAcceleratedAttempt="spb_instrument_auth__accelerated__attempt",e.AuthSheetAttempt="spb_instrument_auth__sheet__attempt",e.AuthAcceleratedSuccess="spb_instrument_auth__accelerated__success",e.AuthSheetSuccess="spb_instrument_auth__sheet__success",e.AuthAcceleratedFailure="spb_instrument_auth__accelerated__failure",e.AuthSheetFailure="spb_instrument_auth__sheet__failure",e.AuthorizationAttempt="wallets_authorization_attempt",e.AuthorizationComplete="wallets_authorization_complete",e.CryptoModalCancelled="checkout_crypto_payment_modal__cancelled",e.CryptoModalCompleted="checkout_crypto_payment_modal__completed",e.CryptoModalRendered="checkout_crypto_payment_modal__rendered",e.CryptoModalWalletAction="checkout_crypto_payment_modal__wallet_action",e.CryptoModalError="checkout_crypto_payment_modal__error",e.RecoveryFlowInitiated="spb_instrument_recovery_flow__initiated",e))(G||{});function L(){const e=v();return p(()=>({screenWidth:typeof window>"u"?0:window.innerWidth,cartValue:e.value?.amount,currencyCode:e.value?.currencyCode}))}function U(e,t){const s=I(),{userEvents:r}=l(),n=L();M(()=>{const{defaultAttributes:c}=s.value;if(!c)return;const o=m(e),i=d({walletName:void 0,shopId:c.shopId,eventName:"spb_init_called",nascarData:{...n.value,walletsRenderedCount:t,walletsRenderedNames:o},walletType:"payment_method"});i&&r.monorailEvent(i)},[r,n.value,e,t,s])}function Z({state:e,shopId:t,paymentMethods:s,nascarData:r}){const n=m(s);return d({walletName:"NascarDrawer",shopId:t,eventName:e,nascarData:{...r,walletsRenderedNames:n}})}function d({walletName:e,shopId:t,eventName:s,nascarData:r,walletType:n,ttl:c,eventSubtype:o}){const i=x();return i?R({eventName:s,shopId:t,defaultAttributes:i,nascarData:r,walletType:n,walletName:e,ttl:c,eventSubtype:o}):null}function R({eventName:e,shopId:t,defaultAttributes:s,nascarData:r,walletName:n,walletType:c,ttl:o,eventSubtype:i}){const{uniqToken:_,visitToken:C,microSessionId:y,microSessionCount:f=0,themeId:A,themeCityHash:b,contentLanguage:P,referer:w,checkoutToken:S}=s??{};return{schemaId:"shopify_wallet_checkout_track/6.3",payload:{event:e,eventSubtype:i??c??"express",appName:"checkout",pageType:"checkout",checkoutToken:S,instrumentId:n,checkoutOne:!0,uniqToken:_,visitToken:C,microSessionId:y,microSessionCount:f,shopId:t,themeId:A,themeCityHash:b||"",contentLanguage:P,referer:w,...o&&{ttl:o},...r&&{...r}}}}function V(e,t){return`${e?"spb_instrument_click__accelerated_":"spb_instrument_click__sheet_"}_${t}`}function $(e,t){return`spb_instrument_auth__${e?"accelerated":"sheet"}__${t}`}function m(e){return e.map(t=>t.name).join(",")}function J(e){const t=k(e);return a((s,r=u.Express)=>{const n=r===u.Express,c=V(n,s);t({event:c,walletType:r})},[t])}function K(e){const t=k(e);return a((s,r=u.Express)=>{const n=r===u.Express,c=$(n,s);t({event:c,walletType:r})},[t])}function k(e){const{userEvents:t,shop:{id:s}}=l();return a(({event:r,ttl:n,walletType:c,eventSubtype:o})=>{const i=parseInt(g(s),10),_=d({walletName:e,shopId:i,eventName:r,walletType:c,ttl:n,eventSubtype:o});_&&t.monorailEvent(_)},[t,s,e])}function H(e,t,{dismissible:s=!0,onCancel:r}={}){let n=null;const c=new Promise(o=>{n=o});e.setCrossBorderConfirmState({onConfirm:o=>{e.setCrossBorderConfirmState(null),o.setSelectedMethodTypes(["SHIPPING"]),t(),n?.()},...s&&{onCancel:()=>{e.setCrossBorderConfirmState(null),r?.(),n?.()}},modalPromise:c})}function X(){const{checkout:e}=l(),{locationAddress:t}=h(),s=T(),r=a(c=>{const o=t.fields.countryCode.value;return!!(s.value&&o&&c!==o)},[t,s]),n=a((c,{dismissible:o=!0,onCancel:i}={})=>{H(e,c,{dismissible:o,onCancel:i})},[e]);return{shouldGateCrossBorder:r,crossBorderGate:n}}function Y(){const{shippingAddress:e}=h(),t=D();return p(()=>{const s=e.value?.countryCode;if(!s)return!1;const r=t.value;if(!r)return!1;const n=B(r)?.pickupLocation?.address.countryCode;return n?s!==n:!1})}export{G as W,X as a,z as b,u as c,J as d,F as e,K as f,R as g,L as h,U as i,Z as j,Y as k,k 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.