"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2785],{98208:function(a,b,c){var d=c(61261),e=c(91987),f=c(61927),g=c(364),h=c(21929),i=c(74008);function j(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function k(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))}function l(){var a=k(["\n width: 100%;\n height: 100%;\n object-fit: ",";\n "]);return l=function(){return a},a}function m(){var a=k(["\n ","\n"]);return m=function(){return a},a}var n=e.forwardRef(function(a,b){var c=a.src,h=a.w,k=a.h,l=a.c,m=a.className,n=(a.imgFit,a.objectFit),o=(a.imageScale,a.skeletonSize,a.borderRadius),q=void 0===o?0:o,r=a.fallbackWidth,s=a.fallbackHeight,t=function(a,b){if(null==a)return{};var c,d,e=function a(b,c){if(null==b)return{};var d,e,f={},g=Object.keys(b);for(e=0;e=0||(f[d]=b[d]);return f}(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d=0)&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}(a,["src","w","h","c","className","imgFit","objectFit","imageScale","skeletonSize","borderRadius","fallbackWidth","fallbackHeight"]),u=(0,e.useRef)(null),v=(0,e.useRef)(null),w=(0,f.l)([b,u]),x=(0,e.useState)(!1),y=x[0],z=x[1],A=(0,e.useState)(!1),B=A[0],C=A[1],D=(0,e.useCallback)(function(){var a,b,c=(null==(a=u.current)?void 0:a.naturalWidth)&&(null==a?void 0:a.naturalHeight)?{width:a.naturalWidth,height:a.naturalHeight}:null;c&&(null==t||null===(b=t.handleChangeMeta)|| void 0===b||b.call(t,c))},[t]),E=(0,e.useCallback)(function(){z(!0),D()},[D]),F=(0,e.useCallback)(function(a){var b;null==t||null===(b=t.onError)|| void 0===b||b.call(t,a)},[t]),G=(0,e.useCallback)(function(){var a,b;!y&&(null==u?void 0:null===(a=u.current)|| void 0===a?void 0:a.complete)&&(E(),null==t||null===(b=t.onLoad)|| void 0===b||b.call(t,{status:"alreadyLoaded"}))},[y,t,E]),H=(0,e.useCallback)(function(){if(B){var a=null!=h?h:r;if(void 0!==a)return(0,i.Qb)({url:c,w:a,h:null!=k?k:s,c:l})}},[B,h,r,k,s,c,l])(),I=(0,e.useCallback)(function(a,b,c){if(void 0===c)return a;var d=a.includes("?")?"&":"?";return"".concat(a).concat(d).concat(b,"=").concat(c)},[]);return((0,e.useEffect)(function(){if(v.current){var a=v.current.querySelector("img");a&&w(a)}},[w,c]),(0,e.useEffect)(function(){C(!0),G()},[]),B&&c)?(0,d.jsx)(g.xuv,{position:"relative",width:"100%",height:"100%",children:(0,d.jsx)(p,function(a){for(var b=1;ba.length)&&(b=a.length);for(var c=0,d=Array(b);c0?"N":"SD",notiOfStockYn:b.notiOfStockYn,isLast:!!b.gdsUnitInfo,maxAmount:null===(g=b.gdsUnitInfo)|| void 0===g?void 0:g.stockQty,unitNo:null===(h=b.gdsUnitInfo)|| void 0===h?void 0:h.unitNo,unitNm:null===(j=b.gdsUnitInfo)|| void 0===j?void 0:j.unitNm,unitImageUrl:null===(k=b.gdsUnitInfo)|| void 0===k?void 0:k.imgUrl,filterNm:"".concat(a.optTitle,": ").concat(b.optArtiNm),price:b.gdsUnitInfo?{normalPrice:b.gdsUnitInfo.normalSalePrc,dcPrice:b.gdsUnitInfo.dcPrc,couponPrice:b.gdsUnitInfo.couponPrc,dcRate:b.gdsUnitInfo.dcRate,unitPrice:b.gdsUnitInfo.unitAddPrc}:void 0,optionFlagInfo:b.optionFlagInfo,nextOptionList:[]};l?(l.nextOptionList||(l.nextOptionList=[]),l.nextOptionList.push(m)):c.push(m),b.optionDepth&&f(b.optionDepth,c,q(d).concat([b.optArtiSeq]))},d={},!(null===(c=a.data)|| void 0===c?void 0:c.optionInfo)){b.next=20;break}j=[],f(null===(h=a.data)|| void 0===h?void 0:h.optionInfo,j,[]),d.optionTree=j,k=[],l=j;case 13:if(!(l&&l.length>0)){b.next=17;break}k.push({titleSeq:l[0].titleSeq,titleNm:l[0].titleNm,items:l.map(function(a){return a})}),l=l[0].nextOptionList,b.next=18;break;case 17:return b.abrupt("break",19);case 18:if(l){b.next=13;break}case 19:d.optionList=k;case 20:return b.abrupt("return",d);case 21:case"end":return b.stop()}},b)}))()},b.dispatchAdditionInfo=function(a){return l(e().mark(function b(){var c,d,f,g,h;return e().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return g={},h=(null===(c=a.data)|| void 0===c?void 0:c.additionGdsInfos)||[],g.hasAdditionGoods=h.length>0,g.isNecessaryAddition=null===(d=a.data)|| void 0===d?void 0:d.additionGdsNecessaryYn,g.additionGdsTitleText=null===(f=a.data)|| void 0===f?void 0:f.additionGdsTitleText,g.additionGoods=h.map(function(a){return{gdsNo:a.connGdsNo,gdsNm:a.gdsNm,brandNm:a.brandNm,isNecessaryAddition:a.necessaryYn,isBlind:a.gdsBlindYn,gdsStatCd:a.gdsStatCd,price:{normalPrice:a.normalSalePrc,dcPrice:a.dcPrc,couponPrice:a.couponPrc,dcRate:a.dcRate},imgUrl:a.imgUrl,hasOption:a.unitYn,goodsTagInfo:a.goodsTagInfo||[],goodsEvaluationStatInfo:a.goodsEvaluationStatInfo}}),b.abrupt("return",g);case 8:case"end":return b.stop()}},b)}))()},b.dispatchBlindInfo=function(a){return l(e().mark(function b(){var c,d,f;return e().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return(f={}).isBlind=null===(c=a.data)|| void 0===c?void 0:c.gdsBlindYn,f.blindConfig=null===(d=a.data)|| void 0===d?void 0:d.blindConfig,b.abrupt("return",f);case 5:case"end":return b.stop()}},b)}))()},b.dispatchCurtainInfo=function(a){return l(e().mark(function b(){var c,d,f,g;return e().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return(g={}).isCurtain=!!(null===(c=a.data)|| void 0===c?void 0:c.curtainCalcCd),g.curtainCalcCd=null===(d=a.data)|| void 0===d?void 0:d.curtainCalcCd,g.curtainConfig={widthMin:50,widthMax:960,heightMin:50,heightMax:250},g.curtainCalcTypeList=(null===(f=a.data)|| void 0===f?void 0:f.curtainCalcTypeInfos)||[],b.abrupt("return",g);case 7:case"end":return b.stop()}},b)}))()},b.dispatchCustomPackageInfo=function(a){return l(e().mark(function b(){var c,d,f,g;return e().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return(f={isCustomPackageGoods:!!(d=null===(c=a.data)|| void 0===c?void 0:c.fabricWindowTabInfos)&&d.length>0,customPackageItems:[]}).isCustomPackageGoods&&(g=function(a){var b=[];if(a.amountInfo){var c={configCd:"amount",configNm:"수량",config:{buttons:a.amountInfo.buttonInfos||[],options:a.amountInfo.artiInfos||[]}};b.push(c)}if(a.shapeInfo){var d,e={configCd:"shape",configNm:"창문",config:{buttons:a.shapeInfo.buttonInfos||[],options:a.shapeInfo.artiInfos||[],amountButtons:(null===(d=a.amountInfo)|| void 0===d?void 0:d.buttonInfos)||[]}};b.push(e)}if(a.sizeInfo){var f={configCd:"size",configNm:"사이즈",config:{options:a.sizeInfo.artiInfos||[]}};b.push(f)}if(a.colorInfo){var g={configCd:"color",configNm:"색상",config:{options:a.colorInfo.artiInfos||[]}};b.push(g)}if(a.handleInfo){var h={configCd:"handle",configNm:"손잡이",config:{options:a.handleInfo.artiInfos||[]}};b.push(h)}return b},f.customPackageItems=d.map(function(a){var b={gdsTypeCd:a.gdsTypeCd,optTypeCd:a.optTypeCd,optArtiSeq:a.optArtiSeq,optArtiNm:a.optArtiNm,spaces:[]};if(a.livingInfo){var c={spaceNm:"거실",spaceCd:"living",configs:[]};c.configs=g(a.livingInfo),b.spaces.push(c)}if(a.bedRoomInfo){var d={spaceNm:"침실",spaceCd:"bedRoom",configs:[]};d.configs=g(a.bedRoomInfo),b.spaces.push(d)}if(a.firstRoomInfo){var e={spaceNm:"작은방1",spaceCd:"firstRoom",configs:[]};e.configs=g(a.firstRoomInfo),b.spaces.push(e)}if(a.secondRoomInfo){var f={spaceNm:"작은방2",spaceCd:"secondRoom",configs:[]};f.configs=g(a.secondRoomInfo),b.spaces.push(f)}return b})),b.abrupt("return",f);case 5:case"end":return b.stop()}},b)}))()},b.exec=function(a){var b=this;return l(e().mark(function c(){var d,f,i;return e().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return f={gdsNo:d=a.gdsNo},c.next=4,new g.Ek(b.httpClient).exec(p(o({},a),{typeValue:"WEB"}));case 4:if(i=c.sent,f.apiResponse=i,200!==i.code){c.next=23;break}return c.next=9,b.dispatchOptionInfo(i);case 9:return f.optionInfo=c.sent,c.next=12,b.dispatchAdditionInfo(i);case 12:return f.additionInfo=c.sent,c.next=15,b.dispatchBlindInfo(i);case 15:return f.blindInfo=c.sent,c.next=18,b.dispatchCurtainInfo(i);case 18:return f.curtainInfo=c.sent,c.next=21,b.dispatchCustomPackageInfo(i);case 21:f.customPackageInfo=c.sent,b.reduxDispatcher&&b.reduxDispatcher((0,h.GM)(f));case 23:return c.abrupt("return",f);case 24:case"end":return c.stop()}},c)}))()},a}(),u=function(){function a(b){m(this,a),this.httpClient=b}return a.prototype.exec=function(a){var b=this;return l(e().mark(function c(){return e().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,new g.N8(b.httpClient).exec(p(o({},a),{typeValue:"WEB"}));case 2:return c.abrupt("return",c.sent);case 3:case"end":return c.stop()}},c)}))()},a}()}}]) //# sourceMappingURL=2785-3121d43b1c51f149.js.map