PageSourceSearch

https://chromaworks.co.kr/build/assets/MyPageProductReview-02daf7c2.js

js chromaworks.co.kr collected 2026-09-24 14:24:06 UTC 5,123 bytes, 2 lines download raw bytes

1import{az as U,C as y,D as V,f as M,m as o,z as u,p as e,t as i,n as r,y as b,F as w,r as k,af as B,k as l,a9 as N,ax as R,ad as T,ae as z,w as E,G as F,I as L,aq as q,$ as j}from"./entry-client-6684a004.js";import{_ as A}from"./MyDashboard-d9f53d53.js";import{u as G}from"./useMyProductReview-fd9d8d91.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new Error().stack;f&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[f]="658f62ba-c507-4fe3-93b2-f888b1d64fc0",d._sentryDebugIdIdentifier="sentry-dbid-658f62ba-c507-4fe3-93b2-f888b1d64fc0")}catch{}})();const S={class:"px-4 py-6 flex-col flex gap-4 w-full"},H={class:"w-full justify-start items-center gap-1 inline-flex"},J={class:"grow shrink basis-0 h-6 justify-start items-end gap-1 flex"},K={class:"ev-heading-1"},O={key:0,class:"text-center text-stone-600"},Q={class:"self-stretch justify-start items-center gap-3 inline-flex"},W=["src"],X={class:"grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"},Y={class:"justify-start items-center gap-3 inline-flex"},Z={class:"text-stone-700 text-base font-normal leading-none"},ee={class:"self-stretch text-stone-700 text-base font-semibold leading-none"},te={class:"self-stretch justify-start items-start gap-4 inline-flex"},se={class:"grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"},ne={class:"self-stretch justify-start items-start gap-2 inline-flex"},ae={class:"grow shrink basis-0 h-3.5 justify-start items-end gap-1 flex"},oe={class:"text-center text-stone-700 text-sm font-normal leading-[14px]"},ie={class:"justify-between w-full items-start inline-flex"},le={class:"justify-center items-end gap-2 inline-flex"},re=["onClick"],ce={class:"text-center text-stone-700 text-base font-semibold leading-none"},de=["onClick"],fe={class:"text-center text-stone-700 text-base font-semibold leading-none"},ue={class:"self-stretch w-full text-stone-700 text-base font-normal leading-tight"},ge={key:0,class:"whitespace-pre-line"},_e={key:1,class:"w-full py-2 flex flex-col gap-2"},pe=["onUpdate:modelValue"],xe={key:2,class:"flex gap-3 py-3 w-full"},ye={__name:"MyPageProductReview",setup(d){const{t:f}=U(),s=G(),g=y(null);async function P(n){await j(f("리뷰를 삭제하면 지급된 포인트도 같이 사라져요. 리뷰를 삭제할까요?")),await s.destroy(n),await s.index()}async function $(n){await j(f("리뷰를 수정할까요?")),await s.update({is_id:n.is_id,is_content:n.is_content,is_score:n.is_score}),await s.index(),g.value=null}V(()=>{s.index()});const p=y(null);function D(n){s.getPageIndex(n),window.scroll({top:p.value.offsetTop-100,behavior:"smooth"})}const C=M(()=>s.getData.filter(n=>n.product));return(n,a)=>(l(),o("div",S,[u(A),e("div",H,[e("div",J,[e("div",K,i(n.$t("나의 리뷰")),1)])]),r(s).getData.length===0?(l(),o("div",O,i(n.$t("내역이 없습니다"))+". ",1)):b("",!0),e("div",{ref_key:"listDom",ref:p,class:"pb-8 flex-col flex gap-4 w-full"},[(l(!0),o(w,null,k(C.value,(t,_)=>{var x,v,h,m;return l(),o("div",{key:_,class:"w-full p-4 bg-stone-50 flex-col justify-start items-start gap-4 inline-flex"},[e("div",Q,[e("img",{src:(x=t.product)==null?void 0:x.thumb_image,class:"w-12"},null,8,W),e("div",X,[e("div",Y,[e("div",Z,i((v=t.product)==null?void 0:v.it_name),1)]),e("div",ee,i(r(N)((m=(h=t.product)==null?void 0:h.prices[0])==null?void 0:m.op_price1)),1)])]),a[4]||(a[4]=e("div",{class:"self
1-stretch h-[0px] border border-stone-300"},null,-1)),e("div",te,[e("div",se,[e("div",ne,[e("div",ae,[e("div",oe,i(t.is_time.substring(0,10).replaceAll("-"," .")),1)])]),e("div",ie,[u(R,{value:t.is_score,"onUpdate:value":c=>t.is_score=c,readonly:g.value!==_},null,8,["value","onUpdate:value","readonly"]),e("div",le,[e("div",{class:"justify-start items-center gap-2 flex",onClick:()=>{g.value=_}},[e("div",ce,i(n.$t("수정")),1)],8,re),a[3]||(a[3]=e("div",{class:"text-center text-stone-300 text-base font-semibold leading-none"}," | ",-1)),e("div",{class:"justify-start items-center gap-2 flex",onClick:c=>P(t)},[e("div",fe,i(n.$t("삭제")),1)],8,de)])]),e("div",ue,[g.value!==_?(l(),o("pre",ge,i(t.is_content),1)):(l(),o("div",_e,[T(e("textarea",{"onUpdate:modelValue":c=>t.is_content=c,cols:"5",class:"min-h-[8rem] border-b p-2 w-full border-stone-300 bg-stone-100 text-stone-700 outline-none"},null,8,pe),[[z,t.is_content]]),u(L,{class:"ml-auto",onClick:c=>$(t)},{default:E(()=>[F(i(n.$t("수정하기")),1)]),_:2},1032,["onClick"])])),t.files.length>0?(l(),o("div",xe,[(l(!0),o(w,null,k(t.files,(c,I)=>(l(),o("div",{key:I},[u(q,{class:"w-32 h-32","image-url":c.url},null,8,["image-url"])]))),128))])):b("",!0)])])])])}),128))],512),u(B,{total:r(s).getPagination.total,"onUpdate:total":a[0]||(a[0]=t=>r(s).getPagination.total=t),page:r(s).getPagination.current_page,"onUpdate:page":a[1]||(a[1]=t=>r(s).getPagination.current_page=t),"per-page":r(s).getPagination.per_page,"onUpdate:perPage":a[2]||(a[2]=t=>r(s).getPagination.per_page=t),onChange:D},null,8,["total","page","per-page"])]))}};export{ye as default};
2//# sourceMappingURL=MyPageProductReview-02daf7c2.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.