PageSourceSearch

https://www.chulabook.com/_next/static/chunks/pages/ecode/login/register-fill-info-ff58882467db5224f74b.js

js chulabook.com collected 2026-09-24 09:36:33 UTC 5,357 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[107],{LGTY:function(e,a,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ecode/login/register-fill-info",function(){return l("kknH")}])},kknH:function(e,a,l){"use strict";l.r(a);var t=l("TSYQ"),n=l.n(t),i=l("q1tI"),s=l.n(i),o=l("CafY"),c=l("gdJV"),r=l("yzAy"),m=l("I8qh"),d=l("4JyM"),u=l("s02U"),p=s.a.createElement;a.default=Object(d.withTranslation)("mobile_register")((function(e){var a=Object(i.useState)(!1),l=(a[0],a[1],Object(i.useContext)(c.b)),t=(l.user,l.handleCart,l.fetchUser),s=Object(i.useState)(!1),f=(s[0],s[1],Object(i.useState)(!1)),v=f[0],b=f[1],N=e.t;Object(i.useEffect)((function(){var e=localStorage.getItem("email");document.getElementById("email").value=e}),[]);var h=Object(i.useState)(null),g=h[0],_=h[1];return Object(i.useEffect)((function(){var e,a=null===(e=localStorage)||void 0===e?void 0:e.getItem("user");_(JSON.parse(a))}),[]),p(o.a,{className:"mb-5",title:"\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e1a\u0e31\u0e0d\u0e0a\u0e35 (register) | \u0e28\u0e39\u0e19\u0e22\u0e4c\u0e2b\u0e19\u0e31\u0e07\u0e2a\u0e37\u0e2d\u0e41\u0e2b\u0e48\u0e07\u0e08\u0e38\u0e2c\u0e32\u0e25\u0e07\u0e01\u0e23\u0e13\u0e4c\u0e21\u0e2b\u0e32\u0e27\u0e34\u0e17\u0e22\u0e32\u0e25\u0e31\u0e22"},p("div",{className:"cancel-product "},p("div",{className:"container"},p("form",{onSubmit:function(e){var a=new FormData(e.target);e.preventDefault();var l=u.a.toJson(a);r.a.register(l).then((function(e){var a,l=e.data;m.a.setToken(l.token),m.a.setProfile(l.user),null===(a=localStorage)||void 0===a||a.removeItem("user"),_(),t(),localStorage.removeItem("email"),d.Router.push("/")})).catch((function(e){console.log(e.response)}))}},p("input",{type:"hidden",name:"social_id",value:null===g||void 0===g?void 0:g.social_id}),p("input",{type:"hidden",name:"picture",value:null===g||void 0===g?void 0:g.picture}),p("input",{type:"hidden",name:"provider",value:null===g||void 0===g?void 0:g.provider}),"line"==(null===g||void 0===g?void 0:g.provider)?p("input",{type:"hidden",name:"line_code",value:null===g||void 0===g?void 0:g.access_token}):p("input",{type:"hidden",name:"access_token",value:null===g||void 0===g?void 0:g.access_token}),p("div",{className:"w-100 clearfix"},p("div",{onClick:function(){return b(!v)}},p("img",{className:"img-fluid my-auto on-left",src:"/mobile/image/icon/icon-back.svg"})),p("h2",{className:"text-black "},"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e01\u0e23\u0e2d\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 ",p("br",null)," \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e25\u0e07\u0e17\u0e30\u0e40\u0e1a\u0e35\u0e22\u0e19"),p("div",{className:"info-creditcard-100 mt-5 mb-1"},p("input",{className:"effect-16",name:"email",id:"email",type:"text",placeholder:"",required:!0,defaultValue:null===g||void 0===g?void 0:g.email}),p("label",null,N("mobile_translations:email"),p("span",null,"*")),p("span",{className:"focus-border"})),p("div",{className:"info-creditcard-100 mt-5 mb-1"},p("input",{className:"effect-16",name:"phone",id:"phone",type:"text",placeholder:"",required:!0,defaultValue:null===g||void 0===g?void 0:g.phone}),p("label",null,N("mobile_translations:phone_number"),p("span",null,"*")),p("span",{className:"focus-border"})),p("div",{className:"input-effect-50 mr-for-50 mt-5"},p("input",{className:"effect-16",type:"text",name:"firstname",placeholder:"",defaultValue:null===g||void 0===g?void 0:g.firstname,required:!0}),p("label",null,N("mobile_translations:name"),p("span",null,"*")),p("span",{className:"focus-border"})),p("div",{className:"input-effect-50 mt-5"},p("input",{className:"effect-16",type:"text",name:"lastname",placeholder:"",defaultValue:null===g||void 0===g?void 0:g.lastname,required:!0}),p("label",null,N("mobile_translations:surname"),p("span",null,"*")),p("span",{className:"focus-border"})),p("div",{className:"info-creditcard-100 mt-5 mb-1"},p("input",{className:"effect-16",name:"password",type:"password",minLength:"6",maxLength:"16",placeholder:"",required:!0}),p("label",null,N("password"),p("span",null,"*")),p("span",{className:"focus-border"})),p("div",{className:"info-creditcard-100 mt-5 mb-1"},p("input",{className:"select-box-address has-content effect-16",name:"date",type:"date",placeholder:"",required:!0}),p("label",null,N("mobile_translations:birthday"),p("span",null,"*")),p("span",{className:"focus-border"}))),p("div",{className:"mt-5"},p("button",{type:"submit",className:"btn btn-pink-submit h-40px mb-3"},p("h4",{className:"text-white m-auto "},N("mobile_translations:confirm")))),p("div",{className:"d-flex justify-content-between"},p("div",{className:"d-flex"},p("p",{className:"text-black mr-2"},N("already_account"),"? "),p(d.Link,{href:"/login"}
1,p("a",null,p("p",{className:"text-pink"},N("login"))))))))),p("div",{className:n()("modals-confirm-cancel-area",{show:v})},p("div",{className:"modals-confirm-cancel"},p("div",{className:"d-flex"},p("img",{className:"img-fluid m-auto",src:"/mobile/image/icon/Attention.svg"})),p("p",{className:"text-black text-center mt-2"},N("want_cancel")),p("div",{className:"btn-modals-confirm-cancel-area"},p("h4",{className:"m-auto text-pink",onClick:function(){return b(!1)}},N("mobile_ConfirmDialog:cancel")),p("div",{className:"btn-line-cancel"}),p(d.Link,{href:"/login"},p("h4",{className:"m-auto text-pink"},N("mobile_ConfirmDialog:save")))))))}))}},[["LGTY",0,2,1,3,5,4,6,7,8,9,10]]]);

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.