1import{u as o,S as u}from"./esnext-vendor.DQ9BNaJe.js";import{C as _,L as y,bi as h,l as f,J as v}from"./hydrate.D4A9Cb0p.js";import{T as E,a5 as k,eV as C,gX as O,km as d,eT as T,eW as g}from"./addresses-is-address-empty.BB1pvxM5.js";const M=v("MarketsProTermsModal"),b=v("MarketsProPrivacyModal");function F({textProps:t}){const{i18n:e,shop:{name:n}}=E(),i=k(),r=_(void 0,M),a=_(void 0,b),c=i.managedMarketsPaymentProcessor?.value==="shopify_payments"?"https://content.global-e.com/shopper-terms-v2":"https://content.global-e.com/shopper-terms",l={markets_pro_terms:o(u,{children:[o(y,{textDecoration:"none",commandFor:r,children:e.translate("payment.markets_pro_disclaimer_terms_and_conditions")}),o(h,{id:r,source:c,heading:e.translate("payment.markets_pro_disclaimer_terms_and_conditions_title")})]}),privacy_policy:o(u,{children:[o(y,{textDecoration:"none",commandFor:a,children:e.translate("payment.markets_pro_disclaimer_privacy_policy")}),o(h,{id:a,source:"https://content.global-e.com/privacy-policy",heading:e.translate("payment.markets_pro_disclaimer_privacy_policy_title")})]}),shop_name:n};return o(f,{...t,children:e.translate("payment.markets_pro_disclaimer_label",l)})}const m=d.Control,P="shop_pay_new_signup_login_variant",N=["draftOrder","simulated"];function R({shop:t,checkout:e,source:n,router:i,client:r},{url:a=i.currentUrl.value}={}){const s=e.identity.current.value==="shopPay",c=a.searchParams.get(C),l=t.hasFlagEnabled(O),S=e.proposal.negotiated.fields.buyerIdentity.value?.customerProfile!=null,I=c!==g.ShopPayAsPaymentMethod&&c!==g.ShopPayInstallmentsAsPaymentMethod;if(!(s&&I&&!N.includes(n.type)&&(!S||l)))return m;const p=U({client:r},a);return p||(T(a.search)?m:l?d.UnauthenticatedCheckout:m)}function U({client:t},e){const n=Object.values(d),i=e.searchParams.get(P),r=n.find(s=>s===i);if(r)return r;const a=t.cookies.get(P);return n.find(s=>s===a)}const D=[d.UnauthenticatedCheckout];function w(){const t=E(),e=t.router.currentUrl.value;return R(t,{url:e})}export{F as M,D as U,w 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.