/*!
 * Built by ShiftSoftware
 * Copyright (c)
 */
import{c as e,a as i,b as n}from"./p-BDhR4pDq.js";import{v as r}from"./p-CUREVASG.js";const a=e=>`${e}-label`,t=e=>`${e}-format`,h=e=>`${e}-require`,s=e=>`${e}-size`,c=e=>`${e}-max`,l=e=>`${e}-placeholder`,o=e=>({label:a(e),placeholder:l(e)}),d=e=>`$${e}Required`,m={label:a,format:t,require:h,condition:d,placeholder:l,meta:o,size:s,max:c},w=(a={})=>e(Object.assign({name:n().meta(o("name")).when(d("name"),{is:!0,otherwise:e=>e.optional(),then:e=>e.required(h("name")).min(3,t("name"))}),lastName:n().meta(o("lastName")).when(d("lastName"),{is:!0,otherwise:e=>e.optional(),then:e=>e.required(h("lastName")).min(3,t("lastName"))}),message:n().meta(o("message")).when(d("message"),{is:!0,otherwise:e=>e.optional(),then:e=>e.required(h("message")).min(10,t("message"))}),email:n().meta(o("email")).when(d("email"),{is:!0,otherwise:e=>e.optional(),then:e=>e.required(h("email"))}).email(t("email")),vin:n().meta(o("vin")).when(d("vin"),{is:!0,otherwise:e=>e.optional(),then:e=>e.required(h("vin")).test(t("vin"),t("vin"),(e=>r(null==e?void 0:e.toUpperCase())))}),vehicle:n().meta(o("vehicle")).when(m.condition("vehicle"),{is:!0,otherwise:e=>e.optional(),then:e=>e.required(m.require("vehicle"))}),vacancyId:n().meta(o("vacancyId")).when(m.condition("vacancyId"),{is:!0,otherwise:e=>e.optional(),then:e=>e.required(m.require("vacancyId"))}),companyBranchId:n().meta(o("companyBranchId")).when(m.condition("companyBranchId"),{is:!0,otherwise:e=>e.optional(),then:e=>e.required(m.require("companyBranchId"))}),cityId:n().meta(o("cityId")).when(m.condition("cityId"),{is:!0,otherwise:e=>e.optional(),then:e=>e.required(m.require("cityId"))}),date:n().meta(o("date")).when(d("date"),{is:!0,otherwise:e=>e.optional(),then:e=>e.required(h("date"))}),year:n().meta(o("year")).when(d("year"),{is:!0,otherwise:e=>e.optional(),then:e=>e.required(h("year"))}),time:n().meta(o("time")).when(d("time"),{is:!0,otherwise:e=>e.optional(),then:e=>e.required(h("time"))}),currentVehicleBrand:n().meta(o("currentVehicleBrand")).when("ownVehicle",{is:e=>"yes"===e,then:e=>e.required(h("currentVehicleBrand")),otherwise:e=>e.optional()}),currentVehicleModel:n().meta(o("currentVehicleModel")).when(["ownVehicle","currentVehicleBrand"],{is:(e,i)=>"yes"===e&&"Other"!==i,then:e=>e.required(h("currentVehicleModel")),otherwise:e=>e.optional()}),ownVehicle:n().meta(o("ownVehicle")).when(d("ownVehicle"),{is:!0,otherwise:e=>e.optional(),then:e=>e.required(h("ownVehicle"))}),conditionalCurrentVehicleBrand:n().meta(o("currentVehicleBrand")).when("ownVehicle",{is:e=>"yes"===e,then:e=>e.required(h("currentVehicleBrand")),otherwise:e=>e.optional()}),conditionalCurrentVehicleModel:n().meta(o("currentVehicleModel")).when(["ownVehicle","conditionalCurrentVehicleBrand"],{is:(e,i)=>"yes"===e&&"Other"!==i,then:e=>e.required(h("currentVehicleModel")),otherwise:e=>e.optional()}),gender:i().meta(o("gender")).when(d("gender"),{is:!0,otherwise:e=>e.optional(),then:e=>e.required(h("gender"))})},a));export{c as a,t as f,w as g,o as m,h as r,s,m as y}