1import{q as e,k as s}from"./2c1ab0fe.Bywc2Brn.js";import{c as t,v as o,cG as n,cI as r}from"./9dba8418.nSn06qNc.js";import{b as a,f as c,h as i,i as l}from"./78ab3dd0.B6GdoLl_.js";import{cx as u}from"./164ad2e3.Bn4mVc0u.js";function d(s){const t=m(s);return e((e,s=a.Express)=>{const o=s===a.Express,n=c(o,e);t({event:n,walletType:s})},[t])}function p(s){const t=m(s);return e((e,s=a.Express)=>{const o=s===a.Express,n=l(o,e);t({event:n,walletType:s})},[t])}function m(s){const{userEvents:n,shop:{id:r}}=t();return e(({event:e,ttl:t,walletType:a,eventSubtype:c})=>{const l=parseInt(o(r),10),u=i({walletName:s,shopId:l,eventName:e,walletType:a,ttl:t,eventSubtype:c});u&&n.monorailEvent(u)},[n,r,s])}function f(){const{checkout:s}=t(),{locationAddress:o}=s.negotiator.parts,n=u(),r=e(e=>{const s=o.fields.countryCode.value;return Boolean(n.value&&s&&e!==s)},[o,n]),a=e((e,{dismissible:t=!0,onCancel:o}={})=>{!function(e,s,{dismissible:t=!0,onCancel:o}={}){let n=null;const r=new Promise(e=>{n=e});e.setCrossBorderConfirmState({onConfirm:t=>{e.setCrossBorderConfirmState(null),t.setSelectedMethodTypes(["SHIPPING"]),s(),n?.()},...t&&{onCancel:()=>{e.setCrossBorderConfirmState(null),o?.(),n?.()}},modalPromise:r})}(s,e,{dismissible:t,onCancel:o})},[s]);return{shouldGateCrossBorder:r,crossBorderGate:a}}function C(){const{checkout:{negotiator:e}}=t(),{shippingAddress:o}=e.parts,a=n();return s(()=>{const e=o.value?.countryCode;if(!e)return!1;const s=a.value;if(!s)return!1;const t=r(s)?.pickupLocation?.address.countryCode;return!!t&&e!==t})}export{f as a,d as b,p as c,C as d,m 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.