(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2378],{37067:function(t,e,r){Promise.resolve().then(r.bind(r,7362))},40257:function(t,e,r){"use strict";var n,o;t.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(44227)},44227:function(t){!function(){var e={229:function(t){var e,r,n,o=t.exports={};function i(){throw Error("setTimeout has not been defined")}function c(){throw Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:c}catch(t){r=c}}();var u=[],s=!1,l=-1;function f(){s&&n&&(s=!1,n.length?u=n.concat(u):l=-1,u.length&&h())}function h(){if(!s){var t=a(f);s=!0;for(var e=u.length;e;){for(n=u,u=[];++l1)for(var r=1;r{if(!(0,o.IB)()||"/home"!==window.location.pathname.replace(/\/+$/,"")||!window.matchMedia("(max-width: 500px)").matches||window.sketchup||document.documentElement.classList.contains("su-plugin")||/SketchUp/i.test(navigator.userAgent)||new URLSearchParams(window.location.search).has("su")||i.test(navigator.userAgent))return;let t=Number(new URLSearchParams(window.location.search).get("pid"));window.location.replace(Number.isInteger(t)&&t>0?"/product/".concat(t,"/"):"/shop/")},[]),null}},87739:function(t,e,r){"use strict";r.d(e,{IB:function(){return c},kx:function(){return i},rr:function(){return a}});var n=r(2265),o=r(64911);let i=[{label:"마코디홈",href:"/",match:t=>"/"===t},{label:"자재별",href:"/shop/",match:t=>/^\/shop(\/(?!best|brand)|$)/.test(t)},{label:"브랜드별",href:"/shop/brand/",match:t=>t.startsWith("/shop/brand")},{label:"베스트",href:"/shop/best/",match:t=>t.startsWith("/shop/best")},{label:"B2B지원",href:"/home/sketchup/",match:t=>t.startsWith("/home/sketchup")}],c=()=>!(0,o.v)();function a(){let[t,e]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{(0,o.v)()&&e(!1)},[]),t}},64911:function(t,e,r){"use strict";r.d(e,{v:function(){return o}});var n=r(40257);function o(){if("ja"===n.env.NEXT_PUBLIC_LOCALE)return!0;let t=window.location.hostname;if("macodi.net"===t||"www.macodi.net"===t)return!0;try{let t=new URLSearchParams(window.location.search).get("lang");if("ja"===t)return localStorage.setItem("force_ja","1"),!0;if("ko"===t)return localStorage.removeItem("force_ja"),!1;if("1"===localStorage.getItem("force_ja"))return!0}catch(t){}return!1}}},function(t){t.O(0,[2971,2117,1744],function(){return t(t.s=37067)}),_N_E=t.O()}]);