1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["views-Registration"],{"0851":function(e,t,i){"use strict";i.r(t);var a=i("8336"),n=i("b0af"),s=i("99d9"),o=(i("6ca7"),i("ec29"),i("9d26")),r=i("c37a"),c=(i("14d9"),i("5607")),l=i("2b0e"),u=l["a"].extend({name:"rippleable",directives:{ripple:c["a"]},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple(e={}){return this.ripple?(e.staticClass="v-input--selection-controls__ripple",e.directives=e.directives||[],e.directives.push({name:"ripple",value:{center:!0}}),this.$createElement("div",e)):null}}}),h=i("80d2"),d=l["a"].extend({name:"comparable",props:{valueComparator:{type:Function,default:h["i"]}}}),p=i("58df");function prevent(e){e.preventDefault()}var m=Object(p["a"])(r["a"],u,d).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},isMultiple(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive(){const e=this.value,t=this.internalValue;return this.isMultiple?!!Array.isArray(t)&&t.some(t=>this.valueComparator(t,e)):void 0===this.trueValue||void 0===this.falseValue?e?this.valueComparator(e,t):Boolean(t):this.valueComparator(t,this.trueValue)},isDirty(){return this.isActive},rippleState(){return this.isDisabled||this.validationState?this.validationState:void 0}},watch:{inputValue(e){this.lazyValue=e,this.hasColor=e}},methods:{genLabel(){const e=r["a"].options.methods.genLabel.call(this);return e?(e.data.on={click:prevent},e):e},genInput(e,t){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:e,type:e},t),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown,click:prevent},ref:"input"})},onClick(e){this.onChange(),this.$emit("click",e)},onChange(){if(!this.isInteractive)return;const e=this.value;let t=this.internalValue;if(this.isMultiple){Array.isArray(t)||(t=[]);const i=t.length;t=t.filter(t=>!this.valueComparator(t,e)),t.length===i&&t.push(e)}else t=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(t,this.trueValue)?this.falseValue:this.trueValue:e?this.valueComparator(t,e)?null:e:!t;this.validate(!0,t),this.internalValue=t,this.hasColor=t},onFocus(e){this.isFocused=!0,this.$emit("focus",e)},onBlur(e){this.isFocused=!1,this.$emit("blur",e)},onKeydown(e){}}}),g=m.extend({name:"v-checkbox",props:{indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},offIcon:{type:String,default:"$checkboxOff"},onIcon:{type:String,default:"$checkboxOn"}},data(){return{inputIndeterminate:this.indeterminate}},computed:{classes(){return{...r["a"].options.computed.classes.call(this),"v-input--selection-controls":!0,"v-input--checkbox":!0,"v-input--indeterminate":this.inputIndeterminate}},computedIcon(){return this.inputIndeterminate?this.indeterminateIcon:this.isActive?this.onIcon:this.offIcon},validationState(){if(!this.isDisabled||this.inputIndeterminate)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0}},watch:{indeterminate(e){this.$nextTick(()=>this.inputIndeterminate=e)},inputIndeterminate(e){this.$emit("update:indeterminate",e)},isActive(){this.indeterminate&&(this.inputIndeterminate=!1)}},methods:{genCheckbox(){const{title:e,...t}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(o["a"],this.setTextColor(this.validationState,{props:{dense:this.dense,dark:this.dark,light:this.light}}),this.computedIcon),this.genInput("checkbox",{...t,"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()}),this.genRipple(this.setTextColor(this.rippleState))])},genDefaultSlot(){return[this.genCheckbox(),this.genLabel()]}}}),f=i("62ad"),v=i("a523"),b=i("169a"),x=i("ce7e"),k=i("0fd9"),I=i("8dd9"),w=i("2fa4"),O=i("8654"),A=function render(){var e=this,t=e._self._c;e._self._setupProxy;return t(v["a"],{attrs:{"fill-height":""}},[t(b["a"],{attrs:{scrollable:"","max-width":"80%"},model:{value:e.tocDialog,callback:function(t){e.tocDialog=t},expression:"tocDialog"}},[t(n["a"],[t(s["d"],{staticClass:"text-h5 grey lighten-2"},[e._v(" "+e._s(e.$haii().text("serviceTermsAndConditions"))+" ")]),t(x["a"]),t(s["c"],[t(I["a"],{staticClass:"ma-3",domProps:{innerHTML:e._s(e.agreementContent)}})],1),t(x["a"]),t(s["a"],[t(w["a"]),t(a["a"],{attrs:{color:"primary"},on:{click:function(t){e.tocAgreement=!1,e.tocDialog=!1}}},[e._v(" "+e._s(e.$haii().text("disagree"))+" ")]),t(a["a"],{attrs:{color:"primary"},on:{click:function(t){e.tocAgreement=!0,e.tocDialog=!1}}},[e._v(" "+e._s(e.$haii().text("agree"))+" ")])],1)],1)],1),t(k["a"],{attrs:{justify:"center"}},[t(f["a"],{attrs:{xs:"10",sm:"8",md:"6",lg:"4"}},[t(n["a"],{staticClass:"pa-2"},[t(s["d"],[e._v(" "+e._s(e.$haii().text("registration"))+" ")]),t(s["b"]),t(s["c"],[t(O["a"],{attrs:{label:e.$haii().text("inputName"),required:"",counter:32,rules:e.displayNameRules},model:{value:e.displayName,callback:function(t){e.displayName=t},expression:"displayName"}}),t(O["a"],{attrs:{label:e.$haii().text("inputEmail"),required:"",rules:e.emailRules},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}}),t(g,{attrs:{label:e.$haii().text("serviceTermsAndConditions")},on:{click:e.openAgreement},model:{value:e.tocAgreement,callback:function(t){e.tocAgreement=t},expression:"tocAgreement"}})],1),t(s["a"],[t(w["a"]),t(a["a"],{attrs:{color:"primary"},on:{click:e.register}},[e._v(" "+e._s(e.$haii().text("check"))+" ")])],1)],1)],1)],1)],1)},S=[],E=(i("33d1"),i("ea98"),i("9ab4")),y=i("2fe1"),N=i("14b7"),C=i.n(N),_=i("0e54"),R=i.n(_),T=i("cfdf"),$=i("0a36");let D=class Registration extends l["a"]{constructor(){super(...arguments),this.displayName="",this.displayNameRules=[e=>!!e||this.$haii().text("requiredField")],this.email="",this.emailRules=[e=>!!e||this.$haii().text("requiredField"),e=>/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e)||this.$haii().text("wrongEmailFormat")],this.authToken=null,this.tocAgreement=!1,this.tocDialog=!1,this.agreementContent=""}created(){if(this.$route.query.at&&"string"==typeof this.$route.query.at&&(this.authToken=this.$route.query.at),!this.authToken)return this.invalidAuthToken();const e=C.a.decode(this.authToken,{complete:!0});return e&&e.payload?void 0:this.invalidAuthToken()}invalidAuthToken(){alert("invalid access"),this.$router.replace("/auth/signin")}openAgreement(){return Object(E["a"])(this,void 0,void 0,(function*(){this.tocAgreement&&(fetch("/txt/ex_eula.md").then(e=>e.text()).then(e=>{this.agreementContent=R()(e)}),this.tocDialog=!0)}))}register(){T["a"].auth.post("/register",{at:this.authToken,dn:this.displayName,em:this.email}).then(e=>{this.$router.replace("/auth/validate")}).catch(e=>{Object($["d"])(e)})}};D=Object(E["b"])([Object(y["b"])({})],D);var V=D,G=V,j=i("2877"),P=Object(j["a"])(G,A,S,!1,null,null,null);t["default"]=P.exports},"0a36":function(e,t,i){"use strict";i.d(t,"b",(function(){return d})),i.d(t,"a",(function(){return u})),i.d(t,"d",(function(){return showError}));i("d9e2"),i("14d9");var a=i("f4e0"),n=i("8baa"),s=i("0613");function signIn(e){const t=n["a"].provider(e);
1t?(t.setClientId(s["b"].getters.queryData.serviceName),t.signIn()):console.log("auth provider "+e+" is not loaded")}const o={execute(e,t,i){switch(t){case u.TOAST:console.log(i);break;case u.CLOSE:break;case u.SIGNIN_GOOGLE:signIn("google");break;case u.SIGNIN_APPLE:signIn("apple");break;case u.SIGNIN_KAKAO:signIn("kakao");break;case u.SIGNIN_NAVER:signIn("naver");break;case u.SIGNIN_FACEBOOK:signIn("facebook");break;case u.SIGNIN_QR:signIn("qr");break;case u.POST_SIGNIN:n["a"].redirectAfterSignIn(!0);break;case u.SIGNOUT:break;default:console.log("action not supported")}}};var r=o,c=i("afbc");const l={OK:"OK",DONE:"DONE",ERROR:"ERROR",GOTO:"GOTO",REFRESH:"REFRESH",NOT_SUPPORTED:""},u={TOAST:"io.haii.ex/action/toast",CLOSE:"io.haii.ex/action/close",SIGNIN_GOOGLE:"io.haii.ex/action/signIn/google",SIGNIN_KAKAO:"io.haii.ex/action/signIn/kakao",SIGNIN_APPLE:"io.haii.ex/action/signIn/apple",SIGNIN_NAVER:"io.haii.ex/action/signIn/naver",SIGNIN_FACEBOOK:"io.haii.ex/action/signIn/facebook",SIGNIN_QR:"io.haii.ex/action/signIn/qr",POST_SIGNIN:"io.haii.ex/action/postSignIn",SIGNOUT:"io.haii.ex/action/signOut"},h=navigator.userAgent;let d=a["a"].WEB,p="haii.io",m="-",g=!1;if(!g){g=!0;const e=h.match(/haii.io\/(awv|awk)\/(\S+):(\S+)/),t=h.match("haii.hybrid;");e&&e.length>3&&("awv"==e[1]&&window.haii&&window.haii.execute?d=a["a"].ANDROID:"awk"==e[1]&&t&&t[0]?d=a["a"].WEB_IOS:"awk"==e[1]&&window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.haii?d=a["a"].IOS:console.log("cannot determine user agent type, assume it is web browser"),d!=a["a"].WEB&&(p=e[2],m=e[3]),console.log("client verification : "+d+" "+p+" version "+m))}class ExActionNotSupportedError extends Error{constructor(e){super(e+" is not supported"),this.name="ExActionNotSupportedError"}}const f=new Map;let v=0;function executeExAction(e,t){return new Promise((i,n)=>{const s=++v;f.set(s,{action:e,arg:t,resolve:i,reject:n}),d==a["a"].ANDROID&&window.haii&&window.haii.execute?window.haii.execute(s,e,JSON.stringify(t)):d==a["a"].IOS?window.webkit.messageHandlers.haii.postMessage({id:s,action:e,arg:t}):r.execute(s,e,t)})}function showError(e){e.isAxiosError?(e.response||e.request,executeExAction(u.TOAST,e.message)):executeExAction(u.TOAST,e.message)}function exActionCallback(e,t){const i=f.get(e);if(i){const errorHandler=e=>{i.reject?i.reject(e):showError(e.message)};if(void 0!==t&&t!=l.NOT_SUPPORTED)if(i.resolve){const e=t.split(":",2);switch(e[0]){case l.DONE:break;case l.OK:i.resolve(e.length>1?e[1]:void 0);break;case l.ERROR:errorHandler(new Error(e.length<2?"action failed":e[1]));break;case l.GOTO:case l.REFRESH:e.length<2?c["a"].go(0):c["a"].push(e[1]);break;default:errorHandler(new Error("cannot process action result = "+t));break}}else console.log("no resolver for action task #"+e);else d!=a["a"].WEB?r.execute(e,i.action,i.arg):errorHandler(new ExActionNotSupportedError(i.action))}else console.log("action task #"+e+" not found")}window.exBridgeCallback=exActionCallback;t["c"]=executeExAction},"1be4":function(e,t,i){"use strict";var a=i("d066");e.exports=a("document","documentElement")},"33d1":function(e,t,i){"use strict";var a=i("23e7"),n=i("7b0b"),s=i("07fa"),o=i("5926"),r=i("44d2");a({target:"Array",proto:!0},{at:function at(e){var t=n(this),i=s(t),a=o(e),r=a>=0?a:i+a;return r<0||r>=i?void 0:t[r]}}),r("at")},"37e8":function(e,t,i){"use strict";var a=i("83ab"),n=i("aed9"),s=i("9bf2"),o=i("825a"),r=i("fc6a"),c=i("df75");t.f=a&&!n?Object.defineProperties:function defineProperties(e,t){o(e);var i,a=r(t),n=c(t),l=n.length,u=0;while(l>u)s.f(e,i=n[u++],a[i]);return e}},"44d2":function(e,t,i){"use strict";var a=i("b622"),n=i("7c73"),s=i("9bf2").f,o=a("unscopables"),r=Array.prototype;void 0===r[o]&&s(r,o,{configurable:!0,value:n(null)}),e.exports=function(e){r[o][e]=!0}},"6ca7":function(e,t,i){},"7c73":function(e,t,i){"use strict";var a,n=i("825a"),s=i("37e8"),o=i("7839"),r=i("d012"),c=i("1be4"),l=i("cc12"),u=i("f772"),h=">",d="<",p="prototype",m="script",g=u("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return d+m+h+e+d+"/"+m+h},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e,t=l("iframe"),i="java"+m+":";return t.style.display="none",c.appendChild(t),t.src=String(i),e=t.contentWindow.document,e.open(),e.write(scriptTag("document.F=Object")),e.close(),e.F},NullProtoObject=function(){try{a=new ActiveXObject("htmlfile")}catch(t){}NullProtoObject="undefined"!=typeof document?document.domain&&a?NullProtoObjectViaActiveX(a):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(a);var e=o.length;while(e--)delete NullProtoObject[p][o[e]];return NullProtoObject()};r[g]=!0,e.exports=Object.create||function create(e,t){var i;return null!==e?(EmptyConstructor[p]=n(e),i=new EmptyConstructor,EmptyConstructor[p]=null,i[g]=e):i=NullProtoObject(),void 0===t?i:s.f(i,t)}},cfdf:function(e,t,i){"use strict";var a=i("bc3a"),n=i.n(a);const s=n.a.create({baseURL:"https://api.haii.io",withCredentials:!0}),o=n.a.create({baseURL:"https://auth.haii.io/",withCredentials:!0});t["a"]={gw:s,auth:o}},df75:function(e,t,i){"use strict";var a=i("ca84"),n=i("7839");e.exports=Object.keys||function keys(e){return a(e,n)}},ea98:function(e,t,i){"use strict";var a=i("23e7"),n=i("e330"),s=i("1d80"),o=i("5926"),r=i("577e"),c=i("d039"),l=n("".charAt),u=c((function(){return"\ud842"!=="ð ®·".at(-2)}));a({target:"String",proto:!0,forced:u},{at:function at(e){var t=r(s(this)),i=t.length,a=o(e),n=a>=0?a:i+a;return n<0||n>=i?void 0:l(t,n)}})},ec29:function(e,t,i){}}]);
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.