import{_ as __}from"./wordpress.chunk.BVds2GcU.js";import{U as e}from"./user.chunk.pqINMGd0.js";import{aZ as i,a_ as l}from"./main.chunk.N-eZ2ybB.js";import{d as n,q as s,f as u,e as t,h as a,n as o,g as d}from"./forms.chunk.Bz8aaTWe.js";const r=n({id:d.string().nullish(),amount:o().min(1),is_editing:a().nullish().default(!1)}),h=n({id:d.string().nullish(),amount:o().min(1),description:u(),is_editing:a().nullish().default(!1)});n({suggested_option:s(["amount-only","amount-description"]).nullish(),amounts:t(r).nullish(),amount_descriptions:t(h).nullish(),default_id:u().nullish()});const _=s(["draft","published","pending","funded","declined","completed","trashed"]),m=s(["raised-amount","number-of-contributions","number-of-contributors"]),f=n({id:d.string(),title:u({message:__("The title field is required.","growfund")}).max(255,{message:__("The campaign title could have max 255 characters.","growfund")}),slug:u().max(300,{message:__("The campaign slug could have max 300 characters.","growfund")}).nullish(),description:u().nullish(),story:u().nullish(),images:l.nullish(),video:i.nullish(),is_featured:a().default(!1),category:u({message:__("The category field is required.","growfund")}).nullish(),sub_category:u().nullish(),start_date:d.date({message:__("The launch date is required.","growfund")}).nullish(),end_date:d.date({message:__("The end date is required.","growfund")}).nullish(),location:u().nullish(),tags:t(u()).nullish(),collaborators:t(u()).nullish(),show_collaborator_list:a().default(!0),status:_.default("draft"),risks:u().nullish(),has_goal:a().default(!0),goal_type:m.nullish(),goal_amount:o().nullish(),reaching_action:s(["close","continue"]).nullish(),confirmation_title:u().nullish(),confirmation_description:u().nullish(),provide_confirmation_pdf_receipt:a().default(!0),faqs:t(n({question:u(),answer:u()})).nullish()}),g=n({author:e.nullish(),fundraiser:e.nullish()}),c=n({number_of_contributions:o().nullish(),number_of_contributors:o().nullish(),fund_raised:o().nullish()}),p=n({pledge_from:o({message:__("Pledge from is required","growfund")}),pledge_to:o({message:__("Pledge to is required","growfund")}),appreciation_message:u({message:__("Appreciation Message is required","growfund")})}),b=n({appreciation_type:s(["goodies","giving-thanks"]).nullish(),giving_thanks:t(p).nullish(),rewards:t(u()).nullish(),allow_pledge_without_reward:a().default(!1),min_pledge_amount:o().nullish(),max_pledge_amount:o().nullish(),allow_local_pickup:a().default(!1),is_ready_for_pickup:a().default(!1)}),w=n({goal_amount:o().nullish(),number_of_donations:o().nullish(),number_of_donors:o().nullish(),allow_custom_donation:a().nullish().default(!1),min_donation_amount:o().nullish(),max_donation_amount:o().nullish(),suggested_option_type:s(["amount-only","amount-description"]).nullish().default("amount-only"),suggested_options:t(n({amount:o(),description:u().nullish(),is_default:a().default(!1)})).nullish().default([]),has_tribute:a().default(!0),tribute_requirement:s(["required","optional"]).default("optional").nullish(),tribute_title:u().nullish(),tribute_options:t(n({message:u(),is_editing:a().default(!1),is_default:a().default(!1)})).nullish().default([]),tribute_notification_preference:s(["send-ecard","send-post-mail","send-ecard-and-post-mail","donor-decide"]).nullish().default("donor-decide"),fund_selection_type:s(["fixed","donor-decide"]).nullish().default("fixed"),default_fund:u().nullish(),fund_choices:t(u()).nullish(),donation_count:o().nullish()}),q=n({donation_count:o().nullish()}),y=f.merge(g).merge(b).merge(w).merge(c),v=f.merge(g).merge(w).merge(q),x=y.extend({is_interactive:a().default(!1),is_launched:a().default(!1),last_decline_reason:u().nullish(),preview_url:u().nullish(),number_of_individual_contributions:o().default(0),uncharged_pledge_count:o().default(0),is_backed:a().default(!1),is_paused:a().default(!1),is_hidden:a().default(!1),is_ended:a().default(!1)});v.omit({video:!0}).extend({video:u().nullish(),images:t(u()).nullish()});const k=f.merge(b),T=f.merge(w),j=k.merge(T).merge(n({fundraiser_id:u().nullish()}));export{_ as C,j as a,x as b};
