1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="61c49d70-a647-4ce6-873c-623c35cb076d",e._sentryDebugIdIdentifier="sentry-dbid-61c49d70-a647-4ce6-873c-623c35cb076d")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9067],{44945:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var a,l=n(12115);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let i=function(e){return l.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24"},e),a||(a=l.createElement("path",{fillRule:"evenodd",d:"M12.003 2.35c-.972 0-1.847.586-2.217 1.484L6.897 10.85h-3.12c-.12 0-.258 0-.379.01-.139.01-.332.04-.534.142a1.4 1.4 0 0 0-.611.612 1.4 1.4 0 0 0-.143.534c-.01.121-.01.26-.01.38v7.694c0 .12 0 .258.01.38.011.138.04.332.143.533a1.4 1.4 0 0 0 .611.612c.202.103.395.131.534.143.121.01.26.01.38.01h13.046c.454 0 .844 0 1.167-.025a2.9 2.9 0 0 0 1.003-.229 2.9 2.9 0 0 0 1.227-1.039c.2-.298.31-.617.392-.95.078-.316.142-.7.217-1.147l.784-4.67c.102-.609.188-1.123.222-1.545.035-.44.024-.876-.134-1.303a2.9 2.9 0 0 0-1.276-1.507c-.395-.227-.824-.31-1.263-.349-.422-.036-.943-.036-1.56-.036H14.4V4.747a2.397 2.397 0 0 0-2.397-2.397m-.553 2.17a.597.597 0 0 1 1.15.227V10a.9.9 0 0 0 .9.9h4.537c.442 0 .736 0 .961.013.22.013.312.036.359.052a1.1 1.1 0 0 1 .707.837c.009.048.016.142-.008.362a19 19 0 0 1-.146.95l-.906 5.4c-.115.69-.15.85-.205.961a1.1 1.1 0 0 1-.686.582c-.12.034-.283.043-.982.043H8.4v-8.172zM6.6 12.65H3.9v7.45h2.7z",clipRule:"evenodd"})))}}
1,56004:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(95155),l=n(40980);function s(e){let{isExpanded:t,isVisible:n,onClick:s,className:i}=e;return(0,a.jsx)("button",{type:"button",onClick:s,className:(0,l.cn)("mr-auto text-label2 text-label-alternative font-medium",n?"":"hidden",i),"data-sentry-component":"ExpandButton","data-sentry-source-file":"ExpandButton.tsx",children:t?(0,a.jsx)("span",{children:"ë«ê¸°"}):(0,a.jsx)("span",{children:"ë보기"})})}},69067:(e,t,n)=>{n.d(t,{A:()=>N});var a,l=n(95155),s=n(1693),i=n(27962),r=n(12115);function c(e){let{review:t,onClick:n}=e,[a,c]=(0,r.useState)(!1),d=async()=>{"success"===(await (0,s.W)({reviewId:t.id,productId:t.productId})).status?n():alert("리뷰 ìì ì ì¤í¨íìµëë¤.\nì ìí ë¤ì ìëí´ì£¼ì¸ì."),c(!1)};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{type:"button",className:"text-label2 text-label-alternative font-normal",onClick:()=>c(!0),children:"ìì "}),(0,l.jsx)(i.A,{isOpen:a,onClose:()=>c(!1),onConfirm:d,"data-sentry-element":"ReviewDeleteConfirm","data-sentry-source-file":"ReviewDeleteButton.tsx"})]})}var d=n(9339);let o=(0,d.createServerReference)("40a502ece66ec169dcb0246976f6c1835d93b3441a",d.callServer,void 0,d.findSourceMapURL,"postReviewRecommend");var u=n(21495),f=n(68001);function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let x=function(e){return r.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24"},e),a||(a=r.createElement("path",{d:"M9.786 3.834a2.397 2.397 0 0 1 4.614.913V9.1h3.203c.617 0 1.138 0 1.56.036.44.038.868.122 1.263.349a2.9 2.9 0 0 1 1.275 1.507c.159.427.17.863.135 1.303-.034.422-.12.936-.222 1.545l-.784 4.67c-.075.447-.14.831-.217 1.146a2.9 2.9 0 0 1-.392.951 2.9 2.9 0 0 1-1.227 1.039c-.328.147-.66.203-1.003.23-.323.024-.713.024-1.167.024H6.9V10.843zM5.1 10.85H3.778c-.12 0-.259 0-.38.01-.139.01-.332.04-.534.142a1.4 1.4 0 0 0-.611.612 1.4 1.4 0 0 0-.143.534c-.01.121-.01.26-.01.38v7.694c0 .12 0 .258.01.38.011.138.04.332.143.533a1.4 1.4 0 0 0 .611.612c.202.103.395.131.534.143.121.01.26.01.38.01H5.1z"})))};var v=n(44945),h=n(37882);function w(e){let{reviewId:t,isLiked:n,likeCount:a,className:s,onClick:i}=e,[c,d]=(0,r.useState)(n),[m,w]=(0,r.useState)(a),[b,p]=(0,r.useState)(!1),{data:j}=(0,h.useSession)();(0,r.useEffect)(()=>{d(n)},[n]);let y=async()=>{var e;if(!(null==j||null==(e=j.user)?void 0:e.id))return void p(!0);try{let e=await o({reviewId:t,isRecommend:!c});if("success"!==e.status)throw e.error;c?w(m-1):w(m+1),i(t,!c),d(!c)}catch(e){if(401===e.statusCode)return void p(!0);console.error("í기 ì¢ìì ë±ë¡ ì¤í¨",e.message)}};return(0,l.jsxs)("div",{"data-sentry-component":"ReviewLikeButton","data-sentry-source-file":"ReviewLikeButton.tsx",children:[(0,l.jsx)(f.z4,{variant:"assistive",size:"sm",onClick:y,className:s,"data-testid":"review-like-button",leftIcon:c?(0,l.jsx)(x,{className:"w-4 h-4 text-label-normal","data-testid":"review-liked-icon"}):(0,l.jsx)(v.default,{className:"w-4 h-4 text-label-normal","data-testid":"review-disliked-icon"}),"data-sentry-element":"OutlinedButton","data-sentry-source-file":"ReviewLikeButton.tsx",children:m}),(0,l.jsx)(u.A,{isOpen:b,onClose:()=>p(!1),"data-sentry-element":"LoginAlert","data-sentry-source-file":"ReviewLikeButton.tsx"})]})}var b=n(56004),p=n(95409),j=n(15643),y=n(13022),g=n(40980),k=n(87681);function N(e){var t,n;let{review:a,isLiked:s,className:i,contentClassName:d,contentTop:o,authorActionOverlay:u,authorActionPlacement:f="footer",renderAuthorAction:m,onDeleteReview:x,onClickReviewLikeButton:v,contentRenderer:N="sanitized-html"}=e,{data:R}=(0,h.useSession)(),_=(0,r.useRef)(null),[C,I]=(0,r.useState)(!1),[B,S]=(0,r.useState)(!1),E=a.content;(0,r.useEffect)(()=>{if(!E){S(!1),I(!1);return}let e=_.current;if(!e){S(!1),I(!1);return}if("rich-text"===N){let t=()=>{let t=e.scrollHeight>100;S(t),t||I(!1)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()}let t=e.scrollHeight>100;S(t),t||I(!1)},[E,N]);let L=(null==R||null==(t=R.user)?void 0:t.id)===a.memberId.toString(),A=null!=(n=null==m?void 0:m()
1)?n:(0,l.jsx)(c,{review:a,onClick:x});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:(0,g.cn)("flex w-full min-w-0",i),children:[(0,l.jsxs)("div",{className:"flex w-full min-w-0 flex-col gap-4 hanbit_md:flex-row hanbit_md:gap-8",children:[(0,l.jsx)("div",{className:"flex w-full justify-between hanbit_md:w-fit hanbit_md:flex-shrink-0",children:(0,l.jsxs)("div",{className:"flex w-full items-start justify-between hanbit_md:w-fit hanbit_md:flex-shrink-0",children:[(0,l.jsxs)("div",{className:"mt-0.5 flex items-center gap-1",children:[(0,l.jsx)(p.A,{score:a.score,"data-sentry-element":"ReviewScoreStars","data-sentry-source-file":"BaseReviewItem.tsx"}),(0,l.jsx)("span",{className:"text-label2 text-label-normal font-normal",children:a.score})]}),(0,l.jsxs)("div",{className:"flex items-center justify-end gap-2 text-label2 text-label-alternative font-normal hanbit_md:hidden",children:[(0,l.jsx)("p",{children:a.loginId}),(0,l.jsx)("p",{children:(0,k.qp)(a.createdAt)}),L&&"inline"===f&&A]})]})}),(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-1.5",children:[o,"rich-text"===N?(0,l.jsx)("div",{className:C||!B?"":"max-h-[4.5rem] overflow-hidden",children:(0,l.jsx)("div",{ref:_,"data-testid":"product-review-content",children:(0,l.jsx)(y.A,{value:E,contentClassName:(0,g.cn)("text-label1_reading text-label-normal font-normal whitespace-pre-wrap break-all font-pretendard [&_*]:break-all",d)})})}):(0,l.jsx)(j.default,{html:E,contentRef:_,testId:"product-review-content",className:(0,g.cn)("text-label1_reading text-label-normal font-normal whitespace-pre-wrap font-pretendard ck-content [&_*]:break-words",d,C||!B?"":"line-clamp-3 overflow-hidden")}),(0,l.jsx)(b.A,{isExpanded:C,isVisible:B,onClick:()=>{I(!C)},"data-sentry-element":"ExpandButton","data-sentry-source-file":"BaseReviewItem.tsx"})]}),(0,l.jsxs)("div",{className:"flex w-full items-center justify-between hanbit_md:hidden",children:[(0,l.jsx)(w,{reviewId:a.id,isLiked:s,className:"w-fit",likeCount:a.likeCount,onClick:v,"data-sentry-element":"ReviewLikeButton","data-sentry-source-file":"BaseReviewItem.tsx"}),L&&"footer"===f&&A]})]}),(0,l.jsxs)("div",{className:"hidden w-[125px] flex-shrink-0 flex-col justify-between gap-2 hanbit_md:flex hanbit_md:items-end",children:[(0,l.jsxs)("div",{className:"flex flex-col items-end gap-1",children:[(0,l.jsxs)("div",{className:"flex items-center justify-end gap-2 text-label2 text-label-alternative font-normal",children:[(0,l.jsx)("p",{children:a.loginId}),(0,l.jsx)("p",{children:(0,k.qp)(a.createdAt)}),L&&"inline"===f&&A]}),L&&"footer"===f&&A]}),(0,l.jsx)(w,{reviewId:a.id,isLiked:s,className:"w-fit",likeCount:a.likeCount,onClick:v,"data-sentry-element":"ReviewLikeButton","data-sentry-source-file":"BaseReviewItem.tsx"})]})]}),u]})}}}]);
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.