PageSourceSearch

https://indian-tv.cz/dist/chunk.e384bae153c31faadcfb.js

js indian-tv.cz collected 2026-09-24 09:29:21 UTC 44,679 bytes, 2 lines download raw bytes

1/*! For license information please see chunk.e384bae153c31faadcfb.js.LICENSE.txt */
2"use strict";(self.webpackChunkindian_web=self.webpackChunkindian_web||[]).push([[4535],{26804:(t,e,r)=>{e.default=void 0;var n=(0,r(17424).regex)("alphaNum",/^[a-zA-Z0-9]*$/);e.default=n},17424:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.req=e.regex=e.ref=e.len=void 0,Object.defineProperty(e,"withParams",{enumerable:!0,get:function(){return o.default}});var n,o=(n=r(88110))&&n.__esModule?n:{default:n};function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}var i=function(t){if(Array.isArray(t))return!!t.length;if(null==t)return!1;if(!1===t)return!0;if(e=t,null!=(r=Date)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](e):e instanceof r)return!isNaN(t.getTime());var e,r;if("object"===a(t)){for(var n in t)return!0;return!1}return!!String(t).length};e.req=i;e.len=function(t){return Array.isArray(t)?t.length:"object"===a(t)?Object.keys(t).length:String(t).length};e.ref=function(t,e,r){return"function"==typeof t?t.call(e,r):r[t]};e.regex=function(t,e){return(0,o.default)({type:t},(function(t){return!i(t)||e.test(t)}))}},17899:(t,e,r)=>{e.default=void 0;var n=(0,r(17424).regex)("email",/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i);e.default=n},76125:(t,e,r)=>{e.default=void 0;var n=r(17424);e.default=function(t){return(0,n.withParams)({type:"minLength",min:t},(function(e){return!(0,n.req)(e)||(0,n.len)(e)>=t}))}},76564:(t,e,r)=>{e.default=void 0;var n=r(17424),o=(0,n.withParams)({type:"required"},(function(t){return"string"==typeof t?(0,n.req)(t.trim()):(0,n.req)(t)}));e.default=o},67481:(t,e,r)=>{e.default=void 0;var n=r(17424);e.default=function(t){return(0,n.withParams)({type:"sameAs",eq:t},(function(e,r){return e===(0,n.ref)(t,this,r)}))}},88110:(t,e,r)=>{var n=r(18665);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o="web"===n.env.BUILD?r(78570).R:r(37022).withParams;e.default=o},78570:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}e.R=void 0;var o="undefined"!=typeof window?window:void 0!==r.g?r.g:{},a=o.vuelidate?o.vuelidate.withParams:function(t,e){return"object"===n(t)&&void 0!==e?e:t((function(){}))};e.R=a},10259:(t,e,r)=>{r.r(e),r.d(e,{default:()=>k});var n=r(75903),o=r(76564);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a,i,s=e&&(a=e.prototype,null!=(i=b)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](a):a instanceof i)?e:b,l=Object.create(s.prototype),c=new T(n||[]);return o(l,"_invoke",{value:L(t,r,c)}),l}function m(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var v="suspendedStart",h="suspendedYield",p="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};d(x,l,(function(){return this}));var C=Object.getPrototypeOf,k=C&&C(C(N([])));k&&k!==r&&n.call(k,l)&&(x=k);var E=_.prototype=b.prototype=Object.create(x);function j(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,s,l){var c=m(t[o],t,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==a(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(d).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=v;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var s=n.delegate;if(s){var l=S(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var c=m(e,r,n);if("normal"===c.type){if(o=n.done?y:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=y,n.method="throw",n.arg=c.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 4,578 bytes, line 2
2(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=m(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function $(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(a(e)+" is not iterable")}return w.prototype=_,o(E,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=d(_,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,d(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},j(P.prototype),d(P.prototype,c,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new P(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},j(E),d(E,u,"Generator"),d(E,l,(function(){return this})),d(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
2e%2?s(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u(t,e,r,n,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,o)}const d={name:"LoginFormPart",mixins:[n.validationMixin],data:function(){var t=null;window.location.href.indexOf("?e=1")>0&&(t="Něco se pokazilo"),window.location.href.indexOf("?e=2")>0&&(t="Nesprávná kombinace jména a hesla");var e=window.location.href.indexOf("autherr=");return{error:t,autherr:e<0?null:parseInt(window.location.href.substr(e+8,1),10),sending:!1,authDomain:window.location.origin,username:"",password:"",passkeyLoading:!1}},validations:{username:{required:o.default},password:{required:o.default}},computed:{passkeySupported:function(){return void 0!==window.PublicKeyCredential},loginAction:function(){return"/auth/login"},returnTo:function(){var t=new URLSearchParams(window.location.search).get("returnUrl");return t||btoa(window.location.href)},returnUrl:function(){return encodeURIComponent(window.location.href)},notMainDomain:function(){return window.location.host.indexOf("indian")<0}},mounted:function(){if(null!==this.autherr){var t=window.location.href;t=(t=(t=(t=t.replace("?autherr=".concat(this.autherr,"&"),"?")).replace("&autherr=".concat(this.autherr,"&"),"&")).replace("&autherr=".concat(this.autherr),"")).replace("?autherr=".concat(this.autherr),""),window.history.replaceState(null,"",t)}},methods:{handleSubmit:function(t){var e=this;if(this.$v.$touch(),this.$v.$invalid)return this.error="Zkontrolujte prosím zadané údaje.",t.preventDefault(),void t.stopImmediatePropagation();window.preventBeacon=!0,window.setTimeout((function(){e.sending=!0}),250)},loginWithPasskey:function(){var t,e=this;return(t=i().mark((function t(){var n,o,a,s,c,u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.passkeyLoading=!0,e.error=null,t.prev=2,t.next=5,Promise.resolve().then(r.t.bind(r,60813,23));case 5:return n=t.sent.default,t.next=8,n.post("/auth/passkey-options",{},{headers:{"X-Requested-With":"XMLHttpRequest"}});case 8:return o=t.sent,a=o.data,s=a.options,"string"==typeof(c=s.publicKey||s).challenge&&(c.challenge=e.base64ToBuffer(c.challenge)),c.allowCredentials&&(c.allowCredentials=c.allowCredentials.map((function(t){return l(l({},t),{},{id:e.base64ToBuffer(t.id)})}))),t.next=16,navigator.credentials.get({publicKey:c});case 16:return u=t.sent,t.next=19,n.post("/auth/passkey-verify",{challengeToken:a.challengeToken,credentialId:e.bufferToBase64(u.rawId),clientDataJSON:e.bufferToBase64(u.response.clientDataJSON),authenticatorData:e.bufferToBase64(u.response.authenticatorData),signature:e.bufferToBase64(u.response.signature),userHandle:u.response.userHandle?e.bufferToBase64(u.response.userHandle):null},{headers:{"X-Requested-With":"XMLHttpRequest"}});case 19:"success"===t.sent.data.status&&window.location.reload(),t.next=27;break;case 24:t.prev=24,t.t0=t.catch(2),"NotAllowedError"!==t.t0.name&&(e.error="Přihlášení pomocí passkey selhalo");case 27:e.passkeyLoading=!1;case 28:case"end":return t.stop()}}),t,null,[[2,24]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){u(a,n,o,i,s,"next",t)}function s(t){u(a,n,o,i,s,"throw",t)}i(void 0)}))})()},base64ToBuffer:function(t){for(var e=atob(t.replace(/-/g,"+").replace(/_/g,"/")),r=new Uint8Array(e.length),n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r.buffer},bufferToBase64:function(t){for(var e=new Uint8Array(t),r="",n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}}};var f=r(51900);const m=(0,f.Z)(d,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"col-md-7"},[r("form",{ref:"form",staticClass:"border-0",attrs:{action:t.loginAction,method:"post"},on:{submit:t.handleSubmit}},[null!==t.error?r("p",{staticClass:"text-danger font-weight-bold"},[t._v(t._s(t.error))]):t._e(),t._v(" "),t.notMainDomain&&!t.autherr?r("div",{staticClass:"form-group"},[r("p",[t._v("Zkusit se "),r("a",{staticClass:"text-primary",attrs:{href:"/auth/check?redirectUrl="+t.returnUrl}},[t._v("automaticky přihlásit z Indiana")]),t._v("?")])]):t._e(),t._v(" "),t.notMainDomain&&3===t.autherr?r("div",{staticClass:"alert alert-info"},[t._m(0)]):t._e(),t._v(" "),r("div",{staticClass:"form-group"},[r("label",{attrs:{for:"loginUsername"}},[t._v("E-mail nebo uživatelské jméno:")]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.username,expression:"username"}
2],staticClass:"form-control form-control-sm",class:{"is-invalid":t.$v.username.$error},attrs:{name:"username",type:"text",id:"loginUsername",required:"",disabled:t.sending,autocomplete:"username"},domProps:{value:t.username},on:{input:function(e){e.target.composing||(t.username=e.target.value)}}})]),t._v(" "),r("div",{staticClass:"form-group"},[r("label",{attrs:{for:"loginPassword"}},[t._v("Heslo:")]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"form-control form-control-sm",class:{"is-invalid":t.$v.password.$error},attrs:{name:"password",type:"password",id:"loginPassword",required:"",disabled:t.sending,autocomplete:"current-password"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),t._v(" "),r("div",{staticClass:"form-group buttons"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-6"},[t.sending?r("button",{staticClass:"btn btn-block btn-primary btn-lg",attrs:{disabled:""}},[r("i",{staticClass:"fas fa-spinner fa-spin"}),t._v(" Odesílám")]):r("input",{staticClass:"btn btn-block btn-primary btn-lg",attrs:{type:"submit",name:"login",value:"Přihlásit se"}})]),t._v(" "),r("div",{staticClass:"col-md-6 text-right"},[r("a",{staticClass:"dark pull-right ajax",attrs:{href:"#passwordReset"},on:{click:function(e){return t.$emit("screen","resetPassword")}}},[t._v("Zapomněli jste heslo?")])])])]),t._v(" "),r("input",{attrs:{type:"hidden",name:"authDomain"},domProps:{value:t.authDomain}}),t._v(" "),r("input",{attrs:{type:"hidden",name:"returnTo"},domProps:{value:t.returnTo}})]),t._v(" "),t.passkeySupported?r("div",{staticClass:"mt-3 text-center"},[r("button",{staticClass:"btn btn-secondary btn-sm",attrs:{disabled:t.passkeyLoading},on:{click:t.loginWithPasskey}},[r("i",{staticClass:"fas fa-key mr-2"}),t._v(" Použít passkey\n        ")])]):t._e()])}),[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("p",{staticClass:"mb-0"},[r("i",{staticClass:"fas fa-fw fa-exclamation-triangle mr-2"}),t._v(" Automatické přihlášení se nepodařilo.")])}],!1,null,null,null).exports;var v=r(60813),h=r.n(v),p=r(26804),y=r(17899),g=r(76125),b=r(67481);const w={name:"RegisterFormPart",mixins:[n.validationMixin],data:function(){return{error:null,errorFields:[],sending:!1,success:!1,authDomain:window.location.origin,username:"",email:"",password:"",passwordAgain:"",terms:!1}},validations:{username:{required:o.default,alphaNum:p.default,minLength:(0,g.default)(4)},email:{required:o.default,email:y.default},password:{required:o.default,passwordComplexity:function(t){return/[a-z]/.test(t)&&/[A-Z]/.test(t)&&/[0-9]/.test(t)},minLength:(0,g.default)(6)},passwordAgain:{required:o.default,sameAs:(0,b.default)("password")},terms:{required:o.default}},methods:{handleSubmit:function(){var t=this;if(this.$v.$touch(),this.errorFields=[],this.error=null,this.$v.$invalid)this.error="Zkontrolujte prosím zadané údaje.";else{this.sending=!0;var e=new FormData(this.$refs.form);e.append("returnTo",btoa(window.location.href)),h().post("/auth/register",e,{withCredentials:!0}).then((function(){t.success=!0})).catch((function(e){var r=e.response;t.errorFields=r.data.fields||[],void 0!==r.data.error?t.error=r.data.error.message:t.error="Něco se pokazilo, zkuste to prosím znovu.",t.sending=!1}))}}}};const _=(0,f.Z)(w,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.success?r("div",{staticClass:"col-md-7 text-center pt-5 pb-5"},[r("i",{staticClass:"fas fa-check fa-3x"}),t._v(" "),r("br"),t._v(" "),r("strong",[t._v("Na tvém emailu najdeš odkaz pro aktivaci účtu.")])]):r("div",{staticClass:"col-md-7"},[r("form",{ref:"form",staticClass:"border-0",attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[null!==t.error?r("p",{staticClass:"text-danger font-weight-bold"},[t._v(t._s(t.error))]):t._e(),t._v(" "),r("div",{staticClass:"form-group"},[r("label",{attrs:{for:"registerUsername"}},[t._v("Vaše uživatelské jméno:")]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.username,expression:"username"}
2],staticClass:"form-control form-control-sm",class:{"is-invalid":t.$v.username.$error||t.errorFields.includes("username")},attrs:{name:"username",type:"text",id:"registerUsername",required:"",disabled:t.sending,autocomplete:"username"},domProps:{value:t.username},on:{input:function(e){e.target.composing||(t.username=e.target.value)}}}),t._v(" "),r("small",{staticClass:"form-text text-muted"},[t._v("Uživatelské jméno musí být alespoň 4 znaky dlouhé.")])]),t._v(" "),r("div",{staticClass:"form-group"},[r("label",{attrs:{for:"registerEmail"}},[t._v("E-mail:")]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],staticClass:"form-control form-control-sm",class:{"is-invalid":t.$v.email.$error||t.errorFields.includes("email")},attrs:{name:"email",type:"email",id:"registerEmail",required:"",disabled:t.sending,autocomplete:"email"},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})]),t._v(" "),r("div",{staticClass:"form-group"},[r("label",{attrs:{for:"registerPassword"}},[t._v("Heslo:")]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"form-control form-control-sm",class:{"is-invalid":t.$v.password.$error},attrs:{name:"password",type:"password",id:"registerPassword",required:"",disabled:t.sending,autocomplete:"new-password"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}}),t._v(" "),r("small",{staticClass:"form-text text-muted"},[t._v("Heslo musí být alespoň 6 znaků dlouhé a obsahovat alespoň jedno malé a velké písmeno a číslici.")])]),t._v(" "),r("div",{staticClass:"form-group"},[r("label",{attrs:{for:"registerPasswordAgain"}},[t._v("Heslo pro kontrolu:")]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.passwordAgain,expression:"passwordAgain"}],staticClass:"form-control form-control-sm",class:{"is-invalid":t.$v.passwordAgain.$error},attrs:{name:"passwordAgain",type:"password",id:"registerPasswordAgain",required:"",disabled:t.sending,autocomplete:"new-password"},domProps:{value:t.passwordAgain},on:{input:function(e){e.target.composing||(t.passwordAgain=e.target.value)}}})]),t._v(" "),r("div",{staticClass:"form-group"},[r("div",{staticClass:"custom-control custom-checkbox",class:{"is-invalid":t.$v.terms.$error}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.terms,expression:"terms"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"registerTerms",name:"terms",value:"true",required:""},domProps:{checked:Array.isArray(t.terms)?t._i(t.terms,"true")>-1:t.terms},on:{change:function(e){var r=t.terms,n=e.target,o=!!n.checked;if(Array.isArray(r)){var a="true",i=t._i(r,a);n.checked?i<0&&(t.terms=r.concat([a])):i>-1&&(t.terms=r.slice(0,i).concat(r.slice(i+1)))}else t.terms=o}}}),t._v(" "),t._m(0)])]),t._v(" "),r("div",{staticClass:"form-group buttons"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-6"},[t.sending?r("button",{staticClass:"btn btn-block btn-primary btn-lg",attrs:{disabled:""}},[r("i",{staticClass:"fas fa-spinner fa-spin"}),t._v(" Odesílám")]):r("input",{staticClass:"btn btn-block btn-primary btn-lg",attrs:{type:"submit",name:"login",value:"Zaregistrovat se"}})])])]),t._v(" "),r("input",{attrs:{type:"hidden",name:"authDomain"},domProps:{value:t.authDomain}})])])}),[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("label",{staticClass:"custom-control-label",attrs:{for:"registerTerms"}},[t._v("Přečetl jsem si a souhlasím se "),r("a",{attrs:{href:"/zasady"}},[t._v("zpracováním osobních údajů")]),t._v(".")])}],!1,null,null,null).exports;const x={name:"ResetPasswordFormPart",mixins:[n.validationMixin],data:function(){return{error:null,sending:!1,success:!1,authDomain:window.location.origin,email:""}},validations:{email:{required:o.default,email:y.default}},methods:{handleSubmit:function(){var t=this;this.$v.$touch(),this.$v.$invalid?this.error="Zkontrolujte prosím zadané údaje.":(this.sending=!0,h().post("/auth/reset-password",new FormData(this.$refs.form),{withCredentials:!0}).then((function(){t.success=!0}
2)).catch((function(e){try{t.error=e.response.data.error.message||"Něco se pokazilo, zkuste to prosím znovu."}catch(e){t.error="Něco se pokazilo, zkuste to prosím znovu."}t.sending=!1})))}}};const C={name:"LoginForm",components:{ResetPasswordFormPart:(0,f.Z)(x,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.success?r("div",{staticClass:"col-md-7 text-center pt-5 pb-5"},[r("i",{staticClass:"fas fa-check fa-3x"}),t._v(" "),r("br"),t._v(" "),r("strong",[t._v("Na tvém emailu najdeš odkaz pro obnovu hesla.")])]):r("div",{staticClass:"col-md-7"},[r("form",{ref:"form",staticClass:"border-0",attrs:{method:"post"},on:{submit:function(e){return e.preventDefault(),t.handleSubmit.apply(null,arguments)}}},[null!==t.error?r("p",{staticClass:"text-danger font-weight-bold"},[t._v(t._s(t.error))]):t._e(),t._v(" "),r("p",[t._v("Vložte sem váš email, který je spojený s vaším účtem. Zašleme vám na něj odkaz na resetování hesla.")]),t._v(" "),r("div",{staticClass:"form-group"},[r("label",{attrs:{for:"registerEmail"}},[t._v("E-mail:")]),t._v(" "),r("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],staticClass:"form-control form-control-sm",class:{"is-invalid":t.$v.email.$error},attrs:{name:"email",type:"email",id:"registerEmail",required:"",disabled:t.sending,autocomplete:"email"},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})]),t._v(" "),r("div",{staticClass:"form-group buttons"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-6"},[t.sending?r("button",{staticClass:"btn btn-block btn-primary btn-lg",attrs:{disabled:""}},[r("i",{staticClass:"fas fa-spinner fa-spin"}),t._v(" Odesílám")]):r("input",{staticClass:"btn btn-block btn-primary btn-lg",attrs:{type:"submit",name:"login",value:"Zažádat o reset hesla"}})])])]),t._v(" "),r("input",{attrs:{type:"hidden",name:"authDomain"},domProps:{value:t.authDomain}})])])}),[],!1,null,null,null).exports,RegisterFormPart:_,LoginFormPart:m},props:{recovery:{required:!1,type:Boolean,default:!1}},data:function(){return{screen:"login",showYouTube:document.cookie.indexOf("youtube-login=1")>-1}},computed:{isSignedIn:function(){return this.$store.getters.isSignedIn},returnUrl:function(){var t=new URLSearchParams(window.location.search).get("returnUrl");return t?encodeURIComponent(t):encodeURIComponent(btoa(window.location.href))}},methods:{handleScreen:function(t){this.screen=t}}};const k=(0,f.Z)(C,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"loginContainer"},[t.isSignedIn?t.isSignedIn&&t.recovery?r("div",{staticClass:"modal-mycontainer"},[t._m(10),t._v(" "),r("div",{staticClass:"modal-body"},[r("div",{staticClass:"row justify-content-center"},[r("reset-password-form-part")],1)]),t._v(" "),t._m(11)]):r("div",{staticClass:"modal-mycontainer"},[t._m(12)]):r("div",{staticClass:"modal-mycontainer"},[r("div",{staticClass:"modal-header"},["login"===t.screen?r("div",{staticClass:"row"},[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2)]):t._e(),t._v(" "),"resetPassword"===t.screen?r("div",{staticClass:"row"},[t._m(3),t._v(" "),t._m(4),t._v(" "),t._m(5)]):t._e(),t._v(" "),"register"===t.screen?r("div",{staticClass:"row"},[t._m(6),t._v(" "),t._m(7),t._v(" "),t._m(8)]):t._e()]),t._v(" "),r("div",{staticClass:"modal-body"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-5"},[r("a",{staticClass:"btn btn-block btn-sml btn-facebook",attrs:{href:"/auth/facebook?returnTo="+t.returnUrl}},[t._v("Facebook")]),t._v(" "),r("a",{staticClass:"btn btn-block btn-sml btn-google",attrs:{href:"/auth/google?returnTo="+t.returnUrl}},[t._v("Google")]),t._v(" "),r("a",{directives:[{name:"show",rawName:"v-show",value:t.showYouTube,expression:"showYouTube"}],staticClass:"btn btn-block btn-sml btn-youtube",attrs:{href:"/auth/youtube?returnTo="+t.returnUrl}},[t._v("YouTube")]),t._v(" "),r("a",{staticClass:"btn btn-block btn-sml btn-steam",attrs:{href:"/auth/steam?returnTo="+t.returnUrl}},[t._v("Steam")]),t._v(" "),r("a",{staticClass:"btn btn-block btn-sml btn-twitter",attrs:{href:"/auth/twitter?returnTo="+t.returnUrl}},[t._v("Twitter")]),t._v(" "),r("a",{staticClass:"btn btn-block btn-sml btn-twitch",attrs:{href:"/auth/twitch?returnTo="+t.returnUrl}},[t._v("Twitch.tv")]),t._v(" "),r("a",{staticClass:"btn btn-block btn-sml btn-discord",attrs:{href:"/auth/discord?returnTo="+t.returnUrl}},[t._v("Discord")])]),t._v(" "),"login"===t.screen?r("login-form-part",{on:{screen:t.handleScreen}}):t._e(),t._v(" "),"register"===t.screen?r("register-form-part",{on:{screen:t.handleScreen}}):t._e(),t._v(" "),"resetPassword"===t.screen?r("reset-password-form-part",{on:{screen:t.handleScreen}}):t._e()],1)]),t._v(" "),r("div",{staticClass:"modal-footer"},[r("div",{staticClass:"row"},[r("div",{staticClass:"col-md-3"},["login"===t.screen?r("a",{staticClass:"btn btn-block btn-primary btn-lg ajax",on:{click:function(e){return t.handleScreen("register")}}},[t._v("Registrace účtu")]):t._e(),t._v(" "),"register"===t.screen||"resetPassword"===t.screen?r("a",{staticClass:"btn btn-block btn-primary btn-lg ajax",on:{click:function(e){return t.handleScreen("login")}}},[t._v("Přihlásit se")]):t._e()]),t._v(" "),t._m(9)])])])])}),[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"col-12 d-block d-md-none"},[r("strong",{staticClass:"modal-title"},[t._v("Přihlášení")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"col-md-5 d-none d-md-block"},[r("strong",{staticClass:"modal-title"},[t._v("Přihlášení přes jiné sítě")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"col-md-7 d-none d-md-block"},[r("strong",{staticClass:"modal-title"},[t._v("Přihlášení pomocí INDIAN účtu")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"col-12 d-block d-md-none"},[r("strong",{staticClass:"modal-title"},[t._v("Přihlášení")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"col-md-5 d-none d-md-block"},[r("strong",{staticClass:"modal-title"},[t._v("Přihlášení přes jiné sítě")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"col-md-7 d-none d-md-block"},[r("strong",{staticClass:"modal-title"},[t._v("Získejte zpět své heslo")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"col-12 d-block d-md-none"},[r("strong",{staticClass:"modal-title"},[t._v("Registrace")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"col-md-5 d-none d-md-block"},[r("strong",{staticClass:"modal-title"},[t._v("Zaregistrovat se pomocí")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"col-md-7 d-none d-md-block"},[r("strong",{staticClass:"modal-title"},[t._v("Vytvořit INDIAN účet")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"col-md-9 text-left"},[r("p",{staticClass:"text-small"},[t._v("Vaše osobní údaje jsou u nás v bezpečí. Přečtěte si, jak je "),r("a",{attrs:{href:"/zasady"}},[t._v("chráníme")]),t._v(" a jak je případně "),r("a",{attrs:{href:"/zasady"}},[t._v("využíváme")]),t._v(".")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"modal-header"},[r("div",{staticClass:"row justify-content-center"},[r("div",{staticClass:"col-md-7 d-none d-md-block"},[r("strong",{staticClass:"modal-title"},[t._v("Získejte zpět své heslo")])])])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"modal-footer"},[r("div",{staticClass:"row justify-content-center"},[r("div",{staticClass:"col-md-9 text-left"},[r("p",{staticClass:"text-small"},[t._v("Vaše osobní údaje jsou u nás v bezpečí. Přečtěte si, jak je "),r("a",{attrs:{href:"/zasady"}},[t._v("chráníme")]),t._v(" a jak je případně "),r("a",{attrs:{href:"/zasady"}},[t._v("využíváme")]),t._v(".")])])])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"modal-body text-center"},[r("i",{staticClass:"fas fa-check fa-3x"}),t._v(" "),r("br"),t._v(" "),r("strong",[t._v("Už jsi přihlášen(a).")])])}],!1,null,"91d7781c",null).exports},23030:(t,e,r)=>{r.r(e),r.d(e,{default:()=>o});const n={name:"LoginModal",data:function(){return{open:!1,shadowEl:null}},watch:{open:function(t){var e=this;t?(this.shadowEl=document.createElement("div"),this.shadowEl.classList.add("modal-backdrop","fade","show"),document.body.appendChild(this.shadowEl),this.shadowEl.addEventListener("click",(function(){e.open=!1}))):(document.body.removeChild(this.shadowEl),this.shadowEl=null)},isSignedIn:function(t){t&&(this.open=!1)}},computed:{isSignedIn:function(){return this.$store.getters.isSignedIn}},beforeDestroy:function(){document.removeEventListener("keydown",this.handleKeyDown),null!==this.shadowEl&&(document.body.removeChild(this.shadowEl),this.shadowEl=null)},mounted:function(){document.addEventListener("keydown",this.handleKeyDown,{passive:!0})},methods:{handleClick:function(t){t.target===this.$refs.modal&&(this.open=!1)},handleKeyDown:function(t){"Escape"===t.key&&(this.open=!1)}}};const o=(0,r(51900).Z)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.isSignedIn?t._e():r("div",{ref:"modal",staticClass:"modal fade",class:{"d-block":t.open,show:t.open},attrs:{id:"loginModal"},on:{click:t.handleClick}},[r("div",{staticClass:"modal-dialog",attrs:{role:"document"}},[t.open?r("div",{staticClass:"modal-content"},[r("login-form")],1):t._e()])])}),[],!1,null,null,null).exports},6980:(t,e,r)=>{r.r(e),r.d(e,{default:()=>u});var n=r(60813),o=r.n(n);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var a,i,s=e&&(a=e.prototype,null!=(i=b)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](a):a instanceof i)?e:b,l=Object.create(s.prototype),c=new T(n||[]);return o(l,"_invoke",{value:L(t,r,c)}),l}function m(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var v="suspendedStart",h="suspendedYield",p="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};d(x,l,(function(){return this}));var C=Object.getPrototypeOf,k=C&&C(C(N([])));k&&k!==r&&n.call(k,l)&&(x=k);var E=_.prototype=b.prototype=Object.create(x);function j(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,s,l){var c=m(t[o],t,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==a(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(d).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=v;return function(a,i){if(o===p)throw new Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var s=n.delegate;if(s){var l=S(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var c=m(e,r,n);if("normal"===c.type){if(o=n.done?y:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=y,n.method="throw",n.arg=c.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 4,441 bytes, line 2
2(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=m(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function $(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(a(e)+" is not iterable")}return w.prototype=_,o(E,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=d(_,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,d(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},j(P.prototype),d(P.prototype,c,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new P(f(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},j(E),d(E,u,"Generator"),d(E,l,(function(){return this})),d(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function s(t,e,r,n,o,a,i){try{var s=t[a](i),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,o)}function l(t){return function(){var e=this,r=arguments;
2return new Promise((function(n,o){var a=t.apply(e,r);function i(t){s(a,n,o,i,l,"next",t)}function l(t){s(a,n,o,i,l,"throw",t)}i(void 0)}))}}const c={name:"TwoFactorVerify",props:{token:{type:String,required:!0}},data:function(){return{method:"totp",code:"",error:null,submitting:!1,expired:!1}},mounted:function(){var t=this;this.$nextTick((function(){t.$refs.codeInput&&t.$refs.codeInput.focus()}))},methods:{verify:function(){var t=this;return l(i().mark((function e(){var r,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.submitting=!0,t.error=null,e.prev=2,e.next=5,o().post("/auth/verify-login",{token:t.token,code:t.code,method:t.method},{headers:{"X-Requested-With":"XMLHttpRequest"}});case 5:r=e.sent,"success"===(n=r.data).status&&(window.location.href=n.redirectTo||"/"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),e.t0.response&&e.t0.response.data&&e.t0.response.data.error?(t.error=e.t0.response.data.error.message,t.error.includes("vyprsela")&&(t.expired=!0)):t.error="Nastala chyba při ověření";case 13:t.submitting=!1;case 14:case"end":return e.stop()}}),e,null,[[2,10]])})))()},switchToEmail:function(){var t=this;return l(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.method="email",t.code="",t.error=null,e.prev=3,e.next=6,o().post("/auth/send-email-otp",{token:t.token},{headers:{"X-Requested-With":"XMLHttpRequest"}});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(3),t.error="Nepodařilo se odeslat kód na e-mail";case 11:case"end":return e.stop()}}),e,null,[[3,8]])})))()}}};const u=(0,r(51900).Z)(c,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"two-factor-verify"},[t._m(0),t._v(" "),r("div",{staticClass:"panel"},[r("div",{staticClass:"panel__body"},[t.expired?r("div",{staticClass:"alert alert-danger"},[t._v("\n                Platnost ověření vypršela. "),r("a",{attrs:{href:"/prihlasit-se"}},[t._v("Přihlaste se znovu")]),t._v(".\n            ")]):["totp"===t.method?r("div",[r("p",[t._v("Zadejte 6-místný kód z vaší autentifikační aplikace.")])]):"email"===t.method?r("div",[r("p",[t._v("Na váš e-mail byl zaslán ověřovací kód. Zadejte ho níže.")])]):"recovery"===t.method?r("div",[r("p",[t._v("Zadejte jeden z vašich záložních kódů.")])]):t._e(),t._v(" "),r("div",{staticClass:"form-group"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.code,expression:"code"}],ref:"codeInput",staticClass:"form-control form-control-lg text-center",attrs:{type:"text",placeholder:"recovery"===t.method?"xxxx-xxxx":"000000",maxlength:"recovery"===t.method?9:6,autocomplete:"one-time-code"},domProps:{value:t.code},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.verify.apply(null,arguments)},input:function(e){e.target.composing||(t.code=e.target.value)}}})]),t._v(" "),t.error?r("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.error))]):t._e(),t._v(" "),r("button",{staticClass:"btn btn-primary btn-block",attrs:{disabled:t.submitting||t.code.length<4},on:{click:t.verify}},[t.submitting?r("i",{staticClass:"fas fa-spinner fa-spin"}):r("span",[t._v("Ověřit a přihlásit")])]),t._v(" "),r("hr"),t._v(" "),r("div",{staticClass:"text-center small"},["email"!==t.method?[r("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.switchToEmail.apply(null,arguments)}}},[t._v("Poslat kód e-mailem")]),t._v(" |\n                    ")]:t._e(),t._v(" "),"totp"!==t.method?[r("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.method="totp"}}},[t._v("Použít autentifikátor")]),t._v(" |\n                    ")]:t._e(),t._v(" "),r("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.method="recovery"}}},[t._v("Použít záložní kód")])],2)]],2)])])}),[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"panel panel--toptriangle"},[r("div",{staticClass:"panel__header"},[r("strong",[t._v("Ověření přihlášení")])])])}],!1,null,"8fae0b28",null).exports}}]);

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.