PageSourceSearch

https://wemix.com/_next/static/chunks/pages/community/project/[id]-5491ec5413efaf36.js

js wemix.com collected 2026-10-04 00:31:16 UTC 22,224 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6949],{74159:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/community/project/[id]",function(){return o(6959)}])},76995:function(e,t,o){"use strict";o.d(t,{Z:function(){return w},A:function(){return v}});var i=o(11527),n=o(23233),c=o(78044),r=o(64247),a=o(73907);let l=a.ZP.div.withConfig({componentId:"sc-9ee5969f-0"})(["width:100%;display:flex;padding:20px;flex-direction:column;align-items:flex-start;align-self:stretch;border-radius:12px;border:1px solid ",";background:#fff;"],c.w.gray2),s=a.ZP.div.withConfig({componentId:"sc-9ee5969f-1"})(["display:flex;padding:5px 6px;justify-content:center;align-items:center;gap:4px;border-radius:4px;&.deep-blue{color:",";background-color:",";}&.reversed-blue{color:",";background-color:",";}&.gray{color:",";background-color:",";}",";"],c.w.white,c.w.primaryBlue,c.w.primaryBlue,c.w.secondaryBlue,c.w.gray6,c.w.gray0,r.Z.label_13_100_medium),u=a.ZP.h2.withConfig({componentId:"sc-9ee5969f-2"})(["color:",";",";margin:6px 0 4px;"],c.w.black000,r.Z.title_20_140_bold),d=a.ZP.p.withConfig({componentId:"sc-9ee5969f-3"})(["color:",";",";"],c.w.gray5,r.Z.body_15_140_medium),m=a.ZP.p.withConfig({componentId:"sc-9ee5969f-4"})(["color:",";",";display:flex;align-items:center;gap:4px;"],c.w.alert,r.Z.body_15_140_medium),g=a.ZP.div.withConfig({componentId:"sc-9ee5969f-5"})(["width:100%;&:not(:empty){margin-top:16px;}button{",";&:disabled{color:",";}",";}"],r.Z.label_15_100_medium,c.w.black000,e=>{if("gray"===e.color)return(0,a.iv)(["border:none;background-color:",";color:#111 !important;"],c.w.gray0)});var p=o(94689),y=o(30969);o(176);var h=o(17888),f=o.n(h),b=o(24113),_=o(53886);f().locale("ko");let v=(e,t,o,i,n)=>{let{t:c}=(0,_.$G)(["community"]);return"FINISHED_WITH_REJECTED_BY_MIN_PARTICIPATION"===o?{color:"gray",text:c("community:community.vote.rejected.by.low.participation")}:"FINISHED_WITH_REJECTED_BY_MIN_VOTE_RATE"===o?{color:"gray",text:c("community:community.vote.rejected.by.low.approval")}:"FINISHED_WITH_PASS"===o?{color:"gray",text:c(i?"community:community.vote.end":"community:community.vote.result.view")}:"COMPLETED"===t?{color:"gray",text:c("community:community.vote.completed"),icon:"check",disabled:i}:n?"WAITING"===o?{color:"gray",text:i?"".concat(f()(e).format("MM.DD. hh:mm")," ").concat(c("community:community.start")):c("community:community.agenda.detail.view")}:"IN_PROGRESS"===o?{color:"black",text:c(i?"community:community.vote.now":"community:community.vote.participate")}:{color:"gray",text:""}:{color:"gray",text:c(i?"community:community.vote.no.right":"community:community.agenda.detail"),disabled:i}};var w=e=>{let{id:t,title:o,voteStartAt:c,voteEndAt:r,userStatus:a,voteProposalStatus:h,status:f}=e,{t:w}=(0,_.$G)(["community"]),{asPath:x,push:j}=(0,y.useRouter)(),N="CANCELED"===h&&"CANCELED"===f,I=e=>{switch(e){case"WAITING":return{label:w("community:community.vote.scheduled"),color:"reversed-blue"};case"IN_PROGRESS":return{label:w("community:community.vote.in.progress"),color:"deep-blue"};case"CANCELED":return{label:w("community:community.vote.cancelled"),color:"gray"};case"FINISHED_WITH_PASS":case"FINISHED_WITH_REJECTED_BY_MIN_VOTE_RATE":case"FINISHED_WITH_REJECTED_BY_MIN_PARTICIPATION":return{label:w("community:community.vote.ended"),color:"gray"};default:return{}}},C=e=>(0,p.ST)(e).replaceAll("AM",w("community:community.am")).replaceAll("PM",w("community:community.pm"));return(0,i.jsxs)(l,{children:[(0,i.jsx)(()=>{let{label:e,color:t}=I(h);return e&&t?(0,i.jsx)(s,{className:t,children:e}):null},{}),(0,i.jsx)(u,{children:o}),(0,i.jsx)(()=>{let e=Math.ceil((0,p.ad)(r,"minutes",!0));return"IN_PROGRESS"===f&&e<60&&e>0?(0,i.jsxs)(m,{children:[(0,i.jsx)(b.Z,{iconName:"icon_common_clock",size:16}),w("community:community.vote.until.deadline")," ",e,w("community:community.minutes.left")]}):(0,i.jsx)(d,{children:"".concat(C(c)," ~ ").concat(C(r))})},{}),!N&&(0,i.jsx)(()=>{let{text:e,color:o,icon:r,disabled:l}=v(c,a,h);return e&&o?(0,i.jsx)(g,{color:o,children:(0,i.jsxs)(n.Z,{size:"full",color:o,onClick:()=>j("".concat(x,"/proposal/").concat(t)),disabled:l,children:[r&&(0,i.jsx)(b.Z,{iconName:r,size:12,iconColor:"black"}),e]})}):null},{})]})}},6959:function(e,t,o){"use strict";o.r(t),o.d(t,{__N_SSP:function(){return es},default:function(){return eu}});var i=o(11527),n=o(9228),c=o(47818),r=o(46956),a=o.n(r),l=o(50959),s=o(76995),u=o(78044),d=o(64247),m=o(73907);let g=m.ZP.div.withConfig({componentId:"sc-fd5cd8c0-0"})(["padding:30px 0;"]),p=m.ZP.div.withConfig({componentId:"sc-fd5cd8c0-1"})(["display:flex;align-items:center;gap:4px;margin-bottom:20px;"]),y=m.ZP.span.withConfig({componentId:"sc-fd5cd8c0-2"})(["color:",";",";"],u.w.black000,d.Z.title_20_130_bold),h=m.ZP.span.withConfig({componentId:"sc-fd5cd8c0-3"})(["color:",";",";"],u.w.primaryBlue,d.Z.title_18_130_semiBold),f=m.ZP.div.withConfig({componentId:"sc-fd5cd8c0-4"})(["display:flex;flex-direction:column;gap:12px;"]),b=m.ZP.p.withConfig({componentId:"sc-fd5cd8c0-5"})(["display:flex;justify-content:center;align-items:center;padding:10px 0 30px;color:",";",";"],u.w.gray6,d.Z.body_16_140_medium);var _=o(71311),v=o(76678),w=o(53886);let x=()=>{let{t:e}=(0,w.$G)(["community"]);return(0,i.jsx)(b,{children:e("community:")})};var j=()=>{let{t:e}=(0,w.$G)(["community"]),[t]=(0,v.v1)("id"),{data:o}=(0,_.eY)({projectId:null!=t?t:""}),n=(null==o?void 0:o.length)||0,c=!o||0===o.length;return(0,i.jsx)("div",{children:(0,i.jsxs)(g,{children:[(0,i.jsxs)(p,{children:[(0,i.jsx)(y,{children:e("community:community.agenda")}),(0,i.jsx)(h,{children:n})]}),c?(0,i.jsx)(x,{}):(0,i.jsx)(f,{children:null==o?void 0:o.map(e=>(0,i.jsx)(s.Z,{...e},e.id))})]})})},N=o(30015),I=o(12198),C=o(30969),k=o(98850),E=o(43876),P=o(94689),Z=o(93149),S=o.n(Z),O=o(4415),T=o.n(O),D=o(81514),A=o(24113);let L=S().bind(T()),R=e=>{var t,o,n;let{triggerModify:c,...r}
1=e,a=(0,C.useRouter)(),l=(0,D.Z)("smDesktop"),s=(0,k.NL)(),{id:u}=a.query,{t:d}=(0,w.$G)(["community"]),m=e=>{a.push("/community/project/".concat(u,"/notice/").concat(e.id))},[g,p]=(0,I.Z)({text:"게시물의 URL이 복사되었어요.",duration:2,position:l?20:void 0}),{mutate:y}=(0,_.CH)(),{data:h}=(0,_.at)(),f=(null==h?void 0:h.role)==="ROLE_ADMIN";return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{onClick:()=>m({id:r.id}),className:L("item"),children:[(0,i.jsxs)("div",{className:L("wrap-title"),children:[(0,i.jsx)(N.Z,{className:"title-16-130-600",color:"#000",customClassName:L("title"),children:r.title}),(0,i.jsx)(E.Z,{options:f?[{name:null!==(t=d("community:community.delete"))&&void 0!==t?t:"",onClick:()=>{c(),y({noticeId:r.id},{onSuccess:()=>s.invalidateQueries({queryKey:["vote","notice","list"]})})},value:"delete"},{name:null!==(o=d("community:community.edit.action"))&&void 0!==o?o:"",onClick:()=>a.push("/community/project/".concat(u,"/notice/edit/").concat(r.id)),value:"update"}]:[{name:null!==(n=d("community:community.share.project"))&&void 0!==n?n:"",onClick:()=>{navigator.clipboard.writeText("".concat(window.location.origin,"/community/project/").concat(u,"/notice/").concat(r.id)),g()},value:"share"}],children:(0,i.jsx)(A.Z,{iconName:"icon_common_more",size:20})})]}),(0,i.jsx)(N.Z,{className:"body-14-100-400",color:"#989da6",children:(0,P.Xu)(d,r.createdAt)})]}),(0,i.jsx)(p,{})]})};var B=o(24600),M=o(41613),W=o(54498),G=o(86927),F=o.n(G);let V=S().bind(F());var z=()=>{let{t:e}=(0,w.$G)(["community"]),t=(0,C.useRouter)(),[o]=(0,v.v1)("id"),[n,c]=(0,l.useState)(5),{data:r,refetch:a}=(0,_.tS)({projectId:null!=o?o:"",page:1,size:n}),[s,u]=(0,l.useState)([]),d=(0,B.G)(e=>e.setRecentNotice),m=(0,B.G)(e=>e.setNoticeCount),g=(0,M.VT)({key:"detail-notice-area",priority:20,isTab:!0}),{data:p}=(0,_.at)(),y=(null==p?void 0:p.role)==="ROLE_ADMIN",[h,f]=(0,I.Z)({text:e("community:community.delete.completed"),duration:2,position:W.nI?20:void 0});(0,l.useEffect)(()=>{var e,t,o,i,n,c,a;d({title:null!==(i=null==r?void 0:null===(e=r.noticeList[0])||void 0===e?void 0:e.title)&&void 0!==i?i:"",content:null!==(n=null==r?void 0:null===(t=r.noticeList[0])||void 0===t?void 0:t.description)&&void 0!==n?n:"",id:null!==(c=null==r?void 0:null===(o=r.noticeList[0])||void 0===o?void 0:o.id)&&void 0!==c?c:0}),m(null!==(a=null==r?void 0:r.totalCount)&&void 0!==a?a:0),r&&u(r.noticeList)},[r]),(t.pathname.includes("/writing/preview")||t.pathname.includes("/writing/project/"))&&(r={totalCount:0,noticeList:[]});let{id:b}=t.query;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:V("wrap"),ref:g,children:[(0,i.jsxs)("div",{className:V("title"),children:[(0,i.jsx)(N.Z,{className:"title-20-130-700",children:e("community:community.notice")}),(0,i.jsx)(N.Z,{className:"title-18-130-600",color:"#4444FF",children:null==r?void 0:r.totalCount})]}),y&&(0,i.jsx)("div",{className:V("empty-view-owner"),children:(0,i.jsx)("button",{className:V("button"),onClick:()=>t.push("/community/project/".concat(b,"/notice/writing")),children:e("community:community.write")})}),(null==r?void 0:r.totalCount)===0&&!y&&(0,i.jsx)("div",{className:V("empty-view-follower"),children:(0,i.jsx)(N.Z,{className:"title-16-140-500",color:"#989DA6",children:e("community:community.no.notices.yet")})}),(0,i.jsx)("div",{className:V("list"),children:null==r?void 0:r.noticeList.map((e,t)=>(0,i.jsx)(R,{...e,triggerModify:h},"".concat(e.title,"-").concat(t)))}),s.length<((null==r?void 0:r.totalCount)||0)&&(0,i.jsxs)("button",{className:V("button"),onClick:()=>c(n+5),children:[e("community:community.more"),(0,i.jsx)(A.Z,{iconName:"arrow_bottom",iconSize:11})]})]}),(0,i.jsx)(f,{})]})},H=o(6215);o(97615),o(11820),o(37469);var $=o(14224);let U=e=>{let t=$.env.NEXT_PUBLIC_BLOB_STORAGE_URL,o=$.env.NEXT_PUBLIC_CDN_URL;return t&&o&&e.startsWith(t)?e.replace(t,o):e};var X=o(4189),q=o.n(X),J=o(26743);let Y=S().bind(q());var Q=()=>{let{detailData:e}=(0,J.G)(),t=(null==e?void 0:e.projectType)!=="VOTE"||(null==e?void 0:e.image)?(null==e?void 0:e.image)&&U(e.image):"/assets/images/community/img_vote_default.png";return(0,i.jsx)("div",{className:Y("project-image-wrap"),children:(0,i.jsx)("img",{src:t,alt:"project-img",style:{width:"100%"}})})},K=o(23233),ee=o(86312),et=o(11934),eo=o(64775),ei=o.n(eo);let en=S().bind(ei()),ec={Disabled:{color:"gray",size:"full",type:"outlined",disabled:!0},Outlined:{color:"black",size:"full",type:"outlined",disabled:!1}};var er=()=>{let{t:e}=(0,w.$G)(["community"]);(0,k.NL)();let[t,o]=(0,l.useState)(!1),[n,c]=(0,l.useState)({title:""}),r=e=>{c(e),o(!0)},a=()=>o(!1),{data:s}=(0,_.at)(),u=(null==s?void 0:s.role)==="ROLE_ADMIN",{projectId:d,detailData:m,refreshDetail:g,setIsOpenErrorAlert:p}=(0,J.G)(),{setIsOpenLoading:y}=(0,ee.p)(),{mutate:h}=(0,_.qI)(),f=()=>{if(!(null==m?void 0:m.currentParticipants))return""},b=t=>r({title:e("community:community.project.cancel.confirm"),subTitle:f(),confirmBtn:e("community:community.project.cancel.ok"),cancelBtn:e("community:community.no"),onClickConfirm:async()=>{try{await t()}catch(e){await v();return}finally{o(!1),g()}},onClickCancel:a}),v=async()=>{p(!0),await g()};if((null==m?void 0:m.projectType)!=="VOTE")return null;
1let x={Complete:(0,i.jsx)(K.Z,{...ec.Disabled,children:(0,i.jsx)(N.Z,{className:"label-16-100-500",color:"#111111",children:e("community:community.vote.ended")})}),Canceled:(0,i.jsxs)(K.Z,{...ec.Disabled,children:[(0,i.jsx)(A.Z,{iconName:"icon_common_warning",size:16}),(0,i.jsx)(N.Z,{className:"label-16-100-500",color:"#111111",children:e("community:community.project.cancelled.by.host")})]}),CancelProject:(0,i.jsx)(K.Z,{...ec.Outlined,onClick:async()=>{b(async()=>{y(!0),h({projectId:m.id},{onSuccess:()=>{setTimeout(()=>{g()},1e3)},onSettled:()=>setTimeout(()=>y(!1),1e3)})})},children:(0,i.jsx)(N.Z,{className:"label-16-100-500",color:"#111111",children:e("community:community.project.cancel")})})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:en("wrap","vote"),children:("CANCELED"===m.status&&(null==m?void 0:m.typeStatus)==="VOTE_END"?["Canceled"]:"COMPLETED"===m.status&&(null==m?void 0:m.typeStatus)==="VOTE_SETTLED"?["Complete"]:"PUBLISHED"===m.status&&u?["CancelProject"]:[]).map(e=>(0,i.jsx)(l.Fragment,{children:x[e]},e))}),(0,i.jsx)(et.Z,{isOpen:t,setIsOpen:o,...n})]})};let ea=a()(()=>Promise.all([o.e(951),o.e(4510),o.e(9898)]).then(o.bind(o,59762)),{loadableGenerated:{webpack:()=>[59762]},ssr:!1});var el=e=>{let{id:t}=e,{data:o}=(0,_.Qe)(t);if(o)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Q,{}),(0,i.jsx)(c.Z,{}),(0,i.jsx)(er,{}),(0,i.jsx)(H.d,{}),(0,i.jsx)(ea,{}),(0,i.jsx)(H.d,{}),(0,i.jsx)(j,{}),(0,i.jsx)(H.d,{}),(0,i.jsx)(z,{})]})},es=!0,eu=e=>{let{id:t}=e,o=(0,D.Z)("smDesktop");return(0,i.jsxs)(n.Z,{className:"community",isShowBackBtn:o,children:[(0,i.jsx)("h1",{className:"a11y",children:"WEMIX Community"}),(0,i.jsx)(el,{id:t})]})}},24600:function(e,t,o){"use strict";o.d(t,{G:function(){return c}});var i=o(49347),n=o(29485);let c=(0,i.Ue)((0,n.tJ)(e=>({selectedNotice:null,noticeCount:0,recentNotice:{title:"",content:"",id:0},setSelectedNotice:t=>e({selectedNotice:t}),setNoticeCount:t=>e({noticeCount:t}),setRecentNotice:t=>e({recentNotice:t})}),{name:"project-notice",storage:(0,n.FL)(()=>sessionStorage)}))},4189:function(e){e.exports={"background-state-hover":"rgba(0,0,0,.07)","background-state-pressed":"rgba(0,0,0,.12)","bg-dark":"#0c0b11","bg-dark-ecosystem":"#000",black:"#000","color-chart01":"#7c7bff","color-chart02":"#2ab7e5","color-chart03":"#f7387d","color-decrease":"#ff3838","color-increase":"#27c683",gray00:"#161519",gray10:"#1d1c21",gray100:"#fff",gray20:"#32323c",gray30:"#484a57",gray40:"#5d606d",gray50:"#737985",gray60:"#8c939d",gray70:"#a6adb5",gray80:"#cbd2d9",gray90:"#eaeef2","header-height-desktop":"60px","header-height-mobile":"48px","opacity-black10":"rgba(0,0,0,.1)","opacity-black5":"rgba(0,0,0,.05)","opacity-white10":"hsla(0,0%,100%,.1)","opacity-white20":"hsla(0,0%,100%,.2)","opacity-white5":"hsla(0,0%,100%,.05)","opacity-white50":"hsla(0,0%,100%,.5)",white:"#fff","project-image-wrap":"ProjectImage_project-image-wrap__OuIMW","funding-project-image-wrap":"ProjectImage_funding-project-image-wrap__Rbg5b","project-image-swiper":"ProjectImage_project-image-swiper__X7DZm","img-wrap":"ProjectImage_img-wrap__DHXaH",img:"ProjectImage_img__hDgHd","swiper-pagination-fraction":"ProjectImage_swiper-pagination-fraction__Cc6U7","swiper-pagination-custom":"ProjectImage_swiper-pagination-custom__Gh20T","swiper-horizontal":"ProjectImage_swiper-horizontal__dtalz","swiper-pagination-bullets":"ProjectImage_swiper-pagination-bullets__n2bNC","swiper-pagination-horizontal":"ProjectImage_swiper-pagination-horizontal__czgy5"}},86927:function(e){e.exports={"background-state-hover":"rgba(0,0,0,.07)","background-state-pressed":"rgba(0,0,0,.12)","bg-dark":"#0c0b11","bg-dark-ecosystem":"#000",black:"#000","color-chart01":"#7c7bff","color-chart02":"#2ab7e5","color-chart03":"#f7387d","color-decrease":"#ff3838","color-increase":"#27c683",gray00:"#161519",gray10:"#1d1c21",gray100:"#fff",gray20:"#32323c",gray30:"#484a57",gray40:"#5d606d",gray50:"#737985",gray60:"#8c939d",gray70:"#a6adb5",gray80:"#cbd2d9",gray90:"#eaeef2","header-height-desktop":"60px","header-height-mobile":"48px","opacity-black10":"rgba(0,0,0,.1)","opacity-black5":"rgba(0,0,0,.05)","opacity-white10":"hsla(0,0%,100%,.1)","opacity-white20":"hsla(0,0%,100%,.2)","opacity-white5":"hsla(0,0%,100%,.05)","opacity-white50":"hsla(0,0%,100%,.5)",white:"#fff",wrap:"Notice_wrap__AhlRf",title:"Notice_title__Ix0eL","empty-view-owner":"Notice_empty-view-owner__QdDgi","empty-view-follower":"Notice_empty-view-follower__YOyFK",list:"Notice_list__wo4Pr",button:"Notice_button__VEvVW"}},4415:function(e){e.exports={"background-state-hover":"rgba(0,0,0,.07)","background-state-pressed":"rgba(0,0,0,.12)","bg-dark":"#0c0b11","bg-dark-ecosystem":"#000",black:"#000","color-chart01":"#7c7bff","color-chart02":"#2ab7e5","color-chart03":"#f7387d","color-decrease":"#ff3838","color-increase":"#27c683",gray00:"#161519",gray10:"#1d1c21",gray100:"#fff",gray20:"#32323c",gray30:"#484a57",gray40:"#5d606d",gray50:"#737985",gray60:"#8c939d",gray70:"#a6adb5",gray80:"#cbd2d9",gray90:"#eaeef2","header-height-desktop":"60px","header-height-mobile":"48px","opacity-black10":"rgba(0,0,0,.1)","opacity-black5":"rgba(0,0,0,.05)","opacity-white10":"hsla(0,0%,100%,.1)","opacity-white20":"hsla(0,0%,100%,.2)","opacity-white5":"hsla(0,0%,100%,.05)","opacity-white50":"hsla(0,0%,100%,.5)",white:"#fff",item:"NoticeItem_item__J_WCf","wrap-title":"NoticeItem_wrap-title__h7RWg",title:"NoticeItem_title__hEzlA"}},64775:function(e){e.exports={"background-state-hover":"rgba(0,0,0,.07)","background-state-pressed":"rgba(0,0,0,.12)","bg-dark":"#0c0b11","bg-dark-ecosystem":"#000",black:"#000","color-chart01":"#7c7bff","color-chart02":"#2ab7e5","color-chart03":"#f7387d","color-decrease":"#ff3838","color-increase":"#27c683",gray00:"#161519",gray10:"#1d1c21",gray100:"#fff",gray20:"#32323c",gray30:"#484a57",gray40:"#5d606d",gray50:"#737985",gray60:"#8c939d",gray70:"#a6adb5",gray80:"#cbd2d9",gray90:"#eaeef2","header-height-desktop":"60px","header-height-mobile":"48px","opacity-black10":"rgba(0,0,0,.1)","opacity-black5":"rgba(0,0,0,.05)","opacity-white10":"hsla(0,0%,100%,.1)","opacity-white20":"hsla(0,0%,100%,.2)","opacity-white5":"hsla(0,0%,100%,.05)","opacity-white50":"hsla(0,0%,100%,.5)",white:"#fff",wrap:"VoteButtons_wrap__4xmV6",bottom:"VoteButtons_bottom__XItlU",vote:"VoteButtons_vote__WuQtS",tennis_popup_wrap:"VoteButtons_tennis_popup_wrap__flZLp",detail
1:"VoteButtons_detail__L7vOb",img_box:"VoteButtons_img_box__u8tBW"}},11820:function(){},37469:function(){},97615:function(){},45074:function(e,t,o){"use strict";o.d(t,{IZ:function(){return d}});let{Axios:i,AxiosError:n,CanceledError:c,isCancel:r,CancelToken:a,VERSION:l,all:s,Cancel:u,isAxiosError:d,spread:m,toFormData:g,AxiosHeaders:p,HttpStatusCode:y,formToJSON:h,getAdapter:f,mergeConfig:b}=o(74864).default},85384:function(e,t,o){"use strict";o.d(t,{q:function(){return _}});var i,n,c=o(90158);async function r(e,t={}){let o;if(t.connector)o=t.connector;else{let{connections:t,current:i}=e.state,n=t.get(i);o=n?.connector}let i=e.state.connections;o&&(await o.disconnect(),o.emitter.off("change",e._internal.events.change),o.emitter.off("disconnect",e._internal.events.disconnect),o.emitter.on("connect",e._internal.events.connect),i.delete(o.uid)),e.setState(e=>{if(0===i.size)return{...e,connections:new Map,current:null,status:"disconnected"};let t=i.values().next().value;return{...e,connections:new Map(i),current:t.connector.uid}});{let t=e.state.current;if(!t)return;let o=e.state.connections.get(t)?.connector;if(!o)return;await e.storage?.setItem("recentConnectorId",o.id)}}var a=o(50959),l=o(34556);let s=()=>"@wagmi/[email protected]";var u=function(e,t,o,i){if("a"===o&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===o?i:"a"===o?i.call(e):i?i.value:t.get(e)};class d extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return s()}constructor(e,t={}){super(),i.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});let o=t.cause instanceof d?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof d&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...n?[`Docs: ${this.docsBaseUrl}${n}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...o?[`Details: ${o}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=o,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return u(this,i,"m",n).call(this,this,e)}}i=new WeakSet,n=function e(t,o){return o?.(t)?t:t.cause?u(this,i,"m",e).call(this,t.cause,o):t};let m=()=>"[email protected]";class g extends d{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return m()}}class p extends g{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function y(e={}){let t=e.config??(0,a.useContext)(l.V);if(!t)throw new p;return t}function h(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){let o,i;if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t)){if((o=e.length)!==t.length)return!1;for(i=o;0!=i--;)if(!h(e[i],t[i]))return!1;return!0}if("function"==typeof e.valueOf&&e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if("function"==typeof e.toString&&e.toString!==Object.prototype.toString)return e.toString()===t.toString();let n=Object.keys(e);if((o=n.length)!==Object.keys(t).length)return!1;for(i=o;0!=i--;)if(!Object.hasOwn(t,n[i]))return!1;for(i=o;0!=i--;){let o=n[i];if(o&&!h(e[o],t[o]))return!1}return!0}return e!=e&&t!=t}let f=[];function b(e){let t=[...e.state.connections.values()];return"reconnecting"===e.state.status||h(f,t)?f:(f=t,t)}function _(e={}){let{mutation:t}=e,o=y(e),{mutate:i,mutateAsync:n,...l}=(0,c.D)({...t,mutationFn:e=>r(o,e),mutationKey:["disconnect"]});return{...l,connectors:(function(e={}){let t=y(e);return(0,a.useSyncExternalStore)(e=>(function(e,t){let{onChange:o}=t;return e.subscribe(()=>b(e),o,{equalityFn:h})})(t,{onChange:e}),()=>b(t),()=>b(t))})({config:o}).map(e=>e.connector),disconnect:i,disconnectAsync:n}}}},function(e){e.O(0,[3907,6593,4349,3524,8779,6176,7284,6432,6279,1802,1311,2742,9631,9228,9174,7921,2126,2888,9774,179],function(){return e(e.s=74159)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.