PageSourceSearch

https://sharonmanker.lovable.app/assets/services.sourceworthy-social-media-intake-D0uuGKm8.js

js sharonmanker.lovable.app collected 2026-10-03 03:44:52 UTC 64,302 bytes, 1 lines download raw bytes

vendor: 19,565 bytes, line 1
1import{k as Se,r as Y,j as p,L as je}from"./index-NapLAG4V.js";import{c as Te,u as Ae}from"./createServerFn-BFk2bJOe.js";import{L as Oe,S as Re,t as se}from"./index-CCUiIWEh.js";import{A as Ze}from"./arrow-left-C8XRQ14h.js";var x;(function(r){r.assertEqual=s=>{};function e(s){}r.assertIs=e;function t(s){throw new Error}r.assertNever=t,r.arrayToEnum=s=>{const n={};for(const i of s)n[i]=i;return n},r.getValidEnumValues=s=>{const n=r.objectKeys(s).filter(o=>typeof s[s[o]]!="number"),i={};for(const o of n)i[o]=s[o];return r.objectValues(i)},r.objectValues=s=>r.objectKeys(s).map(function(n){return s[n]}),r.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const n=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&n.push(i);return n},r.find=(s,n)=>{for(const i of s)if(n(i))return i},r.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function a(s,n=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(n)}r.joinValues=a,r.jsonStringifyReplacer=(s,n)=>typeof n=="bigint"?n.toString():n})(x||(x={}));var ne;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(ne||(ne={}));const c=x.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),A=r=>{switch(typeof r){case"undefined":return c.undefined;case"string":return c.string;case"number":return Number.isNaN(r)?c.nan:c.number;case"boolean":return c.boolean;case"function":return c.function;case"bigint":return c.bigint;case"symbol":return c.symbol;case"object":return Array.isArray(r)?c.array:r===null?c.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?c.promise:typeof Map<"u"&&r instanceof Map?c.map:typeof Set<"u"&&r instanceof Set?c.set:typeof Date<"u"&&r instanceof Date?c.date:c.object;default:return c.unknown}},d=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:[]},s=n=>{for(const i of n.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)a._errors.push(t(i));else{let o=a,u=0;for(;u<i.path.length;){const h=i.path[u];u===i.path.length-1?(o[h]=o[h]||{_errors:[]},o[h]._errors.push(t(i))):o[h]=o[h]||{_errors:[]},o=o[h],u++}}};return s(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 s of this.issues)if(s.path.length>0){const n=s.path[0];t[n]=t[n]||[],t[n].push(e(s))}else a.push(e(s));return{formErrors:a,fieldErrors:t}}get formErrors(){return this.flatten()}}T.create=r=>new T(r);const Q=(r,e)=>{let t;switch(r.code){case d.invalid_type:r.received===c.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case d.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,x.jsonStringifyReplacer)}`;break;case d.unrecognized_keys:t=`Unrecognized key(s) in object: ${x.joinValues(r.keys,", ")}`;break;case d.invalid_union:t="Invalid input";break;case d.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${x.joinValues(r.options)}`;break;case d.invalid_enum_value:t=`Invalid enum value. Expected ${x.joinValues(r.options)}, received '${r.received}'`;break;case d.invalid_arguments:t="Invalid function arguments";break;case d.invalid_return_type:t="Invalid function return type";break;case d.invalid_date:t="Invalid date";break;case d.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:x.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case d.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="bigint"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case d.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case d.custom:t="Invalid input";break;case d.invalid_intersection_types:t="Intersection results could not be merged";break;case d.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case d.not_finite:t="Number must be finite";break;default:t=e.defaultError,x.assertNever(r)}return{message:t}};let Ie=Q;function Ee(){return Ie}const $e=r=>{const{data:e,path:t,errorMaps:a,issueData:s}=r,n=[...t,...s.path||[]],i={...s,path:n};if(s.message!==void 0)return{...s,path:n,message:s.message};let o="";const u=a.filter(h=>!!h).slice().reverse();for(const h of u)o=h(i,{data:e,defaultError:o}).message;return{...s,path:n,message:o}};function l(r,e){const t=Ee(),a=$e({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,t,t===Q?void 0:Q].filter(s=>!!s)});r.common.issues.push(a)}class C{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 s of t){if(s.status==="aborted")return g;s.status==="dirty"&&e.dirty(),a.push(s.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,t){const a=[];for(const s of t){const n=await s.key,i=await s.value;a.push({key:n,value:i})}return C.mergeObjectSync(e,a)}static mergeObjectSync(e,t){const a={};for(const s of t){const{key:n,value:i}=s;if(n.status==="aborted"||i.status==="aborted")return g;n.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),n.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(a[n.value]=i.value)}return{status:e.value,value:a}}}const g=Object.freeze({status:"aborted"}),M=r=>({status:"dirty",value:r}),S=r=>({status:"valid",value:r}),ie=r=>r.status==="aborted",oe=r=>r.status==="dirty",L=r=>r.status==="valid",F=r=>typeof Promise<"u"&&r instanceof Promise;var m;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e?.message})(m||(m={}));class Z{constructor(e,t,a,s){this._cachedPath=[],this.parent=e,this.data=t,this._path=a,this._key=s}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 de=(r,e)=>{if(L(e))return{success:!0,data:e.value};if(!r.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(r.common.issues);return this._error=t,this._error}}};function v(r){if(!r)return{};const{errorMap:e,invalid_type_error:t,required_error:a,description:s}=r;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:s}:{errorMap:(i,o)=>{const{message:u}=r;return i.code==="invalid_enum_value"?{message:u??o.defaultError}:typeof o.data>"u"?{message:u??a??o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:u??t??o.defaultError}},description:s}}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 C,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(F(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?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:A(e)},s=this._parseSync({data:e,path:a.path,parent:a});return de(a,s)}"~validate"(e){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 a=this._parseSync({data:e,path:[],parent:t});return L(a)?{value:a.value}:{issues:t.common.issues}}catch(a){a?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(a=>L(a)?{value:a.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?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:A(e)},s=this._parse({data:e,path:a.path,parent:a}),n=await(F(s)?s:Promise.resolve(s));return de(a,n)}refine(e,t){const a=s=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(s):t;return this._refinement((s,n)=>{const i=e(s),o=()=>n.addIssue({code:d.custom,...a(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(u=>u?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,t){return this._refinement((a,s)=>e(a)?!0:(s.addIssue(typeof t=="function"?t(a,s):t),!1))}_refinement(e){return new U({schema:this,typeName:y.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 V.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return j.create(this)}promise(){return J.create(this,this._def)}or(e){return q.create([this,e],this._def)}and(e){return G.create(this,e,this._def)}transform(e){return new U({...v(this._def),schema:this,typeName:y.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new ee({...v(this._def),innerType:this,defaultValue:t,typeName:y.ZodDefault})}brand(){return new st({typeName:y.ZodBranded,type:this,...v(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new te({...v(this._def),innerType:this,catchValue:t,typeName:y.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return re.create(this,e)}readonly(){return ae.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Le=/^c[^\s-]{8,}$/i,Pe=/^[0-9a-z]+$/,Ue=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Ve=/^[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,Me=/^[a-z0-9_-]{21}$/i,De=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ze=/^[-+]?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)?)??$/,Be=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Fe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let H;const We=/^(?:(?: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])$/,qe=/^(?:(?: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])$/,Ge=/^(([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]))$/,Je=/^(([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])$/,Ye=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,He=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ke="((\\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])))",Qe=new RegExp(`^${ke}$`);function we(r){let e="[0-5]\\d";r.precision?e=`${e}\\.\\d{${r.precision}}`:r.precision==null&&(e=`${e}(\\.\\d+)?`);const t=r.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`}function Xe(r){return new RegExp(`^${we(r)}$`)}function Ke(r){let e=`${ke}T${we(r)}`;const t=[];return t.push(r.local?"Z?":"Z"),r.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function et(r,e){return!!((e==="v4"||!e)&&We.test(r)||(e==="v6"||!e)&&Ge.test(r))}function tt(r,e){if(!De.test(r))return!1;try{const[t]=r.split(".");if(!t)return!1;const a=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),s=JSON.parse(atob(a));return!(typeof s!="object"||s===null||"typ"in s&&s?.typ!=="JWT"||!s.alg||e&&s.alg!==e)}catch{return!1}}function at(r,e){return!!((e==="v4"||!e)&&qe.test(r)||(e==="v6"||!e)&&Je.test(r))}class O extends _{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==c.string){const n=this._getOrReturnCtx(e);return l(n,{code:d.invalid_type,expected:c.string,received:n.parsedType}),g}const a=new C;let s;for(const n of this._def.checks)if(n.kind==="min")e.data.length<n.value&&(s=this._getOrReturnCtx(e,s),l(s,{code:d.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&&(s=this._getOrReturnCtx(e,s),l(s,{code:d.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)&&(s=this._getOrReturnCtx(e,s),i?l(s,{code:d.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):o&&l(s,{code:d.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),a.dirty())}else if(n.kind==="email")Be.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"email",code:d.invalid_string,message:n.message}),a.dirty());else if(n.kind==="emoji")H||(H=new RegExp(Fe,"u")),H.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"emoji",code:d.invalid_string,message:n.message}),a.dirty());else if(n.kind==="uuid")Ve.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"uuid",code:d.invalid_string,message:n.message}),a.dirty());else if(n.kind==="nanoid")Me.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"nanoid",code:d.invalid_string,message:n.message}),a.dirty());else if(n.kind==="cuid")Le.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"cuid",code:d.invalid_string,message:n.message}),a.dirty());else if(n.kind==="cuid2")Pe.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"cuid2",code:d.invalid_string,message:n.message}),a.dirty());else if(n.kind==="ulid")Ue.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"ulid",code:d.invalid_string,message:n.message}),a.dirty());else if(n.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),l(s,{validation:"url",code:d.invalid_string,message:n.message}),a.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"regex",code:d.invalid_string,message:n.message}),a.dirty())):n.kind==="trim"?e.data=e.data.trim():n.kind==="includes"?e.data.includes(n.value,
vendor: 4,455 bytes, line 1
1n.position)||(s=this._getOrReturnCtx(e,s),l(s,{code:d.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)||(s=this._getOrReturnCtx(e,s),l(s,{code:d.invalid_string,validation:{startsWith:n.value},message:n.message}),a.dirty()):n.kind==="endsWith"?e.data.endsWith(n.value)||(s=this._getOrReturnCtx(e,s),l(s,{code:d.invalid_string,validation:{endsWith:n.value},message:n.message}),a.dirty()):n.kind==="datetime"?Ke(n).test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{code:d.invalid_string,validation:"datetime",message:n.message}),a.dirty()):n.kind==="date"?Qe.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{code:d.invalid_string,validation:"date",message:n.message}),a.dirty()):n.kind==="time"?Xe(n).test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{code:d.invalid_string,validation:"time",message:n.message}),a.dirty()):n.kind==="duration"?ze.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"duration",code:d.invalid_string,message:n.message}),a.dirty()):n.kind==="ip"?et(e.data,n.version)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"ip",code:d.invalid_string,message:n.message}),a.dirty()):n.kind==="jwt"?tt(e.data,n.alg)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"jwt",code:d.invalid_string,message:n.message}),a.dirty()):n.kind==="cidr"?at(e.data,n.version)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"cidr",code:d.invalid_string,message:n.message}),a.dirty()):n.kind==="base64"?Ye.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"base64",code:d.invalid_string,message:n.message}),a.dirty()):n.kind==="base64url"?He.test(e.data)||(s=this._getOrReturnCtx(e,s),l(s,{validation:"base64url",code:d.invalid_string,message:n.message}),a.dirty()):x.assertNever(n);return{status:a.value,value:e.data}}_regex(e,t,a){return this.refinement(s=>e.test(s),{validation:t,code:d.invalid_string,...m.errToObj(a)})}_addCheck(e){return new O({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...m.errToObj(e)})}url(e){return this._addCheck({kind:"url",...m.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...m.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...m.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...m.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...m.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...m.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...m.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...m.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...m.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...m.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...m.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...m.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?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...m.errToObj(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?.precision>"u"?null:e?.precision,...m.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...m.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...m.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...m.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...m.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...m.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...m.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...m.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...m.errToObj(t)})}nonempty(e){return this.min(1,m.errToObj(e))}trim(){return new O({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new O({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new O({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}
vendor: 16,121 bytes, line 1
1get 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}}O.create=r=>new O({checks:[],typeName:y.ZodString,coerce:r?.coerce??!1,...v(r)});function rt(r,e){const t=(r.toString().split(".")[1]||"").length,a=(e.toString().split(".")[1]||"").length,s=t>a?t:a,n=Number.parseInt(r.toFixed(s).replace(".","")),i=Number.parseInt(e.toFixed(s).replace(".",""));return n%i/10**s}class D 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)!==c.number){const n=this._getOrReturnCtx(e);return l(n,{code:d.invalid_type,expected:c.number,received:n.parsedType}),g}let a;const s=new C;for(const n of this._def.checks)n.kind==="int"?x.isInteger(e.data)||(a=this._getOrReturnCtx(e,a),l(a,{code:d.invalid_type,expected:"integer",received:"float",message:n.message}),s.dirty()):n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(a=this._getOrReturnCtx(e,a),l(a,{code:d.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),s.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(a=this._getOrReturnCtx(e,a),l(a,{code:d.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),s.dirty()):n.kind==="multipleOf"?rt(e.data,n.value)!==0&&(a=this._getOrReturnCtx(e,a),l(a,{code:d.not_multiple_of,multipleOf:n.value,message:n.message}),s.dirty()):n.kind==="finite"?Number.isFinite(e.data)||(a=this._getOrReturnCtx(e,a),l(a,{code:d.not_finite,message:n.message}),s.dirty()):x.assertNever(n);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,m.toString(t))}gt(e,t){return this.setLimit("min",e,!1,m.toString(t))}lte(e,t){return this.setLimit("max",e,!0,m.toString(t))}lt(e,t){return this.setLimit("max",e,!1,m.toString(t))}setLimit(e,t,a,s){return new D({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:m.toString(s)}]})}_addCheck(e){return new D({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:m.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:m.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:m.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:m.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:m.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:m.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:m.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:m.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:m.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)}}D.create=r=>new D({checks:[],typeName:y.ZodNumber,coerce:r?.coerce||!1,...v(r)});class z 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)!==c.bigint)return this._getInvalidInput(e);let a;const s=new C;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),l(a,{code:d.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),s.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(a=this._getOrReturnCtx(e,a),l(a,{code:d.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),s.dirty()):n.kind==="multipleOf"?e.data%n.value!==BigInt(0)&&(a=this._getOrReturnCtx(e,a),l(a,{code:d.not_multiple_of,multipleOf:n.value,message:n.message}),s.dirty()):x.assertNever(n);return{status:s.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return l(t,{code:d.invalid_type,expected:c.bigint,received:t.parsedType}),g}gte(e,t){return this.setLimit("min",e,!0,m.toString(t))}gt(e,t){return this.setLimit("min",e,!1,m.toString(t))}lte(e,t){return this.setLimit("max",e,!0,m.toString(t))}lt(e,t){return this.setLimit("max",e,!1,m.toString(t))}setLimit(e,t,a,s){return new z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:m.toString(s)}]})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:m.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:m.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:m.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:m.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:m.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}}z.create=r=>new z({checks:[],typeName:y.ZodBigInt,coerce:r?.coerce??!1,...v(r)});class le extends _{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==c.boolean){const a=this._getOrReturnCtx(e);return l(a,{code:d.invalid_type,expected:c.boolean,received:a.parsedType}),g}return S(e.data)}}le.create=r=>new le({typeName:y.ZodBoolean,coerce:r?.coerce||!1,...v(r)});class W extends _{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==c.date){const n=this._getOrReturnCtx(e);return l(n,{code:d.invalid_type,expected:c.date,received:n.parsedType}),g}if(Number.isNaN(e.data.getTime())){const n=this._getOrReturnCtx(e);return l(n,{code:d.invalid_date}),g}const a=new C;let s;for(const n of this._def.checks)n.kind==="min"?e.data.getTime()<n.value&&(s=this._getOrReturnCtx(e,s),l(s,{code:d.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),a.dirty()):n.kind==="max"?e.data.getTime()>n.value&&(s=this._getOrReturnCtx(e,s),l(s,{code:d.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 W({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:m.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:m.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}}W.create=r=>new W({checks:[],coerce:r?.coerce||!1,typeName:y.ZodDate,...v(r)});class ce extends _{_parse(e){if(this._getType(e)!==c.symbol){const a=this._getOrReturnCtx(e);return l(a,{code:d.invalid_type,expected:c.symbol,received:a.parsedType}),g}return S(e.data)}}ce.create=r=>new ce({typeName:y.ZodSymbol,...v(r)});class ue extends _{_parse(e){if(this._getType(e)!==c.undefined){const a=this._getOrReturnCtx(e);return l(a,{code:d.invalid_type,expected:c.undefined,received:a.parsedType}),g}return S(e.data)}}ue.create=r=>new ue({typeName:y.ZodUndefined,...v(r)});class he extends _{_parse(e){if(this._getType(e)!==c.null){const a=this._getOrReturnCtx(e);return l(a,{code:d.invalid_type,expected:c.null,received:a.parsedType}),g}return S(e.data)}}he.create=r=>new he({typeName:y.ZodNull,...v(r)});class me extends _{constructor(){super(...arguments),this._any=!0}_parse(e){return S(e.data)}}me.create=r=>new me({typeName:y.ZodAny,...v(r)});class fe extends _{constructor(){super(...arguments),this._unknown=!0}_parse(e){return S(e.data)}}fe.create=r=>new fe({typeName:y.ZodUnknown,...v(r)});class I extends _{_parse(e){const t=this._getOrReturnCtx(e);return l(t,{code:d.invalid_type,expected:c.never,received:t.parsedType}),g}}I.create=r=>new I({typeName:y.ZodNever,...v(r)});class pe extends _{_parse(e){if(this._getType(e)!==c.undefined){const a=this._getOrReturnCtx(e);return l(a,{code:d.invalid_type,expected:c.void,received:a.parsedType}),g}return S(e.data)}}pe.create=r=>new pe({typeName:y.ZodVoid,...v(r)});class j extends _{_parse(e){const{ctx:t,status:a}=this._processInputParams(e),s=this._def;if(t.parsedType!==c.array)return l(t,{code:d.invalid_type,expected:c.array,received:t.parsedType}),g;if(s.exactLength!==null){const i=t.data.length>s.exactLength.value,o=t.data.length<s.exactLength.value;(i||o)&&(l(t,{code:i?d.too_big:d.too_small,minimum:o?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),a.dirty())}if(s.minLength!==null&&t.data.length<s.minLength.value&&(l(t,{code:d.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),a.dirty()),s.maxLength!==null&&t.data.length>s.maxLength.value&&(l(t,{code:d.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),a.dirty()),t.common.async)return Promise.all([...t.data].map((i,o)=>s.type._parseAsync(new Z(t,i,t.path,o)))).then(i=>C.mergeArray(a,i));const n=[...t.data].map((i,o)=>s.type._parseSync(new Z(t,i,t.path,o)));return C.mergeArray(a,n)}get element(){return this._def.type}min(e,t){return new j({...this._def,minLength:{value:e,message:m.toString(t)}})}max(e,t){return new j({...this._def,maxLength:{value:e,message:m.toString(t)}})}length(e,t){return new j({...this._def,exactLength:{value:e,message:m.toString(t)}})}nonempty(e){return this.min(1,e)}}j.create=(r,e)=>new j({type:r,minLength:null,maxLength:null,exactLength:null,typeName:y.ZodArray,...v(e)});function $(r){if(r instanceof w){const e={};for(const t in r.shape){const a=r.shape[t];e[t]=R.create($(a))}return new w({...r._def,shape:()=>e})}else return r instanceof j?new j({...r._def,type:$(r.element)}):r instanceof R?R.create($(r.unwrap())):r instanceof V?V.create($(r.unwrap())):r instanceof E?E.create(r.items.map(e=>$(e))):r}class w 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)!==c.object){const h=this._getOrReturnCtx(e);return l(h,{code:d.invalid_type,expected:c.object,received:h.parsedType}),g}const{status:a,ctx:s}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof I&&this._def.unknownKeys==="strip"))for(const h in s.data)i.includes(h)||o.push(h);const u=[];for(const h of i){const f=n[h],N=s.data[h];u.push({key:{status:"valid",value:h},value:f._parse(new Z(s,N,s.path,h)),alwaysSet:h in s.data})}if(this._def.catchall instanceof I){const h=this._def.unknownKeys;if(h==="passthrough")for(const f of o)u.push({key:{status:"valid",value:f},value:{status:"valid",value:s.data[f]}});else if(h==="strict")o.length>0&&(l(s,{code:d.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 f of o){const N=s.data[f];u.push({key:{status:"valid",value:f},value:h._parse(new Z(s,N,s.path,f)),alwaysSet:f in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const h=[];for(const f of u){const N=await f.key,Ce=await f.value;h.push({key:N,value:Ce,alwaysSet:f.alwaysSet})}return h}).then(h=>C.mergeObjectSync(a,h)):C.mergeObjectSync(a,u)}get shape(){return this._def.shape()}strict(e){return m.errToObj,new w({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,a)=>{const s=this._def.errorMap?.(t,a).message??a.defaultError;return t.code==="unrecognized_keys"?{message:m.errToObj(e).message??s}:{message:s}}}:{}})}strip(){return new w({...this._def,unknownKeys:"strip"})}passthrough(){return new w({...this._def,unknownKeys:"passthrough"})}extend(e){return new w({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new w({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:y.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new w({...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 w({...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 w({...this._def,shape:()=>t})}deepPartial(){return $(this)}partial(e){const t={};for(const a of x.objectKeys(this.shape)){const s=this.shape[a];e&&!e[a]?t[a]=s:t[a]=s.optional()}return new w({...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 w({...this._def,shape:()=>t})}keyof(){return Ne(x.objectKeys(this.shape))}}w.create=(r,e)=>new w({shape:()=>r,unknownKeys:"strip",catchall:I.create(),typeName:y.ZodObject,...v(e)});w.strictCreate=(r,e)=>new w({shape:()=>r,unknownKeys:"strict",catchall:I.create(),typeName:y.ZodObject,...v(e)});w.lazycreate=(r,e)=>new w({shape:r,unknownKeys:"strip",catchall:I.create(),typeName:y.ZodObject,...v(e)});class q extends _{_parse(e){const{ctx:t}=this._processInputParams(e),a=this._def.options;function s(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 l(t,{code:d.invalid_union,unionErrors:i}),g}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(s);{let n;const i=[];for(const u of a){const h={...t,common:{...t.common,issues:[]},parent:null},f=u._parseSync({data:t.data,path:t.path,parent:h});if(f.status==="valid")return f;f.status==="dirty"&&!n&&(n={result:f,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(u=>
vendor: 4,934 bytes, line 1
1new T(u));return l(t,{code:d.invalid_union,unionErrors:o}),g}}get options(){return this._def.options}}q.create=(r,e)=>new q({options:r,typeName:y.ZodUnion,...v(e)});function X(r,e){const t=A(r),a=A(e);if(r===e)return{valid:!0,data:r};if(t===c.object&&a===c.object){const s=x.objectKeys(e),n=x.objectKeys(r).filter(o=>s.indexOf(o)!==-1),i={...r,...e};for(const o of n){const u=X(r[o],e[o]);if(!u.valid)return{valid:!1};i[o]=u.data}return{valid:!0,data:i}}else if(t===c.array&&a===c.array){if(r.length!==e.length)return{valid:!1};const s=[];for(let n=0;n<r.length;n++){const i=r[n],o=e[n],u=X(i,o);if(!u.valid)return{valid:!1};s.push(u.data)}return{valid:!0,data:s}}else return t===c.date&&a===c.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}class G extends _{_parse(e){const{status:t,ctx:a}=this._processInputParams(e),s=(n,i)=>{if(ie(n)||ie(i))return g;const o=X(n.value,i.value);return o.valid?((oe(n)||oe(i))&&t.dirty(),{status:t.value,value:o.data}):(l(a,{code:d.invalid_intersection_types}),g)};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])=>s(n,i)):s(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}G.create=(r,e,t)=>new G({left:r,right:e,typeName:y.ZodIntersection,...v(t)});class E extends _{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==c.array)return l(a,{code:d.invalid_type,expected:c.array,received:a.parsedType}),g;if(a.data.length<this._def.items.length)return l(a,{code:d.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),g;!this._def.rest&&a.data.length>this._def.items.length&&(l(a,{code:d.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...a.data].map((i,o)=>{const u=this._def.items[o]||this._def.rest;return u?u._parse(new Z(a,i,a.path,o)):null}).filter(i=>!!i);return a.common.async?Promise.all(n).then(i=>C.mergeArray(t,i)):C.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new E({...this._def,rest:e})}}E.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new E({items:r,typeName:y.ZodTuple,rest:null,...v(e)})};class ge 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!==c.map)return l(a,{code:d.invalid_type,expected:c.map,received:a.parsedType}),g;const s=this._def.keyType,n=this._def.valueType,i=[...a.data.entries()].map(([o,u],h)=>({key:s._parse(new Z(a,o,a.path,[h,"key"])),value:n._parse(new Z(a,u,a.path,[h,"value"]))}));if(a.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const u of i){const h=await u.key,f=await u.value;if(h.status==="aborted"||f.status==="aborted")return g;(h.status==="dirty"||f.status==="dirty")&&t.dirty(),o.set(h.value,f.value)}return{status:t.value,value:o}})}else{const o=new Map;for(const u of i){const h=u.key,f=u.value;if(h.status==="aborted"||f.status==="aborted")return g;(h.status==="dirty"||f.status==="dirty")&&t.dirty(),o.set(h.value,f.value)}return{status:t.value,value:o}}}}ge.create=(r,e,t)=>new ge({valueType:e,keyType:r,typeName:y.ZodMap,...v(t)});class B extends _{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==c.set)return l(a,{code:d.invalid_type,expected:c.set,received:a.parsedType}),g;const s=this._def;s.minSize!==null&&a.data.size<s.minSize.value&&(l(a,{code:d.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),t.dirty()),s.maxSize!==null&&a.data.size>s.maxSize.value&&(l(a,{code:d.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),t.dirty());const n=this._def.valueType;function i(u){const h=new Set;for(const f of u){if(f.status==="aborted")return g;f.status==="dirty"&&t.dirty(),h.add(f.value)}return{status:t.value,value:h}}const o=[...a.data.values()].map((u,h)=>n._parse(new Z(a,u,a.path,h)));return a.common.async?Promise.all(o).then(u=>i(u)):i(o)}min(e,t){return new B({...this._def,minSize:{value:e,message:m.toString(t)}})}max(e,t){return new B({...this._def,maxSize:{value:e,message:m.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}B.create=(r,e)=>new B({valueType:r,minSize:null,maxSize:null,typeName:y.ZodSet,...v(e)});class ye 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})}}ye.create=(r,e)=>new ye({getter:r,typeName:y.ZodLazy,...v(e)});class K extends _{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return l(t,{received:t.data,code:d.invalid_literal,expected:this._def.value}),g}
vendor: 8,909 bytes, line 1
1return{status:"valid",value:e.data}}get value(){return this._def.value}}K.create=(r,e)=>new K({value:r,typeName:y.ZodLiteral,...v(e)});function Ne(r,e){return new P({values:r,typeName:y.ZodEnum,...v(e)})}class P extends _{_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),a=this._def.values;return l(t,{expected:x.joinValues(a),received:t.parsedType,code:d.invalid_type}),g}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 l(t,{received:t.data,code:d.invalid_enum_value,options:a}),g}return S(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 P.create(e,{...this._def,...t})}exclude(e,t=this._def){return P.create(this.options.filter(a=>!e.includes(a)),{...this._def,...t})}}P.create=Ne;class ve extends _{_parse(e){const t=x.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==c.string&&a.parsedType!==c.number){const s=x.objectValues(t);return l(a,{expected:x.joinValues(s),received:a.parsedType,code:d.invalid_type}),g}if(this._cache||(this._cache=new Set(x.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const s=x.objectValues(t);return l(a,{received:a.data,code:d.invalid_enum_value,options:s}),g}return S(e.data)}get enum(){return this._def.values}}ve.create=(r,e)=>new ve({values:r,typeName:y.ZodNativeEnum,...v(e)});class J extends _{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==c.promise&&t.common.async===!1)return l(t,{code:d.invalid_type,expected:c.promise,received:t.parsedType}),g;const a=t.parsedType===c.promise?t.data:Promise.resolve(t.data);return S(a.then(s=>this._def.type.parseAsync(s,{path:t.path,errorMap:t.common.contextualErrorMap})))}}J.create=(r,e)=>new J({type:r,typeName:y.ZodPromise,...v(e)});class U extends _{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===y.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:a}=this._processInputParams(e),s=this._def.effect||null,n={addIssue:i=>{l(a,i),i.fatal?t.abort():t.dirty()},get path(){return a.path}};if(n.addIssue=n.addIssue.bind(n),s.type==="preprocess"){const i=s.transform(a.data,n);if(a.common.async)return Promise.resolve(i).then(async o=>{if(t.value==="aborted")return g;const u=await this._def.schema._parseAsync({data:o,path:a.path,parent:a});return u.status==="aborted"?g:u.status==="dirty"||t.value==="dirty"?M(u.value):u});{if(t.value==="aborted")return g;const o=this._def.schema._parseSync({data:i,path:a.path,parent:a});return o.status==="aborted"?g:o.status==="dirty"||t.value==="dirty"?M(o.value):o}}if(s.type==="refinement"){const i=o=>{const u=s.refinement(o,n);if(a.common.async)return Promise.resolve(u);if(u 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"?g:(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"?g:(o.status==="dirty"&&t.dirty(),i(o.value).then(()=>({status:t.value,value:o.value}))))}if(s.type==="transform")if(a.common.async===!1){const i=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!L(i))return g;const o=s.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=>L(i)?Promise.resolve(s.transform(i.value,n)).then(o=>({status:t.value,value:o})):g);x.assertNever(s)}}U.create=(r,e,t)=>new U({schema:r,typeName:y.ZodEffects,effect:e,...v(t)});U.createWithPreprocess=(r,e,t)=>new U({schema:e,effect:{type:"preprocess",transform:r},typeName:y.ZodEffects,...v(t)});class R extends _{_parse(e){return this._getType(e)===c.undefined?S(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}R.create=(r,e)=>new R({innerType:r,typeName:y.ZodOptional,...v(e)});class V extends _{_parse(e){return this._getType(e)===c.null?S(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}V.create=(r,e)=>new V({innerType:r,typeName:y.ZodNullable,...v(e)});class ee extends _{_parse(e){const{ctx:t}=this._processInputParams(e);let a=t.data;return t.parsedType===c.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ee.create=(r,e)=>new ee({innerType:r,typeName:y.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...v(e)});class te extends _{_parse(e){const{ctx:t}=this._processInputParams(e),a={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return F(s)?s.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:s.status==="valid"?s.value:this._def.catchValue({get error(){return new T(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}te.create=(r,e)=>new te({innerType:r,typeName:y.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...v(e)});class _e extends _{_parse(e){if(this._getType(e)!==c.nan){const a=this._getOrReturnCtx(e);return l(a,{code:d.invalid_type,expected:c.nan,received:a.parsedType}),g}return{status:"valid",value:e.data}}}_e.create=r=>new _e({typeName:y.ZodNaN,...v(r)});class st 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 re 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"?g:n.status==="dirty"?(t.dirty(),M(n.value)):this._def.out._parseAsync({data:n.value,path:a.path,parent:a})})();{const s=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return s.status==="aborted"?g:s.status==="dirty"?(t.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:a.path,parent:a})}}static create(e,t){return new re({in:e,out:t,typeName:y.ZodPipeline})}}class ae extends _{_parse(e){const t=this._def.innerType._parse(e),a=s=>(L(s)&&(s.value=Object.freeze(s.value)),s);return F(t)?t.then(s=>a(s)):a(t)}unwrap(){return this._def.innerType}}ae.create=(r,e)=>new ae({innerType:r,typeName:y.ZodReadonly,...v(e)});var y;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(y||(y={}));const b=O.create;I.create;j.create;const nt=w.create;q.create;G.create;E.create;const k=K.create;P.create;J.create;R.create;V.create;nt({businessName:b().trim().min(1).max(200),websiteUrl:b().trim().max(500).optional().or(k("")),contactName:b().trim().min(1).max(200),email:b().trim().email().max(320),phone:b().trim().max(50).optional().or(k("")),challengeName:b().trim().max(300).optional().or(k("")),challengeRegistrationLink:b().trim().max(500).optional().or(k("")),startDate:b().trim().max(200).optional().or(k("")),endDate:b().trim().max(200).optional().or(k("")),costToParticipate:b().trim().max(100).optional().or(k("")),registrationGoal:b().trim().max(200).optional().or(k("")),idealParticipant:b().trim().max(2e3).optional().or(k("")),problemSolving:b().trim().max(2e3).optional().or(k("")),transformation:b().trim().max(2e3).optional().or(k("")),topObjections:b().trim().max(2e3).optional().or(k("")),logoUrl:b().trim().max(500).optional().or(k("")),headsh
1otsUrl:b().trim().max(500).optional().or(k("")),testimonialsUrl:b().trim().max(2e3).optional().or(k("")),graphicsUrl:b().trim().max(500).optional().or(k("")),speakerBioUrl:b().trim().max(500).optional().or(k("")),facebookUrl:b().trim().max(500).optional().or(k("")),instagramUrl:b().trim().max(500).optional().or(k("")),linkedinUrl:b().trim().max(500).optional().or(k("")),youtubeUrl:b().trim().max(500).optional().or(k("")),contentApprover:b().trim().max(300).optional().or(k("")),preferredContactMethod:b().trim().max(100).optional().or(k("")),bestContactTime:b().trim().max(200).optional().or(k(""))});const it=Te({method:"POST"}).handler(Se("5bb5a5cbda74e44ee7a56fe1d18ab941f578a177de7d358d5462a9e181ac6e82")),xe=[[{name:"businessName",label:"Business Name *",required:!0},{name:"websiteUrl",label:"Website URL",type:"url",placeholder:"https://"},{name:"contactName",label:"Primary Contact Name *",required:!0},{name:"email",label:"Email Address *",type:"email",required:!0},{name:"phone",label:"Phone Number",type:"tel"}],[{name:"challengeName",label:"Challenge Name"},{name:"challengeRegistrationLink",label:"Challenge Registration Link",type:"url"},{name:"startDate",label:"Start Date",type:"date"},{name:"endDate",label:"End Date",type:"date"},{name:"costToParticipate",label:"Cost to Participate"},{name:"registrationGoal",label:"Desired Registration Goal"}],[{name:"idealParticipant",label:"Who is your ideal participant?",textarea:!0},{name:"problemSolving",label:"What problem are they trying to solve?",textarea:!0},{name:"transformation",label:"What transformation will they experience?",textarea:!0},{name:"topObjections",label:"Top 3 objections participants have?",textarea:!0}],[{name:"logoUrl",label:"Logo (file URL — Drive / Dropbox)",type:"url"},{name:"headshotsUrl",label:"Headshots (file URL)",type:"url"},{name:"testimonialsUrl",label:"Testimonials (URL or text)",textarea:!0},{name:"graphicsUrl",label:"Existing Graphics (file URL)",type:"url"},{name:"speakerBioUrl",label:"Speaker Bio (URL or text)",type:"url"}],[{name:"facebookUrl",label:"Facebook URL",type:"url"},{name:"instagramUrl",label:"Instagram URL",type:"url"},{name:"linkedinUrl",label:"LinkedIn URL",type:"url"},{name:"youtubeUrl",label:"YouTube URL",type:"url"}],[{name:"contentApprover",label:"Who approves content?"},{name:"preferredContactMethod",label:"Preferred communication method",type:"select",options:["Email","Phone Call","Text Message","Video Call (Zoom)","Slack","Other"]},{name:"bestContactTime",label:"Best time to contact you"}]],be=["Business Information","Challenge / Project Information","Audience","Content Assets","Social Media","Approvals"];function ut(){const r=Ae(it),[e,t]=Y.useState(!1),[a,s]=Y.useState(!1),[n,i]=Y.useState(!1);async function o(u){u.preventDefault();const h=new FormData(u.currentTarget),f={};xe.flat().forEach(N=>{f[N.name]=String(h.get(N.name)||"")}),t(!0);try{await r({data:f}),se.success("Submission received! Check your inbox for your copy and purchase links."),s(!0),u.target.reset(),window.scrollTo({top:0,behavior:"smooth"})}catch(N){console.error(N),se.error("Something went wrong. Please try again or email [email protected] directly.")}finally{t(!1)}}return p.jsxs("main",{className:"relative min-h-screen overflow-hidden bg-background text-foreground",children:[p.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 -z-10",style:{background:"radial-gradient(60% 50% at 15% 0%, oklch(0.86 0.14 88 / 0.55) 0%, transparent 60%), radial-gradient(55% 45% at 90% 10%, oklch(0.78 0.13 82 / 0.45) 0%, transparent 60%), radial-gradient(70% 60% at 50% 100%, oklch(0.22 0.08 265 / 0.18) 0%, transparent 70%), var(--background)"}}),p.jsx("section",{className:"px-6 pt-32 pb-16 lg:pt-40",children:p.jsxs("div",{className:"mx-auto max-w-3xl",children:[p.jsxs(je,{to:"/services/sourceworthy-social-media",className:"inline-flex items-center gap-2 text-xs uppercase tracking-[0.3em] text-primary hover:underline",children:[p.jsx(Ze,{className:"h-3 w-3"})," Back to Social Media Services"]}),p.jsx("p",{className:"mt-6 text-xs uppercase tracking-[0.35em] text-primary/70",children:"Intake Form"}),p.jsx("h1",{className:"mt-3 font-display text-4xl leading-tight text-primary md:text-5xl",children:"SourceWorthy™ Social Media Intake"}),p.jsx("p",{className:"mt-5 max-w-2xl text-base text-foreground
1/80 md:text-lg",children:"Share the essentials so we can build a strategy that fits your brand, audience, and goals. Once submitted, you'll receive a PDF copy of your intake along with quick purchase links for the tier that fits you best."}),a?p.jsxs("div",{className:"mt-10 rounded-2xl border border-[var(--gold)]/50 bg-card/90 p-8 text-center shadow-[var(--shadow-elegant)] backdrop-blur",children:[p.jsx("h2",{className:"font-display text-2xl text-primary",children:"Thank you!"}),p.jsx("p",{className:"mt-3 text-foreground/80",children:"Your intake has been received. Check your inbox shortly for a PDF copy and purchase links for your chosen tier."}),p.jsx("button",{onClick:()=>s(!1),className:"mt-6 rounded-full bg-primary px-6 py-2 text-xs font-semibold uppercase tracking-[0.2em] text-primary-foreground transition hover:opacity-90",children:"Submit Another"})]}):p.jsxs("form",{onSubmit:o,className:"mt-10 space-y-10 rounded-3xl border border-[var(--gold)]/40 bg-card/90 p-6 shadow-[var(--shadow-elegant)] backdrop-blur lg:p-10",children:[xe.map((u,h)=>p.jsxs("fieldset",{className:"space-y-5",children:[p.jsx("legend",{className:"mb-3 inline-block rounded-full px-5 py-1.5 text-xs font-extrabold uppercase tracking-[0.32em] text-primary-foreground shadow-md ring-1 ring-[var(--gold)]/40",style:{background:"var(--gradient-navy)"},children:be[h]}),p.jsx("div",{className:"grid gap-5 md:grid-cols-2",children:u.map(f=>p.jsxs("label",{className:`block ${f.textarea?"md:col-span-2":""}`,children:[p.jsx("span",{className:"text-xs font-bold uppercase tracking-[0.25em] text-primary",children:f.label}),f.textarea?p.jsx("textarea",{name:f.name,rows:3,required:f.required,placeholder:f.placeholder,className:"mt-2 w-full rounded-xl border border-input bg-background px-4 py-3 text-sm text-foreground outline-none transition placeholder:text-muted-foreground/60 focus:border-[var(--gold)] focus:ring-2 focus:ring-[var(--gold)]/30"}):f.type==="select"?p.jsxs("select",{name:f.name,required:f.required,defaultValue:"",className:"mt-2 w-full rounded-xl border border-input bg-background px-4 py-3 text-sm text-foreground outline-none transition focus:border-[var(--gold)] focus:ring-2 focus:ring-[var(--gold)]/30",children:[p.jsx("option",{value:"",disabled:!0,children:"Select an option…"}),f.options?.map(N=>p.jsx("option",{value:N,children:N},N))]}):p.jsx("input",{name:f.name,type:f.type||"text",required:f.required,placeholder:f.placeholder,className:"mt-2 w-full rounded-xl border border-input bg-background px-4 py-3 text-sm text-foreground outline-none transition placeholder:text-muted-foreground/60 focus:border-[var(--gold)] focus:ring-2 focus:ring-[var(--gold)]/30"})]},f.name))}),be[h]==="Content Assets"&&p.jsxs("div",{className:"mt-2 space-y-3 rounded-xl border border-[var(--gold)]/40 bg-[var(--gold)]/10 p-4",children:[p.jsxs("label",{className:"flex items-start gap-3",children:[p.jsx("input",{type:"checkbox",name:"emailAssetsInstead",value:"yes",checked:n,onChange:f=>i(f.target.checked),className:"mt-1 h-4 w-4 accent-[var(--gold)]"}),p.jsxs("span",{className:"text-sm text-foreground/85",children:[p.jsx("span",{className:"font-semibold text-primary",children:"I don't have URLs ready."})," ","I'll email my logo, headshots, graphics, and other assets to"," ",p.jsx("a",{href:"mailto:[email protected]",className:"font-semibold text-primary underline decoration-[var(--gold)] underline-offset-4 hover:opacity-80",children:"[email protected]"}),"."]})]}),n&&p.jsxs("div",{className:"rounded-lg border border-[var(--gold)]/40 bg-background/70 p-4 text-sm text-foreground/85",children:[p.jsx("p",{className:"font-semibold text-primary",children:"What to include in your email"}),p.jsxs("p",{className:"mt-2",children:[p.jsx("span",{className:"font-semibold",children:"Subject line:"})," “Content Assets — [Your Business Name]”"]}),p.jsx("p",{className:"mt-4 text-xs font-bold uppercase tracking-[0.2em] text-primary",children:"File checklist"}),p.jsx("ul",{className:"mt-2 space-y-2",children:[{label:"Logo",detail:"PNG or SVG · transparent background preferred"}
1,{label:"Professional headshots",detail:"High-resolution JPG or PNG (at least 1200px wide)"},{label:"Brand graphics",detail:"Existing creatives, brand colors (hex), and fonts"},{label:"Testimonials",detail:"Text, screenshots, or video links"},{label:"Speaker bio",detail:"Word doc, PDF, or pasted in the email body"},{label:"Anything else relevant",detail:"Past flyers, sample posts, event photos, etc."}].map(f=>p.jsxs("li",{className:"flex items-start gap-3",children:[p.jsx("input",{type:"checkbox",className:"mt-1 h-4 w-4 flex-none accent-[var(--gold)]","aria-label":f.label}),p.jsxs("span",{children:[p.jsx("span",{className:"font-semibold text-primary",children:f.label}),p.jsxs("span",{className:"text-foreground/70",children:[" — ",f.detail]})]})]},f.label))}),p.jsxs("p",{className:"mt-4",children:[p.jsx("span",{className:"font-semibold text-primary",children:"When to send:"})," Please email your assets ",p.jsx("span",{className:"font-semibold",children:"within 24 hours"})," ","of submitting this form so we can keep your project on schedule. Send to"," ",p.jsx("a",{href:"mailto:[email protected]",className:"font-semibold text-primary underline decoration-[var(--gold)] underline-offset-4 hover:opacity-80",children:"[email protected]"})," ","and reference the business name you submitted above."]})]})]})]},h)),p.jsx("button",{type:"submit",disabled:e,className:"inline-flex items-center gap-2 rounded-full px-7 py-3 text-xs font-semibold uppercase tracking-[0.2em] text-primary-foreground shadow-lg transition hover:opacity-95 disabled:opacity-60",style:{background:"var(--gradient-navy)"},children:e?p.jsxs(p.Fragment,{children:[p.jsx(Oe,{className:"h-4 w-4 animate-spin"})," Sending..."]}):p.jsxs(p.Fragment,{children:["Submit Intake ",p.jsx(Re,{className:"h-4 w-4"})]})})]})]})})]})}export{ut as component};

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.