var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}var window = _____WB$wombat$assign$function_____("window");
var self = _____WB$wombat$assign$function_____("self");
var document = _____WB$wombat$assign$function_____("document");
var location = _____WB$wombat$assign$function_____("location");
var top = _____WB$wombat$assign$function_____("top");
var parent = _____WB$wombat$assign$function_____("parent");
var frames = _____WB$wombat$assign$function_____("frames");
var opener = _____WB$wombat$assign$function_____("opener");
import{iv as _,bO as g,d4 as C,bl as b,gc as v,bo as k,a0 as O,fQ as E,dD as I,hl as w,bk as A,p$ as D,fu as M,q0 as T,au as V,q1 as q,d8 as F,q2 as L,bS as U,i as K,q3 as Y,a,aC as n,E as x}from"./app.ZXowmuNl.js";function G(){const e=_(),{purchasingCompany:t}=g(),s=C(),{checkoutSessionIdentifier:i=""}=b(),c=v(),l=k(),p=O().paymentLines.value,{value:o}=E(),{currentDetour:h}=I(),f=w(),{shopPayEnabled:d}=A(),{hasSavedCreditCards:y}=D(),r=M(),{value:P}=T(),S=V().searchParams.get(q),m=F().isStandard();return f?.shopPayOptInEnabled===!1||t||!d||s?.__typename==="CustomerProfile"&&c&&(!l||!y)||L(i)||e||S||P||m?!1:h?.type==="thankYou"?o?u(o.lines,r):!1:u(p,r)}const u=(e,t)=>{if(!e?.length||!e[0].method)return!1;const{method:s}=e[0];return!!(s.type==="direct"||s.type===U.CreditCard||t&&s.type==="local"&&s.name==="IDEAL")};function Q(){const e=K(),{isOptedIn:t}=Y();return!G()||!t?null:a(x,{color:"subdued",children:e("shop_pay.checkout.sign_up_footer.button_footer",{privacy_href:a(n,{target:"_blank",href:"https://www.shopify.com/legal/privacy/app-users",children:e("shop_pay.checkout.sign_up_footer.privacy_policy","Privacy Policy")}),terms_href:a(n,{target:"_blank",href:"https://shop.app/terms-of-service",children:e("shop_pay.checkout.sign_up_footer.terms_of_service","Terms of Service")})},"Your info will be saved to a Shop account. By continuing, you agree to Shop’s %{terms_href} and acknowledge the %{privacy_href}.")})}export{Q as S,G as u};