(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4838],{66592:function(e,t,n){"use strict";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})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(2265)),a=l(n(33312)),s=["scriptUrl","className","style","defaultQuery","autoClose","errorMessage","onComplete","onClose","onResize","onSearch"];function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function l(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!=s&&Object.prototype.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=e[s]}return r.default=e,n&&n.set(e,r),r}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function d(e){for(var t,n=1;nt(!0),"aria-label":"메뉴",children:[(0,o.jsx)("span",{}),(0,o.jsx)("span",{}),(0,o.jsx)("span",{})]}),(0,o.jsx)(s.Z,{open:e,onClose:()=>t(!1),name:null==n?void 0:n.name})]})}let c=a.ZP.button.withConfig({componentId:"sc-8de9c693-0"})(["display:none;@media (max-width:500px){display:inline-flex;flex:0 0 auto;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:32px;height:32px;border:0;background:transparent;cursor:pointer;span{width:18px;height:2px;border-radius:2px;background:#2b2930;}}html.su-plugin &{display:none !important;}"])},47462:function(e,t,n){"use strict";n.d(t,{Z:function(){return s},p:function(){return i}});var o=n(57437);n(2265);var r=n(37485),a=n.n(r);function s(e){let{telHref:t,telLabel:n="전화 문의",onTel:r,kakaoHref:s,onKakao:i,hidden:l=!1,mobileOnly:c=!1,children:d}=e,u=l?-1:0,p=(0,o.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,o.jsx)("path",{d:"M21 11.5a8.4 8.4 0 0 1-8.5 8.3 8.9 8.9 0 0 1-3.6-.8L3 20.5l1.6-4.4A8.2 8.2 0 0 1 3.5 11.5 8.4 8.4 0 0 1 12 3.2a8.4 8.4 0 0 1 9 8.3z"})});return(0,o.jsxs)("div",{className:"".concat(a().bar," ").concat(c?a().barMobileOnly:""," ").concat(l?a().barHidden:""),"aria-hidden":l||void 0,"data-bottom-bar":l?void 0:"",children:[(0,o.jsx)("a",{className:a().ic,href:t,"aria-label":n,tabIndex:u,onClick:r,children:(0,o.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,o.jsx)("path",{d:"M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z"})})}),s?(0,o.jsx)("a",{className:a().ic,href:s,target:"_blank",rel:"noopener noreferrer nofollow","aria-label":"카카오톡 문의",tabIndex:u,onClick:i,children:p}):(0,o.jsx)("button",{type:"button",className:a().ic,"aria-label":"카카오톡 문의",tabIndex:u,onClick:i,children:p}),d]})}function i(e){let{variant:t="main",href:n,rel:r,onClick:s,tabIndex:i,disabled:l,children:c}=e,d="".concat(a().btn," ").concat("main"===t?a().main:a().ghost);return l?(0,o.jsx)("button",{type:"button",className:d,disabled:!0,"aria-disabled":!0,style:{background:"#d1d5db",color:"#6b7280",borderColor:"#d1d5db",cursor:"not-allowed"},children:c}):n?(0,o.jsx)("a",{className:d,href:n,rel:r,onClick:s,tabIndex:i,children:c}):(0,o.jsx)("button",{type:"button",className:d,onClick:s,tabIndex:i,children:c})}},36892:function(e,t,n){"use strict";n.d(t,{s:function(){return k},default:function(){return v}});var o=n(57437),r=n(2265),a=n(37485),s=n.n(a),i=n(54887),l=n(82918),c=n.n(l),d=n(96776),u=n(45310),p=n(64566);let h=e=>Math.round(e).toLocaleString("ko-KR");function _(e){var t,n;let{kind:a,productId:s,name:l,image:_,onClose:f,onCart:b,onGo:m,initial:y}=e,j="buy"!==a,[g,x]=(0,r.useState)(!1),[v,k]=(0,r.useState)(null!==(t=null==y?void 0:y.size)&&void 0!==t?t:null),[w,S]=(0,r.useState)(y&&y.qty>0?y.qty:1),[O,C]=(0,r.useState)(y&&y.areaM2>0?String(y.areaM2):""),[N,M]=(0,r.useState)("m2"),[P,L]=(0,r.useState)((null==y?void 0:y.lossRate)?String(y.lossRate):"0"),[R,E]=(0,r.useState)(null),[q,I]=(0,r.useState)(!0),[T,z]=(0,r.useState)(""),A=(0,r.useRef)(0);(0,r.useEffect)(()=>{let e=document.body.style.overflow;document.body.style.overflow="hidden";let t=e=>"Escape"===e.key&&f();return document.addEventListener("keydown",t),()=>{document.body.style.overflow=e,document.removeEventListener("keydown",t)}},[f]);let D=(0,p._e)(O,N),B=Number(P)||0;(0,r.useEffect)(()=>{let e=++A.current;I(!0);let t=setTimeout(async()=>{try{let t=await (0,d.jV)("buy"===a?{productId:s,size:v,areaM2:D,lossRate:B,qty:w||(D>0?null:1)}:{productId:s,size:v,areaM2:D,qty:D>0?null:1});if(e!==A.current)return;E(t),z("")}catch(t){e===A.current&&z((0,d.hw)(t))}finally{e===A.current&&I(!1)}},250);return()=>clearTimeout(t)},[a,s,v,w,D,B]);let U=null!==(n=null==R?void 0:R.sizeOptions)&&void 0!==n?n:[],H=U.length>1&&!v,Z=R&&"BUY"===R.mode?R:null,Q=Z?Z.unitLabel:"",Y=Z&&"M2"!==Z.saleUnit&&"EA"!==Z.saleUnit&&Z.unitAreaM2>0?"1".concat(Z.unitLabel," = ").concat(Z.unitAreaM2,"㎡").concat(Z.qty>1?" \xb7 총 ".concat(Z.coveredAreaM2.toLocaleString("ko-KR"),"㎡"):""):"",W=Z?Z.qty:w||1,K=!!Z&&"buy"===a&&D>0&&Z.qty{var e;return{size:null!==(e=null!=v?v:null==R?void 0:R.size)&&void 0!==e?e:null,qty:"buy"===a?W:0,areaM2:G?0:D,lossRate:"buy"!==a||F||G?0:B}},X=(e,t)=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:c().area,children:[(0,o.jsx)("input",{inputMode:"decimal",value:O,onChange:e=>{null==t||t(),C((0,p.JQ)(e.target.value))},placeholder:e,"aria-label":"시공 면적(".concat("py"===N?"평":"㎡",")")}),(0,o.jsx)("span",{className:c().unit,role:"group","aria-label":"면적 단위",children:["m2","py"].map(e=>(0,o.jsx)("button",{type:"button","aria-pressed":N===e,className:N===e?c().unitOn:void 0,onClick:t=>{t.preventDefault(),N!==e&&(C((0,p.hX)(O,N,e)),M(e))},children:"m2"===e?"㎡":"평"},e))})]}),"py"===N&&D>0?(0,o.jsxs)("small",{className:c().conv,children:["= ",D.toLocaleString("ko-KR"),"㎡"]}):null]});return"undefined"==typeof document?null:(0,i.createPortal)((0,o.jsx)("div",{className:c().dim,onClick:f,children:(0,o.jsxs)("div",{className:c().sheet,role:"dialog","aria-label":"buy"===a?"구매 옵션 선택":"자재\xb7시공문의 옵션 선택",onClick:e=>e.stopPropagation(),children:[(0,o.jsx)("div",{className:c().grip,"aria-hidden":!0}),(0,o.jsxs)("div",{className:c().body,children:[(0,o.jsxs)("div",{className:c().prod,children:[_?(0,o.jsx)("img",{src:_,alt:"",width:56,height:56}):null,(0,o.jsx)("b",{children:l})]}),U.length>1?(0,o.jsxs)("label",{className:c().field,children:[(0,o.jsxs)("span",{children:[G?"옵션 선택":"규격 선택"," ",(0,o.jsx)("em",{children:"(필수)"})]}),(0,o.jsxs)("select",{value:null!=v?v:"",onChange:e=>k(e.target.value||null),children:[(0,o.jsx)("option",{value:"",children:G?"옵션을 선택해 주세요":"규격을 선택해 주세요"}),U.map(e=>(0,o.jsxs)("option",{value:e.size,children:[(0,u.ql)(e.size),e.unitTotal&&e.unitTotal>0&&e.unitLabel&&"㎡"!==e.unitLabel?" \xb7 ".concat(h(e.unitTotal),"원/1").concat(e.unitLabel):""]},e.size))]})]}):(null==R?void 0:R.size)?(0,o.jsxs)("p",{className:c().fixed,children:[(0,o.jsx)("span",{children:G?"옵션":"규격"}),(0,u.ql)(R.size)]}):null,"buy"===a?(0,o.jsxs)(o.Fragment,{children:[G?null:(0,o.jsxs)("div",{className:c().areaRow,children:[(0,o.jsxs)("label",{className:c().field,children:[(0,o.jsxs)("span",{children:["시공 면적 ",(0,o.jsx)("small",{className:c().opt,children:"(선택)"})]}),X("0",()=>S(0))]}),F?null:(0,o.jsxs)("label",{className:"".concat(c().field," ").concat(c().lossField),children:[(0,o.jsx)("span",{children:"로스율"}),(0,o.jsxs)("div",{className:c().area,children:[(0,o.jsx)("input",{inputMode:"decimal",value:P,onChange:e=>{S(0),L(e.target.value.replace(/[^\d.]/g,"").slice(0,4))},"aria-label":"로스율(%)"}),(0,o.jsx)("i",{children:"%"})]})]})]}),(0,o.jsxs)("div",{className:c().field,children:[(0,o.jsxs)("span",{children:["수량",D>0&&Z&&!G?(0,o.jsx)("small",{className:c().opt,children:Z.qty===Z.calcQty?" (면적 기준 자동 계산)":" (면적 기준 권장 ".concat(Z.calcQty.toLocaleString("ko-KR")).concat(Z.unitLabel,")")}):null]}),(0,o.jsxs)("div",{className:c().stepper,children:[(0,o.jsx)("button",{type:"button",onClick:()=>S(Math.max(1,W-1)),disabled:W<=1,"aria-label":"수량 줄이기",children:"−"}),(0,o.jsx)("input",{inputMode:"numeric",value:W,onChange:e=>S(Math.max(1,Math.min(9999,Number(e.target.value.replace(/\D/g,""))||1))),"aria-label":"수량"}),(0,o.jsx)("button",{type:"button",onClick:()=>S(Math.min(9999,W+1)),"aria-label":"수량 늘리기",children:"+"}),Q?(0,o.jsx)("i",{children:Q}):null,Y?(0,o.jsx)("small",{children:Y}):null]}),K&&Z?(0,o.jsxs)("p",{className:c().short,role:"status",children:["입력하신 면적에는 ",Z.calcQty.toLocaleString("ko-KR"),Z.unitLabel,"가 필요합니다. 지금 수량으로는 부족할 수 있어요.",(0,o.jsx)("button",{type:"button",onClick:()=>S(0),children:"권장 수량으로"})]}):null]})]}):(0,o.jsxs)("label",{className:c().field,children:[(0,o.jsxs)("span",{children:["면적 ",(0,o.jsx)("small",{className:c().opt,children:"(시공 또는 필요 면적)"})]}),X("모르면 비워 두세요")]}),(0,o.jsx)("div",{className:c().total,children:T?(0,o.jsx)("p",{className:c().err,children:T}):H?(0,o.jsx)("p",{className:c().hint,children:"규격을 고르면 금액이 나옵니다."}):Z?(0,o.jsxs)("div",{className:"".concat(c().sum).concat(q?" ".concat(c().dimmed):""),children:[j?(0,o.jsx)("p",{children:D>0?"자재 예상 금액 (".concat(Z.qty.toLocaleString("ko-KR")).concat(Z.unitLabel,")"):"자재 금액 (1".concat(Z.unitLabel," 기준)")}):null,(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{children:"공급가"}),(0,o.jsxs)("b",{children:[h(Z.subtotal),"원"]})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{children:"부가세"}),(0,o.jsxs)("b",{children:[h(Z.vat),"원"]})]}),(0,o.jsxs)("div",{className:c().sumTotal,children:[(0,o.jsx)("span",{children:"합계"}),(0,o.jsxs)("strong",{children:[h(Z.total),"원"]})]}),j?(0,o.jsx)("small",{children:"시공비\xb7배송비는 상담 후 안내드립니다."}):null]}):q?(0,o.jsx)("p",{className:c().hint,children:"금액을 확인하는 중…"}):(0,o.jsx)("p",{className:c().hint,children:j?"가격은 문의 접수 후 안내드립니다.":"이 제품은 온라인 구매가 어려워 자재\xb7시공문의로 안내드립니다."})})]}),"buy"===a?(0,o.jsxs)("div",{className:c().foot,children:[(0,o.jsxs)("button",{type:"button",className:c().cart,disabled:!V,onClick:()=>b(J(),"buy"),children:[(0,o.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,o.jsx)("path",{d:"M6 8h12l-1 12H7L6 8z"}),(0,o.jsx)("path",{d:"M9 8V6a3 3 0 0 1 6 0v2"})]}),"장바구니"]}),(0,o.jsx)("button",{type:"button",className:c().go,disabled:!V,onClick:()=>m(J(),"buy"),children:"바로구매"})]}):g?(0,o.jsxs)("div",{className:"".concat(c().foot," ").concat(c().pick),role:"group","aria-label":"담을 문의 종류",children:[(0,o.jsx)("span",{children:"어떤 문의로 담을까요?"}),(0,o.jsx)("button",{type:"button",className:c().cart,onClick:()=>b(J(),"material"),children:"자재 문의로 담기"}),(0,o.jsx)("button",{type:"button",className:c().cart,onClick:()=>b(J(),"build"),children:"시공 문의로 담기"}),(0,o.jsx)("button",{type:"button",className:c().pickX,onClick:()=>x(!1),"aria-label":"담기 취소",children:"✕"})]}):(0,o.jsxs)("div",{className:"".concat(c().foot," ").concat(c().foot3),children:[(0,o.jsxs)("button",{type:"button",className:c().cart,disabled:!V,onClick:()=>x(!0),children:[(0,o.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,o.jsx)("path",{d:"M6 8h12l-1 12H7L6 8z"}),(0,o.jsx)("path",{d:"M9 8V6a3 3 0 0 1 6 0v2"})]}),"장바구니"]}),(0,o.jsx)("button",{type:"button",className:c().go2,disabled:!V,onClick:()=>m(J(),"material"),children:"자재문의"}),(0,o.jsx)("button",{type:"button",className:c().go,disabled:!V,onClick:()=>m(J(),"build"),children:"시공문의"})]})]})}),document.body)}var f=n(47462),b=n(2450),m=n(56621),y=n(7669),j=n(29918),g=n(75470),x=n(58889);function v(e){let{product:t,contact:n}=e,a=(0,m.h)(),[s,i]=(0,r.useState)(null),[l,c]=(0,r.useState)(null),[u,p]=(0,r.useState)(!1),[h,v]=(0,r.useState)(null);(0,b.kx)(c,t.id);let[k,w]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=!0;return(0,g.Nh)([t.id]).then(n=>{var o;return e&&w((null===(o=n[t.id])||void 0===o?void 0:o.status)==="discontinued")}),()=>{e=!1}},[t.id]),(0,r.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("src");(0,y.K$)(e?void 0:"?src=pdp"),(0,y.cS)(d.I4),(0,d.Fl)({kind:"VIEW",productId:t.id});let n=new URLSearchParams(window.location.search).get("via");n&&/^[a-z0-9_-]{1,32}$/.test(n)&&j.Wg.post("/product/view",{productId:t.id,source:n}).catch(()=>void 0)},[t.id]);let S={productId:t.id,name:t.name,image:t.image,category:t.category,subCategory:t.subCategory},O=e=>t=>{t.preventDefault(),v(null),i(e)},C=(0,r.useCallback)(()=>i(null),[]),N=(0,r.useCallback)(()=>p(!1),[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(f.Z,{telHref:n.tel,telLabel:"전화 문의 ".concat(n.telText),kakaoHref:n.kakao,onTel:()=>(0,x.p8)("TEL_MOBILE","pdp_bar",t.id),onKakao:()=>(0,x.p8)("KAKAO","pdp_bar",t.id),children:[(0,o.jsx)(f.p,{variant:"ghost",href:"/home/?pid=".concat(t.id,"&inquiry=1&src=pdp"),rel:"nofollow",onClick:O("inquiry"),children:"자재\xb7시공문의"}),t.paid&&k?(0,o.jsx)(f.p,{variant:"main",disabled:!0,children:"단종\xb7재고확인"}):t.paid?(0,o.jsx)(f.p,{variant:"main",href:"/home/?pid=".concat(t.id,"&buy=1&src=pdp"),rel:"nofollow",onClick:O("buy"),children:"구매하기"}):null]}),s&&!(k&&"buy"===s)?(0,o.jsx)(_,{kind:s,productId:t.id,name:t.name,image:t.image,onClose:C,onCart:(e,n)=>{a.add({kind:n,...S,brand:t.brand,size:e.size,qty:e.qty,areaM2:e.areaM2,lossRate:e.areaM2>0?e.lossRate:0}),i(null),p(!0)},onGo:(e,t)=>{c({kind:t,...S,size:e.size,qty:e.qty,areaM2:e.areaM2,lossRate:e.lossRate}),i(null)},initial:h}):null,(0,o.jsx)(b.ZP,{target:l,onClose:()=>c(null),onEditQty:e=>{v({size:e.size,qty:e.qty,areaM2:e.areaM2,lossRate:e.lossRate}),c(null),i("buy")}}),(0,o.jsx)(b.U8,{show:u,onDone:N})]})}function k(){let{count:e}=(0,m.h)();return(0,o.jsxs)("a",{className:s().cartLink,href:"/shop/cart/","aria-label":"장바구니".concat(e?" ".concat(e,"개"):""),children:[(0,o.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,o.jsx)("path",{d:"M6 8h12l-1 12H7L6 8z"}),(0,o.jsx)("path",{d:"M9 8V6a3 3 0 0 1 6 0v2"})]}),e?(0,o.jsx)("b",{children:e>99?"99+":e}):null]})}},2450:function(e,t,n){"use strict";n.d(t,{U8:function(){return y},ZP:function(){return m},kx:function(){return f}});var o=n(57437),r=n(2265),a=n(54887),s=n(78155),i=n(24159),l=n(47466),c=n(71626),d=n(45310),u=n(37485),p=n.n(u);let h="mcd_shop_pending",_=()=>{try{return!!localStorage.getItem("TOKEN")}catch(e){return!1}};function f(e,t){(0,r.useEffect)(()=>{try{let n=sessionStorage.getItem(h);if(!n)return;let o=JSON.parse(n);if(!(null==o?void 0:o.target)||Date.now()-o.at>18e5){sessionStorage.removeItem(h);return}if(t&&o.target.productId!==t)return;sessionStorage.removeItem(h),_()&&e({...o.target,skipGate:!0})}catch(e){}},[])}function b(e){let{target:t,onGuest:n,onClose:s}=e;return((0,r.useEffect)(()=>{let e=document.body.style.overflow;document.body.style.overflow="hidden";let t=e=>"Escape"===e.key&&s();return document.addEventListener("keydown",t),()=>{document.body.style.overflow=e,document.removeEventListener("keydown",t)}},[s]),"undefined"==typeof document)?null:(0,a.createPortal)((0,o.jsx)("div",{className:p().gateDim,onClick:s,children:(0,o.jsxs)("div",{className:p().gate,role:"dialog","aria-label":"주문 방법 선택",onClick:e=>e.stopPropagation(),children:[(0,o.jsx)("div",{className:p().gateGrip,"aria-hidden":!0}),(0,o.jsx)("b",{children:"어떻게 주문하시겠어요?"}),(0,o.jsx)("p",{children:"로그인하면 주문자 정보가 자동으로 채워지고, 주문 내역을 한곳에서 볼 수 있어요."}),(0,o.jsx)("button",{type:"button",className:p().gateLogin,onClick:()=>{try{sessionStorage.setItem(h,JSON.stringify({at:Date.now(),target:t}))}catch(e){}let e=window.location.pathname+window.location.search;window.location.href="/login/?returnTo=".concat(encodeURIComponent(e))},children:"로그인하고 구매"}),(0,o.jsx)("button",{type:"button",className:p().gateGuest,onClick:n,children:"비회원으로 구매"}),(0,o.jsx)("small",{children:"비회원 주문은 주문번호와 연락처로 조회할 수 있어요."})]})}),document.body)}function m(e){var t,n;let{target:a,onClose:u,onEditQty:h}=e,[f,m]=(0,r.useState)(null),[y,j]=(0,r.useState)(!1);if(!a)return null;if("buy"===a.kind)return a.skipGate||f===a||_()?(0,o.jsx)(i.Z,{isOpen:!0,onClose:u,productId:a.productId,productName:a.name,image:a.image,size:a.size,defaultQty:a.qty,defaultAreaM2:a.areaM2>0?a.areaM2:void 0,defaultLossRate:a.lossRate,qtyLocked:!0,onEditQty:()=>h?h(a):u(),extraItems:(null!==(t=a.extra)&&void 0!==t?t:[]).map(e=>({productId:e.productId,size:e.size,qty:e.qty,name:e.name,image:e.image,areaM2:e.areaM2,lossRate:e.lossRate})),onPaid:a.onDone}):(0,o.jsx)(b,{target:a,onGuest:()=>m(a),onClose:u});let g="material"===a.kind;if(y){let e=()=>{var e;j(!1),null===(e=a.onDone)||void 0===e||e.call(a),u()};return(0,o.jsx)(s.Z,{onClose:e,containerWidth:"420px",mobileSheet:!0,innerClose:!0,children:(0,o.jsxs)("div",{className:p().sent,role:"status",children:[(0,o.jsx)("i",{"aria-hidden":!0,children:"✓"}),(0,o.jsx)("b",{children:g?"자재 문의가 접수되었습니다":"시공 견적 문의가 접수되었습니다"}),(0,o.jsxs)("p",{children:["담당 매니저가 ",(0,o.jsx)("strong",{children:"접수 순서대로 연락"}),"드리겠습니다."]}),(0,o.jsx)("span",{children:"로그인한 상태로 접수하셨다면, 메뉴의 ‘주문\xb7문의 내역’에서 접수 내역을 확인할 수 있습니다."}),(0,o.jsx)("button",{type:"button",onClick:e,children:"확인"})]})})}let x=[a,...null!==(n=a.extra)&&void 0!==n?n:[]],v=x.length>1,k=v?x.map(e=>({productId:e.productId,name:e.name,quantityM2:e.areaM2})):void 0,w=Math.round(100*x.reduce((e,t)=>e+(t.areaM2||0),0))/100,S=[a.size?(0,d.ql)(a.size):"",a.areaM2>0?"".concat(g?"필요":"시공"," 면적 ").concat(a.areaM2,"㎡"):""].filter(Boolean).join(" \xb7 ");return(0,o.jsx)(s.Z,{onClose:u,containerWidth:"480px",mobileSheet:!0,innerClose:!0,children:(0,o.jsx)("div",{className:p().inquiry,children:(0,o.jsx)(l.Z,{plain:!0,title:g?"자재 문의":"시공 견적 문의",subtitle:g?v?"담은 제품의 자재 공급 가격\xb7납기를 안내드립니다.":"이 제품의 자재 공급 가격\xb7납기를 안내드립니다.":v?"담은 제품 포함 자재+시공 통합 견적을 보내드립니다.":"이 제품 포함 자재+시공 통합 견적을 보내드립니다.",submitLabel:g?"자재 문의하기 →":"시공 견적 문의하기 →",successMsg:g?"\uD83C\uDF89 자재 문의 접수 완료\n\uD83D\uDCE9 담당 매니저가 접수 순서대로 연락드립니다":"\uD83C\uDF89 시공 견적 문의 접수 완료\n\uD83D\uDCE9 담당 매니저가 공종별 시공팀 확인 후 연락드립니다",inquiryKind:g?"material":"build",autoTrades:[(0,c.LV)(a.category,a.subCategory)],buttonFeedback:!0,hideUpload:!0,hideBudget:!0,productName:v?void 0:a.name,productId:v?void 0:a.productId,quoteItems:k,areaOptional:!0,siteAddress:!0,onSubmitted:()=>j(!0),productCategory:a.category,productSubCategory:a.subCategory,productSize:S||void 0,defaultAreaM2:a.areaM2>0?a.areaM2:void 0,inquirySource:"제품지정",uploadSlot:v?(0,o.jsxs)("div",{className:p().inqList,children:[(0,o.jsxs)("b",{children:["문의 제품 ",x.length,"건 ",w>0?(0,o.jsxs)("em",{children:["총 ",w,"㎡"]}):null]}),x.map(e=>{var t;return(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{children:e.name}),(0,o.jsx)("i",{children:e.areaM2>0?"".concat(e.areaM2,"㎡"):"면적 미정"})]},"".concat(e.productId,":").concat(null!==(t=e.size)&&void 0!==t?t:""))})]}):(0,o.jsxs)("div",{className:p().inqCard,children:[a.image?(0,o.jsx)("img",{src:a.image,alt:"",width:56,height:56}):null,(0,o.jsxs)("div",{children:[(0,o.jsx)("b",{children:a.name}),S?(0,o.jsx)("span",{children:S}):null]})]})})})})}function y(e){let{show:t,onDone:n}=e,[a,s]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{if(!t)return;s(!0);let e=setTimeout(()=>{s(!1),n()},2600);return()=>clearTimeout(e)},[t,n]),a)?(0,o.jsxs)("div",{className:p().toast,role:"status",children:["장바구니에 담았습니다",(0,o.jsx)("a",{href:"/shop/cart/",children:"보기"})]}):null}},5318:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var o=n(57437),r=n(2265),a=n(54138),s=n(70276),i=n(49842),l=n.n(i),c=n(24178),d=n(43971),u=n.n(d);let p=()=>Math.max(window.scrollY||0,document.documentElement.scrollTop||0,document.body.scrollTop||0);function h(){let[e,t]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{let e=0,n=()=>{e||(e=requestAnimationFrame(()=>{e=0,t(p()>600)}))};return document.addEventListener("scroll",n,{capture:!0,passive:!0}),n(),()=>{document.removeEventListener("scroll",n,{capture:!0}),e&&cancelAnimationFrame(e)}},[]),e)?(0,o.jsx)("button",{type:"button",className:u().btn,onClick:()=>{for(let e of[document.scrollingElement,document.documentElement,document.body])null==e||e.scrollTo({top:0,behavior:"smooth"});window.scrollTo({top:0,behavior:"smooth"})},"aria-label":"맨 위로",children:(0,o.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,o.jsx)("path",{d:"M12 19V5M5 12l7-7 7 7"})})}):null}var _=n(36892);function f(e){let{nav:t=!0,sticky:n=!0}=e;return(0,o.jsxs)("header",{className:"".concat(l().wrap," ").concat(n?"":l().wrapStatic),"data-shop-header":!0,children:[(0,o.jsxs)("div",{className:l().row,children:[(0,o.jsx)(a.Z,{}),(0,o.jsxs)("a",{className:l().brand,href:"/","aria-label":"마코디 홈",children:[(0,o.jsx)(s.Z,{size:27}),(0,o.jsx)("b",{children:"마코디"})]}),(0,o.jsxs)("span",{className:l().right,children:[(0,o.jsx)("a",{className:l().icon,href:"/shop/search/","aria-label":"자재 검색",children:(0,o.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":!0,children:[(0,o.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,o.jsx)("path",{d:"M20 20l-3.5-3.5"})]})}),(0,o.jsx)(_.s,{})]})]}),t?(0,o.jsx)(c.Z,{}):null,(0,o.jsx)(h,{})]})}},24178:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var o=n(57437);n(2265);var r=n(27648),a=n(99376),s=n(49842),i=n.n(s),l=n(87739);function c(e){var t;let{mobileOnly:n=!1,spa:s=!1}=e,c=null!==(t=(0,a.usePathname)())&&void 0!==t?t:"/";return(0,o.jsx)("nav",{className:"".concat(i().nav," ").concat(n?i().navMobileOnly:""),"aria-label":"주요 메뉴",children:l.kx.map(e=>{let t=e.match(c)?i().navOn:void 0;return s&&!e.href.startsWith("/shop")?(0,o.jsx)(r.default,{href:e.href,className:t,children:e.label},e.href):(0,o.jsx)("a",{href:e.href,className:t,children:e.label},e.href)})})}},82918:function(e){e.exports={dim:"optionSheet_dim__Uexf6",sheet:"optionSheet_sheet__Cl93s",optUp:"optionSheet_optUp___Ct3S",grip:"optionSheet_grip__gKpYA",body:"optionSheet_body__i4MkA",prod:"optionSheet_prod__9N_Wr",field:"optionSheet_field__x_02v",fixed:"optionSheet_fixed__wjdWw",stepper:"optionSheet_stepper__nHF7_",area:"optionSheet_area__RMBA_",total:"optionSheet_total__u2m28",dimmed:"optionSheet_dimmed__7iKGq",hint:"optionSheet_hint__8OOC1",err:"optionSheet_err__WZW__",foot:"optionSheet_foot__uc8gs",cart:"optionSheet_cart__TqrY8",go:"optionSheet_go__cmRUC",go2:"optionSheet_go2__IPYds",foot3:"optionSheet_foot3__6qO_8",pick:"optionSheet_pick__wcaHb",pickX:"optionSheet_pickX__YU2hz",areaRow:"optionSheet_areaRow__zq11A",lossField:"optionSheet_lossField__f_XwM",opt:"optionSheet_opt__7yLXN",unit:"optionSheet_unit__UfQlo",unitOn:"optionSheet_unitOn__sngXY",conv:"optionSheet_conv__EIzna",short:"optionSheet_short__fikj8",sum:"optionSheet_sum__sN9UC",sumTotal:"optionSheet_sumTotal___CBP3"}},37485:function(e){e.exports={bar:"productActions_bar__w6aBw",barMobileOnly:"productActions_barMobileOnly__tpyGF",barHidden:"productActions_barHidden__6HzBZ",ic:"productActions_ic__2c9bK",btn:"productActions_btn__mQ86v",ghost:"productActions_ghost__LHfKn",main:"productActions_main__aKZ8m",cartLink:"productActions_cartLink__ZZY8G",toast:"productActions_toast__GPfo2",toastIn:"productActions_toastIn__f3yYR",inquiry:"productActions_inquiry__TEYi7",inqCard:"productActions_inqCard__Tlqbs",gateDim:"productActions_gateDim__HSJNt",gate:"productActions_gate__VHDBI",gateUp:"productActions_gateUp__qVagh",gateGrip:"productActions_gateGrip__pBo50",gateLogin:"productActions_gateLogin__Rlb4K",gateGuest:"productActions_gateGuest__aB_9r",inqList:"productActions_inqList__gZhV_",sent:"productActions_sent__E3GV_"}},43971:function(e){e.exports={btn:"scrollTop_btn__IFx8S"}},17540:function(e){e.exports={page:"shop_page__zOke5",titleRow:"shop_titleRow__wZP7Q",top:"shop_top__JMSmj",title:"shop_title__g_UVN",logo:"shop_logo__4x1AX",icBtn:"shop_icBtn____v6j",searchBox:"shop_searchBox__K9giv",cats:"shop_cats__Qhbin",catImg:"shop_catImg__kwAkx",catName:"shop_catName__4_YqR",catCnt:"shop_catCnt__58Cdd",relRow:"shop_relRow___gGpa",chips:"shop_chips__5LXS0",tabs:"shop_tabs__u5QfN",chip:"shop_chip__0G7a_",chipOn:"shop_chipOn__PYrwf",chipSep:"shop_chipSep__Jd4Ln",tab:"shop_tab__BcpV_",tabOn:"shop_tabOn__PBj9r",sortRow:"shop_sortRow__1QUHI",total:"shop_total__xp32k",sortSel:"shop_sortSel__9x0PS",sep:"shop_sep__yllYu",viewBtn:"shop_viewBtn__LQIcD",grid:"shop_grid__pO9zq",card:"shop_card__PTyaT",thumb:"shop_thumb__DCgkx",badgeNew:"shop_badgeNew__FsnWq",badgeHq:"shop_badgeHq__teHJO",badgeReady:"shop_badgeReady__Q60UY",meta:"shop_meta__T5xk8",brand:"shop_brand__S9oc0",pname:"shop_pname__7HPjz",priceRow:"shop_priceRow__IYePA",ask:"shop_ask__1vCHw",g2:"shop_g2__UuBCO",list:"shop_list__YN70M",pct:"shop_pct__Y38Vn",g3:"shop_g3__KylYF",empty:"shop_empty__NRk7X",loading:"shop_loading__WS9G5",sentinel:"shop_sentinel__42Sp2",seg:"shop_seg__YpOuj",segOn:"shop_segOn__mGXt8",segNote:"shop_segNote__Sfdzq",rank:"shop_rank___2DWn",rankNo:"shop_rankNo__YJYDl",rankTop:"shop_rankTop__QYCM2",badgeHqB:"shop_badgeHqB__TR95e",brIdx:"shop_brIdx__JxbRd",brSec:"shop_brSec__vnlOE",halls:"shop_halls__Jyy7k",hallCover:"shop_hallCover__Q9u1w",hallThumbs:"shop_hallThumbs__gVdqP",hallSub:"shop_hallSub__rFbbo",hallName:"shop_hallName__6ZDC0",bestRow:"shop_bestRow__lokZf",crumb:"shop_crumb__s3QHF",heroes:"shop_heroes__5X5Pe",hot:"shop_hot__Vini2",heroText:"shop_heroText__QJUiD",block:"shop_block__sYH7i",blockTitle:"shop_blockTitle__QyJWR",hotImg:"shop_hotImg__8paXN",finder:"shop_finder___9Bii",finderRow:"shop_finderRow__EEI5U",listTop:"shop_listTop__bcNKV",badgeStock:"shop_badgeStock__qJZ4l",badgeStockB:"shop_badgeStockB__JSxhC",badgeGone:"shop_badgeGone__OUvia",stockQty:"shop_stockQty__QAWZi",dot:"shop_dot__Z0rsx",dotOn:"shop_dotOn__KFDpJ",finderMore:"shop_finderMore__4LPLd",sortFixed:"shop_sortFixed__8NlAt",sortBtn:"shop_sortBtn__TH1KA",filterBtn:"shop_filterBtn__2SRTe",searchBar:"shop_searchBar__6zhdt",searchClear:"shop_searchClear__0TPP4",didYouMean:"shop_didYouMean__vd3cd",brandFind:"shop_brandFind__GBIJU",hallsGap:"shop_hallsGap__TUSDX",hallSlogan:"shop_hallSlogan__anSYp",brandIntro:"shop_brandIntro__kkZ7r",pdesc:"shop_pdesc__D1qbO",priceTag:"shop_priceTag__j27Vd",shipTag:"shop_shipTag__M0Id0"}},49842:function(e){e.exports={wrap:"shopHeader_wrap__9wQY3",wrapStatic:"shopHeader_wrapStatic__oO0dH",row:"shopHeader_row__0HBzz",brand:"shopHeader_brand__jERck",right:"shopHeader_right__aQ_gZ",icon:"shopHeader_icon__0q54w",nav:"shopHeader_nav__Ph_Lw",navOn:"shopHeader_navOn__fcHQU",navMobileOnly:"shopHeader_navMobileOnly__27bSY"}}}]);