"use strict";(self.webpackChunk_shopby_react_skin=self.webpackChunk_shopby_react_skin||[]).push([[2303],{9420:(e,t,n)=>{n.d(t,{Z:()=>v});var r=n(7294),o=n(5697),c=n(6831),a=n(9212),l=n(7294);function i(e){return i="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},i(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=(0,r.lazy)((function(){return n.e(7469).then(n.bind(n,7469))})),m=(0,r.lazy)((function(){return n.e(9286).then(n.bind(n,9286))})),p=function(){return l.createElement("div",{style:{display:"flex"}},Array.from(new Array(3)).map((function(e,t){return l.createElement(c.Z,{key:t,type:a.rLD.GALLERY})})))},d=function(){return l.createElement(l.Fragment,null,Array.from(new Array(5)).map((function(e,t){return l.createElement(c.Z,{key:t,type:a.rLD.LIST})})))},f=function(e){return e.displayType===a.rLD.LIST?l.createElement(d,null):l.createElement(p,null)},y=function(e){var t,n,o,c=e.platformType,i=e.displayType,p=e.products,d=e.style,y=e.className,E=(s(t={},a.rLD.SWIPE,(function(e){var t=e.platformType,n=e.products;return l.createElement(u,{className:"product-section--slide ".concat(t),spaceBetween:10,products:n,displayType:i})})),s(t,a.rLD.PRODUCT_MOVE,(function(e){var t=e.platformType,n=e.products;return l.createElement(u,{className:"product-section--slide thumb-CART ".concat(t),spaceBetween:10,products:n,navigation:!1,displayType:i})})),t);return l.createElement(r.Suspense,{fallback:l.createElement(f,{displayType:i})},null!==(n=null===(o=E[i])||void 0===o?void 0:o.call(E,{platformType:c,displayType:i,products:p}))&&void 0!==n?n:l.createElement(m,{className:[c,y].join(" "),style:d,products:p,displayType:i,navigation:!0,platformType:c}))};const E=y;y.propTypes={platformType:(0,o.oneOf)(["PC","MOBILE_WEB","MOBILE_APP"]),displayType:(0,o.oneOf)(["SWIPE","GALLERY","LIST","PRODUCT_MOVE","SIMPLE_IMAGE","CART"]),products:o.array,style:o.object,className:o.string},f.propTypes={displayType:(0,o.oneOf)(["SWIPE","GALLERY","LIST","PRODUCT_MOVE","SIMPLE_IMAGE","CART"])};const v=E},9685:(e,t,n)=>{n.r(t),n.d(t,{default:()=>K});var r=n(7294),o=n(9250),c=n(7324),a=n(246),l=n(9437),i=n(2557),s=n(8504),u=n(8412),m=n(5697),p=["kcCd04","kcCd05","kcCd06","방송통신기자재 잠정인증","방송통신기자재 적합등록","방송통신기자재 적합인증"],d=n(7294),f=function(e){var t=e.certifications,n=void 0===t?[]:t;return d.createElement(d.Fragment,null,n.map((function(e,t){return d.createElement("dl",{className:"kc-info certification-no-".concat(e.no),key:"".concat(e.no,"-").concat(t)},d.createElement(i.Z,{shows:39===e.no,TruthyComponent:d.createElement("dt",null,e.type),FalsyComponent:d.createElement("dt",null,e.type," 안전확인 대상 품목으로 아래의 국가 통합인증 필함")}),d.createElement("dd",null,d.createElement("span",null,"인증 기관: ",e.organization)),d.createElement(i.Z,{shows:p.includes(e.code)||p.includes(e.type),TruthyComponent:d.createElement("dd",null,d.createElement("span",{className:"kc-logo"}),d.createElement("span",null,"인증 날짜: ",d.createElement("a",{href:"https://rra.go.kr/ko/license/A_c_search.do"},e.date))),FalsyComponent:d.createElement("dd",null,d.createElement("span",{className:"kc-logo"}),"인증 번호:"," ",d.createElement("a",{href:"https://www.safetykorea.kr/search/searchPop?certNum=".concat(e.code)},e.code))}),d.createElement(i.Z,{shows:e.target,TruthyComponent:d.createElement("dd",null,d.createElement("span",null,"인증 상호: ",e.target))}))})))};f.propTypes={certifications:(0,m.arrayOf)((0,m.shape)({no:m.number,type:m.string,code:m.string,date:m.string}))};const y=f;var E=n(7294),v=function(e){var t=e.includesKcInDutyInfo,n=e.showsOnPageDetail,r=e.certificationInformation,o=n||!t&&"NOT_TARGET"!==(null==r?void 0:r.certificationType),c=!t&&"TARGET"===(null==r?void 0:r.certificationType);return E.createElement(E.Fragment,null,E.createElement(i.Z,{shows:o,TruthyComponent:E.createElement("p",{className:"product-content__title"},"인증 정보")}),E.createElement(i.Z,{shows:c,TruthyComponent:E.createElement(E.Fragment,null,E.createElement(y,{certifications:null==r?void 0:r.certifications}))}),E.createElement(i.Z,{shows:"DETAIL_PAGE"===(null==r?void 0:r.certificationType),TruthyComponent:E.createElement("p",null,"상품 상세페이지 내 별도 표기")}))};v.propTypes={includesKcInDutyInfo:m.bool,showsOnPageDetail:m.bool,certificationInformation:(0,m.shape)({certificationType:m.string,certifications:(0,m.arrayOf)((0,m.shape)({no:m.number,type:m.string,code:m.string,date:m.string}))})};const g=v;var b=n(7294),h=function(e){var t=e.hasDutyInfo,n=e.includesKcInDutyInfo,r=e.contents,o=void 0===r?[]:r,c=e.certifications;return b.createElement(b.Fragment,null,b.createElement(i.Z,{shows:t,TruthyComponent:b.createElement("p",{className:"product-content__title"},"상품정보제공고시")}),b.createElement(i.Z,{shows:t,TruthyComponent:b.createElement("div",{className:"product-content__certification product-content__certification--duty-info"},o.map((function(e,t){var r=e.label,o=e.description;return b.createElement("dl",{key:t},b.createElement("dt",null,r),b.createElement("dd",null,b.createElement(i.Z,{shows:n&&r.startsWith("KC"),TruthyComponent:b.createElement(b.Fragment,null,o,b.createElement(y,{certifications:c})),FalsyComponent:o})))})))}))};const T=h;h.propTypes={hasDutyInfo:m.bool,includesKcInDutyInfo:m.bool,contents:(0,m.arrayOf)((0,m.shape)({label:m.string,description:m.string})),certifications:(0,m.arrayOf)((0,m.shape)({no:m.number,type:m.string,code:m.string,date:m.string}))},n.p,n.p,n.p,n.p,n.p,n.p,n.p,n.p;var I=n(9420);const O=n.p+"call-me..png?71e9e53ba7d5da89c7d9",w=n.p+"notice..png?e3d37afd004e7cfb0a2a",_=n.p+"process..png?9d43cb8751d8c9bf9865",N=n.p+"notice-again..png?16499f558952c4f2cb04",S=n.p+"process-detail..png?36b3d52253cce9d729c1",A=n.p+"company-photo..png?fd4f5e7f1c4fa7a1a5d1",C=n.p+"company-contact..png?3e9c75bacfe10d753261",k=n.p+"related-product-title..png?5bad5e4c782fbc810b99",D=n.p+"click-image..png?4a00f47a1c5cfebbbb34";var P=n(1955),L=n(7294),j=["dutyInfo"];function M(e,t){return G(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,c,a,l=[],i=!0,s=!1;try{if(c=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=c.call(n)).done)&&(l.push(r.value),l.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{if(!i&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||R(e,t)||Z()}function Z(){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 R(e,t){if(e){if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(v,j),F=E.baseInfo,K=E.categories,x=(0,l.I1)().originOption,B=(0,r.useMemo)((function(){var e=Object.values(h),t=e.length>2&&e[1].split("\n").map((function(e){var t,n=G(t=e.split(":"))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||R(t)||Z();return{title:n[0],content:n.slice(1).join(":")}})).filter((function(e){return e.title}));return{hasContent:e.some(Boolean),contents:e,spec:t}}),[h]),W=B.contents,z=(B.hasContent,B.spec,(0,r.useMemo)((function(){var e,t;return{showsOptionImages:null==F?void 0:F.optionImageViewable,optionImages:null===(e=null!==(t=null==x?void 0:x.flatOptions)&&void 0!==t?t:[])||void 0===e?void 0:e.flatMap((function(e){return e.images.filter((function(e){return e.main}))}))}}),[null==F?void 0:F.optionImageViewable,null==x?void 0:x.flatOptions])),U=z.showsOptionImages,V=z.optionImages,Y=(0,r.useMemo)((function(){var e;return{hasDutyInfo:b.contents.length>0,includesKcInDutyInfo:null===(e=b.contents)||void 0===e?void 0:e.some((function(e){return e.label.startsWith("KC")}))}}),[b]),H=Y.hasDutyInfo,$=Y.includesKcInDutyInfo,q=K&&K.length>0&&(K[0].categories||K[0].categoryNo)&&K[0].categories.length>0&&K[0].categories[0].categoryNo;(0,r.useEffect)((function(){var t=null==e?void 0:e.current,n=new ResizeObserver((function(){var e=null==t?void 0:t.offsetHeight;y(e>=500)}));return n.observe(t),function(){n.disconnect()}}),[]),(0,r.useEffect)((function(){q&&m({categoryNos:q,pageNumber:1,pageSize:5,sortType:"POPULAR",soldOut:!0,saleStatus:"ONSALE","filter.stickerNos":4333==P.Z.get("memberGroupNo")?130330:130331})}),[q]);var J=p.filter((function(e){return e.productNo!=(null==F?void 0:F.productNo)})).slice(0,4);return L.createElement(L.Fragment,null,L.createElement("div",{ref:e,className:"editor product-content__content"},L.createElement("div",{className:"product-content__content-box"},L.createElement("div",{className:"product-content__content_box_detail"},L.createElement("div",{className:"product-notice"},L.createElement("div",null,L.createElement("img",{src:O})),L.createElement("div",null,L.createElement("img",{src:w})),L.createElement("div",null,L.createElement("img",{src:_}))),L.createElement("div",{className:"product-notice"},L.createElement("div",null,L.createElement("img",{src:N})),L.createElement("div",null,L.createElement("img",{src:S}))),L.createElement(i.Z,{shows:U,TruthyComponent:L.createElement("div",null,null==V?void 0:V.map((function(e,t){return L.createElement("div",{key:"option-main-image-".concat(t)},L.createElement("img",{src:e.url}))}))),FalsyComponent:L.createElement("div",{className:"product-content__editor-box"},W.map((function(e,t){var n;return L.createElement(s.Z,{key:"product-detail-content-".concat(t),html:null!==(n=null==e?void 0:e.replaceAll(/style\=\"[^\"]+\"/gi,""))&&void 0!==n?n:""})})))}),L.createElement(T,{hasDutyInfo:H,includesKcInDutyInfo:$,contents:b.contents,certifications:null==F?void 0:F.certifications}),L.createElement(g,{includesKcInDutyInfo:$,showsOnPageDetail:"DETAIL_PAGE"===(null==F?void 0:F.certificationType),certificationInformation:{certificationType:null==F?void 0:F.certificationType,certifications:null==F?void 0:F.certifications}}),L.createElement("div",{className:"related-products"},L.createElement("div",{className:"related-title"},L.createElement("img",{src:k})),L.createElement("div",{className:"related-body"},L.createElement("div",{className:"click-image"},L.createElement("img",{src:D})),L.createElement("div",{className:"related-product-images"},L.createElement(I.Z,{platformType:t,displayType:"SIMPLE_IMAGE",products:J})))),L.createElement("div",{className:"product-notice"},L.createElement("div",null,L.createElement("img",{src:A})),L.createElement("div",null,L.createElement("img",{src:C})))))),L.createElement(u.default,null))}}}]);