PageSourceSearch

https://golektruk.com/_next/static/chunks/4035-05d986b6628197c1.js

js golektruk.com collected 2026-10-01 15:18:41 UTC 34,288 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4035,7498],{17649:function(e,t,s){var a=s(85893),l=s(67294),i=s(51649),n=s(94184),o=s.n(n);t.Z=(0,l.memo)(function(e){let{id:t,menu:s,icon:n,isActive:c,children:r,onClick:d,devider:u=!0,className:x,isPendingSubscribe:p}=e,[m,h]=(0,l.useState)(c);return(0,a.jsxs)("div",{className:o()("flex flex-col gap-2",x),children:[(0,a.jsxs)("button",{id:t,className:o()("flex items-center justify-between gap-3"),onClick:()=>{r instanceof Object?h(!m):d&&d()},children:[(0,a.jsxs)("div",{className:o()("flex items-center gap-3",c&&"desktop:text-primary"),children:[!!n&&(0,a.jsx)("div",{children:n}),(0,a.jsx)("p",{className:o()("text-left text-12 font-medium capitalize",c&&"desktop:font-semibold"),children:s})]}),(0,a.jsxs)("div",{className:"flex items-center gap-[13px]",children:[p&&(0,a.jsx)("div",{className:"block desktop:hidden",children:(0,a.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{width:"18",height:"18",rx:"9",fill:"#CD3A31"}),(0,a.jsx)("path",{d:"M8.588 13V4.96L8.972 5.368H6.608V4.6H9.452V13H8.588Z",fill:"white"})]})}),(0,a.jsx)("div",{className:o()("-rotate-90 text-neutral-600 transition-all desktop:-rotate-90 desktop:text-neutral-1000",r instanceof Object?"block":"desktop:hidden",m&&"desktop:rotate-0"),children:(0,a.jsx)(i.OId,{})}),p&&(0,a.jsx)("div",{className:"hidden desktop:block",children:(0,a.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{width:"18",height:"18",rx:"9",fill:"#CD3A31"}),(0,a.jsx)("path",{d:"M8.588 13V4.96L8.972 5.368H6.608V4.6H9.452V13H8.588Z",fill:"white"})]})})]})]}),(0,a.jsx)("div",{className:o()("ml-7 flex flex-col justify-items-start gap-4 overflow-hidden text-left text-14 transition-all duration-300 ",m?"max-h-72":"max-h-0"),children:r}),u&&(0,a.jsx)("hr",{className:"".concat(n?"ml-7 ":"","border-neutral-300")})]})})},7498:function(e,t,s){s.r(t),s.d(t,{default:function(){return u}});var a=s(85893),l=s(67294),i=s(1280),n=s(45314),o=s(43903);let c=()=>{let[e,t]=(0,l.useState)(0);return(0,l.useEffect)(()=>{function e(){t(window.innerHeight)}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,l.useEffect)(()=>{t(window.innerHeight)},[]),e},r=()=>{let[e,t]=(0,l.useState)(0);return(0,l.useEffect)(()=>{let e=()=>t(window.scrollY||window.pageYOffset);return window.removeEventListener("scroll",e),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),e},d=e=>{var t;let{target:s,offset:d=12,onResolve:u,onSkip:x,debugMode:p=!1,collapseOnResizeToDesktop:m=!1,collapseOnResizeToMobile:h=!1}=e,k=(0,o.Z)(),g=(0,l.useRef)(0),[v,f]=(0,l.useState)(0),[j,b]=(0,l.useState)(null),y=c(),N=r(),w=()=>{//! When the element is nowhere to be found and the attempt to search it is bigger than last attempt value
2if(v-g.current>20||!s)return;let e=document.getElementById(s.id);if(!e){setTimeout(()=>f(e=>++e),300);return}g.current=v,b(e)};(0,l.useEffect)(()=>{((null==s?void 0:s.retryOnScroll)||(null==s?void 0:s.retryOnScreenHeight))&&w()},[s,N,y]),(0,l.useEffect)(()=>{w()},[s,k,v]),(0,l.useEffect)(()=>{j&&(j.getBoundingClientRect().top+window.scrollY>=window.innerHeight/2||(null==s?void 0:s.forceScroll))&&((null==s?void 0:s.disabledScroll)||window.scrollTo({top:j.getBoundingClientRect().top+window.scrollY+((null==s?void 0:s.scrollOffset)?s.scrollOffset(window.innerHeight):-.5*window.innerHeight),behavior:"smooth"}))},[j,s]);let C=j?{top:j.getBoundingClientRect().top+((null==s?void 0:s.fixedTarget)?0:window.scrollY)-d+"px",left:j.getBoundingClientRect().left-d+"px",width:j.clientWidth+2*d+"px",height:j.clientHeight+2*d+"px"}:{},Z=(0,l.useMemo)(()=>{var e,t;if(!j)return{};let a=null!==(e=null==s?void 0:s.tooltipAnchor)&&void 0!==e?e:"bottom-start";return"android"===k?a.startsWith("top")?{bottom:"100%"}:{top:"100%"}:{top:a.startsWith("bottom")?"100%":/left-start|right-start/.test(a)?0:/^(left|right)$/.test(a)?"50%":"initial",left:a.startsWith("right")?"100%":/top-start|bottom-start/.test(a)?0:/^(top|bottom)$/.test(a)?"50%":"initial",right:a.startsWith("left")?"100%":/top-end|bottom-end/.test(a)?0:"initial",bottom:a.startsWith("top")?"100%":/left-end|right-end/.test(a)?0:"initial",transform:/^(top|bottom)$/.test(a)?"translateX(-50%)":/^(left|right)$/.test(a)?"translateY(-50%)":"initial",alignItems:(null==s?void 0:s.tooltipAlign)==="right"?"flex-end":"flex-start",width:null!==(t=null==s?void 0:s.tooltipWidth)&&void 0!==t?t:"40vw"}},[j,null==s?void 0:s.tooltipAnchor,k]);return j&&s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"coachmark-overlay ".concat((null==s?void 0:s.fixedTarget)?"fixed":"absolute"," bg-transparent transition-all"),style:C,children:[p&&(0,a.jsxs)("div",{className:"w-fit border-b border-r border-danger bg-neutral-100/90 text-danger",children:["X: ",C.left,(0,a.jsx)("br",{}),"Y: ",C.top]}),(0,a.jsx)(n.Z,{children:(0,a.jsxs)("div",{className:"content ".concat(p&&"border border-danger"," ").concat(/^(left|right)/.test(null!==(t=null==s?void 0:s.tooltipAnchor)&&void 0!==t?t:"")?"px-4":"py-4"," absolute z-[100000] hidden flex-col gap-4 text-neutral-100 transition-all desktop:flex"),style:Z,children:[(0,a.jsx)("div",{className:"tooltip break-words text-18 font-semibold",children:null==s?void 0:s.message}),(0,a.jsxs)("div",{className:"btn",children:[!(null==s?void 0:s.isFinalStep)&&(0,a.jsx)(i.Z,{color:"neutral",size:"m",variant:"text",onClick:e=>{e.stopPropagation(),e.preventDefault(),x()},disabled:"android"===k,variantClassname:"text-neutral-100",children:"Lewati"}),(0,a.jsx)(i.Z,{disabled:"android"===k,color:"neutral",variant:"outlined",size:"m",onClick:e=>{e.stopPropagation(),e.preventDefault(),u(!!(null==s?void 0:s.isFinalStep))},children:(null==s?void 0:s.isFinalStep)?"Selesai":"Lanjut"})]})]})})]}),(0,a.jsx)("div",{className:"".concat((null==s?void 0:s.fixedTarget)?"fixed":"absolute"," container left-1/2 z-[100000] w-full -translate-x-1/2 desktop:hidden"),style:{to
2p:C.top,height:C.height},children:(0,a.jsx)("div",{className:"content absolute left-1/2 w-full -translate-x-1/2 text-neutral-100  transition-all desktop:hidden",style:Z,children:(0,a.jsx)(n.Z,{children:(0,a.jsxs)("div",{className:"flex w-full flex-col gap-2 p-2 ".concat(p?"border border-danger":""," \n              ").concat((null==s?void 0:s.tooltipAlign)==="right"?"items-end":"items-start","\n              "),children:[(0,a.jsx)("div",{className:"tooltip flex-1 break-words text-14 font-medium",children:null==s?void 0:s.message}),(0,a.jsxs)("div",{className:"btn",children:[!(null==s?void 0:s.isFinalStep)&&(0,a.jsx)(i.Z,{color:"neutral",variant:"text",onClick:()=>{x()},disabled:"desktop"===k,variantClassname:"text-neutral-100",children:"Lewati"}),(0,a.jsx)(i.Z,{color:"neutral",variant:"outlined",onClick:()=>{u(!!(null==s?void 0:s.isFinalStep))},disabled:"desktop"===k,children:(null==s?void 0:s.isFinalStep)?"Selesai":"Lanjut"})]})]})})})}),(0,a.jsx)("div",{className:"fixed inset-0 z-[99998] bg-transparent"})]}):null};var u=d},77776:function(e,t,s){var a=s(85893);let l=e=>{let{className:t}=e;return(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"#000",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,a.jsx)("path",{d:"M18.6094 5.25937C17.475 3.31875 15.9281 2.25 14.25 2.25H9.75C8.07188 2.25 6.525 3.31875 5.39062 5.25937C4.25625 7.2 3.75 9.46875 3.75 12C3.75 14.5312 4.33125 16.9312 5.39062 18.7406C6.45 20.55 8.07188 21.75 9.75 21.75H14.25C15.9281 21.75 17.475 20.6812 18.6094 18.7406C19.7437 16.8 20.25 14.5312 20.25 12C20.25 9.46875 19.6687 7.06875 18.6094 5.25937ZM18.7313 11.25H15.7313C15.6562 9.6375 15.3469 8.09062 14.8219 6.75H17.6906C18.2625 8.00625 18.6469 9.5625 18.7313 11.25ZM16.8 5.25H14.1094C13.7919 4.70932 13.4145 4.20614 12.9844 3.75H14.25C15.1875 3.75 16.0687 4.3125 16.8 5.25ZM14.25 20.25H12.9844C13.4145 19.7939 13.7919 19.2907 14.1094 18.75H16.8C16.0687 19.6875 15.1875 20.25 14.25 20.25ZM17.6906 17.25H14.8219C15.3469 15.9094 15.6562 14.3625 15.7313 12.75H18.7313C18.6469 14.4375 18.2625 15.9937 17.6906 17.25Z"})})};t.Z=l},38258:function(e,t,s){var a=s(85893);let l=e=>{let{className:t}=e;return(0,a.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#000",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,a.jsx)("path",{d:"M15.9375 3.67188H2.15935C1.60957 3.67188 1.08226 3.89007 0.693208 4.27853C0.30416 4.66699 0.0851786 5.19398 0.0843506 5.74376V12.0656H12.8969C13.1478 11.2432 13.656 10.5231 14.3468 10.0112C15.0377 9.49927 15.8745 9.2226 16.7344 9.22188C17.1701 9.22025 17.6031 9.291 18.0156 9.43126V5.74376C18.0156 5.47115 17.9618 5.20122 17.8573 4.94944C17.7528 4.69766 17.5996 4.46898 17.4066 4.27651C17.2135 4.08403 16.9844 3.93155 16.7323 3.8278C16.4802 3.72405 16.2101 3.67106 15.9375 3.67188ZM5.17498 8.86563L3.8781 8.18126L2.58123 8.86563L2.83123 7.42188L1.7781 6.39688H3.2281L3.8781 4.86876L4.5281 6.39688H5.9781L4.93123 7.41876L5.17498 8.86563ZM12.7281 13.2406C12.7278 13.0618 12.7403 12.8833 12.7656 12.7063H0.0843506V12.9438C0.0892942 13.4908 0.31009 14.0138 0.698694 14.3989C1.0873 14.784 1.61226 15 2.15935 15H13.125C12.8583 14.4477 12.7225 13.8414 12.7281 13.2281V13.2406Z"}),(0,a.jsx)("path",{d:"M16.6094 9.71875C15.9553 9.71875 15.316 9.91274 14.7722 10.2762C14.2284 10.6396 13.8046 11.1562 13.5545 11.7605C13.3043 12.3648 13.239 13.0297 13.3669 13.6712C13.4947 14.3126 13.8099 14.9017 14.2726 15.364C14.7353 15.8262 15.3247 16.1409 15.9663 16.2681C16.6078 16.3953 17.2727 16.3294 17.8768 16.0787C18.4808 15.828 18.997 15.4037 19.3599 14.8596C19.7228 14.3155 19.9162 13.6759 19.9156 13.0219C19.9148 12.1455 19.5661 11.3054 18.9461 10.686C18.3262 10.0667 17.4857 9.71875 16.6094 9.71875ZM17.9031 13.55H16.4969C16.414 13.55 16.3345 13.5171 16.2759 13.4585C16.2173 13.3999 16.1844 13.3204 16.1844 13.2375V11.1125C16.1844 11.0296 16.2173 10.9501 16.2759 10.8915C16.3345 10.8329 16.414 10.8 16.4969 10.8C16.5797 10.8 16.6592 10.8329 16.7178 10.8915C16.7764 10.9501 16.8094 11.0296 16.8094 11.1125V12.9219H17.9031C17.986 12.9219 18.0655 12.9548 18.1241 13.0134C18.1827 13.072 18.2156 13.1515 18.2156 13.2344C18.2156 13.3173 18.1827 13.3967 18.1241 13.4553C18.0655 13.514 17.986 13.5469 17.9031 13.5469V13.55Z"})]})};t.Z=l},23205:function(e,t,s){var a=s(85893);let l=e=>{let{className:t}=e;return(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"#000",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,a.jsx)("path",{d:"M0.0843506 13.9719C0.0843506 14.5802 0.326013 15.1636 0.756174 15.5938C1.18634 16.024 1.76976 16.2656 2.3781 16.2656H17.625C17.926 16.2656 18.2242 16.2063 18.5023 16.091C18.7804 15.9757 19.0331 15.8066 19.2458 15.5936C19.4585 15.3806 19.6272 15.1277 19.7421 14.8494C19.8571 14.5711 19.916 14.2729 19.9156 13.9719V13.7094H0.0843506V13.9719ZM17.625 3.73438H2.3781C1.7703 3.73437 1.18735 3.97561 0.757278 4.40509C0.327206 4.83458 0.0851787 5.4172 0.0843506 6.025V13.0156H19.9156V6.025C19.9156 5.41749 19.6743 4.83486 19.2447 4.40528C18.8151 3.97571 18.2325 3.73438 17.625 3.73438ZM5.7156 9.47813L4.28122 8.72188L2.84373 9.47813L3.12498 7.87812L1.95623 6.74688H3.56247L4.28122 5.05938L4.99997 6.74688H6.60622L5.44685 7.87812L5.7156 9.47813Z"})})};t.Z=l},20230:function(e,t,s){var a=s(85893),l=s(11163),i=s(25675),n=s.n(i),o=s(56216),c=s(69727);let r=e=>{let{hideHelpLink:t}=e,s=(0,l.useRouter)(),{data:i}=(0,o.Os)(),{mutate:r}=(0,c.p3)(),{mutate:d}=(0,c.Do)();return(0,a.jsxs)("section",{className:"space-y-2 desktop:space-y-0",children:[(0,a.jsx)("p",{className:"text-14 font-semibold text-neutral-1000 desktop:hidden",children:"Saldo Golek Koin"}),(0,a.jsxs)("section",{className:"bg-gradient-1 grid grid-cols-[min-content_auto_auto] gap-x-2 rounded px-2 py-4 text-neutral-100 shadow-1",children:[(0,a.jsx)("div",{className:"pointer-events-none relative row-span-2 h-10 w-10 select-none desktop:h-8 desktop:w-8",children:(0,a.jsx)(n(),{src:"/golekcoin-logo.svg",alt:"coin",fill:!0})}),(0,a.jsx)("p",{className:"".concat(t?"col-span-2 ":"","text-12 font-medium desktop:text-14"),children:"Golek 
2Koin Anda"}),!t&&(0,a.jsx)("p",{className:"cursor-pointer text-right text-11 underline desktop:text-12",onClick:()=>{s.pathname.includes("/gokil")?d({mode:"user",scope:"apa_itu_golek_koin_(akun_saya)"}):r({mode:"user",scope:"apa_itu_golek_koin_(akun_saya)"}),s.push("/help/coin-info")},children:"Apa itu Golek Koin?"}),(0,a.jsx)("p",{className:"".concat(t?"col-span-2 ":"","text-18 font-bold"),children:null==i?void 0:i.data.balance.toLocaleString("id-ID")})]})]})};t.Z=r},64035:function(e,t,s){s.d(t,{Z:function(){return z}});var a=s(85893),l=s(5434),i=s(17649),n=s(8193),o=s(11163),c=s(25604),r=s(28616),d=s(75849),u=s(85945),x=s(21311),p=s(16863),m=s(60338),h=s(9446),k=s(85734),g=s(23205),v=s(38258),f=s(147),j=s(67294),b=s(8675),y=s(18396),N=s(34497),w=s(77088),C=s(48379),Z=s(22920);let A=e=>{let{page:t,setPage:s,onSuccess:l}=e,[i,n]=(0,j.useState)({preset:"",customReason:""});switch(t){case"consequences":return(0,a.jsx)(b.Z,{onContinue:()=>s("survey")});case"survey":return(0,a.jsx)(y.Z,{initialValues:i,onSubmit:e=>{n(e),s("confirm")}});case"confirm":return(0,a.jsx)(N.Z,{onSubmit:()=>{C.Z.delete("/users/delete",{params:{reason:"".concat(i.preset," : ").concat(i.customReason)}}).then(()=>{l()}).catch(()=>{(0,Z.Am)("Terjadi kesalahan dalam menghapus akun")})}});default:return(0,a.jsx)(w.Z,{})}},H=e=>{let{onSuccess:t}=e,[s,i]=(0,j.useState)("consequences");return(0,a.jsxs)("section",{children:[(0,a.jsxs)("header",{className:"flex items-center justify-center space-x-4",children:["consequences"!==s&&(0,a.jsx)(l.KYK,{className:"h-5 w-5 cursor-pointer",onClick:()=>{"survey"===s?i("consequences"):"confirm"===s&&i("survey")}}),(0,a.jsx)("h2",{className:"text-18 font-semibold",children:"Hapus Akun GolekTruk"})]}),(0,a.jsx)(A,{page:s,setPage:i,onSuccess:()=>{t()}})]})};var q=s(77776),S=s(56216),P=s(69727),_=s(20230),L=s(43903),D=function(e){var t,s;let{email:j,phone:b,username:y,desktopCoachmark:N}=e,{push:w,pathname:C,asPath:Z}=(0,o.useRouter)(),A=(0,o.useRouter)(),D="desktop"===(0,L.Z)(),{setToken:E}=(0,r.Z)(),{resetUser:T}=(0,d.Z)(),{statusCompany:V}=(0,h.Z)(),B=(0,u.NL)(),R=(0,m.Z)(),{data:G}=(0,f.DP)(),{data:K}=(0,S.Zw)({status:["PENDING1","PENDING2"]}),{mutate:M}=(0,P.nG)();return(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("div",{className:"m-4"}),(0,a.jsxs)("section",{id:N?"":"my-account-coachmark-1-mobile",className:"mt-4 flex gap-2 px-4 desktop:mt-0 desktop:flex-col",children:[(0,a.jsx)(c.Z,{username:y,className:"h-10 w-10 shrink-0 desktop:hidden"}),(0,a.jsxs)("article",{className:"w-full space-y-1 overflow-hidden",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between space-x-2",children:[(0,a.jsx)("p",{title:"nama user",className:"overflow-hidden truncate text-14 font-semibold desktop:text-20",children:y}),(0,a.jsxs)("button",{onClick:()=>{w("/my-account/edit-profile")},className:"flex items-center justify-center space-x-1 text-12 text-primary desktop:hidden",children:[(0,a.jsx)(l.zmo,{}),(0,a.jsx)("span",{className:"font-semibold",children:"Ubah"})]})]}),(0,a.jsx)("p",{className:"truncate text-11 desktop:text-14",children:j}),(0,a.jsx)("p",{className:"text-11 desktop:text-14",children:b})]})]}),(0,a.jsx)("section",{className:"mx-4 mt-4",children:(0,a.jsx)(_.Z,{})}),(0,a.jsxs)("section",{className:"mt-7 flex flex-col gap-4 px-4 desktop:mt-[34px]",children:[(0,a.jsx)("div",{className:"hidden desktop:block",children:(0,a.jsx)(i.Z,{id:N?"my-account-coachmark-1-desktop":"",menu:"Akun",icon:(0,a.jsx)(l.Vyx,{className:"text-20 desktop:text-24 ".concat(C.includes("/my-account")?"text-primary":"text-neutral-800 desktop:text-neutral-1000")}),isActive:C.includes("/my-account"),onClick:()=>w("/my-account")})}),(0,a.jsx)(i.Z,{id:"my-account-coachmark-2-".concat(N?"desktop":"mobile"),menu:"informasi usaha",icon:(0,a.jsx)(l.bwC,{className:"text-20 desktop:text-24 ".concat(C.includes("/company/[id]/[service]")?"text-primary":"text-neutral-800 desktop:text-neutral-1000")}),isActive:C.includes("/company/[id]/[service]"),onClick:()=>w("/company/profile/view")}),(0,a.jsx)("div",{className:"hidden desktop:block",children:(0,a.jsxs)(i.Z,{id:N?"my-account-coachmark-3-desktop":"",menu:"Kontak",icon:(0,a.jsx)(l.IXo,{className:"text-20 desktop:text-24 ".concat(Z.match(/contact-person/)?"text-primary":"text-neutral-800 de
2sktop:text-neutral-1000")}),isActive:!!Z.match(/contact-person/),children:[(0,a.jsx)("button",{className:"text-left text-14 ".concat(Z.match(/shipper\/contact-person/)?"text-primary":""),onClick:()=>w("/shipper/contact-person"),children:"Kontak Shipper"}),(0,a.jsx)("button",{className:"text-left text-14 ".concat(Z.match(/trucker\/contact-person/)?"text-primary":""),onClick:()=>w("/trucker/contact-person"),children:"Kontak Trucker"})]})}),(0,a.jsx)("div",{className:"desktop:hidden",children:(0,a.jsx)(i.Z,{id:N?"":"my-account-coachmark-3-mobile",menu:"Kontak",icon:(0,a.jsx)(l.IXo,{className:"text-20 text-neutral-800 desktop:text-24"}),onClick:()=>A.push({query:{menu:"contactPerson"}},void 0,{shallow:!0})})}),(0,a.jsx)(i.Z,{id:"my-account-coachmark-4-".concat(N?"desktop":"mobile"),menu:"Paket Berlangganan Trucker",icon:(0,a.jsx)(g.Z,{className:"desktop:h-6 desktop:w-6 ".concat("/trucker/subscribe"===C||"/trucker/subscribe/category"===C||"/trucker/subscribe/category/[id]"===C||"/trucker/subscribe/package/[id]"===C?"fill-primary":"fill-neutral-800 desktop:fill-neutral-1000")}),isActive:"/trucker/subscribe"===C||"/trucker/subscribe/category"===C||"/trucker/subscribe/category/[id]"===C||"/trucker/subscribe/package/[id]"===C,onClick:()=>{w("/trucker/subscribe")}}),(0,a.jsx)(i.Z,{menu:"Riwayat Berlangganan Trucker",icon:(0,a.jsx)(v.Z,{className:"desktop:h-6 desktop:w-6 ".concat("/trucker/subscribe/history"===C||"/trucker/subscribe/[id]"===C||"/trucker/subscribe/pending"===C?"fill-primary":"fill-neutral-800 desktop:fill-neutral-1000")}),isActive:"/trucker/subscribe/history"===C||"/trucker/subscribe/[id]"===C||"/trucker/subscribe/pending"===C,onClick:()=>w("/trucker/subscribe/history"),isPendingSubscribe:Number(null==G?void 0:null===(t=G.data)||void 0===t?void 0:null===(s=t.data)||void 0===s?void 0:s.length)>0}),(0,a.jsx)("div",{className:"desktop:hidden",children:(0,a.jsx)(i.Z,{menu:"Syarat dan Ketentuan",icon:(0,a.jsx)(l.gbF,{className:"text-20 text-neutral-800"}),onClick:()=>w("/site-policy/user-terms")})}),(0,a.jsx)(i.Z,{id:"my-account-coachmark-5-".concat(N?"desktop":"mobile"),menu:"Golek Koin",icon:(0,a.jsx)(q.Z,{className:"h-5 w-5 desktop:h-auto desktop:w-auto ".concat(C.includes("/coin")?"fill-primary":"fill-neutral-800 desktop:fill-neutral-1000")}),isActive:C.includes("/coin"),onClick:()=>w("/coin"),isPendingSubscribe:!!(null==K?void 0:K.pages[0].data.total)}),(0,a.jsx)("div",{className:"desktop:hidden",children:(0,a.jsx)(i.Z,{menu:"Kebijakan Privasi",icon:(0,a.jsx)(l.aIF,{className:"text-20 text-neutral-800"}),onClick:()=>w("/site-policy/privacy-policy")})}),(0,a.jsx)("div",{className:"hidden desktop:block",children:(0,a.jsxs)(i.Z,{menu:"Riwayat Aktivitas",icon:(0,a.jsx)(n.t5C,{className:"text-20 desktop:text-24 ".concat(/^\/activity-logs/.test(C)?"text-primary":"text-neutral-800 desktop:text-neutral-1000")}),isActive:/^\/activity-logs/.test(C),children:[(0,a.jsx)("button",{className:"text-left text-14 ".concat(/^\/activity-logs\/account/.test(Z)?"text-primary":""),onClick:()=>w("/activity-logs/account"),children:"Riwayat Aktivitas Akun"}),(0,a.jsx)("button",{className:"text-left text-14 ".concat(/^\/activity-logs\/shipper/.test(Z)?"text-primary":""),onClick:()=>{"HAVE COMPANY"===V?w("/activity-logs/shipper"):(0,x.Z)(e=>(0,a.jsx)(k.default,{close:e,router:A}),{disableBackdropClose:!0})},children:"Riwayat Aktivitas Shipper"}),(0,a.jsx)("button",{className:"text-left text-14 ".concat(/^\/activity-logs\/trucker/.test(Z)?"text-primary":""),onClick:()=>{"HAVE COMPANY"===V?w("/activity-logs/trucker"):(0,x.Z)(e=>(0,a.jsx)(k.default,{close:e,router:A}),{disableBackdropClose:!0})},children:"Riwayat Aktivitas Trucker"})]})}),(0,a.jsx)("div",{className:"desktop:hidden",children:(0,a.jsx)(i.Z,{menu:"Riwayat Aktivitas",icon:(0,a.jsx)(n.t5C,{className:"text-20 text-neutral-800 desktop:text-24"}),onClick:()=>A.push({query:{menu:"activityLog"}},void 0,{shallow:!0})})}),(0,a.jsx)(i.Z,{menu:"Akun Yang Diblokir",icon:(0,a.jsx)(l.a7d,{className:"text-20 text-neutral-800 desktop:text-24 desktop:text-neutral-1000"}),devider:!1,isActive:"/block-account"===C,onClick:()=>{"NOT FOUND"==V?(0,x.Z)(e=>(0,a.jsx)(k.default,{close:()=>e(),router:A}),{disableBackdropClose:!0}):w("/block-account")}})]}),(0,a.jsx)("hr",{className:"my-2 border-2 border-neutral-200 desktop:border-[4px]"}),(0,a.jsxs)("div",{className:"flex flex-col gap-4 px-4 pb-2 pt-1",children:[(0,a.jsx)(i.Z,{menu:"Hapus Akun GolekTruk",icon:(0,a.jsx)(l.ZkW,{className:"text-20 text-neutral-800 de
2sktop:text-24 desktop:text-neutral-1000"}),onClick:()=>{D?(0,x.Z)(e=>(0,a.jsx)(H,{onSuccess:()=>{R(()=>{B.clear(),e()})}}),{disableBackdropClose:!0,customWidth:"desktop:max-w-lg desktop:w-full"}):w("/my-account/delete")}}),(0,a.jsx)(i.Z,{menu:"Keluar",icon:(0,a.jsx)(l.lE7,{className:"text-20 text-neutral-800 desktop:text-24 desktop:text-neutral-1000"}),onClick:()=>{M({mode:"user",scope:"keluar"}),(0,x.Z)(e=>(0,a.jsx)(p.Z,{onResolve:()=>{R(()=>{B.clear()}),e()},onReject:()=>e()}),{disableBackdropClose:!0})},devider:!1})]}),(0,a.jsx)("hr",{className:"my-1 border-2 border-neutral-200 desktop:hidden desktop:border-neutral-500"})]})},E=s(94184),T=s.n(E),V=s(48434),B=s(60872),R=s(51649),G=(0,j.memo)(function(e){let{id:t,menu:s,icon:l,isActive:i,children:n,onClick:o,divider:c=!0,className:r,isPendingSubscribe:d,totalPendingTransaction:u}=e,[x,p]=(0,j.useState)(i);return(0,a.jsxs)("div",{className:T()("flex flex-col gap-2",r),children:[(0,a.jsxs)("button",{id:t,className:T()("flex items-center justify-between gap-3"),onClick:()=>{n instanceof Object?p(!x):o&&o()},children:[(0,a.jsxs)("div",{className:T()("flex items-center gap-3",i&&"desktop:text-primary"),children:[!!l&&(0,a.jsx)("div",{children:l}),(0,a.jsx)("p",{className:T()("text-left text-12 font-medium capitalize",i&&"desktop:font-semibold"),children:s})]}),(0,a.jsxs)("div",{className:"flex items-center gap-[13px]",children:[(d||!!u)&&(0,a.jsx)("span",{className:"h-[1.125rem] w-[1.125rem] rounded-full bg-danger text-12 text-neutral-100",children:u||"1"}),(0,a.jsx)("div",{className:T()("-rotate-90 text-neutral-600 transition-all desktop:-rotate-90 desktop:text-neutral-1000",n instanceof Object?"block":"desktop:hidden",x&&"desktop:rotate-0"),children:(0,a.jsx)(R.OId,{})}),d&&(0,a.jsx)("div",{className:"hidden desktop:block",children:(0,a.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{width:"18",height:"18",rx:"9",fill:"#CD3A31"}),(0,a.jsx)("path",{d:"M8.588 13V4.96L8.972 5.368H6.608V4.6H9.452V13H8.588Z",fill:"white"})]})})]})]}),(0,a.jsx)("div",{className:T()("ml-7 flex flex-col justify-items-start gap-4 overflow-hidden text-left text-14 transition-all duration-300 ",x?"max-h-72":"max-h-0"),children:n}),c&&(0,a.jsx)("hr",{className:"".concat(l?"ml-7 ":"","border-neutral-300")})]})}),K=s(7726),M=s(54427),I=s(7498);let F=()=>{let{completed:e,setCompleted:t}
2=(0,M.Z)(),[s,l]=(0,j.useState)(!1),[i,n]=(0,j.useState)([]),[o,c]=(0,j.useState)(0);return((0,j.useEffect)(()=>{e.myAccountGi||(n([{id:"profile-section",message:(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-14 font-bold",children:"Sesuaikan Profil Anda"}),(0,a.jsx)("p",{className:"text-14 font-medium",children:"Ubah atau lihat profil di sini"})]}),tooltipAnchor:"bottom-end",tooltipAlign:"left"},{id:"quota-wallet",message:(0,a.jsx)("p",{className:"text-14 font-semibold",children:"Lihat informasi kuota yang Anda miliki di sini"}),tooltipAnchor:"bottom-start",tooltipAlign:"right"},{id:"quota-purchase",message:(0,a.jsx)("p",{className:"text-14 font-semibold",children:"Beli kuota iklan dan kuota highlight di sini"}),tooltipAnchor:"bottom-start",tooltipAlign:"right"},{id:"golek-coin",message:(0,a.jsx)("p",{className:"text-14 font-semibold",children:"Gunakan Golek Koin untuk kebutuhan iklan Anda"}),tooltipAnchor:"bottom-start",tooltipAlign:"right",isFinalStep:!0}]),s||setTimeout(()=>l(!0),1e3))},[]),s)?(0,a.jsx)(I.default,{collapseOnResizeToDesktop:!0,target:i[o],onSkip:()=>{l(!1),e.myAccountGi||t({myAccountGi:!0}),c(0)},onResolve:s=>{if(s){l(!1),e.myAccountGi||t({myAccountGi:!0});return}c(e=>(e+1)%i.length)}}):(0,a.jsx)(a.Fragment,{})};var O=function(e){let{email:t,phone:s,username:i}=e,n=(0,o.useRouter)(),r="desktop"===(0,L.Z)(),d=(0,u.NL)(),h=(0,m.Z)(),{data:k}=(0,S.Zw)({status:["PENDING1","PENDING2"]}),{data:g}=(0,K.UQ)({status:["PENDING1","PENDING2"]}),{mutate:v}=(0,P.nG)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(F,{}),(0,a.jsxs)("div",{className:"flex flex-col px-4 desktop:overflow-hidden desktop:px-0",children:[(0,a.jsxs)("section",{id:"profile-section",className:"mt-4 flex gap-2 desktop:mt-0 desktop:flex-col desktop:px-4",children:[(0,a.jsx)(c.Z,{username:i,className:"h-10 w-10 shrink-0 desktop:hidden"}),(0,a.jsxs)("article",{className:"w-full space-y-1 overflow-hidden",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between space-x-2",children:[(0,a.jsx)("p",{title:"nama user",className:"overflow-hidden truncate text-14 font-semibold desktop:text-20",children:i}),(0,a.jsxs)("button",{onClick:()=>n.push("/my-account/edit-profile"),className:"flex items-center justify-center space-x-1 text-12 text-primary desktop:hidden",children:[(0,a.jsx)(l.zmo,{}),(0,a.jsx)("span",{className:"font-semibold",children:"Ubah"})]})]}),(0,a.jsx)("p",{className:"truncate text-11 desktop:text-14",children:t}),(0,a.jsx)("p",{className:"text-11 desktop:text-14",children:s})]})]}),(0,a.jsx)("section",{className:"mt-4 desktop:mx-4",children:(0,a.jsx)(_.Z,{})}),(0,a.jsxs)("section",{className:"mt-7 flex flex-col gap-4 desktop:mt-[34px] desktop:px-4",children:[(0,a.jsx)("div",{className:"hidden desktop:block",children:(0,a.jsx)(G,{menu:"Akun",icon:(0,a.jsx)(l.Vyx,{className:"text-20 desktop:text-24 ".concat(n.pathname.includes("/gokil/my-account")?"text-primary":"text-neutral-800 desktop:text-neutral-1000")}),isActive:n.pathname.includes("/gokil/my-account"),onClick:()=>n.push("/gokil/my-account")})}),(0,a.jsx)(G,{id:"quota-wallet",menu:"Dompet Kuota",icon:(0,a.jsx)(R.VmY,{className:"text-20 desktop:text-24 ".concat(n.pathname.includes("/gokil/quota-wallet")?"text-primary":"text-neutral-800 desktop:text-neutral-1000")}),isActive:n.pathname.includes("/gokil/quota-wallet"),onClick:()=>n.push("/gokil/quota-wallet")}),(0,a.jsx)(G,{menu:"Riwayat",icon:(0,a.jsx)(l.H$C,{className:"text-20 desktop:text-24 ".concat(n.pathname.includes("/gokil/history")?"text-primary":"text-neutral-800 desktop:text-neutral-1000")}),isActive:n.pathname.includes("/gokil/history"),onClick:()=>n.push({query:{menu:"history"}},void 0,{shallow:!0}),totalPendingTransaction:null==g?void 0:g.pages[0].data.total}),(0,a.jsx)("div",{className:"hidden desktop:block",children:(0,a.jsxs)(G,{menu:"Beli Kuota",icon:(0,a.jsx)(l.kdR,{className:"text-20 desktop:text-24 ".concat(n.pathname.includes("/gokil/addquota")?"text-primary":"text-neutral-800 desktop:text-neutral-1000")}),isActive:n.pathname.includes("/gokil/addquota"),children:[(0,a.jsx)("button",{className:"text-left text-14 ".concat(/^\/gokil\/addquota\/post/.test(n.asPath)?"text-primary":""),onClick:()=>n.push("/gokil/addquota/post"),children:"Kuota Iklan"}),(0,a.jsx)("button",{className:"text-left text-14 ".concat(/^\/gokil\/addquota\/highlight/.test(n.asPath)?"text-primary":""),onClick:()=>n.push("/gokil/addquota/highlight"),children:"Kuota Iklan Highlight"})]})}),(0,a.jsx)("div",{className:"desktop:hidden",children:(0,a.jsx)(G,{id:"quota-purchase",menu:"Beli Kuota",icon:(0,a.jsx)(l.kdR,{className:"text-20 desktop:text-24 ".concat(n.pathname.includes("/company/[id]/[service]")?"text-primary":"text-neutral-800 de
2sktop:text-neutral-1000")}),isActive:n.pathname.includes("/coin"),onClick:()=>n.push({query:{menu:"addQuota"}},void 0,{shallow:!0})})}),(0,a.jsx)(G,{id:"golek-coin",menu:"Golek Koin",icon:(0,a.jsx)(q.Z,{className:"h-5 w-5 desktop:h-auto desktop:w-auto ".concat(n.pathname.includes("/gokil/coin")?"fill-primary":"fill-neutral-800 desktop:fill-neutral-1000")}),isActive:n.pathname.includes("/gokil/coin"),onClick:()=>n.push("/gokil/coin"),isPendingSubscribe:!!(null==k?void 0:k.pages[0].data.total)}),(0,a.jsx)(G,{menu:"Syarat dan Ketentuan",icon:(0,a.jsx)(l.gbF,{className:"text-20 text-neutral-800 desktop:text-24 desktop:text-neutral-1000"}),onClick:()=>n.push("/site-policy/user-terms")}),(0,a.jsx)(G,{menu:"Kebijakan Privasi",icon:(0,a.jsx)(l.aIF,{className:"text-20 text-neutral-800 desktop:text-24 desktop:text-neutral-1000"}),onClick:()=>n.push("/site-policy/privacy-policy")}),(0,a.jsx)(G,{menu:"Akun Yang Diblokir",icon:(0,a.jsx)(l.a7d,{className:"text-20 desktop:text-24 ".concat(n.pathname.includes("/gokil/block-account")?"text-primary":"text-neutral-800 desktop:text-neutral-1000")}),isActive:n.pathname.includes("/gokil/block-account"),onClick:()=>n.push("/gokil/block-account"),divider:!1})]}),(0,a.jsx)("hr",{className:"-mx-4 my-2 border-2 border-neutral-200 desktop:border-[4px]"}),(0,a.jsxs)("div",{className:"flex flex-col gap-4 pb-2 pt-1 desktop:px-4",children:[(0,a.jsx)(G,{menu:"Hapus Akun GolekTruk",icon:(0,a.jsx)(l.ZkW,{className:"text-20 text-neutral-800 desktop:text-24 desktop:text-neutral-1000"}),onClick:()=>{r?(0,x.Z)(e=>(0,a.jsx)(H,{onSuccess:()=>{h(()=>{d.clear(),e()})}}),{disableBackdropClose:!0,customWidth:"desktop:max-w-lg desktop:w-full"}):n.push({pathname:"/my-account/delete",query:{asPath:n.asPath}})}}),(0,a.jsx)(G,{menu:"Keluar",icon:(0,a.jsx)(l.lE7,{className:"text-20 text-neutral-800 desktop:text-24 desktop:text-neutral-1000"}),onClick:()=>{v({mode:"user",scope:"keluar"}),(0,x.Z)(e=>(0,a.jsx)(p.Z,{onResolve:()=>{h(()=>{d.clear()}),e()},onReject:()=>e()}),{disableBackdropClose:!0})},divider:!1})]}),(0,a.jsx)("hr",{className:"-mx-4 my-1 border-2 border-neutral-200 desktop:hidden desktop:border-neutral-500"})]})]})},z=function(e){let{children:t,isOwner:s,removeBoder:l,golekIklanMenu:i}=e,{user:n}=(0,d.Z)(),{hideLoading:o}=(0,B.Z)();return(0,V.Z)(),(0,a.jsx)("div",{className:"desktop:container desktop:my-10",children:(0,a.jsxs)("div",{className:T()("gap-5 desktop:flex",s?"justify-between":"justify-center"),children:[s&&(0,a.jsx)("div",{className:"hidden w-3/12 desktop:flex desktop:flex-col",children:(0,a.jsx)("div",{className:"card pt-8",children:i?(0,a.jsx)(O,{email:null==n?void 0:n.email,phone:null==n?void 0:n.phone,username:null==n?void 0:n.name,desktopCoachmark:!0}):(0,a.jsx)(D,{email:null==n?void 0:n.email,phone:null==n?void 0:n.phone,username:null==n?void 0:n.name,desktopCoachmark:!0})})}),(0,a.jsx)("div",{className:"relative desktop:w-9/12",children:(0,a.jsx)("div",{className:T()("relative rounded-lg border-neutral-400  desktop:px-12 desktop:py-8",{"desktop:border":!l}),children:t})})]})})}},99180:function(e,t,s){s.d(t,{u:function(){return a}});let a=e=>["post","highlight"].includes(e)},7726:function(e,t,s){s.d(t,{H_:function(){return x},Jx:function(){return u},UQ:function(){return d},pK:function(){return r},zP:function(){return c}});var a=s(36492),l=s(59403),i=s(48379),n=s(99180),o=s(75849);let c=()=>{let{user:e}=(0,o.Z)();return(0,a.a)(["quota-wallet"],()=>i.Z.get("/gi/wallet-quota/all-balance"),{enabled:!!e})},r=(e,t,s)=>{let l="/gi/post-quota/".concat("post"===e?"listing":"listing-quota-highlight");return(0,a.a)(["addquota-price-list",e],()=>i.Z.get(l,{params:{category:t,sub_category:s,sort_sequence:!0}}),{enabled:(0,n.u)(e)})},d=e=>{let{user:t}=(0,o.Z)(),s=["SUCCESS","FAIL","DENY","EXP1","EXP2","CANCEL","ACCEPT"],a=!(null==e?void 0:e.status)||!e.status.length;return(0,l.N)(["quota-purchases-history",a?s:null==e?void 0:e.status,null==e?void 0:e.quotaType,null==e?void 0:e.sortAscTransactionDate,null==e?void 0:e.sortAscPaymentDate],async t=>{let{pageParam:l=1}=t;return await i.Z.get("/gi/quota-purchases/listing",{params:{page:l,per_page:10,status:a?s:null==e?void 0:e.status,quota_type:(null==e?void 0:e.quotaType)==="post"?"iklan":null==e?void 0:e.quotaType,sort_transaction_date:null==e?void 0:e.sortAscTransactionDate,sort_payment_date:null==e?void 0:e.sortAscPaymentDate},paramsSerializer:{indexes:null}})},{getNextPageParam:(e,t)=>{let s=Math.ceil(e.data.total/10);return t.length<s?t.length+1:void 0},enabled:!!t})},u=e=>{let{user:t}=(0,o.Z)();return(0,a.a)(["quota-wallet-list",null==e?void 0:e.quotaType,null==e?void 0:e.category,null==e?void 0:e.subCategory],()=>i.Z.get("/gi/wallet-quota/listing",{params:{package:(null==e?void 0:e.quotaType)==="post"?"iklan":null==e?void 0:e.quotaType,category:null==e?void 0:e.category,sub_category:null==e?void 0:e.subCategory,show_eligible:!0}}),{enabled:!!t})},x=e=>{let{user:t}=(0,o.Z)();
2return(0,l.N)(["quota-wallet-history",e],async t=>{let{pageParam:s=1}=t;return await i.Z.get("/gi/log/wallet-quota",{params:{page:s,per_page:10,start_date:null==e?void 0:e.startDate,end_date:null==e?void 0:e.endDate,category:null==e?void 0:e.category,sub_category:null==e?void 0:e.subCategory,package:(null==e?void 0:e.quotaType)?"post"===e.quotaType?"iklan":e.quotaType:void 0,sort_date:null==e?void 0:e.sortDateAsc}})},{getNextPageParam:(e,t)=>{let s=Math.ceil(e.data.total/10);return t.length<s?t.length+1:void 0},enabled:!!t})}},54427:function(e,t,s){var a=s(64529),l=s(782);let i=(0,a.Ue)()((0,l.tJ)(e=>({completed:{landing:!1,myAccount:!1,coin:!1,coinTopUpBtn:!1,coinTopUpHistory:!1,s_myPostsInitial:!1,s_myPostsFilled:!1,s_myPostsBottomModal:!1,t_myPostsInitial:!1,t_myPostsFilled:!1,t_myPostsBottomModal:!1,postSearch:!1,postDetailView:!1,postDetailSelf:!1,subscribeActive:!1,subscribeCategory:!1,subscribeCategoryDetail:!1,subscribeHistory:!1,companyDetail:!1,myAccountGi:!1,quotaWalletPost:!1,quotaWalletHighlight:!1,myPostsInitial:!1,myPostsFilled:!1,myPostsBottomModal:!1,postDetailViewGi:!1,homepage:!1},setCompleted:t=>e(e=>({...e,completed:{...e.completed,...t}}))}),{name:"completedCoachmark"}));t.Z=i}}]);

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.