1import{_ as I}from"./isaNu_ef.js";import{_ as w}from"./BaW6VGxn.js";import{d as C,c as n,m,w as i,F as f,b as d,e,p as o,t as r,g as a,h as y,q as P,i as l}from"./CIxJSTE4.js";import{_ as B}from"./DJNNYE14.js";import{u as S}from"./CxrUhRlg.js";const U={class:"max-w-3xl space-y-6 pb-12"},D={key:0,class:"space-y-6"},M={class:"text-lg"},N={class:"rounded-lg border border-gray-200 dark:border-gray-700 bg-gray-50/80 dark:bg-gray-900/40 p-6 space-y-5"},T={class:"flex items-start justify-between gap-4"},F={class:"text-2xl font-semibold"},R={class:"grid gap-4 sm:grid-cols-2 text-sm"},V={class:"font-medium mt-1"},$={class:"font-medium mt-1 break-all"},A={key:0},E={class:"font-medium mt-1"},H={class:"font-medium mt-1 break-all"},j={class:"font-medium mt-1"},q={class:"text-sm"},z={class:"font-medium mt-1 whitespace-pre-line"},L={class:"flex flex-wrap gap-4"},W={key:1,class:"rounded-lg border border-gray-200 dark:border-gray-700 p-6 space-y-4"},Q=C({__name:"membership-payment-success",setup(Y){const{receipt:s,restoreReceipt:_,clearReceipt:g}=S();_();const b=l(()=>s.value?new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(s.value.amount):""),u=l(()=>s.value?.createdAt?new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"}).format(new Date(s.value.createdAt)):""),v=l(()=>s.value?.status?s.value.status.toLowerCase().replace(/_/g," ").replace(/\b\w/g,c=>c.toUpperCase()):"Completed");return(c,t)=>{const x=I,k=w,p=P,h=B;return d(),n(f,null,[m(x,{title:"Payment Successful",description:"Thanks for supporting the Pacific County Historical Society."}),m(h,{class:"py-4"},{default:i(()=>[e("div",U,[o(s)?(d(),n("div",D,[e("p",M," Thanks, "+r(o(s).customerInfo.name)+". Your payment has been received. ",1),e("div",N,[e("div",T,[e("div",null,[t[0]||(t[0]=e("p",{class:"text-sm text-gray-500"},"Payment amount",-1)),e("p",F,r(b.value),1)]),m(k,{color:"primary",variant:"soft"},{default:i(()=>[a(r(v.value),1)]),_:1})]),e("dl",R,[e("div",null,[t[1]||(t[1]=e("dt",{class:"text-gray-500"},"Membership",-1)),e("dd",V,r(o(s).membershipType||"Membership"),1)]),e("div",null,[t[2]||(t[2]=e("dt",{class:"text-gray-500"},"Payment ID",-1)),e("dd",$,r(o(s).paymentId),1)]),u.value?(d(),n("div",A,[t[3]||(t[3]=e("dt",{class:"text-gray-500"},"Processed",-1)),e("dd",E,r(u.value),1)])):y("",!0),e("div",null,[t[4]||(t[4]=e("dt",{class:"text-gray-500"},"Email",-1)),e("dd",H,r(o(s).customerInfo.email),1)]),e("div",null,[t[5]||(t[5]=e("dt",{class:"text-gray-500"},"Phone",-1)),e("dd",j,r(o(s).customerInfo.phone),1)])]),e("div",q,[t[8]||(t[8]=e("p",{class:"text-gray-500"},"Billing address",-1)),e("p",z,[a(r(o(s).customerInfo.address1)+" ",1),o(s).customerInfo.address2?(d(),n(f,{key:0},[t[6]||(t[6]=e("br",null,null,-1)),a(r(o(s).customerInfo.address2),1)],64)):y("",!0),t[7]||(t[7]=e("br",null,null,-1)),a(" "+r(o(s).customerInfo.city)+", "+r(o(s).customerInfo.state)+" "+r(o(s).customerInfo.zip),1)])])]),e("div",L,[m(p,{to:"/membership",onClick:o(g)},{default:i(()=>[...t[9]||(t[9]=[a(" Back to Membership ",-1)])]),_:1},8,["onClick"])])])):(d(),n("div",W,[t[11]||(t[11]=e("p",null,"We couldn't load your payment summary.",-1)),m(p,{to:"/membership"},{default:i(()=>[...t[10]||(t[10]=[a("Return to Membership",-1)])]),_:1})]))])]),_:1})],64)}}});export{Q 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.