import{_ as __}from"./wordpress.chunk.BVds2GcU.js";import{bG as e}from"./main.chunk.N-eZ2ybB.js";import{b as a}from"./campaign.chunk.BU0ryCmb.js";import{c as n}from"./reward.chunk.BtCj3Ub4.js";import{q as s,d as i,f as l,h as t,g as r,n as d}from"./forms.chunk.Bz8aaTWe.js";const o=s(["pending","completed","backed","failed","cancelled","refunded","trashed","in-progress"]),u=s(["with-rewards","without-rewards"],{errorMap:()=>({message:"Please select a pledge option."})}),p=s(["paid","unpaid","partially-refunded","refunded","failed","pending"]),m=i({amount:d().nullish(),bonus_support_amount:d().nullish(),shipping_cost:d().nullish(),recovery_fee:d().nullish(),total:d().nullish(),payment_method:i({name:l(),logo:l(),type:s(["online-payment","manual-payment"]),label:l(),instruction:l().nullish()}),payment_status:p.nullish(),transaction_id:l().nullish()}),h=i({id:r.string(),uid:r.string(),status:o.default("pending"),pledge_option:u.nullish(),notes:l().nullish(),delivery_option:s(["home-delivery","local-pickup"]).default("home-delivery"),is_ready_for_pickup:t().default(!1),is_manual:t().default(!1),created_at:l(),updated_at:l().nullish()}),c=h.extend({campaign_id:l().nullish(),user_id:l().nullish(),reward_id:l().nullish(),payment_method:l({message:__("Payment method is required.","growfund")})});h.extend({campaign:a,backer:e,reward:n.nullish(),payment:m});export{o as P,m as a,c as b,p as c};
