"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6816],{29918:function(e,t,n){n.d(t,{Cq:function(){return s},Wg:function(){return u},_n:function(){return o},es:function(){return a},et:function(){return c},oA:function(){return d}});var r=n(83464),l=n(7261);let o="https://api2.macodi.co.kr",u=r.default.create({baseURL:o}),a=r.default.create({baseURL:"https://apiai.macodi.co.kr"}),c=r.default.create({baseURL:o}),s=r.default.create({baseURL:o}),i=()=>{var e;try{if("1"===sessionStorage.getItem("__mcd_su"))return"plugin"}catch(e){}if(window.sketchup||"undefined"!=typeof document&&document.documentElement.classList.contains("su-plugin")||/[?&]su=1/.test((null===(e=window.location)||void 0===e?void 0:e.search)||"")){try{sessionStorage.setItem("__mcd_su","1")}catch(e){}return"plugin"}return"web"};[u,c,s,a].forEach(e=>{e.interceptors.request.use(e=>{var t;return e.headers=null!==(t=e.headers)&&void 0!==t?t:{},e.headers["X-Client-Platform"]=i(),e})}),[c,s].forEach(e=>{e.interceptors.request.use(e=>{let t=localStorage.getItem("TOKEN");if(t){var n;e.headers=null!==(n=e.headers)&&void 0!==n?n:{},e.headers.Authorization="Bearer ".concat(t)}return e})});let d="mcd-expert-only",f=e=>{var t,n;if((null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.status)!==403)return!1;let r=null==e?void 0:null===(n=e.response)||void 0===n?void 0:n.data,l=()=>window.dispatchEvent(new Event(d));try{if("undefined"!=typeof Blob&&r instanceof Blob)return r.text().then(e=>e.includes("EXPERT_ONLY")&&l()).catch(()=>void 0),!1;if(JSON.stringify(null!=r?r:"").includes("EXPERT_ONLY"))return l(),!0}catch(e){}return!1};for(let e of[u,a,s])e.interceptors.response.use(e=>e,e=>(f(e),Promise.reject(e)));c.interceptors.response.use(e=>e,e=>{try{var t,n,r;if(f(e))return Promise.reject(e);if((null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.status)===403){let t=null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(n=r.data)||void 0===n?void 0:n.message;"string"==typeof t&&t&&l.Am.error(t)}}catch(e){}return Promise.reject(e)})},39026:function(e,t,n){n.d(t,{eA:function(){return u}});var r=n(2265);let l="data-modal-content",o=e=>e instanceof Element&&!!e.closest("[".concat(l,"]"));function u(e){let t=(0,r.useRef)(!1),n=(0,r.useCallback)(e=>{t.current=!o(e.target)},[]),u=(0,r.useCallback)(n=>{let r=t.current;t.current=!1,r&&(o(n.target)||null==e||e())},[e]);return{onMouseDown:n,onClick:u,overlayProps:{onMouseDown:n,onClick:u},contentProps:{[l]:!0}}}},58889:function(e,t,n){n.d(t,{Bv:function(){return s},Y5:function(){return c},ZP:function(){return d},p8:function(){return i}});var r=n(2265),l=n(29918),o=n(7663),u=n(60462),a=n(8817);let c="010-9319-1508",s=c;function i(e,t,n){try{let r=(0,u.t)();(0,o.jW)("contact_click",{channel:e,surface:t,platform:r,product_id:null!=n?n:0}),l.Wg.post("/events/contact",{channel:e,surface:t,platform:r,productId:null!=n?n:void 0,visitorKey:(0,a.Q)()}).catch(()=>{})}catch(e){}}function d(){return(0,r.useCallback)(e=>{i("KAKAO",(null==e?void 0:e.surface)||"chat_button",null==e?void 0:e.productId),window.open("https://pf.kakao.com/_xapljG","_blank","noopener,noreferrer")},[])}},37270:function(e,t,n){n.d(t,{JD:function(){return l},nf:function(){return r},oV:function(){return o},uC:function(){return u}});let r=[{slug:"tile",label:"타일",cats:["타일","파벽돌타일"]},{slug:"floor",label:"바닥재",cats:["카펫타일","장판,롤시트,LVS","PVC타일","우드플로링","기능성바닥재","SPC마루","롤카펫"]},{slug:"wall",label:"벽지\xb7벽장재",cats:["벽지","벽장재","루버,템바보드","흡음보드"]},{slug:"film",label:"필름\xb7가구재",cats:["인테리어필름","가구재","무늬목","에칭시트"]},{slug:"stone",label:"석재\xb7인조대리석",cats:["인조대리석","석재"]},{slug:"fabric",label:"패브릭\xb7가죽",cats:["패브릭","인조가죽"]},{slug:"paint",label:"페인트\xb7미장",cats:["페인트","스페셜페인트","미장재"]},{slug:"metal",label:"금속\xb7유리",cats:["금속","메탈메쉬,메탈패브릭","유리,유리블럭","폴리카보네이트"]},{slug:"brick",label:"벽돌\xb7외장",cats:["벽돌,시멘트블록","사이딩판넬","시멘트보드,콘크리트판넬","기와"]},{slug:"ceiling",label:"천장",cats:["텍스","루버천장"]},{slug:"wood",label:"우드",cats:["우드"]},{slug:"switch",label:"스위치\xb7콘센트",cats:["스위치\xb7콘센트"],seo:{title:"스위치\xb7콘센트 구매 — 르그랑\xb7디에스\xb7고네오 매입 스위치 콘센트 가격 비교",desc:"전등 스위치, 매입 콘센트, 통신 단자, 조광기를 르그랑\xb7디에스\xb7나노\xb7보노\xb7고네오 브랜드별, 화이트\xb7블랙\xb7실버\xb7골드 색상별로 비교하고 개당 가격으로 바로 구매하세요."}},{slug:"sanitary",label:"위생기기",cats:["위생기기"],seo:{title:"수전\xb7욕실 악세서리 구매 — 세면대수전\xb7샤워수전\xb7주방수전\xb7비데 가격 비교",desc:"세면대수전, 샤워수전, 주방(싱크대)수전, 비데, 수건걸이\xb7휴지걸이, 배수구를 대림바스\xb7아메리칸스탠다드\xb7에떼르노\xb7트랜드 브랜드별, 크롬\xb7니켈\xb7건메탈\xb7골드 마감별로 비교하고 바로 구매하세요."}},{slug:"doorlock",label:"비디오폰\xb7도어락",cats:["비디오폰\xb7도어락"],seo:{title:"디지털 도어락\xb7비디오폰\xb7인터폰 구매 — 코콤 제품 가격 비교",desc:"코콤 디지털 도어락(푸시풀\xb7주키\xb7보조키), 비디오폰, 인터폰, 로비폰을 모델별로 비교하고 바로 구매하세요."}},{slug:"structure",label:"구조재",cats:["구조재"]},{slug:"appliance",label:"시스템가전",cats:["시스템가전"],seo:{title:"욕실 환풍기\xb7전동 빨래건조대 구매 — 힘펠\xb7하드웰 가격 비교",desc:"힘펠 욕실 환풍기\xb7환기가전, 하드웰 전동 빨래건조대를 모델별로 비교하고 바로 구매하세요."}},{slug:"molding",label:"몰딩\xb7도어",cats:["몰딩\xb7도어"]}];function l(e){let t=new Set(r.flatMap(e=>e.cats));return e.filter(e=>e.id>0&&e.productCount>0&&!t.has(e.name)).sort((e,t)=>e.id-t.id).map(e=>({slug:"c".concat(e.id),label:e.name,cats:[e.name],dynamic:!0}))}let o=[{key:"random",label:"랜덤순"},{key:"latest",label:"최신순"},{key:"recommended",label:"추천순"},{key:"most_viewed",label:"조회순"},{key:"price_asc",label:"낮은 가격순"},{key:"price_desc",label:"높은 가격순"},{key:"discount",label:"할인율순"}],u=e=>e?"recommended":"random"},35775:function(e,t,n){var r=n(86484),l=n(43618),o=n(29918),u=n(89723);t.Z=()=>{(0,l.sJ)(u.Z);let e=localStorage.getItem("TOKEN"),t=async()=>{try{let{data:e}=await o.et.get("/user/me");return e}catch(t){var e;if((null==t?void 0:null===(e=t.response)||void 0===e?void 0:e.status)===401)return null;throw t}},{data:n}=(0,r.useQuery)(["user/me",e],t,{enabled:!!e,retry:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,staleTime:3e5});return null!=n?n:null}},60462:function(e,t,n){n.d(t,{t:function(){return r}});function r(){return document.documentElement.classList.contains("su-plugin")||window.sketchup||(()=>{try{return"1"===sessionStorage.getItem("__mcd_su")}catch(e){return!1}})()?"plugin":/Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent)?"mobile":"desktop"}},7663:function(e,t,n){n.d(t,{jW:function(){return r}});let r=(e,t)=>{try{let n=window.gtag;if("function"!=typeof n)return;n("event",e,null!=t?t:{})}catch(e){}}},8817:function(e,t,n){n.d(t,{Q:function(){return r}});function r(){try{let e=window.localStorage.getItem("mcd_visitor_key");return e&&/^[A-Za-z0-9_-]{8,64}$/.test(e)?e:void 0}catch(e){return}}},89723:function(e,t,n){let r=(0,n(43618).cn)({key:"loginAuth",default:{isLogin:!1,isPhoneAuth:!1}});t.Z=r}}]);