1import{j as e}from"./vendor-ui-BTflVCYH.js";import{H as t}from"./Helmet-CdCW_w3y.js";import{F as s,a_ as r,bF as a,co as i,cp as n,bE as o,bD as l,cq as c,cr as d,cs as m,ah as u,ag as f,bY as x,bT as p,B as h,ai as g,a4 as y,ak as v,aO as b,_,aS as j,aK as N,aC as w}from"./index-VPrBI0jw.js";import{R as F,r as k,L as V}from"./vendor-react-C1oHWVKU.js";import{M as S}from"./message-square-BS55dv75.js";import{U as A}from"./user-check-CEH1jAjI.js";import{C}from"./checkbox-XMBNK0Bu.js";import{P as D}from"./progress-Bh1n_XeW.js";import{S as E,a as M,b as P,c as O,d as R}from"./select-Pc3UvuNg.js";import{S as L}from"./switch-CHoXnZ71.js";import{B as U}from"./badge-DHOsJdEz.js";import{C as q}from"./circle-check-big-PR87RlJD.js";import{U as I}from"./upload-C5bVK2Jj.js";import{A as T}from"./arrow-left-D-yoOJrI.js";import{B}from"./briefcase-BOKUD9m8.js";import{F as W}from"./file-check-Lg4DN2TP.js";import{E as G}from"./eye-PISV77Gz.js";import{S as $}from"./scale-80Ictz9j.js";import"./index-DuTKkHYa.js";import"./vendor-supabase-DVhvKAbe.js";import"./vendor-query-ClOX5kUH.js";import"./chevron-up-Be7T3RU1.js";const H=[{number:"01",icon:s,title:"Submit a Full Application",description:"Share company, contact, fund, fee, regulatory, and document details in one public form."},{number:"02",icon:r,title:"Internal Review",description:"Our team reviews the submission for relevance, completeness, and platform fit."},{number:"03",icon:S,title:"Methodology Review",description:"If the fund appears relevant, we request the documents needed for listing and the 8-point verification review."},{number:"04",icon:A,title:"Private Onboarding",description:"Suitable applications move into a private onboarding and manager-access workflow after admin review."}];function z(){return e.jsx("section",{className:"py-20 bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-5xl",children:[e.jsx("h2",{className:"font-serif text-3xl md:text-4xl text-foreground mb-4",children:"How the Process Works"}),e.jsx("div",{className:"w-16 h-px bg-accent mb-12"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:H.map((t=>e.jsxs("div",{className:"border border-border p-8 flex flex-col gap-4",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:t.number}),e.jsx(t.icon,{className:"h-5 w-5 text-accent"})]}),e.jsx("h3",{className:"font-serif text-xl text-foreground",children:t.title}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:t.description})]},t.number)))})]})})}const Y=[{title:"Directory Submission",status:"Free to submit",features:["Initial fund and manager details","Reviewed for Portugal Golden Visa relevance","No paid ranking or ordering","Subject to internal review"]},{title:"Verification Review",status:"Methodology-based",highlight:!0,features:["8-point legal review","CMVM and document checks","Fee and term consistency review","Verified badge cannot be purchased","Failed checks remain unverified"]},{title:"Profile Onboarding",status:"For accepted listings",features:["Structured public profile setup","Source-backed fund data","Manager and team information","Document upload and update workflow","Commercial relationships disclosed separately"]}];function K(){return e.jsx("section",{className:"py-20 bg-muted/30",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-5xl",children:[e.jsx("h2",{className:"font-serif text-3xl md:text-4xl text-foreground mb-4",children:"Submission and Review"}),e.jsx("div",{className:"w-16 h-px bg-accent mb-12"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-0 border border-border",children:Y.map(((t,s)=>e.jsxs("div",{className:`p-8 flex flex-col gap-6 ${s<Y.length-1?"md:border-r border-b md:border-b-0 border-border":""} ${t.highlight?"bg-foreground text-background":""}`,children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-serif text-xl mb-2",children:t.title}),e.jsx("p",{className:"text-sm font-mono "+(t.highlight?"text-background/70":"text-accent"),children:t.status})]}),e.jsx("ul",{className:"flex flex-col gap-3 flex-1",children:t.features.map((s=>e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(a,{className:"h-4 w-4 mt-0.5 shrink-0 "+(t.highlight?"text-background/70":"text-accent")}),e.jsx("span",{className:t.highlight?"text-background/90":"text-muted-foreground",children:s})]},s)))})]},t.title)))}),e.jsx("p",{className:"text-xs text-muted-foreground mt-6 max-w-3xl",children:"Submission is free. Verification is based on documented checks and does not constitute endorsement, investment advice, or a recommendation."})]})})}var J=e=>"checkbox"===e.type,Q=e=>e instanceof Date,X=e=>null==e;const Z=e=>"object"==typeof e;var ee=e=>!X(e)&&!Array.isArray(e)&&Z(e)&&!Q(e),te="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function se(e){let t;const s=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(te&&(e instanceof Blob||e instanceof FileList)||!s&&!ee(e))return e;if(t=s?[]:{},s||(e=>{const t=e.constructor&&e.constructor.prototype;return ee(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const s in e)e.hasOwnProperty(s)&&(t[s]=se(e[s]));else t=e}return t}var re=e=>Array.isArray(e)?e.filter(Boolean):[],ae=e=>void 0===e,ie=(e,t,s)=>{if(!t||!ee(e))return s;const r=re(t.split(/[,[\].]+?/)).reduce(((e,t)=>X(e)?e:e[t]),e);return ae(r)||r===e?ae(e[t])?s:e[t]:r},ne=e=>"boolean"==typeof e,oe=e=>/^\w*$/.test(e),le=e=>re(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ce=(e,t,s)=>{let r=-1;const a=oe(t)?[t]:le(t),i=a.length,n=i-1;for(;++r<i;){const t=a[r];let i=s;if(r!==n){const s=e[t];i=ee(s)||Array.isArray(s)?s:isNaN(+a[r+1])?{}:[]}if("__proto__"===t)return;e[t]=i,e=e[t]}return e};const de="blur",me="focusout",ue="onBlur",fe="onChange",xe="onSubmit",pe="onTouched",he="all",ge="max",ye="min",ve="maxLength",be="minLength",_e="pattern",je="required",Ne="validate";F.createContext(null);var we=e=>ee(e)&&!Object.keys(e).length,Fe=e=>Array.isArray(e)?e:[e];var ke=e=>"string"==typeof e,Ve=(e,t,s,r,a)=>t?{...s[e],types:{...s[e]&&s[e].types?s[e].types:{}
vendor: 16,866 bytes, line 1
1,[r]:a||!0}}:{},Se=e=>({isOnSubmit:!e||e===xe,isOnBlur:e===ue,isOnChange:e===fe,isOnAll:e===he,isOnTouch:e===pe}),Ae=(e,t,s)=>!s&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const Ce=(e,t,s,r)=>{for(const a of s||Object.keys(e)){const s=ie(e,a);if(s){const{_f:e,...i}=s;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],a)&&!r)return!0;if(e.ref&&t(e.ref,e.name)&&!r)return!0;if(Ce(i,t))break}else if(ee(i)&&Ce(i,t))break}}};var De=(e,t,s)=>{const r=Fe(ie(e,s));return ce(r,"root",t[s]),ce(e,s,r),e},Ee=e=>"file"===e.type,Me=e=>"function"==typeof e,Pe=e=>{if(!te)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Oe=e=>ke(e),Re=e=>"radio"===e.type,Le=e=>e instanceof RegExp;const Ue={value:!1,isValid:!1},qe={value:!0,isValid:!0};var Ie=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ae(e[0].attributes.value)?ae(e[0].value)||""===e[0].value?qe:{value:e[0].value,isValid:!0}:qe:Ue}return Ue};const Te={isValid:!1,value:null};var Be=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),Te):Te;function We(e,t,s="validate"){if(Oe(e)||Array.isArray(e)&&e.every(Oe)||ne(e)&&!e)return{type:s,message:Oe(e)?e:"",ref:t}}var Ge=e=>ee(e)&&!Le(e)?e:{value:e,message:""},$e=async(e,t,s,r,a)=>{const{ref:i,refs:n,required:o,maxLength:l,minLength:c,min:d,max:m,pattern:u,validate:f,name:x,valueAsNumber:p,mount:h,disabled:g}=e._f,y=ie(t,x);if(!h||g)return{};const v=n?n[0]:i,b=e=>{r&&v.reportValidity&&(v.setCustomValidity(ne(e)?"":e||""),v.reportValidity())},_={},j=Re(i),N=J(i),w=j||N,F=(p||Ee(i))&&ae(i.value)&&ae(y)||Pe(i)&&""===i.value||""===y||Array.isArray(y)&&!y.length,k=Ve.bind(null,x,s,_),V=(e,t,s,r=ve,a=be)=>{const n=e?t:s;_[x]={type:e?r:a,message:n,ref:i,...k(e?r:a,n)}};if(a?!Array.isArray(y)||!y.length:o&&(!w&&(F||X(y))||ne(y)&&!y||N&&!Ie(n).isValid||j&&!Be(n).isValid)){const{value:e,message:t}=Oe(o)?{value:!!o,message:o}:Ge(o);if(e&&(_[x]={type:je,message:t,ref:v,...k(je,t)},!s))return b(t),_}if(!(F||X(d)&&X(m))){let e,t;const r=Ge(m),a=Ge(d);if(X(y)||isNaN(y)){const s=i.valueAsDate||new Date(y),n=e=>new Date((new Date).toDateString()+" "+e),o="time"==i.type,l="week"==i.type;ke(r.value)&&y&&(e=o?n(y)>n(r.value):l?y>r.value:s>new Date(r.value)),ke(a.value)&&y&&(t=o?n(y)<n(a.value):l?y<a.value:s<new Date(a.value))}else{const s=i.valueAsNumber||(y?+y:y);X(r.value)||(e=s>r.value),X(a.value)||(t=s<a.value)}if((e||t)&&(V(!!e,r.message,a.message,ge,ye),!s))return b(_[x].message),_}if((l||c)&&!F&&(ke(y)||a&&Array.isArray(y))){const e=Ge(l),t=Ge(c),r=!X(e.value)&&y.length>+e.value,a=!X(t.value)&&y.length<+t.value;if((r||a)&&(V(r,e.message,t.message),!s))return b(_[x].message),_}if(u&&!F&&ke(y)){const{value:e,message:t}=Ge(u);if(Le(e)&&!y.match(e)&&(_[x]={type:_e,message:t,ref:i,...k(_e,t)},!s))return b(t),_}if(f)if(Me(f)){const e=We(await f(y,t),v);if(e&&(_[x]={...e,...k(Ne,e.message)},!s))return b(e.message),_}else if(ee(f)){let e={};for(const r in f){if(!we(e)&&!s)break;const a=We(await f[r](y,t),v,r);a&&(e={...a,...k(r,a.message)},b(a.message),s&&(_[x]=e))}if(!we(e)&&(_[x]={ref:v,...e},!s))return _}return b(!0),_};function He(e,t){const s=Array.isArray(t)?t:oe(t)?[t]:le(t),r=1===s.length?e:function(e,t){const s=t.slice(0,-1).length;let r=0;for(;r<s;)e=ae(e)?r++:e[t[r++]];return e}(e,s),a=s.length-1,i=s[a];return r&&delete r[i],0!==a&&(ee(r)&&we(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!ae(e[t]))return!1;return!0}(r))&&He(e,s.slice(0,-1)),e}var ze=()=>{let e=[];return{get observers(){return e},next:t=>{for(const s of e)s.next&&s.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},Ye=e=>X(e)||!Z(e);function Ke(e,t){if(Ye(e)||Ye(t))return e===t;if(Q(e)&&Q(t))return e.getTime()===t.getTime();const s=Object.keys(e),r=Object.keys(t);if(s.length!==r.length)return!1;for(const a of s){const s=e[a];if(!r.includes(a))return!1;if("ref"!==a){const e=t[a];if(Q(s)&&Q(e)||ee(s)&&ee(e)||Array.isArray(s)&&Array.isArray(e)?!Ke(s,e):s!==e)return!1}}return!0}var Je=e=>"select-multiple"===e.type,Qe=e=>Pe(e)&&e.isConnected,Xe=e=>{for(const t in e)if(Me(e[t]))return!0;return!1};function Ze(e,t={}){const s=Array.isArray(e);if(ee(e)||s)for(const r in e)Array.isArray(e[r])||ee(e[r])&&!Xe(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Ze(e[r],t[r])):X(e[r])||(t[r]=!0);return t}function et(e,t,s){const r=Array.isArray(e);if(ee(e)||r)for(const a in e)Array.isArray(e[a])||ee(e[a])&&!Xe(e[a])?ae(t)||Ye(s[a])?s[a]=Array.isArray(e[a])?Ze(e[a],[]):{...Ze(e[a])}:et(e[a],X(t)?{}:t[a],s[a]):s[a]=!Ke(e[a],t[a]);return s}var tt=(e,t)=>et(e,t,Ze(t)),st=(e,{valueAsNumber:t,valueAsDate:s,setValueAs:r})=>ae(e)?e:t?""===e?NaN:e?+e:e:s&&ke(e)?new Date(e):r?r(e):e;function rt(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return Ee(t)?t.files:Re(t)?Be(e.refs).value:Je(t)?[...t.selectedOptions].map((({value:e})=>e)):J(t)?Ie(e.refs).value:st(ae(t.value)?e.ref.value:t.value,e)}var at=e=>ae(e)?e:Le(e)?e.source:ee(e)?Le(e.value)?e.value.source:e.value:e;const it="AsyncFunction";function nt(e,t,s){const r=ie(e,s);if(r||oe(s))return{error:r,name:s};const a=s.split(".");for(;a.length;){const r=a.join("."),i=ie(t,r),n=ie(e,r);if(i&&!Array.isArray(i)&&s!==r)return{name:s};if(n&&n.type)return{name:r,error:n};a.pop()}return{name:s}}const ot={mode:xe,reValidateMode:fe,shouldFocusError:!0};function lt(e={}){let t,s={...ot,...e},r={submitCount:0,isDirty:!1,isLoading:Me(s.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:s.errors||{},disabled:s.disabled||!1},a={},i=(ee(s.defaultValues)||ee(s.values))&&se(s.defaultValues||s.values)||{},n=s.shouldUnregister?{}:se(i),o={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:ze(),array:ze(),state:ze()},u=Se(s.mode),f=Se(s.reValidateMode),x=s.criteriaMode===he,p=async t=>{if(!e.disabled&&(d.isValid||t)){const e=s.resolver?we((await b()).errors):await _(a,!0);e!==r.isValid&&m.state.next({isValid:e})}},h=(t,s)=>{e.disabled||!d.isValidating&&!d.validatingFields||((t||Array.from(l.mount)).forEach((e=>{e&&(s?ce(r.validatingFields,e,s):He(r.validatingFields,e))})),m.state.next({validatingFields:r.validatingFields,isValidating:!we(r.validatingFields)}))},g=(e,t,s,r)=>{const l=ie(a,e);if(l){const a=ie(n,e,ae(s)?ie(i,e):s);ae(a)||r&&r.defaultChecked||t?ce(n,e,t?a:rt(l._f)):w(e,a),o.mount&&p()}},y=(t,s,n,o,l)=>{let c=!1,u=!1;const f={name:t};if(!e.disabled){const e=!!(ie(a,t)&&ie(a,t)._f&&ie(a,t)._f.disabled);if(!n||o){d.isDirty&&(u=r.isDirty,r.isDirty=f.isDirty=j(),c=u!==f.isDirty);const a=e||Ke(ie(i,t),s);u=!(e||!ie(r.dirtyFields,t)),a||e?He(r.dirtyFields,t):ce(r.dirtyFields,t,!0),f.dirtyFields=r.dirtyFields,c=c||d.dirtyFields&&u!==!a}if(n){const e=ie(r.touchedFields,t);e||(ce(r.touchedFields,t,n),f.touchedFields=r.touchedFields,c=c||d.touchedFields&&e!==n)}c&&l&&m.state.next(f)}return c?f:{}},v=(s,a,i,n)=>{const o=ie(r.errors,s),l=d.isValid&&ne(a)&&r.isValid!==a;var u;if(e.delayError&&i?(u=()=>((e,t)=>{ce(r.errors,e,t),m.state.next({errors:r.errors})})(s,i),t=e=>{clearTimeout(c),c=setTimeout(u,e)},t(e.delayError)):(clearTimeout(c),t=null,i?ce(r.errors,s,i):He(r.errors,s)),(i?!Ke(o,i):o)||!we(n)||l){const e={...n,...l&&ne(a)?{isValid:a}:{},errors:r.errors,name:s};r={...r,...e},m.state.next(e)}},b=async e=>{h(e,!0);const t=await s.resolver(n,s.context,((e,t,s,r)=>{const a={};for(const i of e){const e=ie(t,i);e&&ce(a,i,e._f)}return{criteriaMode:s,names:[...e],fields:a,shouldUseNativeValidation:r}})(e||l.mount,a,s.criteriaMode,s.shouldUseNativeValidation));return h(e),t},_=async(e,t,a={valid:!0})=>{for(const o in e){const c=e[o];if(c){const{_f:e,...m}=c;if(e){const m=l.array.has(e.name),u=c._f&&!((i=c._f)&&i.validate||!(Me(i.validate)&&i.validate.constructor.name===it||ee(i.validate)&&Object.values(i.validate).find((e=>e.constructor.name===it))));u&&d.validatingFields&&h([o],!0);const f=await $e(c,n,x,s.shouldUseNativeValidation&&!t,m);if(u&&d.validatingFields&&h([o]),f[e.name]&&(a.valid=!1,t))break;!t&&(ie(f,e.name)?m?De(r.errors,f,e.name):ce(r.errors,e.name,f[e.name]):He(r.errors,e.name))}!we(m)&&await _(m,t,a)}}var i;return a.valid},j=(t,s)=>!e.disabled&&(t&&s&&ce(n,t,s),!Ke(C(),i)),N=(e,t,s)=>((e,t,s,r,a)=>ke(e)?(r&&t.watch.add(e),ie(s,e,a)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),ie(s,e)))):(r&&(t.watchAll=!0),s))(e,l,{...o.mount?n:ae(t)?i:ke(e)?{[e]:t}:t},s,t),w=(e,t,s={})=>{const r=ie(a,e);let i=t;if(r){const s=r._f;s&&(!s.disabled&&ce(n,e,st(t,s)),i=Pe(s.ref)&&X(t)?"":t,Je(s.ref)?[...s.ref.options].forEach((e=>e.selected=i.includes(e.value))):s.refs?J(s.ref)?s.refs.length>1?s.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):s.refs[0]&&(s.refs[0].checked=!!i):s.refs.forEach((e=>e.checked=e.value===i)):Ee(s.ref)?s.ref.value="":(s.ref.value=i,s.ref.type||m.values.next({name:e,values:{...n}})))}(s.shouldDirty||s.shouldTouch)&&y(e,i,s.shouldTouch,s.shouldDirty,!0),s.shouldValidate&&A(e)},F=(e,t,s)=>{for(const r in t){const i=t[r],n=`${e}.${r}`,o=ie(a,n);(l.array.has(e)||ee(i)||o&&!o._f)&&!Q(i)?F(n,i,s):w(n,i,s)}},k=(e,t,s={})=>{const c=ie(a,e),u=l.array.has(e),f=se(t);ce(n,e,f),u?(m.array.next({name:e,values:{...n}}),(d.isDirty||d.dirtyFields)&&s.shouldDirty&&m.state.next({name:e,dirtyFields:tt(i,n),isDirty:j(e,f)})):!c||c._f||X(f)?w(e,f,s):F(e,f,s),Ae(e,l)&&m.state.next({...r}),m.values.next({name:o.mount?e:void 0,values:{...n}})},V=async i=>{o.mount=!0;const c=i.target;let g=c.name,j=!0;const N=ie(a,g),w=()=>c.type?rt(N._f):(e=>ee(e)&&e.target?J(e.target)?e.target.checked:e.target.value:e)(i),F=e=>{j=Number.isNaN(e)||Q(e)&&isNaN(e.getTime())||Ke(e,ie(n,g,e))};if(N){let o,c;const k=w(),V=i.type===de||i.type===me,S=!(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate))(N._f)&&!s.resolver&&!ie(r.errors,g)&&!N._f.deps||((e,t,s,r,a)=>!a.isOnAll&&(!s&&a.isOnTouch?!(t||e):(s?r.isOnBlur:a.isOnBlur)?!e:!(s?r.isOnChange:a.isOnChange)||e))(V,ie(r.touchedFields,g),r.isSubmitted,f,u),C=Ae(g,l,V);ce(n,g,k),V?(N._f.onBlur&&N._f.onBlur(i),t&&t(0)):N._f.onChange&&N._f.onChange(i);const D=y(g,k,V,!1),E=!we(D)||C;if(!V&&m.values.next({name:g,type:i.type,values:{...n}}),S)return d.isValid&&("onBlur"===e.mode?V&&p():p()),E&&m.state.next({name:g,...C?{}:D});if(!V&&C&&m.state.next({...r}),s.resolver){const{errors:e}=await b([g]);if(F(k),j){const t=nt(r.errors,a,g),s=nt(e,a,t.name||g);o=s.error,g=s.name,c=we(e)}}else h([g],!0),o=(await $e(N,n,x,s.shouldUseNativeValidation))[g],h([g]),F(k),j&&(o?c=!1:d.isValid&&(c=await _(a,!0)));j&&(N._f.deps&&A(N._f.deps),v(g,c,o,D))}},S=(e,t)=>{if(ie(r.errors,t)&&e.focus)return e.focus(),1},A=async(e,t={})=>{let i,n;const o=Fe(e);if(s.resolver){const t=await(async e=>{const{errors:t}=await b(e);if(e)for(const s of e){const e=ie(t,s);e?ce(r.errors,s,e):He(r.errors,s)}else r.errors=t;return t})(ae(e)?e:o);i=we(t),n=e?!o.some((e=>ie(t,e))):i}else e?(n=(await Promise.all(o.map((async e=>{const t=ie(a,e);return await _(t&&t._f?{[e]:t}:t)})))).every(Boolean),(n||r.isValid)&&p()):n=i=await _(a);return m.state.next({...!ke(e)||d.isValid&&i!==r.isValid?{}:{name:e},...s.resolver||!e?{isValid:i}:{},errors:r.errors}),t.shouldFocus&&!n&&Ce(a,S,e?o:l.mount),n},C=e=>{const t={...o.mount?n:i};return ae(e)?t:ke(e)?ie(t,e):e.map((e=>ie(t,e)))},D=(e,t)=>({invalid:!!ie((t||r).errors,e),isDirty:!!ie((t||r).dirtyFields,e),error:ie((t||r).errors,e),isValidating:!!ie(r.validatingFields,e),isTouched:!!ie((t||r).touchedFields,e)}),E=(e,t,s)=>{const i=(ie(a,e,{_f:{}})._f||{}).ref,n=ie(r.errors,e)||{},{ref:o,message:l,type:c,...d}=n;ce(r.errors,e,{...d,...t,ref:i}),m.state.next({name:e,errors:r.errors,isValid:!1}),s&&s.shouldFocus&&i&&i.focus&&i.focus()},M=(e,t={})=>{for(const o of e?Fe(e):l.mount)l.mount.delete(o),l.array.delete(o),t.keepValue||(He(a,o),He(n,o)),!t.keepError&&He(r.errors,o),!t.keepDirty&&He(r.dirtyFields,o),!t.keepTouched&&He(r.touchedFields,o),!t.keepIsValidating&&He(r.validatingFields,o),!s.shouldUnregister&&!t.keepDefaultValue&&He(i,o);m.values.next({values:{...n}}),m.state.next({...r,...t.keepDirty?{isDirty:j()}:{}}),!t.keepIsValid&&p()},P=({disabled:e,name:t,field:s,fields:r,value:a})=>{if(ne(e)&&o.mount||e){const i=e?void 0:ae(a)?rt(s?s._f:ie(r,t)._f):a;ce(n,t,i),y(t,i,!1,!1,!0)}},O=(t,r={})=>{let n=ie(a,t);const c=ne(r.disabled)||ne(e.disabled);return ce(a,t,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:t}},name:t,mount:!0,...r}}),l.mount.add(t),n?P({field:n,disabled:ne(r.disabled)?r.disabled:e.disabled,name:t,value:r.value}):g(t,!0,r.value),{...c?{disabled:r.disabled||e.disabled}:{},...s.progressive?{required:!!r.required,min:at(r.min),max:at(r.max),minLength:at(r.minLength),maxLength:at(r.maxLength),pattern:at(r.pattern)}:{},name:t,onChange:V,onBlur:V,ref:e=>{if(e){O(t,r),n=ie(a,t);const s=ae(e.value)&&e.querySelectorAll&&e.querySelectorAll("input,select,textarea")[0]||e,o=(e=>Re(e)||J(e))(s),l=n._f.refs||[];if(o?l.find((e=>e===s)):s===n._f.ref)return;ce(a,t,{_f:{...n._f,...o?{refs:[...l.filter(Qe),s,...Array.isArray(ie(i,t))?[{}]:[]],ref:{type:s.type,name:t}}:{ref:s}}}),g(t,!1,void 0,s)}else n=ie(a,t,{}),n._f&&(n._f.mount=!1),(s.shouldUnregister||r.shouldUnregister)&&(!((e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)))(l.array,t)||!o.action)&&l.unMount.add(t)}}},R=()=>s.shouldFocusError&&Ce(a,S,l.mount),L=(e,t)=>async i=>{let o;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let l=se(n);if(m.state.next({isSubmitting:!0}),s.resolver){const{errors:e,values:t}=await b();r.errors=e,l=t}else await _(a);if(He(r.errors,"root"),we(r.errors)){m.state.next({errors:{}});try{await e(l,i)}catch(c){o=c}}else t&&await t({...r.errors},i),R(),setTimeout(R);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:we(r.errors)&&!o,submitCount:r.submitCount+1,errors:r.errors}),o)throw o},U=(t,s={})=>{const c=t?se(t):i,u=se(c),f=we(t),x=f?i:u;if(s.keepDefaultValues||(i=c),!s.keepValues){if(s.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(tt(i,n))]);for(const t of Array.from(e))ie(r.dirtyFields,t)?ce(x,t,ie(n,t)):k(t,ie(x,t))}else{if(te&&ae(t))for(const e of l.mount){const t=ie(a,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Pe(e)){const t=e.closest("form");if(t){t.reset();break}}}}a={}}n=e.shouldUnregister?s.keepDefaultValues?se(i):{}:se(x),m.array.next({values:{...x}}),m.values.next({values:{...x}})}l={mount:s.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!d.isValid||!!s.keepIsValid||!!s.keepDirtyValues,o.watch=!!e.shouldUnregister,m.state.next({submitCount:s.keepSubmitCount?r.submitCount:0,isDirty:!f&&(s.keepDirty?r.isDirty:!(!s.keepDefaultValues||Ke(t,i))),isSubmitted:!!s.keepIsSubmitted&&r.isSubmitted,dirtyFields:f?{}:s.keepDirtyValues?s.keepDefaultValues&&n?tt(i,n):r.dirtyFields:s.keepDefaultValues&&t?tt(i,t):s.keepDirty?r.dirtyFields:{},touchedFields:s.keepTouched?r.touchedFields:{},errors:s.keepErrors?r.errors:{},isSubmitSuccessful:!!s.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},q=(e,t)=>U(Me(e)?e(n):e,t);return{control:{register:O,unregister:M,getFieldState:D,handleSubmit:L,setError:E,_executeSchema:b,_getWatch:N,_getDirty:j,_updateValid:p,_removeUnmounted:()=>{for(const e of l.unMount){const t=ie(a,e);t&&(t._f.refs?t._f.refs.every((e=>!Qe(e))):!Qe(t._f.ref))&&M(e)}l.unMount=new Set},_updateFieldArray:(t,s=[],l,c,u=!0,f=!0)=>{if(c&&l&&!e.disabled){if(o.action=!0,f&&Array.isArray(ie(a,t))){const e=l(ie(a,t),c.argA,c.argB);u&&ce(a,t,e)}if(f&&Array.isArray(ie(r.errors,t))){const e=l(ie(r.errors,t),c.argA,c.argB);u&&ce(r.errors,t,e),((e,t)=>{!re(ie(e,t)).length&&He(e,t)})(r.errors,t)}if(d.touchedFields&&f&&Array.isArray(ie(r.touchedFields,t))){const e=l(ie(r.touchedFields,t),c.argA,c.argB);u&&ce(r.touchedFields,t,e)}d.dirtyFields&&(r.dirtyFields=tt(i,n)),m.state.next({name:t,isDirty:j(t,s),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ce(n,t,s)},_updateDisabledField:P,_getFieldArray:t=>re(ie(o.mount?n:i,t,e.shouldUnregister?ie(i,t,[]):[])),_reset:U,_resetDefaultValues:()=>Me(s.defaultValues)&&s.defaultValues().then((e=>{q(e,s.resetOptions),m.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{ne(e)&&(m.state.next({disabled:e}),Ce(a,((t,s)=>{const r=ie(a,s);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEac
1h((t=>{t.disabled=r._f.disabled||e})))}),0,!1))},_subjects:m,_proxyFormState:d,_setErrors:e=>{r.errors=e,m.state.next({errors:r.errors,isValid:!1})},get _fields(){return a},get _formValues(){return n},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return s},set _options(e){s={...s,...e}}},trigger:A,register:O,handleSubmit:L,watch:(e,t)=>Me(e)?m.values.subscribe({next:s=>e(N(void 0,t),s)}):N(e,t,!0),setValue:k,getValues:C,reset:q,resetField:(e,t={})=>{ie(a,e)&&(ae(t.defaultValue)?k(e,se(ie(i,e))):(k(e,t.defaultValue),ce(i,e,se(t.defaultValue))),t.keepTouched||He(r.touchedFields,e),t.keepDirty||(He(r.dirtyFields,e),r.isDirty=t.defaultValue?j(e,se(ie(i,e))):j()),t.keepError||(He(r.errors,e),d.isValid&&p()),m.state.next({...r}))},clearErrors:e=>{e&&Fe(e).forEach((e=>He(r.errors,e))),m.state.next({errors:e?r.errors:{}})},unregister:M,setError:E,setFocus:(e,t={})=>{const s=ie(a,e),r=s&&s._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:D}}function ct(e={}){const t=F.useRef(),s=F.useRef(),[r,a]=F.useState({isDirty:!1,isValidating:!1,isLoading:Me(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Me(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...lt(e),formState:r});const i=t.current.control;return i._options=e,function(e){const t=F.useRef(e);t.current=e,F.useEffect((()=>{const s=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{s&&s.unsubscribe()}}),[e.disabled])}({subject:i._subjects.state,next:e=>{((e,t,s)=>{s(e);const{name:r,...a}=e;return we(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find((e=>t[e]===he))})(e,i._proxyFormState,i._updateFormState)&&a({...i._formState})}}),F.useEffect((()=>i._disableForm(e.disabled)),[i,e.disabled]),F.useEffect((()=>{if(i._proxyFormState.isDirty){const e=i._getDirty();e!==r.isDirty&&i._subjects.state.next({isDirty:e})}}),[i,r.isDirty]),F.useEffect((()=>{e.values&&!Ke(e.values,s.current)?(i._reset(e.values,i._options.resetOptions),s.current=e.values,a((e=>({...e})))):i._resetDefaultValues()}),[e.values,i]),F.useEffect((()=>{e.errors&&i._setErrors(e.errors)}),[e.errors,i]),F.useEffect((()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()})),F.useEffect((()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})}),[e.shouldUnregister,i]),F.useEffect((()=>{t.current&&(t.current.watch=t.current.watch.bind({}))}),[r]),t.current.formState=((e,t,s,r=!0)=>{const a={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(a,i,{get:()=>{const s=i;return t._proxyFormState[s]!==he&&(t._proxyFormState[s]=!r||he),e[s]}});return a})(r,i),t.current}const dt=(e,t,s)=>{if(e&&"reportValidity"in e){const r=ie(s,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},mt=(e,t)=>{for(const s in t.fields){const r=t.fields[s];r&&r.ref&&"reportValidity"in r.ref?dt(r.ref,s,e):r.refs&&r.refs.forEach((t=>dt(t,s,e)))}},ut=(e,t)=>{t.shouldUseNativeValidation&&mt(e,t);const s={};for(const r in e){const a=ie(t.fields,r),i=Object.assign(e[r]||{},{ref:a&&a.ref});if(ft(t.names||Object.keys(e),r)){const e=Object.assign({},ie(s,r));ce(e,"root",i),ce(s,r,e)}else ce(s,r,i)}return s},ft=(e,t)=>e.some((e=>e.startsWith(t+".")));var xt=function(e,t){for(var s={};e.length;){var r=e[0],a=r.code,i=r.message,n=r.path.join(".");if(!s[n])if("unionErrors"in r){var o=r.unionErrors[0].errors[0];s[n]={message:o.message,type:o.code}}else s[n]={message:i,type:a};if("unionErrors"in r&&r.unionErrors.forEach((function(t){return t.errors.forEach((function(t){return e.push(t)}))})),t){var l=s[n].types,c=l&&l[r.code];s[n]=Ve(n,t,s,a,c?[].concat(c,r.message):r.message)}e.shift()}return s},pt=function(e,t,s){return void 0===s&&(s={}),function(r,a,i){try{return Promise.resolve(function(a,n){try{var o=Promise.resolve(e["sync"===s.mode?"parse":"parseAsync"](r,t)).then((function(e){return i.shouldUseNativeValidation&&mt({},i),{errors:{},values:s.raw?r:e}}))}catch(ut){return n(ut)}return o&&o.then?o.then(void 0,n):o}(0,(function(e){if(function(e){return Array.isArray(null==e?void 0:e.errors)}(e))return{values:{},errors:ut(xt(e.errors,!i.shouldUseNativeValidation&&"all"===i.criteriaMode),i)};throw e})))}catch(ut){return Promise.reject(ut)}}};const ht=10485760,gt=new Set(["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation"]),yt=["Venture Capital","Private Equity","Infrastru
1cture","Debt","Clean Energy","Credit","Real Estate Alternatives","Other"],vt=["EUR","USD","GBP","CHF"],bt=[{value:"SCR",label:"SCR (Sociedade de Capital de Risco)"},{value:"SGOIC",label:"SGOIC"},{value:"Gestora",label:"Gestora"},{value:"SGIIC",label:"SGIIC"},{value:"Other",label:"Other"}],_t=[{id:"directory_listing",label:"Directory listing review"},{id:"verification_review",label:"8-point verification review"}],jt=i((e=>{if(""===e||null==e)return null;const t=Number(e);return Number.isFinite(t)?t:e}),n().min(0,"Enter a positive number").nullable());function Nt(e){const t=e.trim();if(!t)return!1;const s=/^https?:\/\//i.test(t)?t:`https://${t}`;try{const e=new URL(s);return["http:","https:"].includes(e.protocol)&&e.hostname.includes(".")}catch{return!1}}const wt=o().optional().refine((e=>!e||Nt(e)),"Enter a valid URL"),Ft=l({company_name:o().min(2,"Management company is required"),company_description:o().min(40,"Please add a short company description"),company_website:o().min(3,"Website is required").refine(Nt,"Enter a valid website"),company_city:o().min(2,"City is required"),company_country:o().min(2,"Country is required"),company_logo_url:wt,entity_type:o().min(2,"Entity type is required"),contact_name:o().min(2,"Contact name is required"),contact_role:o().min(2,"Contact role is required"),contact_email:o().trim().email("Enter a valid email"),contact_phone:o().optional(),contact_bio:o().optional(),contact_linkedin:wt,fund_name:o().min(2,"Fund name is required"),fund_description:o().min(80,"Please add a fuller fund description"),category:o().min(2,"Category is required"),minimum_investment:i((e=>Number(e)),n().positive("Minimum investment is required")),currency:o().min(3,"Currency is required"),gv_eligible:d(),management_fee:jt,performance_fee:jt,target_return_min:jt,target_return_max:jt,lock_up_period_months:jt,regulated_by:o().optional(),fund_location:o().optional(),cmvm_id:o().optional(),isin:o().optional(),additional_comments:o().optional(),interest_types:c(o()).min(1,"Select at least one application intent"),bot_check:o().optional()}).superRefine(((e,t)=>{null!==e.target_return_min&&null!==e.target_return_max&&e.target_return_min>e.target_return_max&&t.addIssue({code:m.custom,message:"Minimum target return cannot be higher than maximum",path:["target_return_max"]})})),kt={company_name:"",company_description:"",company_website:"",company_city:"",company_country:"Portugal",company_logo_url:"",entity_type:"SCR",contact_name:"",contact_role:"",contact_email:"",contact_phone:"",contact_bio:"",contact_linkedin:"",fund_name:"",fund_description:"",category:"",minimum_investment:5e5,currency:"EUR",gv_eligible:!0,management_fee:null,performance_fee:null,target_return_min:null,target_return_max:null,lock_up_period_months:null,regulated_by:"",fund_location:"Portugal",cmvm_id:"",isin:"",additional_comments:"",interest_types:["directory_listing"],bot_check:""},Vt=[{title:"Company",fields:["company_name","company_description","company_website","company_city","company_country","entity_type","company_logo_url"]},{title:"Contact",fields:["contact_name","contact_role","contact_email","contact_linkedin"]},{title:"Fund",fields:["fund_name","fund_description","category","minimum_investment","currency","gv_eligible"]},{title:"Fees",fields:["management_fee","performance_fee","target_return_min","target_return_max","lock_up_period_months"]},{title:"Regulatory",fields:[]},{title:"Review",fields:["interest_types"]}];function St(e){const t=e.trim();return t?/^https?:\/\//i.test(t)?t:`https://${t}`:t}function At(e){return e?.trim()?St(e):""}function Ct(e){return{...e,company_website:St(e.company_website),company_logo_url:At(e.company_logo_url),contact_linkedin:At(e.contact_linkedin),contact_email:e.contact_email.trim().toLowerCase(),bot_check:e.bot_check?.trim()??""}}function Dt({label:t,value:s}){return e.jsxs("div",{className:"flex items-start justify-between gap-4 border-b border-border py-2 text-sm last:border-b-0",children:[e.jsx("span",{className:"text-muted-foreground",children:t}),e.jsx("span",{className:"max-w-[65%] text-right font-medium text-foreground",children:s||"Not provided"})]})}function Et(){const[t,r]=k.useState(0),[i,n]=k.useState(!1),[o,l]=k.useState(!1),[c,d]=k.useState(null),{register:m,handleSubmit:b,setValue:_,trigger:j,watch:N,formState:{errors:w}}=ct({resolver:pt(Ft),defaultValues:kt,mode:"onChange"}),F=N(),V=(t+1)/Vt.length*100,S=F.interest_types??[],A=k.useMemo((()=>c?`${c.name} (${Math.ceil(c.size/1024)} KB)`:"Upload PDF, Word, or PowerPoint file, max 10MB"),[c]);return o?e.jsxs("div",{className:"border border-border p-8 text-center md:p-12",children:[e.jsx(q,{className:"mx-auto mb-4 h-10 w-10 text-accent"}),e.jsx("h3",{className:"mb-3 font-serif text-2xl text-foreground",children:"Application received"}),e.jsx("p",{className:"mx-auto max-w-lg text-sm leading-relaxed text-muted-foreground",children:"Thank y
1ou for applying to list your fund on Movingto Funds. Our team will review the application for platform fit, completeness, and documentation quality. If we need more detail, we will contact the person listed in the application."})]}):e.jsxs("form",{onSubmit:b((async e=>{n(!0);try{let s=null;c&&(s={fileName:c.name,mimeType:c.type,sizeBytes:c.size,base64:await(t=c,new Promise(((e,s)=>{const r=new FileReader;r.onload=()=>{const t=String(r.result||"");e(t.includes(",")?t.split(",")[1]:t)},r.onerror=()=>s(r.error),r.readAsDataURL(t)})))});const{error:r}=await v.functions.invoke("submit-fund-application",{body:{application:Ct(e),document:s}});if(r)throw r;l(!0)}catch(s){const e=s instanceof Error||"object"==typeof s&&null!==s&&"message"in s&&"string"==typeof s.message?s.message:"Failed to submit. Please try again.";p.error(e)}finally{n(!1)}var t})),className:"border border-border p-5 md:p-8",children:[e.jsx("input",{type:"text",tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden",...m("bot_check")}),e.jsxs("div",{className:"mb-8 space-y-4",children:[e.jsx(D,{value:V,className:"h-2"}),e.jsx("div",{className:"grid grid-cols-3 gap-2 sm:grid-cols-6",children:Vt.map(((s,i)=>e.jsxs("button",{type:"button",onClick:()=>i<t&&r(i),disabled:i>t,className:"flex min-h-14 flex-col items-center justify-center border px-2 text-xs transition-colors "+(i===t?"border-foreground text-foreground":i<t?"border-border text-muted-foreground hover:text-foreground":"border-border text-muted-foreground/50"),children:[e.jsx("span",{className:"mb-1 flex h-5 w-5 items-center justify-center rounded-full border text-[10px]",children:i<t?e.jsx(a,{className:"h-3 w-3"}):i+1}),s.title]},s.title)))})]}),0===t&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-serif text-xl text-foreground",children:"Management company"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Tell us who manages or operates the fund."})]}),e.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2 md:col-span-2",children:[e.jsx(u,{htmlFor:"company_name",children:"Management entity *"}),e.jsx(f,{id:"company_name",...m("company_name")}),w.company_name&&e.jsx("p",{className:"text-xs text-destructive",children:w.company_name.message})]}),e.jsxs("div",{className:"space-y-2 md:col-span-2",children:[e.jsx(u,{htmlFor:"company_description",children:"Company description *"}),e.jsx(x,{id:"company_description",rows:4,...m("company_description")}),w.company_description&&e.jsx("p",{className:"text-xs text-destructive",children:w.company_description.message})]}),e.jsxs("div",{className:"space-y-2 md:col-span-2",children:[e.jsx(u,{htmlFor:"company_website",children:"Website *"}),e.jsx(f,{id:"company_website",placeholder:"yourcompany.com",...m("company_website")}),w.company_website&&e.jsx("p",{className:"text-xs text-destructive",children:w.company_website.message})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"company_city",children:"City *"}),e.jsx(f,{id:"company_city",...m("company_city")}),w.company_city&&e.jsx("p",{className:"text-xs text-destructive",children:w.company_city.message})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"company_country",children:"Country *"}),e.jsx(f,{id:"company_country",...m("company_country")}),w.company_country&&e.jsx("p",{className:"text-xs text-destructive",children:w.company_country.message})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{children:"Entity type *"}),e.jsxs(E,{value:F.entity_type,onValueChange:e=>_("entity_type",e,{shouldValidate:!0}),children:[e.jsx(M,{children:e.jsx(P,{})}),e.jsx(O,{children:bt.map((t=>e.jsx(R,{value:t.value,children:t.label},t.value)))})]}),w.entity_type&&e.jsx("p",{className:"text-xs text-destructive",children:w.entity_type.message})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"company_logo_url",children:"Logo URL"}),e.jsx(f,{id:"company_logo_url",placeholder:"https://...",...m("company_logo_url")}),w.company_logo_url&&e.jsx("p",{className:"text-xs text-destructive",children:w.
1company_logo_url.message})]})]})]}),1===t&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-serif text-xl text-foreground",children:"Primary contact"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Use the person who can answer follow-up questions about the fund."})]}),e.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"contact_name",children:"Contact person *"}),e.jsx(f,{id:"contact_name",...m("contact_name")}),w.contact_name&&e.jsx("p",{className:"text-xs text-destructive",children:w.contact_name.message})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"contact_role",children:"Role *"}),e.jsx(f,{id:"contact_role",...m("contact_role")}),w.contact_role&&e.jsx("p",{className:"text-xs text-destructive",children:w.contact_role.message})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"contact_email",children:"Email *"}),e.jsx(f,{id:"contact_email",type:"email",...m("contact_email")}),w.contact_email&&e.jsx("p",{className:"text-xs text-destructive",children:w.contact_email.message})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"contact_phone",children:"Phone"}),e.jsx(f,{id:"contact_phone",type:"tel",...m("contact_phone")})]}),e.jsxs("div",{className:"space-y-2 md:col-span-2",children:[e.jsx(u,{htmlFor:"contact_linkedin",children:"LinkedIn URL"}),e.jsx(f,{id:"contact_linkedin",placeholder:"https://www.linkedin.com/in/...",...m("contact_linkedin")}),w.contact_linkedin&&e.jsx("p",{className:"text-xs text-destructive",children:w.contact_linkedin.message})]}),e.jsxs("div",{className:"space-y-2 md:col-span-2",children:[e.jsx(u,{htmlFor:"contact_bio",children:"Short contact bio"}),e.jsx(x,{id:"contact_bio",rows:3,...m("contact_bio")})]})]})]}),2===t&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-serif text-xl text-foreground",children:"Fund details"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Share the information investors and reviewers need to understand the fund."})]}),e.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2 md:col-span-2",children:[e.jsx(u,{htmlFor:"fund_name",children:"Fund name *"}),e.jsx(f,{id:"fund_name",...m("fund_name")}),w.fund_name&&e.jsx("p",{className:"text-xs text-destructive",children:w.fund_name.message})]}),e.jsxs("div",{className:"space-y-2 md:col-span-2",children:[e.jsx(u,{htmlFor:"fund_description",children:"Fund description *"}),e.jsx(x,{id:"fund_description",rows:5,placeholder:"Describe the strategy, target sectors, structure, and Portugal Golden Visa relevance.",...m("fund_description")}),w.fund_description&&e.jsx("p",{className:"text-xs text-destructive",children:w.fund_description.message})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{children:"Category *"}),e.jsxs(E,{value:F.category,onValueChange:e=>_("category",e,{shouldValidate:!0}),children:[e.jsx(M,{children:e.jsx(P,{placeholder:"Select category"})}),e.jsx(O,{children:yt.map((t=>e.jsx(R,{value:t,children:t},t)))})]}),w.category&&e.jsx("p",{className:"text-xs text-destructive",children:w.category.message})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{children:"Currency *"}),e.jsxs(E,{value:F.currency,onValueChange:e=>_("currency",e,{shouldValidate:!0}),children:[e.jsx(M,{children:e.jsx(P,{})}),e.jsx(O,{children:vt.map((t=>e.jsx(R,{value:t,children:t},t)))})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"minimum_investment",children:"Minimum investment *"}),e.jsx(f,{id:"minimum_investment",type:"number",min:"1",step:"1",...m("minimum_investment")}),w.minimum_investment&&e.jsx("p",{className:"text-xs text-destructive",children:w.minimum_investment.message})]}),e.jsxs("div",{className:"flex items-center justify-between border border-border p-4",children:[e.jsxs("div",{children:[e.jsx(u,{htmlFor:"gv_eligible",children:"GV-intended, manager-stated"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"This is reviewed before any public verification claim."})]}),e.jsx(L,{id:"gv_eligible",checked:F.gv_eligible,onCheckedChange:e=>_("gv_eligible",e,{shouldValidate:!0})})]})]})]}),3===t&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-serif text-xl text-foreground",children:"Fees and terms"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Optional, but useful for a faster review."})]}),e.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"management_fee",children:"Management fee (%)"}),e.jsx(f,{id:"management_fee",type:"number",min:"0",step:"0.01",...m("management_fee")}),w.management_fee&&e.jsx("p",{className:"text-xs text-destructive",children:w.management_fee.message})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"performance_fee",children:"Performance fee (%)"}),e.jsx(f,{id:"performance_fee",type:"number",min:"0",step:"0.01",...m("performance_fee")}),w.performance_fee&&e.jsx("p",{className:"text-xs text-destructive",children:w.performance_fee.message})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"target_return_min",children:"Target return min (%)"}),e.jsx(f,{id:"target_return_min",type:"number",min:"0",step:"0.01",...m("target_return_min")}),w.target_return_min&&e.jsx("p",{className:"text-xs text-destructive",children:w.target_return_min.message})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"target_return_max",children:"Target return max (%)"}),e.jsx(f,{id:"target_return_max",type:"number",min:"0",step:"0.01",...m("target_return_max")}),w.target_return_max&&e.jsx("p",{className:"text-xs text-destructive",children:w.target_return_max.message})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"lock_up_period_months",children:"Lock-up period (months)"}),e.jsx(f,{id:"lock_up_period_months",type:"number",min:"0",step:"1",...m("lock_up_period_months")}),w.lock_up_period_months&&e.jsx("p",{className:"text-xs text-destructive",children:w.lock_up_period_months.message})]})]})]}),4===t&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-serif text-xl text-foreground",children:"Regulatory and documents"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Documents are private and reviewed only by the Movingto team."})]}),e.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"regulated_by",children:"Regulated by"}),e.jsx(f,{id:"regulated_by",placeholder:"CMVM, Banco de Portugal...",...m("regulated_by")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"fund_location",children:"Fund domicile/location"}),e.jsx(f,{id:"fund_location",...m("fund_location")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"cmvm_id",children:"CMVM ID"}),e.jsx(f,{id:"cmvm_id",...m("cmvm_id")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"isin",children:"ISIN"}),e.jsx(f,{id:"isin",...m("isin")})]}),e.jsxs("div",{className:"space-y-2 md:col-span-2",children:[e.jsx(u,{children:"Factsheet or deck"}),e.jsxs("label",{className:"flex cursor-pointer items-center gap-3 border border-dashed border-border p-4 transition-colors hover:bg-muted/30",children:[e.jsx(I,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{className:"break-all text-sm text-muted-foreground",children:A}),e.jsx("input",{type:"file",accept:".pdf,.doc,.docx,.ppt,.pptx",className:"sr-only",onChange:e=>{const t=e.target.files?.[0]??null;if(t)return t.size>ht?(p.error("File must be under 10MB"),void(e.target.value="")):function(e){if(e.size>ht)return!1;const t=e.name.split(".").pop()?.toLowerCase()??"";return["pdf","doc","docx","ppt","pptx"].includes(t)&&(!e.type||gt.has(e.type))}(t)?void d(t):(p.error("Please upload a PDF, Word, or PowerPoint file"),void(e.target.value=""))}})]})]})]})]}),5===t&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"font-serif text-xl text-foreground",children:"Review and submit"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Your application will go to the Movingto team for review before any onboarding or publication."})]}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"border border-border p-4",children:[e.jsx("h4",{className:"mb-2 font-medium",children:"Company"}),e.jsx(Dt,{label:"Entity",value:F.company_name}),e.jsx(Dt,{label:"Website",value:St(F.company_website||"")}),e.jsx(Dt,{label:"Location",value:`${F.company_city||""}${F.company_city&&F.company_country?", ":""}${F.company_country||""}`})]}),e.jsxs("div",{className:"border border-border p-4",children:[e.jsx("h4",{className:"mb-2 font-medium",children:"Contact"}),e.jsx(Dt,{label:"Name",value:F.contact_name}),e.jsx(Dt,{label:"Role",value:F.contact_role}),e.jsx(Dt,{label:"Email",value:F.contact_email})]}),e.jsxs("div",{className:"border border-border p-4",children:[e.jsx("h4",{className:"mb-2 font-medium",children:"Fund"}),e.jsx(Dt,{label:"Name",value:F.fund_name}),e.jsx(Dt,{label:"Category",value:F.category}),e.jsx(Dt,{label:"Minimum",value:(B=Number(F.minimum_investment),W=F.currency,B&&Number.isFinite(B)?new Intl.NumberFormat("en-US",{style:"currency",currency:W,maximumFractionDigits:0}).format(B):"Not provided")})]}),e.jsxs("div",{className:"border border-border p-4",children:[e.jsx("h4",{className:"mb-2 font-medium",children:"Review intent"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:_t.map((t=>e.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[e.jsx(C,{checked:S.includes(t.id),onCheckedChange:()=>(e=>{const t=S.includes(e)?S.filter((t=>t!==e)):[...S,e];_("interest_types",t,{shouldValidate:!0})})(t.id)}),t.label]},t.id)))}),w.interest_types&&e.jsx("p",{className:"mt-2 text-xs text-destructive",children:w.interest_types.message}),c&&e.jsxs(U,{variant:"outline",className:"mt-4",children:[e.jsx(s,{className:"mr-1 h-3 w-3"})," Document attached"]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(u,{htmlFor:"additional_comments",children:"Additional comments"}),e.jsx(x,{id:"additional_comments",rows:4,...m("additional_comments")})]})]}),e.jsxs("div",{className:"mt-8 flex flex-col-reverse gap-3 sm:flex-row sm:justify-between",children:[e.jsxs(h,{type:"button",variant:"outline",onClick:()=>r((e=>Math.max(e-1,0))),disabled:0===t||i,children:[e.jsx(T,{className:"mr-2 h-4 w-4"}),"Previous"]}),t===Vt.length-1?e.jsx(h,{type:"submit",disabled:i,className:"bg-foreground text-background hover:bg-foreground
1/90",children:i?e.jsxs(e.Fragment,{children:[e.jsx(g,{className:"mr-2 h-4 w-4 animate-spin"}),"Submitting..."]}):"Submit application"}):e.jsxs(h,{type:"button",onClick:async()=>{const e=Vt[t].fields;(0===e.length||await j([...e]))&&r((e=>Math.min(e+1,Vt.length-1)))},disabled:i,className:"bg-foreground text-background hover:bg-foreground/90",children:["Next",e.jsx(y,{className:"ml-2 h-4 w-4"})]})]})]});var B,W}function Mt(){return e.jsxs(e.Fragment,{children:[e.jsxs(t,{children:[e.jsx("title",{children:"Submit Your Fund | Funds.Movingto"}),e.jsx("meta",{name:"description",content:"Submit a Portugal Golden Visa fund for free directory review. Verification is based on Movingto's 8-point legal methodology, not payment or partner status."}),e.jsx("meta",{name:"robots",content:"index, follow"}),e.jsx("link",{rel:"canonical",href:"https://funds.movingto.com/submit-your-fund"}),e.jsx("meta",{property:"og:title",content:"Submit Your Fund | Funds.Movingto"}),e.jsx("meta",{property:"og:description",content:"Submit a Portugal Golden Visa fund for free directory review. Verification is methodology-based, not pay-to-play."}),e.jsx("meta",{property:"og:url",content:"https://funds.movingto.com/submit-your-fund"})]}),e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(b,{}),e.jsx("section",{className:"py-20 md:py-28 bg-background border-b border-border",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[e.jsx("h1",{className:"font-serif text-4xl md:text-5xl lg:text-6xl text-foreground mb-6 leading-tight",children:"Apply to List Your Fund"}),e.jsx("p",{className:"text-lg text-muted-foreground mb-4 max-w-2xl leading-relaxed",children:"Submit a complete application for review by the Movingto Funds team."}),e.jsx("p",{className:"text-sm text-muted-foreground mb-8 max-w-2xl leading-relaxed",children:"Application is free. We review Portugal Golden Visa fund applications for platform fit, data quality, and documentation before any onboarding, publication, or verification workflow begins."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 mb-6",children:[e.jsx(h,{onClick:()=>{document.getElementById("qualification-form")?.scrollIntoView({behavior:"smooth"})},className:"h-12 px-8 bg-foreground text-background hover:bg-foreground
1/90",children:"Start Application"}),e.jsx(h,{asChild:!0,variant:"outline",className:"h-12 px-8",children:e.jsx(V,{to:"/verification-program",children:"View Verification Methodology"})})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"There is no fee to apply. Commercial relationships do not influence verification outcomes or directory ordering."})]})}),e.jsx("section",{className:"py-20 bg-muted/30",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-5xl",children:[e.jsx("h2",{className:"font-serif text-3xl md:text-4xl text-foreground mb-4",children:"Who This Is For"}),e.jsx("div",{className:"w-16 h-px bg-accent mb-6"}),e.jsx("p",{className:"text-sm text-muted-foreground mb-12 max-w-2xl leading-relaxed",children:"This page is designed for managers and operators of funds relevant to Portugal Golden Visa investors. We review submissions for platform fit, transparency, documentation quality, and profile eligibility."}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-0 border border-border",children:[{icon:_,title:"Fund Managers"},{icon:j,title:"Regulated Management Entities"},{icon:B,title:"Golden Visa-Relevant Investment Funds"}].map(((t,s)=>e.jsxs("div",{className:"p-8 flex flex-col items-start gap-4 "+(s<2?"md:border-r border-b md:border-b-0 border-border":""),children:[e.jsx(t.icon,{className:"h-6 w-6 text-accent"}),e.jsx("h3",{className:"font-serif text-lg text-foreground",children:t.title})]},t.title)))})]})}),e.jsx(z,{}),e.jsx(K,{}),e.jsx("section",{className:"py-20 bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[e.jsx("h2",{className:"font-serif text-3xl md:text-4xl text-foreground mb-4",children:"What to Prepare"}),e.jsx("div",{className:"w-16 h-px bg-accent mb-8"}),e.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"Before applying, please prepare:"}),e.jsx("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-8",children:["Fund name","Management entity","Website","Contact person","Short fund summary","Minimum investment","Fund factsheet or deck","Relevant regulatory / eligibility details"].map((t=>e.jsxs("li",{className:"flex items-center gap-3 text-sm text-foreground",children:[e.jsx(W,{className:"h-4 w-4 text-accent shrink-0"}),t]},t)))}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"We only require high-level information at this stage. Detailed profile data is collected later through the onboarding process for accepted listings."})]})}),e.jsx("section",{className:"py-20 bg-muted/30",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-5xl",children:[e.jsx("h2",{className:"font-serif text-3xl md:text-4xl text-foreground mb-4",children:"Our Review Principles"}),e.jsx("div",{className:"w-16 h-px bg-accent mb-12"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-0 border border-border",children:[{icon:G,title:"Clarity",desc:"We value concise, document-backed information."}
1,{icon:j,title:"Transparency",desc:"We look for consistency between submitted materials and public claims."},{icon:B,title:"Relevance",desc:"We focus on funds relevant to Portugal Golden Visa investors."},{icon:$,title:"Integrity",desc:"Verification and directory ordering are separate from commercial relationships."}].map(((t,s)=>e.jsxs("div",{className:`p-8 flex flex-col gap-3 ${s%2==0?"md:border-r border-border":""} ${s<2?"border-b border-border":""}`,children:[e.jsx(t.icon,{className:"h-5 w-5 text-accent"}),e.jsx("h3",{className:"font-serif text-lg text-foreground",children:t.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t.desc})]},t.title)))})]})}),e.jsx("section",{className:"py-16 bg-foreground text-background",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[e.jsx("h2",{className:"font-serif text-2xl mb-4",children:"Important Notice"}),e.jsx("p",{className:"text-sm text-background/80 leading-relaxed max-w-3xl",children:"Funds.Movingto is a discovery, verification, and transparency platform. We do not provide investment advice, assess suitability, or endorse individual funds. Submission is free, and verification depends on methodology rather than payment."})]})}),e.jsx("section",{id:"qualification-form",className:"py-20 bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[e.jsx("h2",{className:"font-serif text-3xl md:text-4xl text-foreground mb-4",children:"Apply for Inclusion"}),e.jsx("div",{className:"w-16 h-px bg-accent mb-8"}),e.jsx(Et,{}),e.jsxs("p",{className:"mt-8 text-center text-sm text-muted-foreground",children:["Prefer to email us directly?"," ",e.jsx("a",{href:"mailto:[email protected]?subject=Fund%20Submission%20-%20Movingto%20Funds",className:"underline hover:text-foreground transition-colors",children:"[email protected]"})]})]})}),e.jsx("section",{className:"py-16 bg-muted/30 border-t border-border",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[e.jsx("h3",{className:"font-serif text-xl text-foreground mb-2",children:"What Happens After Review?"}),e.jsx("p",{className:"text-sm text-muted-foreground mb-6",children:"Approved applications move into a private onboarding workflow. Public application data is not automatically published and does not grant dashboard access."})]})}),e.jsx("section",{className:"py-8 border-t border-border bg-background",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-5xl flex flex-wrap items-center gap-x-8 gap-y-3 text-xs text-muted-foreground",children:[e.jsx("span",{children:"Looking to compare funds as an investor?"}),e.jsx(V,{to:N,className:"underline hover:text-foreground transition-colors",children:"Browse all funds"}),e.jsx(V,{to:"/verification-program",className:"underline hover:text-foreground transition-colors",children:"Learn about the verification program"})]})}),e.jsx(w,{})]})]})}export{Mt 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.