/*! For license information please see 9781.1f8c40155cddb78a04f8.bundle.js.LICENSE.txt */ "use strict";(self.webpackChunk_shopby_react_skin=self.webpackChunk_shopby_react_skin||[]).push([[9781],{36047(e,t,n){n.d(t,{A:()=>b});var r=n(96540),o=n(5556),l=n(32410),i=n(82714),a=n(96540);function u(e){return u="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},u(e)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=(0,r.lazy)(function(){return Promise.all([n.e(4834),n.e(2454),n.e(7177),n.e(8361)]).then(n.bind(n,87145))}),d=(0,r.lazy)(function(){return Promise.all([n.e(4834),n.e(2454),n.e(7789)]).then(n.bind(n,77789))}),p=function(){return a.createElement("div",{style:{display:"flex"}},Array.from(new Array(3)).map(function(e,t){return a.createElement(l.A,{key:t,type:i.jV.GALLERY})}))},f=function(){return a.createElement(a.Fragment,null,Array.from(new Array(5)).map(function(e,t){return a.createElement(l.A,{key:t,type:i.jV.LIST})}))},m=function(e){return e.displayType===i.jV.LIST?a.createElement(f,null):a.createElement(p,null)},v=function(e){var t,n,o=e.platformType,l=e.displayType,u=e.products,p=e.style,f=e.className,v=e.rowCount,y=void 0===v?1:v,b=c(c({},i.jV.SWIPE,function(e){var t=e.platformType,n=e.products;return a.createElement(s,{className:"product-section--slide ".concat(t),spaceBetween:10,products:n,displayType:l,rowCount:y})}),i.jV.PRODUCT_MOVE,function(e){var t=e.platformType,n=e.products;return a.createElement(s,{className:"product-section--slide ".concat(t),spaceBetween:10,products:n,navigation:!1,displayType:l,rowCount:y})});return a.createElement(r.Suspense,{fallback:a.createElement(m,{displayType:l})},null!==(t=null===(n=b[l])||void 0===n?void 0:n.call(b,{platformType:o,displayType:l,products:u}))&&void 0!==t?t:a.createElement(d,{className:[o,f].join(" "),style:p,products:u,displayType:l,platformType:o}))};const y=v;v.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,rowCount:o.number},m.propTypes={displayType:(0,o.oneOf)(["SWIPE","GALLERY","LIST","PRODUCT_MOVE","SIMPLE_IMAGE","CART"])};const b=y},60613(e,t,n){n.d(t,{A:()=>s});var r=n(5556),o=n(32410),l=n(82714),i=n(96540),a=function(e){var t=e.colCount;return i.createElement("div",{style:{display:"flex",marginBottom:"10px"}},Array.from(Array(t)).map(function(e,t){return i.createElement(o.A,{key:t,type:l.jV.GALLERY})}))},u=function(e){var t=e.rowCount,n=void 0===t?1:t,r=e.colCount,o=void 0===r?1:r,l=e.children,u=e.className;return e.isLoading?i.createElement("div",{className:u},Array.from(Array(n)).map(function(e,t){return i.createElement(a,{colCount:o,key:t})})):l};const c=u;a.propTypes={colCount:r.number},u.propTypes={className:r.string,rowCount:r.number,colCount:r.number,children:(0,r.oneOf)([r.node,r.element]),isLoading:r.bool};const s=c},79781(e,t,n){n.r(t),n.d(t,{default:()=>ge});var r=n(96540),o=n(40733),l=n(10253),i=n(98861),a=n(25258),u=n(84976),c=n(69159),s=n(57973),d=n(83707),p=n(90593),f=n(52745),m=n(3502),v=n(22397),y=n(60613),b=n(43085),h=n(41085),E=n(64505),g=n(96540);function _(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function l(n,r,o,l){var u=r&&r.prototype instanceof a?r:a,c=Object.create(u.prototype);return N(c,"_invoke",function(n,r,o){var l,a,u,c=0,s=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return l=t,a=0,u=e,p.n=n,i}};function f(n,r){for(a=n,u=r,t=0;!d&&c&&!o&&t3?(o=m===r)&&(u=l[(a=l[4])?5:(a=3,3)],l[4]=l[5]=e):l[0]<=f&&((o=n<2&&fr||r>m)&&(l[4]=n,l[5]=r,p.n=m,a=0))}if(o||n>1)return i;throw d=!0,r}return function(o,s,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),a=s,u=m;(t=a<2?e:u)||!d;){l||(a?a<3?(a>1&&(p.n=-1),f(a,u)):p.n=u:p.v=u);try{if(c=2,l){if(a||(o="next"),t=l[o]){if(!(t=t.call(l,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=l.return)&&t.call(l),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);l=e}else if((t=(d=p.n<0)?u:n.call(r,p))!==i)break}catch(t){l=e,a=1,u=t}finally{c=1}}return{value:t,done:d}}}(n,o,l),!0),c}var i={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(N(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(s);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,N(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=c,N(d,"constructor",c),N(c,"constructor",u),u.displayName="GeneratorFunction",N(c,o,"GeneratorFunction"),N(d),N(d,o,"Generator"),N(d,r,function(){return this}),N(d,"toString",function(){return"[object Generator]"}),(_=function(){return{w:l,m:p}})()}function N(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}N=function(e,t,n,r){function l(t,n){N(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(l("next",0),l("throw",1),l("return",2))},N(e,t,n,r)}function T(e,t,n,r,o,l,i){try{var a=e[l](i),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,o)}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l,i,a=[],u=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.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)?w(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 w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};return null!==(e=null!==(t=null!==(n=null!==(r=null!==(o=null!==(l=null!==(i=null!==(a=d.shippingTemplateNo)&&void 0!==a?a:d.shippingTemplateId)&&void 0!==i?i:d.deliveryTemplateNo)&&void 0!==l?l:d.deliveryTemplateId)&&void 0!==o?o:d.deliveryFeeTemplateNo)&&void 0!==r?r:null===(u=d.deliveryTemplate)||void 0===u?void 0:u.deliveryTemplateNo)&&void 0!==n?n:null===(c=d.deliveryTemplate)||void 0===c?void 0:c.templateNo)&&void 0!==t?t:null===(s=d.deliveryTemplate)||void 0===s?void 0:s.id)&&void 0!==e?e:null},A=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n.deliveryInfo||(null===(e=n.baseInfo)||void 0===e?void 0:e.deliveryInfo)||(null===(t=n.summary)||void 0===t?void 0:t.deliveryInfo)||n.deliveryFee||n},S=function(){var e,t,n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o.summary||(null===(e=o.deliveryConditionInfo)||void 0===e?void 0:e.summary)||o.deliveryConditionTypeLabel||o.deliveryTypeLabel||o.shippingTypeLabel||(null===(t=o.deliveryConditionType)||void 0===t?void 0:t.label)||(null===(n=o.deliveryType)||void 0===n?void 0:n.label)||(null===(r=o.shippingType)||void 0===r?void 0:r.label)||null},C=function(e){if(!e)return null;var t=String(e).replace(/\s+/g,"");if(t.includes("무료")||t.toLowerCase().includes("free"))return"FREE";var n=t.replace(/[^0-9]/g,"");return n||t},D=function(){var e,t,n,r,o,l,i,a,u,c,s,d,p,f,m,v,y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},b=null!==(e=null!==(t=null!==(n=null!==(r=y.bundleDeliveryYn)&&void 0!==r?r:y.bundleDeliveryPossible)&&void 0!==n?n:y.isBundleDelivery)&&void 0!==t?t:y.bundleYn)&&void 0!==e?e:y.canBundle;if(void 0!==b)return function(e){if("boolean"==typeof e)return e;if("string"==typeof e){var t=e.toUpperCase();return"Y"===t||"TRUE"===t||"T"===t}return!1}(b);var h="".concat(null!==(o=null!==(l=null!==(i=null!==(a=y.deliveryConditionType)&&void 0!==a?a:null===(u=y.deliveryConditionType)||void 0===u?void 0:u.value)&&void 0!==i?i:y.deliveryType)&&void 0!==l?l:y.shippingType)&&void 0!==o?o:""),E="".concat(null!==(c=null!==(s=null!==(d=null!==(p=null!==(f=y.deliveryTypeLabel)&&void 0!==f?f:y.shippingTypeLabel)&&void 0!==p?p:y.deliveryConditionTypeLabel)&&void 0!==d?d:null===(m=y.deliveryConditionType)||void 0===m?void 0:m.label)&&void 0!==s?s:null===(v=y.deliveryConditionInfo)||void 0===v?void 0:v.summary)&&void 0!==c?c:""),g=h.toUpperCase();return!!["FIXED_FEE","CONDITIONAL_FREE","FREE","FREE_DELIVERY"].includes(g)||(g.includes("BUNDLE")||E.includes("묶음"))};const P=function(){var e,t,n,l,i=(0,o._D)(),N=i.originProductDetail,w=i.productDetail,P=I((0,u.ok)(),1)[0],j=I((0,r.useState)([]),2),L=j[0],k=j[1],x=I((0,r.useState)(!1),2),F=x[0],M=x[1],G=I((0,r.useState)(null),2),R=G[0],U=G[1],V=(0,r.useRef)(!1),B=null==N||null===(e=N.partner)||void 0===e?void 0:e.partnerNo,K=(null==w?void 0:w.productNo)||(null==N||null===(t=N.baseInfo)||void 0===t?void 0:t.productNo),Y=(null==w?void 0:w.deliveryInfo)||(null==w||null===(n=w.baseInfo)||void 0===n?void 0:n.deliveryInfo)||(null==w?void 0:w.deliveryFee)||(null==w?void 0:w.freight)||(null==N?void 0:N.deliveryInfo)||(null==N||null===(l=N.baseInfo)||void 0===l?void 0:l.deliveryInfo)||(null==N?void 0:N.deliveryFee)||(null==N?void 0:N.freight)||{},z=O(Y),W=S(Y)||function(){var e,t,n,r,o,l,i,a,u,c,s,d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=null!==(e=null==d?void 0:d.summary)&&void 0!==e?e:{},m=null==d?void 0:d.deliveryFee,v=null==d?void 0:d.freight,y=null==d?void 0:d.deliveryInfo,b=null==d?void 0:d.baseInfo;return(null===(t=f.freight)||void 0===t?void 0:t.feeLabel)||(null===(n=f.freight)||void 0===n?void 0:n.conditionLabel)||(null===(r=f.freight)||void 0===r?void 0:r.defaultConditionLabel)||(null==m?void 0:m.deliveryCompanyTypeLabel)||(null==m?void 0:m.defaultDeliveryConditionLabel)||(null==p||null===(o=p.deliveryFee)||void 0===o?void 0:o.deliveryCompanyTypeLabel)||(null==p||null===(l=p.deliveryFee)||void 0===l?void 0:l.defaultDeliveryConditionLabel)||(null==y?void 0:y.deliveryConditionTypeLabel)||(null==y||null===(i=y.deliveryConditionType)||void 0===i?void 0:i.label)||(null==y?void 0:y.deliveryTypeLabel)||(null==y?void 0:y.shippingTypeLabel)||(null==v?void 0:v.deliveryTypeLabel)||(null==v?void 0:v.deliveryConditionTypeLabel)||(null==b||null===(a=b.deliveryInfo)||void 0===a?void 0:a.deliveryTypeLabel)||(null==b||null===(u=b.deliveryInfo)||void 0===u?void 0:u.deliveryConditionTypeLabel)||(null==p||null===(c=p.baseInfo)||void 0===c||null===(c=c.deliveryInfo)||void 0===c?void 0:c.deliveryTypeLabel)||(null==p||null===(s=p.baseInfo)||void 0===s||null===(s=s.deliveryInfo)||void 0===s?void 0:s.deliveryConditionTypeLabel)||f.deliveryTypeLabel||f.shippingTypeLabel||null}(w,N),q=C(W),$=function(e){if(!e)return!1;var t=String(e).replace(/\s+/g,"");return t.includes("무료")||t.toLowerCase().includes("free")}(W)||"FREE"===q?"추천 무료배송 상품들":"묶음배송이 가능한 상품들",H=(0,r.useMemo)(function(){return L.filter(function(e){return e.productNo!==K})},[L,K]),X=function(e){R||V.current||(V.current=!0,U(e))};return(0,r.useEffect)(function(){var e=function(){var e,t=(e=_().m(function e(){var t,n,r,o;return _().w(function(e){for(;;)switch(e.p=e.n){case 0:if(B&&(z||W)){e.n=1;break}return e.a(2);case 1:return e.p=1,M(!0),e.n=2,(0,h.KO)({url:"products/search",query:{pageNumber:1,pageSize:50,partnerNo:B,includeSummaryInfo:!0,"filter.saleStatus":"ALL_CONDITIONS","filter.soldout":!1,"filter.excludeMallProductNo":K}});case 2:n=e.v,r=null!==(t=null==n?void 0:n.items)&&void 0!==t?t:[],o=r.filter(function(e){var t=A(e),n=O(t),r=S(t),o=C(r),l=!0;return z?l=!!z&&n===z:q&&(l=!(z||!q)&&o===q),l&&D(t)}),k(o.slice(0,10)),e.n=4;break;case 3:e.p=3,e.v,k([]);case 4:return e.p=4,M(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var l=e.apply(t,n);function i(e){T(l,r,o,i,a,"next",e)}function a(e){T(l,r,o,i,a,"throw",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}();e()},[B,K,z]),B&&(z||W)?F?g.createElement("section",{className:"l-panel seller-products bundle-products"},g.createElement("h3",{className:"seller-products__title"},"묶음상품 가능한 상품"),g.createElement(y.A,{rowCount:1,colCount:3,isLoading:F})):H.length?g.createElement(c.Ay,null,g.createElement("section",{className:"l-panel seller-products bundle-products"},g.createElement("h3",{className:"seller-products__title"},$),g.createElement(s.A,{className:"seller-products__slider",slidesPerView:2.5,spaceBetween:12},H.map(function(e){var t,n,r,o,l,i,u,c,s,y,b,h=(null===(t=e.listImageUrls)||void 0===t?void 0:t[0])||(null===(n=e.imageUrls)||void 0===n?void 0:n[0]),_=(null!==(r=e.immediateDiscountAmt)&&void 0!==r?r:0)+(null!==(o=e.additionDiscountAmt)&&void 0!==o?o:0),N=(0,f.w)({salePrice:e.salePrice,immediateDiscountAmt:e.immediateDiscountAmt,additionDiscountAmt:e.additionDiscountAmt}),T=e.salePrice?Math.round(_/e.salePrice*100):0,I=e.expirationYmdt||e.validDate||e.expirationDate||(null===(l=e.baseInfo)||void 0===l?void 0:l.expirationYmdt)||(null===(i=e.baseInfo)||void 0===i?void 0:i.validDate)||(null===(u=e.baseInfo)||void 0===u?void 0:u.expirationDate)||(null===(c=e.deliveryInfo)||void 0===c?void 0:c.validDate)||(null===(s=e.deliveryInfo)||void 0===s?void 0:s.expirationDate)||(null===(y=e.summary)||void 0===y?void 0:y.validDate)||(null===(b=e.summary)||void 0===b?void 0:b.expirationDate),w=I?String(I).slice(0,10):"",O=(0,E.nw)(e);return g.createElement(d.qr,{key:e.productNo,className:"seller-products__slide"},g.createElement(p.A,{className:"seller-products__thumb",productNo:e.productNo,href:"/product-detail?productNo=".concat(e.productNo),resize:"150x150",src:h,imageUrlType:"IMAGE_URL",alt:e.productName,HoverViewComponent:g.createElement(v.A,{productNo:e.productNo,isSoldOut:e.isSoldOut,onOpenOptionModal:X})},g.createElement("div",{className:"seller-products__info"},g.createElement("div",{className:"seller-products__name"},g.createElement(a.A,{html:e.productName})),g.createElement("div",{className:"seller-products__price-row"},T>0&&g.createElement("span",{className:"seller-products__discount"},T,"%"),g.createElement("span",{className:"seller-products__price"},(0,m.yF)(N),"원")),w&&g.createElement("div",{className:"seller-products__expiry"},"소비기한 ",w),g.createElement("div",{className:"product-thumb-info__shipping"},g.createElement("span",{className:"product-thumb-info__shipping-label".concat(O?" product-thumb-info__shipping-label--free":" product-thumb-info__shipping-label--placeholder")},O||"무료배송")))))}))),R&&g.createElement(b.A,{productNo:R,channelType:P.get("channelType"),onClose:function(){U(null),V.current=!1}})):null:null};var j=n(10159),L=n(82714),k=n(36047),x=n(96540);function F(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function l(n,r,o,l){var u=r&&r.prototype instanceof a?r:a,c=Object.create(u.prototype);return M(c,"_invoke",function(n,r,o){var l,a,u,c=0,s=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return l=t,a=0,u=e,p.n=n,i}};function f(n,r){for(a=n,u=r,t=0;!d&&c&&!o&&t3?(o=m===r)&&(u=l[(a=l[4])?5:(a=3,3)],l[4]=l[5]=e):l[0]<=f&&((o=n<2&&fr||r>m)&&(l[4]=n,l[5]=r,p.n=m,a=0))}if(o||n>1)return i;throw d=!0,r}return function(o,s,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),a=s,u=m;(t=a<2?e:u)||!d;){l||(a?a<3?(a>1&&(p.n=-1),f(a,u)):p.n=u:p.v=u);try{if(c=2,l){if(a||(o="next"),t=l[o]){if(!(t=t.call(l,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=l.return)&&t.call(l),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);l=e}else if((t=(d=p.n<0)?u:n.call(r,p))!==i)break}catch(t){l=e,a=1,u=t}finally{c=1}}return{value:t,done:d}}}(n,o,l),!0),c}var i={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(M(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(s);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,M(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=c,M(d,"constructor",c),M(c,"constructor",u),u.displayName="GeneratorFunction",M(c,o,"GeneratorFunction"),M(d),M(d,o,"Generator"),M(d,r,function(){return this}),M(d,"toString",function(){return"[object Generator]"}),(F=function(){return{w:l,m:p}})()}function M(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}M=function(e,t,n,r){function l(t,n){M(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(l("next",0),l("throw",1),l("return",2))},M(e,t,n,r)}function G(e,t,n,r,o,l,i){try{var a=e[l](i),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,o)}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l,i,a=[],u=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}(e,t)||V(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 U(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.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)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:[]),t=e.length-1;t>0;t-=1){var n=Math.floor(Math.random()*(t+1)),r=[e[n],e[t]];e[t]=r[0],e[n]=r[1]}return e};const Y=function(){var e,t,n=R((0,u.ok)(),1)[0],l=Number(n.get("productNo")),i=(0,o._D)(),a=i.originProductDetail,c=i.productDetail,s=(void 0===c?{}:c).baseInfo,d=R((0,r.useState)([]),2),p=d[0],f=d[1],m=R((0,r.useState)(!1),2),v=m[0],y=m[1],b=(null==a||null===(e=a.baseInfo)||void 0===e?void 0:e.displayCategoryNos)||(null==a||null===(t=a.baseInfo)||void 0===t?void 0:t.categoryNo)||(null==s?void 0:s.displayCategoryNos)||(null==s?void 0:s.categoryNo)||(null==a?void 0:a.displayCategoryNos)||"",E=(0,r.useMemo)(function(){return(e=b)?Array.isArray(e)?e.join(","):String(e):"";var e},[b]),g=j.Fr?"MOBILE_WEB":"PC";return(0,r.useEffect)(function(){var e=function(){var e,t=(e=F().m(function e(){var t,n,r,o,i,a;return F().w(function(e){for(;;)switch(e.p=e.n){case 0:if(E){e.n=1;break}return e.a(2);case 1:return e.p=1,y(!0),e.n=2,(0,h.KO)({url:"products/search",query:{pageNumber:1,pageSize:30,categoryNos:E,includeSummaryInfo:!0,"filter.saleStatus":"ALL_CONDITIONS","filter.soldout":!1,"order.by":"SALE_YMD","order.direction":"DESC"}});case 2:r=e.v,o=null!==(t=null!==(n=null==r?void 0:r.items)&&void 0!==n?n:null==r?void 0:r.products)&&void 0!==t?t:[],i=o.filter(function(e){return e.productNo!==l}),a=K(i).slice(0,20),f(a),e.n=4;break;case 3:e.p=3,e.v,f([]);case 4:return e.p=4,y(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var l=e.apply(t,n);function i(e){G(l,r,o,i,a,"next",e)}function a(e){G(l,r,o,i,a,"throw",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}();e()},[E,l]),!E||v||0===p.length?null:x.createElement("section",{className:"category-recommend-products"},x.createElement("h3",{className:"category-recommend-products__title"},"추천 상품"),x.createElement(k.A,{platformType:g,displayType:L.jV.SWIPE,products:p}))};var z=n(5556),W=n(48799),q=n(96540),$=["productNo","productName","discountedPrice","originalPrice","hasOnlyOriginalPrice"];function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t3?(o=m===r)&&(u=l[(a=l[4])?5:(a=3,3)],l[4]=l[5]=e):l[0]<=f&&((o=n<2&&fr||r>m)&&(l[4]=n,l[5]=r,p.n=m,a=0))}if(o||n>1)return i;throw d=!0,r}return function(o,s,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===s&&f(s,m),a=s,u=m;(t=a<2?e:u)||!d;){l||(a?a<3?(a>1&&(p.n=-1),f(a,u)):p.n=u:p.v=u);try{if(c=2,l){if(a||(o="next"),t=l[o]){if(!(t=t.call(l,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,a<2&&(a=0)}else 1===a&&(t=l.return)&&t.call(l),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);l=e}else if((t=(d=p.n<0)?u:n.call(r,p))!==i)break}catch(t){l=e,a=1,u=t}finally{c=1}}return{value:t,done:d}}}(n,o,l),!0),c}var i={};function a(){}function u(){}function c(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(te(t={},r,function(){return this}),t),d=c.prototype=a.prototype=Object.create(s);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,te(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=c,te(d,"constructor",c),te(c,"constructor",u),u.displayName="GeneratorFunction",te(c,o,"GeneratorFunction"),te(d),te(d,o,"Generator"),te(d,r,function(){return this}),te(d,"toString",function(){return"[object Generator]"}),(ee=function(){return{w:l,m:p}})()}function te(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}te=function(e,t,n,r){function l(t,n){te(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(l("next",0),l("throw",1),l("return",2))},te(e,t,n,r)}function ne(e,t,n,r,o,l,i){try{var a=e[l](i),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,o)}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l,i,a=[],u=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oe(e,t);var n={}.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)?oe(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 oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&Q.createElement("span",{className:"seller-products__discount"},_,"%"),Q.createElement("span",{className:"seller-products__price"},(0,m.yF)(g),"원")),T&&Q.createElement("div",{className:"seller-products__expiry"},"소비기한 ",T),Q.createElement("div",{className:"product-thumb-info__shipping"},Q.createElement("span",{className:"product-thumb-info__shipping-label".concat(I?" product-thumb-info__shipping-label--free":" product-thumb-info__shipping-label--placeholder")},I||"무료배송")))))})),C>6&&Q.createElement("div",{className:"seller-products__more-wrap"},Q.createElement("button",{type:"button",className:"seller-products__more-btn",onClick:function(){var e=new URLSearchParams({partnerNo:x});F&&e.set("sellerName",F),_("/seller-products?".concat(e.toString()))}},"더보기 (",C,"개 전체보기)"))),j&&Q.createElement(b.A,{productNo:j,channelType:g.get("channelType"),onClose:function(){L(null),k.current=!1}})):null:null};var ie=["kcCd04","kcCd05","kcCd06","방송통신기자재 잠정인증","방송통신기자재 적합등록","방송통신기자재 적합인증"],ae=n(96540),ue=function(e){var t=e.certifications,n=void 0===t?[]:t;return ae.createElement(ae.Fragment,null,n.map(function(e,t){return ae.createElement("dl",{className:"kc-info certification-no-".concat(e.no),key:"".concat(e.no,"-").concat(t)},ae.createElement(i.A,{shows:39===e.no,TruthyComponent:ae.createElement("dt",null,e.type),FalsyComponent:ae.createElement("dt",null,e.type," 안전확인 대상 품목으로 아래의 국가 통합인증 필함")}),ae.createElement("dd",null,ae.createElement("span",null,"인증 기관: ",e.organization)),ae.createElement(i.A,{shows:ie.includes(e.code)||ie.includes(e.type),TruthyComponent:ae.createElement("dd",null,ae.createElement("span",{className:"kc-logo"}),ae.createElement("span",null,"인증 날짜: ",ae.createElement("a",{href:"https://rra.go.kr/ko/license/A_c_search.do"},e.date))),FalsyComponent:ae.createElement("dd",null,ae.createElement("span",{className:"kc-logo"}),"인증 번호:"," ",ae.createElement("a",{href:"https://www.safetykorea.kr/search/searchPop?certNum=".concat(e.code)},e.code))}),ae.createElement(i.A,{shows:e.target,TruthyComponent:ae.createElement("dd",null,ae.createElement("span",null,"인증 상호: ",e.target))}))}))};ue.propTypes={certifications:(0,z.arrayOf)((0,z.shape)({no:z.number,type:z.string,code:z.string,date:z.string}))};const ce=ue;var se=n(96540),de=function(e){var t=e.includesKcInDutyInfo,n=e.showsOnPageDetail,r=e.certificationInformation,o=n||!t&&"NOT_TARGET"!==(null==r?void 0:r.certificationType),l=!t&&"TARGET"===(null==r?void 0:r.certificationType);return se.createElement(se.Fragment,null,se.createElement(i.A,{shows:o,TruthyComponent:se.createElement("p",{className:"product-content__title"},"인증 정보")}),se.createElement(i.A,{shows:l,TruthyComponent:se.createElement(se.Fragment,null,se.createElement(ce,{certifications:null==r?void 0:r.certifications}))}),se.createElement(i.A,{shows:"DETAIL_PAGE"===(null==r?void 0:r.certificationType),TruthyComponent:se.createElement("p",null,"상품 상세페이지 내 별도 표기")}))};de.propTypes={includesKcInDutyInfo:z.bool,showsOnPageDetail:z.bool,certificationInformation:(0,z.shape)({certificationType:z.string,certifications:(0,z.arrayOf)((0,z.shape)({no:z.number,type:z.string,code:z.string,date:z.string}))})};const pe=de;var fe=n(96540),me=function(e){var t=e.hasDutyInfo,n=e.includesKcInDutyInfo,r=e.contents,o=void 0===r?[]:r,l=e.certifications;return fe.createElement(fe.Fragment,null,fe.createElement(i.A,{shows:t,TruthyComponent:fe.createElement("p",{className:"product-content__title"},"상품정보제공고시")}),fe.createElement(i.A,{shows:t,TruthyComponent:fe.createElement("div",{className:"product-content__certification product-content__certification--duty-info"},o.map(function(e,t){var r=e.label,o=e.description;return fe.createElement("dl",{key:t},fe.createElement("dt",null,r),fe.createElement("dd",null,fe.createElement(i.A,{shows:n&&r.startsWith("KC"),TruthyComponent:fe.createElement(fe.Fragment,null,o,fe.createElement(ce,{certifications:l})),FalsyComponent:o})))}))}))};const ve=me;me.propTypes={hasDutyInfo:z.bool,includesKcInDutyInfo:z.bool,contents:(0,z.arrayOf)((0,z.shape)({label:z.string,description:z.string})),certifications:(0,z.arrayOf)((0,z.shape)({no:z.number,type:z.string,code:z.string,date:z.string}))};var ye=n(96540),be=["dutyInfo"];function he(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l,i,a=[],u=!0,c=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ee(e,t);var n={}.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)?Ee(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 Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0,includesKcInDutyInfo:null===(e=m.contents)||void 0===e?void 0:e.some(function(e){return e.label.startsWith("KC")})}},[m]),w=I.hasDutyInfo,O=I.includesKcInDutyInfo;return(0,r.useEffect)(function(){var t=null==e?void 0:e.current,n=new ResizeObserver(function(){var e=null==t?void 0:t.offsetHeight;d(e>=500)});return n.observe(t),function(){n.disconnect()}},[]),ye.createElement(ye.Fragment,null,ye.createElement("div",{ref:e,className:"editor product-content__content ".concat(n?"":"hidden")},ye.createElement("div",{className:"product-content__content-box"},ye.createElement(i.A,{shows:g||N,TruthyComponent:ye.createElement("p",{className:"product-content__title"},"상품상세정보")}),ye.createElement(i.A,{shows:N,TruthyComponent:ye.createElement("div",null,null==T?void 0:T.map(function(e,t){return ye.createElement("div",{key:"option-main-image-".concat(t)},ye.createElement("img",{src:e.url}))})),FalsyComponent:ye.createElement("div",{className:"product-content__editor-box"},E.map(function(e,t){return ye.createElement(a.A,{key:"product-detail-content-".concat(t),html:null!=e?e:"",allowMedia:!0})}))}),ye.createElement(i.A,{shows:!g&&!N,TruthyComponent:ye.createElement("p",{className:"product-content__empty-content"},"등록된 상품 상세 정보가 없습니다.")}),ye.createElement(ve,{hasDutyInfo:w,includesKcInDutyInfo:O,contents:m.contents,certifications:null==y?void 0:y.certifications}),ye.createElement(pe,{includesKcInDutyInfo:O,showsOnPageDetail:"DETAIL_PAGE"===(null==y?void 0:y.certificationType),certificationInformation:{certificationType:null==y?void 0:y.certificationType,certifications:null==y?void 0:y.certifications}}),ye.createElement(i.A,{shows:s,TruthyComponent:ye.createElement("div",{className:"product-content__more-btn"},ye.createElement("button",{onClick:function(){return u(function(e){return!e})}},n?"상세정보 접기":"상세정보 펼쳐보기"))}))),ye.createElement("img",{src:"/assets/에코프랜들리.png",alt:"",style:{width:"100%",display:"block"}}),ye.createElement(P,null),ye.createElement(le,null),ye.createElement(Y,null),ye.createElement(Z,{title:"추천상품"}))}}}]);