const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["component-Captcha.C7lpQWF2.js","app.BTSv6d-3.js","assets/app.Du6SSCMk.css","ShopPayCaptcha.GU4dTp2z.js","assets/Captcha.CJQgLR0i.css"])))=>i.map(i=>d[i]); import{sm as m,p$ as B,kU as b,c as g,aR as w,a as e,y as h,sn as f,L as v,V as W,F as A,dR as R,so as S,n0 as x,m_ as T,q as z,hk as I,sp as L,n3 as N,aE as V,l as k}from"./app.BTSv6d-3.js";const E=m({load:()=>B(()=>b(()=>import("./component-Captcha.C7lpQWF2.js"),__vite__mapDeps([0,1,2,3,4])))});function M({isForExpressCheckout:t=!1}){const a=g(),{merchantPolicies:l}=w(),n=t?"small":"generic",i=l?.find(c=>c.handle==="subscription-policy"),s=e(h,{type:n,children:a("payment.purchase_options_cancellation_policy_label")}),o=i?e(v,{overlay:e(f,{handle:"subscription-policy",title:a("shop_policies.purchase_options_cancellation_policy")}),children:s}):s;return e(W,{id:"purchase_options_agreement",padding:t?["small100","none","none","none"]:"none",children:e(h,{color:"subdued",type:n,children:t?a("payment.purchase_options_agreement_label_wallets"):a("payment.purchase_options_agreement_label",{cancellation_policy_label:o})})})}const O=({disabled:t,loading:a,defaultLabel:l,pixelId:n})=>{const{nextPage:i}=A(),s=R(),o=i.id==="review",c=S(),_=x(),{setPayNowButtonElement:u}=T(),d=z(P=>{s(n)(P),u(P)},[s,u,n]),y=_&&!o,r=c&&!o,p=I(!1);return r&&!p.value&&(p.value=!0),e(k,{children:[p.value&&e(L,{disabled:t,loading:a,hidden:!r}),y&&e(N,{disabled:t,loading:a,pixelId:n}),!r&&!y&&e(V,{variant:"primary",size:"large",type:"submit",inlineSize:"fill",loading:a,disabled:t,ref:d,children:l})]})};export{E as C,M as P,O as a};