var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); import{iB as b,bE as O,cW as k,bu as v,gl as E,bl as I,a0 as A,fY as B,dt as L,hr as w,Y as l,pD as F,pE as T,bk as Y,qp as D,eN as q,qq as G,ay as M,qr as U,c_ as V,qs as H,bI as K,i as N,fs as x,a as r,aC as p,E as J}from"./app.HYTB0DCS.js";function R(){const e=b(),{purchasingCompany:t}=O(),a=k(),{checkoutSessionIdentifier:o=""}=v(),s=E(),h=I(),d=A().paymentLines.value,{value:n}=B(),{currentDetour:y}=L(),P=w(),u=l(F),i=l(T),{shopPayEnabled:_}=Y(),{hasSavedCreditCards:S}=D(),c=q(),{value:m}=G(),g=M().searchParams.get(U),C=V().isStandard();return P?.shopPayOptInEnabled===!1||t||!_||a?.__typename==="CustomerProfile"&&s&&(!h||!S)||H(o)||e||g||m||C?!1:y?.type==="thankYou"?n?f({paymentLines:n.lines,isIdealEnabledForShopPay:c,isBogusFlagEnabled:u,isCryptoFlagEnabled:i}):!1:f({paymentLines:d,isIdealEnabledForShopPay:c,isBogusFlagEnabled:u,isCryptoFlagEnabled:i})}const f=({paymentLines:e,isIdealEnabledForShopPay:t,isBogusFlagEnabled:a,isCryptoFlagEnabled:o})=>{if(!e?.length||!e[0].method)return!1;const{method:s}=e[0];return s.type==="customOnsite"?!!(a&&s.paymentBrands?.includes("bogus_app_coin")||o&&s.paymentBrands?.includes("usdc")):!!(s.type==="direct"||s.type===K.CreditCard||t&&s.type==="local"&&s.name==="IDEAL")};function Q(){const e=N(),{isOptedIn:t}=x();return!R()||!t?null:r(J,{color:"subdued",children:e("shop_pay.checkout.sign_up_footer.button_footer",{privacy_href:r(p,{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:r(p,{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,R as u}; }