1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5454],{34909:function(e,n,a){"use strict";var t=a(31169),A=a(22482),i=a(849),l=a(60605),r=a(5480),s=a(88812),o=a(12237),c=a(54409),d=a.n(c),u=a(16863),m=a(75488),x=a(67864),h=a.n(x),p=a(92187),b=a(26279);n.Z=function(){var e,n,a=(0,u.useContext)(s.V).auth,c=(0,u.useRef)(null),x=(0,u.useState)(!1),f=x[0],v=x[1],g=(0,u.useState)(!1),j=g[0],y=g[1],k=(0,u.useContext)(p.F),N=(0,b.Z)("common").t,w=(e=(0,t.Z)(function(){return(0,A.__generator)(this,function(e){switch(e.label){case 0:v(!0),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,o.Z.get("".concat(r.RO,"/users/verification/request"),{headers:{Authorization:a.token}})];case 2:case 3:return e.sent(),[3,5];case 4:return v(!1),[7];case 5:return[2]}})}),function(){return e.apply(this,arguments)}),_=(n=(0,t.Z)(function(){var e;return(0,A.__generator)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,(0,l.Z)({method:"GET",url:"/users/profile",token:a.token})];case 1:return e.sent().isVerified?y(!1):y(!0),[3,3];case 2:return e.sent(),y(!0),[3,3];case 3:return[2]}})}),function(){return n.apply(this,arguments)});return((0,u.useEffect)(function(){0===Object.keys(a).length?y(!1):_()},[]),j)?(0,i.jsxs)("div",{className:"wrapper",children:[(0,i.jsx)("div",{ref:c,className:"".concat(h().bgVerif," py-3 px-4"),style:{marginTop:"100px"},children:(0,i.jsxs)("div",{className:"d-block d-md-flex justify-content-between align-items-center",children:[(0,i.jsxs)("div",{className:"d-flex align-items-center",style:{columnGap:k?10:18},children:[(0,i.jsx)(m.I5p,{size:24,color:"#02BBDD"}),(0,i.jsx)("p",{className:"text-tertiary-blue font-semibold mb-0 flex-1 ".concat(h().textSize),children:N("verifAccount.title")})]}),(0,i.jsx)("button",{className:"blue-btn ".concat(h().btnVerif),"data-toggle":"modal","data-target":"#exampleModalCenter",children:N("verifAccount.btnVerif")})]})}),(0,i.jsx)("div",{className:"modal fade",id:"exampleModalCenter",tabIndex:"-1",role:"dialog","aria-labelledby":"exampleModalCenterTitle","aria-hidden":"true",children:(0,i.jsx)("div",{className:"modal-dialog modal-dialog-centered",role:"document",children:(0,i.jsx)("div",{className:"modal-content ".concat(h().modalContent),children:(0,i.jsxs)("div",{className:"modal-body ".concat(h().modalBody),children:[(0,i.jsx)("div",{className:"text-center mx-auto",children:(0,i.jsx)(d(),{src:"/img/ic-check.png",width:45,height:45,alt:"ic-check"})}),(0,i.jsxs)("div",{className:h().boxDesc,children:[(0,i.jsx)("h5",{className:h().titleHeader,style:{fontWeight:"500"},children:"Cek email kamu, yuk!"}),(0,i.jsx)("p",{className:"mb-2 mb-md-3 ".concat(h().descSend),children:"Link verifikasi sudah dikirim ke email kamu. Segera verifikasi buat dapetin akses ke semua layanan Riliv secara mudah dengan cek inbox dan spam."}),(0,i.jsxs)("p",{className:h().descSend,children:[(0,i.jsx)("span",{className:"font-medium",children:"Masih belum ada?"})," Yuk, kirim ulang email dan segera lakukan verifikasi sekarang!"]})]}),(0,i.jsx)("button",{className:"blue-btn p-3",style:{width:"100%"},onClick:w,children:f?(0,i.jsx)("div",{className:"spinner-border",role:"status",children:(0,i.jsx)("span",{className:"sr-only",children:"Loading..."})}):"Kirim Ulang Email"})]})})})})]}):null}},55454:function(e,n,a){"use strict";a.r(n);var t=a(31169),A=a(68314),i=a(84985),l=a(17405),r=a(22482),s=a(849);a(34909);var o=a(5480),c=a(88812),d=a(57151),u=a(21566),m=a(13777),x=a(64989),h=a(12237),p=a(54409),b=a.n(p),f=a(78965),v=a.n(f),g=a(70614),j=a(16863),y=a(73952),k=a(84419),N=a(54424),w=a.n(N),_=a(90769),C=a(92187),B=w()(function(){return a.e(914).then(a.bind(a,80914))},{loadableGenerated:{webpack:function(){return[80914]}},ssr:!1}),E=function(e){e.currentPage,e.textCTA,e.urlCTA,e.fix,e.hideMenu;var n=e.center,a=(0,j.useState)(!1),t=a[0],i=a[1];(0,j.useContext)(c.V).auth;var l=(0,j.useContext)(C.F);return(0,j.useEffect)(function(){var e=function(){window.scrollY>=100?i(!0):i(!1)};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e)}},[]),(0,s.jsxs)("div",{children:[(0,s.jsx)("nav",{id:"navbar-custom",className:"w-100 px-3 px-lg-0 mx-auto navbar navbar-expand-lg navbar-light bg-white text-gray-5 border-dark ".concat(t?"position-fixed shadow-sm mb-0":"position-relative"),style:{zIndex:"1000",top:"0"},children:(0,s.jsx)("div",{className:"container px-0",style:{maxWidth:l?"100%":"1080px"},children:n?(0,s.jsx)(Z,(0,A.Z)({}
1,e)):(0,s.jsx)(S,(0,A.Z)({},e))})}),(0,s.jsx)(B,{isNavbar:!0})]})},Z=function(e){return e.currentPage,e.textCTA,e.urlCTA,e.fix,e.hideMenu,e.center,(0,s.jsxs)(j.Fragment,{children:[(0,s.jsx)("a",{className:"navbar-brand mx-auto",href:"/",children:(0,s.jsx)(y.LazyLoadImage,{src:"/img/logo-full-color.svg",alt:"logo riliv",height:"28px"})}),(0,s.jsx)("a",{className:"btn btn-special-grad-1 btn-sm my-2 px-3 font-medium px-1 px-sm-rlv-A px-md-rlv-B text-white d-lg-none invisible",style:{fontSize:"14px",width:"0px"},children:"a"}),(0,s.jsx)("span",{className:"navbar-text invisible m-0",style:{width:"0px"},children:(0,s.jsx)("a",{className:"btn btn-special-grad-1 btn-sm my-2 font-medium text-white d-none d-lg-inline-block",style:{fontSize:"14px",width:"0px"},children:"a"})})]})},S=function(e){var n,a=e.currentPage,d=e.textCTA,p=e.urlCTA,f=e.fix,y=e.hideMenu,N=(e.center,e.urlUtm),w=(0,j.useContext)(c.V),B=w.auth,E=w.setAuth,Z=(0,l.Z)((0,k.V)("typeForm",""),3)[2],S=(0,j.useState)((null==B?void 0:null===(n=B.user)||void 0===n?void 0:n.profileLink)||"/jepa-konseling/dummy.webp"),V=S[0],T=S[1];(0,x.Z)();var D=(0,j.useContext)(C.F),W=(0,j.useState)(!1),z=W[0],U=W[1],I=(0,j.useState)(!1),L=I[0],Q=I[1],M=(0,u.Z)(),Y=(0,g.useRouter)(),G=(0,m.Z)({url:"/users/profile",disable:!(null==B?void 0:B.token)}).data;return(0,j.useEffect)((0,t.Z)(function(){var e,n;return(0,r.__generator)(this,function(n){switch(n.label){case 0:if(!(Y.query.token&&!z))return[3,2];return U(!0),e="undefined"==Y.query.token?"":Y.query.token||"",[4,h.Z.get("".concat(o.RO,"/users/profile"),{headers:{authorization:e}})];case 1:E({token:e,user:n.sent().data.data}),n.label=2;case 2:return[2,function(){}]}})}),[Y.query]),(0,j.useEffect)(function(){return G&&E((0,i.Z)((0,A.Z)({},B),{user:G})),Q(!0),function(){}},[G]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("a",{href:"/",className:"navbar-brand",children:(0,s.jsx)(b(),{src:"/img/riliv-icon.svg",alt:"logo riliv",width:104,height:28})}),"Coba Aplikasi"===d?(0,s.jsx)(F,{textCTA:d,urlUtm:N}):(0,s.jsx)("a",{href:p,className:"btn btn-special-grad-1 btn-sm my-2 font-medium px-3 px-sm-rlv-A px-md-rlv-B text-white d-lg-none ml-auto mr-1 ".concat(d?"d-inline-block":"invisible"),style:{fontSize:"14px",borderRadius:"6px"},children:d||"a"}),y?null:(0,s.jsx)("button",{className:"navbar-toggler border-0 font-weight-bold d-inline d-lg-none",type:"button","data-toggle":"collapse","data-target":"#navbarText","aria-controls":"navbarText","aria-expanded":"false","aria-label":"Toggle navigation",children:(0,s.jsx)("span",{className:"navbar-toggler-icon",style:{backgroundImage:"url('/img/burger.svg')",height:"24px",width:"24px"}})}),(0,s.jsxs)("div",{className:"collapse navbar-collapse",id:"navbarText",children:[(0,s.jsx)("ul",{className:"navbar-nav ml-auto justify-content-end font-weight-normal",children:y?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("li",{className:"nav-item pr-4 my-auto",children:(0,s.jsx)("a",{className:"nav-link pl-0 paragraph-riliv-sm ".concat("Home"==a?"active font-medium":""),href:"/",children:"Beranda"})}),(0,s.jsx)("li",{className:"nav-item pr-4 my-auto",children:(0,s.jsx)("a",{className:"nav-link pl-0 paragraph-riliv-sm ".concat("Riliv Story"==a?"active font-medium":""),href:"https://riliv.co/rilivstory",onClick:function(){return M.logEvent("click_riliv_story")},children:"Riliv Story"})}),(0,s.jsx)("li",{className:"nav-item pr-4 my-auto",children:(0,s.jsx)("a",{className:"nav-link pl-0 paragraph-riliv-sm ".concat("Meditasi"==a?"active font-medium":""),href:"/hening",onClick:function(){return M.logEvent("click_self_care")},children:"Meditasi"})}),(0,s.jsx)("li",{className:"nav-item pr-4 my-auto",children:(0,s.jsx)("a",{className:"nav-link pl-0 paragraph-riliv-sm ".concat("About"==a?"active font-medium":""),href:"/about",onClick:function(){return M.logEvent("click_about")},children:"About"})}),(0,s.jsx)("li",{className:"nav-item pr-4 my-auto",children:(0,s.jsx)("a",{className:"nav-link pl-0 paragraph-riliv-sm ".concat("Riliv for Company"==a?"active font-medium":""),href:"/company",onClick:function(){return M.logEvent("click_riliv_for_company")},children:"Riliv for Company"})}),(null==B?void 0:B.user)&&!D&&(0,s.jsx)("div",{className:"mr-4 my-auto",style:{position:"relative",borderLeft:"1px solid #EAEAE9",height:"50px"}}),L?(null==B?void 0:B.user)?(0,s.jsx)(j.Fragment,{children:(0,s.jsxs)("li",{className:"nav-item dropdown",children:[(0,s.jsx)("a",{style:{cursor:"pointer",color:"black"},className:"nav-link d-flex align-items-center dropdown-toggle paragraph-riliv-sm font-medium",id:"navbarDropdown",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",href:"#",children:(0,s.jsx)(b(),{src:V,onError:function(){return T("/jepa-konseling/dummy.webp")},className:"rounded-circle",width:40,height:40,placeholder:"blur",blurDataURL:"data:image/webp;base64,UklGRpQCAABXRUJQVlA4WAoAAAAgAAAAagAAagAASUNDUBgCAAAAAAIYAAAAAAQwAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAl
1kZXNjAAAA8AAAAHRyWFlaAAABZAAAABRnWFlaAAABeAAAABRiWFlaAAABjAAAABRyVFJDAAABoAAAAChnVFJDAAABoAAAAChiVFJDAAABoAAAACh3dHB0AAAByAAAABRjcHJ0AAAB3AAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAFgAAAAcAHMAUgBHAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA+EAAC2z3BhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABYWVogAAAAAAAA9tYAAQAAAADTLW1sdWMAAAAAAAAAAQAAAAxlblVTAAAAIAAAABwARwBvAG8AZwBsAGUAIABJAG4AYwAuACAAMgAwADEANlZQOCBWAAAAEAYAnQEqawBrAD7RaLBTKCYkoqCoAQAaCWlu4XPw04OAAxtdTe4jF/VY7ZsscWXkmpvcReWAa6loAP78p3mLjzAKvVGzcjZr1nFzxRYBAPhclmyAAAA="})}),(0,s.jsxs)("div",{className:"shadow-sm dropdown-menu","aria-labelledby":"navbarDropdown",children:[(0,s.jsx)(v(),{href:"/profile",children:(0,s.jsx)("a",{className:"dropdown-item",onClick:function(){return M.logEvent("click_profile")},children:"Profile"})}),(0,s.jsx)("a",{className:"dropdown-item",onClick:function(){E({}),Z(),localStorage.clear(),_.Z.remove("token")},href:"/",children:"Logout"})]})]})}):"/login"!==Y.pathname&&(0,s.jsx)(j.Fragment,{children:(0,s.jsx)("li",{className:"nav-item",children:(0,s.jsx)("a",{href:"/login?next=".concat(Y.pathname,"?").concat(Object.keys(Y.query).map(function(e){return"".concat(e,"=").concat(Y.query[e])}).join("&")),children:(0,s.jsx)("button",{className:"btn btn-outline-riliv-special-1 btn-sm font-medium",style:{width:"160px"},"aria-label":"Login",onClick:function(){return M.logEvent("click_login")},children:"Login"})})})}):""]})}),"Coba Aplikasi"===d&&!B.user&&(0,s.jsx)(R,{textCTA:d,fix:f,urlUtm:N}),"Coba Aplikasi"!==d&&!B.user&&(0,s.jsx)("span",{className:"navbar-text ".concat(d?"":"invisible m-0"),children:(0,s.jsx)("a",{href:p,className:"btn btn-special-grad-1 ml-3 btn-sm my-2 font-medium text-white d-none d-lg-inline-block sm:mr-3 ".concat(!0===f?"btn-fix":""," "),style:{fontSize:"14px"},children:d||"a"})})]})]})},R=function(e){var n=e.textCTA,a=e.urlUtm,t=(0,j.useContext)(d.c)[1];return(0,s.jsx)(j.Fragment,{children:(0,s.jsx)("span",{className:"navbar-text ml-0 ml-md-4 ".concat(n?"":"invisible m-0"),children:(0,s.jsx)("button",{className:"btn btn-special-grad-1 btn-sm my-2 font-medium text-white","data-toggle":"modal","data-target":"#modalDownloadAndroidIos",style:{fontSize:"14px",width:"160px"},onClick:function(){return t(a)},"aria-label":"openModalApp",children:n})})})},F=function(e){var n=e.textCTA,a=e.urlUtm,t=(0,j.useContext)(d.c)[1];return(0,s.jsx)(j.Fragment,{children:(0,s.jsx)("button",{className:"btn btn-special-grad-1 btn-sm my-2 font-medium px-3 px-sm-rlv-A px-md-rlv-B text-white d-lg-none ml-auto mr-1 d-inline-block",style:{fontSize:"14px"},"data-toggle":"modal","data-target":"#modalDownloadAndroidIos",onClick:function(){return t(a)},"aria-label":"openModalAppSmall",children:n})})};n.default=E},64989:function(e,n,a){"use strict";a.d(n,{Z:function(){return A}});var t=a(16863);function A(){var e=(0,t.useState)(""),n=e[0],a=e[1];return(0,t.useEffect)(function(){a(location.hostname)},[]),n}},67864:function(e){e.exports={bgVerif:"style_bgVerif__XPus2",btnVerif:"style_btnVerif__JWthX",boxIcon:"style_boxIcon__k06Ou",textSize:"style_textSize__8UG6I",bgSendBack:"style_bgSendBack__5k7Xs",titleHeader:"style_titleHeader__K7bXO",boxDesc:"style_boxDesc___Wc5w",descSend:"style_descSend___syQG",btnDisable:"style_btnDisable__vRoNu",modalBody:"style_modalBody__i5dl9",modalContent:"style_modalContent___xk_b"}}}]);
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.