1"use strict";(self.webpackChunkshop_react_web=self.webpackChunkshop_react_web||[]).push([[3532],{13532:(e,i,t)=>{t.r(i),t.d(i,{default:()=>b});var n=t(65043),s=t(73216),a=t(61158),r=t(35509),l=t(399),p=t(97605),d=t(40186),c=t(20524),h=t(52110),x=t(17988),o=t(28568),g=t(23178),j=t(7685),u=t(59116),m=t(26708),w=t(58801),$=t(48120),f=t(62991),v=t(70579);const b=()=>{var e,i;const t=(0,s.Zp)(),b=(0,g.W)((e=>e.setToast)),{postQuestionParams:k,updateParams:y,postQuestion:Q,uploadImageList:S,addMultipleImages:T,removeImage:W}=(0,x.A)(),C=f.b8.extraLong,z=(0,n.useRef)(null),[A,H]=(0,n.useState)(!1),[M,N]=(0,n.useState)(!1),[L,P]=(0,n.useState)(!1),_=()=>{b("1:1 \ubb38\uc758 \ub4f1\ub85d\uc774 \uc644\ub8cc\ub418\uc5c8\uc5b4\uc694.","success"),t("/cs/question",{replace:!0})};return(0,n.useEffect)((()=>{""!==k.title&&""!==k.content?H(!0):H(!1)}),[k]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(a.A,{title:"\ubb38\uc758 \uae00 \uc791\uc131",onClose:()=>P(!0)}),(0,v.jsx)(p.He,{padding:"26px 24px",margin:"24px 0 0",$marginWt:"20px 0 0 ",$paddingWt:"16px 20px",children:(0,v.jsxs)(p.pT,{direction:"column",gap:"16px",children:[(0,v.jsx)(p.bQ,{width:"100%",children:(0,v.jsxs)(p.pT,{gap:"16px",width:"100%",align:"top",$gapWt:"14px",children:[(0,v.jsx)(p.bQ,{width:"60px",padding:"12px 0",children:(0,v.jsx)(l.ld,{$whiteSpace:"pre",children:"\ubb38\uc758 \uc81c\ubaa9"})}),(0,v.jsxs)(p.bQ,{children:[(0,v.jsx)(d.pd,{placeholder:"\uc81c\ubaa9\uc744 \uc785\ub825\ud574 \uc8fc\uc138\uc694.",value:k.title,onChange:e=>y("postQuestionParams",[{valueName:"title",newValue:(0,j.aM)(e.target.value,100)}]),maxLength:100}),(0,v.jsxs)(p.pT,{justify:"space-between",padding:"6px 0",children:[(0,v.jsx)(l.x5,{color:"var(--color-gray-300)",fontSize:u.$N.size12,$lineHeight:u.kj.height20,children:"\uc81c\ubaa9\uc740 100\uc790\uae4c\uc9c0 \uc785\ub825\ud560 \uc218 \uc788\uc5b4\uc694."}),(0,v.jsxs)(l.x5,{align:"right",color:"var(--color-gray-300)",fontSize:u.$N.size12,$lineHeight:u.kj.height20,children:[(null===(e=k.title)||void 0===e?void 0:e.length)||0,"/100"]})]})]})]})}),(0,v.jsx)(p.bQ,{width:"100%",children:(0,v.jsxs)(p.pT,{gap:"16px",width:"100%",align:"top",$gapWt:"14px",children:[(0,v.jsx)(p.bQ,{width:"60px",padding:"12px 0",children:(0,v.jsx)(l.ld,{$whiteSpace:"pre",children:"\ubb38\uc758 \ub0b4\uc6a9"})}),(0,v.jsxs)(p.bQ,{children:[(0,v.jsx)(d.M0,{children:(0,v.jsx)(d.fs,{placeholder:"\uc0c1\uc138 \ub0b4\uc6a9\uc744 \uc785\ub825\ud574 \uc8fc\uc138\uc694.",$minHeight:"300px",$minHeightWt:"240px",value:k.content,onChange:e=>y("postQuestionParams",[{valueName:"content",newValue:(0,j.aM)(e.target.value,C)}]),maxLength:C})}),(0,v.jsxs)(p.pT,{justify:"space-between",padding:"6px 0",children:[(0,v.jsxs)(l.x5,{color:"var(--color-gray-300)",fontSize:u.$N.size12,$lineHeight:u.kj.height20,children:["\uc0c1\uc138 \ub0b4\uc6a9\uc740 ",C,"\uc790\uae4c\uc9c0 \uc785\ub825\ud560 \uc218 \uc788\uc5b4\uc694."]}),(0,v.jsxs)(l.x5,{align:"right",color:"var(--color-gray-300)",fontSize:u.$N.size12,$lineHeight:u.kj.height20,children:[(null===(i=k.content)||void 0===i?void 0:i.length)||0,"/",C]})]})]})]})}),(0,v.jsx)(p.bQ,{width:"100%",children:(0,v.jsxs)(p.pT,{gap:"16px",width:"100%",align:"top",$gapWt:"14px",children:[(0,v.jsx)(p.bQ,{width:"60px",padding:"12px 0",children:(0,v.jsx)(l.ld,{$whiteSpace:"pre",children:"\ucca8\ubd80\ud30c\uc77c"})}),(0,v.jsxs)(p.bQ,{children:[(0,v.jsx)(p.pT,{gap:"8px",justify:"start",align:"start",direction:"column",width:"100%",height:"52px",padding:"14px",$gapWt:"12px",border:"1px solid var(--color-gray-200)",radius:$.A.corner12,onClick:()=>{z.current.click()},$hasCursor:!0,children:(0,v.jsxs)(p.pT,{gap:"8px",children:[(0,v.jsx)("input",{hidden:!0,type:"file",multiple:!0,accept:"image/jpeg, image/png, image/gif",ref:z,onChange:e=>{const i=e.target.files?Array.from(e.target.files):[];T(i),z.current&&(z.current.value="")}}),(0,v.jsx)("img",{src:m.A,alt:"\uc5c5\ub85c\ub4dc"}),(0,v.jsx)(l.ld,{color:"var(--color-gray-300)",fontWeight:u.sO.regular,children:"\ud30c\uc77c\uc744 \uc5c5\ub85c\ub4dc\ud574 \uc8fc\uc138\uc694"})]})}
1),(0,v.jsx)(p.pT,{wrap:"wrap",justify:"start",gap:"8px",padding:"8px 0 0 0",children:S.length>0&&(0,v.jsx)(v.Fragment,{children:S.map(((e,i)=>(0,v.jsxs)(c.n,{width:"90px",height:"90px",$widthWt:"120px",$heightWt:"120px",children:[(0,v.jsx)(h.Rj,{type:"button",top:"6px",right:"6px",onClick:()=>W(i),children:(0,v.jsx)("img",{src:w.A,alt:"\uc9c0\uc6b0\uae30"})}),(0,v.jsx)("div",{children:(0,v.jsx)("img",{src:e.previewUrl})})]},i)))})})]})]})})]})}),(0,v.jsxs)(p.pT,{margin:"56px auto 0",gap:"16px",$marginWt:"40px auto 0",children:[(0,v.jsx)(r.cO,{width:"240px",onClick:()=>P(!0),children:"\uc774\uc804"}),(0,v.jsx)(r.oT,{disabled:!A,width:"240px",onClick:()=>N(!0),children:"\uc644\ub8cc"})]}),(0,v.jsx)(o.A,{modal:M,setModal:N,onSubmit:()=>Q(_),description:"\ubb38\uc758\ud558\uc2e0 \ub0b4\uc6a9\uc744 \ub4f1\ub85d\ud560\uae4c\uc694?",caption:"\uc644\ub8cc \uc2dc \uc785\ub825\ud558\uc2e0 \ub0b4\uc6a9\uc774 \ubb38\uc758 \uae00\ub85c \ub4f1\ub85d\ub418\uc5b4\uc694."}),(0,v.jsx)(o.A,{modal:L,setModal:P,onSubmit:()=>{P(!1),t(-1)},description:"\ubb38\uc758 \uae00 \uc791\uc131\uc744 \ucde8\uc18c\ud560\uae4c\uc694?",caption:"\ucde8\uc18c\ud55c \uc815\ubcf4\ub294 \ub418\ub3cc\ub9b4 \uc218 \uc5c6\uc5b4\uc694."})]})}}}]); 2//# sourceMappingURL=3532.64ac3501.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.