PageSourceSearch

https://rubikon.com.ua/_nuxt/B5CweikN.js

js rubikon.com.ua collected 2026-09-24 12:48:18 UTC 3,163 bytes, 1 lines download raw bytes

1import{_ as M}from"./CTKzOGp3.js";import{d as x,E as A,u as E,H as F,G as N,I as U,r as w,v as j,j as q,o as p,B as z,a as l,t as m,x as k,c as v,z as f,f as e,F as H,a0 as L,b as c,P as _,A as D,n as G,y as J,J as O,_ as K}from"#entry";import{A as g}from"./BrRXBPvg.js";import{u as Q}from"./utkfIs-l.js";const W={class:"modal__title modal-elem-animation"},X={class:"modal__description modal-elem-animation"},Y={class:"modal-wrap"},Z={class:"modal-wrap"},ee={key:0,class:"modal-wrap"},oe={key:1,class:"modal-wrap"},ae={class:"modal-wrap__error"},se=x({__name:"ModalRegisterPassword",setup(le){const h=A(),i=Q(),V=E(),b=F(),P=N(),{closeModal:C}=b,{registerPassword:T,resetRedirect:R}=P,{login:I,isPhone:t,redirect:y}=U(P),r=w(null),d=w(null),u=w(""),a=j({password:null,repeatedPassword:null,regToken:null,code:null});async function S(){$();const{error:o}=await T({regToken:h.query.regToken?String(h.query.regToken):void 0,phone:t.value?I.value:void 0,code:t.value?u.value:void 0,password:r.value,repeatedPassword:d.value});if(Object.keys(o).length){o.data?.errors?J(o.data?.errors,a):a.regToken=o.data?.message;return}C(),r.value=null,d.value=null,y.value&&(O(V(y.value)),R())}function $(){a.code=null,a.password=null,a.repeatedPassword=null}return(o,s)=>{const B=M;return p(),q(B,{class:G({"modal__content--phone":e(t)})},{default:z(()=>[l("div",W,m(o.$t("modals.registerPassword.title")),1),l("p",X,[k(m(o.$t("modals.registerPassword.description"))+" ",1),e(t)?(p(),v(H,{key:0},[k(m(o.$t("modals.registerPassword.phoneConfirmation")),1)],64)):f("",!0)]),l("form",{class:"modal-form",onSubmit:s[3]||(s[3]=L(()=>{},["prevent"]))},[l("div",Y,[c(g,{id:"password-input",placeholder:o.$t("modals.password"),type:e(i).passwordFieldType.value,"icon-right":"eye",modelValue:e(r),"onUpdate:modelValue":s[0]||(s[0]=n=>_(r)?r.value=n:null),class:"modal-input app-input-box--modal modal-input--password modal-elem-animation",onIconClick:e(i).showPassword,"validation-error":e(a).password},null,8,["placeholder","type","modelValue","onIconClick","validation-error"])]),l("div",Z,[c(g,{id:"repeated-password",placeholder:o.$t("modals.passwordConfirmation"),type:e(i).passwordFieldType.value,modelValue:e(d),"onUpdate:modelValue":s[1]||(s[1]=n=>_(d)?d.value=n:null),"icon-right":"eye",class:"modal-input app-input-box--modal modal-input--password modal-elem-animation",onIconClick:e(i).showPassword,"validation-error":e(a).repeatedPassword},null,8,["placeholder","type","modelValue","onIconClick","validation-error"])]),e(t)?(p(),v("div",ee,[c(g,{id:"confirmation-code",placeholder:"Код",type:"number",modelValue:e(u),"onUpdate:modelValue":s[2]||(s[2]=n=>_(u)?u.value=n:null),class:"modal-input app-input-box--modal modal-input--code modal-elem-animation","validation-error":e(a).code},null,8,["modelValue","validation-error"])])):f("",!0),e(a).regToken?(p(),v("div",oe,[l("div",ae,m(e(a).regToken),1)])):f("",!0),c(D,{class:"btn-auth btn-auth--password modal-elem-animation",text:o.$t("modals.registerPassword.register"),"button-style":"default-gold",onClick:S},null,8,["text"])],32)]),_:1},8,["class"])}}}),ie=K(se,[["__scopeId","data-v-54cb25da"]]);export{ie 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.