PageSourceSearch

https://www.mieum.kr/static/js/3765.2d87720b.chunk.js

js mieum.kr collected 2026-10-03 21:17:52 UTC 6,734 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkshop_react_web=self.webpackChunkshop_react_web||[]).push([[3765],{65041:(e,t,i)=>{i.d(t,{A:()=>c});var a=i(65043),n=i(36579),r=i(53692),o=i(97605),s=i(70579);const c=e=>{const{tHeadList:t,onChangeAllCheck:i,pageSize:c,selectedItemCount:l,canSelectOnlyOne:d,isFixedHead:g,color:p,padding:u,background:h,fontSize:m,$paddingWt:x,$lineHeightWt:v,$borderTop:y,$borderBottom:f,height:P,fontWeight:N}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("colgroup",{children:t.map(((e,t)=>(0,s.jsx)("col",{style:{width:e.colWidth}},t)))}),(0,s.jsx)(n.d8,{$borderTop:y,$borderBottom:f,children:(0,s.jsx)("tr",{children:t.map(((e,t)=>(0,s.jsx)(a.Fragment,{children:"CHECKBOX"===e.text?(0,s.jsx)(n.o4,{className:g?"fixedHead":"",padding:u,background:h,$paddingWt:x,$lineHeightWt:v,height:P,fontWeight:N,children:(0,s.jsx)(o.pT,{children:!d&&(0,s.jsx)(r.S,{id:"",name:"all",checked:c===l,onChange:e=>{i&&i(e.target.checked)}})})}):(0,s.jsx)(n.o4,{style:{textAlign:e.textAlign},className:g?"fixedHead":"",color:p,padding:u,background:h,fontSize:m,$paddingWt:x,$lineHeightWt:v,height:P,fontWeight:N,children:e.text})},t)))})})]})}},4034:(e,t,i)=>{i.d(t,{A:()=>m});var a=i(65043),n=i(14365),r=i(93747),o=i(47097),s=i(77249);const c=(0,n.DY)("notice",{fetchNoticeList:e=>[e],fetchNoticeDetail:e=>[e]});var l=i(49774),d=i(23178),g=i(61183),p=i(56743),u=i(65112),h=i(7685);const m=()=>{const e=(0,l.C)((e=>e.pageParams)),t=(0,d.W)((e=>e.setDefaultErrorToast)),[i,n]=(0,a.useState)(!1),[m,x]=(0,a.useState)([]),[v,y]=(0,a.useState)(null),[f,P]=(0,a.useState)(null),[N,j]=(0,a.useState)([]),[b,S]=(0,a.useState)([]),[w,$]=(0,a.useState)({pageNumber:e&&e.pageNumber?e.pageNumber:0,pageSize:e&&e.pageSize?e.pageSize:10,sortBy:e&&e.sortBy?e.sortBy:"createdAt",direction:e&&e.direction?e.direction:"DESC",viewPermission:e&&e.viewPermission?e.viewPermission:""}),[A,C]=(0,a.useState)({title:"",content:"",isMainNotice:!1,viewPermission:p.qc.PLATFORM}),{data:L,refetch:k}=(H=w,W=!!w.viewPermission,(0,r.I)({queryKey:c.fetchNoticeList(H).queryKey,queryFn:()=>(0,s.Rv)(H),select:e=>({content:e.content,pagination:{size:e.empty?0:e.size,totalElements:e.empty?0:e.totalElements,totalPages:e.empty?0:e.totalPages,number:e.empty?0:e.number+1}}),enabled:!!W}));var H,W;const{data:E,refetch:B}=(D=f,(0,r.I)({queryKey:c.fetchNoticeDetail(null!==D&&void 0!==D?D:0).queryKey,queryFn:()=>(0,s.uF)(D),enabled:null!==D}));var D;const{mutate:M}=(0,o.n)({mutationFn:e=>(0,s.bY)(e)}),{mutate:T}=(0,o.n)({mutationFn:e=>(0,s.sc)(e)});return(0,a.useEffect)((()=>{L&&(x(L.content),y(L.pagination),n(!!L.content))}),[L]),(0,a.useEffect)((()=>{f&&B()}),[f]),(0,a.useEffect)((()=>{E&&(async()=>{if(!E||!E.images||0!==E.images.length)try{const e=E.images.map((async e=>{const{data:t}=await u.A.get("s3/view-presigned-url?fileName=".concat(e.url));return{id:e.id,url:e.url,presignedUrl:t}})),t=await Promise.all(e);S(t)}catch(e){console.error("Error",e)}})()}),[E]),{hasData:i,noticeList:m,pagination:v,noticeListParams:w,setNoticeListParams:$,noticeDetailData:E,presignedUrlList:b,setNoticeId:P,deleteNotice:e=>{T(f,{onSuccess:()=>{k(),e()}})},postNoticeParams:A,postNotice:async e=>{try{const t=N.length>0?await(0,g.BU)(p.gA.ANNOUNCEMENT_IMAGE,N):[];M({title:A.title,content:A.content,isMainNotice:A.isMainNotice,imageList:t,viewPermission:A.viewPermission},{onSuccess:()=>{k(),e()}})}catch(i){console.log("error : ",i),t()}},setPostNoticeParams:C,uploadImageList:N,addMultipleImages:e=>{e.map(((e,t)=>j((i=>[...i,{file:e,previewUrl:URL.createObjectURL(e),fileName:(0,h.xc)((0,h.QC)(e),t)}]))))},removeImage:e=>{j(N.filter(((t,i)=>i!==e)))}}}},23765:(e,t,i)=>{i.r(t),i.d(t,{default:()=>j});var a=i(65043),n=i(73216),r=i(46655),o=i(97605),s=i(36579),c=i(17254),l=i(27016),d=i(4034),g=i(7685),p=i(49774),u=i(76172),h=i(65650),m=i(399),x=i(59116),v=i(56743),y=i(9970),f=i(65041),P=i(33145),N=i(70579);const j=()=>{const e=(0,n.Zp)(),t=(0,n.wQ)(),{setPageParams:i,resetPageParams:j}=(0,p.C)((0,r.k)((e=>({setPageParams:e.setPageParams,resetPageParams:e.resetPageParams})))),{hasData:b,noticeList:S,pagination:w,noticeListParams:$,setNoticeListParams:A}=(0,d.A)(),[C,L]=(0,a.useState)($.sortBy),[k,H]=(0,a.useState)($.direction);return(0,a.useEffect)((()=>{(0,u.CV)([{valueName:"sortBy",newValue:C},{valueName:"direction",newValue:k}],A),i({sortBy:C,direction:k})}),[C,k]),(0,a.useEffect)((()=>
1{(0,u.CV)([{valueName:"viewPermission",newValue:v.qc.PLATFORM}],A),"POP"!==t&&(j(),(0,u.CV)((0,u.DH)(C,k),A))}),[]),(0,N.jsxs)(P.A,{children:[!b&&(0,N.jsx)(y.A,{}),(0,N.jsx)(o.oO,{children:(0,N.jsxs)(o.He,{display:"flex",direction:"column",padding:(null===S||void 0===S?void 0:S.length)>0?"0 0 48px":"0",$boxShadow:"unset",border:"1px solid var(--color-gray-200)",overflow:"hidden",height:S.length>0?"calc(100dvh - 162px)":"394px",$minHeight:"460px",$maxHeight:"564px",children:[(0,N.jsx)(s.Du,{display:"flex",direction:"column",padding:"unset",flex:"1",children:(0,N.jsxs)(s.Ic,{flex:(null===S||void 0===S?void 0:S.length)>8?"1":"unset",$minHeight:(null===S||void 0===S?void 0:S.length)<1?"432px":"",children:[(0,N.jsx)(f.A,{sortBy:C,setSortBy:L,setDirection:H,tHeadList:c.S7,color:"var(--color-gray-700-main)",padding:"12px 24px"}),b&&(null===S||void 0===S?void 0:S.length)>0&&(0,N.jsx)(s.NN,{$borderTop:"1px solid var(--color-gray-100)",$minHeight:"360px",$maxHeight:"460px",children:S.map(((t,i)=>{const a=(null===S||void 0===S?void 0:S.length)>7?"36px":"46px",n=t.isMainNotice?"var(--color-primary-50)":"transparent",r=t.isMainNotice?"var(--color-primary-200)":"var(--color-gray-50)";return(0,N.jsxs)(s.Tr,{onClick:()=>e("".concat(t.id)),background:n,$hoverBackground:r,children:[(0,N.jsx)(s.Td,{height:a,align:"left",padding:"0px 24px",color:"var(--color-gray-600)",children:(0,N.jsxs)(o.pT,{justify:"start",gap:"24px",children:[t.isMainNotice&&(0,N.jsx)(m.ld,{color:"var(--color-primary-500-main)",align:"center",fontWeight:x.sO.regular,$fontSizeWt:x.$N.size14,children:"\uc911\uc694"}),(0,g.PR)(t.title,30)]})}),(0,N.jsx)(s.Td,{height:a,color:"var(--color-gray-400)",children:(0,N.jsx)(m.x5,{color:"var(--color-gray-400)",align:"center",children:(0,g._V)(t.createdAt)})})]},i)}))}),b&&S.length<1&&(0,N.jsx)(o.cS,{display:"block",$displayWt:"block",left:"0",$leftWt:"50%",top:"50%",transform:"translateY(calc(-50% + 23px))",children:(0,N.jsx)(h.A,{description:"\uacf5\uc9c0\uac00 \uc5c6\uc5b4\uc694",height:"auto",margin:"16px 0"})})]})}),w&&(null===w||void 0===w?void 0:w.totalPages)>0?(0,N.jsx)(o.vp,{justify:"end",bottom:"20px",right:"16px",children:(0,N.jsx)(l.A,{onMovePage:e=>{(0,u.CV)([{valueName:"pageNumber",newValue:e-1}],A),i({pageNumber:e-1})},pagination:w,$marginWt:"12px 0 0"})}):""]})})]})}}}]);
2//# sourceMappingURL=3765.2d87720b.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.