PageSourceSearch

https://rgive.com/assets/Contact-Dga0akun.js

js rgive.com collected 2026-10-06 16:24:28 UTC 62,256 bytes, 11 lines download raw bytes

vendor: 8,409 bytes, lines 1-11
1import{c as Ce,u as Ze,a as Re,r as F,j as m,P as Ee,H as Ie,F as $e,m as se,L as ze,B as Pe,b as Le,t as Ve,d as Me}from"./index-Ct1V_Npw.js";import{s as De}from"./client-miRd_zNj.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Be=Ce("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const Ue=Ce("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var x;(function(s){s.assertEqual=r=>{};function e(r){}s.assertIs=e;function t(r){throw new Error}s.assertNever=t,s.arrayToEnum=r=>{const n={};for(const i of r)n[i]=i;return n},s.getValidEnumValues=r=>{const n=s.objectKeys(r).filter(o=>typeof r[r[o]]!="number"),i={};for(const o of n)i[o]=r[o];return s.objectValues(i)},s.objectValues=r=>s.objectKeys(r).map(function(n){return r[n]}),s.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const n=[];for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&n.push(i);return n},s.find=(r,n)=>{for(const i of r)if(n(i))return i},s.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function a(r,n=" | "){return r.map(i=>typeof i=="string"?`'${i}'`:i).join(n)}s.joinValues=a,s.jsonStringifyReplacer=(r,n)=>typeof n=="bigint"?n.toString():n})(x||(x={}));var le;(function(s){s.mergeShapes=(e,t)=>({...e,...t})})(le||(le={}));const l=x.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),A=s=>{switch(typeof s){case"undefined":return l.undefined;case"string":return l.string;case"number":return Number.isNaN(s)?l.nan:l.number;case"boolean":return l.boolean;case"function":return l.function;case"bigint":return l.bigint;case"symbol":return l.symbol;case"object":return Array.isArray(s)?l.array:s===null?l.null:s.then&&typeof s.then=="function"&&s.catch&&typeof s.catch=="function"?l.promise:typeof Map<"u"&&s instanceof Map?l.map:typeof Set<"u"&&s instanceof Set?l.set:typeof Date<"u"&&s instanceof Date?l.date:l.object;default:return l.unknown}},c=x.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class T extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(n){return n.message},a={_errors:[]},r=n=>{for(const i of n.issues)if(i.code==="invalid_union")i.unionErrors.map(r);else if(i.code==="invalid_return_type")r(i.returnTypeError);else if(i.code==="invalid_arguments")r(i.argumentsError);else if(i.path.length===0)a._errors.push(t(i));else{let o=a,f=0;for(;f<i.path.length;){const h=i.path[f];f===i.path.length-1?(o[h]=o[h]||{_errors:[]},o[h]._errors.push(t(i))):o[h]=o[h]||{_errors:[]},o=o[h],f++}}};return r(this),a}static assert(e){if(!(e instanceof T))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,x.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},a=[];for(const r of this.issues)if(r.path.length>0){const n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else a.push(e(r));return{formErrors:a,fieldErrors:t}}get formErrors(){return this.flatten()}}T.create=s=>new T(s);const re=(s,e)=>{let t;switch(s.code){case c.invalid_type:s.received===l.undefined?t="Required":t=`Expected ${s.expected}, received ${s.received}`;break;case c.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(s.expected,x.jsonStringifyReplacer)}`;break;case c.unrecognized_keys:t=`Unrecognized key(s) in object: ${x.joinValues(s.keys,", ")}`;break;case c.invalid_union:t="Invalid input";break;case c.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${x.joinValues(s.options)}`;break;case c.invalid_enum_value:t=`Invalid enum value. Expected ${x.joinValues(s.options)}, received '${s.received}'`;break;case c.invalid_arguments:t="Invalid function arguments";break;case c.invalid_return_type:t="Invalid function return type";break;case c.invalid_date:t="Invalid date";break;case c.invalid_string:typeof s.validation=="object"?"includes"in s.validation?(t=`Invalid input: must include "${s.validation.includes}"`,typeof s.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${s.validation.position}`)):"startsWith"in s.validation?t=`Invalid input: must start with "${s.validation.startsWith}"`:"endsWith"in s.validation?t=`Invalid input: must end with "${s.validation.endsWith}"`:x.assertNever(s.validation):s.validation!=="regex"?t=`Invalid ${s.validation}`:t="Invalid";break;case c.too_small:s.type==="array"?t=`Array must contain ${s.exact?"exactly":s.inclusive?"at least":"more than"} ${s.minimum} element(s)`:s.type==="string"?t=`String must contain ${s.exact?"exactly":s.inclusive?"at least":"over"} ${s.minimum} character(s)`:s.type==="number"?t=`Number must be ${s.exact?"exactly equal to ":s.inclusive?"greater than or equal to ":"greater than "}${s.minimum}`:s.type==="bigint"?t=`Number must be ${s.exact?"exactly equal to ":s.inclusive?"greater than or equal to ":"greater than "}${s.minimum}`:s.type==="date"?t=`Date must be ${s.exact?"exactly equal to ":s.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(s.minimum))}`:t="Invalid input";break;case c.too_big:s.type==="array"?t=`Array must contain ${s.exact?"exactly":s.inclusive?"at most":"less than"} ${s.maximum} element(s)`:s.type==="string"?t=`String must contain ${s.exact?"exactly":s.inclusive?"at most":"under"} ${s.maximum} character(s)`:s.type==="number"?t=`Number must be ${s.exact?"exactly":s.inclusive?"less than or equal to":"less than"} ${s.maximum}`:s.type==="bigint"?t=`BigInt must be ${s.exact?"exactly":s.inclusive?"less than or equal to":"less than"} ${s.maximum}`:s.type==="date"?t=`Date must be ${s.exact?"exactly":s.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(s.maximum))}`:t="Invalid input";break;case c.custom:t="Invalid input";break;case c.invalid_intersection_types:t="Intersection results could not be merged";break;case c.not_multiple_of:t=`Number must be a multiple of ${s.multipleOf}`;break;case c.not_finite:t="Number must be finite";break;default:t=e.defaultError,x.assertNever(s)}return{message:t}};let Fe=re;function We(){return Fe}const qe=s=>{const{data:e,path:t,errorMaps:a,issueData:r}=s,n=[...t,...r.path||[]],i={...r,path:n};if(r.message!==void 0)return{...r,path:n,message:r.message};let o="";const f=a.filter(h=>!!h).slice().reverse();for(const h of f)o=h(i,{data:e,defaultError:o}).message;return{...r,path:n,message:o}};function d(s,e){const t=We(),a=qe({issueData:e,data:s.data,path:s.path,errorMaps:[s.common.contextualErrorMap,s.schemaErrorMap,t,t===re?void 0:re].filter(r=>!!r)});s.common.issues.push(a)}class j{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const a=[];for(const r of t){if(r.status==="aborted")return p;r.status==="dirty"&&e.dirty(),a.push(r.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,t){const a=[];for(const r of t){const n=await r.key,i=await r.value;a.push({key:n,value:i})}return j.mergeObjectSync(e,a)}static mergeObjectSync(e,t){const a={};for(const r of t){const{key:n,value:i}=r;if(n.status==="aborted"||i.status==="aborted")return p;n.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),n.value!=="__proto__"&&(typeof i.value<"u"||r.alwaysSet)&&(a[n.value]=i.value)}return{status:e.value,value:a}}}const p=Object.freeze({status:"aborted"}),W=s=>({status:"dirty",value:s}
vendor: 5,848 bytes, line 11
11),C=s=>({status:"valid",value:s}),ue=s=>s.status==="aborted",fe=s=>s.status==="dirty",M=s=>s.status==="valid",Y=s=>typeof Promise<"u"&&s instanceof Promise;var u;(function(s){s.errToObj=e=>typeof e=="string"?{message:e}:e||{},s.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(u||(u={}));class E{constructor(e,t,a,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=a,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const he=(s,e)=>{if(M(e))return{success:!0,data:e.value};if(!s.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new T(s.common.issues);return this._error=t,this._error}}};function y(s){if(!s)return{};const{errorMap:e,invalid_type_error:t,required_error:a,description:r}=s;if(e&&(t||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:r}:{errorMap:(i,o)=>{const{message:f}=s;return i.code==="invalid_enum_value"?{message:f??o.defaultError}:typeof o.data>"u"?{message:f??a??o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:f??t??o.defaultError}},description:r}}class _{get description(){return this._def.description}_getType(e){return A(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:A(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new j,ctx:{common:e.parent.common,data:e.data,parsedType:A(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Y(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const a=this.safeParse(e,t);if(a.success)return a.data;throw a.error}safeParse(e,t){const a={common:{issues:[],async:(t==null?void 0:t.async)??!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:A(e)},r=this._parseSync({data:e,path:a.path,parent:a});return he(a,r)}"~validate"(e){var a,r;const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:A(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:t});return M(n)?{value:n.value}:{issues:t.common.issues}}catch(n){(r=(a=n==null?void 0:n.message)==null?void 0:a.toLowerCase())!=null&&r.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(n=>M(n)?{value:n.value}:{issues:t.common.issues})}async parseAsync(e,t){const a=await this.safeParseAsync(e,t);if(a.success)return a.data;throw a.error}async safeParseAsync(e,t){const a={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:A(e)},r=this._parse({data:e,path:a.path,parent:a}),n=await(Y(r)?r:Promise.resolve(r));return he(a,n)}refine(e,t){const a=r=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(r):t;return this._refinement((r,n)=>{const i=e(r),o=()=>n.addIssue({code:c.custom,...a(r)});return typeof Promise<"u"&&i instanceof Promise?i.then(f=>f?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,t){return this._refinement((a,r)=>e(a)?!0:(r.addIssue(typeof t=="function"?t(a,r):t),!1))}_refinement(e){return new B({schema:this,typeName:g.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return R.create(this,this._def)}nullable(){return U.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return S.create(this)}promise(){return K.create(this,this._def)}or(e){return Q.create([this,e],this._def)}and(e){return X.create(this,e,this._def)}transform(e){return new B({...y(this._def),schema:this,typeName:g.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new ie({...y(this._def),innerType:this,defaultValue:t,typeName:g.ZodDefault})}brand(){return new pt({typeName:g.ZodBranded,type:this,...y(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new oe({...y(this._def),innerType:this,catchValue:t,typeName:g.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return de.create(this,e)}readonly(){return ce.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const He=/^c[^\s-]{8,}
vendor: 5,956 bytes, line 11
11$/i,Je=/^[0-9a-z]+$/,Ye=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Ge=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Qe=/^[a-z0-9_-]{21}$/i,Xe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Ke=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,et=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,tt="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ae;const st=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,at=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,rt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,nt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,it=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ot=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Se="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ct=new RegExp(`^${Se}$`);function Te(s){let e="[0-5]\\d";s.precision?e=`${e}\\.\\d{${s.precision}}`:s.precision==null&&(e=`${e}(\\.\\d+)?`);const t=s.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`}function dt(s){return new RegExp(`^${Te(s)}$`)}function lt(s){let e=`${Se}T${Te(s)}`;const t=[];return t.push(s.local?"Z?":"Z"),s.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function ut(s,e){return!!((e==="v4"||!e)&&st.test(s)||(e==="v6"||!e)&&rt.test(s))}function ft(s,e){if(!Xe.test(s))return!1;try{const[t]=s.split(".");if(!t)return!1;const a=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),r=JSON.parse(atob(a));return!(typeof r!="object"||r===null||"typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||e&&r.alg!==e)}catch{return!1}}function ht(s,e){return!!((e==="v4"||!e)&&at.test(s)||(e==="v6"||!e)&&nt.test(s))}class Z extends _{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==l.string){const n=this._getOrReturnCtx(e);return d(n,{code:c.invalid_type,expected:l.string,received:n.parsedType}),p}const a=new j;let r;for(const n of this._def.checks)if(n.kind==="min")e.data.length<n.value&&(r=this._getOrReturnCtx(e,r),d(r,{code:c.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),a.dirty());else if(n.kind==="max")e.data.length>n.value&&(r=this._getOrReturnCtx(e,r),d(r,{code:c.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),a.dirty());else if(n.kind==="length"){const i=e.data.length>n.value,o=e.data.length<n.value;(i||o)&&(r=this._getOrReturnCtx(e,r),i?d(r,{code:c.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):o&&d(r,{code:c.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),a.dirty())}else if(n.kind==="email")et.test(e.data)||(r=this._getOrReturnCtx(e,r),d(r,{validation:"email",code:c.invalid_string,message:n.message}),a.dirty());else if(n.kind==="emoji")ae||(ae=new RegExp(tt,"u")),ae.test(e.data)||(r=this._getOrReturnCtx(e,r),d(r,{validation:"emoji",code:c.invalid_string,message:n.message}),a.dirty());else if(n.kind==="uuid")Ge.test(e.data)||(r=this._getOrReturnCtx(e,r),d(r,{validation:"uuid",code:c.invalid_string,message:n.message}),a.dirty());else if(n.kind==="nanoid")Qe.test(e.data)||(r=this._getOrReturnCtx(e,r),d(r,{validation:"nanoid",code:c.invalid_string,message:n.message}),a.dirty());else if(n.kind==="cuid")He.test(e.data)||(r=this._getOrReturnCtx(e,r),d(r,{validation:"cuid",code:c.invalid_string,message:n.message}),a.dirty());else if(n.kind==="cuid2")Je.test(e.data)||(r=this._getOrReturnCtx(e,r),d(r,{validation:"cuid2",code:c.invalid_string,message:n.message}),a.dirty());else if(n.kind==="ulid")Ye.test(e.data)||(r=this._getOrReturnCtx(e,r),d(r,{validation:"ulid",code:c.invalid_string,message:n.message}),a.dirty());else if(n.kind==="url")try{new URL(e.data)}catch{r=this._getOrReturnCtx(e,r),d(r,{validation:"url",code:c.invalid_string,message:n.message}),a.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(e.data)||(r=this._getOrReturnCtx(e,r),d(r,{validation:"regex",code:c.invalid_string,message:n.message}),a.dirty())):n.kind==="trim"?e.data=e.data.trim():n.kind==="includes"?e.data.includes(n.value,
vendor: 15,817 bytes, line 11
11n.position)||(r=this._getOrReturnCtx(e,r),d(r,{code:c.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),a.dirty()):n.kind==="toLowerCase"?e.data=e.data.toLowerCase():n.kind==="toUpperCase"?e.data=e.data.toUpperCase():n.kind==="startsWith"?e.data.startsWith(n.value)||(r=this._getOrReturnCtx(e,r),d(r,{code:c.invalid_string,validation:{startsWith:n.value},message:n.message}),a.dirty()):n.kind==="endsWith"?e.data.endsWith(n.value)||(r=this._getOrReturnCtx(e,r),d(r,{code:c.invalid_string,validation:{endsWith:n.value},message:n.message}),a.dirty()):n.kind==="datetime"?lt(n).test(e.data)||(r=this._getOrReturnCtx(e,r),d(r,{code:c.invalid_string,validation:"datetime",message:n.message}),a.dirty()):n.kind==="date"?ct.test(e.data)||(r=this._getOrReturnCtx(e,r),d(r,{code:c.invalid_string,validation:"date",message:n.message}),a.dirty()):n.kind==="time"?dt(n).test(e.data)||(r=this._getOrReturnCtx(e,r),d(r,{code:c.invalid_string,validation:"time",message:n.message}),a.dirty()):n.kind==="duration"?Ke.test(e.data)||(r=this._getOrReturnCtx(e,r),d(r,{validation:"duration",code:c.invalid_string,message:n.message}),a.dirty()):n.kind==="ip"?ut(e.data,n.version)||(r=this._getOrReturnCtx(e,r),d(r,{validation:"ip",code:c.invalid_string,message:n.message}),a.dirty()):n.kind==="jwt"?ft(e.data,n.alg)||(r=this._getOrReturnCtx(e,r),d(r,{validation:"jwt",code:c.invalid_string,message:n.message}),a.dirty()):n.kind==="cidr"?ht(e.data,n.version)||(r=this._getOrReturnCtx(e,r),d(r,{validation:"cidr",code:c.invalid_string,message:n.message}),a.dirty()):n.kind==="base64"?it.test(e.data)||(r=this._getOrReturnCtx(e,r),d(r,{validation:"base64",code:c.invalid_string,message:n.message}),a.dirty()):n.kind==="base64url"?ot.test(e.data)||(r=this._getOrReturnCtx(e,r),d(r,{validation:"base64url",code:c.invalid_string,message:n.message}),a.dirty()):x.assertNever(n);return{status:a.value,value:e.data}}_regex(e,t,a){return this.refinement(r=>e.test(r),{validation:t,code:c.invalid_string,...u.errToObj(a)})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...u.errToObj(e)})}url(e){return this._addCheck({kind:"url",...u.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...u.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...u.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...u.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...u.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...u.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...u.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...u.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...u.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...u.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...u.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...u.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(e==null?void 0:e.offset)??!1,local:(e==null?void 0:e.local)??!1,...u.errToObj(e==null?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,...u.errToObj(e==null?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...u.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...u.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...u.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...u.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...u.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...u.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...u.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...u.errToObj(t)})}nonempty(e){return this.min(1,u.errToObj(e))}trim(){return new Z({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Z({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Z({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}Z.create=s=>new Z({checks:[],typeName:g.ZodString,coerce:(s==null?void 0:s.coerce)??!1,...y(s)});function mt(s,e){const t=(s.toString().split(".")[1]||"").length,a=(e.toString().split(".")[1]||"").length,r=t>a?t:a,n=Number.parseInt(s.toFixed(r).replace(".","")),i=Number.parseInt(e.toFixed(r).replace(".",""));return n%i/10**r}class q extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==l.number){const n=this._getOrReturnCtx(e);return d(n,{code:c.invalid_type,expected:l.number,received:n.parsedType}),p}let a;const r=new j;for(const n of this._def.checks)n.kind==="int"?x.isInteger(e.data)||(a=this._getOrReturnCtx(e,a),d(a,{code:c.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(a=this._getOrReturnCtx(e,a),d(a,{code:c.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(a=this._getOrReturnCtx(e,a),d(a,{code:c.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):n.kind==="multipleOf"?mt(e.data,n.value)!==0&&(a=this._getOrReturnCtx(e,a),d(a,{code:c.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):n.kind==="finite"?Number.isFinite(e.data)||(a=this._getOrReturnCtx(e,a),d(a,{code:c.not_finite,message:n.message}),r.dirty()):x.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,u.toString(t))}gt(e,t){return this.setLimit("min",e,!1,u.toString(t))}lte(e,t){return this.setLimit("max",e,!0,u.toString(t))}lt(e,t){return this.setLimit("max",e,!1,u.toString(t))}setLimit(e,t,a,r){return new q({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:u.toString(r)}]})}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:u.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:u.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:u.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:u.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:u.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:u.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:u.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:u.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:u.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&x.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(t===null||a.value>t)&&(t=a.value):a.kind==="max"&&(e===null||a.value<e)&&(e=a.value)}return Number.isFinite(t)&&Number.isFinite(e)}}q.create=s=>new q({checks:[],typeName:g.ZodNumber,coerce:(s==null?void 0:s.coerce)||!1,...y(s)});class H extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==l.bigint)return this._getInvalidInput(e);let a;const r=new j;for(const n of this._def.checks)n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(a=this._getOrReturnCtx(e,a),d(a,{code:c.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(a=this._getOrReturnCtx(e,a),d(a,{code:c.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):n.kind==="multipleOf"?e.data%n.value!==BigInt(0)&&(a=this._getOrReturnCtx(e,a),d(a,{code:c.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):x.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return d(t,{code:c.invalid_type,expected:l.bigint,received:t.parsedType}),p}gte(e,t){return this.setLimit("min",e,!0,u.toString(t))}gt(e,t){return this.setLimit("min",e,!1,u.toString(t))}lte(e,t){return this.setLimit("max",e,!0,u.toString(t))}lt(e,t){return this.setLimit("max",e,!1,u.toString(t))}setLimit(e,t,a,r){return new H({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:u.toString(r)}]})}_addCheck(e){return new H({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:u.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:u.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:u.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:u.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:u.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}H.create=s=>new H({checks:[],typeName:g.ZodBigInt,coerce:(s==null?void 0:s.coerce)??!1,...y(s)});class me extends _{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==l.boolean){const a=this._getOrReturnCtx(e);return d(a,{code:c.invalid_type,expected:l.boolean,received:a.parsedType}),p}return C(e.data)}}me.create=s=>new me({typeName:g.ZodBoolean,coerce:(s==null?void 0:s.coerce)||!1,...y(s)});class G extends _{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==l.date){const n=this._getOrReturnCtx(e);return d(n,{code:c.invalid_type,expected:l.date,received:n.parsedType}),p}if(Number.isNaN(e.data.getTime())){const n=this._getOrReturnCtx(e);return d(n,{code:c.invalid_date}),p}const a=new j;let r;for(const n of this._def.checks)n.kind==="min"?e.data.getTime()<n.value&&(r=this._getOrReturnCtx(e,r),d(r,{code:c.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),a.dirty()):n.kind==="max"?e.data.getTime()>n.value&&(r=this._getOrReturnCtx(e,r),d(r,{code:c.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),a.dirty()):x.assertNever(n);return{status:a.value,value:new Date(e.data.getTime())}}_addCheck(e){return new G({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:u.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:u.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}G.create=s=>new G({checks:[],coerce:(s==null?void 0:s.coerce)||!1,typeName:g.ZodDate,...y(s)});class pe extends _{_parse(e){if(this._getType(e)!==l.symbol){const a=this._getOrReturnCtx(e);return d(a,{code:c.invalid_type,expected:l.symbol,received:a.parsedType}),p}return C(e.data)}}pe.create=s=>new pe({typeName:g.ZodSymbol,...y(s)});class ge extends _{_parse(e){if(this._getType(e)!==l.undefined){const a=this._getOrReturnCtx(e);return d(a,{code:c.invalid_type,expected:l.undefined,received:a.parsedType}),p}return C(e.data)}}ge.create=s=>new ge({typeName:g.ZodUndefined,...y(s)});class ye extends _{_parse(e){if(this._getType(e)!==l.null){const a=this._getOrReturnCtx(e);return d(a,{code:c.invalid_type,expected:l.null,received:a.parsedType}),p}return C(e.data)}}ye.create=s=>new ye({typeName:g.ZodNull,...y(s)});class ve extends _{constructor(){super(...arguments),this._any=!0}_parse(e){return C(e.data)}}ve.create=s=>new ve({typeName:g.ZodAny,...y(s)});class _e extends _{constructor(){super(...arguments),this._unknown=!0}_parse(e){return C(e.data)}}_e.create=s=>new _e({typeName:g.ZodUnknown,...y(s)});class I extends _{_parse(e){const t=this._getOrReturnCtx(e);return d(t,{code:c.invalid_type,expected:l.never,received:t.parsedType}),p}}I.create=s=>new I({typeName:g.ZodNever,...y(s)});class xe extends _{_parse(e){if(this._getType(e)!==l.undefined){const a=this._getOrReturnCtx(e);return d(a,{code:c.invalid_type,expected:l.void,received:a.parsedType}),p}return C(e.data)}}xe.create=s=>new xe({typeName:g.ZodVoid,...y(s)});class S extends _{_parse(e){const{ctx:t,status:a}=this._processInputParams(e),r=this._def;if(t.parsedType!==l.array)return d(t,{code:c.invalid_type,expected:l.array,received:t.parsedType}),p;if(r.exactLength!==null){const i=t.data.length>r.exactLength.value,o=t.data.length<r.exactLength.value;(i||o)&&(d(t,{code:i?c.too_big:c.too_small,minimum:o?r.exactLength.value:void 0,maximum:i?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),a.dirty())}if(r.minLength!==null&&t.data.length<r.minLength.value&&(d(t,{code:c.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),a.dirty()),r.maxLength!==null&&t.data.length>r.maxLength.value&&(d(t,{code:c.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),a.dirty()),t.common.async)return Promise.all([...t.data].map((i,o)=>r.type._parseAsync(new E(t,i,t.path,o)))).then(i=>j.mergeArray(a,i));const n=[...t.data].map((i,o)=>r.type._parseSync(new E(t,i,t.path,o)));return j.mergeArray(a,n)}
vendor: 11,810 bytes, line 11
11get element(){return this._def.type}min(e,t){return new S({...this._def,minLength:{value:e,message:u.toString(t)}})}max(e,t){return new S({...this._def,maxLength:{value:e,message:u.toString(t)}})}length(e,t){return new S({...this._def,exactLength:{value:e,message:u.toString(t)}})}nonempty(e){return this.min(1,e)}}S.create=(s,e)=>new S({type:s,minLength:null,maxLength:null,exactLength:null,typeName:g.ZodArray,...y(e)});function V(s){if(s instanceof k){const e={};for(const t in s.shape){const a=s.shape[t];e[t]=R.create(V(a))}return new k({...s._def,shape:()=>e})}else return s instanceof S?new S({...s._def,type:V(s.element)}):s instanceof R?R.create(V(s.unwrap())):s instanceof U?U.create(V(s.unwrap())):s instanceof L?L.create(s.items.map(e=>V(e))):s}class k extends _{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=x.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==l.object){const h=this._getOrReturnCtx(e);return d(h,{code:c.invalid_type,expected:l.object,received:h.parsedType}),p}const{status:a,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof I&&this._def.unknownKeys==="strip"))for(const h in r.data)i.includes(h)||o.push(h);const f=[];for(const h of i){const v=n[h],O=r.data[h];f.push({key:{status:"valid",value:h},value:v._parse(new E(r,O,r.path,h)),alwaysSet:h in r.data})}if(this._def.catchall instanceof I){const h=this._def.unknownKeys;if(h==="passthrough")for(const v of o)f.push({key:{status:"valid",value:v},value:{status:"valid",value:r.data[v]}});else if(h==="strict")o.length>0&&(d(r,{code:c.unrecognized_keys,keys:o}),a.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const v of o){const O=r.data[v];f.push({key:{status:"valid",value:v},value:h._parse(new E(r,O,r.path,v)),alwaysSet:v in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const h=[];for(const v of f){const O=await v.key,ee=await v.value;h.push({key:O,value:ee,alwaysSet:v.alwaysSet})}return h}).then(h=>j.mergeObjectSync(a,h)):j.mergeObjectSync(a,f)}get shape(){return this._def.shape()}strict(e){return u.errToObj,new k({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,a)=>{var n,i;const r=((i=(n=this._def).errorMap)==null?void 0:i.call(n,t,a).message)??a.defaultError;return t.code==="unrecognized_keys"?{message:u.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new k({...this._def,unknownKeys:"strip"})}passthrough(){return new k({...this._def,unknownKeys:"passthrough"})}extend(e){return new k({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new k({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:g.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new k({...this._def,catchall:e})}pick(e){const t={};for(const a of x.objectKeys(e))e[a]&&this.shape[a]&&(t[a]=this.shape[a]);return new k({...this._def,shape:()=>t})}omit(e){const t={};for(const a of x.objectKeys(this.shape))e[a]||(t[a]=this.shape[a]);return new k({...this._def,shape:()=>t})}deepPartial(){return V(this)}partial(e){const t={};for(const a of x.objectKeys(this.shape)){const r=this.shape[a];e&&!e[a]?t[a]=r:t[a]=r.optional()}return new k({...this._def,shape:()=>t})}required(e){const t={};for(const a of x.objectKeys(this.shape))if(e&&!e[a])t[a]=this.shape[a];else{let n=this.shape[a];for(;n instanceof R;)n=n._def.innerType;t[a]=n}return new k({...this._def,shape:()=>t})}keyof(){return Oe(x.objectKeys(this.shape))}}k.create=(s,e)=>new k({shape:()=>s,unknownKeys:"strip",catchall:I.create(),typeName:g.ZodObject,...y(e)});k.strictCreate=(s,e)=>new k({shape:()=>s,unknownKeys:"strict",catchall:I.create(),typeName:g.ZodObject,...y(e)});k.lazycreate=(s,e)=>new k({shape:s,unknownKeys:"strip",catchall:I.create(),typeName:g.ZodObject,...y(e)});class Q extends _{_parse(e){const{ctx:t}=this._processInputParams(e),a=this._def.options;function r(n){for(const o of n)if(o.result.status==="valid")return o.result;for(const o of n)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;const i=n.map(o=>new T(o.ctx.common.issues));return d(t,{code:c.invalid_union,unionErrors:i}),p}if(t.common.async)return Promise.all(a.map(async n=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await n._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(r);{let n;const i=[];for(const f of a){const h={...t,common:{...t.common,issues:[]},parent:null},v=f._parseSync({data:t.data,path:t.path,parent:h});if(v.status==="valid")return v;v.status==="dirty"&&!n&&(n={result:v,ctx:h}),h.common.issues.length&&i.push(h.common.issues)}if(n)return t.common.issues.push(...n.ctx.common.issues),n.result;const o=i.map(f=>new T(f));return d(t,{code:c.invalid_union,unionErrors:o}),p}}get options(){return this._def.options}}Q.create=(s,e)=>new Q({options:s,typeName:g.ZodUnion,...y(e)});function ne(s,e){const t=A(s),a=A(e);if(s===e)return{valid:!0,data:s};if(t===l.object&&a===l.object){const r=x.objectKeys(e),n=x.objectKeys(s).filter(o=>r.indexOf(o)!==-1),i={...s,...e};for(const o of n){const f=ne(s[o],e[o]);if(!f.valid)return{valid:!1};i[o]=f.data}return{valid:!0,data:i}}else if(t===l.array&&a===l.array){if(s.length!==e.length)return{valid:!1};const r=[];for(let n=0;n<s.length;n++){const i=s[n],o=e[n],f=ne(i,o);if(!f.valid)return{valid:!1};r.push(f.data)}return{valid:!0,data:r}}else return t===l.date&&a===l.date&&+s==+e?{valid:!0,data:s}:{valid:!1}}class X extends _{_parse(e){const{status:t,ctx:a}=this._processInputParams(e),r=(n,i)=>{if(ue(n)||ue(i))return p;const o=ne(n.value,i.value);return o.valid?((fe(n)||fe(i))&&t.dirty(),{status:t.value,value:o.data}):(d(a,{code:c.invalid_intersection_types}),p)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([n,i])=>r(n,i)):r(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}X.create=(s,e,t)=>new X({left:s,right:e,typeName:g.ZodIntersection,...y(t)});class L extends _{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==l.array)return d(a,{code:c.invalid_type,expected:l.array,received:a.parsedType}),p;if(a.data.length<this._def.items.length)return d(a,{code:c.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),p;!this._def.rest&&a.data.length>this._def.items.length&&(d(a,{code:c.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...a.data].map((i,o)=>{const f=this._def.items[o]||this._def.rest;return f?f._parse(new E(a,i,a.path,o)):null}).filter(i=>!!i);return a.common.async?Promise.all(n).then(i=>j.mergeArray(t,i)):j.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new L({...this._def,rest:e})}}L.create=(s,e)=>{if(!Array.isArray(s))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new L({items:s,typeName:g.ZodTuple,rest:null,...y(e)})};class be extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==l.map)return d(a,{code:c.invalid_type,expected:l.map,received:a.parsedType}),p;const r=this._def.keyType,n=this._def.valueType,i=[...a.data.entries()].map(([o,f],h)=>({key:r._parse(new E(a,o,a.path,[h,"key"])),value:n._parse(new E(a,f,a.path,[h,"value"]))}));if(a.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const f of i){const h=await f.key,v=await f.value;if(h.status==="aborted"||v.status==="aborted")return p;(h.status==="dirty"||v.status==="dirty")&&t.dirty(),o.set(h.value,v.value)}return{status:t.value,value:o}})}else{const o=new Map;for(const f of i){const h=f.key,v=f.value;if(h.status==="aborted"||v.status==="aborted")return p;(h.status==="dirty"||v.status==="dirty")&&t.dirty(),o.set(h.value,v.value)}return{status:t.value,value:o}}}}be.create=(s,e,t)=>new be({valueType:e,keyType:s,typeName:g.ZodMap,...y(t)});class J extends _{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==l.set)return d(a,{code:c.invalid_type,expected:l.set,received:a.parsedType}),p;const r=this._def;r.minSize!==null&&a.data.size<r.minSize.value&&(d(a,{code:c.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),r.maxSize!==null&&a.data.size>r.maxSize.value&&(d(a,{code:c.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const n=this._def.valueType;function i(f){const h=new Set;for(const v of f){if(v.status==="aborted")return p;v.status==="dirty"&&t.dirty(),h.add(v.value)}return{status:t.value,value:h}}const o=[...a.data.values()].map((f,h)=>n._parse(new E(a,f,a.path,h)));return a.common.async?Promise.all(o).then(f=>i(f)):i(o)}min(e,t){return new J({...this._def,minSize:{value:e,message:u.toString(t)}})}max(e,t){return new J({...this._def,maxSize:{value:e,message:u.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}J.create=(s,e)=>new J({valueType:s,minSize:null,maxSize:null,typeName:g.ZodSet,...y(e)});class ke extends _{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ke.create=(s,e)=>new ke({getter:s,typeName:g.ZodLazy,...y(e)});class we extends _{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return d(t,{received:t.data,code:c.invalid_literal,expected:this._def.value}),p}return{status:"valid",value:e.data}}get value(){return this._def.value}}we.create=(s,e)=>new we({value:s,typeName:g.ZodLiteral,...y(e)});function Oe(s,e){return new D({values:s,typeName:g.ZodEnum,...y(e)})}class D extends _{_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),a=this._def.values;return d(t,{expected:x.joinValues(a),received:t.parsedType,code:c.invalid_type}),p}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),a=this._def.values;return d(t,{received:t.data,code:c.invalid_enum_value,options:a}),p}return C(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return D.create(e,{...this._def,...t})}exclude(e,t=this._def){return D.create(this.options.filter(a=>!e.includes(a)),{...this._def,...t})}}D.create=Oe;class Ne extends _{_parse(e){const t=x.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==l.string&&a.parsedType!==l.number){const r=x.objectValues(t);return d(a,{expected:x.joinValues(r),received:a.parsedType,code:c.invalid_type}),p}if(this._cache||(this._cache=new Set(x.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const r=x.objectValues(t);return d(a,{received:a.data,code:c.invalid_enum_value,options:r}),p}return C(e.data)}get enum(){return this._def.values}}Ne.create=(s,e)=>new Ne({values:s,typeName:g.ZodNativeEnum,...y(e)});class K extends _{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.promise&&t.common.async===!1)return d(t,{code:c.invalid_type,expected:l.promise,received:t.parsedType}),p;
vendor: 3,872 bytes, line 11
11const a=t.parsedType===l.promise?t.data:Promise.resolve(t.data);return C(a.then(r=>this._def.type.parseAsync(r,{path:t.path,errorMap:t.common.contextualErrorMap})))}}K.create=(s,e)=>new K({type:s,typeName:g.ZodPromise,...y(e)});class B extends _{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===g.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:a}=this._processInputParams(e),r=this._def.effect||null,n={addIssue:i=>{d(a,i),i.fatal?t.abort():t.dirty()},get path(){return a.path}};if(n.addIssue=n.addIssue.bind(n),r.type==="preprocess"){const i=r.transform(a.data,n);if(a.common.async)return Promise.resolve(i).then(async o=>{if(t.value==="aborted")return p;const f=await this._def.schema._parseAsync({data:o,path:a.path,parent:a});return f.status==="aborted"?p:f.status==="dirty"||t.value==="dirty"?W(f.value):f});{if(t.value==="aborted")return p;const o=this._def.schema._parseSync({data:i,path:a.path,parent:a});return o.status==="aborted"?p:o.status==="dirty"||t.value==="dirty"?W(o.value):o}}if(r.type==="refinement"){const i=o=>{const f=r.refinement(o,n);if(a.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(a.common.async===!1){const o=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?p:(o.status==="dirty"&&t.dirty(),i(o.value),{status:t.value,value:o.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(o=>o.status==="aborted"?p:(o.status==="dirty"&&t.dirty(),i(o.value).then(()=>({status:t.value,value:o.value}))))}if(r.type==="transform")if(a.common.async===!1){const i=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!M(i))return p;const o=r.transform(i.value,n);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(i=>M(i)?Promise.resolve(r.transform(i.value,n)).then(o=>({status:t.value,value:o})):p);x.assertNever(r)}}B.create=(s,e,t)=>new B({schema:s,typeName:g.ZodEffects,effect:e,...y(t)});B.createWithPreprocess=(s,e,t)=>new B({schema:e,effect:{type:"preprocess",transform:s},typeName:g.ZodEffects,...y(t)});class R extends _{_parse(e){return this._getType(e)===l.undefined?C(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}R.create=(s,e)=>new R({innerType:s,typeName:g.ZodOptional,...y(e)});class U extends _{_parse(e){return this._getType(e)===l.null?C(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}U.create=(s,e)=>new U({innerType:s,typeName:g.ZodNullable,...y(e)});class ie extends _{_parse(e){const{ctx:t}=this._processInputParams(e);let a=t.data;return t.parsedType===l.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ie.create=(s,e)=>new ie({innerType:s,typeName:g.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...y(e)});class oe extends _{_parse(e){const{ctx:t}=this._processInputParams(e),a={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return Y(r)?r.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new T(a.common.issues)},input:a.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new T(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}oe.create=(s,e)=>new oe({innerType:s,typeName:g.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...y(e)});
11class je extends _{_parse(e){if(this._getType(e)!==l.nan){const a=this._getOrReturnCtx(e);return d(a,{code:c.invalid_type,expected:l.nan,received:a.parsedType}),p}return{status:"valid",value:e.data}}}je.create=s=>new je({typeName:g.ZodNaN,...y(s)});class pt extends _{_parse(e){const{ctx:t}=this._processInputParams(e),a=t.data;return this._def.type._parse({data:a,path:t.path,parent:t})}unwrap(){return this._def.type}}class de extends _{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.common.async)return(async()=>{const n=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return n.status==="aborted"?p:n.status==="dirty"?(t.dirty(),W(n.value)):this._def.out._parseAsync({data:n.value,path:a.path,parent:a})})();{const r=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return r.status==="aborted"?p:r.status==="dirty"?(t.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:a.path,parent:a})}}static create(e,t){return new de({in:e,out:t,typeName:g.ZodPipeline})}}class ce extends _{_parse(e){const t=this._def.innerType._parse(e),a=r=>(M(r)&&(r.value=Object.freeze(r.value)),r);return Y(t)?t.then(r=>a(r)):a(t)}unwrap(){return this._def.innerType}}ce.create=(s,e)=>new ce({innerType:s,typeName:g.ZodReadonly,...y(e)});k.lazycreate;var g;(function(s){s.ZodString="ZodString",s.ZodNumber="ZodNumber",s.ZodNaN="ZodNaN",s.ZodBigInt="ZodBigInt",s.ZodBoolean="ZodBoolean",s.ZodDate="ZodDate",s.ZodSymbol="ZodSymbol",s.ZodUndefined="ZodUndefined",s.ZodNull="ZodNull",s.ZodAny="ZodAny",s.ZodUnknown="ZodUnknown",s.ZodNever="ZodNever",s.ZodVoid="ZodVoid",s.ZodArray="ZodArray",s.ZodObject="ZodObject",s.ZodUnion="ZodUnion",s.ZodDiscriminatedUnion="ZodDiscriminatedUnion",s.ZodIntersection="ZodIntersection",s.ZodTuple="ZodTuple",s.ZodRecord="ZodRecord",s.ZodMap="ZodMap",s.ZodSet="ZodSet",s.ZodFunction="ZodFunction",s.ZodLazy="ZodLazy",s.ZodLiteral="ZodLiteral",s.ZodEnum="ZodEnum",s.ZodEffects="ZodEffects",s.ZodNativeEnum="ZodNativeEnum",s.ZodOptional="ZodOptional",s.ZodNullable="ZodNullable",s.ZodDefault="ZodDefault",s.ZodCatch="ZodCatch",s.ZodPromise="ZodPromise",s.ZodBranded="ZodBranded",s.ZodPipeline="ZodPipeline",s.ZodReadonly="ZodReadonly"})(g||(g={}));const z=Z.create;I.create;S.create;const gt=k.create;k.strictCreate;Q.create;X.create;L.create;D.create;K.create;R.create;U.create;const yt="139847838",vt="8144ac3a-1558-45c1-a94f-7d3e5e9035af",P=s=>`w-full px-4 py-3 rounded-2xl border ${s?"border-destructive":"border-zinc-200"} bg-background text-foreground placeholder:text-muted-foreground dark:text-white dark:placeholder:text-zinc-500 focus:outline-none focus:ring-2 focus:ring-primary-500/50 transition-all text-sm`,bt=()=>{const{t:s}=Ze(),{localizePath:e}=Re();F.useEffect(()=>{window.scrollTo(0,0)},[]);const t=gt({firstName:z().trim().min(1,s("contact.errors.firstName")).max(100),lastName:z().trim().min(1,s("contact.errors.lastName")).max(100),email:z().trim().email(s("contact.errors.email")).max(255),phone:z().trim().max(20).optional(),organization:z().trim().max(200).optional(),profile:z().trim().min(1,s("contact.errors.profile")),message:z().trim().min(1,s("contact.errors.message")).max(2e3)}),a=[{value:"association",label:s("contact.form.profiles.association")},{value:"agence",label:s("contact.form.profiles.agence")},{value:"partenaire",label:s("contact.form.profiles.partenaire")},{value:"entreprise",label:s("contact.form.profiles.entreprise")},{value:"particulier",label:s("contact.form.profiles.particulier")}],[r,n]=F.useState({}),[i,o]=F.useState({}),[f,h]=F.useState(!1),[v,O]=F.useState(!1),ee=async b=>{const w=await fetch(`https://api.hsforms.com/submissions/v3/integration/submit/${yt}/${vt}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fields:[{name:"firstname",value:b.firstName},{name:"lastname",value:b.lastName},{name:"email",value:b.email},{name:"mobilephone",value:b.phone||""},{name:"type_de_client",value:b.profile||""},{name:"company",value:b.organization||""},{name:"message",value:b.message}],context:{pageUri:window.location.href,pageName:document.title}}
11)});if(!w.ok){const N=await w.json().catch(()=>({}));throw new Error((N==null?void 0:N.message)||"HubSpot error")}},Ae=async b=>{b.preventDefault();const w=t.safeParse(r);if(!w.success){const N={};w.error.errors.forEach(te=>{te.path[0]&&(N[String(te.path[0])]=te.message)}),o(N);return}o({}),O(!0);try{await Promise.all([ee(w.data),De.functions.invoke("submit-contact",{body:{firstName:w.data.firstName,lastName:w.data.lastName,email:w.data.email,phone:w.data.phone||null,organization:w.data.organization||null,profile:w.data.profile||null,message:w.data.message,pageUrl:window.location.href}}).then(N=>{if(N.error)throw N.error})]),Ve("contact_page"),Me({email:w.data.email}),h(!0)}catch{o({message:s("contact.errors.generic")})}finally{O(!1)}},$=(b,w)=>{n(N=>({...N,[b]:w})),i[b]&&o(N=>({...N,[b]:""}))};return m.jsxs("div",{className:"min-h-screen bg-background",children:[m.jsx(Ee,{titleFr:"Démo rgive — Formulaire de dons, crowdfunding & P2P",titleEn:"Book a demo — rgive donation forms & crowdfunding",descriptionFr:"Demandez une démo de rgive : formulaire de dons, crowdfunding, peer-to-peer, team fundraising, pétitions et mobilisation pour associations et fondations.",descriptionEn:"Book a personalised rgive demo: donation forms, crowdfunding, peer-to-peer, team fundraising, petitions and advocacy for charities and foundations."}),m.jsx(Ie,{}),m.jsx($e,{bg:"primary-900",className:"pt-32 md:pt-40 pb-12 md:pb-20",children:m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 lg:gap-16 items-start",children:[m.jsxs(se.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[m.jsxs(ze,{to:e("/"),className:"inline-flex items-center gap-2 text-sm text-white/60 hover:text-white mb-8 transition-colors",children:[m.jsx(Be,{className:"h-4 w-4"}),s("contact.back")]}),m.jsxs("h1",{className:"text-3xl md:text-4xl lg:text-5xl xl:text-6xl leading-[1.08] text-white mb-6",children:[s("contact.title1"),m.jsx("br",{}),s("contact.title2")]}),m.jsx("p",{className:"section-intro-light",children:s("contact.intro1")}),m.jsx("p",{className:"section-intro-light mt-4",children:s("contact.intro2")})]}),m.jsx(se.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"bg-background rounded-3xl pt-8 px-8 pb-0 shadow-card overflow-hidden",children:f?m.jsxs(se.div,{className:"bg-primary-100 rounded-2xl p-8 mb-8 text-center",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},children:[m.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary-500/20 mb-4",children:m.jsx("i",{className:"fa-solid fa-check text-2xl text-primary-600"})}),m.jsx("h2",{className:"text-2xl font-bold mb-2",children:s("contact.success.title")}),m.jsx("p",{className:"text-muted-foreground",children:s("contact.success.text")})]}):m.jsxs("form",{onSubmit:Ae,className:"space-y-6",children:[m.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[m.jsxs("div",{children:[m.jsxs("label",{className:"block text-sm font-medium text-foreground mb-2",children:[s("contact.form.firstName")," *"]}),m.jsx("input",{type:"text",value:r.firstName||"",onChange:b=>$("firstName",b.target.value),className:P(!!i.firstName),placeholder:s("contact.placeholders.firstName")}),i.firstName&&m.jsx("p",{className:"text-destructive text-xs mt-1",children:i.firstName})]}),m.jsxs("div",{children:[m.jsxs("label",{className:"block text-sm font-medium text-foreground mb-2",children:[s("contact.form.lastName")," *"]}),m.jsx("input",{type:"text",value:r.lastName||"",onChange:b=>$("lastName",b.target.value),className:P(!!i.lastName),placeholder:s("contact.placeholders.lastName")}),i.lastName&&m.jsx("p",{className:"text-destructive text-xs mt-1",children:i.lastName})]})]}),m.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[m.jsxs("div",{children:[m.jsxs("label",{className:"block text-sm font-medium text-foreground mb-2",children:[s("contact.form.email")," *"]}),m.jsx("input",{type:"email",value:r.email||"",onChange:b=>$("email",b.target.value),className:P(!!i.email),placeholder:s("c
11ontact.placeholders.email")}),i.email&&m.jsx("p",{className:"text-destructive text-xs mt-1",children:i.email})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:s("contact.form.phone")}),m.jsx("input",{type:"tel",value:r.phone||"",onChange:b=>$("phone",b.target.value),className:P(!1),placeholder:s("contact.placeholders.phone")})]})]}),m.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[m.jsxs("div",{children:[m.jsxs("label",{className:"block text-sm font-medium text-foreground mb-2",children:[s("contact.form.profile")," *"]}),m.jsxs("div",{className:"relative",children:[m.jsxs("select",{value:r.profile||"",onChange:b=>$("profile",b.target.value),className:`${P(!!i.profile)} appearance-none pr-10 cursor-pointer`,children:[m.jsx("option",{value:"",children:s("contact.form.profilePlaceholder")}),a.map(b=>m.jsx("option",{value:b.value,children:b.label},b.value))]}),m.jsx(Ue,{className:"absolute right-4 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground pointer-events-none"})]}),i.profile&&m.jsx("p",{className:"text-destructive text-xs mt-1",children:i.profile})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:s("contact.form.organization")}),m.jsx("input",{type:"text",value:r.organization||"",onChange:b=>$("organization",b.target.value),className:P(!1),placeholder:s("contact.placeholders.organization")})]})]}),m.jsxs("div",{children:[m.jsxs("label",{className:"block text-sm font-medium text-foreground mb-2",children:[s("contact.form.message")," *"]}),m.jsx("textarea",{value:r.message||"",onChange:b=>$("message",b.target.value),rows:5,className:`${P(!!i.message)} resize-none`,placeholder:s("contact.form.messagePlaceholder")}),i.message&&m.jsx("p",{className:"text-destructive text-xs mt-1",children:i.message})]}),m.jsx("div",{className:"bg-surface-chalk -mx-8 px-8 pt-8 pb-8 border-t border-zinc-200",children:m.jsx(Pe,{type:"submit",disabled:v,bg:"bg-primary-500",hoverBg:"hover:bg-primary-600",icon:v?"fa-solid fa-spinner fa-spin":"fa-solid fa-paper-plane",className:"disabled:opacity-60 disabled:cursor-not-allowed disabled:hover:scale-100",children:s(v?"contact.form.submitting":"contact.form.submit")})})]})})]})}),m.jsx(Le,{})]})};export{bt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.