PageSourceSearch

https://natodays.cz/_nuxt/BqbE3-_O.js

js natodays.cz collected 2026-10-02 10:40:08 UTC 3,599 bytes, 1 lines download raw bytes

1import{aQ as S,ba as B,b9 as R,bk as q,bc as F,aU as p,aZ as t,b7 as y,aT as V,aX as n,aV as M,b6 as b,a$ as T,b8 as H,bl as g,bm as _,bi as f,b3 as L,b4 as N,b1 as l,bg as X,bn as J,bo as O,bp as Q,aR as c,be as W}from"./TJn2zxoJ.js";import{_ as Z}from"./BX4LgNae.js";import{e as h}from"./DOI-Jbq2.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new a.Error().stack;o&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[o]="8c725342-4a88-477b-b34f-33aa54bcbec7",a._sentryDebugIdIdentifier="sentry-dbid-8c725342-4a88-477b-b34f-33aa54bcbec7")}catch{}})();const G={class:"bg-ui-bg py-16"},K={class:"container-site max-w-md"},Y={key:0,class:"text-sm-medium mt-6 text-red-600"},ee={class:"text-sm-medium mt-2 text-navy/70"},te={class:"grid grid-cols-1 gap-4 sm:grid-cols-2"},ne={key:0,class:"text-sm-medium text-red-600"},le=S({__name:"[token]",async setup(a){let o,v;const I=B(),P=R(),w=String(I.params.token);q({title:"Aktivace účtu"});const{data:$,error:z}=([o,v]=F(()=>O(`/api/extranet/invite/${w}`,{$fetch:Q()},"$W_LCCg43X-")),o=await o,v(),o),C=N(()=>!!z.value),D=N(()=>$.value?.email??""),i=l(""),r=l(""),u=l(""),d=l(""),x=l(!1),m=l("");async function U(){x.value=!0,m.value="";try{await $fetch(`/api/extranet/invite/${w}`,{method:"POST",body:{firstName:i.value,lastName:r.value,institution:u.value,password:d.value}}),await W(P("/extranet"))}catch(k){m.value=h(k)}finally{x.value=!1}}return(k,e)=>{const j=X,A=Z,E=J;return c(),p("section",G,[t("div",K,[y(j,null,{default:V(()=>[...e[4]||(e[4]=[b("Aktivace účtu",-1)])]),_:1}),n(C)?(c(),p("p",Y," Tento odkaz je neplatný, již byl použit, nebo vypršela jeho platnost. Požádejte prosím organizátory o novou pozvánku. ")):(c(),p(M,{key:1},[t("p",ee,[e[5]||(e[5]=b("Účet pro: ",-1)),t("strong",null,T(n(D)
1),1)]),t("form",{class:"mt-8 flex flex-col gap-4",onSubmit:H(U,["prevent"])},[t("div",te,[t("div",null,[e[6]||(e[6]=t("label",{for:"ex-fn",class:"text-sm-bold text-navy"},"Jméno",-1)),g(t("input",{id:"ex-fn","onUpdate:modelValue":e[0]||(e[0]=s=>f(i)?i.value=s:null),required:"",class:"mt-1 w-full rounded-lg border border-navy/20 px-4 py-2.5 text-navy focus:border-ui-primary focus:outline-none"},null,512),[[_,n(i)]])]),t("div",null,[e[7]||(e[7]=t("label",{for:"ex-ln",class:"text-sm-bold text-navy"},"Příjmení",-1)),g(t("input",{id:"ex-ln","onUpdate:modelValue":e[1]||(e[1]=s=>f(r)?r.value=s:null),required:"",class:"mt-1 w-full rounded-lg border border-navy/20 px-4 py-2.5 text-navy focus:border-ui-primary focus:outline-none"},null,512),[[_,n(r)]])])]),t("div",null,[e[8]||(e[8]=t("label",{for:"ex-inst",class:"text-sm-bold text-navy"},[b("Instituce "),t("span",{class:"text-navy/50"},"(nepovinné)")],-1)),g(t("input",{id:"ex-inst","onUpdate:modelValue":e[2]||(e[2]=s=>f(u)?u.value=s:null),class:"mt-1 w-full rounded-lg border border-navy/20 px-4 py-2.5 text-navy focus:border-ui-primary focus:outline-none"},null,512),[[_,n(u)]])]),t("div",null,[e[9]||(e[9]=t("label",{for:"ex-pw",class:"text-sm-bold text-navy"},"Heslo",-1)),y(A,{id:"ex-pw",modelValue:n(d),"onUpdate:modelValue":e[3]||(e[3]=s=>f(d)?d.value=s:null),autocomplete:"new-password"},null,8,["modelValue"]),e[10]||(e[10]=t("p",{class:"text-xs mt-1 text-navy/60"},"Alespoň 10 znaků, malé i velké písmeno, číslice a speciální znak.",-1))]),n(m)?(c(),p("p",ne,T(n(m)),1)):L("",!0),y(E,{type:"submit",loading:n(x),block:"",size:"lg"},{default:V(()=>[...e[11]||(e[11]=[b("Aktivovat účet",-1)])]),_:1},8,["loading"])],32)],64))])])}}});export{le 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.