PageSourceSearch

https://cdn2.tenchat.ru/tenchat-main-ssr-nuxt/xIxqIUJx.js

js tenchat.ru collected 2026-09-24 08:46:42 UTC 3,187 bytes, 1 lines download raw bytes

1import{g as V,a as x,b as _,c as b,_ as N,d as v}from"./C09T12yA.js";import{_ as I}from"./CjJ2accU.js";import{_ as M}from"./Rso4hKyB.js";import{a$ as E,j as B,e as R,i as k,o as w,w as u,a as f,W as A,g as e,b as r,f as T,d as c}from"./Bhvy1f66.js";import{k as H}from"./Upb3eSYt.js";import{u as O}from"./BQnHlgFJ.js";import"./BMjK1_Nt.js";import"./CV6EvNpp.js";import"./CPCVh_rP.js";import"./ClxLacSj.js";import"./DlAUqK2U.js";import"./DFM09Qg0.js";import"./CsxKHwBl.js";import"./DJ4tqUVA.js";import"./D460Q2PR.js";import"./DnllObNB.js";import"./CDr1IRf9.js";import"./DE-n-VXB.js";function U(i=!1){const d=E({mask:"#".repeat(16)}),s=B({name:"",phone:"",email:""});i&&(s.value.text="");const a=100,o=9,p=16,m=300,g={name:{required:x(),maxLength:_(a)},phone:{required:x(),minLength:b(o),maxLength:_(p)},email:{required:x(),email:V()}},t={text:{maxLength:_(m)}},l=i?{...g,...t}:g;return{v$:O(l,s),form:s,maskOptions:d,rules:l,MAX_LENGTH_DESCRIPTION:m}}const q={class:"mb-4 flex flex-col gap-3"},y={class:"flex flex-col gap-2.5"},C=R({__name:"ModalLeadAgent",props:{isLoading:{}},emits:["submit","close"],setup(i,{emit:d}){const s=d,{form:a,v$:o,maskOptions:p,MAX_LENGTH_DESCRIPTION:m}=U(!0);return(g,t)=>{const l=N,h=I,$=M,L=v;return w(),k(L,null,{title:u(()=>[...t[6]||(t[6]=[c(" Хотите подключиться к агентской сети? ",-1)])]),default:u(()=>[f("form",{onSubmit:t[5]||(t[5]=A(n=>s("submit",e(a)),["prevent"]))},[f("div",q,[r(l,{modelValue:e(a).name,"onUpdate:modelValue":t[0]||(t[0]=n=>e(a).name=n),placeholder:"Имя*","height-class":"h-11","error-message":e(o).name.$errors[0]?.$message,onInput:e(o).name.$reset,onBlur:e(o).name.$touch},null,8,["modelValue","error-message","onInput","onBlur"]),T(r(l,{modelValue:e(a).phone,"onUpdate:modelValue":t[1]||(t[1]=n=>e(a).phone=n),placeholder:"Телефон*","height-class":"h-11",type:"tel","error-message":e(o).phone.$errors[0]?.$message,onInput:e(o).phone.$reset,onBlur:e(o).phone.$touch},null,8,["modelValue","error-message","onInput","onBlur"]),[[e(H),e(p)]]),r(l,{modelValue:e(a).email,"onUpdate:modelValue":t[2]||(t[2]=n=>e(a).email=n),placeholder:"Email*","height-class":"h-11","error-message":e(o).email.$errors[0]?.$message,onInput:e(o).email.$reset,onBlur:e(o).email.$touch},null,8,["modelValue","error-message","onInput","onBlur"]),r(h,{modelValue:e(a).text,"onUpdate:modelValue":t[3]||(t[3]=n=>e(a).text=n),maxlength:e(m),"maxlength-show-after":e(m)-100,placeholder:"Текст запроса","input-area-class":"min-h-22 rounded-lg!","label-class":"text-sm text-gray-1100",size:"sm","has-error":e(o).text.$error,"hide-emoji-picker":""},null,8,["modelValue","maxlength","maxlength-show-after","has-error"])]),f("div",y,[r($,{class:"w-full text-sm max-md:text-base",disabled:e(o).$invalid||i.isLoading?.value,type:"submit"},{default:u(()=>[...t[7]||(t[7]=[c(" Отправить ",-1)])]),_:1},8,["disabled"]),r($,{theme:"default",color:"gray",class:"hidden w-full text-sm max-md:flex max-md:text-base",onClick:t[4]||(t[4]=n=>s("close"))},{default:u(()=>[...t[8]||(t[8]=[c(" Закрыть ",-1)])]),_:1})])],32)]),_:1})}}}),ne=Object.assign(C,{__name:"ModalLeadAgent"});export{ne 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.