@@ -5,15 +5,6 @@ import { quickValidateEmail } from '@/lib/messaging/email/validation'
55
66const FREE_EMAIL_DOMAINS = new Set ( freeEmailDomains )
77
8- export const DEMO_REQUEST_REGION_VALUES = [
9- 'north_america' ,
10- 'europe' ,
11- 'asia_pacific' ,
12- 'latin_america' ,
13- 'middle_east_africa' ,
14- 'other' ,
15- ] as const
16-
178export const DEMO_REQUEST_COMPANY_SIZE_VALUES = [
189 '1_10' ,
1910 '11_50' ,
@@ -24,15 +15,6 @@ export const DEMO_REQUEST_COMPANY_SIZE_VALUES = [
2415 '10000_plus' ,
2516] as const
2617
27- export const DEMO_REQUEST_REGION_OPTIONS = [
28- { value : 'north_america' , label : 'North America' } ,
29- { value : 'europe' , label : 'Europe' } ,
30- { value : 'asia_pacific' , label : 'Asia Pacific' } ,
31- { value : 'latin_america' , label : 'Latin America' } ,
32- { value : 'middle_east_africa' , label : 'Middle East & Africa' } ,
33- { value : 'other' , label : 'Other' } ,
34- ] as const
35-
3618export const DEMO_REQUEST_COMPANY_SIZE_OPTIONS = [
3719 { value : '1_10' , label : '1–10' } ,
3820 { value : '11_50' , label : '11–50' } ,
@@ -73,9 +55,6 @@ export const demoRequestSchema = z.object({
7355 . max ( 50 , 'Phone number must be 50 characters or less' )
7456 . optional ( )
7557 . transform ( ( value ) => ( value && value . length > 0 ? value : undefined ) ) ,
76- region : z . enum ( DEMO_REQUEST_REGION_VALUES , {
77- errorMap : ( ) => ( { message : 'Please select a region' } ) ,
78- } ) ,
7958 companySize : z . enum ( DEMO_REQUEST_COMPANY_SIZE_VALUES , {
8059 errorMap : ( ) => ( { message : 'Please select company size' } ) ,
8160 } ) ,
@@ -84,10 +63,6 @@ export const demoRequestSchema = z.object({
8463
8564export type DemoRequestPayload = z . infer < typeof demoRequestSchema >
8665
87- export function getDemoRequestRegionLabel ( value : DemoRequestPayload [ 'region' ] ) : string {
88- return DEMO_REQUEST_REGION_OPTIONS . find ( ( option ) => option . value === value ) ?. label ?? value
89- }
90-
9166export function getDemoRequestCompanySizeLabel ( value : DemoRequestPayload [ 'companySize' ] ) : string {
9267 return DEMO_REQUEST_COMPANY_SIZE_OPTIONS . find ( ( option ) => option . value === value ) ?. label ?? value
9368}
0 commit comments