PageSourceSearch

https://www.mieum.kr/static/js/7.b2ea0efd.chunk.js

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

1"use strict";(self.webpackChunkshop_react_web=self.webpackChunkshop_react_web||[]).push([[7],{65041:(e,t,a)=>{a.d(t,{A:()=>l});var i=a(65043),n=a(36579),s=a(53692),r=a(97605),o=a(70579);const l=e=>{const{tHeadList:t,onChangeAllCheck:a,pageSize:l,selectedItemCount:d,canSelectOnlyOne:c,isFixedHead:p,color:u,padding:h,background:g,fontSize:x,$paddingWt:m,$lineHeightWt:f,$borderTop:y,$borderBottom:v,height:b,fontWeight:j}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("colgroup",{children:t.map(((e,t)=>(0,o.jsx)("col",{style:{width:e.colWidth}},t)))}),(0,o.jsx)(n.d8,{$borderTop:y,$borderBottom:v,children:(0,o.jsx)("tr",{children:t.map(((e,t)=>(0,o.jsx)(i.Fragment,{children:"CHECKBOX"===e.text?(0,o.jsx)(n.o4,{className:p?"fixedHead":"",padding:h,background:g,$paddingWt:m,$lineHeightWt:f,height:b,fontWeight:j,children:(0,o.jsx)(r.pT,{children:!c&&(0,o.jsx)(s.S,{id:"",name:"all",checked:l===d,onChange:e=>{a&&a(e.target.checked)}})})}):(0,o.jsx)(n.o4,{style:{textAlign:e.textAlign},className:p?"fixedHead":"",color:u,padding:h,background:g,fontSize:x,$paddingWt:m,$lineHeightWt:f,height:b,fontWeight:j,children:e.text})},t)))})})]})}},70007:(e,t,a)=>{a.r(t),a.d(t,{default:()=>P});var i=a(65043),n=a(73216),s=a(46655),r=a(97605),o=a(35509),l=a(36579),d=a(17254),c=a(86269),p=a(49774),u=a(7685);const h=()=>{const e=sessionStorage.getItem("shopId"),t=(0,p.C)((e=>e.pageParams)),[a,n]=(0,i.useState)(!1),[s,r]=(0,i.useState)([]),[o,l]=(0,i.useState)(!1),[d,h]=(0,i.useState)([]),[g,x]=(0,i.useState)(null),[m,f]=(0,i.useState)({shopId:e,pageNumber:t&&t.pageNumber?t.pageNumber:0,pageSize:t&&t.pageSize?t.pageSize:10,sortBy:t&&t.sortBy?t.sortBy:"createdAt",direction:t&&t.direction?t.direction:"DESC"}),[y,v]=(0,i.useState)({shopId:e,title:"",content:"",imageList:[]}),{data:b,isFetched:j,refetch:P}=(0,c.qU)(m,o),{mutate:S}=(0,c._t)();return(0,i.useEffect)((()=>{o&&P()}),[o]),(0,i.useEffect)((()=>{b&&(h(b.content),x(b.pagination),l(!1),n(!!b.content))}),[b]),{hasData:a,questionList:d,pagination:g,fetchQuestionListParams:m,updateParams:(e,t)=>{"fetchQuestionListParams"===e&&(t.map((e=>f((t=>({...t,[e.valueName]:e.newValue}))))),l(!0)),"postQuestionParams"===e&&t.map((e=>v((t=>({...t,[e.valueName]:e.newValue})))))},postQuestion:e=>{S(y,{onSuccess:()=>{e()}})},uploadImageList:s,addMultipleImages:e=>{e.map(((e,t)=>r((a=>[...a,{file:e,previewUrl:URL.createObjectURL(e),fileName:(0,u.xc)((0,u.QC)(e),t)}]))))},removeImage:e=>{s.filter(((t,a)=>a!==e))},isFetched:j,setIsEnabled:l}};var g=a(27016),x=a(76172),m=a(399),f=a(48120),y=a(65650),v=a(65041),b=a(33145),j=a(70579);const P=()=>{const e=(0,n.Zp)(),t=(0,n.wQ)(),{setPageParams:a,resetPageParams:c}=(0,p.C)((0,s.k)((e=>({setPageParams:e.setPageParams,resetPageParams:e.resetPageParams})))),{hasData:P,questionList:S,pagination:$,fetchQuestionListParams:w,updateParams:H,isFetched:N,setIsEnabled:L}=h(),[k,Q]=(0,i.useState)(w.sortBy),[W,I]=(0,i.useState)(w.direction);return(0,i.useEffect)((()=>{H("fetchQuestionListParams",[{valueName:"sortBy",newValue:k},{valueName:"direction",newValue:W}]),a({sortBy:k,direction:W})}),[k,W]),(0,i.useEffect)((()=>{L(!0),"POP"!==t&&(c(),H("fetchQuestionListParams",(0,x.DH)(k,W)))}),[]),(0,j.jsx)(b.A,{children:(0,j.jsx)(r.oO,{children:(0,j.jsxs)(r.He,{display:"flex",direction:"column",height:"calc(100dvh - 162px)",padding:(null===S||void 0===S?void 0:S.length)>0?"0 0 48px":"0",overflow:"hidden",$boxShadow:"unset",border:"1px solid var(--color-gray-200)",$minHeight:"460px",$maxHeight:"564px",children:[N&&(0,j.jsx)(l.Du,{display:"flex",direction:"column",padding:"0",$minHeight:"300px",overflow:"unset",$overflowY:"unset",flex:"1",children:(0,j.jsxs)(l.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,j.jsx)(v.A,{sortBy:k,setSortBy:Q,setDirection:I,tHeadList:d.SZ,color:"var(--color-gray-700-main)",padding:"12px 24px"}),P&&(null===S||void 0===S?void 0:S.length)>0&&(0,j.jsx)(j.Fragment,{children:(0,j.jsx)(l.NN,{$borderTop:"1px solid var(--color-gray-100)",$minHeight:"360px",$maxHeight:"460px",children:S.map(((t,a)=>{const i=(null===S||void 0===S?void 0:S.length)>7?"36px":"46px";return(0,j.jsxs)(l.Tr,{onClick:()=>e("".concat(t.id)),children:[(0,j.jsx)(l.Td,{height:i,align:"left",$maxWidth:"896px",padding:"0px 24px",children:(0,j.jsxs)(r.pT,{justify:"start",ga
1p:"8px",children:["AWAITING_RESPONSE"!==t.status?(0,j.jsx)(o.Ex,{border:"unset",radius:f.A.corner40,padding:"3px 8px",background:"var(--color-primary-50)",color:"var(--color-primary-500-main)",children:"\ub2f5\ubcc0 \uc644\ub8cc"}):(0,j.jsx)(o.Ex,{border:"unset",radius:f.A.corner40,padding:"3px 8px",background:"var(--color-gray-100)",color:"var(--color-gray-500)",children:"\ub2f5\ubcc0 \ub300\uae30"}),(0,j.jsx)(r.bQ,{width:"800px",$widthWt:"300px",children:(0,j.jsx)(m.x5,{className:"ellipsis",color:"var(--color-gray-600)",align:"left",children:t.title})})]})}),(0,j.jsx)(l.Td,{height:i,children:(0,j.jsx)(m.x5,{align:"center",color:"var(--color-gray-400)",children:(0,u._V)(t.createdAt)})})]},a)}))})}),P&&S.length<1&&(0,j.jsx)(r.cS,{display:"block",$displayWt:"block",left:"0",$leftWt:"50%",top:"50%",transform:"translateY(calc(-50% + 23px))",children:(0,j.jsx)(y.A,{description:"\ubb38\uc758\uac00 \uc5c6\uc5b4\uc694",height:"auto",margin:"16px 0"})})]})}),$&&(null===$||void 0===$?void 0:$.totalPages)>0?(0,j.jsx)(r.vp,{justify:"end",bottom:"20px",right:"16px",children:(0,j.jsx)(g.A,{onMovePage:e=>{H("fetchQuestionListParams",[{valueName:"pageNumber",newValue:e-1}]),a({pageNumber:e-1})},pagination:$,$marginWt:"20px 0 0"})}):""]})})})}},86269:(e,t,a)=>{a.d(t,{_t:()=>c,fH:()=>u,iV:()=>p,iw:()=>d,qU:()=>l});var i=a(14365),n=a(93747),s=a(47097),r=a(77249);const o=(0,i.DY)("question",{fetchQuestionList:e=>[e],fetchQuestion:e=>[e]}),l=(e,t)=>
1(0,n.I)({queryKey:o.fetchQuestionList(e).queryKey,queryFn:()=>(0,r.Z$)(e),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:t}),d=e=>(0,n.I)({queryKey:o.fetchQuestion(e).queryKey,queryFn:()=>(0,r.hT)(e),enabled:!1}),c=()=>(0,s.n)({mutationFn:e=>(0,r.RL)(e)}),p=()=>(0,s.n)({mutationFn:e=>(0,r.B8)(e.id,e.patchQuestionParams)}),u=()=>(0,s.n)({mutationFn:e=>(0,r.ul)(e)})}}]);
2//# sourceMappingURL=7.b2ea0efd.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.