/*! For license information please see 8306.797bdc2929a264eddfbe.bundle.js.LICENSE.txt */ "use strict";(self.webpackChunk_shopby_react_skin=self.webpackChunk_shopby_react_skin||[]).push([[8306],{453:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(5697),o=r(6831),i=r(7294),a=function(e){var t=e.size,r=void 0===t?4:t,n=e.children,a=e.className;return e.isLoading?i.createElement("div",{className:a},Array(r).fill(null).map((function(e,t){return i.createElement(o.Z,{key:t,type:"LIST"})}))):n};const c=a;a.propTypes={className:n.string,size:n.number,children:(0,n.oneOf)([n.node,n.element]),isLoading:n.bool}},8306:(e,t,r)=>{r.d(t,{P:()=>P,Z:()=>U});var n=r(7294),o=r(5697),i=r(8379),a=r(412),c=r(8030),l=r(2557),u=r(453),s=r(9901),m=r(5004),f=r(2968),p=r(5851),d=r(2169),h=r(6050),v=r(1968),y=r(4113),g=r(9212),w=r(1398),b=r(6722),E=r(4466),N=r(8504),_=r(7294);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function L(){L=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new C(n||[]);return o(a,"_invoke",{value:S(e,r,c)}),a}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",v={};function y(){}function g(){}function w(){}var b={};u(b,a,(function(){return this}));var E=Object.getPrototypeOf,N=E&&E(E(k([])));N&&N!==r&&n.call(N,a)&&(b=N);var _=w.prototype=y.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function r(o,i,a,c){var l=m(e[o],e,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==O(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,r,n){var o=f;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=T(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=m(t,r,n);if("normal"===u.type){if(o=n.done?h:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function T(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=m(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function k(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:k(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function x(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function R(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){x(i,n,o,a,c,"next",e)}function c(e){x(i,n,o,a,c,"throw",e)}a(void 0)}))}}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,TruthyComponent:_.createElement("div",{className:"product-review-item__image"},_.createElement("ul",null,J.map((function(e,t){return _.createElement("li",{key:"".concat(t,"_product-review-item-image")},_.createElement("img",{src:(0,g.JZp)({url:e,additionalSearchParams:"100x100"}),alt:"상품 후기 이미지"}))}))),_.createElement("span",{className:"product-review-item__image-count"},W))}),_.createElement("div",{className:"product-review-item__bottom"},_.createElement("div",{className:"product-review-item__order-info"},_.createElement(l.Z,{shows:a,TruthyComponent:_.createElement("p",{className:"product-review-item__product-name"},_.createElement(N.Z,{html:r}))}),_.createElement("p",{className:"product-review-item__member-id"},x),_.createElement("p",{className:"product-review-item__brand-name"},(0,g.Uo5)(u)),_.createElement("p",{className:"product-review-item__option-value"},(0,g.Uo5)(Z)),s>=0&&_.createElement("p",{className:"product-review-item__price"},(0,g.o5F)(s),"원")),_.createElement("div",{className:"product-review-item__text"},_.createElement("div",{className:"product-review-item__text-detail"},_.createElement(N.Z,{html:j.replaceAll("\n","
")})),_.createElement(v.Z,{className:"arrow",iconType:"angle-down",onClick:function(){return B((function(e){return!e}))},size:"sm",hiddenLabel:!0,label:V?"리뷰 가리기":"리뷰 보기"})),_.createElement(l.Z,{shows:D,TruthyComponent:_.createElement("div",{className:"product-review-item__btns"},_.createElement(y.Z,{label:"수정",onClick:function(){$(!0)}}),_.createElement(y.Z,{label:"삭제",onClick:K}))})))),_.createElement(l.Z,{shows:z,TruthyComponent:_.createElement(b.Z,{title:M.name,onClose:function(){return $(!1)}},_.createElement(E.Z,{isRegisterMode:!1,reviewNo:O,productName:r,productImageUrl:m,optionDisplayLabel:Z,content:j,reviewImages:I.map((function(e){return{originName:e,imageUrl:e}})),rate:C,onCancel:function(){$(!1)},onModify:function(){H()}}))}))}));j.displayName="ProductReviewItem",j.propTypes={productNo:o.number.isRequired,reviewNo:o.number.isRequired,registerName:o.string,onModify:o.func.isRequired,onDelete:o.func.isRequired,content:o.string.isRequired,images:(0,o.arrayOf)(o.string).isRequired,rate:o.number.isRequired,mainImageUrl:o.string,productName:o.string,brandName:o.string,price:o.number,optionDisplayLabel:o.string,updatedDate:o.string,isMine:o.bool,showsProductName:o.bool};const I=j;var C=r(7294),k=["fileUrls"];function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,k),a=r.orderedOption,l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.optionUsed,r=void 0===t||t,n=e.optionName,o=void 0===n?"":n,i=e.optionValue,a=void 0===i?"":i;return r&&o&&a?"".concat(o," : ").concat(a):""}(null!=a?a:{});return C.createElement(i.Z,{key:r.reviewNo},c&&C.createElement(s.Z,A({},r,{optionUsed:a.optionUsed,optionName:a.optionName,optionValue:a.optionValue,resize:"84x84"})),C.createElement(I,A({},r,{productName:r.productName,updatedDate:r.registerYmdt.slice(0,10),mainImageUrl:r.imageUrl,brandName:c?"":r.brandName,optionDisplayLabel:c?"":l,showsProductName:!c,isMine:r.myReview,images:t,onModify:n,onDelete:o})))}))))};P.propTypes={onModify:o.func.isRequired,onDelete:o.func.isRequired,reviews:(0,o.arrayOf)((0,o.shape)({reviewNo:o.number.isRequired,registerName:o.string.isRequired,updatedDate:o.string,content:o.string,fileUrls:(0,o.arrayOf)(o.string),rate:o.number,orderedOption:(0,o.shape)({optionName:o.string,optionValue:o.string}),myReview:o.bool})),showsProductInfo:o.bool};var M=function(e){var t,r=e.productNo,n=e.totalCount,o=e.sortType,i=e.onSelect,s=e.reviews,m=e.onModify,f=e.onDelete,p=e.isLoading,d=(0,a.w_)().boardConfig.productReviewConfig;return C.createElement("div",{className:"product-board-list"},C.createElement("div",{className:"product-board-list__search"},C.createElement("p",null,null!==(t=null==d?void 0:d.name)&&void 0!==t?t:"상품후기"," ",C.createElement("span",{className:"product-board-list__total-count"},C.createElement("em",null,n),"건")),C.createElement(c.Z,{value:o,className:"product-board-list__sort-type",options:Object.entries(q).map((function(e){var t,r,n=(r=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Z(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Z(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return{value:n[0],label:n[1]}})),onSelect:function(e){i(e)}})),C.createElement(l.Z,{shows:n>0,TruthyComponent:C.createElement(C.Fragment,null,C.createElement(P,{productNo:r,reviews:s,sortType:o,onModify:function(){m()},onDelete:function(){f()}}),C.createElement(u.Z,{isLoading:p})),FalsyComponent:p?C.createElement(u.Z,{isLoading:p}):C.createElement(D,null)}))};const U=M;M.displayName="ProductReviewList",M.propTypes={productNo:o.number.isRequired,totalCount:o.number.isRequired,sortType:(0,o.oneOf)(["BEST_REVIEW","REGISTER_YMDT","RATING_DESC","RATING_ASC"]).isRequired,onSelect:o.func.isRequired,onModify:o.func.isRequired,onDelete:o.func.isRequired,reviews:(0,o.arrayOf)((0,o.shape)({reviewNo:o.number.isRequired,registerName:o.string.isRequired,updatedDate:o.string,content:o.string,fileUrls:(0,o.arrayOf)(o.string),rate:o.number,orderedOption:(0,o.shape)({optionName:o.string,optionValue:o.string}),myReview:o.bool,onEditBtnClick:o.func,onDeleteBtnClick:o.func})).isRequired,isLoading:o.bool}},9901:(e,t,r)=>{r.d(t,{Z:()=>n});const n=r(3815).Z}}]);