text: (window.webpackJsonp=window.webpackJsonp||[]).push([[50,11],{434:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"withParams",{enumerable:!0,get:function(){return o.default}}),t.regex=t.ref=t.len=t.req=void 0;var n,o=(n=r(437))&&n.__esModule?n:{default:n};function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=function(e){if(Array.isArray(e))return!!e.length;if(null==e)return!1;if(!1===e)return!0;if(e instanceof Date)return!isNaN(e.getTime());if("object"===f(e)){for(var t in e)return!0;return!1}return!!String(e).length};t.req=l;t.len=function(e){return Array.isArray(e)?e.length:"object"===f(e)?Object.keys(e).length:String(e).length};t.ref=function(e,t,r){return"function"==typeof e?e.call(t,r):r[e]};t.regex=function(e,t){return(0,o.default)({type:e},(function(e){return!l(e)||t.test(e)}))}},435:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"alpha",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"alphaNum",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"numeric",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"between",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"email",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"ipAddress",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"macAddress",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"maxLength",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"minLength",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"required",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"requiredIf",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"requiredUnless",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"sameAs",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"url",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"or",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"and",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"not",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"minValue",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"maxValue",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"integer",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"decimal",{enumerable:!0,get:function(){return A.default}}),t.helpers=void 0;var n=z(r(436)),o=z(r(439)),f=z(r(440)),l=z(r(441)),c=z(r(442)),d=z(r(443)),m=z(r(444)),v=z(r(445)),y=z(r(446)),h=z(r(447)),_=z(r(448)),P=z(r(449)),x=z(r(450)),O=z(r(451)),j=z(r(452)),w=z(r(453)),$=z(r(454)),k=z(r(455)),M=z(r(456)),S=z(r(457)),A=z(r(458)),R=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var desc=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};desc.get||desc.set?Object.defineProperty(t,r,desc):t[r]=e[r]}return t.default=e,t}(r(434));function z(e){return e&&e.__esModule?e:{default:e}}t.helpers=R},436:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(434).regex)("alpha",/^[a-zA-Z]*$/);t.default=n},437:function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="web"===e.env.BUILD?r(438).withParams:r(351).withParams;t.default=n}).call(this,r(120))},438:function(e,t,r){"use strict";(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.withParams=void 0;var n="undefined"!=typeof window?window:void 0!==e?e:{},o=n.vuelidate?n.vuelidate.withParams:function(e,t){return"object"===r(e)&&void 0!==t?t:e((function(){}))};t.withParams=o}).call(this,r(70))},439:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(434).regex)("alphaNum",/^[a-zA-Z0-9]*$/);t.default=n},440:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(434).regex)("numeric",/^[0-9]*$/);t.default=n},441:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(434);t.default=function(e,t){return(0,n.withParams)({type:"between",min:e,max:t},(function(r){return!(0,n.req)(r)||(!/\s/.test(r)||r instanceof Date)&&+e<=+r&&+t>=+r}))}},442:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(434).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])+)\])$/);t.default=n},443:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(434),o=(0,n.withParams)({type:"ipAddress"},(function(e){if(!(0,n.req)(e))return!0;if("string"!=typeof e)return!1;var t=e.split(".");return 4===t.length&&t.every(f)}));t.default=o;var f=function(e){if(e.length>3||0===e.length)return!1;if("0"===e[0]&&"0"!==e)return!1;if(!e.match(/^\d+$/))return!1;var t=0|+e;return t>=0&&t<=255}},444:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(434);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":";return(0,n.withParams)({type:"macAddress"},(function(t){if(!(0,n.req)(t))return!0;if("string"!=typeof t)return!1;var r="string"==typeof e&&""!==e?t.split(e):12===t.length||16===t.length?t.match(/.{2}/g):null;return null!==r&&(6===r.length||8===r.length)&&r.every(o)}))};var o=function(e){return e.toLowerCase().match(/^[0-9a-f]{2}$/)}},445:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(434);t.default=function(e){return(0,n.withParams)({type:"maxLength",max:e},(function(t){return!(0,n.req)(t)||(0,n.len)(t)<=e}))}},446:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(434);t.default=function(e){return(0,n.withParams)({type:"minLength",min:e},(function(t){return!(0,n.req)(t)||(0,n.len)(t)>=e}))}},447:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(434),o=(0,n.withParams)({type:"required"},(function(e){return"string"==typeof e?(0,n.req)(e.trim()):(0,n.req)(e)}));t.default=o},448:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(434);t.default=function(e){return(0,n.withParams)({type:"requiredIf",prop:e},(function(t,r){return!(0,n.ref)(e,this,r)||(0,n.req)(t)}))}},449:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(434);t.default=function(e){return(0,n.withParams)({type:"requiredUnless",prop:e},(function(t,r){return!!(0,n.ref)(e,this,r)||(0,n.req)(t)}))}},450:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(434);t.default=function(e){return(0,n.withParams)({type:"sameAs",eq:e},(function(t,r){return t===(0,n.ref)(e,this,r)}))}},451:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(434).regex)("url",/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i);t.default=n},452:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(434);t.default=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.withParams)({type:"or"},(function(){for(var e=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.length>0&&t.reduce((function(t,r){return t||r.apply(e,n)}),!1)}))}},453:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(434);t.default=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.withParams)({type:"and"},(function(){for(var e=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.length>0&&t.reduce((function(t,r){return t&&r.apply(e,n)}),!0)}))}},454:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(434);t.default=function(e){return(0,n.withParams)({type:"not"},(function(t,r){return!(0,n.req)(t)||!e.call(this,t,r)}))}},455:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(434);t.default=function(e){return(0,n.withParams)({type:"minValue",min:e},(function(t){return!(0,n.req)(t)||(!/\s/.test(t)||t instanceof Date)&&+t>=+e}))}},456:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(434);t.default=function(e){return(0,n.withParams)({type:"maxValue",max:e},(function(t){return!(0,n.req)(t)||(!/\s/.test(t)||t instanceof Date)&&+t<=+e}))}},457:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(434).regex)("integer",/(^[0-9]*$)|(^-[0-9]+$)/);t.default=n},458:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(434).regex)("decimal",/^[-]?\d*(\.\d+)?$/);t.default=n},463:function(e,t,r){"use strict";(function(e){r(32),r(33),r(9),r(51),r(69);var n=r(40),o=r(27),f=r(29),l=r(31),c=r(34),d=r(26),m=r(30),v=r(22),y=r(435),h=r(89),_=r(66),P=r(93),x=r(67),O=r(88);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(d.a)(e);if(t){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(c.a)(this,r)}}var w=function(e,t,r,desc){var n,o=arguments.length,f=o<3?t:null===desc?desc=Object.getOwnPropertyDescriptor(t,r):desc;if("object"===("undefined"==typeof Reflect?"undefined":Object(m.a)(Reflect))&&"function"==typeof Reflect.decorate)f=Reflect.decorate(e,t,r,desc);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(f=(o<3?n(f):o>3?n(t,r,f):n(t,r))||f);return o>3&&f&&Object.defineProperty(t,r,f),f},$=function(t){Object(l.a)(d,t);var r,c=j(d);function d(){var e;return Object(o.a)(this,d),(e=c.apply(this,arguments)).form={rootEmail:"",password:"",acceptedTerms:!1},e}return Object(f.a)(d,[{key:"tryToSubmitForm",value:(r=Object(n.a)(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,console.log("submit form checking validation"),!this.$v.form){e.next=7;break}if(this.$v.form.$touch(),!this.$v.form.$anyError){e.next=7;break}return console.log(this.$v.form),e.abrupt("return",null);case 7:if(!this.isRecaptchaEnabled){e.next=14;break}return e.next=10,this.$recaptcha.getResponse();case 10:return t=e.sent,console.log("ReCaptcha token:",t),e.next=14,this.$recaptcha.reset();case 14:console.log("submit form validation success"),x.Helpers.tokenize(this.$store).then((function(e){if(console.log("password tokenisation"),""===e.password)return null;r.form.password=e.password,r.validatePassword()}),(function(e){console.log("tokenisation failed",e)})),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),console.log("Login error:",e.t0);case 21:case"end":return e.stop()}}),e,this,[[0,18]])}))),function(){return r.apply(this,arguments)})},{key:"validatePassword",value:function(){console.log("password  validation");var e={identityProfileId:P.a.profileId.corporates?P.a.profileId.corporates:"",credentialType:"ROOT",password:{value:this.form.password}};h.Helpers.validatePassword(this.$store,e).then(this.submitForm.bind(this))}},{key:"submitForm",value:function(){return console.log("form success"),_.Helpers.resetErrors(this.$store),this.form}},{key:"checkOnKeyUp",value:function(e){"Enter"===e.key&&(e.preventDefault(),this.tryToSubmitForm())}},{key:"passwordBaseStyle",get:function(){return{color:"#495057",fontSize:"16px",fontSmoothing:"antialiased",fontFamily:"'Be Vietnam', sans-serif",fontWeight:"400",lineHeight:"24px",margin:"0",padding:"6px 12px",textIndent:"0px","::placeholder":{color:"#B6B9C7",fontWeight:"400"}}}},{key:"isRecaptchaEnabled",get:function(){return void 0!==e.env.RECAPTCHA}}]),d}(Object(v.mixins)(O.a));w([Object(v.Emit)()],$.prototype,"submitForm",null),$=w([Object(v.Component)({validations:{form:{rootEmail:{required:y.required,email:y.email},acceptedTerms:{required:y.required,sameAs:Object(y.sameAs)((function(){return!0}))}}},components:{ErrorAlert:function(){return r.e(1).then(r.bind(null,467))}}})],$),t.a=$}).call(this,r(120))},488:function(e,t,r){"use strict";r.r(t);var n=r(463).a,o=r(42),component=Object(o.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("b-form",{on:{submit:function(t){return t.preventDefault(),e.tryToSubmitForm(t)}}},[r("h3",{staticClass:"text-center font-weight-light mb-5"},[e._v("\n    Register\n  ")]),e._v(" "),r("error-alert"),e._v(" "),r("b-form-group",{attrs:{state:e.isInvalid(e.$v.form.rootEmail),label:"Email"}},[r("b-form-input",{attrs:{state:e.isInvalid(e.$v.form.rootEmail),placeholder:"name@email.com"},model:{value:e.$v.form.rootEmail.$model,callback:function(t){e.$set(e.$v.form.rootEmail,"$model",t)},expression:"$v.form.rootEmail.$model"}}),e._v(" "),r("b-form-invalid-feedback",[e._v("Email address invalid.")])],1),e._v(" "),r("client-only",{attrs:{placeholder:"Loading..."}},[r("weavr-form",{ref:"passwordForm",class:{"is-dirty":e.$v.form.$dirty}},[r("label",{staticClass:"d-block"},[e._v("PASSWORD")]),e._v(" "),r("weavr-input",{attrs:{options:{placeholder:"****",classNames:{empty:"is-invalid"}},"base-style":e.passwordBaseStyle,"class-name":"sign-in-password",name:"password",field:"password",required:"true"},on:{onKeyUp:e.checkOnKeyUp}}),e._v(" "),r("small",{staticClass:"form-text text-muted"},[e._v("Minimum 8, Maximum 50 characters.")])],1)],1),e._v(" "),r("b-form-row",{staticClass:"small mt-3 text-muted"},[r("b-col",[r("b-form-group",[r("b-form-checkbox",{attrs:{state:e.isInvalid(e.$v.form.acceptedTerms)},model:{value:e.$v.form.acceptedTerms.$model,callback:function(t){e.$set(e.$v.form.acceptedTerms,"$model",t)},expression:"$v.form.acceptedTerms.$model"}},[e._v("\n          I accept the\n          "),r("a",{staticClass:"text-decoration-underline text-muted",attrs:{href:"https://www.onvirtual.cards/terms/business",target:"_blank"}},[e._v("terms of use")]),e._v("\n          and\n          "),r("a",{staticClass:"text-decoration-underline text-muted",attrs:{href:"https://www.onvirtual.cards/policy/",target:"_blank"}},[e._v("privacy policy")])]),e._v(" "),r("b-form-invalid-feedback",[e._v("This field is required.")])],1)],1)],1),e._v(" "),e.isRecaptchaEnabled?r("div",{staticClass:"mt-2"},[r("recaptcha")],1):e._e(),e._v(" "),r("b-form-row",{staticClass:"mt-5"},[r("b-col",{staticClass:"text-center"},[r("b-button",{attrs:{variant:"secondary",type:"submit"}},[e._v("\n        continue\n        "),r("span",{staticClass:"pl-5"},[e._v("->")])])],1)],1)],1)}),[],!1,null,null,null);t.default=component.exports}}]);