const a="Complete Stripe setup in Payments before you can approve this booking. Guests cannot pay until your payout account is active.",u="This host hasn't set up payments yet, so this listing can't take bookings right now. Waiting won't change that. Message the host to let them know you're interested.",p="This host hasn't set up payments yet, so bookings are paused.";function g(e){if(!e||typeof e!="object")return null;const t=e;return typeof t.message=="string"&&t.message.trim().length>0?t.message:Array.isArray(t.message)&&t.message.length>0?t.message.join(", "):typeof t.error=="string"&&t.error.trim().length>0?t.error:null}function c(e,t="Please try again."){var i,r;if(e&&typeof e=="object"){const n=e,s=(r=(i=n.response)==null?void 0:i.data)==null?void 0:r.message;if(typeof s=="string"&&s.trim().length>0)return s;if(Array.isArray(s)&&s.length>0)return s.join(", ");if(typeof n.message=="string"&&n.message.trim().length>0)return n.message}return typeof e=="string"&&e.trim().length>0?e:t}function o(e){const t=e.toLowerCase();return t.includes("not yet available for booking")||t.includes("complete their account setup")||t.includes("complete stripe setup in payments")||t.includes("finished setting up payments")||t.includes("finished setting up stripe payouts")||t.includes("finish setting up stripe to accept this booking")}function l(e){return o(e)?a:e}function f(e){return o(e)?u:e}export{u as G,p as a,l as b,c as g,o as i,f as m,g as p};