PageSourceSearch

https://invest.gateway.ventures/_nuxt/DETrhTrx.js

js gateway.ventures collected 2026-10-04 12:00:01 UTC 1,542 bytes, 1 lines download raw bytes

1import{_ as U}from"./D_OmR84A.js";import{_ as $}from"./vfviTW-h.js";import{d as g,o,e as n,F as p,x as f,f as x,t as F,h as V,p as L}from"./rgLijMk0.js";const O={class:"space-y-6"},S={key:0},C={class:"mb-3 font-medium text-primary-dark"},D={class:"space-y-3"},z=g({__name:"questions",props:{questions:{},modelValue:{default:()=>[]}},emits:["update:modelValue"],setup(c,{expose:y,emit:v}){const a=c,h=v,i=e=>a.modelValue.find(t=>t.question_id===e),k=e=>i(e)?.answer_text??"",u=e=>e.is_required?`${e.title} *`:e.title,m=(e,t)=>i(e)?.option_id===t,_=(e,t)=>{const l=a.modelValue.filter(r=>r.question_id!==e);t&&l.push(t),h("update:modelValue",l)},b=(e,t)=>{_(e.id,m(e.id,t)?null:{question_id:e.id,option_id:t})},w=(e,t)=>{const l=(t??"").trim();_(e.id,l.length===0?null:{question_id:e.id,answer_text:t})},B=L(()=>a.questions.every(e=>{if(!e.is_required)return!0;const t=i(e.id);return t?e.type==="dropdown"?!!t.option_id:!!t.answer_text?.trim():!1}));return y({isValid:B}),(e,t)=>{const l=U,r=$;return o(),n("div",O,[(o(!0),n(p,null,f(c.questions,s=>(o(),n("div",{key:s.id},[s.type==="dropdown"?(o(),n("div",S,[x("div",C,F(u(s)),1),x("div",D,[(o(!0),n(p,null,f(s.options,d=>(o(),V(l,{key:d.id,"model-value":m(s.id,d.id),label:d.title,"onUpdate:modelValue":E=>b(s,d.id)},null,8,["model-value","label","onUpdate:modelValue"]))),128))])])):(o(),V(r,{key:1,"model-value":k(s.id),label:u(s),rules:{required:s.is_required},"onUpdate:modelValue":d=>w(s,d)},null,8,["model-value","label","rules","onUpdate:modelValue"]))]))),128))])}}});export{z as _};

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.