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{iz as b,bE as k,cW as O,bu as v,gk as E,bl as I,a0 as A,fY as w,dt as B,hp as L,Y as l,pv as F,pw as T,bk as Y,qh as D,e_ as G,qi as M,ay as U,qj as V,c_ as q,qk as H,bI as K,i as x,fs as N,a as r,aC as p,E as j}from"./app.BVDiBddt.js";function z(){const e=b(),{purchasingCompany:t}=k(),a=O(),{checkoutSessionIdentifier:o=""}=v(),s=E(),f=I(),d=A().paymentLines.value,{value:n}=w(),{currentDetour:y}=B(),P=L(),u=l(F),i=l(T),{shopPayEnabled:_}=Y(),{hasSavedCreditCards:S}=D(),c=G(),{value:m}=M(),g=U().searchParams.get(V),C=q().isStandard();return P?.shopPayOptInEnabled===!1||t||!_||a?.__typename==="CustomerProfile"&&s&&(!f||!S)||H(o)||e||g||m||C?!1:y?.type==="thankYou"?n?h({paymentLines:n.lines,isIdealEnabledForShopPay:c,isBogusFlagEnabled:u,isCryptoFlagEnabled:i}):!1:h({paymentLines:d,isIdealEnabledForShopPay:c,isBogusFlagEnabled:u,isCryptoFlagEnabled:i})}const h=({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=x(),{isOptedIn:t}=N();return!z()||!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,z as u}; }