1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6363],{54290:function(e,t,n){var s=n(6557);e.exports=function(e){return"function"==typeof e?e:s}},98913:function(e,t,n){var s=n(22545),i=n(54290),r=n(40554),l=4294967295,a=Math.min;e.exports=function(e,t){if((e=r(e))<1||e>9007199254740991)return[];var n=l,c=a(e,l);t=i(t),e-=l;for(var o=s(c,t);++n<e;)t(n);return o}},3670:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/age-verify",function(){return n(77785)}])},47344:function(e,t,n){"use strict";var s=n(85893),i=n(41609),r=n.n(i),l=n(45697),a=n.n(l),c=n(9008),o=n.n(c),d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=e.description,i=e.url,l=e.image,a=e.options,c=function(){return r()(a)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("meta",{property:"og:site_name",content:"R50 Time"}),(0,s.jsx)("meta",{property:"og:locale",content:"vi_VN"}),(0,s.jsx)("meta",{property:"og:locale:alternate",content:"en_US"}),(0,s.jsx)("meta",{property:"og:locale:alternate",content:"ja_JP"}),(0,s.jsx)("meta",{property:"og:locale:alternate",content:"zh_TW"})]}):a};return(0,s.jsxs)(o(),{children:[(0,s.jsx)("title",{children:t}),n&&(0,s.jsx)("meta",{name:"description",content:n}),l&&(0,s.jsx)("meta",{property:"og:image",content:l}),i&&(0,s.jsx)("meta",{property:"og:url",content:i}),c()]})};d.propTypes={title:a().string.isRequired,description:a().string,image:a().string,url:a().string,options:a().node},t.Z=d},16198:function(e,t,n){"use strict";n.d(t,{h4:function(){return s.Z},W_:function(){return p},ow:function(){return _}});var s=n(13596),i=n(67573),r=n(85893),l=n(24278),a=n(80931),c=n(94184),o=n.n(c),d=n(72439),x=n(11163),u=n(79352),f=n(63165),m=n(50682),h=n.n(m),p=function(){var e=(0,l.Yp)(),t=e.conversationUnread,n=e.unreadFootprint,s=e.notiUnread,c=Number(s+n),m=t>99?"99+":t,p=c>99?"99+":c,v=(0,l.po)().pathProfileMe,j=(0,d.Z)(),g=(0,x.useRouter)(),_=[{route:f.Z5.HOME,title:j("bottom_tabs.home"),icon:function(e){return e?(0,r.jsx)(u.FXV,{}):(0,r.jsx)(u.eT8,{})}},{route:f.Z5.CONVERSATION.LIST,title:j("bottom_tabs.message"),icon:function(e){return e?(0,r.jsx)(u.WhK,{}):(0,r.jsx)(u.Fyy,{})},badge:t>0&&m},{route:f.Z5.ROOM.LIST,title:j("bottom_tabs.discuss"),icon:function(e){return e?(0,r.jsx)(u.IGw,{}):(0,r.jsx)(u.pbY,{})}},{route:v,title:j("bottom_tabs.profile"),icon:function(e){return e?(0,r.jsx)(u.EZi,{}):(0,r.jsx)(u.m7f,{})},badge:c>0&&p}];return(0,r.jsx)(a.nj,{activeKey:g.pathname,onChange:function(e){return g.replace(e)},className:o()("h-[60px] px-5",h().navigation),safeArea:!0,children:_.map((function(e){var t=g.asPath===e.route||g.pathname===e.route||g.asPath.substring(1).split("/")[0]===e.route.substring(1).split("/")[0];return(0,r.jsx)(a.nj.Item,{icon:e.icon,title:e.title,badge:e.badge,className:o()("relative !py-2.5",(0,i.Z)({},h().activeTab,t))},e.route)}))})},v=n(44605),j=n(52241),g=n.n(j),_=function(e){var t=e.children;return(0,r.jsx)("div",{className:(0,v.cn)("fixed bottom-0 left-1/2 z-50 mx-auto w-full max-w-[440px] -translate-x-1/2 bg-white px-3 pb-3 pt-2 shadow-md",g().shadow),children:t})}},626:function(e,t,n){"use strict";var s=n(14251),i=n(44747),r=n(85893),l=n(80931),a=n(45697),c=n.n(a),o=n(79352),d=n(64045),x=function(e){var t=e.children,n=e.visible,a=e.onClose,c=(e.onOpen,e.image),x=(0,i.Z)(e,["children","visible","onClose","onOpen","image"]);return(0,r.jsxs)(r.Fragment,{children:[t,(0,r.jsxs)(d.Z,{visible:n,onClose:a,children:[(0,r.jsx)("div",{className:"absolute top-0 right-0 p-4",children:(0,r.jsx)(o.tgW,{color:"#fff",size:32,onClick:a})}),(0,r.jsx)(l.OO,(0,s.Z)({visible:n,onClose:a,image:c},x))]})]})};x.propTypes={children:c().any,visible:c().bool,onClose:c().func,onOpen:c().func,image:c().string},t.Z=x},59563:function(e,t,n){"use strict";var s=n(85893),i=n(94184),r=n.n(i),l=n(45697),a=n.n(l),c=n(67294),o=n(16198),d=n(3683),x=(0,c.forwardRef)((function(e,t){var n=e.children,i=e.title,l=e.onBack,a=e.onMore,c=e.leftHeader,x=e.rightHeader,u=e.mainCls,f=e.showFooter,m=void 0===f||f;return(0,s.jsx)(d.Z,{children:(0,s.jsxs)(s.Fragment,{children:[i&&(0,s.jsx)(o.h4,{onBack:l,onMore:a,title:i,leftHeader:c,rightHeader:x}),(0,s.jsx)("main",{ref:t,className:r()("relative flex flex-1 flex-col overflow-y-auto overscroll-y-contain",u),children:n}),m&&(0,s.jsx)("footer",{className:"h-[60px] w-full flex-shrink-0 shadow-md",children:(0,s.jsx)(o.W_,{})})]})})}));x.propTypes={onBack:a().string,children:a().node,title:a().any,leftHeader:a().any,rightHeader:a().any,onMore:a().func,mainCls:a().string,app:a().any},t.Z=x},77785:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return Y},default:function(){return J}});var s=n(85893),i=n(72439),r=n(11163),l=n(9473),a=n(47344),c=n(13596),o=n(63165),d=n(11849),x=n(59563),u=n(49193),f=n(80969),m=n(53473),h=n(27354),p=n(80931),v=n(27484),j=n.n(v),g=n(50308),_=n.n(g),b=n(98913),y=n.n(b),N=n(25675),w=n.n(N),k=n(67294),C=n(8193),Z=n(24278),O=n(27564),P=n(51278),R=n(16198),E=n(37640),M=n(48163),T=n(34727),F=n(48732),S=n(70655),I=n(79352),A=n(626),L=n(42462),z=function(){return(0,s.jsx)("div",{className:"flex-center h-12 w-12 cursor-pointer rounded-full bg-[#e5e5e5]",children:(0,s.jsx)(w(),{src:"/images/common/camera.png",width:30,height:30,alt:"camera"})})},H=function(e){var t=e.onClick;return(0,s.jsx)(h.sh,{onPress:t,children:(0,s.jsx)("div",{className:"flex-center h-12 w-12 cursor-pointer rounded-full bg-[#e5e5e5]",children:(0,s.jsx)(w(),{src:"/images/common/eye.png",width:30,height:30,alt:"camera"})})})},V=function(e){var t=e.src;return(0,s.jsx)("img",{src:t,className:"absolute h-full w-full object-cover",alt:""})},q=function(){var e=(0,i.Z)();return(0,s.jsxs)("div",{className:"mt-4 w-full",children:[(0,s.jsx)("span",{className:"font-bold",children:e("age_verify.example")}),(0,s.jsx)("div",{className:"flex-center relative mt-2 h-[120px]",children:(0,s.jsx)(w(),{src:"/images/example.png",alt:"selfie",layout:"fill",objectFit:"contain"})})]})},D=function(){var e=(0,k.useState)(null),t=e[0],n=e[1],s=function(){var e=(0,T.Z)((function(e){return(0,S.__generator)(this,(function(t){switch(t.label){case 0:return e&&e[0]?[4,(0,M.Ax)(e[0])]:[3,2];case 1:return n.apply(void 0,[t.sent()]),[3,3];case 2:e?(0,F.Z)(e,Blob)&&n(URL.createObjectURL(e)):n(null),t.label=3;case 3:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}();return(0,k.useEffect)((function(){return function(){t&&URL.revokeObjectURL(t)}}),[t]),[t,s]};var U=function(e){var t=e.visible,n=e.onClose,r=e.birthday,l=e.onConfirm,a=(0,i.Z)(),c=(0,E.HI)().showConfirm,o=(0,k.useState)(null),d=o[0],x=o[1],u=(0,f.Z)(D(),2),v=u[0],g=u[1],_=(0,k.useState)(null),b=_[0],y=_[1],N=(0,f.Z)(D(),2),w=N[0],C=N[1];(0,k.useEffect)((function(){d&&g(d)}),[d]),(0,k.useEffect)((function(){b&&C(b)}),[b]);var Z=(0,f.Z)((0,E.yT)(A.Z,{}),2),O=Z[0],M=Z[1],F=M.onOpen,U=M.target,W=function(){var e=(0,i.Z)(),t=(0,k.useState)(null),n=t[0],r=t[1],l=function(){var e=(0,T.Z)((function(){return(0,S.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,navigator.mediaDevices.getUserMedia({video:!0})];case 1:return e.sent(),r(!0),[3,3];case 2:return e.sent(),r(!1),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return{hasPermission:n,onRequestPermission:function(){var t=p.u_.show({title:(0,s.jsx)("h3",{className:"px-1",children:e("verify_id.wants_access_to_the_camera")}),bodyStyle:{width:"270px",borderRadius:"12px"},closeOnMaskClick:!0,content:(0,s.jsxs)("div",{className:"-m-3",children:[(0,s.jsx)("div",{className:"p-4 text-center text-lg leading-6 tracking-[1px] text-sub-gray",children:e("verify_id.need_to_access_the_camera")}),(0,s.jsxs)("div",{className:"flex w-full divide-x divide-sub-gray border-t border-solid border-sub-gray",children:[(0,s.jsx)(h.sh,{onPress:function(){var e;null===(e=t.close)||void 0===e||e.call(t)},children:(0,s.jsx)("div",{className:"flex-center h-12 w-full cursor-pointer text-lg",children:e("verify_id.not_allowed")})}),(0,s.jsx)(h.sh,{onPress:function(){var e;l(),null===(e=t.close)||void 0===e||e.call(t)},children:(0,s.jsx)("div",{className:"flex-center h-12 w-full cursor-pointer text-lg font-bold text-primary",children:"OK"})})]})]})})}}}(),B=W.hasPermission,G=W.onRequestPermission,K=(0,f.Z)((0,L.Kq)(),2),Y=K[0],J=K[1],Q=(0,s.jsx)(h.sh,{onPress:n,children:(0,s.jsx)("div",{className:"-ml-4",children:(0,s.jsx)(I.tgW,{size:24,className:"text-sub"})})});return(0,k.useEffect)((function(){J===m.Q_.SUCCESS&&c({title:a("verify_id.submission_is_completed"),content:a("verify_id.verify_id_success"),confirmText:a("verify_id.acknowledge"),closeOnMaskClick:!1,onConfirm:l})}),[J]),(0,s.jsxs)(p.zd,{visible:t,children:[(0,s.jsxs)("section",{className:"h-screen w-full bg-white",children:[(0,s.jsx)(R.h4,{leftHeader:Q}),(0,s.jsx)("div",{className:"h-full w-full overflow-y-auto",children:(0,s.jsxs)("main",{className:"h-max px-4",children:[(0,s.jsxs)("div",{className:"flex flex-col items-center",children:[(0,s.jsx)("h3",{className:"font-bold",children:a("pick_image_verify_id.selfie_with_id")}),(0,s.jsx)(h.sh,{children:(0,s.jsxs)("div",{className:"flex-center border-[#e5e5e5e] relative mt-3 h-[209px] w-[167px] border-2 border-dashed bg-[#fafafa]",children:[(0,s.jsxs)("div",{className:"flex-center z-10 gap-4",children:[(0,s.jsx)(P.V1,{onChange:x,isAcceptRequest:B,onClick:G,children:(0,s.jsx)(z,{})}),v?(0,s.jsx)(H,{onClick:function(){return F(v)}}):null]}),v?(0,s.jsx)(V,{src:v}):null]})}),(0,s.jsx)(q,{type:"selfie"})]}),(0,s.jsxs)("div",{className:"mt-12 flex flex-col items-center",children:[(0,s.jsx)("h3",{className:"font-bold",children:a("pick_image_verify_id.take_id_photo")}),(0,s.jsx)(h.sh,{children:(0,s.jsxs)("div",{className:"flex-center border-[#e5e5e5e] relative mt-3 h-[161px] w-[293px] border-2 border-dashed bg-[#fafafa]",children:[(0,s.jsxs)("div",{className:"flex-center z-10 gap-4",children:[(0,s.jsx)(P.V1,{onChange:y,isAcceptRequest:B,onClick:G,children:(0,s.jsx)(z,{})}),w?(0,s.jsx)(H,{onClick:function(){return F(w)}}):null]}),w?(0,s.jsx)(V,{src:w}):null]})}),(0,s.jsx)("p",{className:"mt-4 text-sm font-bold",children:a("pick_image_verify_id.help_contact")}),(0,s.jsx)("p",{className:"text-sm font-bold",children:a("pick_image_verify_id.help_message")})]}),(0,s.jsx)("div",{className:"mb-32 mt-12 flex justify-center",children:(0,s.jsx)(P.zx,{className:"ml-1",onPress:function(){if(J!==m.Q_.LOADING){var e=new FormData;e.append("selfie",d[0]),e.append("driverLicense",b[0]),r&&e.append("birthday",j()(r).utc().toISOString()),Y(e)}},disabled:!d||!b,children:a("age_verify.propose")})})]})})]}),(0,s.jsx)(p.zd,{color:"black",visible:J===m.Q_.LOADING,children:(0,s.jsxs)("div",{className:"flex-center absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 transform flex-col gap-4",children:[(0,s.jsx)("div",{className:"text-black",children:(0,s.jsx)(P.yC,{})}),(0,s.jsx)("div",{className:"w-max whitespace-pre-wrap text-center text-lg font-bold text-white",children:a("verify_id.im_uploading_a_photo")})]})}),(0,s.jsx)(O,{image:U})]})},W=function(){var e=(0,i.Z)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"pt-8 pb-4 text-center text-2xl font-bold",children:e("verify_id.submission")}),(0,s.jsxs)("div",{className:"mx-6 rounded-lg bg-primary pt-4 pb-6 text-center font-bold leading-[22px] text-white",children:[(0,s.jsx)("div",{className:"mb-2",children:e("verify_id.check_age")}),(0,s.jsx)("div",{className:"mb-4",children:e("verify_id.only_folowing")}),(0,s.jsx)("div",{className:"space-y-3",children:m.Cq.map((function(t){return(0,s.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-4 pl-10 md:justify-center",children:[(0,s.jsx)("div",{className:"flex-shrink-0",children:(0,s.jsx)(w(),{src:t.image,alt:t.text,height:80,width:107,layout:"fixed"})}),(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)("p",{className:"whitespace-pre-line text-left text-sm",children:e(t.text)}),(0,s.jsx)("p",{className:"whitespace-pre-line text-left text-xs ",children:e(t.desc)})]})]},null===t||void 0===t?void 0:t.text)}))})]}),(0,s.jsx)("p",{className:"mt-6 mb-4 whitespace-pre-line text-center text-2xl font-bold",children:e("verify_id.require_two_photos")}),(0,s.jsxs)("div",{className:"flex-center flex-col",children:[(0,s.jsx)("p",{className:"font-bold",children:e("verify_id.selfie_with_id")}),(0,s.jsx)("p",{className:"font-bold",children:e("verify_id.id_only_photo")})]}),(0,s.jsxs)("div",{className:"mt-6 flex items-center gap-10",children:[(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("p",{className:"text-sm",children:e("verify_id.selfie_with_id")})}),(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)("p",{className:"text-sm",children:e("verify_id.id_only_photo")})})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"relative h-[116px] w-full",children:(0,s.jsx)(w(),{src:"/images/selfie.png",layout:"fill",objectFit:"contain"})}),(0,s.jsx)("div",{className:"text-[40px]",children:"+"}),(0,s.jsx)("div",{className:"relative h-[115px] w-full",children:(0,s.jsx)(w(),{src:"/images/driver_license.png",layout:"fill",objectFit:"contain"})})]}),(0,s.jsx)("div",{className:"mb-2 mt-6 text-center font-bold",children:e("verify_id.failure_cases")}),(0,s.jsx)("div",{className:"my-3 mx-auto",children:y()(O.sW.length,(function(t){return(0,s.jsxs)("div",{className:"mb-1 flex flex-shrink items-center",children:[(0,s.jsx)(w(),{src:"/images/close.png",alt:"notice",height:20,width:20,layout:"fixed"}),(0,s.jsx)("span",{className:"pl-2 font-bold",children:e("verify_id.".concat(O.sW[t]))})]},t)}))})]})},B=function(e){var t=e.birthday,n=e.setBirthday,r=(0,i.Z)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"my-6 rounded-lg bg-light-green-2 py-4",children:[(0,s.jsx)("div",{className:"flex justify-center",children:r("verify_id.currently_age")}),(0,s.jsx)("div",{className:"flex justify-center text-2xl font-bold text-primary",children:r("common.age",{age:(0,M.Ay)(t)})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"whitespace-pre-line text-center font-bold",children:r("verify_id.change_correct_date")}),(0,s.jsx)(p.Mt,{mouseWheel:!0,cancelText:r("common.cancel"),confirmText:r("common.confirm"),defaultValue:t?new Date(t):(0,M.fY)(),onConfirm:function(e){return n(e.toDateString())},min:(0,M.fY)(),max:(0,M.xm)(),children:function(e,n){var i=n.open;return(0,s.jsx)(h.sh,{onPress:i,children:(0,s.jsxs)("div",{className:"relative mb-3 mt-2 rounded-md border border-light-green-1 px-4 py-3 text-[18px] text-sub",children:[j()(e||t).format(r("format_string.date")),(0,s.jsx)(C.w4J,{className:"absolute right-2 top-4 text-primary"})]})})}})]})]})},G=function(e){var t,n=e.isOnboarding,a=e.onNext,c=void 0===a?_():a,x=(0,r.useRouter)(),m=(0,i.Z)(),h=(0,l.I0)(),p=(0,Z.po)(),v=p.me,j=p.isAgePending,g=p.isAgeConfirming,b=p.isAgeVerified,y=p.refetch,N=(null!==(t=null===v||void 0===v?void 0:v.id)&&void 0!==t?t:0)%2===1,C=(0,d.c)().isMaleViewFromMatching,O=(0,k.useState)(null===v||void 0===v?void 0:v.birthday),M=O[0],T=O[1],F=(0,f.Z)((0,E.P5)(),3),S=F[0],I=F[1],A=F[2];(0,E.P5)(!1);var L=(0,k.useMemo)((function(){return j||g||b}),[b,j,g]),z=(0,k.useMemo)((function(){return m(L?"verify_id.applying_identity_verification":"verify_id.start_age_confirmation")}),[L]),H=function(){n?c():C?(x.back(),h((0,u.mo)({visible:!0,viewFrom:o.xc.MATCHING_MODAL}))):(y(),x.replace(o.Z5.PROFILE.DETAIL.replace("[id]",null===v||void 0===v?void 0:v.id)))};return(0,k.useEffect)((function(){N&&c()}),[N]),(0,s.jsxs)("section",{className:"text-[18px]",children:[(0,s.jsx)("div",{className:"ml-[-16px] w-[calc(100%_+_32px)]",children:(0,s.jsx)(w(),{src:o.de.ONBOARDING.VERIFY_ID,alt:"verify-id",layout:"responsive",width:201,height:320})}),(0,s.jsx)(W,{}),(0,s.jsx)(B,{birthday:M,setBirthday:T}),(0,s.jsxs)("div",{className:"mb-20 mt-4 flex flex-col items-center justify-center gap-2",children:[(0,s.jsx)(P.zx,{onClick:I,className:"mt-2 h-[48px] w-full text-xl",disabled:L,children:(0,s.jsx)("span",{children:z})}),(0,s.jsx)("p",{className:"text-sm font-bold",children:m("verify_id.quick_response")})]}),S?(0,s.jsx)(U,{open:S,onClose:A,onConfirm:H,birthday:M}):null,n?(0,s.jsx)(R.ow,{children:(0,s.jsx)(P.zx,{className:"mr-1",variant:"secondary",onPress:H,children:m(b?"auth.next":"common.skip")})}):null]})},K=function(){var e,t=(0,r.useRouter)(),n=(0,i.Z)(),x=(0,l.I0)(),f=(0,d.c)().isMaleViewFromMatching?function(){t.replace(o.Z5.HOME),x((0,u.Ey)(!0))}:null===(e=t.query)||void 0===e?void 0:e.redirect;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.Z,{title:n("age_verify.title")}),(0,s.jsx)(c.Z,{onBack:f,title:n("age_verify.title"),className:"!h-9"}),(0,s.jsx)("div",{className:"max-h-[calc(100vh-101px)] overflow-y-auto px-4 py-3",children:(0,s.jsx)(G,{})})]})},Y=!0,J=K;K.Layout=x.Z},50682:function(e){e.exports={navigation:"styles_navigation__HKVzN",activeTab:"styles_activeTab__VEJ17"}},52241:function(e){e.exports={shadow:"styles_shadow__ey1gR"}},9008:function(e,t,n){e.exports=n(5443)}},function(e){e.O(0,[3683,9774,2888,179],(function(){return t=3670,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.