1import{a1 as _,r as f,af as C,a3 as g,a$ as k,M as i,ao as x,N as p,ag as e,al as l,ah as a,am as n,an as o,a5 as w,ak as b,ai as M,bj as P}from"./CqWH0BZP.js";import{i as B}from"./BoA7liN9.js";import{g as E}from"./RrNCYXFM.js";const K={class:"popup"},V={class:"popup-header"},H={class:"payment-error-body"},L={class:"header"},N=["onKeydown","innerHTML"],S={key:0},j={class:"button-section"},D=["onKeydown"],F=["onKeydown"],T={style:{display:"flex","align-items":"center","flex-wrap":"nowrap","min-width":"0",gap:"3px"}},I={role:"none",width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",style:{padding:"1px"},xmlns:"http://www.w3.org/2000/svg"},O="rentals-payment-error-open",z=_({__name:"PaymentErrorModal",props:{error:{type:String,default:""}},emits:["retryPayment","cancelPayment"],setup(m,{emit:v}){const y=f(!0),{t:d}=C(),u=v,r=h=>{typeof document>"u"||document.body.classList[h?"add":"remove"](O)};function c(){r(!1),u("retryPayment")}function t(){r(!1),u("cancelPayment"),y.value=!1}return g(()=>{r(!0)}),k(()=>{r(!1)}),(h,s)=>(i(),x(P,{to:"body"},[y.value?(i(),p("div",{key:0,class:M(["rentals-payment-error-overlay",{"iframe-embed":a(B)()}])},[e("div",K,[e("div",V,[s[0]||(s[0]=e("div",{style:{"margin-top":"6px"}},[e("svg",{role:"none",width:"60",height:"60",viewBox:"0 0 66 66",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("rect",{x:"5",y:"5",width:"56",height:"56",rx:"28",fill:"#FEE4E2"}),e("rect",{x:"5",y:"5",width:"56",height:"56",rx:"28",stroke:"#FEF3F2","stroke-width":"10"}),e("path",{d:"M38.2502 37.6663L44.0835 43.4997M44.0835 37.6663L38.2502 43.4997M44.6668 30.6663H21.3335M44.6668 32.9997V28.5663C44.6668 27.2596 44.6668 26.6062 44.4125 26.107C44.1888 25.668 43.8319 25.311 43.3928 25.0873C42.8937 24.833 42.2403 24.833 40.9335 24.833H25.0668C23.76 24.833 23.1066 24.833 22.6075 25.0873C22.1685 25.311 21.8115 25.668 21.5878 26.107C21.3335 26.6062 21.3335 27.2596 21.3335 28.5663V37.433C21.3335 38.7398 21.3335 39.3932 21.5878 39.8923C21.8115 40.3314 22.1685 40.6883 22.6075 40.912C23.1066 41.1663 23.76 41.1663 25.0668 41.1663H33.0002",stroke:"#D92D20","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e("div",H,[e("div",L,[e("div",null,l(a(d)("payment_failed")),1),e("div",{role:"button",tabindex:"0",onClick:t,onKeydown:[n(o(t,["prevent"]),["enter"]),n(o(t,["prevent"]),["space"])],class:"close-icon",id:"close-payment-button","aria-label":"Close",innerHTML:a(E)({svgName:"close",color:"var(--cal_rentals_widget-text-color)"})},null,40,N)]),m.error?(i(),p("p",S,l(m.error),1)):w("",!0)])]),e("div",j,[e("div",{onClick:t,onKeydown:[n(o(t,["prevent"]),["enter"]),n(o(t,["prevent"]),["space"])],class:"cancel",role:"button",tabindex:"0",id:"cancel-payment-button"},l(a(d)("cancel")),41,D),e("div",{class:"retry-button",onClick:c,onKeydown:[n(o(c,["prevent"]),["enter"]),n(o(c,["prevent"]),["space"])],role:"button",tabindex:"0",id:"retry-payment-button"},[e("span",T,[(i(),p("svg",I,s[1]||(s[1]=[e("path",{d:"M1.6665 8.33333C1.6665 8.33333 3.33732 6.05685 4.6947 4.69854C6.05208 3.34022 7.92783 2.5 9.99984 2.5C14.142 2.5 17.4998 5.85786 17.4998 10C17.4998 14.1421 14.142 17.5 9.99984 17.5C6.58059 17.5 3.69576 15.2119 2.79298 12.0833M1.6665 8.33333V3.33333M1.6665 8.33333H6.6665",stroke:"var(--cal_rentals_widget-background-color)","stroke-width":"1.66667","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))),b(" "+l(a(d)("retry_payment")),1)])],40,F)])])],2)):w("",!0)]))}}),U=Object.assign(z,{__name:"PreviewElementsRentalsCommonPaymentErrorModal"});export{U as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.