PageSourceSearch

https://www.forendors.cz/_nuxt/register-v-fWTIFi.js

js forendors.cz collected 2026-09-24 08:49:15 UTC 8,997 bytes, 1 lines download raw bytes

1import{_ as le,a as ce,b as _e}from"./RegistrationExtraInfo-C8_irKRo.js";import{_ as ue,a as me}from"./LineWithText-Ddk9cD1J.js";import{_ as pe}from"./TextInput-saxsTENd.js";import{_ as de,u as ge}from"./venueEvent-BQsTdcwq.js";import{_ as fe}from"./CheckboxInput-CHn_OjTQ.js";import{_ as he}from"./s-locked-DxZOzOkT.js";import{_ as ve}from"./InForm-B_p0phzZ.js";import{d as W,aG as we,L as ye,q as K,p as U,Q as i,X as E,aE as N,aj as be,K as X,m as xe,s as J,V as Ve,W as ke,o as w,c as B,i as z,n as u,g as o,F as Ie,f as _,j as Q,w as O,z as Se,S as T,t as $e,x as k,a1 as Le,C as Y,_ as Z,u as j,a as Me,B as Ee,b as Te,M as Be,N as G,U as Ae,l as D,a5 as P,aK as Ce,a6 as Fe}from"./entry-CNoLJUNe.js";import"./useNumberFormatter--DZW-Ss2.js";import"./embed_code-C_TYnLzL.js";import"./Modal-D-wPJv9M.js";import"./account_deleted-C0WwUvnL.js";import"./ProseA-BdhHqEOb.js";import"./main-C2rWhnOJ.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new d.Error().stack;l&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[l]="35f2ab54-5d2f-4ea5-9597-0d55c0e30b98",d._sentryDebugIdIdentifier="sentry-dbid-35f2ab54-5d2f-4ea5-9597-0d55c0e30b98")}catch{}})();const Re=["innerHTML"],qe=["innerHTML"],De=W({__name:"Registration",emits:["registered","not-verified","error"],setup(d,{emit:l}){const S=we(),{$api:A}=ye(),$=K(),{t:m}=U(),y=k(()=>Y().query),L=k(()=>{const e=y.value.email;return typeof e=="string"?e:""}),g=k(()=>L.value.length>0),a=i(new E({name:"email",type:"email",required:!0,value:L.value}));a.value.customWarningValidations.push(new N({raiseOnInput:!1,errorMessage:"registration_box.validate.warning.seznam_email_hint",isValid:()=>!/.*@seznam\.(?!cz$)/.test(a.value.getStringValue())}),new N({raiseOnInput:!1,errorMessage:"registration_box.validate.warning.gmail_email_hint",isValid:()=>{const e=a.value.getStringValue();return!(/.*@gmail\.(?!com$)/.test(e)||/.*@google\./.test(e))}}));const r=i(new E({name:"handle",type:"text",required:!0,maxLength:20}));r.value.addValidation(new be({regexp:/^[a-z0-9._]{0,20}$/,errorMessage:"registration_box.handle_error",raiseOnInput:!0,type:"regex"}));const c=i(new E({name:"password",type:"password",required:!0,minLength:8})),f=i(new E({name:"marketing",type:"checkbox"})),M=i(!1),h=i(!1),b=i(m("registration_box.error_general").toString()),x=i(!1),C=k(()=>new Le([a.value,r.value,c.value,f.value])),t=X(),V=e=>{e?.preventDefault(),$.showLogin()},I=l,F=async()=>{h.value=!0;const e={handle:r.value.getStringValue(),email:a.value.getStringValue(),password:c.value.getStringValue(),agreed_legal:!0,agreed_marketing:f.value.getBoolValue()},n=await A.Auth.register(e);if(n.success)h.value=!1,I("registered",{userId:n.data,email:a.value.getStringValue()}),S.push({event:"GAEvent",gaEventCategory:"registrace",gaEventAction:"submit",gaEventLabel:"step 1"});else if(n.status===403){h.value=!1;const s=n;
1if(typeof s.data.id<"u"){const p=s.data.id;I("not-verified",{userId:p,email:a.value.getStringValue()}),setTimeout(()=>{$.setMessage(s.data.message||"")},500);return}else b.value=m("registration_box.error_general").toString()}else{if(h.value=!1,I("error"),n.status>=500)b.value=m("registration_box.error_system").toString();else{const s=n.data.errors;let p=!1;s&&s.email&&s.email.length>0&&(a.value.hasError=!0,a.value.errorMessage=s.email[0],p=!0),s&&s.handle&&s.handle.length>0&&(r.value.hasError=!0,r.value.errorMessage=s.handle[0],p=!0),s&&s.password&&s.password.length>0&&(c.value.hasError=!0,c.value.errorMessage=s.password[0],p=!0),!p&&n.status!=422&&(b.value=m("registration_box.error_general").toString(),M.value=!0)}ee()}},R=xe("form"),ee=()=>{const e=R.value.getScrollTop();window.scrollTo({top:e,behavior:"smooth"})},te=e=>{e?.stopPropagation(),x.value=!x.value},H=()=>{x.value=!1};return J(()=>{document.addEventListener("click",H),document.getElementById("openLoginBox")?.addEventListener("click",V)}),Ve(()=>{document.removeEventListener("click",H),document.getElementById("openLoginBox")?.removeEventListener("click",V)}),(e,n)=>{const s=ue,p=me,q=pe,oe=de,se=fe,ne=he,ae=ve,re=le,ie=ke("tooltip");return w(),B("div",{class:u(e.$style.registration)},[z("h1",{class:u(e.$style.registration_title),innerHTML:e.$t("page.register.title")},null,10,Re),o(g)?Q("",!0):(w(),B(Ie,{key:0},[_(s,{title:"","is-registration":""}),_(p,{text:e.$t("registration_box.social.or"),class:u(e.$style.divider)},null,8,["text","class"])],64)),_(ae,{ref:"form",class:u(e.$style.form),context:o(C),onSuccess:F},{default:O(()=>[o(M)?(w(),B("div",{key:0,class:u(e.$style.errormsg)},Se(o(b)),3)):Q("",!0),_(q,{modelValue:o(a),"onUpdate:modelValue":n[0]||(n[0]=v=>T(a)?a.value=v:null),label:"login_box.email",autocomplete:"email",compact:""},null,8,["modelValue"]),_(q,{modelValue:o(r),"onUpdate:modelValue":n[1]||(n[1]=v=>T(r)?r.value=v:null),label:"registration_box.handle",placeholder:"registration_box.handle_placeholder",autocomplete:"off",small:"",counter:"",compact:""},{default:O(()=>[$e(_(oe,{icon:"faq",class:u(e.$style.inputicon),onClick:te},null,8,["class"]),[[ie,{content:e.$t("registration_box.handle_help"),html:!0,placement:"right",triggers:[],shown:o(x),autoHide:!0}]])]),_:1},8,["modelValue"]),_(q,{modelValue:o(c),"onUpdate:modelValue":n[2]||(n[2]=v=>T(c)?c.value=v:null),label:"login_box.password",autocomplete:"new-password",compact:"",class:u(e.$style.password)},null,8,["modelValue","class"]),z("p",{innerHTML:e.$t("registration_box.approvals",{vop:o(t)("vop")})},null,8,qe),_(se,{modelValue:o(f),"onUpdate:modelValue":n[3]||(n[3]=v=>T(f)?f.value=v:null),label:"registration_box.approve_marketing"},null,8,["modelValue"]),_(ne,{text:"registration_box.register",loading:o(h),block:""},null,8,["loading"])]),_:1},8,["class","context"]),_(re)],2)}}}),Pe="_form_1mi4a_1",Ue="_errormsg_1mi4a_4",He="_line_1mi4a_9",Ne="_checkbox_1mi4a_14",ze="_label_1mi4a_14",Qe="_inputwrapper_1mi4a_17",Oe="_textarea_1mi4a_21",je="_compact_1mi4a_21",Ge="_input_1mi4a_17",We="_input_slim_1mi4a_42",Ke="_has_icon_1mi4a_45",Xe="_align_right_1mi4a_53",Je="_password_1mi4a_56",Ye="_pwd_indicator_1mi4a_56",Ze="_pwd_bad_1mi4a_59",et="_pwd_low_1mi4a_62",tt="_pwd_mid_1mi4a_65",ot="_pwd_good_1mi4a_68",st="_hasmsg_1mi4a_71",nt="_infomsg_1mi4a_71",at="_haserror_1mi4a_79",rt="_success_1mi4a_86",it="_info_1mi4a_71",lt="_hasInfo_1mi4a_112",ct="_small_1mi4a_120",_t="_SvgIcon_1mi4a_129",ut="_inputicon_1mi4a_136",mt="_inputicon_error_1mi4a_142",pt="_inputicon_datetime_1mi4a_146",dt="_has_suffix_1mi4a_150",gt="_registration_title_1mi4a_154",ft="_registration_1mi4a_154",ht="_divider_1mi4a_162",vt={form:Pe,errormsg:Ue,line:He,checkbox:Ne,label:ze,inputwrapper:Qe,textarea:Oe,compact:je,input:Ge,input_slim:We,has_icon:Ke,align_right:Xe,password:Je,pwd_indicator:Ye,pwd_bad:Ze,pwd_low:et,pwd_mid:tt,pwd_good:ot,hasmsg:st,infomsg:nt,"infomsg--with-error":"_infomsg--with-error_1mi4a_76",haserror:at,success:rt,info:it,hasInfo:lt,small:ct,"help-tooltip":"_help-tooltip_1mi4a_124",SvgIcon:_t,inputicon:ut,inputicon_error:mt,inputicon_datetime:pt,has_suffix:dt,registration_title:gt,registration:ft,divi
1der:ht},wt={$style:vt},yt=Object.assign(Z(De,[["__cssModules",wt]]),{__name:"AuthRegistration"}),bt=W({__name:"register",setup(d){const l=U().t,S=X(),A=K(),$=j(),m=Fe(),y=Y(),L=ge();Me({title:l("page.register.page_title").toString(),htmlAttrs:{lang:U().locale.value}}),Ee({ogTitle:l("page.register.page_title").toString(),ogUrl:`${Te().public.appUrl}${y.fullPath}`,ogDescription:l("page.register.og_description").toString(),description:l("page.register.page_description").toString()});const g=i(!1),a=i(!1),r=i(0),c=i(""),f=k(()=>(y.query.ss||"0")==="1"),M=k(()=>a.value||f.value),h=t=>{r.value=t.userId,c.value=t.email,g.value=!0},b=async()=>{a.value=!0,m.setItem(P.MarketingConsentDelay,"1",7),await j().refreshUser(),await Ce().consumePendingAction();const t=m.getItem(P.TierPromoBuyAfterLogin);if(t&&t.length>0){m.removeItem(P.TierPromoBuyAfterLogin),await G(t);return}},x=t=>{r.value=t.userId,c.value=t.email,g.value=!0},C=()=>{{const t=y.query.id;if(!t||t.length===0)return;const V=parseInt(t);V>0&&(r.value=V,g.value=!0)}};return Be(async()=>{C(),$.isLogged.value&&await G({path:S({name:"personal_feed",params:{type:l("pages.personal_feed.all")}})})}),J(async()=>{y.query.socLoginError==="2"&&(A.setMessage(l("page.register.soc_register_error")),await L.clearQuery()),Ae(()=>{typeof window<"u"&&window.scrollTo({top:0,behavior:"smooth"})})}),(t,V)=>{const I=ce,F=_e,R=yt;return w(),B("div",{class:u({[t.$style.registerBlock]:!0,[t.$style.confirm]:o(a)||o(g)})},[o(M)?(w(),D(I,{key:0,"user-id":o(r)},null,8,["user-id"])):o(g)&&o(r)>0?(w(),D(F,{key:1,"user-id":o(r),email:o(c),onVerified:b},null,8,["user-id","email"])):(w(),D(R,{key:2,class:u(t.$style.login),onRegistered:h,onNotVerified:x},null,8,["class"]))],2)}}}),xt="_registerBlock_1cpfm_1",Vt="_confirm_1cpfm_15",kt={registerBlock:xt,confirm:Vt},It={$style:kt},Ut=Z(bt,[["__cssModules",It]]);export{Ut 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.