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

1 line
No EOL
8.5 KiB
JavaScript

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