PageSourceSearch

https://astradigital.id/_next/static/chunks/pages/profile-252a96b36c27de27.js

js astradigital.id collected 2026-10-07 02:12:25 UTC 31,037 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[63],{7835:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var r=a(94458),s=a(41041),o=a(78044),i=a(66832),n=a(34120),l=a(35232),d=a(17465),c=a(18292),u=a(48437),m=a.n(u);let p=e=>{let t=(0,c.useTranslations)(),a=t("form.progressIncomplete");100===e.progress?a=t("form.progressComplete"):e.progress>0&&e.progress<=50?a=t("form.progressAlmostHalf"):e.progress>50&&e.progress<100&&(a=t("form.progressAlmostComplete"));let u=(0,r.jsxs)("span",{children:[(0,r.jsxs)("b",{children:[e.progress,"%"]})," ",a]});return(0,r.jsxs)(s.a,{className:m().progressBox,children:[(0,r.jsxs)(o.s,{gap:"md",children:[(0,r.jsxs)("p",{className:m().progressDesc,children:[e.filledFields,"/",e.totalFields," ",t("teamRegistrationPage.progressInfo.info")]}),e.isComplete?(0,r.jsx)(l.A,{size:24,className:m().circleCheck}):(0,r.jsx)(d.A,{size:24,className:m().progressIndicator})]}),(0,r.jsx)(i.k.Root,{classNames:{root:m().progress},children:(0,r.jsx)(n.m,{arrowOffset:30,arrowSize:10,arrowRadius:2,label:u,withArrow:!0,position:"bottom-end",transitionProps:{transition:"slide-right",duration:300},classNames:{tooltip:m().tooltip},children:(0,r.jsx)(i.k.Section,{color:"#24A148",value:e.progress})})})]})}},16484:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>ew,default:()=>eN});var r=a(94458),s=a(18292),o=a(81396),i=a(68658),n=a(78044),l=a(73416),d=a(41041),c=a(49721),u=a(60741),m=a(21024),p=a(30334),g=a(72810),h=a(96210),f=a(1581),_=a(39852),P=(0,_.A)("users","IconUsers",[["path",{d:"M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-0"}],["path",{d:"M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"svg-2"}],["path",{d:"M21 21v-2a4 4 0 0 0 -3 -3.85",key:"svg-3"}]]),v=(0,_.A)("clipboard-text","IconClipboardText",[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M9 12h6",key:"svg-2"}],["path",{d:"M9 16h6",key:"svg-3"}]]),x=(0,_.A)("lock","IconLock",[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]]),j=(0,_.A)("power","IconPower",[["path",{d:"M7 6a7.75 7.75 0 1 0 10 0",key:"svg-0"}],["path",{d:"M12 4l0 8",key:"svg-1"}]]),b=(0,_.A)("edit","IconEdit",[["path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1",key:"svg-0"}],["path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z",key:"svg-1"}],["path",{d:"M16 5l3 3",key:"svg-2"}]]),C=a(17790),y=a(24760),w=a(20286),N=a(98353),F=a(21997),A=a(78981),B=a.n(A),S=a(24200),T=a.n(S);let k={src:"/_next/static/media/password.5408120e.webp"};var I=a(56644),M=a(16588),E=a.n(M);let L=()=>{let e=(0,s.useTranslations)(),t=(0,g.U)("(max-width: 48em)"),a=(0,I.Rk)();return(0,r.jsxs)(d.a,{className:E().container,children:[t?(0,r.jsx)(T(),{href:"/profile",className:E().mobileNavigation,children:(0,r.jsxs)(n.s,{gap:10,align:"center",children:[(0,r.jsx)(F.A,{color:"#003ADB",size:24}),(0,r.jsx)(c.h,{order:1,children:e("profilePage.menuContent.password.title")})]})}):(0,r.jsx)(c.h,{order:1,children:e("profilePage.menuContent.password.title")}),(0,r.jsx)(B(),{src:k.src,alt:e("profilePage.form"),title:e("profilePage.form"),width:150,height:150}),(0,r.jsx)("p",{children:e("profilePage.menuContent.password.desc")}),(0,r.jsx)(d.a,{className:E().buttonBox,children:(0,r.jsx)(p.$,{className:E().buttonActive,onClick:()=>a.refetch(),children:e("profilePage.menuContent.password.button")})})]})},D={src:"/_next/static/media/submission-close.36eda51d.webp"},R={src:"/_next/static/media/submission-complete.cdef3496.webp"},z={src:"/_next/static/media/submission-form.8b98adec.webp"};var O=a(34899),q=a(43824),V=a(33080),U=a(83393),W=a(65563),Z=a(7835);let $=e=>{let{progress:t}=e;return(0,r.jsx)(d.a,{m:24,children:(0,r.jsx)(Z.A,{totalFields:t.totalFields,filledFields:t.filledFields,isComplete:!1,progress:t.progress})})};var Y=a(83064),H=a.n(Y);let K=()=>{var e;let t=(0,s.useTranslations)(),a=(0,g.U)("(max-width: 48em)"),o=y.A.get(q.aq),{data:u}=(0,U.a)({options:{enabled:!!o},token:o}),{data:m,isFetching:f}=(0,V.w)(),[_,{open:P,close:v}]=(0,h.j)(),x=(0,i.useMemo)(()=>new Date(new Date().toISOString()),[]),j=new Date(null!=(e=null==m?void 0:m.data.attributes.openProposal)?e:""),b=(0,i.useMemo)(()=>{var e;return new Date(null!=(e=null==m?void 0:m.data.attributes.closeProposal)?e:"")},[null==m?void 0:m.data.attributes.closeProposal]),C=(0,i.useMemo)(()=>{var e,t,a,r,s,o,i,n,l,d,c,m,p,g,h,f,_,P,v,x,j,b,C,y,w;return[null==u||null==(e=u.data)?void 0:e.teamName,null==u||null==(t=u.data)?void 0:t.teamLeadName,null==u||null==(a=u.data)?void 0:a.teamLeadEmail,null==u||null==(r=u.data)?void 0:r.teamLeadWhatsappNumber,null==u||null==(s=u.data)?void 0:s.competitionTrack,null==u||null==(o=u.data)?void 0:o.institution,null==u||null==(i=u.data)?void 0:i.gender,null==u||null==(l=u.data)||null==(n=l.domicileCity)?void 0:n.id.toString(),null==u||null==(c=u.data)||null==(d=c.innovationCategory)?void 0:d.id.toString(),null==u||null==(m
1=u.data)?void 0:m.summaryOfInnovation,null==u||null==(p=u.data)?void 0:p.problemStatement,null==u||null==(g=u.data)?void 0:g.solution,null==u||null==(h=u.data)?void 0:h.competitiveAnalysis,null==u||null==(f=u.data)?void 0:f.uniqueValueProposition,null==u||null==(P=u.data)||null==(_=P.haveProductTraction)?void 0:_.toString(),null==u||null==(v=u.data)?void 0:v.productTractionInformation,null==u||null==(j=u.data)||null==(x=j.haveGetInvestments)?void 0:x.toString(),null==u||null==(b=u.data)?void 0:b.investmentInformation,null==u||null==(C=u.data)?void 0:C.proposal,null==u||null==(w=u.data)||null==(y=w.referral)?void 0:y.id.toString()]},[u]),w=(0,W.y)(C),[N,A]=(0,i.useState)(!1),[S,k]=(0,i.useState)(!1),[I,M]=(0,i.useState)(!1),[E,L]=(0,i.useState)(!1);(0,i.useEffect)(()=>{var e,t;x>j&&x<b&&A(!0),u&&(null==(e=u.data)?void 0:e.status)==="registered"&&(M(!0),L(!0)),u&&(null==(t=u.data)?void 0:t.status)==="draft"&&k(!0),u&&100===w.progress&&M(!0)},[b,x,j,u,w.progress,f]);let Z=(e,t,a)=>{t||(e.preventDefault(),P()),a&&(e.preventDefault(),P())};return(0,r.jsxs)(d.a,{className:H().container,children:[!a&&N&&(0,r.jsx)(c.h,{order:1,children:t("profilePage.menuContent.registrationForm.title")}),a&&(0,r.jsx)(T(),{href:"".concat(q.Dl,"profile"),className:H().mobileNavigation,children:(0,r.jsxs)(n.s,{gap:10,align:"center",children:[(0,r.jsx)(F.A,{color:"#003ADB",size:24}),(0,r.jsx)(c.h,{order:1,children:t("profilePage.menuContent.registrationForm.title")})]})}),!N&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.h,{order:1,className:H().titleClose,children:t("profilePage.menuContent.registrationForm.closeSubmission.title")}),(0,r.jsx)(B(),{src:D.src,alt:t("profilePage.form"),title:t("profilePage.form"),width:150,height:150}),(0,r.jsxs)("p",{children:[t("profilePage.menuContent.registrationForm.closeSubmission.desc.first")," ",(0,r.jsx)("span",{children:"@astradigitalid"})," ",t("profilePage.menuContent.registrationForm.closeSubmission.desc.last")]})]}),N&&(0,r.jsxs)(r.Fragment,{children:[!E&&(0,r.jsxs)(r.Fragment,{children:[!S&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(B(),{src:z.src,alt:t("profilePage.form"),title:t("profilePage.form"),width:150,height:150}),(0,r.jsx)("p",{children:t("profilePage.menuContent.registrationForm.noFormFill")}),(0,r.jsx)(d.a,{m:"auto",children:(0,r.jsx)(T(),{href:"/astranauts_submission",onClick:e=>Z(e,x>j,x>b),children:(0,r.jsx)(p.$,{className:H().buttonActive,children:t("profilePage.menuContent.registrationForm.noFormFillButton")})})})]}),S&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.Z,{shadow:"sm",radiu
1s:"lg",className:H().progressCard,children:[I&&(0,r.jsx)("p",{children:t("profilePage.menuContent.registrationForm.fullFormFill")}),!I&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("p",{children:t("profilePage.menuContent.registrationForm.hasFormFill")})}),(0,r.jsx)($,{progress:w})]}),(0,r.jsx)(d.a,{m:"auto",children:(0,r.jsx)(T(),{href:"/astranauts_submission",onClick:e=>Z(e,x>j,x>b),children:(0,r.jsx)(p.$,{className:H().buttonActive,mt:"xl",children:t("profilePage.menuContent.registrationForm.hasFormFillButton")})})})]})]}),E&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(B(),{src:R.src,alt:t("profilePage.form"),title:t("profilePage.form"),width:150,height:150}),(0,r.jsxs)("p",{children:[t("profilePage.menuContent.registrationForm.submittedRegistrationForm.congrats")," ",(0,r.jsx)("b",{children:t("profilePage.menuContent.registrationForm.submittedRegistrationForm.hasBeenSent")})," ",t("profilePage.menuContent.registrationForm.submittedRegistrationForm.stillCanChange")," ",(0,r.jsx)("b",{children:t("profilePage.menuContent.registrationForm.submittedRegistrationForm.submissionDeadline")})]}),(0,r.jsx)(d.a,{m:"auto",children:(0,r.jsx)(T(),{href:"".concat(q.Dl,"astranauts_submission"),onClick:e=>Z(e,x>j,x>b),children:(0,r.jsx)(p.$,{className:H().buttonActive,mt:"xl",children:t("profilePage.menuContent.registrationForm.submittedRegistrationForm.button")})})})]}),(0,r.jsx)(O.Gh,{isOpenModalRegistration:_,close:v})]})]})},G={src:"/_next/static/media/profile.9eccde68.webp"};var X=a(69748),Q=a(2634);let J="Please ignore this error.",ee=e=>{e.reason===J&&e.preventDefault()};var et=a(22936),ea=a(19613),er=a(87876),es=a(32769);let eo=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:17,height:23,fill:"none",...e,children:(0,r.jsx)("path",{fill:"#323232",d:"M14.75 7.833h-1.042V5.75A5.21 5.21 0 0 0 8.499.542 5.21 5.21 0 0 0 3.291 5.75v2.083H2.249A2.09 2.09 0 0 0 .166 9.917v10.416a2.09 2.09 0 0 0 2.083 2.084h12.5a2.09 2.09 0 0 0 2.084-2.084V9.917a2.09 2.09 0 0 0-2.084-2.084ZM8.5 17.208a2.09 2.09 0 0 1-2.084-2.083 2.09 2.09 0 0 1 2.083-2.083 2.09 2.09 0 0 1 2.084 2.083 2.09 2.09 0 0 1-2.084 2.083ZM5.373 7.833V5.75A3.12 3.12 0 0 1 8.5 2.625a3.12 3.12 0 0 1 3.125 3.125v2.083h-6.25Z"})});var ei=a(74664),en=a.n(ei);let el=e=>{let t=(0,s.useTranslations)(),{form:a,onSubmit:o,email:i}=e;return(0,r.jsx)("form",{onSubmit:o,className:en().editProfile,children:(0,r.jsxs)(d.a,{className:en().fields,children:[(0,r.jsx)(es.A,{label:"Nama Ketua Tim",placeholder:"Nama Ketua Tim",...a.getInputProps("name"),"data-cy":"profile-name-input"}),(0,r.jsx)(es.A,{label:"Email",placeholder:"Email",value:i,rightSection:(0,r.jsx)(eo,{}),disabled:!0,"data-cy":"profile-email-input"}),(0,r.jsx)(n.s,{justify:"center",pt:"md",children:(0,r.jsx)(p.$,{className:en().buttonActive,type:"submit",disabled:e.isSubmitting,"data-cy":"profile-submit-button",children:t("profilePage.menuContent.myProfile.saveButton")})})]})})};var ed=a(65551),ec=a(6512),eu=a(42413),em=a(64124),ep=a(94455),eg=a.n(ep);let eh=e=>{var t,a,o;let l=(0,s.useTranslations)(),u=(0,N.useRouter)(),m=(0,g.U)("(max-width: 48em)"),[_,P]=(0,i.useState)(!1),[v,{open:x,close:j}]=(0,h.j)(),[C,w]=(0,i.useState)(!1),[A,{open:S,close:k}]=(0,h.j)(),I=y.A.get(q.aq),{data:M,refetch:E,isFetching:L}=(0,ea.v)({options:{enabled:!!I},token:I}),D=async e=>{try{P(!0);let[t,a]=await (0,er.A)(et.A.patch(Q.A.PATCH_PROFILE_UPDATE,e,{headers:{Authorization:"Bearer ".concat(I)}}));(null==t?void 0:t.status)===200&&(P(!1),w(!0),E(),x()),a&&(P(!1),w(!1),x())}catch(e){P(!1)}},{form:R,handleClick:z,profilePicture:O,onSubmit:V}=(e=>{var t,a;let r=(0,s.useTranslations)(),o=(0,i.useMemo)(()=>(e=>eu.z.object({name:eu.z.string().min(2,e("validation.required",{fieldName:e("form.name")})).max(100,e("validation.maxLength",{fieldName:e("form.name"),length:100}))}))(r),[r]),n=(0,i.useRef)(null),[l,d]=(0,i.useState)(G.src),c=(0,ed.m)({initialValues:{name:null!=(a=null==(t=e.userValues)?void 0:t.name)?a:""},validate:(0,ec.u)(o),validateInputOnBlur:!0});(0,em.A)({form:c,initialValues:{name:""}});let u=c.onSubmit(async(t,a)=>{var r;null==(r=e.handleSubmit)||r.call(e,t,a)});return{form:c,handleClick:()=>{null!=n.current&&n.current.click()},profilePicture:l,onSubmit:u}})({userValues:null==M?void 0:M.data,handleSubmit:D}),{setValues:U}=R,W="profile-edit"===u.query.p;(0,i.useEffect)(()=>
1{if(W&&(null==M?void 0:M.data)){var e;U({name:null==M||null==(e=M.data)?void 0:e.name})}},[null==M||null==(t=M.data)?void 0:t.name,W,L,null==M?void 0:M.data,U]);let Z=(e=>{let{shouldStopNavigation:t,onNavigate:a}=e,r=(0,N.useRouter)(),s=r.asPath,o=(0,i.useRef)(""),n=(0,i.useRef)(!1),l=(0,i.useCallback)(()=>{throw r.events.emit("routeChangeError","","",{shallow:!1}),J},[r]);return(0,i.useEffect)(()=>{n.current=!1;let e=e=>{s!==e&&window.history.replaceState(window.history.state,"",r.basePath+s),t&&e!==s&&!n.current&&(o.current=e.replace(r.basePath,""),a(),l())};return r.events.on("routeChangeStart",e),window.addEventListener("unhandledrejection",ee),()=>{r.events.off("routeChangeStart",e),window.removeEventListener("unhandledrejection",ee)}},[s,l,a,r.basePath,r.events,t]),()=>{n.current=!0,r.push(o.current)}})({shouldStopNavigation:W&&R.getInputProps("name").value!==(null==M?void 0:M.data.name)&&R.isDirty(),onNavigate:()=>{S()}});return(0,r.jsxs)(r.Fragment,{children:[m?(0,r.jsx)(r.Fragment,{children:e.isEdited?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(T(),{className:eg().editNavigation,href:"".concat(q.Dl,"profile"),title:l("profilePage.menuContent.myProfile.title"),children:[(0,r.jsx)(F.A,{className:eg().icon}),(0,r.jsx)(c.h,{order:2,children:"Sunting Profile"})]}),!L&&(0,r.jsx)(el,{isSubmitting:_,form:R,handleClick:z,profilePicture:O,onSubmit:V,email:null!=(o=null==M?void 0:M.data.email)?o:""})]}):(0,r.jsxs)(d.a,{className:eg().containerContent,children:[(0,r.jsx)(B(),{src:G.src,alt:"Profile ".concat(null==M?void 0:M.data.name),title:"Profile ".concat(null==M?void 0:M.data.name),width:64,height:64}),(0,r.jsxs)(d.a,{className:eg().middle,children:[(0,r.jsx)("h3",{"data-cy":"profile-name",children:null==M?void 0:M.data.name}),(0,r.jsx)("p",{"data-cy":"profile-email",children:null==M?void 0:M.data.email})]}),(0,r.jsx)(p.$,{variant:"transparent",onClick:()=>u.push("".concat(q.Dl,"profile")),children:(0,r.jsx)(b,{className:eg().editIcon,"data-cy":"profile-name"})})]})}):(0,r.jsx)(r.Fragment,{children:e.isEdited?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(T(),{className:eg().editNavigation,href:"".concat(q.Dl,"profile"),title:l("profilePage.menuContent.myProfile.title"),children:[(0,r.jsx)(F.A,{className:eg().icon}),(0,r.jsx)(c.h,{order:2,children:l("profilePage.menuContent.myProfile.title")})]}),!L&&(0,r.jsx)(el,{isSubmitting:_,form:R,handleClick:z,profilePicture:O,onSubmit:V,email:null!=(a=null==M?void 0:M.data.email)?a:""})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.h,{order:2,children:l("profilePage.menuContent.myProfile.title")}),(0,r.jsxs)(n.s,{className:eg().containerContent,align:"center",children:[(0,r.jsx)(n.s,{justify:"center",align:"center",gap:{base:16,md:62},className:eg().containerContentProfile,children:(0,r.jsxs)(d.a,{className:eg().middle,children:[(0,r.jsx)("h3",{"data-cy":"profile-name",children:null==M?void 0:M.data.name}),(0,r.jsx)("p",{"data-cy":"profile-email",children:null==M?void 0:M.data.email})]})}),(0,r.jsx)(p.$,{variant:"transparent",component:T(),href:"".concat(q.Dl,"profile?p=profile-edit"),title:l("profilePage.menuContent.myProfile.title"),children:(0,r.jsx)(b,{className:eg().editIcon,"data-cy":"profile-edit-button"})})]})]})}),(0,r.jsx)(X.A,{isOpen:v,onClose:j,isSuccess:C,redirectTo:"".concat(q.Dl,"profile"),successTitle:l("profilePage.menuContent.myProfile.modal.title"),errorTitle:l("profilePage.menuContent.myProfile.modal.errorTitle"),successMessage:l("profilePage.menuContent.myProfile.modal.message"),errorMessage:l("profilePage.menuContent.myProfile.modal.errorMessage"),errorButton:l("profilePage.menuContent.myProfile.modal.errorButton"),successButton:l("profilePage.menuContent.myProfile.modal.successButton")}),(0,r.jsx)(X.A,{hasCloseButton:!0,icon:(0,r.jsx)(f.A,{color:"red",size:48}),isSuccess:!0,successTitle:l("profilePage.menuContent.myProfile.modal.titleConfirm"),successMessage:l("profilePage.menuContent.myProfile.modal.descConfirm"),hasCloseButtonTitle:l("profilePage.menuContent.myProfile.modal.cancelConfirm"),isOpen:A,onClose:()=>{R.reset(),Z(),k()},redirectTo:"".concat(q.Dl,"profile"),onClickOk:()=>{R.reset(),V(),k()},successButton:l("profilePage.menuContent.myProfile.saveButton"),errorTitle:"",errorMessage:"",errorButton:""})]})};var ef=a(46831),e_=a(49910),eP=a(25708),ev=a.n(eP);let ex=e=>{let{days:t,hours:a,minutes:o,seconds:i}=e,d=(0,s.useTranslations)();return(0,r.jsx)("div",{children:(0,r.jsxs)(n.s,{gap:10,justify:"center",children:[(0,r.jsxs)(l.Z,{radius:"md",shadow:"sm",padding:0,children:[(0,r.jsx)("p",{className:ev().count,children:t}),(0,r.jsx)("p",{className:ev().desc,children:d("homepage.days")})]}),(0,r.jsxs)(l.Z,{radius:"md",shadow:"sm",padding:0,children:[(0,r.jsx)("p",{className:ev().count,children:a}),(0,r.jsx)("p",{className:ev().desc,children:d("homepage.hours")})]}),(0,r.jsxs)(l.Z,{radius:"md",shadow:"sm",padding:0,children:[(0,r.jsx)("p",{className:ev().count,children:o}),(0,r.jsx)("p",{className:ev().desc,children:d("homepage.minutes")})]}),(0,r.jsxs)(l.Z,{radius:"md",shadow:"sm",padding:0,children:[(0,r.jsx)("p",{className:ev().count,children:i}),(0,r.jsx)("p",{className:ev().desc,children:d("homepage.seconds")})]})]})})},ej=e=>{let[t,a,s,o]=(0,ef.L)(e.targetDate);return t+a+s+o<=0?(0,r.jsx)(ex,{days:0,hours:0,minutes:0,seconds:0}):(0,r.jsx)(ex,{days:t,hours:a,minutes:s,seconds:o})},eb=e=>{let{isModalsLogoutConfirmation:t,close:a}=e,o=(0,s.useTranslations)();return(0,r.jsx)(X.A,{hasCloseButton:!0,icon:(0,r.jsx)(f.A,{color:"red",size:48}),isSuccess:!0,successTitle:o("profilePage.menus.logout.titleModals"),successMessage:o("profilePage.menus.logout.descModals"),hasCloseButtonTitle:o("profilePage.menus.logout.confirmModals"),isOpen:t,onClose:a,redirectTo:"".concat(q.Dl,"generate-logout"),successButton:o("profilePage.menus.logout.title"),errorTitle:"",errorMessage:"",errorButton:""})},eC=()=>{var e,t;let a=(0,N.useRouter)();(0,w.usePathname)();let o=(0,s.useTranslations)(),i=(0,g.U)("(max-width: 48em)"),[l,{open:f,close:_}]=(0,h.j)(),F=y.A.get(q.aq),{data:A}=(0,V.w)(),{data:B}=(0,ea.v)({options:{enabled:!!F},token:F}),S=new Date().getTime(),T=new Date(new Date().toISOString()),k=new Date(null!=(e=null==A?void 0:A.data.attributes.openProposal)?e:0),I=new Date(null!=(t=null==A?void 0:A.data.attributes.closeProposal)?t:0).getTime()-T.getTime(),M=[{id:1,title:o("profilePage.menus.myProfile.title"),icon:(0,r.jsx)(P,{size:24}),desc:o("profilePage.menus.myProfile.desc"),slug:"profile",link:"".concat(q.Dl,"profile"),component:(0,r.jsx)(eh,{})},{id:2,title:o("profilePage.menus.registrationForm.title"),icon:(0,r.jsx)(v,{size:24}),slug:"formulir-pengajuan",desc:o("profilePage.menus.registrationForm.desc"),link:"".concat(q.Dl,"/profile/formulir-pengajuan"),component:(0,r.jsx)(K,{})},{id:3,title:o("profilePage.menus.password.title"),icon:(0,r.jsx)(x,{size:24}),slug:"change-password",desc:o("profilePage.menus.password.desc"),link:"".concat(q.Dl,"/profile/change-password"),component:(0,r.jsx)(L,{})},{id:4,title:o("profilePage.menus.logout.title"),icon:(0,r.jsx)(j,{size:24}),slug:"logout",desc:o("profilePage.menus.logout.desc"),link:"".concat(q.Dl,"generate-logout")}],E=a.isReady&&"string"==typeof a.query.p?a.query.p:M[0].slug,D=e=>{"logout"!==e?a.push({pathname:a.pathname,query:"profile"!==e?{...a.query,p:e}:null},void 0,{shallow:!0}):f()};return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(d.a,{className:ev().container,children:(0,r.jsxs)(e_.A,{children:[(0,r.jsx)(c.h,{order:1,className:ev().titlePage,children:o("profilePage.t
1itle")}),(0,r.jsxs)(u.t,{value:E,orientation:"vertical","data-cy":"profile-sidebar",classNames:{list:(0,C.A)(ev().sideBar,E!==M[0].slug&&i&&ev().hideBox),root:ev().sideBarRoot,tabLabel:ev().sideBarLabel,tab:ev().sideBarTab,panel:(0,C.A)(ev().tabPanel,E===M[0].slug&&i&&ev().hideBox)},onChange:D,children:[(0,r.jsxs)(u.t.List,{"data-cy":"profile-navigation",children:[i&&(0,r.jsxs)(n.s,{gap:12,justify:"space-between",align:"center",w:"100%",p:16,className:ev().sideBarProfile,children:[(0,r.jsx)(n.s,{gap:12,align:"center",className:ev().sideBarProfileBox,children:(0,r.jsxs)(d.a,{className:ev().middle,children:[(0,r.jsx)(c.h,{order:3,className:ev().sideBarProfileTitle,children:null==B?void 0:B.data.name}),(0,r.jsx)(m.E,{className:ev().sideBarProfileEmail,children:null==B?void 0:B.data.email})]})}),(0,r.jsx)(p.$,{variant:"transparent",onClick:()=>D("profile-edit"),p:0,children:(0,r.jsx)(b,{className:ev().editIcon})})]}),M.map(e=>(0,r.jsx)(u.t.Tab,{value:e.slug,leftSection:e.icon,className:e.slug===M[0].slug&&i?ev().hideBox:"",children:(0,r.jsxs)(r.Fragment,{children:[e.title,(0,r.jsx)("span",{children:e.desc})]})})),(0,r.jsxs)(d.a,{className:ev().leftCardFooter,children:[(0,r.jsxs)("h3",{children:[o("profilePage.menus.countdown.desc"),":"]}),T>k&&(0,r.jsx)(ej,{targetDate:S+I}),T<k&&(0,r.jsx)(ej,{targetDate:T})]})]}),(0,r.jsxs)(d.a,{"data-cy":"profile-content",w:E===M[0].slug&&i?"auto":"100%",children:[M.map(e=>(0,r.jsx)(u.t.Panel,{value:e.slug,children:e.component})),(0,r.jsx)(u.t.Panel,{value:"profile-edit",children:(0,r.jsx)(eh,{isEdited:!0})})]})]}),(0,r.jsx)(eb,{isModalsLogoutConfirmation:l,close:_})]})})})};var ey=a(95365),ew=!0;let eN=()=>{let e=(0,ey.V)(),t=(0,s.useTranslations)("meta");return(0,r.jsx)(r.Fragment,{children:e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.bV,{title:t("titleAstranautsProfile")}),(0,r.jsx)(eC,{})]})})}},16588:e=>{e.exports={container:"ChangePassword_container__EmJVS",titleClose:"ChangePassword_titleClose__QPo4h",progressCard:"ChangePassword_progressCard__3XvPR",buttonBox:"ChangePassword_buttonBox__y3nq_",buttonActive:"ChangePassword_buttonActive__42T9e",mobileNavigation:"ChangePassword_mobileNavigation__o35J9"}},19613:(e,t,a)=>{"use strict";a.d(t,{v:()=>i});var r=a(86013),s=a(2634),o=a(37060);let i=e=>{let{meta:t,options:a}=null!=e?e:{};return(0,r.I)({...a,queryKey:["Profile List","meta",t],queryFn:()=>(0,o.c)().get(s.A.GET_PROFILE,{params:t,headers:{Authorization:"Bearer ".concat(null==e?void 0:e.token)}}).then(e=>e.data)})}},25708:e=>{e.exports={gridInner:"ProfileLayout_gridInner__0x9Td",container:"ProfileLayout_container__Zs3pM",titlePage:"ProfileLayout_titlePage__yh2W_",content:"ProfileLayout_content__h3uH8",breadcrumbs:"ProfileLayout_breadcrumbs__Wm3zL",gridSection:"ProfileLayout_gridSection__t2WSA",leftCard:"ProfileLayout_leftCard__9wDoj",menu:"ProfileLayout_menu__i_nKX",menuActive:"ProfileLayout_menuActive__4p9eb",menuLogout:"ProfileLayout_menuLogout__3U7IZ",leftCardFooter:"ProfileLayout_leftCardFooter__w3uKk",count:"ProfileLayout_count__liHsY",desc:"ProfileLayout_desc__D6Wfd",rightContent:"ProfileLayout_rightContent__025Xh",hideBox:"ProfileLayout_hideBox__ImbWv",sideBar:"ProfileLayout_sideBar__dVfOv",sideBarRoot:"ProfileLayout_sideBarRoot__7O9QQ",sideBarTab:"ProfileLayout_sideBarTab__498MZ",sideBarLabel:"ProfileLayout_sideBarLabel__EUce_",sideBarProfileBox:"ProfileLayout_sideBarProfileBox__vYroI",sideBarProfileTitle:"ProfileLayout_sideBarProfileTitle__8pYPe",sideBarProfileEmail:"ProfileLayout_sideBarProfileEmail__ZjFZn",tabPanel:"ProfileLayout_tabPanel__qKM_1"}},32769:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var r=a(94458),s=a(5694),o=a(17790),i=a(84207),n=a.n(i);let l=e=>{let{classNames:t,...a}=e;return(0,r.jsx)(s.k,{...a,classNames:{label:n().label,root:(0,o.A)(n().root,a.disabled&&n().disabled),input:n().input,required:n().required}})}},46831:(e,t,a)=>{"use strict";a.d(t,{L:()=>s});var r=a(68658);let s=e=>{let t=new Date(e).getTime(),[a,s]=(0,r.useState)(t-new Date().getTime());return(0,r.useEffect)(()=>{let e=setInterval(()=>{s(t-new Date().getTime())},1e3);return()=>clearInterval(e)},[t]),(e=>[Math.floor(e/864e5),Math.floor(e%864e5/36e5),Math.floor(e%36e5/6e4),Math.floor(e%6e4/1e3)])(a)}},48437:e=>{e.exports={progress:"FormProgress_progress__OAIR9",tooltip:"FormProgress_tooltip__GAkfC",progressBox:"FormProgress_progressBox__SFBYs",progressInfoBox:"FormProgress_progressInfoBox__QwyNw",progressDesc:"FormProgress_progressDesc__wnPN_",progressIndicator:"FormProgress_progressIndicator__iCzUA",cir
1cleCheck:"FormProgress_circleCheck__FEvbu"}},49721:(e,t,a)=>{"use strict";a.d(t,{h:()=>g});var r=a(68658),s=a(81547),o=a(50975),i=a(22489),n=a(41041),l=a(88035),d=a(93322);let c=["h1","h2","h3","h4","h5","h6"];var u={root:"m-8a5d1357"};let m={order:1},p=(0,s.V)((e,{order:t,size:a,lineClamp:r,textWrap:s})=>{let o=function(e,t){let a=void 0!==t?t:`h${e}`;return c.includes(a)?{fontSize:`var(--mantine-${a}-font-size)`,fontWeight:`var(--mantine-${a}-font-weight)`,lineHeight:`var(--mantine-${a}-line-height)`}:{fontSize:(0,d.D)(a),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}(t,a);return{root:{"--title-fw":o.fontWeight,"--title-lh":o.lineHeight,"--title-fz":o.fontSize,"--title-line-clamp":"number"==typeof r?r.toString():void 0,"--title-text-wrap":s}}}),g=(0,l.P)((e,t)=>{let a=(0,o.Y)("Title",m,e),{classNames:s,className:l,style:d,styles:c,unstyled:g,order:h,vars:f,size:_,variant:P,lineClamp:v,textWrap:x,mod:j,...b}=a,C=(0,i.I)({name:"Title",props:a,classes:u,className:l,style:d,classNames:s,styles:c,unstyled:g,vars:f,varsResolver:p});return[1,2,3,4,5,6].includes(h)?r.createElement(n.a,{...C("root"),component:`h${h}`,variant:P,ref:t,mod:[{order:h,"data-line-clamp":"number"==typeof v},j],size:_,...b}):null});g.classes=u,g.displayName="@mantine/core/Title"},64124:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r=a(68658),s=a(41106),o=a(98353);let i=e=>{let t=(0,o.useRouter)(),{form:a,initialValues:i}
1=e,{validate:n,clearFieldError:l,values:d}=a;(0,r.useEffect)(()=>{let e=structuredClone(d),a=structuredClone(i);(0,s.flatten)(e),(0,s.flatten)(a);let r=()=>{for(let t in n(),e)if(Object.hasOwn(e,t)){let r=Object.hasOwn(a,t),s=e[t];r&&a[t]===s&&l(t),!r&&s&&l(t)}};return t.events.on("routeChangeComplete",r),()=>{t.events.off("routeChangeComplete",r)}},[t.events,n,l,d,i])}},65563:(e,t,a)=>{"use strict";a.d(t,{y:()=>r});let r=e=>{let t=e.length,a=e.filter(e=>!!e).length;return{progress:Math.floor(a/t*100),filledFields:a,totalFields:t}}},70534:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile",function(){return a(16484)}])},73416:(e,t,a)=>{"use strict";a.d(t,{Z:()=>P});var r=a(68658),s=a(24139),o=a(81547),i=a(50975),n=a(22489),l=a(5292),d=a(64278);let[c,u]=(0,a(22425).F)("Card component was not found in tree");var m=a(41041),p={root:"m-e615b15f",section:"m-599a2148"};let g={},h=(0,l.v)((e,t)=>{let{classNames:a,className:s,style:o,styles:n,vars:l,withBorder:d,inheritPadding:c,mod:p,...h}=(0,i.Y)("CardSection",g,e),f=u();return r.createElement(m.a,{ref:t,mod:[{"with-border":d,"inherit-padding":c},p],...f.getStyles("section",{className:s,style:o,styles:n,classNames:a}),...h})});h.classes=p,h.displayName="@mantine/core/CardSection";let f={},_=(0,o.V)((e,{padding:t})=>({root:{"--card-padding":(0,s.GY)(t)}})),P=(0,l.v)((e,t)=>{let a=(0,i.Y)("Card",f,e),{classNames:s,className:o,style:l,styles:u,unstyled:m,vars:g,children:P,padding:v,...x}=a,j=(0,n.I)({name:"Card",props:a,classes:p,className:o,style:l,classNames:s,styles:u,unstyled:m,vars:g,varsResolver:_}),b=r.Children.toArray(P),C=b.map((e,t)=>"object"==typeof e&&e&&"type"in e&&e.type===h?(0,r.cloneElement)(e,{"data-first-section":0===t||void 0,"data-last-section":t===b.length-1||void 0}):e);return r.createElement(c,{value:{getStyles:j}},r.createElement(d.t,{ref:t,unstyled:m,...j("root"),...x},C))});P.classes=p,P.displayName="@mantine/core/Card",P.Section=h},74664:e=>{e.exports={editProfile:"EditProfileForm_editProfile__78CeO",fields:"EditProfileForm_fields__qad_R",buttonActive:"EditProfileForm_buttonActive__b7jjv",profile:"EditProfileForm_profile__TdpeV",profileWrapper:"EditProfileForm_profileWrapper__r2ueb"}},83064:e=>{e.exports={container:"FormulirPengajuanPage_container__UBtVg",titleClose:"FormulirPengajuanPage_titleClose__XviPc",buttonActive:"FormulirPengajuanPage_buttonActive__oUHPY",mobileNavigation:"FormulirPengajuanPage_mobileNavigation__cGfNl"}},83393:(e,t,a)=>{"use strict";a.d(t,{a:()=>i});var r=a(86013),s=a(2634),o=a(37060);let i=e=>{let{meta:t,options:a,token:i}=null!=e?e:{};return(0,r.I)({...a,queryKey:["Submission Data","meta",t],queryFn:()=>(0,o.c)().get(s.A.GET_SUBMISSION_FORM,{params:t,headers:{Authorization:"Bearer ".concat(i)}}).then(e=>e.data)})}},84207:e=>{e.exports={label:"CustomTextInput_label__N_yN1",disabled:"CustomTextInput_disabled__vsZ0c",root:"CustomTextInput_root__wOc5i",input:"CustomTextInput_input__nz4nF"}},87876:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});let r=async e=>{try{return[await e,null]}catch(e){return[null,e]}}},94455:e=>{e.exports={container:"ProfilePage_container__UbzNU",containerContent:"ProfilePage_containerContent__moS0T",middle:"ProfilePage_middle__TQUnj",editIcon:"ProfilePage_editIcon__RPKEc",containerContentProfile:"ProfilePage_containerContentProfile__qkIab",editNavigation:"ProfilePage_editNavigation__1ML4D",icon:"ProfilePage_icon__41KpY",buttonActive:"ProfilePage_buttonActive__Ks_rW",leftCard:"ProfilePage_leftCard__6zRkO",menu:"ProfilePage_menu___AuqV",menuActive:"ProfilePage_menuActive__emnqE",menuLogout:"ProfilePage_menuLogout__mO6HN",leftCardFooter:"ProfilePage_leftCardFooter__IWr_N",count:"ProfilePage_count__5Mr_o",desc:"ProfilePage_desc__wFtqj"}},95365:(e,t,a)=>{"use strict";a.d(t,{V:()=>n});var r=a(68658),s=a(24760),o=a(98353),i=a(43824);let n=()=>{let e=(0,o.useRouter)(),[t,a]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(s.A.get(i.aq)){let t=Number(s.A.get("".concat(i.aq,"_expiration")));t&&Math.floor(Date.now()/1e3)>t?(s.A.remove(i.aq),e.push("/generate-sign-in")):a(!0)}else e.push("/generate-sign-in")},[e]),t}},98137:(e,t,a)=>{"use strict";a.d(t,{O:()=>d});var r=a(68658),s=a(5292),o=a(94948),i=a(50975),n=a(89174);let l={__staticSelector:"InputBase",withAria:!0},d=(0,s.v)((e,t)=>{let{inputProps:a,wrapperProps:s,...d}=function(e,t,a){let r=(0,i.Y)(e,t,a),{label:s,description:o,error:l,required:d,classNames:c,styles:u,className:m,unstyled:p,__staticSelector:g,__stylesApiProps:h,errorProps:f,labelProps:_,descriptionProps:P,wrapperProps:v,id:x,size:j,style:b,inputContainer:C,inputWrapperOrder:y,withAsterisk:w,variant:N,vars:F,mod:A,...B}=r,{styleProps:S,rest:T}=(0,n.j)(B),k={label:s,description:o,error:l,required:d,classNames:c,className:m,__staticSelector:g,__stylesApiProps:h||r,errorProps:f,labelProps:_,descriptionProps:P,unstyled:p,styles:u,size:j,style:b,inputContainer:C,inputWrapperOrder:y,withAsterisk:w,variant:N,id:x,mod:A,...v};return{...T,classNames:c,styles:u,unstyled:p,wrapperProps:{...k,...S},inputProps:{required:d,classNames:c,styles:u,unstyled:p,size:j,__staticSelector:g,__stylesApiProps:h||r,error:l,variant:N,id:x}}}("InputBase",l,e);return r.createElement(o.p.Wrapper,{...s},r.createElement(o.p,{...a,...d,ref:t}))});d.classes={...o.p.classes,...o.p.Wrapper.classes},d.displayName="@mantine/core/InputBase"}},e=>{e.O(0,[948,4,189,636,593,792],()=>e(e.s=70534)),_N_E=e.O()}]);

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.