1import{u as R,f as C,C as V,M as F,U as P,H as T,o as U,E as q,m as c,p as e,a6 as z,t as d,z as a,n as p,F as x,r as D,y as G,w as W,R as H,k as f,a7 as v,G as A,as as L}from"./entry-client-6684a004.js";import{u as J}from"./useWholesaleBoard-3e3bd0bc.js";import{_ as K}from"./BoardPostList-56025b3a.js";import{_ as M}from"./MoreToggle-f0eac8c4.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[i]="14484097-00b1-4681-9b96-8dd4520fef92",u._sentryDebugIdIdentifier="sentry-dbid-14484097-00b1-4681-9b96-8dd4520fef92")}catch{}})();const O={class:"px-4 py-6 flex-col flex gap-6 w-full max-w-screen-xl mx-auto"},Q={class:"self-stretch px-2 flex-col justify-start items-start gap-5 flex"},X={class:"ev-heading-1"},Y={class:"self-stretch justify-start items-start gap-4 inline-flex"},Z={class:"grow shrink basis-0 flex-col justify-center items-start gap-2 inline-flex"},ee={class:"text-stone-700 text-base font-normal leading-none"},te={class:"py-2 justify-center items-center gap-5 flex"},se={class:"justify-start items-center gap-2 flex"},ne={class:"text-center text-stone-700 text-base font-semibold leading-none"},le={class:"self-stretch min-h-[16rem] flex-col justify-start items-start gap-3 flex"},oe={class:"self-stretch text-stone-700 text-base font-normal leading-tight"},ie={class:"whitespace-pre-line tracking-tight"},ae={key:0,title:"íì¼ë´ì",class:"w-full p-4"},re={class:"bg-stone-50 p-4"},de=["onClick"],ue={class:"self-stretch px-4 justify-between items-center gap-4 inline-flex"},ce={class:"justify-start items-center gap-2 flex"},fe={class:"self-stretch px-4 flex-col justify-start items-end gap-4 inline-flex"},pe={class:"ml-auto"},me={class:"w-full p-4 flex flex-col gap-4"},_e={class:"grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"},xe={class:"justify-start items-center gap-2 inline-flex"},ve={class:"text-center text-stone-700 text-base font-normal leading-none"},we={class:"self-stretch justify-start items-start gap-1.5 inline-flex"},ge={class:"grow shrink basis-0 text-stone-700 text-base font-normal leading-tight"},he={class:"justify-start items-center gap-2 flex"},ye={class:"lg:px-4 lg:py-6 flex-col flex gap-6 w-full max-w-screen-xl mx-auto"},De={__name:"WholesaleApplyShowPage",props:{id:{type:[Number,String],required:!0}},setup(u){var g;const i=R(),o=J(),m=u,s=C(()=>{var n;return((n=o.getModel)==null?void 0:n.post)||{}}),r=V({wr_subject:s.value.wr_subject,wr_content:"",parent_id:(g=s.value.parent)!=null&&g.wr_id?s.value.parent.wr_id:s.value.wr_id}),S=F();async function w(n){await o.destroy(n,"ìì íìê² ìµëê¹?"),await o.index(),await i.push({name:"CustomerWholesaleApply"})}function $(){S.isAdmin&&window.open("/admin/resource/user/"+s.value.mb_id)}function E(n){window.open(n.file_url)}async function I(){var t;const n=(t=s.value.parent)!=null&&t.wr_id?s.value.parent.wr_id:s.value.wr_id;r.value.wr_subject="[ëµë³] "+s.value.wr_subject,r.value.parent_id=n,r.value.is_secret=1;try{await o.store({...r.value}),r.value.wr_content="",r.value.wr_subject="",await o.show(n),await o.index()}catch{}}let N=C(()=>m.id);const B=P();return T(N,()=>{if(B.name==="CustomerWholesaleApplyShow")try{o.show(m.id)}catch{i.go(-1)}}),U(()=>{o.show(m.id)}),(n,t)=>{var y,b,j,k;const h=q("iconic-label");return f(),c(x,null,[e("div",O,[e("div",Q,[t[7]||(t[7]=e("div",{class:"justify-start items-center gap-2 inline-flex"},[e("div",{class:"text-slate-500 text-base font-semibold leading-none"}," ë매ì ì² "),e("img",{src:z,class:"w-5 h-5 relative"})],-1)),e("div",X,d(s.value.wr_subject),1),e("div",Y,[e("div",Z,[e("div",{class:"text-stone-700 text-base font-normal leading-none",onClick:$},d(s.value.wr_name),1),e("div",ee,d(s.value.wr_datetime),1)]),e("div",te,[e("div",se,[t[6]||(t[6]=e("div",{class:"text-center text-stone-700 text-base font-semibold leading-none"}," ë§ê¸ ",-1)),e("div",ne,d((b=(y=s.value)==null?void 0:y.replies)==null?void 0:b.length),1)]),a(M,{list:["delete","edit"],onDelete:t[0]||(t[0]=()=>{w(s.value)}),onEdit:t[1]||(t[1]=()=>{p(i).push({name:"CustomerWholesaleApplyEdit",params:{id:s.value.wr_id}})})}
1)])]),t[8]||(t[8]=e("div",{class:"self-stretch h-[0px] w-full border-t border-stone-300"},null,-1)),e("div",le,[e("div",oe,[e("pre",ie,d(s.value.wr_content),1)])])]),((k=(j=s.value)==null?void 0:j.files)==null?void 0:k.length)>0?(f(),c("div",ae,[e("ul",re,[(f(!0),c(x,null,D(s.value.files,(l,_)=>(f(),c("li",{key:_,class:"flex items-center gap-2 text-base cursor-pointer",onClick:()=>{E(l)}},[e("span",null,[a(v,{name:"download",class:"w-6 h-6 relative"})]),A(" "+d(l.client_name),1)],8,de))),128))])])):G("",!0),e("div",ue,[e("div",ce,[a(v,{name:"comment"}),t[9]||(t[9]=e("div",{class:"text-center text-stone-700 text-base font-semibold leading-none"}," ëµê¸ ",-1))]),e("div",{class:"justify-start items-center gap-2 flex",onClick:t[2]||(t[2]=l=>p(i).push({name:"CustomerWholesaleApply"}))},[a(v,{name:"list",class:"w-6 h-6 relative"}),t[10]||(t[10]=e("div",{class:"text-center text-stone-700 text-base font-semibold leading-none"}," 목ë¡ì¼ë¡ ",-1))])]),e("div",fe,[a(h,{field:"wr_content"},{default:W(()=>[a(L,{value:r.value.wr_content,"onUpdate:value":t[3]||(t[3]=l=>r.value.wr_content=l)},null,8,["value"])]),_:1}),e("div",pe,[a(H,{primary:"",onClick:I},{default:W(()=>t[11]||(t[11]=[A(" ëµë³í기 ")])),_:1,__:[11]})])]),e("div",me,[(f(!0),c(x,null,D(s.value.replies,(l,_)=>(f(),c("div",{key:_,class:"self-stretch pl-5 pr-3 py-4 bg-stone-50 justify-start items-start gap-2 inline-flex"},[e("div",_e,[e("div",xe,[t[12]||(t[12]=e("div",{class:"text-center text-stone-700 text-base font-normal leading-none"}," CW ",-1)),t[13]||(t[13]=e("div",{class:"text-center text-stone-700 text-base font-normal leading-none"}," · ",-1)),e("div",ve,d(l.wr_datetime),1)]),e("div",we,[e("div",ge,[e("pre",null,d(l.wr_content),1)])])]),e("div",he,[a(M,{list:["delete"],onDelete:()=>{w(l)}},null,8,["onDelete"])])]))),128))])]),e("div",ye,[a(K,{store:p(o),"onMove:list":t[4]||(t[4]=()=>{p(i).push("/customer/wholesale-apply")}),"onMove:show":t[5]||(t[5]=l=>{p(i).push("/customer/wholesale-apply/"+l.wr_id+"/show")})},null,8,["store"])])],64)}}};export{De as default}; 2//# sourceMappingURL=WholesaleApplyShowPage-409f3b0b.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.