PageSourceSearch

https://myschool.ng/_nuxt/C1z7-iLJ.js

js myschool.ng collected 2026-10-02 19:16:27 UTC 4,593 bytes, 1 lines download raw bytes

1import{_ as U}from"./CLPFCI-B.js";import{_ as $}from"./B992t_lN.js";import{_ as w}from"./Bg4lw1Tt.js";import{R as S,m as k,L as M,o as R,c as A,a as r,d as s,S as I,e,g as B,i as P,T as G,f as T,M as E,l as L,k as x,p as N,U as D}from"./BkE15QU6.js";import{f as W}from"./PklgrGDy.js";import{u as j}from"./DsWt1uCo.js";import{g as F}from"./CY1nIR7-.js";import{m as H}from"./ZJsveelI.js";import{t as b}from"./Cb93Ww38.js";import"./JO-eeM0B.js";import"./w7ZfqHAt.js";import"./-x74BiUx.js";import"./C_K7uYEf.js";const K={class:"w-full max-w-[740px] mb-12"},O={class:"space-y-6"},Y={class:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-6"},q={class:"flex items-center gap-2 sm:mt-8"},z={class:"flex gap-2"},me={__name:"connect2me",async setup(J){let u,_;const p=S(),c=k(),t=L({dob:null,gender:null,relationship_interest_id:null,interest:"",about_me:"",hobbies:"",enable_c2m:!1}),n=j(F(),t),y=D(),{data:m}=([u,_]=M(()=>E("user","/members/profile-data",null,null,{baseURL:y.public.baseURLWeb})),u=await u,_(),u),V=x(()=>H(m.value?.relationship_interests)||[]);if(m.value){const{user:a,completed_setup:o}=m.value;t.value.dob=a.dob?W(a.dob):null,t.value.gender=a.gender,t.value.relationship_interest_id=a.relationship_interest_id?String(a.relationship_interest_id):null,t.value.interest=a.interest,t.value.about_me=a.about_me,t.value.hobbies=a.hobbies,t.value.enable_c2m=a.enable_c2m!=0,p.setCompleted(o),o.includes("connect2me")&&c.replace("/auth/setup/photo")}const C=async()=>{const{user:a,completed_setup:o}=m.value;if(!await n.value.$validate()){b("error","Please correct the errors in the form");return}try{const i={...t.value};await p.setConnect2Me(i),b("success","Personal data successfully updated"),p.setCompleted([...o,"connect2me"]),c.push("/auth/setup/photo")}catch(i){b("error",i.msg||"An error occurred")}},h=x(()=>N().loadingElements["setup-form"]);return(a,o)=>{const f=U,i=$,d=w,v=B,g=T;return R(),A("div",K,[r("div",O,[s(f),s(i,{"active-index":2}),o[9]||(o[9]=r("div",{class:"mb-8"},[r("h1",{class:"mb-[7px] font-bold text-xl"},"Connect to Me")],-1)),r("form",{onSubmit:I(C,["prevent"]),class:"space-y-6"},[r("div",Y,[s(d,{name:"dob",type:"date",label:"Birthday",modelValue:e(t).dob,"onUpdate:modelValue":o[0]||(o[0]=l=>e(t).dob=l),onChange:e(n).dob.$touch,invalid:e(n).dob.$error,error:e(n).dob.$errors[0]?.$message},null,8,["modelValue","onChange","invalid","error"]),s(v,{label:"Gender",placeholder:"Select Gender",options:[{label:"Male",value:"male"},{label:"Female",value:"female"}],modelValue:e(t).gender,"onUpdate:modelValue":o[1]||(o[1]=l=>e(t).gender=l),value:e(t).gender,onChange:e(n).gender.$touch,invalid:e(n).gender.$error,error:e(n).gender.$errors[0]?.$message},null,8,["modelValue","value","onChange","invalid","error"]),s(v,{options:e(V),label:"Interested Relationship",placeholder:"Select relationship interest",modelValue:e(t).relationship_interest_id,"onUpdate:modelValue":o[2]||(o[2]=l=>e(t).relationship_interest_id=l),value:e(t).relationship_interest_id,onChange:e(n).relationship_interest_id.$touch,invalid:e(n).relationship_interest_id.$error,error:e(n).relationship_interest_id.$errors[0]?.$message},null,8,["options","modelValue","value","onChange","invalid","error"]),r("div",q,[P(r("input",{class:"accent-primary cursor-pointer h-4 w-4 flex-shrink-0",type:"checkbox",name:"enable_c2m",id:"enable_c2m","onUpdate:modelValue":o[3]||(o[3]=l=>e(t).enable_c2m=l)},null,512),[[G,e(t).enable_c2m]]),o[8]||(o[8]=r("label",{for:"enable_c2m",class:"text-xs font-normal text-tx_tertiary"},"Enable Connect2me and allow my profile to be viewed so people can connect2me",-1))]),s(d,{modelValue:e(t).interest,"onUpdate:modelValue":o[4]||(o[4]=l=>e(t).interest=l),type:"textarea",class:"w-full [&>textarea]:min-h-[100px]",label:"My Interests",placeholder:"What interests you?",name:"interest"},null,8,["modelValue"]),s(d,{modelValue:e(t).hobbies,"onUpdate:modelValue":o[5]||(o[5]=l=>e(t).hobbies=l),type:"textarea",class:"w-full [&>textarea]:min-h-[100px]",label:"My hobbies",placeholder:"Your hobbies?",name:"hobbies"},null,8,["modelValue"]),s(d,{modelValue:e(t).about_me,"onUpdate:modelValue":o[6]||(o[6]=l=>e(t).about_me=l),type:"textarea",class:"w-full sm:col-span-2 [&>textarea]:min-h-[100px]",label:"A little about me",placeholder:"Tell us about yourself",name:"about_me"},null,8,["modelValue"])]),r("div",z,[s(g,{type:"button",onClick:o[7]||(o[7]=l=>e(c).back()),label:"Previous",block:"",theme:"whitePrimary"}),s(g,{type:"submit",label:"Next",block:"",theme:"primary",disabled:e(h),loading:e(h)},null,8,["disabled","loading"])])],32)])])}}};export{me 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.