1import{q as d}from"./esnext-vendor.BBoIVOQW.js";import{T as w,I as v,aF as b}from"./addresses-is-address-empty.ZJ1ThpFy.js";import{b as a,i as h,j as M,k as T}from"./cross-border-hooks.BN4C-Hww.js";function N(t){const e=f(t);return d((n,o=a.Express)=>{const i=o===a.Express,r=h(i,n);e({event:r,walletType:o})},[e])}function S(t){const e=f(t);return d((n,o=a.Express)=>{const i=o===a.Express,r=T(i,n);e({event:r,walletType:o})},[e])}function f(t){const{userEvents:e,shop:{id:n}}=w();return d(({event:o,ttl:i,walletType:r,eventSubtype:p})=>{const m=parseInt(v(n),10),c=M({walletName:t,shopId:m,eventName:o,walletType:r,ttl:i,eventSubtype:p});c&&e.monorailEvent(c)},[e,n,t])}const P=/Shop App\/[^/]+\/(?:iOS|Android)\//i;function s(t){return/Android/i.test(t)?"android":"ios"}function l(t=typeof window>"u"?"":window.navigator.userAgent,e,n){return n&&n!=="web"?s(t):e&&e!=="WEB"?/android/i.test(e)?"android":"ios":P.test(t)||typeof window<"u"&&window.ReactNativeWebView?s(t):"web"}function k(t){if(!/Macintosh/i.test(t)||typeof window>"u"||!window.navigator)return!1;const e=window.navigator.maxTouchPoints;return typeof e=="number"&&e>1}function E(t){return/iPad|Macintosh|Linux; Android/i.test(t)}function u(t){return/iPad/i.test(t)||/Android/i.test(t)&&!/Mobile/i.test(t)||k(t)}function x(t){return/iPhone|iPod/i.test(t)||/Android/i.test(t)&&/Mobile/i.test(t)}function y(t=typeof window>"u"?"":window.navigator.userAgent,e,n){return l(t,e,n)!=="web"?E(t)&&u(t)?"tablet":"mobile":u(t)?"tablet":x(t)?"mobile":"desktop"}function I(t,e,n,o={}){const{embedPlatform:i,shopAppSurface:r}=o;return{...b(t,e,n),platform:l(void 0,i,r),deviceType:y(void 0,i,r)}}export{N as a,S as b,I as g,f 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.