import{u as e,K as d,d as f,S as u}from"./dist-vendor.DBR6g02j.js";import{B as s,k as l,cq as m,v as i}from"./shop-pay-ButtonWithRegisterWebPixel.Bb6ujYnt.js";import{a as p,aQ as g}from"./shop-pay-FullScreenBackground.CUfzz8_n.js";import{T as h}from"./utilities-MarketsProDisclaimer.BIFM8Ivw.js";const y=t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 50 50",...t,children:[e("path",{strokeWidth:2,d:"M49 25c0 13.255-10.745 24-24 24S1 38.255 1 25 11.745 1 25 1s24 10.745 24 24Z",style:{stroke:"currentColor"}}),e("path",{d:"M39 12 12 39m0-27 27 27",style:{stroke:"currentColor"}})]}),_=t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 50 50",...t,children:[e("path",{strokeWidth:2,d:"M49 25c0 13.255-10.745 24-24 24S1 38.255 1 25 11.745 1 25 1s24 10.745 24 24Z",style:{stroke:"currentColor"}}),e("path",{strokeWidth:2,d:"m15 24.511 7.307 7.307L35.125 19",style:{stroke:"currentColor"}})]}),k=t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 50 50",...t,children:[e("path",{strokeWidth:2,d:"M49 25c0 13.255-10.745 24-24 24S1 38.255 1 25 11.745 1 25 1s24 10.745 24 24Z",style:{stroke:"currentColor"}}),e("path",{strokeLinecap:"square",strokeWidth:2,d:"M25 11v19",style:{stroke:"currentColor"}}),e("path",{fillRule:"evenodd",d:"M25 39a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd",style:{fill:"currentColor"}})]}),x="GrCfj",C={AnimatedIcon:x},S={success:_,cancelled:y,warning:k},o="48px";function c({status:t,color:n="var(--x-default-color-accent)",animated:r=!1}){const a=S[t];return e(s,{maxBlockSize:o,maxInlineSize:o,minBlockSize:o,minInlineSize:o,className:r?C.AnimatedIcon:void 0,children:e(a,{focusable:"false","aria-hidden":"true",style:{color:n}})})}function B({children:t,status:n}){return e(l,{accessibilityRole:"header",direction:"inline",alignItems:"center",justifyContent:"start",gap:"base",children:[e(c,{status:n,animated:n==="success"}),e(s,{children:t})]})}function v(){const{i18n:t}=p(),r=d().searchParams.get("expired")==="true";f({stage:u.Complete,id:"OffsitePaymentFailed"}),m("OffsitePaymentFailed");const a=r?t.translate("offsite_payment_failed.payment_link_expired_title"):t.translate("offsite_payment_failed.payment_not_processed_title");return e(g,{children:e(s,{padding:"none large-500",children:e(l,{gap:"large-300",alignItems:"center",children:[e(h,{children:a}),e(c,{status:"warning",color:"var(--x-default-color-critical)"}),e(l,{gap:"base",children:[e(i,{textAlign:"center",children:a}),e(i,{textAlign:"center",color:"subdued",fonts:"secondary",children:r?t.translate("offsite_payment_failed.payment_link_expired_text"):t.translate("offsite_payment_failed.payment_not_processed_text")})]})]})})})}const M=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"}));export{B as C,M as O,c as a};
