import{o as i,c as s,d as o,n as a,s as e,l as n}from"./schemas-BrV_YNaF.js";import{n as t}from"./coerce-DtM_iCts.js";const l=i({name:e().min(3,"Name must be at least 3 characters").max(200),legal_name:e().optional(),tax_registration_number:e().optional(),address_line1:e().min(10,"Address Line 1 must be at least 10 characters").max(200),address_line2:e().optional(),country_id:a().optional(),state_id:a().optional(),city_id:a().optional(),postal_code:e().min(4,"Postal code must be at least 4 characters").max(20,"Postal code must be at most 20 characters"),phone:e().min(10,"Phone number must be at least 10 digits").max(15,"Phone number must be at most 15 digits"),email:e().email("Invalid email format"),website:e().url("Invalid URL").optional().or(n("")),payment_terms:t().int().positive("Payment terms must be positive"),credit_limit:e().optional(),preferred_currency_id:t().int().positive("Currency is required"),default_expense_account_id:a().optional(),payable_account_id:a().int().positive("Payable account is required"),is_1099_vendor:o().default(!1),status:s(["ACTIVE","INACTIVE"]).default("ACTIVE")});export{l as v};
