1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8726],{20749:(e,n,l)=>{l.d(n,{A:()=>i});var t=l(37876),a=l(69241);function i(e){let{className:n,...l}=e;return(0,t.jsx)("div",{className:(0,a.A)("inline-block animate-pulse rounded-full p-2 bg-gray-200/50 text-white text-sm",n),...l})}},21298:(e,n,l)=>{l.d(n,{A:()=>G});var t=l(37876),a=l(82845),i=l(45170),o=l.n(i),r=l(89848),s=l(18847),u=l.n(s),d=l(36598),c=l(35914),m=l(92122),p=l(36099),h=l(48621),g=l(20749),v=l(31405),f=l(75861),x=l(22962),b=l(17120),w=l(11041),j=l(21772),y=l(69241),N=l(48230),k=l.n(N),A=l(14e3),O=l(14232);function S(){var e,n,l,a,i,o,r,s;let u=(0,f.A)(),d=(0,A.usePathname)(),c=null==d||null==(e=d.split("/"))?void 0:e[2],{displayErrorMessage:m}=(0,x.A)(),{data:N,isLoading:S}=(0,v.c_)(),T=[{name:"Transaksi",icon:(0,t.jsx)(j.g,{className:"h-4 w-4",icon:w.E4f}),path:"/dashboard/transaction"},{name:"Event",icon:(0,t.jsx)(j.g,{className:"h-4 w-4",icon:b.okg}),path:"/dashboard/event"},{name:"Notifikasi",icon:(0,t.jsx)(j.g,{className:"h-4 w-4",icon:b.z$e}),path:"/dashboard/notification"},{name:"Laporan Donasi",icon:(0,t.jsx)(j.g,{className:"h-4 w-4",icon:w.vg9}),path:"/dashboard/report"},{name:"Laporan Wakaf",icon:(0,t.jsx)(j.g,{className:"h-4 w-4",icon:w.UK3}),path:"/dashboard/monthly-report"}],F=null==T?void 0:T.find(e=>(null==e?void 0:e.path)==="/dashboard/".concat(c)),[G,_]=(0,O.useState)((null==u?void 0:u.picture)||null),R=async e=>{try{var n,l,t,a,i,o;let r=new FormData;r.append("photo",e),r.append("name",(null==N||null==(l=N.data)||null==(n=l.user)?void 0:n.name)||""),r.append("handphone",(null==N||null==(a=N.data)||null==(t=a.user)?void 0:t.handphone)||""),r.append("email",(null==N||null==(o=N.data)||null==(i=o.user)?void 0:i.email)||"")}catch(e){m(e)}};return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"p-6 rounded-lg shadow-md flex flex-col gap-4 bg-grey-light-1/50",children:[(0,t.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,t.jsx)("p",{className:"font-semibold text-sm",children:"Profile"}),(0,t.jsx)(k(),{href:"/dashboard/profile",className:"font-medium text-sm text-primary-01",children:(0,t.jsx)("button",{type:"button",className:"appearance-none",children:"Atur Profile"})})]}),(0,t.jsx)("hr",{}),(0,t.jsxs)("div",{className:"flex items-center gap-4 text-sm",children:[(0,t.jsxs)("div",{className:"flex-none w-[56px] h-[56px]",children:[(0,t.jsx)(h.A,{isTrue:S,children:(0,t.jsx)(g.A,{className:"h-full w-full rounded-full"})}),(0,t.jsx)(h.A,{isTrue:!S,children:(0,t.jsxs)("label",{htmlFor:"avatar_input",className:"bg-black-light-2/20 cursor-pointer h-auto w-full aspect-square flex text-sm items-center justify-center font-semibold rounded-full border border-neutral-03",children:[(0,t.jsx)(h.A,{isTrue:!G,children:null==(n=String((null==N||null==(a=N.data)||null==(l=a.user)?void 0:l.name)||(null==u?void 0:u.name)||"AA").substring(0,2))?void 0:n.toUpperCase()}),(0,t.jsx)(h.A,{isTrue:G,children:(0,t.jsx)("picture",{children:(0,t.jsx)("img",{className:"aspect-square h-full w-full object-cover rounded-full",src:G,alt:""})})}),(0,t.jsx)("input",{id:"avatar_input",type:"file",accept:"image/*",className:"invisible absolute",onChange:e=>{var n,l,t,a,i,o;(null==e||null==(l=e.target)||null==(n=l.files)?void 0:n[0])&&(R(null==e||null==(a=e.target)||null==(t=a.files)?void 0:t[0]),_(URL.createObjectURL(null==e||null==(o=e.target)||null==(i=o.files)?void 0:i[0])))}})]})})]}),(0,t.jsxs)("div",{className:"flex-auto",children:[(0,t.jsxs)(h.A,{isTrue:S,children:[(0,t.jsx)(g.A,{className:"h-5 w-full"}),(0,t.jsx)(g.A,{className:"h-5 w-full"})]}),(0,t.jsxs)(h.A,{isTrue:!S,children:[(0,t.jsx)("p",{className:"font-medium",children:(null==N||null==(o=N.data)||null==(i=o.user)?void 0:i.name)||(null==u?void 0:u.name)}),(0,t.jsx)("p",{children:(null==N||null==(s=N.data)||null==(r=s.user)?void 0:r.email)||(null==u?void 0:u.email)})]})]})]})]}),(0,t.jsx)("div",{className:"p-6 pb-2 rounded-lg shadow-md flex flex-col gap-4 bg-grey-light-1/50",children:(0,t.jsx)("ul",{className:"-mx-6",children:(0,t.jsx)(p.A,{of:T,render:e=>(0,t.jsx)("li",{className:"group",children:(0,t.jsx)(k(),{href:null==e?void 0:e.path,className:(0,y.A)("block px-6 text-sm text-neutral-01 w-full hover:bg-neutral-03/25 transition-all ease-linear duration-150",(null==F?void 0:F.name)===(null==e?void 0:e.name)&&"!text-primary-01 !bg-neutral-03/25"),children:(0,t.jsxs)("div",{className:"flex items-center gap-2 border-b border-neutral-03 group-last:border-b-0 py-3",children:[null==e?void 0:e.icon,null==e?void 0:e.name]})})})})})})]})}let T=u()(()=>l.e(872).then(l.bind(l,30872)),{loadableGenerated:{webpack:()=>[30872]},ssr:!1}),F=u()(()=>l.e(3801).then(l.bind(l,73801)),{loadableGenerated:{webpack:()=>[73801]},ssr:!1});function G(e){let{children:n}=e;return(0,t.jsxs)("main",{className:(0,a.cn)(o().className),children:[(0,t.jsx)(F,{}),(0,t.jsx)(d.A,{}),(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:"flex flex-col lg:flex-row gap-8 py-10",children:[(0,t.jsx)("div",{className:"flex-none lg:min-w-[300px]",children:(0,t.jsx)(S,{})}),(0,t.jsx)("div",{className:"flex-auto",children:n})]})}),(0,t.jsx)(c.A,{}),(0,t.jsx)(r.N9,{autoClose:5e3,limit:5,hideProgressBar:!0,newestOnTop:!0,closeButton:!1,closeOnClick:!0,rtl:!1,draggable:!1,pauseOnHover:!0,pauseOnFocusLoss:!0}),(0,t.jsx)(m.C,{visibleToasts:3,className:"custom-sonner",duration:1e4,position:"bottom-right",mobileOffset:{bottom:"100px"}}),(0,t.jsx)(T,{}),(0,t.jsx)("div",{id:"root-portal"})]})}},22962:(e,n,l)=>{l.d(n,{A:()=>a});var t=l(76888);function a(){let e=(0,t.A)();return{displayErrorMessage:n=>{var l,t,a,i;return(console.log(n),null==n?void 0:n.message)?e.error(null==n?void 0:n.message):(null==n||null==(l=n.meta)?void 0:l.message)?e.error(null==n||null==(a=n.meta)?void 0:a.message):(null==n||null==(t=n.error)?void 0:t.message)?e.error(null==n||null==(i=n.error)?void 0:i.message):e.error("Oops! Something went wrong..")}}}},31405:(e,n,l)=>{l.d(n,{c_:()=>g,Qc:()=>p,IT:()=>h,yv:()=>f,FH:()=>v,Dm:()=>x});var t=l(44306);async function a(e){let n=await (0,t.A)("/auth/login",{method:"POST",body:JSON.stringify(e),skipAutoSignOut:!0});if(!n.ok)throw await n.json();return await n.json()}var i=l(56559);async function o(){let e=await (0,t.A)("/auth/me",{useAuthToken:!0,next:{tags:[i.U]}});if(!e.ok)throw await e.json();return await e.json()}async function r(e){let n=await (0,t.A)("/auth/profile",{useAuthToken:!0,method:"POST",body:JSON.stringify(e)});if(!n.ok)throw await n.json();return await n.json()}async function s(e){let n=await (0,t.A)("/auth/register",{method:"POST",body:JSON.stringify(e),skipAutoSignOut:!0});if(!n.ok)throw await n.json();return await n.json()}async function u(e){let n=await (0,t.A)("/auth/otp/send",{method:"POST",body:JSON.stringify(e),skipAutoSignOut:!0});if(!n.ok)throw await n.json();return await n.json()}async function d(e){let n=await (0,t.A)("/auth/otp/verify",{method:"POST",body:JSON.stringify(e),skipAutoSignOut:!0});if(!n.ok)throw await n.json();return await n.json()}var c=l(40097),m=l(67914);let p=()=>(0,c.n)({mutationFn:e=>a(e)}),h=()=>(0,c.n)({mutationFn:e=>s(e)}),g=()=>(0,m.I)({queryKey:[i.U],queryFn:()=>o()}),v=()=>(0,c.n)({mutationFn:e=>r(e)}),f=()=>(0,c.n)({mutationFn:e=>u(e)}),x=()=>(0,c.n)({mutationFn:e=>d(e)})},67502:(e,n,l)=>{l.d(n,{A:()=>o});var t=l(37876),a=l(77328),i=l.n(a);let o=e=>{var n,l,a,o,r,s,u,d,c,m,p,h,g,v,f,x,b,w,j,y,N,k,A,O,S,T,F,G,_,R,q,I,P,C,U;let{data:D={},noIndex:M=!1,children:E}=e,L={url:(null==D?void 0:D.url)||"https://www.wakafsalman.or.id",title:(null==D?void 0:D.title)||"Wakaf Salman",description:(null==D?void 0:D.description)||"Adalah lembaga nonprofit Islam
1i, yang berdedikasi secara produktif dalam mengemban amanah utama sebagai nazhir atau pengelola wakaf umat untuk menopang kemajuan peradaban melalui kegiatan-kegiatan filantropis",keywords:(null==D?void 0:D.keywords)||"",image:(null==D?void 0:D.imageURL)||(null==(l=D.openGraph)||null==(n=l.image)?void 0:n.secure_url)||"https://wakafsalman.or.id/assets/images/logo-wakaf-salman.png",imageType:(null==D?void 0:D.imageType)||(null==(o=D.openGraph)||null==(a=o.image)?void 0:a.type)||"image/png"},J={locale:(null==(r=D.openGraph)?void 0:r.locale)||"id_ID",type:(null==(u=D.openGraph)||null==(s=u.image)?void 0:s.type)||"website",site_name:(null==(d=D.openGraph)?void 0:d.siteName)||(null==L?void 0:L.title),url:(null==(c=D.openGraph)?void 0:c.url)||(null==L?void 0:L.url),title:(null==(m=D.openGraph)?void 0:m.title)||L.title,description:(null==(p=D.openGraph)?void 0:p.description)||L.description,image:(null==(g=D.openGraph)||null==(h=g.image)?void 0:h.secure_url)||L.image,"image:secure_url":(null==(f=D.openGraph)||null==(v=f.image)?void 0:v.secure_url)||L.image,"image:type":(null==(b=D.openGraph)||null==(x=b.image)?void 0:x.type)||(null==L?void 0:L.imageType),"image:width":(null==(j=D.openGraph)||null==(w=j.image)?void 0:w.width)===null?null==(N=D.openGraph)||null==(y=N.image)?void 0:y.width:"300","image:height":(null==(A=D.openGraph)||null==(k=A.image)?void 0:k.height)===null?null==(S=D.openGraph)||null==(O=S.image)?void 0:O.height:"300","image:alt":(null==(F=D.openGraph)||null==(T=F.image)?void 0:T.alt)||L.description},B={domain:"https://www.wakafsalman.or.id","twitter:site":null==L?void 0:L.title,url:(null==(G=D.twitter)?void 0:G.url)||L.url,title:(null==(_=D.twitter)?void 0:_.title)||L.title,description:(null==(R=D.twitter)?void 0:R.description)||L.description,card:(null==(q=D.twitter)?void 0:q.card)||"summary_large_image",image:(null==(P=D.twitter)||null==(I=P.image)?void 0:I.secure_url)||L.image,"image:alt":(null==(U=D.twitter)||null==(C=U.image)?void 0:C.alt)||L.description};return(0,t.jsxs)(i(),{children:[(0,t.jsx)("title",{children:null==L?void 0:L.title}),L.url&&(0,t.jsx)("link",{rel:"canonical",href:L.url}),(0,t.jsx)("meta",{name:"apple-mobile-web-app-title",content:null==L?void 0:L.title},"apple:title"),(0,t.jsx)("meta",{name:"mobile-web-app-capable",content:"yes"},"mobile:web-app-capable"),(0,t.jsx)("meta",{name:"robots",content:"all"},"bot:noindex"),(0,t.jsx)("meta",{name:"facebook-domain-verification",content:"2e1gsr0554crfi3whvysgtsrb3pw75"}),(0,t.jsx)("meta",{name:"google-site-verification",content:"rbdio2SYrh-DM24Aqctz911f1eEqfnu4vhI4VtM7jI4"}),Object.entries(L).map(e=>{let[n,l]=e;return l&&(0,t.jsx)("meta",{name:n,content:l},n)}),Object.entries(J).map(e=>{let[n,l]=e;return l&&(0,t.jsx)("meta",{property:"og:".concat(n),content:l},"og:".concat(n))}),Object.entries(B).map(e=>{let[n,l]=e;return l&&(0,t.jsx)("meta",{property:"twitter:".concat(n),content:l},"twitter:".concat(n))}),M&&(0,t.jsx)("meta",{name:"robots",content:"noindex, nofollow"},"bot:noindex"),E]})}},76888:(e,n,l)=>{l.d(n,{A:()=>a});var t=l(89848);function a(){let e={position:"top-center"};return{success:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Berhasil",l=arguments.length>1?arguments[1]:void 0;return t.oR.dismiss(),t.oR.success(n,{...l,...e})},error:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Gagal",l=arguments.length>1?arguments[1]:void 0;return t.oR.dismiss(),t.oR.error(n,{...l,...e})},warn:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Warning",l=arguments.length>1?arguments[1]:void 0;return t.oR.dismiss(),t.oR.warn(n,{...l,...e})},info:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Info",l=arguments.length>1?arguments[1]:void 0;return t.oR.dismiss(),t.oR.info(n,{...l,...e})},dismiss:()=>t.oR.dismiss()}}},79260:(e,n,l)=>{l.d(n,{lH:()=>s,nl:()=>i,qv:()=>o,sM:()=>u});var t=l(40123),a=l.n(t);let i=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(void 0===e||a()(String(e)))return"0";let l=Number(e||0);return new Intl.NumberFormat("id-ID",{minimumFractionDigits:n}).format(l)},o=(e,n)=>{let l=e.toString();for(;l.length<n;)l="0"+l;return l},r=e=>{let{n=0,kmbt:l={k:"K",m:"M",b:"B",t:"T",qd:"Qd",qt:"Qt",st:"St"},c:t=1}=e;return n<1e3?n:n>=1e3&&n<1e6?+(n/1e3).toFixed(t)+"".concat(l.k):n>=1e6&&n<1e9?+(n/1e6).toFixed(t)+"".concat(l.m):n>=1e9&&n<1e12?+(n/1e9).toFixed(t)+"".concat(l.b):n>=1e12&&n<1e15?+(n/1e12).toFixed(t)+"".concat(l.t):n>=1e15&&n<1e18?+(n/1e15).toFixed(t)+"".concat(l.qd):n>=1e18&&n<1e21?+(n/1e18).toFixed(t)+"".concat(l.qt):n>=1e21?+(n/1e21).toFixed(t)+"".concat(l.st):void 0},s=e=>{let{value:n=0,maxVal:l=1e10}=e;if(!n)return 0;let t=0>Number(n)?"-":"";return Math.abs(Number(n))>l?t+r({n:Number(Math.abs(Number(n)).toFixed(2))}):i(n)};function u(e){return e.split("; ").reduce((e,n)=>{let[l,t]=n.split("=");return e[l]=decodeURIComponent(t),e},{})}}}]);
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.