seepur/public/scripts/views/register/app.bundle.js

1 line
No EOL
9.1 KiB
JavaScript

!function(e){var n=window.webpackHotUpdate;window.webpackHotUpdate=function(e,r){!function(e,n){if(!O[e]||!w[e])return;for(var r in w[e]=!1,n)Object.prototype.hasOwnProperty.call(n,r)&&(h[r]=n[r]);0==--m&&0===b&&D()}(e,r),n&&n(e,r)};var r,t=!0,o="7dc24c939137cfe31270",i={},c=[],d=[];function a(e){var n=k[e];if(!n)return H;var t=function(t){return n.hot.active?(k[t]?-1===k[t].parents.indexOf(e)&&k[t].parents.push(e):(c=[e],r=t),-1===n.children.indexOf(t)&&n.children.push(t)):(console.warn("[HMR] unexpected require("+t+") from disposed module "+e),c=[]),H(t)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return H[e]},set:function(n){H[e]=n}}};for(var i in H)Object.prototype.hasOwnProperty.call(H,i)&&"e"!==i&&"t"!==i&&Object.defineProperty(t,i,o(i));return t.e=function(e){return"ready"===u&&p("prepare"),b++,H.e(e).then(n,(function(e){throw n(),e}));function n(){b--,"prepare"===u&&(g[e]||j(e),0===b&&0===m&&D())}},t.t=function(e,n){return 1&n&&(e=t(e)),H.t(e,-2&n)},t}function s(n){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==n,active:!0,accept:function(e,n){if(void 0===e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r<e.length;r++)t._acceptedDependencies[e[r]]=n||function(){};else t._acceptedDependencies[e]=n||function(){}},decline:function(e){if(void 0===e)t._selfDeclined=!0;else if("object"==typeof e)for(var n=0;n<e.length;n++)t._declinedDependencies[e[n]]=!0;else t._declinedDependencies[e]=!0},dispose:function(e){t._disposeHandlers.push(e)},addDisposeHandler:function(e){t._disposeHandlers.push(e)},removeDisposeHandler:function(e){var n=t._disposeHandlers.indexOf(e);n>=0&&t._disposeHandlers.splice(n,1)},invalidate:function(){switch(this._selfInvalidated=!0,u){case"idle":(h={})[n]=e[n],p("ready");break;case"ready":P(n);break;case"prepare":case"check":case"dispose":case"apply":(y=y||[]).push(n)}},check:E,apply:I,status:function(e){if(!e)return u;l.push(e)},addStatusHandler:function(e){l.push(e)},removeStatusHandler:function(e){var n=l.indexOf(e);n>=0&&l.splice(n,1)},data:i[n]};return r=void 0,t}var l=[],u="idle";function p(e){u=e;for(var n=0;n<l.length;n++)l[n].call(null,e)}var f,h,v,y,m=0,b=0,g={},w={},O={};function _(e){return+e+""===e?+e:e}function E(e){if("idle"!==u)throw new Error("check() is only allowed in idle status");return t=e,p("check"),(n=1e4,n=n||1e4,new Promise((function(e,r){if("undefined"==typeof XMLHttpRequest)return r(new Error("No browser support"));try{var t=new XMLHttpRequest,i=H.p+""+o+".hot-update.json";t.open("GET",i,!0),t.timeout=n,t.send(null)}catch(e){return r(e)}t.onreadystatechange=function(){if(4===t.readyState)if(0===t.status)r(new Error("Manifest request to "+i+" timed out."));else if(404===t.status)e();else if(200!==t.status&&304!==t.status)r(new Error("Manifest request to "+i+" failed."));else{try{var n=JSON.parse(t.responseText)}catch(e){return void r(e)}e(n)}}}))).then((function(e){if(!e)return p(x()?"ready":"idle"),null;w={},g={},O=e.c,v=e.h,p("prepare");var n=new Promise((function(e,n){f={resolve:e,reject:n}}));h={};return j(3),"prepare"===u&&0===b&&0===m&&D(),n}));var n}function j(e){O[e]?(w[e]=!0,m++,function(e){var n=document.createElement("script");n.charset="utf-8",n.src=H.p+""+e+"."+o+".hot-update.js",document.head.appendChild(n)}(e)):g[e]=!0}function D(){p("ready");var e=f;if(f=null,e)if(t)Promise.resolve().then((function(){return I(t)})).then((function(n){e.resolve(n)}),(function(n){e.reject(n)}));else{var n=[];for(var r in h)Object.prototype.hasOwnProperty.call(h,r)&&n.push(_(r));e.resolve(n)}}function I(n){if("ready"!==u)throw new Error("apply() is only allowed in ready status");return function n(t){var d,a,s,l,u;function f(e){for(var n=[e],r={},t=n.map((function(e){return{chain:[e],id:e}}));t.length>0;){var o=t.pop(),i=o.id,c=o.chain;if((l=k[i])&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:c,moduleId:i};if(l.hot._main)return{type:"unaccepted",chain:c,moduleId:i};for(var d=0;d<l.parents.length;d++){var a=l.parents[d],s=k[a];if(s){if(s.hot._declinedDependencies[i])return{type:"declined",chain:c.concat([a]),moduleId:i,parentId:a};-1===n.indexOf(a)&&(s.hot._acceptedDependencies[i]?(r[a]||(r[a]=[]),m(r[a],[i])):(delete r[a],n.push(a),t.push({chain:c.concat([a]),id:a})))}}}}return{type:"accepted",moduleId:e,outdatedModules:n,outdatedDependencies:r}}function m(e,n){for(var r=0;r<n.length;r++){var t=n[r];-1===e.indexOf(t)&&e.push(t)}}x();var b={},g=[],w={},E=function(){console.warn("[HMR] unexpected require("+D.moduleId+") to disposed module")};for(var j in h)if(Object.prototype.hasOwnProperty.call(h,j)){var D;u=_(j),D=h[j]?f(u):{type:"disposed",moduleId:j};var I=!1,P=!1,M=!1,A="";switch(D.chain&&(A="\nUpdate propagation: "+D.chain.join(" -> ")),D.type){case"self-declined":t.onDeclined&&t.onDeclined(D),t.ignoreDeclined||(I=new Error("Aborted because of self decline: "+D.moduleId+A));break;case"declined":t.onDeclined&&t.onDeclined(D),t.ignoreDeclined||(I=new Error("Aborted because of declined dependency: "+D.moduleId+" in "+D.parentId+A));break;case"unaccepted":t.onUnaccepted&&t.onUnaccepted(D),t.ignoreUnaccepted||(I=new Error("Aborted because "+u+" is not accepted"+A));break;case"accepted":t.onAccepted&&t.onAccepted(D),P=!0;break;case"disposed":t.onDisposed&&t.onDisposed(D),M=!0;break;default:throw new Error("Unexception type "+D.type)}if(I)return p("abort"),Promise.reject(I);if(P)for(u in w[u]=h[u],m(g,D.outdatedModules),D.outdatedDependencies)Object.prototype.hasOwnProperty.call(D.outdatedDependencies,u)&&(b[u]||(b[u]=[]),m(b[u],D.outdatedDependencies[u]));M&&(m(g,[D.moduleId]),w[u]=E)}var S,U=[];for(a=0;a<g.length;a++)u=g[a],k[u]&&k[u].hot._selfAccepted&&w[u]!==E&&!k[u].hot._selfInvalidated&&U.push({module:u,parents:k[u].parents.slice(),errorHandler:k[u].hot._selfAccepted});p("dispose"),Object.keys(O).forEach((function(e){!1===O[e]&&function(e){delete installedChunks[e]}(e)}));var q,B,L=g.slice();for(;L.length>0;)if(u=L.pop(),l=k[u]){var R={},T=l.hot._disposeHandlers;for(s=0;s<T.length;s++)(d=T[s])(R);for(i[u]=R,l.hot.active=!1,delete k[u],delete b[u],s=0;s<l.children.length;s++){var C=k[l.children[s]];C&&((S=C.parents.indexOf(u))>=0&&C.parents.splice(S,1))}}for(u in b)if(Object.prototype.hasOwnProperty.call(b,u)&&(l=k[u]))for(B=b[u],s=0;s<B.length;s++)q=B[s],(S=l.children.indexOf(q))>=0&&l.children.splice(S,1);p("apply"),void 0!==v&&(o=v,v=void 0);for(u in h=void 0,w)Object.prototype.hasOwnProperty.call(w,u)&&(e[u]=w[u]);var N=null;for(u in b)if(Object.prototype.hasOwnProperty.call(b,u)&&(l=k[u])){B=b[u];var X=[];for(a=0;a<B.length;a++)if(q=B[a],d=l.hot._acceptedDependencies[q]){if(-1!==X.indexOf(d))continue;X.push(d)}for(a=0;a<X.length;a++){d=X[a];try{d(B)}catch(e){t.onErrored&&t.onErrored({type:"accept-errored",moduleId:u,dependencyId:B[a],error:e}),t.ignoreErrored||N||(N=e)}}}for(a=0;a<U.length;a++){var G=U[a];u=G.module,c=G.parents,r=u;try{H(u)}catch(e){if("function"==typeof G.errorHandler)try{G.errorHandler(e)}catch(n){t.onErrored&&t.onErrored({type:"self-accept-error-handler-errored",moduleId:u,error:n,originalError:e}),t.ignoreErrored||N||(N=n),N||(N=e)}else t.onErrored&&t.onErrored({type:"self-accept-errored",moduleId:u,error:e}),t.ignoreErrored||N||(N=e)}}if(N)return p("fail"),Promise.reject(N);if(y)return n(t).then((function(e){return g.forEach((function(n){e.indexOf(n)<0&&e.push(n)})),e}));return p("idle"),new Promise((function(e){e(g)}))}(n=n||{})}function x(){if(y)return h||(h={}),y.forEach(P),y=void 0,!0}function P(n){Object.prototype.hasOwnProperty.call(h,n)||(h[n]=e[n])}var k={};function H(n){if(k[n])return k[n].exports;var r=k[n]={i:n,l:!1,exports:{},hot:s(n),parents:(d=c,c=[],d),children:[]};return e[n].call(r.exports,r,r.exports,a(n)),r.l=!0,r.exports}H.m=e,H.c=k,H.d=function(e,n,r){H.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},H.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},H.t=function(e,n){if(1&n&&(e=H(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(H.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)H.d(r,t,function(n){return e[n]}.bind(null,t));return r},H.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return H.d(n,"a",n),n},H.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},H.p="",H.h=function(){return o},a("./resources/scripts/views/register.ts")(H.s="./resources/scripts/views/register.ts")}({"./resources/scripts/views/register.ts":function(e,n){document.addEventListener("DOMContentLoaded",()=>{let e=!1,n=!1;const r=document.getElementById("form-register"),t=document.getElementById("txt-register-password"),o=document.getElementById("txt-register-confirm-password"),i=document.getElementById("chk-register-terms"),c=document.getElementById("btn-register-submit");function d(){e=r.checkValidity()&&n&&i.checked,c.disabled=!e,i.value=i.checked?"on":""}t&&o&&i||alert("Something Went wrong"),r.oninput=e=>{n=t.value===o.value&&!!t.value.trim().length,d()},d()})}});