PageSourceSearch

https://sutakku.netlify.app/static/js/251.db37c072.chunk.js

js sutakku.netlify.app collected 2026-10-03 11:28:20 UTC 11,440 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkstack_note_taking_app=self.webpackChunkstack_note_taking_app||[]).push([[251],{7251:function(e,t,n){n.r(t),n.d(t,{default:function(){return y}});var r=n(5861),s=n(885),a=n(7757),l=n.n(a),i=n(2791),c=n(2711),o=n(1856),u=n(6871),m=n(8684),d=n(3585);var f=function(){var e=(0,i.useState)({}),t=(0,s.Z)(e,2),n=t[0],a=t[1],c=(0,d.X)().userInfo;return(0,i.useEffect)((function(){null!==c&&void 0!==c&&c.username&&(0,r.Z)(l().mark((function e(){var t,n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://api.github.com/users/".concat(null===c||void 0===c?void 0:c.username));case 2:return t=e.sent,e.next=5,t.json();case 5:n=e.sent,a(n);case 7:case"end":return e.stop()}}),e)})))()}),[c]),n},x=n(7244),p=n(2762),h=n(9455),v=n(3861),g=n(744),w=n(2728),j=n(184),b=function(e,t){switch(t.type){case"PROMPT":return{prompt:t.value};case"CONFIRM":return{prompt:!1,confirm:t.value};default:return e}};var y=function(){var e,t,n,a,y=(0,i.useReducer)(b,{}),k=(0,s.Z)(y,2),N=k[0],C=k[1],E=f(),Z=E.avatar_url,R=E.login,M=E.name,D=E.bio,P=E.followers,z=E.following,A=(0,d.X)(),O=A.deleteUserDb,S=A.userInfo,X=(0,m.a)(),F=X.user,L=X.DeleteUserAcc,T=(0,u.s0)(),Y=(0,i.useRef)(),_=function(){var e=(0,r.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O();case 2:return e.next=4,L();case 4:T("../../");case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,j.jsxs)("main",{className:"mt-[max(3rem,5vw)] mb-10 gap-8",children:[(0,j.jsx)(o.M,{children:N.prompt&&(0,j.jsx)(v.Z,{handleToggle:function(){return C({type:"PROMPT",value:!1})},handleDelete:function(){return C({type:"CONFIRM",value:!0})}})}),(0,j.jsx)(o.M,{children:N.confirm&&(0,j.jsx)(g.Z,{name:M,handleToggle:function(){return C({type:"CONFIRM",value:!1})},handleDelete:_})}),(0,j.jsxs)("section",{className:"mx-auto w-11/12 max-w-[24rem] sm:max-w-[48rem] lg:mx-auto lg:flex lg:w-9/12 lg:max-w-[90rem] lg:justify-between",children:[(0,j.jsxs)(p.Z,{className:"p-4 text-white sm:flex sm:items-center sm:justify-between sm:gap-x-4 sm:p-6 lg:block lg:w-80",children:[(0,j.jsxs)("div",{className:"relative aspect-square sm:w-1/2 sm:max-w-[12rem] md:max-w-[15rem] lg:w-full lg:max-w-none",children:[!(null!==Y&&void 0!==Y&&null!==(e=Y.current)&&void 0!==e&&e.naturalHeight)&&(0,j.jsx)(w.Z,{}),(0,j.jsx)("img",{ref:Y,className:"w-full rounded-md",src:Z,alt:R})]}),(0,j.jsxs)("div",{className:"mt-8 sm:mt-0 sm:w-1/2 lg:w-full",children:[(0,j.jsxs)("h1",{className:"font-open-sans text-t-ultra sm:lg:text-t-xl",children:[" ",M," "]}),(0,j.jsx)("h2",{className:"mb-1 font-open-sans font-medium text-gray-300",children:" lyn-eva "}),(0,j.jsx)("hr",{}),(0,j.jsxs)("h3",{className:"font-ro mt-2 text-t-md sm:text-t-lg",children:[" ",D]}),(0,j.jsxs)("div",{className:"mt-3 flex items-center font-roboto text-t-md sm:mt-6 sm:text-t-lg",children:[(0,j.jsx)(c.JO,{className:"h-5 w-5 sm:h-6 sm:w-6",icon:"fluent:people-20-regular"}),(0,j.jsxs)("p",{className:"ml-3 mr-[10%] sm:ml-4 sm:mr-[15%]",children:[(0,j.jsx)("span",{className:"font-semibold text-blue-500",children:P})," followers"]}),(0,j.jsxs)("p",{children:[(0,j.jsx)("span",{className:"font-semibold text-blue-500",children:z})," following"]})]})]})]}
1),(0,j.jsxs)("section",{className:"mt-4 self-start lg:mt-0 lg:w-7/12",children:[(0,j.jsx)(p.Z,{className:"p-4 sm:p-6",children:(0,j.jsxs)("div",{className:"text-t-md tracking-wider text-blue-500 sm:flex sm:justify-between sm:text-t-lg",children:[(0,j.jsxs)("div",{children:[(0,j.jsxs)("p",{children:[(0,j.jsx)("span",{className:"mr-2 font-open-sans font-semibold tracking-wide text-white",children:"joined :"}),(0,x.af)(null===F||void 0===F?void 0:F.metadata.createdAt)]}),(0,j.jsxs)("p",{className:"mt-4",children:[(0,j.jsx)("span",{className:"mr-2 font-open-sans font-semibold tracking-wide text-white",children:"last logged in :"}),(0,x.gK)(null===F||void 0===F?void 0:F.metadata.lastLoginAt)]}),(0,j.jsxs)("p",{className:"mt-4",children:[(0,j.jsx)("span",{className:"mr-2 font-open-sans font-semibold tracking-wide text-white",children:"last modified :"}),(0,x.gK)(null===S||void 0===S||null===(t=S.modified)||void 0===t?void 0:t.toMillis())]})]}),(0,j.jsxs)("div",{className:"mt-4 sm:mt-0",children:[(0,j.jsxs)("p",{children:[(0,j.jsx)("span",{className:"mr-2 font-open-sans font-semibold tracking-wide text-white",children:"number of stacks :"}),null!==(n=null===S||void 0===S?void 0:S.stackCount)&&void 0!==n?n:0]}),(0,j.jsxs)("p",{className:"mt-4",children:[(0,j.jsx)("span",{className:"mr-2 font-open-sans font-semibold tracking-wide text-white",children:"number of ideas :"}),null!==(a=null===S||void 0===S?void 0:S.ideaCount)&&void 0!==a?a:0]})]})]})}),(0,j.jsx)("div",{className:"mt-3 flex justify-end",children:(0,j.jsx)(h.Z,{onClick:function(){return C({type:"PROMPT",value:!0})},style:{backgroundColor:"#f00",color:"#fff"},children:"Delete Account"})})]})]})]})}},9455:function(e,t,n){var r=n(1110),s=n(184);t.Z=function(e){var t=e.children,n=e.style,a=e.onClick,l=e.type,i=void 0===l?"button":l;return e.className,(0,s.jsx)(r.E.button,{whileHover:{scale:1.03},onClick:a,type:i,className:"flex items-center gap-2 rounded-[.2em] bg-white py-[4px] px-2 font-roboto text-t-md font-normal sm:py-[5px] sm:text-t-md md:px-4 lg:text-t-lg",style:n||{},children:t})}},744:function(e,t,n){var r=n(885),s=n(2791),a=n(1110),l=n(9455),i=n(184);t.Z=function(e){var t=e.name,n=e.handleToggle,c=e.handleDelete,o=(0,s.useState)(!0),u=(0,r.Z)(o,2),m=u[0],d=u[1],f=(0,s.useRef)();(0,s.useEffect)((function(){f.current.focus()}),[]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{onClick:n,className:"fixed top-0 left-0 z-10 h-screen w-screen bg-black opacity-30"}),(0,i.jsxs)(a.E.div,{initial:{scale:0,translateY:"-50%",translateX:"-55%"},animate:{scale:1,translateY:"-50%",translateX:"-55%"},exit:{scale:0,translateY:"-50%",translateX:"-55%"},transition:{duration:.3},className:"fixed top-1/2 left-1/2 z-20 mx-4 w-11/12 max-w-[15rem] rounded-md bg-white px-6 py-4 text-black sm:max-w-[20rem] sm:px-12 sm:py-8",children:["Please type ",(0,i.jsx)("span",{className:"font-bold text-blue-500",children:t})," to delete your account.",(0,i.jsxs)("form",{onSubmit:function(e){if(e.preventDefault(),f.current.value.trim()!==t)return d(!1);d(!0),c()},children:[(0,i.jsx)("input",{ref:f,type:"text",className:"".concat(m?"":"outline-red-400"," mt-3 focus:outline-blue-400 block w-full rounded pl-1 outline outline-2")}),m||(0,i.jsx)("span",{className:"text-t-md",children:"names are not match"}),(0,i.jsxs)("div",{className:"mt-5 flex justify-between gap-4 text-white",children:[(0,i.jsx)(l.Z,{type:"submit",style:{backgroundColor:"#f00",fontSize:15,padding:"4px 10px"},children:"Delete"}),(0,i.jsx)(l.Z,{onClick:n,style:{backgroundColor:"#00f",fontSize:15,padding:"4px 10px"},children:"Cancel"})]})]})]})]})}},3861:function(e,t,n){var r=n(1110),s=n(9455),a=n(184);t.Z=function(e){var t=e.handleToggle,n=e.handleDelete;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{onClick:t,className:"fixed top-0 left-0 z-10 h-screen w-screen bg-black opacity-30"}),(0,a.jsxs)(r.E.div,{initial:{scale:0,translateY:"-50%",translateX:"-55%"},animate:{scale:1,translateY:"-50%",translateX:"-55%"},exit:{scale:0,translateY:"-50%",translateX:"-55%"},transition:{duration:.3},className:"fixed top-1/2 left-1/2 z-20 mx-4 w-8/12 max-w-[15rem] rounded-md bg-white px-6 py-4 text-black sm:max-w-[18rem] sm:px-12 sm:py-8",children:["Are you sure to delete?",(0,a.jsxs)("div",{className:"mt-8 flex justify-between gap-4 text-white",children:[(0,a.jsx)(s.Z,{onClick:n,style:{backgroundColor:"#f00",fontSize:15,padding:"4px 10px"},children:"Delete"}),(0,a.jsx)(s.Z,{onClick:t,style:{backgroundColor:"#00f",fontSize:15,padding:"4px 10px"},children:"Cancel"})]})]})]})}},2762:function(e,t,n){n(2791);var r=n(184);t.Z=function(e){var t=e.children,n=e.className,s=e.onClick;return(0,r.jsx)("div",{onClick:s,className:"bg-bg-soft-gray rounded-md ".concat(n),children:t})}},7244:function(e,t,n){n.d(t,{Jg:function(){return a},af:function(){return r},gK:function(){return s}});var r=function(e){var t=new Date(+e);return"".concat(t.getMonth()+1,":").concat(t.getDate(),":").concat(t.getFullYear())},s=function(e){if(e){var t=Math.round((Date.now()-+e)/1e3);if(t>=86400)return r(+e);var n=t/3600|0,s=t%3600/60|0,a=t%3600%60|0;return n>0?l(n,"hour"):s>0?l(s,"min"):l(a<1?1:a,"sec")}},a=function(e){return new Date(e).getTime()},l=function(e,t){return"".concat(e," ").concat(t).concat(1===e?"":"s"," ago")}},1856:function(e,t,n){n.d(t,{M:function(){return h}});var r=n(9388),s=n(2791),a=n(2968),l=n(2199);function i(){var e=(0,s.useRef)(!1);return(0,l.L)((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var c=n(131),o=n(9829),u=n(8174),m=function(e){var t=e.children,n=e.initial,a=e.isPresent,l=e.onExitComplete,i=e.custom,m=e.presenceAffectsLayout,f=(0,o.h)(d),x=(0,u.M)(),p=(0,s.useMemo)((function(){return{id:x,initial:n,isPresent:a,custom:i,onExitComplete:function(e){var t,n;f.set(e,!0);try{for(var s=(0,r.XA)(f.values()),a=s.next();!a.done;a=s.next()){if(!a.value)return}}catch(i){t={error:i}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}null===l||void 0===l||l()},register:function(e){return f.set(e,!1),function(){return f.delete(e)}}}}),m?void 0:[a]);return(0,s.useMemo)((function(){f.forEach((function(e,t){return f.set(t,!1)}))}),[a]),s.useEffect((function(){!a&&!f.size&&(null===l||void 0===l||l())}),[a]),s.createElement(c.O.Provider,{value:p},t)};function d(){return new Map}var f=n(7497),x=n(1475),p=function(e){return e.key||""};var h=function(e){var t=e.children,n=e.custom,c=e.initial,o=void 0===c||c,u=e.onExitComplete,d=e.exitBeforeEnter,h=e.presenceAffectsLayout,v=void 0===h||h,g=(0,r.CR)(function(){var e=i(),t=(0,r.CR)((0,s.use
1State)(0),2),n=t[0],l=t[1],c=(0,s.useCallback)((function(){e.current&&l(n+1)}),[n]);return[(0,s.useCallback)((function(){return a.ZP.postRender(c)}),[c]),n]}(),1),w=g[0],j=(0,s.useContext)(f.p).forceRender;j&&(w=j);var b=i(),y=function(e){var t=[];return s.Children.forEach(e,(function(e){(0,s.isValidElement)(e)&&t.push(e)})),t}(t),k=y,N=new Set,C=(0,s.useRef)(k),E=(0,s.useRef)(new Map).current,Z=(0,s.useRef)(!0);if((0,l.L)((function(){Z.current=!1,function(e,t){e.forEach((function(e){var n=p(e);t.set(n,e)}))}(y,E),C.current=k})),(0,x.z)((function(){Z.current=!0,E.clear(),N.clear()})),Z.current)return s.createElement(s.Fragment,null,k.map((function(e){return s.createElement(m,{key:p(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:v},e)})));k=(0,r.ev)([],(0,r.CR)(k),!1);for(var R=C.current.map(p),M=y.map(p),D=R.length,P=0;P<D;P++){var z=R[P];-1===M.indexOf(z)&&N.add(z)}return d&&N.size&&(k=[]),N.forEach((function(e){if(-1===M.indexOf(e)){var t=E.get(e);if(t){var r=R.indexOf(e);k.splice(r,0,s.createElement(m,{key:p(t),isPresent:!1,onExitComplete:function(){E.delete(e),N.delete(e);var t=C.current.findIndex((function(t){return t.key===e}));if(C.current.splice(t,1),!N.size){if(C.current=y,!1===b.current)return;w(),u&&u()}},custom:n,presenceAffectsLayout:v},t))}}})),k=k.map((function(e){var t=e.key;return N.has(t)?e:s.createElement(m,{key:p(e),isPresent:!0,presenceAffectsLayout:v},e)})),s.createElement(s.Fragment,null,N.size?k:k.map((function(e){return(0,s.cloneElement)(e)})))}}}]);
2//# sourceMappingURL=251.db37c072.chunk.js.map

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.