1import{q as e,k as s}from"./2c1ab0fe.RaLGJvq2.js";import{a as t,p as o,cx as n,cz as r}from"./f67abd2c.BTHhdhoM.js";import{b as a,f as c,h as i,i as l}from"./78ab3dd0.DVuP3OIA.js";import{cv as u}from"./164ad2e3.bPUx3Fg0.js";function d(s){const t=f(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=f(s);return e((e,s=a.Express)=>{const o=s===a.Express,n=l(o,e);t({event:n,walletType:s})},[t])}function f(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 m(){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{m as a,d as b,p as c,C as d,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.