1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[108],{QmkS:function(e,t,a){"use strict";a.r(t);var r=a("ODXe"),n=a("q1tI"),o=a.n(n),i=a("JeC3"),s=a("gdJV"),c=a("I8qh"),l=a("4JyM"),u=a("s02U"),f=a("yzAy"),d=o.a.createElement,p=Object(l.withTranslation)("login")((function(e){var t=e.t,a=e.headleLogin,r=e.imgPassword,n=e.handlePassword,i=e.check,s=e.Toast,c=e.show,u=e.linkPath;return d(o.a.Fragment,null,d("div",{className:"container"},d("div",{className:"row mt-5 mb-4"},d("div",{className:"col-12"},d("div",{className:"text-center"},d("h3",null,t("welcome"))))),d("div",{className:"row justify-content-center"},d("div",{className:"col-xxl-10 col-xl-10 col-lg-10 col-md-12 col-12 bg bg-white"},d("div",{className:"row mx-0 justify-content-center"},d("div",{className:"col-xxl-10 col-xl-8 col-lg-10 col-md-10 col-12 px-0 mx-0"},d("div",{className:"row justify-content-center mx-0"},d("div",{className:"col-xxl-6 col-12"},d("form",{id:"contact-form",onSubmit:a},d("div",{className:"form-group"},d("label",null,t("label_email_or_phone"),d("span",{className:"text-pink"},"*")),d("input",{type:"text",id:"login",className:"form-control",name:"username",placeholder:t("placeholder_email_or_phone"),required:!0})),d("div",{className:"form-group"},d("label",null,t("label_password"),d("span",{className:"text-pink"},"*")),d("div",{className:"position-relative"},d("input",{type:"password",id:"password",className:"form-control",name:"password",placeholder:t("character_passwordfill"),title:"\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35\u0e17\u0e31\u0e49\u0e07\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02 \u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e29\u0e23\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e43\u0e2b\u0e0d\u0e48 \u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e40\u0e25\u0e47\u0e01 \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e19\u0e49\u0e2d\u0e22 6 \u0e15\u0e31\u0e27 \u0e41\u0e25\u0e30 \u0e2a\u0e39\u0e07\u0e2a\u0e38\u0e14 16 \u0e15\u0e31\u0e27",minLength:"6",maxLength:"16",required:!0}),d("label",{className:"font-14"},t("placeholder_password")),d("img",{src:"".concat(f.a.frontend_url,"/icon/").concat(r),id:"toggle-password",alt:"",className:"toggle-password",onClick:n}))),i&&d("div",{className:"form-group mb-0 font-14"},d("span",{className:"text-danger"},i)),d("input",{type:"submit",name:"form-login",id:"form-login",className:"d-none",value:"Log In"}),d("div",{className:"form-group mt-4"},d("div",null,d("button",{className:"btn btn-primary w-100",type:"submit"},t("btn_login"))))),d("div",{className:"form-group"},d("div",{className:"float-left"},d("label",null,t("new_member"),d(l.Link,{href:{pathname:"/ecode/register_ecode",query:{name:u.name}}},d("a",{className:"text-success"}," ",t("register")," ")),t("here"))),d("div",{className:"float-right"},d(l.Link,{href:"/user/forgot-password",as:"/user/forgot-password"},d("a",null,t("forgot_password")))))))))))),d("div",{className:"end-page"}),d(s,{onClose:function(){return setShow(!1)},show:c,delay:4e3,autohide:!0},d(s.Body,null,d("i",{className:"fas fa-exclamation-triangle"}),d("p",{className:"mb-0 text-danger"},t("facebook_fail")),d("p",{className:"mb-0"},t("facebook_text")))))})),m=a("nOHt"),h=a.n(m),v=(a("3HZZ"),a("Ux4D"),o.a.createElement),g=function(e){var t=Object(n.useState)(!1),a=t[0],r=t[1],i=Object(n.useContext)(s.b),u=(i.user,i.handleCart,i.fetchUser),f=e.t,d=Object(m.useRouter)().query.redirect;return v(o.a.Fragment,null,v("div",{className:"cancel-product "},v(l.Link,{href:"/"},v("a",{className:"btn-close-left"})),v("div",{className:"container"},v("h2",{className:"text-black "},f("mobile_login:welcome")),v("form",{id:"contact-form",onSubmit:function(e){var t=new FormData(e.target);e.preventDefault(),c.a.login(t,(function(e,t){e?(u(),d?window.location=d:h.a.push("/")):console.log(t)}))}},v("div",{className:"information-list-link border-0"},v("div",{className:"input-for-edit pr-2"},v("input",{type:"text",className:"input_mobile",name:"username",placeholder:"".concat(f("mobile_translations:phone_number")," / ").concat(f("mobile_translations:email")),required:!0}),v("span",{className:"input-border"}))),v("div",{className:"information-list-link border-0"},v("div",{className:"input-for-edit pr-2"},v("input",{type:a?"text":"password",minLength:"6",name:"password",className:"input_mobile",placeholder:f("mobile_register:password"),required:!0}),v("i",{className:a?"fas fa-eye fa-flip-horizontal text-gray my-auto":"fas fa-eye-slash fa-flip-horizontal text-pink my-auto",onClick:function(){return r(!a)}}),v("span",{className:"input-border"}))),v("button",{className:"btn btn-pink-submit h-40px my-3",type:"submit"},v("h4",{className:"text-white m-auto "},f("mobile_login:login")))),v("div",{className:"d-flex justify-content-between"},v("div",{className:"d-flex"},v("p",{className:"text-black mr-2"},f("mobile_login:not_account")),v(l.Link,{href:"/ecode/register_ec
1ode"},v("a",null,v("p",{className:"text-pink"},f("mobile_login:register"))))),v(l.Link,{href:"/user/forgot-password"},v("a",null,v("p",{className:"text-red"},f("mobile_login:forgot_password"),"?")))))))},y=a("pAy3"),w=a("9Pyk"),b=(a("dtb4"),o.a.createElement),x=Object(n.memo)((function(e){var t=Object(n.useContext)(s.b).fetchUser,a=Object(n.useState)(!1),l=a[0],f=a[1],d=e.t,h=(e.isModal,Object(y.a)(992)),v=Object(m.useRouter)().query,x=function(a){var r=u.a.toJson(new FormData(a.target));a.preventDefault(),c.a.login(r,(function(a,r){a?(t(),"modal"==e.loginBy?e.closeModal():window.location.replace(v.name)):(r.response||f("\u0e2d\u0e35\u0e40\u0e21\u0e25 \u0e2b\u0e23\u0e37\u0e2d \u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19 \u0e44\u0e21\u0e48\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07"),1001!=r.response.data.code&&1003!=r.response.data.code||f("\u0e2d\u0e35\u0e40\u0e21\u0e25 \u0e2b\u0e23\u0e37\u0e2d \u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19 \u0e44\u0e21\u0e48\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07"),console.log(r))}))},N=o.a.useState(["icon-hide-password.svg"]),_=Object(r.a)(N,2),E=_[0],R=_[1],k=function(){var e=document.getElementById("password");"password"===e.type?(e.type="text",R("icon-show-password.svg")):(e.type="password",R("icon-hide-password.svg"))},P=Object(n.useState)(!1),O=P[0];P[1];return b(w.a,null,h?b(g,{t:d,headleLogin:x,imgPassword:E,handlePassword:k,check:l,Toast:i.a,show:O}):b(p,{t:d,headleLogin:x,imgPassword:E,handlePassword:k,check:l,Toast:i.a,show:O,linkPath:v}))}));t.default=Object(l.withTranslation)("login")(x)},"W0+a":function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ecode/login_ecode",function(){return a("QmkS")}])},dtb4:function(e,t,a){"use strict";t.__esModule=!0,t.default=t.prepareDestination=t.route=void 0;var r,n=a("QmWs"),o=a("zOyy");const i=(0,((r=a("uDRR"))&&r.__esModule?r:{default:r}).default)();t.route=i;const s=new Set(["rewrite","redirect","header"]);function c(e,t){return t.replace(e,"")||"/"}t.prepareDestination=(e,t,a,r,i)=>{const s=(0,n.parse)(e,!0),c=s.query;let l,u=(0,o.compile)(`${s.pathname}${s.hash||""}`,{validate:!1});for(const[n,p]of Object.entries(c)){let e=Array.isArray(p)?p[0]:p;if(e){e=`/${e}`,e=(0,o.compile)(e,{validate:!1})(t).substr(1)}c[n]=e}if(r)for(const[n,o]of Object.entries(t))n in c||(c[n]=o);const f=e.startsWith("/")&&i;try{l=`${f?i:""}${encodeURI(u(t))}`;const[e,a]=l.split("#");s.pathname=e,s.hash=`${a?"#":""}${a||""}`,s.path=`${e}${s.search}`,delete s.search}catch(d){if(d.message.match(/Expected .*? to not repeat, but got an array/))throw new Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://err.sh/vercel/next.js/invalid-multi-match");throw d}return s.query={...a,...s.query},{newUrl:l,parsedDestination:s}};t.default=class{constructor({basePath:e="",headers:t=[],fsRoutes:a=[],rewrites:r=[],redirects:n=[],catchAllRoute:o,dynamicRoutes:i=[],pageChecker:s,useFileSystemPublicRoutes:c}){this.basePath=void 0,this.headers=void 0,this.fsRoutes=void 0,this.rewrites=void 0,this.redirects=void 0,this.catchAllRoute=void 0,this.pageChecker=void 0,this.dynamicRoutes=void 0,this.useFileSystemPublicRoutes=void 0,this.basePath=e,this.headers=t,this.fsRoutes=a,this.rewrites=r,this.redirects=n,this.pageChecker=s,this.catchAllRoute=o,this.dynamicRoutes=i,this.useFileSystemPublicRoutes=c}setDynamicRoutes(e=[]){this.dynamicRoutes=e}addFsRoute(e){this.fsRoutes.unshift(e)}async execute(e,t,a){const r={},n=async e=>{if(r[e])return r[e];const t=this.pageChecker(e);return r[e]=t,t};let o=a;const l=[...this.headers,...this.redirects,...this.fsRoutes,...this.useFileSystemPublicRoutes?[{type:"route",name:"page checker",requireBasePath:!1,match:i("/:path*"),fn:async(e,t,a,r)=>{const{pathname:o}=r;return o&&await n(o)?this.catchAllRoute.fn(e,t,a,r):{finished:!1}}}]:[],...this.rewrites,...this.useFileSystemPublicRoutes?[this.catchAllRoute]:[]],u=!this.basePath||e._nextHadBasePath;for(const i of l){let a=o.pathname;const r=a,l=!1!==i.requireBasePath,f=s.has(i.type);f||(a=c(this.basePath,a));const d=i.match(a);if(d){if(!f){if(!u&&!e._nextDidRewrite){if(l)return!1;continue}o.pathname=a}const s=await i.fn(e,t,d,o);if(s.finished)return!0;
1if(f||(o.pathname=r),s.pathname&&(o.pathname=s.pathname),s.query&&(o.query={...o.query,...s.query}),!0===i.check){const a=o.pathname,r=c(this.basePath,a);for(const n of this.fsRoutes){const i=n.match(r);if(i){if(o.pathname=r,(await n.fn(e,t,i,o)).finished)return!0;o.pathname=a}}let i=await n(r);if(!i)for(const e of this.dynamicRoutes)e.match(r)&&(i=!0);if(i){o.pathname=r;const a=this.catchAllRoute.match(o.pathname);return await this.catchAllRoute.fn(e,t,a,o),!0}}}}return!1}}},uDRR:function(e,t,a){"use strict";t.__esModule=!0,t.pathToRegexp=t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=n();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}a.default=e,t&&t.set(e,a);return a}(a("zOyy"));function n(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return n=function(){return e},e}t.pathToRegexp=r;function o(e){try{return decodeURIComponent(e)}catch(t){const e=new Error("failed to decode param");throw e.code="DECODE_FAILED",e}}t.default=(e=!1)=>t=>{const a=[],n={sensitive:!1,delimiter:"/",...e?{strict:!0}:void 0,decode:o},i=r.pathToRegexp(t,a,n),s=r.regexpToFunction(i,a,n);return(t,r)=>{const n=null!=t&&s(t);if(!n)return!1;if(e)for(const e of a)"number"===typeof e.name&&delete n.params[e.name];return{...r,...n.params}}}},zOyy:function(e,t,a){"use strict";function r(e,t){void 0===t&&(t={});for(var a=function(e){for(var t=[],a=0;a<e.length;){var r=e[a];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:a,value:e[a++]});else{var n=1,o="";if("?"===e[s=a+1])throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<e.length;
1)if("\\"!==e[s]){if(")"===e[s]){if(0===--n){s++;break}}else if("("===e[s]&&(n++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at "+s);o+=e[s++]}else o+=e[s++]+e[s++];if(n)throw new TypeError("Unbalanced pattern at "+a);if(!o)throw new TypeError("Missing pattern at "+a);t.push({type:"PATTERN",index:a,value:o}),a=s}else{for(var i="",s=a+1;s<e.length;){var c=e.charCodeAt(s);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;i+=e[s++]}if(!i)throw new TypeError("Missing parameter name at "+a);t.push({type:"NAME",index:a,value:i}),a=s}else t.push({type:"CLOSE",index:a,value:e[a++]});else t.push({type:"OPEN",index:a,value:e[a++]});else t.push({type:"ESCAPED_CHAR",index:a++,value:e[a++]});else t.push({type:"MODIFIER",index:a,value:e[a++]})}return t.push({type:"END",index:a,value:""}),t}(e),r=t.prefixes,n=void 0===r?"./":r,o="[^"+i(t.delimiter||"/#?")+"]+?",s=[],c=0,l=0,u="",f=function(e){if(l<a.length&&a[l].type===e)return a[l++].value},d=function(e){var t=f(e);if(void 0!==t)return t;var r=a[l],n=r.type,o=r.index;throw new TypeError("Unexpected "+n+" at "+o+", expected "+e)},p=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};l<a.length;){var m=f("CHAR"),h=f("NAME"),v=f("PATTERN");if(h||v){var g=m||"";-1===n.indexOf(g)&&(u+=g,g=""),u&&(s.push(u),u=""),s.push({name:h||c++,prefix:g,suffix:"",pattern:v||o,modifier:f("MODIFIER")||""})}else{var y=m||f("ESCAPED_CHAR");if(y)u+=y;else if(u&&(s.push(u),u=""),f("OPEN")){g=p();var w=f("NAME")||"",b=f("PATTERN")||"",x=p();d("CLOSE"),s.push({name:w||(b?c++:""),pattern:w&&!b?o:b,prefix:g,suffix:x,modifier:f("MODIFIER")||""})}else d("END")}}return s}function n(e,t){void 0===t&&(t={});var a=s(t),r=t.encode,n=void 0===r?function(e){return e}:r,o=t.validate,i=void 0===o||o,c=e.map((function(e){if("object"===typeof e)return new RegExp("^(?:"+e.pattern+")$",a)}));return function(t){for(var a="",r=0;r<e.length;r++){var o=e[r];if("string"!==typeof o){var s=t?t[o.name]:void 0,l="?"===o.modifier||"*"===o.modifier,u="*"===o.modifier||"+"===o.modifier;if(Array.isArray(s)){if(!u)throw new TypeError('Expected "'+o.name+'" to not repeat, but got an array');if(0===s.length){if(l)continue;throw new TypeError('Expected "'+o.name+'" to not be empty')}for(var f=0;f<s.length;f++){var d=n(s[f],o);if(i&&!c[r].test(d))throw new TypeError('Expected all "'+o.name+'" to match "'+o.pattern+'", but got "'+d+'"');a+=o.prefix+d+o.suffix}}else if("string"!==typeof s&&"number"!==typeof s){if(!l){var p=u?"an array":"a string";throw new TypeError('Expected "'+o.name+'" to be '+p)}}else{d=n(String(s),o);if(i&&!c[r].test(d))throw new TypeError('Expected "'+o.name+'" to match "'+o.pattern+'", but got "'+d+'"');a+=o.prefix+d+o.suffix}}else a+=o}return a}}function o(e,t,a){void 0===a&&(a={});var r=a.decode,n=void 0===r?function(e){return e}:r;return function(a){var r=e.exec(a);if(!r)return!1;for(var o=r[0],i=r.index,s=Object.create(null),c=function(e){if(void 0===r[e])return"continue";var a=t[e-1];"*"===a.modifier||"+"===a.modifier?s[a.name]=r[e].split(a.prefix+a.suffix).map((function(e){return n(e,a)})):s[a.name]=n(r[e],a)},l=1;l<r.length;l++)c(l);return{path:o,index:i,params:s}}}function i(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function s(e){return e&&e.sensitive?"":"i"}function c(e,t,a){void 0===a&&(a={});for(var r=a.strict,n=void 0!==r&&r,o=a.start,c=void 0===o||o,l=a.end,u=void 0===l||l,f=a.encode,d=void 0===f?function(e){return e}:f,p="["+i(a.endsWith||"")+"]|$",m="["+i(a.delimiter||"/#?")+"]",h=c?"^":"",v=0,g=e;v<g.length;v++){var y=g[v];if("string"===typeof y)h+=i(d(y));else{var w=i(d(y.prefix)),b=i(d(y.suffix));if(y.pattern)if(t&&t.push(y),w||b)if("+"===y.modifier||"*"===y.modifier){var x="*"===y.modifier?"?":"";h+="(?:"+w+"((?:"+y.pattern+")(?:"+b+w+"(?:"+y.pattern+"))*)"+b+")"+x}else h+="(?:"+w+"("+y.pattern+")"+b+")"+y.modifier;else h+="("+y.pattern+")"+y.modifier;else h+="(?:"+w+b+")"+y.modifier}}if(u)n||(h+=m+"?"),h+=a.endsWith?"(?="+p+")":"$";else{var N=e[e.length-1],_="string"===typeof N?m.indexOf(N[N.length-1])>-1:void 0===N;n||(h+="(?:"+m+"(?="+p+"))?"),_||(h+="(?="+m+"|"+p+")")}return new RegExp(h,s(a))}function l(e,t,a){return e instanceof RegExp?function(e,t){if(!t)return e;var a=e.source.match(/\((?!\?)/g);if(a)for(var r=0;r<a.length;r++)t.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return e}(e,t):Array.isArray(e)?function(e,t,a){var r=e.map((function(e){return l(e,t,a).source}));return new RegExp("(?:"+r.join("|")+")",s(a))}(e,t,a):function(e,t,a){return c(r(e,a),t,a)}(e,t,a)}
1Object.defineProperty(t,"__esModule",{value:!0}),t.parse=r,t.compile=function(e,t){return n(r(e,t),t)},t.tokensToFunction=n,t.match=function(e,t){var a=[];return o(l(e,a,t),a,t)},t.regexpToFunction=o,t.tokensToRegexp=c,t.pathToRegexp=l}},[["W0+a",0,2,1,3,5,4,6,7,9,16,30]]]);
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.