PageSourceSearch

https://code-folio.vercel.app/_next/static/chunks/352-ef5653b289416f17.js

js code-folio.vercel.app collected 2026-10-03 05:17:35 UTC 52,278 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[352],{65834:function(n,e,t){var r=t(70638),i=t(28598),o=t(5147),s=t(82684),l=t(9518);function c(){let n=(0,r.Z)(["\n  position: fixed;\n  z-index: 2;\n  top: 0;\n  left: 0;\n  width: 100vw;\n  height: 100vh;\n  background-color: rgba(0, 0, 0, 0.6);\n\n  display: flex;\n  justify-content: center;\n  align-items: center;\n"]);return c=function(){return n},n}function d(){let n=(0,r.Z)(["\n  box-shadow: 0px 0.25rem 0.625rem rgba(0, 0, 0, 0.25);\n  border-radius: 0.25rem;\n  width: 20.5rem;\n  background-color: ",";\n\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n  z-index: 3;\n"]);return d=function(){return n},n}function a(){let n=(0,r.Z)(["\n  padding: 4.0625rem 0;\n  color: white;\n"]);return a=function(){return n},n}function u(){let n=(0,r.Z)(["\n  display: flex;\n  width: 100%;\n  height: 3.75rem;\n"]);return u=function(){return n},n}function f(){let n=(0,r.Z)(["\n  flex: 1;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  cursor: pointer;\n"]);return f=function(){return n},n}function h(){let n=(0,r.Z)(["\n  color: white;\n  background-color: ",";\n  border-bottom-left-radius: 4px;\n"]);return h=function(){return n},n}function m(){let n=(0,r.Z)(["\n  color: ",";\n  background-color: ",";\n  border-bottom-right-radius: 4px;\n"]);return m=function(){return n},n}let g=n=>{let{bodyText:e,leftText:t,rightText:r,onClickLeft:l,onClickRight:c,type:d="normal"}=n,a=(0,s.useRef)();return(0,o.Z)(a,()=>l()),(0,i.jsx)(p,{children:(0,i.jsxs)(x,{ref:a,children:[(0,i.jsx)(C,{children:e}),(0,i.jsxs)(w,{children:[(0,i.jsx)(j,{onClick:l,children:t}),(0,i.jsx)(y,{onClick:c,type:d,children:r})]})]})})},p=l.ZP.div.withConfig({componentId:"sc-6e4803a9-0"})(c()),x=l.ZP.div.withConfig({componentId:"sc-6e4803a9-1"})(d(),n=>{let{theme:e}=n;return e.colors.gray11}),C=l.ZP.div.withConfig({componentId:"sc-6e4803a9-2"})(a()),w=l.ZP.div.withConfig({componentId:"sc-6e4803a9-3"})(u()),b=l.ZP.div.withConfig({componentId:"sc-6e4803a9-4"})(f()),j=(0,l.ZP)(b).withConfig({componentId:"sc-6e4803a9-5"})(h(),n=>{let{theme:e}=n;return e.colors.gray4}),y=(0,l.ZP)(b).withConfig({componentId:"sc-6e4803a9-6"})(m(),n=>{let{theme:e,type:t}=n;return e.colors["normal"===t?"black":"white"]},n=>{let{theme:e,type:t}=n;return e.colors["normal"===t?"primary6":"messageError"]});e.Z=g},64554:function(n,e,t){var r=t(70638),i=t(28598),o=t(9518);function s(){let n=(0,r.Z)(["\n  position: fixed;\n  right: ",";\n  bottom: 2.75rem;\n  z-index: 10;\n\n  cursor: pointer;\n\n  &:hover {\n    circle {\n      fill: ",";\n    }\n  }\n"]);return s=function(){return n},n}let l=n=>{let{right:e,bottom:t,elementRef:r}=n,o=()=>{r?r.current.scrollTo({top:0,behavior:"smooth"}):window.scrollTo({top:0,behavior:"smooth"})};return(0,i.jsx)(c,{onClick:o,right:e,bottom:t,children:(0,i.jsxs)("svg",{width:"54",height:"55",viewBox:"0 0 54 55",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsxs)("g",{filter:"url(#filter0_d_1271_19039)",children:[(0,i.jsx)("circle",{cx:"27",cy:"23.5",r:"18",transform:"rotate(-180 27 23.5)",fill:"#97E4E9"}),(0,i.jsx)("path",{d:"M27.0001 15.7413C27.1201 15.7413 27.2326 15.7599 27.3376 15.7971C27.4426 15.8343 27.5401 15.8982 27.6301 15.9888L33.5701 21.9288C33.7501 22.1088 33.8401 22.3224 33.8401 22.5696C33.8401 22.8168 33.7501 23.0307 33.5701 23.2113C33.3901 23.3913 33.1801 23.4813 32.9401 23.4813C32.7001 23.4813 32.4901 23.3913 32.3101 23.2113L27.9001 18.8013L27.9001 30.3813C27.9001 30.6363 27.8137 30.8463 27.6409 31.0113C27.4681 31.1763 27.2545 31.2588 27.0001 31.2588C26.7451 31.2588 26.5312 31.1724 26.3584 30.9996C26.1856 30.8268 26.0995 30.6132 26.1001 30.3588L26.1001 18.8013L21.6901 23.2113C21.5101 23.3913 21.3001 23.4813 21.0601 23.4813C20.8201 23.4813 20.6101 23.3913 20.4301 23.2113C20.2501 23.0313 20.1601 22.8174 20.1601 22.5696C20.1601 22.3218 20.2501 22.1082 20.4301 21.9288L26.3701 15.9888C26.4601 15.8988 26.5576 15.8349 26.6626 15.7971C26.7676 15.7593 26.8801 15.7407 27.0001 15.7413Z",fill:"#404040"})]}),(0,i.jsx)("defs",{children:(0,i.jsxs)("filter",{id:"filter0_d_1271_19039",x:"0",y:"0.1",width:"54",height:"54",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[(0,i.jsx)("feFlood",{"flood-opacity":"0",result:"Backgroun
1dImageFix"}),(0,i.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,i.jsx)("feOffset",{dy:"3.6"}),(0,i.jsx)("feGaussianBlur",{stdDeviation:"4.5"}),(0,i.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,i.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,i.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1271_19039"}),(0,i.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_1271_19039",result:"shape"})]})})]})})},c=o.ZP.div.withConfig({componentId:"sc-c4f1ee9c-0"})(s(),n=>{let{right:e}=n;return e},n=>{let{theme:e}=n;return e.colors.primary6});e.Z=l},92487:function(n,e,t){var r=t(70638),i=t(28598),o=t(82684),s=t(9518),l=t(43987),c=t(24572),d=t(82839),a=t(19170),u=t(22765),f=t(88656),h=t(60071),m=t.n(h),g=t(82857),p=t(5147);function x(){let n=(0,r.Z)(["\n  position: relative;\n  display: flex;\n  margin-top: 2.5rem;\n\n  @media (max-width: 768px) {\n    width: 100%;\n    padding-left: 1rem;\n  }\n"]);return x=function(){return n},n}function C(){let n=(0,r.Z)(["\n  display: flex;\n  gap: 1rem;\n"]);return C=function(){return n},n}function w(){let n=(0,r.Z)(["\n  margin-left: 1.5rem;\n  width: 100%;\n  display: flex;\n  flex-direction: column;\n\n  justify-content: space-between;\n"]);return w=function(){return n},n}function b(){let n=(0,r.Z)(["\n  color: ",";\n  height: 1.25rem;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  margin-bottom: 1rem;\n\n  span {\n    font-size: 1rem;\n    color: ",";\n\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n  }\n"]);return b=function(){return n},n}function j(){let n=(0,r.Z)(["\n  width: 90%;\n  margin-top: 0.25rem;\n  outline: 0;\n\n  border-width: 0 0 1px;\n  background-color: ",";\n  color: ",";\n"]);return j=function(){return n},n}function y(){let n=(0,r.Z)(["\n  display: flex;\n  gap: 1rem;\n  h3 {\n    ","\n  }\n  span {\n    ","\n  }\n"]);return y=function(){return n},n}function Z(){let n=(0,r.Z)(["\n  color: ",";\n  ","\n"]);return Z=function(){return n},n}function v(){let n=(0,r.Z)(["\n  display: flex;\n  flex-direction: row;\n  padding-right: 2.5rem;\n  gap: 1.2rem;\n\n  cursor: pointer;\n"]);return v=function(){return n},n}function k(){let n=(0,r.Z)(["\n  color: ",";\n  background-color: ",";\n  z-index: 10;\n  width: 11.25rem;\n  position: absolute;\n  top: 2rem;\n  right: -5rem;\n  box-shadow: 0rem 0.25rem 0.25rem rgba(0, 0, 0, 0.25);\n  border-radius: 0.25rem;\n"]);return k=function(){return n},n}function I(){let n=(0,r.Z)(["\n  line-height: 3.5rem;\n  cursor: pointer;\n  padding-left: 1.5rem;\n  :hover {\n    background-color: ",";\n  }\n"]);return I=function(){return n},n}let _=n=>{let{comment:e,dbType:t}=n,r=(0,l.NL)(),s=(0,o.useRef)();(0,p.Z)(s,()=>x(!1));let[h,x]=(0,o.useState)(!1),[C,w]=(0,o.useState)(!1),[b,j]=(0,o.useState)(e.content),[y,Z]=(0,o.useState)(""),[v,k]=(0,o.useState)(""),[I,_]=(0,o.useState)(""),[F,q]=(0,o.useState)("");(0,c.a)(["currentUser"],{queryFn:f.ts,onSuccess(n){let{data:{user:e}}=n;e&&Z(e.id)}}),(0,c.a)(["getOnePost",e.post_id],{queryFn:n=>{let{queryKey:e}=n;return(0,f.TA)(e[1])},onSuccess:n=>{n&&q(n.user_id)}}),(0,c.a)(["getSingleUser",e.user_id],{queryFn:n=>{let{queryKey:e}=n;return(0,f.fp)(e[1])},onSuccess(n){n&&(k(n.user_name),_(n.profile_image))},onError(n){console.log(n)},enabled:!!e.user_id});let{mutate:U}=(0,d.D)(async n=>{await g.Z.from("notification").delete().match({user_id:y,target_id:F,["comment"===t?"post_id":"profile_id"]:"comment"===t?e.post_id:e.profile_id,type:n})}),{mutate:R}=(0,d.D)(()=>(0,f.YF)(e.id,t),{onSuccess:async()=>{U(t),await (0,f.WF)(e.post_id),"comment"===t?(r.invalidateQueries(["getComment"]),r.invalidateQueries(["GET_POSTS"])):r.invalidateQueries(["getProfileComment"])}}),{mutate:H}=(0,d.D)(()=>(0,f.DF)(e.id,b,t),{onSuccess:()=>{r.invalidateQueries(["comment"===t?"getComment":"getProfileComment"])}}),G=async()=>{x(!1),C&&H(),w(n=>!n)},O=async()=>{j(e.content),w(n=>!n)},A=(0,a.Z)(e.created_at);return(0,i.jsxs)(P,{children:[(0,i.jsx)(u.m1,{alt:"프로필이미지",page:"detailPage",src:I,profileId:e.user_id}),(0,i.jsxs)(S,{children:[(0,i.jsx)(E,{children:(0,i.jsxs)(D,{children:[(0,i.jsxs)("h3",{children:[" ",v," "]}),(0,i.jsxs)("span",{children:[" ",A," "]})]})}),C?(0,i.jsx)(T,{value:b,onChange:n=>j(n.target.value)}):(0,i.jsx)(M,{children:e.content})]}),y===e.user_id?(0,i.jsx)(L,{children:C?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.KM,{text:"완료",buttonType:"default",size:"s",onClick:G}),(0,i.jsx)(u.KM,{text:"취소",buttonType:"line",size:"s",onClick:O})]}):(0,i.jsx)(B,{children:(0,i.jsx)(m(),{src:"/icons/more".concat(h?"-on":"",".svg"),onClick:()=>x(n=>!n),width:24,height:24,alt:"더보기 버튼"})})}):(0,i.jsx)(L,{}),h&&(0,i.jsxs)(z,{ref:s,children:[(0,i.jsx)(Q,{onClick:G,children:"수정하기"}),(0,i.jsx)(Q,{onClick:()=>R(),children:"삭제하기"})]})]})},P=s.ZP.div.withConfig({componentId:"sc-d2975787-0"})(x()),L=s.ZP.div.withConfig({componentId:"sc-d2975787-1"})(C()),S=s.ZP.div.withConfig({componentId:"sc-d2975787-2"})(w()),E=s.ZP.div.withConfig({componentId:"sc-d2975787-3"})(b(),n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.colors.gray4}),T=s.ZP.input.withConfig({componentId:"sc-d2975787-4"})(j(),n=>{let{theme:e}=n;return e.colors.gray11},n=>{let{theme:e}=n;return e.colors.white}),D=s.ZP.div.withConfig({componentId:"sc-d2975787-5"})(y(),n=>{let{theme:e}=n;return e.fonts.subtitle16},n=>{let{theme:e}=n;return e.fonts.body14}),M=s.ZP.div.withConfig({componentId:"sc-d2975787-6"})(Z(),n=>{let{theme:e}=n;return e.colors.gray2},n=>{let{theme:e}=n;return e.fonts.body16}),B=s.ZP.div.withConfig({componentId:"sc-d2975787-7"})(v()),z=s.ZP.div.withConfig({componentId:"sc-d2975787-8"})(k(),n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.colors.gray9}),Q=s.ZP.div.withConfig({componentId:"sc-d2975787-9"})(I(),n=>{let{theme:e}=n;return e.colors.gray8});e.Z=_},1352:function(n,e,t){t.d(e,{Z:function(){return eO}});var r=t(70638),i=t(28598),o=t(9518),s=t(34376),l=t(24572),c=t(88656),d=t(82684),a=t(43987),u=t(82839),f=t(38968),h=t(71607),m=t(22765),g=t(82857);let p=(n,e)=>
1{switch(n){case"like":return"님이 ".concat(e," 프로젝트에 좋아요를 눌렀습니다.");case"comment":return"님이 ".concat(e," 프로젝트에 리뷰를 남겼습니다.");case"bookmark":return"님이 ".concat(e," 프로젝트를 북마크 했습니다.");case"badge":return"님이 ".concat(e," 프로젝트에 칭찬뱃지를 남겼습니다.");default:return""}};var x=t(59841);function C(){let n=(0,r.Z)(["\n  height: 7rem;\n\n  display: flex;\n  justify-content: space-between;\n\n  @media (max-width: 768px) {\n    padding: 0 1rem 0 1rem;\n  }\n"]);return C=function(){return n},n}function w(){let n=(0,r.Z)(["\n  display: flex;\n  justify-content: end;\n\n  @media (max-width: 768px) {\n    width: 100%;\n    padding-right: 2rem;\n  }\n"]);return w=function(){return n},n}function b(){let n=(0,r.Z)(["\n  width: 70rem;\n  vertical-align: text-top;\n  padding: 0.5rem 0.75rem;\n\n  border-radius: 0.25rem;\n  border: 1px solid ",";\n\n  resize: none;\n\n  background-color: ",";\n  color: ",";\n\n  @media (max-width: 768px) {\n    ",";\n    margin-right: 1rem;\n    width: 70%;\n  }\n"]);return b=function(){return n},n}function j(){let n=(0,r.Z)(["\n  margin-top: 0.5rem;\n  margin-left: 3.5rem;\n  font-size: 1rem;\n  color: ",";\n  opacity: ",";\n  transition: all 0.5s ease-in-out;\n"]);return j=function(){return n},n}let y=n=>{let{postId:e,userId:t}=n,r=(0,a.NL)(),[o,s]=(0,d.useState)(!1),[C,w]=(0,d.useState)(""),[b,j]=(0,d.useState)(""),{inputValues:y,handleInputChange:_,resetAllInput:P}=(0,f.Gl)({comment:""}),{profileData:{profile_image:L,user_id:S}}=(0,h.G)();(0,l.a)(["getOnePost",e],{queryFn:n=>{let{queryKey:e}=n;return(0,c.TA)(e[1])},onSuccess:n=>{n&&(w(n.title),j(n.user_id))}});let{mutate:E}=(0,u.D)(async n=>{await g.Z.from("notification").insert({user_id:t,target_id:b,post_id:e,content:p(n,C),is_read:!1,type:n}).single()}),{mutate:T}=(0,u.D)(()=>(0,c.w)(y.comment,e,t),{onSuccess:async()=>{E("comment"),await (0,c.Uz)(e),(0,x.Kz)("createComment",{from:"detailPage"}),r.invalidateQueries(["getComment"]),r.invalidateQueries(["GET_POSTS"])}}),D=()=>{if(!y.comment){s(!0),setTimeout(()=>{s(!1)},2e3);return}T(),P()};return(0,d.useEffect)(()=>{(0,x.UK)()},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(Z,{children:[(0,i.jsx)(m.m1,{src:L,alt:"사용자 프로필 이미지",page:"detailPage",profileId:S}),(0,i.jsx)(k,{value:y.comment,onChange:_("comment"),placeholder:"이 프로젝트에 대한 리뷰를 남겨주세요."})]}),(0,i.jsx)(I,{isHelperText:o,children:"댓글을 입력해주세요."}),(0,i.jsx)(v,{children:(0,i.jsx)(m.KM,{text:"작성하기",buttonType:"default",size:"m",onClick:D})})]})},Z=o.ZP.div.withConfig({componentId:"sc-7eaa589e-0"})(C()),v=o.ZP.div.withConfig({componentId:"sc-7eaa589e-1"})(w()),k=o.ZP.textarea.withConfig({componentId:"sc-7eaa589e-2"})(b(),n=>{let{theme:e}=n;return e.colors.gray6},n=>{let{theme:e}=n;return e.colors.gray11},n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.fonts.body14}),I=o.ZP.div.withConfig({componentId:"sc-7eaa589e-3"})(j(),n=>{let{theme:e}=n;return e.colors.messageError},n=>{let{isHelperText:e}=n;return e?1:0});var _=t(92487);let P=n=>{var e;let{postId:t}=n,r=async()=>{let n=await g.Z.from("comment").select("*").order("created_at",{ascending:!1}).eq("post_id",t);return n},{data:o,refetch:s}=(0,l.a)(["getComment"],{queryFn:r});return(0,d.useEffect)(()=>{s()},[t,s]),(0,i.jsx)("div",{children:o&&(null===(e=o.data)||void 0===e?void 0:e.map(n=>(0,i.jsx)(_.Z,{comment:n,dbType:"comment"},n.id)))})};function L(){let n=(0,r.Z)(["\n  width: 75rem;\n  padding-top: 2.5rem;\n\n  @media (max-width: 768px) {\n    width: 100%;\n  }\n"]);return L=function(){return n},n}let S=()=>{let n=(0,s.useRouter)(),e=n.query.id,[t,r]=(0,d.useState)("");return(0,l.a)(["currentUser"],{queryFn:c.ts,onSuccess(n){let{data:{user:e}}=n;e&&r(e.id)}}),(0,i.jsxs)(E,{children:[t&&(0,i.jsx)(y,{postId:e,userId:t}),e&&(0,i.jsx)(P,{postId:e})]})},E=o.ZP.div.withConfig({componentId:"sc-6c2d46a3-0"})(L());var T=t(60071),D=t.n(T),M=t(27619),B=t(10103),z=t.n(B),Q=t(65834),F=t(5147);function q(){let n=(0,r.Z)(["\n  color: ",";\n  background-color: ",";\n  width: 11.25rem;\n  position: absolute;\n  top: 3.75rem;\n  right: 1rem;\n  box-shadow: 0rem 0.25rem 0.25rem rgba(0, 0, 0, 0.25);\n  border-radius: 0.25rem;\n  z-index: 2;\n"]);return q=function(){return n},n}function U(){let n=(0,r.Z)(["\n  line-height: 3.5rem;\n  cursor: pointer;\n  padding-left: 0.75rem;\n  :hover {\n    background-color: ",";\n  }\n"]);return U=function(){return n},n}let R=n=>
1{let{closeModal:e}=n,t=(0,s.useRouter)(),{query:{id:r}}=t,o=(0,d.useRef)(),[l,f]=(0,d.useState)(!1),h=(0,a.NL)();(0,F.Z)(o,()=>f(!1));let m=async()=>{t.push("/edit-post/".concat(r))},{mutate:g}=(0,u.D)(c.fR,{onSuccess:async()=>{h.invalidateQueries(["GET_INFINITE_POSTS"]),t.push("/")}}),p=(0,M.Z)(),x=()=>{f(!0)};return(0,i.jsxs)(H,{children:[!p&&(0,i.jsx)(G,{onClick:m,children:"수정하기"}),(0,i.jsx)(G,{onClick:x,children:"삭제하기"}),l&&(0,i.jsx)(Q.Z,{type:"warn",bodyText:"글을 삭제하시겠습니까?",leftText:"취소",rightText:"삭제",onClickLeft:()=>f(!1),onClickRight:()=>g(r)})]})},H=o.ZP.div.withConfig({componentId:"sc-25c33432-0"})(q(),n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.colors.gray9}),G=o.ZP.div.withConfig({componentId:"sc-25c33432-1"})(U(),n=>{let{theme:e}=n;return e.colors.gray8});function O(){let n=(0,r.Z)(["\n  padding: 1rem 2rem;\n  width: 100%;\n  position: relative;\n  align-items: center;\n  justify-content: space-between;\n  display: flex;\n  img {\n    cursor: pointer;\n  }\n  @media (max-width: 768px) {\n    width: 100%;\n  }\n"]);return O=function(){return n},n}function A(){let n=(0,r.Z)(["\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  gap: 1.2rem;\n"]);return A=function(){return n},n}function N(){let n=(0,r.Z)(["\n  cursor: pointer;\n  padding: 0.125rem;\n  margin-right: 1.875rem;\n\n  path {\n    fill: ",";\n  }\n\n  &:hover {\n    path {\n      fill: ",";\n    }\n  }\n"]);return N=function(){return n},n}let K=n=>{let{isBookmark:e,isLike:t,setIsBookmark:r,setIsLike:o,currentUserId:f}=n,h=(0,s.useRouter)(),m=(0,a.NL)(),{query:{id:x}}=(0,s.useRouter)(),[C,w]=(0,d.useState)(!1),[b,j]=(0,d.useState)(""),[y,Z]=(0,d.useState)(""),{data:v}=(0,l.a)(["getOnePost",x],{queryFn:n=>{let{queryKey:e}=n;return(0,c.TA)(e[1])},onSuccess:n=>{n&&(j(n.title),Z(n.user_id))}}),k=()=>w(n=>!n),I=(0,M.Z)(),{mutate:_}=(0,u.D)(async n=>{await g.Z.from("notification").insert({user_id:f,target_id:y,post_id:x,content:p(n,b),is_read:!1,type:n}).single()}),{mutate:P}=(0,u.D)(async n=>{await g.Z.from("notification").delete().match({user_id:f,target_id:y,post_id:x,type:n})}),{mutate:L}=(0,u.D)(c.Rl,{onMutate:async n=>{await m.cancelQueries(["getBookmark",n.postId]);let e=m.getQueryData(["getBookmark",n.postId]);return e&&m.setQueryData(["getBookmark",n.postId],{...e,newBookmarkItem:n}),{previousBookmark:e}},onError:(n,e,t)=>{(null==t?void 0:t.previousBookmark)&&m.setQueryData(["getBookmark",e.postId],{...t.previousBookmark})},onSuccess:async()=>{_("bookmark"),r(!0)}}),{mutate:S}=(0,u.D)(c.Tc,{onMutate:async n=>{await m.cancelQueries(["getBookmark",n.postId]);let e=m.getQueryData(["getBookmark",n.postId]);return e&&m.setQueryData(["getBookmark",n.postId],null),{previousBookmark:e}},onError:(n,e,t)=>{(null==t?void 0:t.previousBookmark)&&m.setQueryData(["getBookmark",e.postId],{...t.previousBookmark})},onSuccess:async()=>{P("bookmark"),r(!1)}}),{mutate:E}=(0,u.D)(c.dE,{onMutate:async n=>{await m.cancelQueries(["getLike",n.postId]);let e=m.getQueryData(["getLike",n.postId]);return e&&m.setQueryData(["getLike",n.postId],{...e,newLikeItem:n}),{previousLike:e}},onError:(n,e,t)=>{(null==t?void 0:t.previousLike)&&m.setQueryData(["getLike",e.postId],{...t.previousLike})},onSuccess:async()=>{_("like"),o(!0)}}),{mutate:T}=(0,u.D)(c.Nk,{onMutate:async n=>{await m.cancelQueries(["getLike",n.postId]);let e=m.getQueryData(["getLike",n.postId]);return e&&m.setQueryData(["getLike",n.postId],null),{previousLike:e}},onError:(n,e,t)=>{(null==t?void 0:t.previousLike)&&m.setQueryData(["getLike",e.postId],{...t.previousLike})},onSuccess:async()=>{P("like"),o(!1)}}),B=(0,d.useCallback)(z().throttle(()=>{L({postId:x,currentUserId:f}),(0,c.sK)(x),m.invalidateQueries(["GET_POSTS"])},500,{leading:!0,trailing:!1}),[]),Q=(0,d.useCallback)(z().throttle(()=>{S({postId:x,currentUserId:f}),(0,c.oP)(x),m.invalidateQueries(["GET_POSTS"])},500,{leading:!0,trailing:!1}),[]),F=async()=>f?e?Q():B():h.push("/auth/login"),q=(0,d.useCallback)(z().throttle(()=>{T({postId:x,currentUserId:f}
1),(0,c.pn)(x),m.invalidateQueries(["GET_POSTS"])},500,{leading:!0,trailing:!1}),[]),U=(0,d.useCallback)(z().throttle(()=>{E({postId:x,currentUserId:f}),(0,c.oE)(x),m.invalidateQueries(["GET_POSTS"])},500,{leading:!0,trailing:!1}),[]),H=async()=>f?t?q():U():h.push("/auth/login");return(0,i.jsxs)(V,{children:[(0,i.jsxs)(W,{children:[!I&&(0,i.jsx)(Y,{onClick:()=>h.back(),children:(0,i.jsx)("svg",{width:"24",height:"20",viewBox:"0 0 103 82",fill:"none",children:(0,i.jsx)("path",{d:"M2.11091 37.1109C-0.0369708 39.2588 -0.036971 42.7412 2.11091 44.8891L37.1127 79.8909C39.2606 82.0388 42.743 82.0388 44.8909 79.8909C47.0388 77.743 47.0388 74.2606 44.8909 72.1127L13.7782 41L44.8909 9.8873C47.0388 7.73941 47.0388 4.25701 44.8909 2.10912C42.743 -0.0387603 39.2606 -0.0387605 37.1127 2.10912L2.11091 37.1109ZM103 35.5L6 35.5L6 46.5L103 46.5L103 35.5Z",fill:"black"})})}),(0,i.jsx)(D(),{src:"/icons/like".concat(t?"Hover":"",".svg"),width:24,height:24,alt:"좋아요 버튼",onClick:H}),(0,i.jsx)(D(),{src:"/icons/bookmark".concat(e?"Hover":"",".svg"),width:24,height:24,alt:"북마크 버튼",onClick:F})]}),y===f&&(0,i.jsx)(W,{children:(0,i.jsx)(D(),{src:"/icons/more".concat(C?"-on":"",".svg"),onClick:k,width:24,height:24,alt:"더보기 버튼"})}),C&&(0,i.jsx)(R,{closeModal:()=>w(!1)})]})},V=o.ZP.div.withConfig({componentId:"sc-b4f74d15-0"})(O()),W=o.ZP.div.withConfig({componentId:"sc-b4f74d15-1"})(A()),Y=o.ZP.div.withConfig({componentId:"sc-b4f74d15-2"})(N(),n=>{let{theme:e}=n;return e.colors.gray3},n=>{let{theme:e}=n;return e.colors.primary6}),$=async n=>{let{queryKey:e}=n,{postId:t}=e[1];if(!t)return null;let r=await g.Z.from("post_badge").select("*").eq("post_id",t);if(r.error)throw Error(r.error.message);return r.data},J=async n=>{let{postId:e,userId:t,type:r}=n,{data:i,error:o}=await g.Z.from("post_badge").insert({post_id:e,user_id:t,type:r});return(console.log(o),o)?o:i},X=async n=>{let{postId:e,userId:t,type:r}=n,{data:i,error:o}=await g.Z.from("post_badge").delete().match({post_id:e,user_id:t,type:r});return o||i},nn=async n=>{let{queryKey:e}=n,{postId:t,userId:r}=e[1],i=await g.Z.from("post_badge").select("type").eq("post_id",t).eq("user_id",r);if(i.error)throw Error(i.error.message);return i.data};function ne(){let n=(0,r.Z)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 2rem;\n"]);return ne=function(){return n},n}function nt(){let n=(0,r.Z)(["\n  p {\n    ","\n  }\n\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n\n  cursor: pointer;\n  color: ",";\n\n  path {\n    ",";\n  }\n\n  svg {\n    margin-bottom: 0.5rem;\n  }\n\n  &:hover {\n    color: ",";\n    path {\n      fill: ",";\n    }\n  }\n\n  @media (max-width: 768px) {\n    p {\n      ","\n    }\n  }\n"]);return nt=function(){return n},n}let nr=n=>{var e;let{closeModal:t}=n,r=(0,s.useRouter)(),o=null===(e=r.query)||void 0===e?void 0:e.id,[a,f]=(0,d.useState)(!1),[h,m]=(0,d.useState)(0),[g,p]=(0,d.useState)(0),[C,w]=(0,d.useState)(0),[b,j]=(0,d.useState)(0),[y,Z]=(0,d.useState)([]),[v,k]=(0,d.useState)(""),[I,_]=(0,d.useState)();(0,l.a)(["currentUser"],c.ts,{onSuccess:n=>{let{data:{user:e}}=n;e&&k(e.id)}});let{refetch:P}=(0,l.a)(["getPostBadge",{postId:o}],$,{onSuccess:n=>{if(!n)return;let e=0,t=0,r=0,i=0;n.forEach(n=>{let{type:o}=n;"idea"===o&&(e+=1),"complete"===o&&(t+=1),"code"===o&&(r+=1),"function"===o&&(i+=1)}),m(e),p(t),w(r),j(i)}}),{refetch:L}=(0,l.a)(["getPostBadgeByUserId",{userId:v,postId:o}],nn,{onSuccess:n=>{let e=n.map(n=>n.type);Z(e)}}),{mutate:S}=(0,u.D)(J,{onSuccess:()=>{P(),L(),(0,x.Kz)("Add Badge",{from:"Detail Page"})}}),{mutate:E}=(0,u.D)(X,{onSuccess:()=>{P(),L()}}),T=(0,d.useCallback)(z().throttle(()=>{if(!v||!o||!I)return;let n=y.filter(n=>n!==I);Z(n),E({userId:v,postId:o,type:I})},500,{leading:!0,trailing:!1}),[I]),D=(0,d.useCallback)(z().throttle(()=>{v&&o&&void 0!==I&&(Z([...y,I]),S({userId:v,postId:o,type:I}))},500,{leading:!0,trailing:!1}),[I]),M=()=>{if(!v||!o){f(!0);return}I&&(y.includes(I)?T():D(),t&&t())};return(0,d.useEffect)(()=>{(0,x.UK)()},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(ni,{children:[(0,i.jsxs)(no,{onClick:M,onMouseEnter:()=>_("idea"),badgeCheck:y,badge:"idea",children:[(0,i.jsx)("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M8.25 18H15.75V19.5H8.25V18ZM9.75 21H14.25V22.5H9.75V21ZM12 1.5C10.0109 1.5 8.10323 2.29018 6.6967 3.6967C5.29018 5.10322 4.5 7.01088 4.5 9C4.44928 10.09 4.65808 11.1765 5.10923 12.17C5.56037 13.1636 6.24096 14.0358 7.095 14.715C7.845 15.4125 8.25 15.81 8.25 16.5H9.75C9.75 15.12 8.9175 14.3475 8.1075 13.605C7.40652 13.0682 6.84786 12.3677 6.48044 11.5649C6.11302 10.7621 5.94806 9.88138 6 9C6 7.4087 6.63214 5.88258 7.75736 4.75736C8.88258 3.63214 10.4087 3 12 3C13.5913 3 15.1174 3.63214 16.2426 4.75736C17.3679 5.88258 18 7.4087 18 9C18.0511 9.88203 17.885 10.7631 17.5162 11.566C17.1475 12.3689 16.5874 13.069 15.885 13.605C15.0825 14.355 14.25 15.105 14.25 16.5H15.75C15.75 15.81 16.1475 15.4125 16.905 14.7075C17.7585 14.0295 18.4387 13.1585 18.8899 12.1663C19.341 11.174 19.5501 10.0888 19.5 9C19.5 8.01509 19.306 7.03982 18.9291 6.12987C18.5522 5.21993 17.9997 4.39314 17.3033 3.6967C16.6069 3.00026 15.7801 2.44781 14.8701 2.0709C13.9602 1.69399 12.9849 1.5 12 1.5Z",fill:"#CCCCCC"})}),(0,i.jsx)("p",{children:"굿아이디어"}),(0,i.jsx)("p",{children:h})]}),(0,i.jsxs)(no,{onClick:M,onMouseEnter:()=>_("complete"),badgeCheck:y,badge:"complete",children:[(0,i.jsx)("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M16.2565 8.08983L17.0768 8.91015L10.25 15.737L6.9232 12.4101L7.74351 11.5898L10.25 14.0963L16.2565 8.08983ZM12 2.66666C12.8568 2.66666 13.6832 2.77603 14.4792 2.99478C15.2752 3.21353 16.0196 3.52647 16.7123 3.93358C17.405 4.3407 18.0339 4.82681 18.599 5.39192C19.1641 5.95702 19.6502 6.58897 20.0573 7.28775C20.4644 7.98654 20.7774 8.73089 20.9961 9.52082C21.2149 10.3108 21.3273 11.1371 21.3334 12C21.3334 12.8568 21.224 13.6831 21.0052 14.4792C20.7865 15.2752 20.4735 16.0195 20.0664 16.7122C19.6593 17.4049 19.1732 18.0338 18.6081 18.5989C18.043 19.1641 17.411 19.6502 16.7123 20.0573C16.0135 20.4644 15.2691 20.7773 14.4792 20.9961C13.6893 21.2148 12.8629 21.3272 12 21.3333C11.1432 21.3333 10.3169 21.2239 9.52085 21.0052C8.72485 20.7864 7.98049 20.4735 7.28778 20.0664C6.59507 19.6593 5.96617 19.1732 5.40106 18.6081C4.83596 18.043 4.34985 17.411 3.94273 16.7122C3.53561 16.0134 3.22268 15.2721 3.00393 14.4883C2.78518 13.7044 2.67276 12.875 2.66669 12C2.66669 11.1432 2.77606 10.3168 2.99481 9.52082C3.21356 8.72482 3.5265 7.98046 3.93361 7.28775C4.34073 6.59504 4.82684 5.96614 5.39195 5.40103C5.95705 4.83593 6.589 4.34982 7.28778 3.9427C7.98657 3.53558 8.72788 3.22265 9.51174 3.0039C10.2956 2.78515 11.125 2.67273 12 2.66666ZM12 20.1667C12.7474 20.1667 13.4675 20.0694 
114.1602 19.875C14.8529 19.6805 15.5031 19.4071 16.1107 19.0547C16.7183 18.7022 17.2713 18.2739 17.7696 17.7695C18.2678 17.2652 18.6932 16.7153 19.0456 16.1198C19.398 15.5243 19.6745 14.8741 19.875 14.1693C20.0755 13.4644 20.1728 12.7413 20.1667 12C20.1667 11.2526 20.0695 10.5325 19.875 9.83983C19.6806 9.14713 19.4071 8.49695 19.0547 7.88931C18.7023 7.28167 18.2739 6.72872 17.7696 6.23046C17.2652 5.73219 16.7153 5.30685 16.1198 4.95442C15.5243 4.60199 14.8742 4.32551 14.1693 4.12499C13.4644 3.92447 12.7413 3.82725 12 3.83332C11.2526 3.83332 10.5326 3.93055 9.83986 4.12499C9.14716 4.31943 8.49698 4.59287 7.88934 4.9453C7.2817 5.29773 6.72875 5.72612 6.23049 6.23046C5.73223 6.7348 5.30688 7.28471 4.95445 7.8802C4.60202 8.47568 4.32554 9.12586 4.12502 9.83072C3.9245 10.5356 3.82728 11.2587 3.83335 12C3.83335 12.7474 3.93058 13.4674 4.12502 14.1601C4.31946 14.8529 4.5929 15.503 4.94533 16.1107C5.29776 16.7183 5.72615 17.2713 6.23049 17.7695C6.73483 18.2678 7.28474 18.6931 7.88023 19.0456C8.47571 19.398 9.12589 19.6745 9.83075 19.875C10.5356 20.0755 11.2587 20.1727 12 20.1667Z",fill:"#CCCCCC"})}),(0,i.jsx)("p",{children:"완성도대박"}),(0,i.jsx)("p",{children:g})]}),(0,i.jsxs)(no,{onClick:M,onMouseEnter:()=>_("code"),badgeCheck:y,badge:"code",children:[(0,i.jsx)("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.87868 3.87868C4.44129 3.31607 5.20435 3 6 3H18C18.7956 3 19.5587 3.31607 20.1213 3.87868C20.6839 4.44129 21 5.20435 21 6V18C21 18.7956 20.6839 19.5587 20.1213 20.1213C19.5587 20.6839 18.7956 21 18 21H6C5.20435 21 4.44129 20.6839 3.87868 20.1213C3.31607 19.5587 3 18.7956 3 18V6C3 5.20435 3.31607 4.44129 3.87868 3.87868ZM6 4.5C5.60218 4.5 5.22064 4.65804 4.93934 4.93934C4.65804 5.22064 4.5 5.60218 4.5 6V18C4.5 18.3978 4.65804 18.7794 4.93934 19.0607C5.22064 19.342 5.60218 19.5 6 19.5H18C18.3978 19.5 18.7794 19.342 19.0607 19.0607C19.342 18.7794 19.5 18.3978 19.5 18V6C19.5 5.60218 19.342 5.22064 19.0607 4.93934C18.7794 4.65804 18.3978 4.5 18 4.5H6ZM10.2803 9.21967C10.5732 9.51256 10.5732 9.98744 10.2803 10.2803L8.56066 12L10.2803 13.7197C10.5732 14.0126 10.5732 14.4874 10.2803 14.7803C9.98744 15.0732 9.51256 15.0732 9.21967 14.7803L6.96967 12.5303C6.67678 12.2374 6.67678 11.7626 6.96967 11.4697L9.21967 9.21967C9.51256 8.92678 9.98744 8.92678 10.2803 9.21967ZM13.7197 9.21967C14.0126 8.92678 14.4874 8.92678 14.7803 9.21967L17.0303 11.4697C17.3232 11.7626 17.3232 12.2374 17.0303 12.5303L14.7803 14.7803C14.4874 15.0732 14.0126 15.0732 13.7197 14.7803C13.4268 14.4874 13.4268 14.0126 13.7197 13.7197L15.4393 12L13.7197 10.2803C13.4268 9.98744 13.4268 9.51256 13.7197 9.21967Z",fill:"#CCCCCC"})}),(0,i.jsx)("p",{children:"훌륭한코드"}),(0,i.jsx)("p",{children:C})]}),(0,i.jsxs)(no,{onClick:M,onMouseEnter:()=>_("function"),badgeCheck:y,badge:"function",children:[(0,i.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.34914 2.85567C9.41682 2.55051 9.68742 2.33334 10 2.33334H14C14.3125 2.33334 14.583 2.55038 14.6508 2.85542L15.1269 4.99855C15.6104 5.2144 16.0702 5.47981 16.4989 5.79051L18.5938 5.1311C18.8919 5.03729 19.2151 5.16307 19.3713 5.43367L21.3713 8.89767C21.5275 9.16822 21.4749 9.51095 21.2448 9.72218L19.6266 11.2073C19.6809 11.7337 19.6809 12.2643 19.6266 12.7908L21.2448 14.2758C21.4749 14.4871 21.5275 14.8298 21.3713 15.1004L19.3713 18.5644C19.2151 18.835 18.8919 18.9607 18.5938 18.8669L16.4993 18.2076C16.0706 18.5189 15.6107 18.7849 15.127 19.0012L14.6508 21.1446C14.583 21.4496 14.3125 21.6667 14 21.6667H10C9.68752 21.6667 9.41697 21.4496 9.3492 21.1446L8.87305 19.0015C8.38957 18.7856 7.92978 18.5202 7.50106 18.2095L5.40616 18.8689C5.10811 18.9627 4.78489 18.837 4.62865 18.5664L2.62865 15.1024C2.47245 14.8318 2.52506 14.4891 2.75523 14.2778L4.37345 12.7927C4.31919 12.2663 4.31919 11.7356 4.37347 11.2092L2.75509 9.72305C2.52503 9.5118 2.47248 9.16916 2.62865 8.89867L4.62865 5.43467C4.78489 5.16407 5.10811 5.03829 5.40616 5.1321L7.50096 5.79148C7.92994 5.48042 8.39005 5.21472 8.87389 4.99864L9.34914 2.85567ZM10.535 3.66668L10.1008 5.62435C10.0527 5.84126 9.89974 6.01995 9.69283 6.10088C9.09924 6.33304 8.54415 6.65359 8.04636 7.05167C7.87289 7.1904 7.64171 7.23361 7.42983 7.16692L5.51594 6.56449L4.05059 9.10248L5.52891 10.46C5.69215 10.6099 5.77022 10.8311 5.73724 11.0502C5.64237 11.6805 5.64237 12.3215 5.73724 12.9518C5.77023 13.171 5.6921 13.3923 5.52876 13.5422L4.05067 14.8987L5.51594 17.4365L7.42983 16.8341C7.64165 16.7674 7.87277 16.8106 8.04623 16.9492C8.54378 17.3469 9.09855 17.6672 9.69177 17.8991C9.89863 
117.98 10.0516 18.1586 10.0998 18.3754L10.5348 20.3333H13.4652L13.9002 18.3754C13.9483 18.1588 14.1011 17.9803 14.3078 17.8993C14.9011 17.6668 15.4559 17.346 15.9533 16.9476C16.1268 16.8087 16.3581 16.7654 16.5702 16.8321L18.484 17.4345L19.9493 14.8967L18.4712 13.5402C18.3079 13.3903 18.2297 13.169 18.2628 12.9497C18.3577 12.3195 18.3577 11.6786 18.2628 11.0483C18.2297 10.8291 18.3079 10.6077 18.4712 10.4578L19.9493 9.10134L18.484 6.56349L16.5702 7.16592C16.3583 7.23259 16.1272 7.18942 15.9538 7.05078C15.4562 6.65311 14.9014 6.33286 14.3082 6.1009C14.1014 6.02001 13.9484 5.84142 13.9002 5.6246L13.4652 3.66668H10.535Z",fill:"#CCCCCC"}),(0,i.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 9.66668C10.7113 9.66668 9.66668 10.7113 9.66668 12C9.66668 13.2887 10.7113 14.3333 12 14.3333C13.2887 14.3333 14.3333 13.2887 14.3333 12C14.3333 10.7113 13.2887 9.66668 12 9.66668ZM8.33334 12C8.33334 9.97497 9.97497 8.33334 12 8.33334C14.0251 8.33334 15.6667 9.97497 15.6667 12C15.6667 14.0251 14.0251 15.6667 12 15.6667C9.97497 15.6667 8.33334 14.0251 8.33334 12Z",fill:"#CCCCCC"})]}),(0,i.jsx)("p",{children:"다양한기능"}),(0,i.jsx)("p",{children:b})]})]}),a&&(0,i.jsx)(Q.Z,{bodyText:"로그인하시겠습니까?",leftText:"취소",rightText:"로그인",onClickLeft:()=>f(!1),onClickRight:()=>r.push("/auth/login")})]})},ni=o.ZP.div.withConfig({componentId:"sc-d279a506-0"})(ne()),no=o.ZP.div.withConfig({componentId:"sc-d279a506-1"})(nt(),n=>{let{theme:e}=n;return e.fonts.body14},n=>{let{theme:e,badgeCheck:t,badge:r}=n;return e.colors[t.includes(r)?"primary6":"gray3"]},n=>{let{theme:e,badgeCheck:t,badge:r}=n;return t.includes(r)&&"fill: ".concat(e.colors.primary6)},n=>{let{theme:e}=n;return e.colors.primary6},n=>{let{theme:e}=n;return e.colors.primary6},n=>{let{theme:e}=n;return e.fonts.body12});function ns(){let n=(0,r.Z)(["\n  position: absolute;\n  left: 0;\n  top: 3.25rem;\n  background-color: ",";\n  z-index: 2;\n  width: 26.25rem;\n  padding: 2rem;\n  filter: drop-shadow(0 0 4 rgba(0, 0, 0, 0.12))\n    drop-shadow(0.125rem 0.375rem 0.75rem rgba(0, 0, 0, 0.12));\n  border-radius: 0.5rem;\n"]);return ns=function(){return n},n}let nl=n=>{let{closeModal:e}=n,t=(0,d.useRef)();return(0,F.Z)(t,()=>e()),(0,i.jsx)(nc,{ref:t,children:(0,i.jsx)(nr,{closeModal:e})})},nc=o.ZP.div.withConfig({componentId:"sc-d9df3a06-0"})(ns(),n=>{let{theme:e}=n;return e.colors.gray8});function nd(){let n=(0,r.Z)(["\n  width: 17.1875rem;\n  padding: 1.5rem 2rem;\n\n  border: 1px solid ",";\n  background-color: ",";\n  border-radius: 0.5rem;\n\n  display: flex;\n  flex-direction: column;\n  gap: 2rem;\n"]);return nd=function(){return n},n}let na=o.ZP.div.withConfig({componentId:"sc-412c8bca-0"})(nd(),n=>{let{theme:e}=n;return e.colors.gray9},n=>{let{theme:e}=n;return e.colors.gray10});function nu(){let n=(0,r.Z)(["\n  ","\n  font-size: 0.8125rem;\n  color: ",";\n"]);return nu=function(){return n},n}function nf(){let n=(0,r.Z)(["\n  color: ",";\n  border: 1px solid ",";\n  border-radius: 0.5rem;\n\n  cursor: pointer;\n  &:hover {\n    background-color: ",";\n  }\n  position: relative;\n"]);return nf=function(){return n},n}function nh(){let n=(0,r.Z)(["\n  display: flex;\n  gap: 1rem;\n  align-items: center;\n  justify-content: center;\n  padding: 0.5rem 1rem;\n"]);return nh=function(){return n},n}function nm(){let n=(0,r.Z)(["\n  display: flex;\n  align-items: center;\n  gap: 0.125rem;\n\n  position: relative;\n"]);return nm=function(){return n},n}let ng=()=>{let n=(0,s.useRouter)(),[e,t]=(0,d.useState)(!1),[r,o]=(0,d.useState)(0),[c,a]=(0,d.useState)(0),[u,f]=(0,d.useState)(0),[h,m]=(0,d.useState)(0),g=n.query.id;return(0,l.a)(["getPostBadge",{postId:g}],$,{onSuccess:n=>{if(!n)return;let e=0,t=0,r=0,i=0;n.forEach(n=>{let{type:o}=n;"idea"===o&&(e+=1),"complete"===o&&(t+=1),"code"===o&&(r+=1),"function"===o&&(i+=1)}),o(e),a(t),f(r),m(i)}}),(0,i.jsxs)(na,{children:[(0,i.jsx)(np,{children:"추천 배지"}),(0,i.jsxs)(nx,{children:[(0,i.jsxs)(nC,{onClick:()=>t(n=>!n),children:[(0,i.jsxs)(nw,{children:[(0,i.jsx)(D(),{src:"/icons/badge-light.svg",alt:"뱃지",width:"24",height:"24"}),(0,i.jsx)("p",{children:r})]}),(0,i.jsxs)(nw,{children:[(0,i.jsx)(D(),{src:"/icons/badge-check.svg",alt:"뱃지",width:"24",height:"24"}),(0,i.jsx)("p",{children:c})]}),(0,i.jsxs)(nw,{children:[(0,i.jsx)(D(),{src:"/icons/badge-code.svg",alt:"뱃지",width:"24",height:"24"}),(0,i.jsx)("p",{children:u})]}),(0,i.jsxs)(nw,{children:[(0,i.jsx)(D(),{src:"/icons/badge-setting.svg",alt:"뱃지",width:"24",height:"24"}),(0,i.jsx)("p",{children:h})]})]}),e&&(0,i.jsx)(nl,{closeModal:()=>t(!1)})]})]})}
1,np=o.ZP.div.withConfig({componentId:"sc-781843f4-0"})(nu(),n=>{let{theme:e}=n;return e.fonts.body14},n=>{let{theme:e}=n;return e.colors.gray5}),nx=o.ZP.div.withConfig({componentId:"sc-781843f4-1"})(nf(),n=>{let{theme:e}=n;return e.colors.gray4},n=>{let{theme:e}=n;return e.colors.gray4},n=>{let{theme:e}=n;return e.colors.gray8}),nC=o.ZP.div.withConfig({componentId:"sc-781843f4-2"})(nh()),nw=o.ZP.div.withConfig({componentId:"sc-781843f4-3"})(nm());function nb(){let n=(0,r.Z)(["\n  display: flex;\n  flex-direction: column;\n  gap: 1rem;\n"]);return nb=function(){return n},n}function nj(){let n=(0,r.Z)(["\n  ","\n  p {\n    color: ",";\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    text-decoration-line: underline;\n  }\n  cursor: pointer;\n"]);return nj=function(){return n},n}function ny(){let n=(0,r.Z)(["\n  ","\n  font-size: 0.8125rem;\n  color: ",";\n"]);return ny=function(){return n},n}function nZ(){let n=(0,r.Z)(["\n  display: flex;\n  flex-direction: column;\n  gap: 1rem;\n"]);return nZ=function(){return n},n}let nv=n=>{let{progressDate:e,skills:t,tag:r,githubUrl:o,deployUrl:l}=n,c=(0,s.useRouter)();return(0,i.jsxs)(na,{children:[(0,i.jsxs)(nk,{children:[(0,i.jsx)(np,{children:"프로젝트 기간"}),(0,i.jsxs)(n_,{children:[e[0]," ~","1900-01"===e[1]?"진행중":e[1]]})]}),o&&(0,i.jsxs)(nP,{children:[(0,i.jsx)(np,{children:"깃허브 주소"}),(0,i.jsx)(nI,{onClick:()=>c.push(o),children:(0,i.jsx)(D(),{src:"/icons/github.svg",width:"24",height:"24",alt:"깃허브 주소"})})]}),l&&(0,i.jsxs)(nP,{children:[(0,i.jsx)(np,{children:"배포 주소"}),(0,i.jsx)(nI,{onClick:()=>c.push(l),children:(0,i.jsx)("p",{children:l})})]}),(0,i.jsxs)(nP,{children:[(0,i.jsx)(np,{children:"개발스택"}),(0,i.jsx)(m.$G,{tagItems:t})]}),(0,i.jsxs)(nP,{children:[(0,i.jsx)(np,{children:"키워드 태그"}),(0,i.jsx)(m.$G,{tagItems:r,color:"white"})]})]})},nk=o.ZP.div.withConfig({componentId:"sc-4ff0104a-0"})(nb()),nI=o.ZP.div.withConfig({componentId:"sc-4ff0104a-1"})(nj(),n=>{let{theme:e}=n;return e.fonts.subtitle16},n=>{let{theme:e}=n;return e.colors.gray2}),n_=o.ZP.span.withConfig({componentId:"sc-4ff0104a-2"})(ny(),n=>{let{theme:e}=n;return e.fonts.subtitle16},n=>{let{theme:e}=n;return e.colors.gray2}),nP=o.ZP.div.withConfig({componentId:"sc-4ff0104a-3"})(nZ());var nL=t(12691),nS=t.n(nL);function nE(){let n=(0,r.Z)(["\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: space-between;\n  gap: 1.25rem;\n"]);return nE=function(){return n},n}function nT(){let n=(0,r.Z)(["\n  display: flex;\n  gap: 1rem;\n"]);return nT=function(){return n},n}function nD(){let n=(0,r.Z)(["\n  display: flex;\n  flex-direction: column;\n  gap: 0.5rem;\n\n  h2 {\n    font-size: 1rem;\n    color: ",";\n  }\n  p {\n    font-size: 0.875rem;\n    color: ",";\n  }\n"]);return nD=function(){return n},n}function nM(){let n=(0,r.Z)(["\n  width: 100%;\n  cursor: pointer;\n"]);return nM=function(){return n},n}let nB=n=>{let{profileImage:e="",name:t,field:r,github:o}=n;return(0,i.jsxs)(nz,{children:[(0,i.jsxs)(nQ,{children:[(0,i.jsx)(m.m1,{src:e,alt:"프로필 사진",page:"detailPage"}),(0,i.jsxs)(nF,{children:[(0,i.jsx)("h2",{children:t}),(0,i.jsx)("p",{children:r})]})]}),(0,i.jsx)(nS(),{target:"_blank",href:o,children:(0,i.jsx)(nq,{src:"/icons/github.svg",width:20,height:20,alt:"깃허브 주소"})})]})},nz=o.ZP.div.withConfig({componentId:"sc-948abd27-0"})(nE()),nQ=o.ZP.div.withConfig({componentId:"sc-948abd27-1"})(nT()),nF=o.ZP.div.withConfig({componentId:"sc-948abd27-2"})(nD(),n=>{let{theme:e}=n;return e.colors.gray2},n=>{let{theme:e}=n;return e.colors.gray4}),nq=(0,o.ZP)(D()).withConfig({componentId:"sc-948abd27-3"})(nM());function nU(){let n=(0,r.Z)(["\n  display: flex;\n  flex-direction: column;\n  gap: 1rem;\n"]);return nU=function(){return n},n}function nR(){let n=(0,r.Z)(["\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: space-between;\n  gap: 1.25rem;\n"]);return nR=function(){return n},n}function nH(){let n=(0,r.Z)(["\n  display: flex;\n  gap: 1rem;\n"]);return nH=function(){return n},n}function nG(){let n=(0,r.Z)(["\n  display: flex;\n  flex-direction: column;\n\n  h2 {\n    ",";\n    font-size: 1rem;\n    color: ",";\n  }\n  p {\n    ",";\n    font-size: 0.875rem;\n    color: ",";\n  }\n"]);return nG=function(){return n},n}function nO(){let n=(0,r.Z)(["\n  width: 100%;\n  cursor: pointer;\n"]);return nO=function(){return n},n}let nA=n=>{var e;let{authorInfo:t,subCategory:r,members:o}=n;return(0,i.jsxs)(na,{children:[(0,i.jsxs)(nN,{children:[(0,i.jsx)(np,{children:"작성자"}),(0,i.jsxs)(nK,{children:[(0,i.jsxs)(nV,{children:[(0,i.jsx)(m.m1,{src:null==t?void 0:t.profile_image,alt:"프로필 사진",page:"detailPage",profileId:null==t?void 0:t.user_id}),(0,i.jsxs)(nW,{children:[(0,i.jsx)("h2",{children:null==t?void 0:t.user_name}),(0,i.jsx)("p",{children:r})]})]}),(0,i.jsx)(nS(),{target:"_blank",href:null!==(e=null==t?void 0:t.github)&&void 0!==e?e:"",children:(0,i.jsx)(nY,{src:"/icons/github.svg",width:20,height:20,alt:"깃허브 주소"})})]})]}),(0,i.jsxs)(nN,{children:[0!==o.length&&(0,i.jsx)(np,{children:"함께한 사람들"}),o.map((n,e)=>{let{name:t,field:r,github:o}=n;return(0,i.jsx)(nB,{name:t,field:r,github:o},e)})]})]})},nN=o.ZP.div.withConfig({componentId:"sc-b9331820-0"})(nU()),nK=o.ZP.div.withConfig({componentId:"sc-b9331820-1"})(nR()),nV=o.ZP.div.withConfig({componentId:"sc-b9331820-2"})(nH()),nW=o.ZP.div.withConfig({componentId:"sc-b9331820-3"})(nG(),n=>{let{theme:e}=n;return e.fonts.subtitle16},n=>{let{theme:e}=n;return e.colors.gray2},n=>{let{theme:e}=n;return e.fonts.body14},n=>{let{theme:e}=n;return e.colors.gray4}),nY=(0,o.ZP)(D()).withConfig({componentId:"sc-b9331820-4"})(nO());function n$(){let n=(0,r.Z)(["\n  display: flex;\n  flex-direction: column;\n  gap: 2.5rem;\n"]);return n$=function(){return n},n}let nJ=n=>{let{progressDate:e,subCategory:t,tag:r,skills:o,members:s,authorInfo:l,githubUrl:c,deployUrl:d}=n;return(0,i.jsxs)(nX,{children:[(0,i.jsx)(ng,{}),(0,i.jsx)(nv,{progressDate:e,tag:r,skills:o,githubUrl:c,deployUrl:d}),(0,i.jsx)(nA,{authorInfo:l,subCategory:t,members:s})]})},nX=o.ZP.div.withConfig({componentId:"sc-ceef5d57-0"})(n$());function n1(){let n=(0,r.Z)(["\n  width: 100%;\n  height: 16rem;\n  padding: 1.5rem 8.75rem 2.5rem 8.75rem;\n  background-size: cover;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n\n  position: relative;\n  overflow: hidden;\n\n  @media (max-width: 768px) {\n    width: 100%;\n    height: 14rem;\n    padding-left: 2rem;\n  }\n"]);return n1=function(){return n},n}function n0(){let n=(0,r.Z)(["\n  position: absolute;\n  top: 0;\n  left: 0;\n\n  width: 100%;\n  height: auto;\n  opacity: 0.8;\n\n  @media (max-width: 768px) {\n    height: 13.5rem;\n  }\n"]);return n0=function(){return n},n}function n2(){let n=(0,r.Z)(["\n  ",";\n  color: ",";\n  z-index: 1;\n"]);return n2=function(){return n},n}function n3(){let n=(0,r.Z)(["\n  display: flex;\n  flex-direction: column;\n  gap: 1rem;\n  h1 {\n    ",";\n    color: ",";\n  }\n  h3 {\n    ",";\n    color: ",";\n  }\n  z-index: 1;\n\n  @media (max-width: 768px) {\n    width: auto;\n\n    h1 {\n      ",";\n    }\n    h3 {\n      ",";\n    }\n  }\n"]);return n3=function(){return n},n}let n7=n=>
1{let{title:e,subtitle:t,backgroundImage:r,subCategory:o}=n;return(0,i.jsxs)(n5,{children:[r&&(0,i.jsx)(n8,{src:r,width:1400,height:262,alt:"커버 이미지"}),(0,i.jsx)(n6,{children:o}),(0,i.jsxs)(n4,{children:[(0,i.jsx)("h1",{children:e}),(0,i.jsx)("h3",{children:t})]})]})},n5=o.ZP.div.withConfig({componentId:"sc-718b1f67-0"})(n1()),n8=(0,o.ZP)(D()).withConfig({componentId:"sc-718b1f67-1"})(n0()),n6=o.ZP.p.withConfig({componentId:"sc-718b1f67-2"})(n2(),n=>{let{theme:e}=n;return e.fonts.subtitle18En},n=>n.theme.colors.white),n4=o.ZP.div.withConfig({componentId:"sc-718b1f67-3"})(n3(),n=>{let{theme:e}=n;return e.fonts.title36},n=>n.theme.colors.white,n=>{let{theme:e}=n;return e.fonts.subtitle18},n=>n.theme.colors.white,n=>{let{theme:e}=n;return e.fonts.title24},n=>{let{theme:e}=n;return e.fonts.body14});var n9=t(15103),en=t(42292);t(22379);var ee=t(29287),et=t(98869);function er(){let n=(0,r.Z)(["\n  position: absolute;\n  background: none;\n  top: 40%;\n  border: none;\n  cursor: pointer;\n  z-index: 10;\n\n  &:disabled {\n    display: none;\n  }\n"]);return er=function(){return n},n}let ei=()=>(0,i.jsx)(eo,{type:"button",className:"swiper-button-prev",children:(0,i.jsx)(D(),{src:"/icons/prev_button.svg",alt:"이전",width:50,height:50})}),eo=o.ZP.button.withConfig({componentId:"sc-5b696717-0"})(er());function es(){let n=(0,r.Z)(["\n  position: absolute;\n  background: none;\n  top: 40%;\n  right: 1rem;\n  border: none;\n  cursor: pointer;\n  z-index: 10;\n\n  &:disabled {\n    display: none;\n  }\n"]);return es=function(){return n},n}let el=()=>(0,i.jsx)(ec,{type:"button",className:"swiper-button-next",children:(0,i.jsx)(D(),{src:"/icons/next_button.svg",alt:"다음",width:50,height:50})}),ec=o.ZP.button.withConfig({componentId:"sc-57bb173-0"})(es());function ed(){let n=(0,r.Z)(["\n  width: 87.5rem;\n  height: 30rem;\n  border-bottom: 1px solid ",";\n\n  @media (max-width: 768px) {\n    width: 100vw;\n  }\n"]);return ed=function(){return n},n}function ea(){let n=(0,r.Z)(["\n  ",";\n  color: ",";\n  margin: 2rem 0 3.125rem 7.5rem;\n  @media (max-width: 768px) {\n    margin: 2.5rem auto 2.5rem 1rem;\n  }\n"]);return ea=function(){return n},n}function eu(){let n=(0,r.Z)(["\n  position: relative;\n  display: flex;\n  align-items: center;\n  padding: 0 7.5rem;\n  @media (max-width: 768px) {\n    padding: 1rem;\n  }\n"]);return eu=function(){return n},n}function ef(){let n=(0,r.Z)(["\n  width: 78.75rem;\n  height: 100%;\n\n  @media (max-width: 768px) {\n    width: 100%;\n  }\n"]);return ef=function(){return n},n}function eh(){let n=(0,r.Z)(["\n  cursor: pointer;\n"]);return eh=function(){return n},n}let em=n=>{let{category:e}=n;n9.ZP.use([n9.W_,n9.LW]);let t=(0,s.useRouter)(),r=(0,M.Z)(),{data:o}=(0,l.a)(["GET_RELATED_PROJECTS",e],()=>(0,c.Td)(e),{staleTime:3e5}),d=n=>{t.push("/detail/".concat(n))};return(0,i.jsxs)(eg,{children:[(0,i.jsx)(ep,{children:"연관 프로젝트"}),(0,i.jsx)(ex,{children:(0,i.jsx)(eC,{children:(0,i.jsxs)(en.tq,{modules:[n9.W_,n9.LW],spaceBetween:20,slidesPerView:r?1:4,navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},scrollbar:{draggable:!0},children:[(0,i.jsx)(ei,{}),(null==o?void 0:o.data)&&o.data.map(n=>(0,i.jsx)(en.o5,{children:(0,i.jsx)(ew,{onClick:()=>{d(n.id)},children:(0,i.jsx)(m.Ss,{postId:n.id,imageSrc:(0,ee.Z)(n.thumbnail_check?n.title_background_image:n.content),imageAlt:"".concat(n.title,"썸네일"),title:n.title,subTitle:n.sub_title,skills:n.skills,date:(0,et.Z)(n.created_at),comments:n.comment_count,likes:n.like_count,bookmarks:n.bookmark_count,field:n.sub_category,userId:n.user_id})})},n.id)),(0,i.jsx)(el,{})]})})})]})},eg=o.ZP.section.withConfig({componentId:"sc-bbd496a7-0"})(ed(),n=>{let{theme:e}=n;return e.colors.gray7}),ep=o.ZP.h2.withConfig({componentId:"sc-bbd496a7-1"})(ea(),n=>{let{theme:e}=n;return e.fonts.title24},n=>{let{theme:e}=n;return e.colors.gray2}),ex=o.ZP.div.withConfig({componentId:"sc-bbd496a7-2"})(eu()),eC=o.ZP.div.withConfig({componentId:"sc-bbd496a7-3"})(ef()),ew=o.ZP.div.withConfig({componentId:"sc-bbd496a7-4"})(eh());var eb=t(56159),ej=t(64554);function ey(){let n=(0,r.Z)(["\n  width: 100%;\n  padding: 3.5rem 7.5rem;\n  margin-top: 2rem;\n\n  border-top: 1px solid ",";\n  border-bottom: 1px solid ",";\n\n  @media (max-width: 768px) {\n    width: 100%;\n    padding: 2.5rem 1rem 2.5rem 1rem;\n  }\n"]);return ey=function(){return n},n}function eZ(){let n=(0,r.Z)(["\n  ",";\n  color: ",";\n  margin-bottom: 3rem;\n\n  @media (max-width: 768px) {\n    ",";\n  }\n"]);return eZ=function(){return n},n}let ev=()=>(0,i.jsxs)(ek,{children:[(0,i.jsx)(eI,{children:"이 프로젝트를 추천해요"}),(0,i.jsx)(nr,{})]}),ek=o.ZP.div.withConfig({componentId:"sc-e19bd612-0"})(ey(),n=>{let{theme:e}=n;return e.colors.gray7},n=>{let{theme:e}=n;return e.colors.gray7}),eI=o.ZP.div.withConfig({componentId:"sc-e19bd612-1"})(eZ(),n=>{let{theme:e}=n;return e.fonts.title24},n=>{let{theme:e}=n;return e.colors.white},n=>{let{theme:e}=n;return e.fonts.subtitle16});t(70285),t(94149);var e_=t(51774),eP=t.n(e_);function eL(){let n=(0,r.Z)(["\n  width: 60rem;\n  padding: 1rem;\n  background-color: ",";\n\n  li {\n    list-style-type: disc;\n  }\n\n  @media (max-width: 768px) {\n    width: 100%;\n    padding: 0 2rem 0 0;\n  }\n"]);return eL=function(){return n},n}let eS=eP()(()=>Promise.all([t.e(671),t.e(673)]).then(t.bind(t,673)),{loadableGenerated:{webpack:()=>[673]},ssr:!1}),eE=n=>{let{content:e}=n;return(0,i.jsx)(eT,{source:e})},eT=(0,o.ZP)(eS).withConfig({componentId:"sc-698225bc-0"})(eL(),n=>{let{theme:e}=n;return e.colors.gray11});function eD(){let n=(0,r.Z)(["\n  width: 87.5rem;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  margin: 0 auto;\n  background-color: ",";\n  border-radius: 0.5rem;\n  padding-bottom: 5.5rem;\n\n  z-index: 1;\n\n  @media (max-width: 768px) {\n    width: 100%;\n    padding: 0 0 5rem 0;\n  }\n"]);return eD=function(){return n},n}function eM(){let n=(0,r.Z)(["\n  width: 100%;\n  padding: 0 7.5rem;\n  margin-top: 2.5rem;\n  display: flex;\n  @media (max-width: 768px) {\n    width: 100%;\n    padding: 0;\n  }\n"]);return eM=function(){return n},n}function eB(){let n=(0,r.Z)(["\n  width: 100%;\n  min-height: 50rem;\n  margin-left: 1.25rem;\n"]);return eB=function(){return n},n}function ez(){let n=(0,r.Z)(["\n  @media (max-width: 768px) {\n    display: none;\n  }\n"]);return ez=function(){return n},n}function eQ(){let n=(0,r.Z)(["\n  position: fixed !important;\n  top: 50%;\n  left: 50%;\n"]);return eQ=function(){return n},n}let eF=n=>{let{detailRef:e}=n,{query:{id:t}}=(0,s.useRouter)(),[r,o]=(0,d.useState)({title:"",subtitle:"",backgroundImage:"",field:"",subCategory:""}),[a,u]=(0,d.useState)({progressDate:["",""],subCategory:"",skills:["Front-end","Android"],tag:[""],members:[""],githubUrl:"",deployUrl:""}),[f,h]=(0,d.useState)(""),[m,g]=(0,d.useState)(""),[p,x]=(0,d.useState)(""),[C,w]=(0,d.useState)(!1),[b,j]=(0,d.useState)(!1),[y,Z]=(0,d.useState)(""),{isLoading:v}=(0,l.a)(["getOnePost",t],()=>(0,c.TA)(t),{onSuccess(n){n&&(o({title:n.title,subtitle:n.sub_title,backgroundImage:n.title_background_image,field:n.large_category,subCategory:n.sub_category}
1),u({progressDate:n.progress_date,subCategory:n.sub_category,skills:n.skills,tag:n.tag,members:n.members,githubUrl:n.github_url,deployUrl:n.deployed_url}),h(n.content),g(n.user_id),Z(n.sub_category))},onError(n){console.log(n)},enabled:!!t}),{data:k,isLoading:I}=(0,l.a)(["getSingleUser",m],{queryFn:n=>{let{queryKey:e}=n;return(0,c.fp)(e[1])},onError(n){console.log(n)},enabled:!!m}),{isLoading:_}=(0,l.a)(["currentUser"],{queryFn:c.ts,onSuccess(n){let{data:{user:e}}=n;e&&x(e.id)},onError(n){x("")}}),{isLoading:P}=(0,l.a)(["getBookmark",p,t],{queryFn:n=>{let{queryKey:e}=n;return(0,c.p_)(e)},onSuccess(n){n&&w(!!n)},onError(n){w(!1)},enabled:!!p&&!!t}),{isLoading:L}=(0,l.a)(["getLike",p,t],{queryFn:n=>{let{queryKey:e}=n;return(0,c.Tf)(e)},onSuccess(n){n&&j(!!n)},onError(n){j(!1)},enabled:!!p&&!!t});return v||I||_?(0,i.jsx)(eG,{color:"#3DDFE9",size:16,speedMultiplier:1,margin:4}):(0,i.jsxs)(eq,{children:[(0,i.jsx)(K,{isBookmark:C,isLike:b,setIsBookmark:w,setIsLike:j,currentUserId:p}),(0,i.jsx)(n7,{...r}),(0,i.jsxs)(eU,{children:[(0,i.jsx)(eH,{children:(0,i.jsx)(nJ,{...a,authorInfo:k})}),(0,i.jsx)(eR,{children:f&&(0,i.jsx)(eE,{content:f})})]}),(0,i.jsx)(ev,{}),(0,i.jsx)(em,{category:y}),(0,i.jsx)(S,{}),(0,i.jsx)(ej.Z,{right:"calc(50% - 40rem)",bottom:"0.75rem",elementRef:e})]})},eq=o.ZP.div.withConfig({componentId:"sc-f4f35907-0"})(eD(),n=>{let{theme:e}=n;return e.colors.gray11}),eU=o.ZP.div.withConfig({componentId:"sc-f4f35907-1"})(eM()),eR=o.ZP.main.withConfig({componentId:"sc-f4f35907-2"})(eB()),eH=o.ZP.aside.withConfig({componentId:"sc-f4f35907-3"})(ez()),eG=(0,o.ZP)(eb.Z).withConfig({componentId:"sc-f4f35907-4"})(eQ());var eO=eF},59841:function(n,e,t){t.d(e,{Kz:function(){return l},UK:function(){return s}});var r=t(92705),i=t(20279);let o=i.env.NEXT_PUBLIC_AMPLITUDE_API_KEY,s=()=>{(0,r.S1)(o)},l=(n,e)=>{(0,r.j)(n,e)}},29287:function(n,e){let t=n=>{let e=n.match(/https:\/\/[a-z0-9]+\.supabase\.co\/storage\/v1\/object\/public\/post-image\/[a-z0-9-]+\/[a-z0-9-]+/g);return e?e[0]:"/images/thumnail_default.webp"};e.Z=t},98869:function(n,e){let t=n=>{let e=new Date(n),t=e.getFullYear(),r=e.getMonth()+1,i=e.getDate();return"".concat(t,".").concat(r,".").concat(i)};e.Z=t}}]);

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.