1import{u as o,S as u}from"./esnext-vendor.DDpcaSqU.js";import{F as _,L as y,bC as h,l as I,M as v}from"./hydrate.BcfGVx0L.js";import{T as E,a5 as k,f3 as C,h7 as M,kx as d,f1 as O,f4 as g}from"./utilities-previous.Cnwy8G2v.js";const T=v("MarketsProTermsModal"),b=v("MarketsProPrivacyModal");function F({textProps:t}){const{i18n:e,shop:{name:n}}=E(),i=k(),r=_(void 0,T),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(I,{...t,children:e.translate("payment.markets_pro_disclaimer_label",l)})}const p=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(M),S=e.proposal.negotiated.fields.buyerIdentity.value?.customerProfile!=null,f=c!==g.ShopPayAsPaymentMethod&&c!==g.ShopPayInstallmentsAsPaymentMethod;if(!(s&&f&&!N.includes(n.type)&&(!S||l)))return p;const m=U({client:r},a);return m||(O(a.search)?p:l?d.UnauthenticatedCheckout:p)}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.