(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{21033:function(e,t,n){Promise.resolve().then(n.bind(n,14888)),Promise.resolve().then(n.bind(n,98087)),Promise.resolve().then(n.bind(n,47239)),Promise.resolve().then(n.t.bind(n,88003,23)),Promise.resolve().then(n.bind(n,7261)),Promise.resolve().then(n.bind(n,43166)),Promise.resolve().then(n.t.bind(n,2778,23)),Promise.resolve().then(n.t.bind(n,2648,23)),Promise.resolve().then(n.bind(n,40873)),Promise.resolve().then(n.bind(n,28741))},63515:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return o},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},o="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43166:function(e,t,n){"use strict";n.d(t,{default:function(){return tq}});var o=n(57437),i=n(86484),r=n(2265),a=n(99376),c=n(43618),l=n(29918),s=n(89723),d=n(73196),u=()=>{var e;let t=(0,c.sJ)(s.Z),n=!!(null!==(e=null==t?void 0:t.isLogin)&&void 0!==e?e:null==t?void 0:t.islogin),o=(0,c.Zl)(d.Z);return(0,r.useEffect)(()=>{if(!n){o({});return}let e=!1;return(async()=>{try{let t=localStorage.getItem("TOKEN");if(!t)return;let n=await l.et.get("/boards",{headers:{Authorization:"Bearer ".concat(t)}});if(e)return;let i=Array.isArray(n.data)?n.data:[],r={};i.forEach(e=>{(Array.isArray(null==e?void 0:e.products)?e.products:[]).forEach(e=>{(null==e?void 0:e.id)!=null&&e.id>0&&(r[Number(e.id)]=!0)})}),o(e=>({...r,...e}))}catch(e){}})(),()=>{e=!0}},[n,o]),null},f=n(32806),p=n(17140),h=n(2132);let m=e=>!0;function g(){return window.sketchup||null}var x=()=>{let e=(0,c.sJ)(s.Z),t=(0,c.Zl)(f.Z),n=(0,c.Zl)(p.Z),o=(0,c.Zl)(h.Z),i=(0,r.useRef)(!1),d=(0,r.useRef)(!1),u=(0,a.usePathname)(),x=(0,a.useRouter)(),w=(0,r.useRef)("/home"),b=(0,r.useRef)(null);null===b.current&&(b.current=window.location.pathname+window.location.search);let[v,y]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(g()){y(!0);return}let e=0,t=window.setInterval(()=>{if(g()){y(!0),window.clearInterval(t);return}++e>80&&window.clearInterval(t)},100);return()=>window.clearInterval(t)},[]),(0,r.useLayoutEffect)(()=>{try{Object.defineProperty(window,"__mcdIsAllowedPath",{configurable:!0,get:()=>()=>!0,set:()=>{}})}catch(e){}try{Object.defineProperty(window,"__mcdOpenExternal",{configurable:!0,get:()=>e=>{try{let t=String(e||"");if(!t||0===t.indexOf("#"))return;window.location.href=0===t.indexOf("/")?window.location.origin+t:t}catch(e){}},set:()=>{}})}catch(e){}},[]),(0,r.useEffect)(()=>(window.__mcdNavigate=e=>{try{let t=String(e||""),n=t;if(/^https?:\/\//i.test(t)){let e=new URL(t);n=e.pathname+e.search}x.push(n)}catch(t){try{window.location.href=e}catch(e){}}},()=>{try{delete window.__mcdNavigate}catch(e){}}),[x]),(0,r.useEffect)(()=>{var e,i,r;let a=g();if(!a||d.current)return;d.current=!0;try{document.documentElement.classList.add("su-plugin")}catch(e){}try{let e=document.querySelector('meta[name="viewport"]');e&&!/width=1500/.test(e.getAttribute("content")||"")&&e.setAttribute("content","width=1500, initial-scale=1")}catch(e){}try{sessionStorage.setItem("__mcd_su","1")}catch(e){}let c=e=>{if(!e)return;let t="";try{t=localStorage.getItem("TOKEN")||""}catch(e){}if(t===e)return;let n="";try{n=sessionStorage.getItem("su:restoreAttempt")||""}catch(e){}if(n===e)return;try{sessionStorage.setItem("su:restoreAttempt",e)}catch(e){}try{localStorage.setItem("TOKEN",e)}catch(e){}l.et.defaults.headers.common.Authorization="Bearer ".concat(e);let o=b.current||window.location.pathname+window.location.search;window.location.replace(window.location.origin+(o&&"/"!==o?o:"/home"))};window.restoreAuth=(e,t)=>c(e),window.restoreToken=e=>c(e);try{null===(e=a.getAuth)||void 0===e||e.call(a)}catch(e){}try{null===(i=a.pageReady)||void 0===i||i.call(a)}catch(e){}window.__mcdCurrentProject=(e,i,r)=>{t((null!=e?e:"").toString()),n((null!=i?i:"").toString()),o((null!=r?r:"").toString())};try{null===(r=a.getCurrentProject)||void 0===r||r.call(a)}catch(e){}let s=new Set;window.__mcdFetchMeta=async e=>{let t=Number(e);if(!(!Number.isFinite(t)||0===t||s.has(t))){s.add(t);try{var n,o,i;let e=await l.Wg.post("/product/meta-map",{ids:[t]}),r=null!==(i=null==e?void 0:e.data)&&void 0!==i?i:{};if(!r||!Object.keys(r).length)return;null===(o=window.sketchup)||void 0===o||null===(n=o.setProductMeta)||void 0===n||n.call(o,JSON.stringify(r))}catch(e){s.delete(t)}}}},[v]),(0,r.useLayoutEffect)(()=>{var e,t,n,o,i;let r=g();if(!r||!u)return;if(m(u)){w.current=u;try{null===(e=(t=window).__mcdHideShield)||void 0===e||e.call(t)}catch(e){}return}try{null===(n=(o=window).__mcdShowShield)||void 0===n||n.call(o)}catch(e){}try{let e=window.location.origin+u,t=window;"function"==typeof t.__mcdOpenExternal?t.__mcdOpenExternal(e):null===(i=r.openExternal)||void 0===i||i.call(r,e)}catch(e){}try{x.replace(w.current||"/home")}catch(e){}let a=window.setTimeout(()=>{try{var e,t;null===(e=(t=window).__mcdHideShield)||void 0===e||e.call(t)}catch(e){}},120);return()=>window.clearTimeout(a)},[u,x]),(0,r.useEffect)(()=>{let t=g();if(t){if(e.isLogin){let e=localStorage.getItem("TOKEN");e&&l.Wg.get("/user/me",{headers:{Authorization:"Bearer ".concat(e)}}).then(n=>{let{data:o}=n;try{var i;null===(i=t.saveAuth)||void 0===i||i.call(t,e,(null==o?void 0:o.name)||"")}catch(e){}}).catch(()=>{try{var n;null===(n=t.saveAuth)||void 0===n||n.call(t,e,"")}catch(e){}})}else if(i.current)try{var n;null===(n=t.clearAuth)||void 0===n||n.call(t)}catch(e){}i.current=e.isLogin}},[e.isLogin,v]),null},w=n(54887),b=n(88862);let v=(0,c.cn)({key:"projectNameModalAtom",default:{isOpen:!1,callbacks:null}});var y=()=>{let{isOpen:e,callbacks:t}=(0,c.sJ)(v),[n,i]=(0,r.useState)(""),a=(0,r.useRef)(null),[l,s]=(0,r.useState)(!1);(0,r.useEffect)(()=>{s(!0)},[]),(0,r.useEffect)(()=>{if(!e)return;let t="";try{t=sessionStorage.getItem("__mcd_project_name")||""}catch(e){}i(t),requestAnimationFrame(()=>{try{var e,t;null===(e=a.current)||void 0===e||e.focus(),null===(t=a.current)||void 0===t||t.select()}catch(e){}})},[e]);let d=(0,r.useCallback)(()=>{var e;null==t||null===(e=t.onConfirm)||void 0===e||e.call(t,n.trim())},[t,n]),u=(0,r.useCallback)(()=>{var e;null==t||null===(e=t.onSkip)||void 0===e||e.call(t)},[t]);if((0,r.useEffect)(()=>{if(!e)return;let t=e=>{"Escape"===e.key?(e.preventDefault(),u()):"Enter"===e.key&&document.activeElement===a.current&&(e.preventDefault(),d())};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e,d,u]),!l||!e||"undefined"==typeof document)return null;let f=document.getElementById("modal-root")||document.body;return(0,w.createPortal)((0,o.jsx)(k,{onMouseDown:u,children:(0,o.jsxs)(I,{role:"dialog","aria-modal":"true","aria-labelledby":"proj-modal-title",onMouseDown:e=>e.stopPropagation(),children:[(0,o.jsx)(P,{"aria-label":"닫기",onClick:u,children:"\xd7"}),(0,o.jsxs)(S,{id:"proj-modal-title",children:["\uD83D\uDCCB 프로젝트명 입력하고",(0,o.jsx)("br",{}),(0,o.jsx)(E,{children:"시공 견적까지"})," 연결하세요!"]}),(0,o.jsxs)(_,{children:["현재 진행 중인 ",(0,o.jsx)("strong",{children:"[프로젝트명/현장명]"}),"을 입력 후 다운로드해 주세요. 스펙북에 현장명이 표기되고, 스펙북에 포함된 연락처로 문의하시면 입력하신 프로젝트 기준으로"," ",(0,o.jsx)(E,{children:"자재 포함 시공 견적"}),"을 바로 이어서 안내해 드립니다.",(0,o.jsx)(Z,{children:"(입력하지 않아도 다운로드할 수 있습니다.)"})]}),(0,o.jsx)(L,{ref:a,type:"text",value:n,onChange:e=>i(e.target.value),placeholder:"예) 한남동 00빌딩 신축공사 / 인테리어 현장명",autoComplete:"off"}),(0,o.jsxs)(N,{children:[(0,o.jsx)(z,{onClick:d,children:"다운로드"}),(0,o.jsx)(A,{onClick:u,children:"건너뛰기"})]})]})}),f)};let j=(0,b.F4)(["from{opacity:0;}to{opacity:1;}"]),C=(0,b.F4)(["from{opacity:0;transform:translateY(8px) scale(0.96);}to{opacity:1;transform:translateY(0) scale(1);}"]),k=b.ZP.div.withConfig({componentId:"sc-35c5256b-0"})(["position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:2147483647;display:flex;align-items:center;justify-content:center;padding:16px;animation:"," 180ms ease;"],j),I=b.ZP.div.withConfig({componentId:"sc-35c5256b-1"})(["position:relative;width:480px;max-width:100%;background:#fff;border-radius:16px;box-shadow:0 12px 32px rgba(0,0,0,0.18);padding:32px 28px 24px;box-sizing:border-box;animation:"," 200ms cubic-bezier(0.2,0.8,0.2,1);@media (max-width:480px){width:100%;padding:24px 20px 20px;border-radius:14px;}"],C),P=b.ZP.button.withConfig({componentId:"sc-35c5256b-2"})(["position:absolute;top:12px;right:12px;width:32px;height:32px;border:none;background:transparent;font-size:20px;color:#999;cursor:pointer;line-height:1;border-radius:50%;&:hover{color:#333;background:#f5f5f5;}outline:none !important;&:focus,&:focus-visible{outline:none !important;box-shadow:none !important;}"]),S=b.ZP.h2.withConfig({componentId:"sc-35c5256b-3"})(["margin:0 0 14px;font-size:22px;font-weight:700;line-height:1.35;color:#1a1a1a;letter-spacing:-0.01em;@media (max-width:480px){font-size:19px;}"]),E=b.ZP.span.withConfig({componentId:"sc-35c5256b-4"})(["color:#413d7d;font-weight:800;"]),_=b.ZP.p.withConfig({componentId:"sc-35c5256b-5"})(["margin:0 0 18px;font-size:14px;line-height:1.6;color:#444;strong{font-weight:700;color:#1a1a1a;}"]),Z=b.ZP.span.withConfig({componentId:"sc-35c5256b-6"})(["display:block;margin-top:8px;font-size:12.5px;color:#888;"]),L=b.ZP.input.withConfig({componentId:"sc-35c5256b-7"})(["width:100%;height:48px;padding:0 14px;font-size:16px;border:1px solid #d0d5dd;border-radius:10px;outline:none;background:#fff;color:#1a1a1a;box-sizing:border-box;margin-bottom:16px;transition:border-color 120ms ease,box-shadow 120ms ease;&::placeholder{color:#b0b0b0;}&:focus{border-color:#413d7d;box-shadow:0 0 0 3px rgba(65,61,125,0.12);}"]),N=b.ZP.div.withConfig({componentId:"sc-35c5256b-8"})(["display:flex;align-items:center;justify-content:flex-end;gap:8px;"]),z=b.ZP.button.withConfig({componentId:"sc-35c5256b-9"})(["height:48px;padding:0 24px;background:#413d7d;color:#fff;font-size:15px;font-weight:600;border:none;border-radius:10px;cursor:pointer;transition:background 120ms ease,transform 120ms ease;&:hover{background:#36326a;}&:active{transform:translateY(1px);}outline:none !important;&:focus,&:focus-visible{outline:none !important;box-shadow:none !important;}"]),A=b.ZP.button.withConfig({componentId:"sc-35c5256b-10"})(["height:36px;padding:0 12px;background:transparent;color:#888;font-size:13px;font-weight:500;border:none;border-radius:8px;cursor:pointer;&:hover{color:#333;background:#f5f5f5;}outline:none !important;&:focus,&:focus-visible{outline:none !important;box-shadow:none !important;}"]);var O=e=>{let{children:t}=e;return(0,o.jsxs)(c.Wh,{children:[(0,o.jsx)(u,{}),(0,o.jsx)(x,{}),(0,o.jsx)(y,{}),t]})},T=n(72044),D=n(35775),R=n(7849),M=n(78155),B=n(43489),U=n(23656),W=n(87739);let F=["/login","/signup","/callback","/logout"],H=["/home","/board"],V=["/board"];function K(e){let{onClose:t,leave:n}=e;return(0,o.jsx)(M.Z,{onClose:n?void 0:t,children:(0,o.jsxs)("div",{style:{padding:"26px 22px 20px",maxWidth:340,textAlign:"center"},children:[(0,o.jsx)("p",{style:{margin:0,fontSize:16,fontWeight:800,lineHeight:1.5,wordBreak:"keep-all"},children:"전문가 회원에게만 제공되는 서비스입니다."}),(0,o.jsx)("p",{style:{margin:"8px 0 18px",fontSize:13,lineHeight:1.6,color:"#6b6b76",wordBreak:"keep-all"},children:"이미지\xb7스펙북 다운로드, 샘플 신청, 내보드는 설계\xb7시공 전문가 회원 전용입니다."}),(0,o.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,o.jsx)("a",{href:"/signup/?type=pro",style:{flex:1,height:44,lineHeight:"42px",border:"1.5px solid #413d7d",borderRadius:8,color:"#413d7d",fontWeight:700,fontSize:14,textDecoration:"none",boxSizing:"border-box"},children:"전문가 회원 신청"}),(0,o.jsx)("button",{type:"button",onClick:t,style:{flex:1,height:44,border:0,borderRadius:8,background:"#413d7d",color:"#fff",fontWeight:700,fontSize:14,cursor:"pointer"},children:"확인"})]})]})})}function q(){var e,t;let n=(0,a.usePathname)()||"",{isLogin:i}=(0,c.sJ)(s.Z),d=(0,D.Z)(),[u,f]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{let e=()=>f(!0);return window.addEventListener(l.oA,e),()=>window.removeEventListener(l.oA,e)},[]),i&&(null==d?void 0:d.job)==="general")return V.some(e=>n===e||n.startsWith("".concat(e,"/")))?(0,o.jsx)(K,{leave:!0,onClose:()=>{window.location.href=(0,W.IB)()?"/shop/":"/home/"}}):u?(0,o.jsx)(K,{leave:!1,onClose:()=>f(!1)}):null;if(F.some(e=>n===e||n.startsWith("".concat(e,"/")))||H.includes(n)||!i||!d)return null;let p=d.isAgree;if(!0===p)return null;let h=!0===d.certRejected,m=(0,R.X)(null!==(e=d.license)&&void 0!==e?e:"")||h,g=0===(null!==(t=d.phoneNumber)&&void 0!==t?t:"").toString().trim().length,x=null;return(m||g?x="prompt":!1===p&&(x="processing"),x)?(0,o.jsx)(M.Z,{children:"prompt"===x?(0,o.jsx)(B.Z,{}):(0,o.jsx)(U.Z,{})}):null}let X="mcd_sess_key",Y="mcd_sess_last",G="mcd_sess_entry",J="mcd_visitor_key",$="mcd_sess_ref",Q="mcd_sess_qs",ee="mcd_pre_ref",et="mcd_pre_entry",en="mcd_pre_qs",eo=()=>{try{let e=navigator;if(e.webdriver||/HeadlessChrome|PhantomJS|Puppeteer|Playwright/i.test(e.userAgent))return!0}catch(e){}return!1},ei=()=>{try{if("undefined"!=typeof crypto&&crypto.randomUUID)return crypto.randomUUID()}catch(e){}return"".concat(Date.now().toString(36),"-").concat(Math.floor(1e9*Math.random()).toString(36))},er=()=>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",ea={get(e){try{return localStorage.getItem(e)}catch(e){return null}},set(e,t){try{localStorage.setItem(e,t)}catch(e){}}},ec=function(){var e,t;let n=!(arguments.length>0)||void 0===arguments[0]||arguments[0],o=null!==(e=ea.get(X))&&void 0!==e?e:"",i=Number(null!==(t=ea.get(Y))&&void 0!==t?t:0),r=Date.now(),a=!!o&&!!i&&r-i>18e5;if(!o||a){if(!n)return null;o=ei();let e=null,t=null,i=null;try{e=sessionStorage.getItem(ee),t=sessionStorage.getItem(et),i=sessionStorage.getItem(en),sessionStorage.removeItem(ee),sessionStorage.removeItem(et),sessionStorage.removeItem(en)}catch(e){}let r=null!==e,c=/(^|\.)macodi\.net$/.test(window.location.hostname)?"/ja":"";ea.set(G,(c+(r&&t||window.location.pathname)).slice(0,191)),ea.set($,(r?e:a?"":document.referrer).slice(0,500)),ea.set(Q,(r&&i||(a?"":window.location.search)).slice(0,500)),ea.set(X,o)}return ea.set(Y,String(r)),o},el=()=>ea.get(G)||window.location.pathname,es=e=>{var t;return null!==(t=ea.get(e))&&void 0!==t?t:""},ed=()=>{try{let e=localStorage.getItem(J);return e||(e=ei(),localStorage.setItem(J,e)),e}catch(e){return""}};function eu(){let{isLogin:e}=(0,c.sJ)(s.Z);return(0,r.useEffect)(()=>{let t=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{let n=e?localStorage.getItem("TOKEN"):null;if(!n&&"plugin"!==er()&&eo())return;let o=ec(!t);if(!o)return;let i={sessionKey:o,platform:er(),visitorKey:ed(),entryPath:el(),referrer:es($),landingQs:es(Q)};if(t&&navigator.sendBeacon){let e=new Blob([JSON.stringify(i)],{type:"application/json"});navigator.sendBeacon("".concat(l._n,"/events/session"),e);return}n?l.et.post("/events/session",i,{headers:{Authorization:"Bearer ".concat(n)}}).catch(()=>{}):l.Wg.post("/events/session",i).catch(()=>{})}catch(e){}};document.prerendering?document.addEventListener("prerenderingchange",()=>t(),{once:!0}):t();let n=window.setInterval(()=>{"visible"===document.visibilityState&&t()},6e4),o=()=>{"visible"===document.visibilityState?t():t(!0)},i=()=>t(!0);return document.addEventListener("visibilitychange",o),window.addEventListener("pagehide",i),()=>{window.clearInterval(n),document.removeEventListener("visibilitychange",o),window.removeEventListener("pagehide",i),t(!0)}},[e]),null}var ef=n(8668),ep=n(54843),eh=n(71670);let em="mcd_pushopt_pending";function eg(){let e=(0,c.sJ)(s.Z);return(0,r.useEffect)(()=>{try{let e=new URLSearchParams(window.location.search);"1"===e.get("pushopt")&&(sessionStorage.setItem(em,"1"),sessionStorage.setItem("mcd_pushopt_flow","1"))}catch(e){}},[]),(0,r.useEffect)(()=>{if((0,ef.kV)()&&e.isLogin){(0,ep.yA)("web"),(0,ep.o2)();try{if("1"===sessionStorage.getItem(em)){sessionStorage.removeItem(em);let e="Notification"in window&&"granted"===Notification.permission;window.setTimeout(()=>{e?window.dispatchEvent(new CustomEvent(eh.Rw)):(0,eh.eP)("신제품\xb7신규 자재 입고 알림을 받아보시겠어요?")},600)}}catch(e){}}},[e.isLogin]),null}var ex=n(27872);let ew="신제품\xb7신규 자재가 등록되면 알림으로 가장 먼저 받아보시겠어요?";function eb(){try{return"1"===sessionStorage.getItem("mcd_pushopt_flow")}catch(e){return!1}}function ev(){let{request:e,markDismissed:t}=(0,ex.Ri)(),[n,i]=(0,r.useState)(!1),[a,c]=(0,r.useState)("ask"),[l,s]=(0,r.useState)(!1),[d,u]=(0,r.useState)(ew),[f,p]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=e=>{if(!(0,ex.P1)())return;let t=e.detail;u((null==t?void 0:t.message)||ew),s(eb()),c("ask"),i(!0)},t=()=>{s(eb()),c("granted"),i(!0)};return window.addEventListener(eh.Zd,e),window.addEventListener(eh.Rw,t),()=>{window.removeEventListener(eh.Zd,e),window.removeEventListener(eh.Rw,t)}},[]);let h=(0,r.useCallback)(()=>{try{sessionStorage.removeItem("mcd_pushopt_flow")}catch(e){}},[]),m=(0,r.useCallback)(async()=>{p(!0);let t=await e("web");p(!1),"granted"===t?c("granted"):"denied"===t||"default"===t?c("blocked"):i(!1)},[e]),g=(0,r.useCallback)(()=>{t(),i(!1)},[t]),x=(0,r.useCallback)(()=>{if(h(),i(!1),l)try{window.close()}catch(e){}},[l,h]);return n?"granted"===a?(0,o.jsx)(ey,{onClick:x,children:(0,o.jsxs)(ej,{onClick:e=>e.stopPropagation(),children:[(0,o.jsx)(eC,{"aria-hidden":!0,children:"✅"}),(0,o.jsx)(ek,{children:"신제품 알림이 켜졌어요"}),(0,o.jsxs)(eI,{children:["신제품\xb7신규 자재가 등록되면 가장 먼저 알려드릴게요.",l&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("br",{}),(0,o.jsx)(eP,{children:"이제 스케치업 창으로 돌아가 작업을 계속하세요."})]})]}),(0,o.jsx)(eS,{children:(0,o.jsx)(e_,{type:"button",onClick:x,style:{flex:1},children:l?"스케치업으로 돌아가기":"확인"})})]})}):"blocked"===a?(0,o.jsx)(ey,{onClick:x,children:(0,o.jsxs)(ej,{onClick:e=>e.stopPropagation(),children:[(0,o.jsx)(eC,{"aria-hidden":!0,children:"\uD83D\uDD15"}),(0,o.jsx)(ek,{children:"알림이 켜지지 않았어요"}),(0,o.jsxs)(eI,{children:["브라우저에서 알림이 차단되어 있어요. 주소창의 자물쇠 아이콘 → 알림",(0,o.jsx)("b",{children:" 허용"}),"으로 바꾼 뒤 다시 시도해 주세요."]}),(0,o.jsx)(eS,{children:(0,o.jsx)(eE,{type:"button",onClick:x,style:{flex:1},children:"확인"})})]})}):(0,o.jsx)(ey,{onClick:g,children:(0,o.jsxs)(ej,{onClick:e=>e.stopPropagation(),children:[(0,o.jsx)(eC,{"aria-hidden":!0,children:"\uD83D\uDD14"}),(0,o.jsx)(ek,{children:"신제품 입고 알림"}),(0,o.jsx)(eI,{children:d}),(0,o.jsxs)(eS,{children:[(0,o.jsx)(eE,{type:"button",onClick:g,disabled:f,children:"나중에"}),(0,o.jsx)(e_,{type:"button",onClick:m,disabled:f,children:f?"설정 중…":"알림 받기"})]})]})}):null}let ey=b.ZP.div.withConfig({componentId:"sc-b415567f-0"})(["position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,0.35);display:flex;align-items:flex-end;justify-content:center;@media (min-width:769px){align-items:center;}"]),ej=b.ZP.div.withConfig({componentId:"sc-b415567f-1"})(["width:100%;max-width:420px;background:#fff;border-radius:16px 16px 0 0;padding:24px 20px 28px;box-shadow:0 -4px 24px rgba(0,0,0,0.12);text-align:center;@media (min-width:769px){border-radius:16px;margin-bottom:0;}"]),eC=b.ZP.div.withConfig({componentId:"sc-b415567f-2"})(["font-size:32px;margin-bottom:8px;"]),ek=b.ZP.div.withConfig({componentId:"sc-b415567f-3"})(["font-size:17px;font-weight:700;color:#1a1a1a;margin-bottom:6px;"]),eI=b.ZP.p.withConfig({componentId:"sc-b415567f-4"})(["font-size:14px;line-height:1.5;color:#555;margin:0 0 20px;"]),eP=b.ZP.span.withConfig({componentId:"sc-b415567f-5"})(["display:inline-block;margin-top:8px;font-size:13px;font-weight:600;color:#6c2bd9;"]),eS=b.ZP.div.withConfig({componentId:"sc-b415567f-6"})(["display:flex;gap:10px;"]),eE=b.ZP.button.withConfig({componentId:"sc-b415567f-7"})(["flex:1;height:46px;border:1px solid #e0e0e0;border-radius:10px;background:#fff;color:#777;font-size:15px;cursor:pointer;"]),e_=b.ZP.button.withConfig({componentId:"sc-b415567f-8"})(["flex:2;height:46px;border:none;border-radius:10px;background:#6c2bd9;color:#fff;font-size:15px;font-weight:700;cursor:pointer;&:disabled{opacity:0.6;cursor:default;}"]);var eZ=n(8927);let eL="신제품\xb7신규 자재 알림을 받아보시겠어요?";function eN(){let[e,t]=(0,r.useState)(!1),[n,i]=(0,r.useState)(eL),[a,c]=(0,r.useState)(!1);(0,r.useEffect)(()=>{c(!0)},[]),(0,r.useEffect)(()=>{let e=e=>{let n=e.detail;i((null==n?void 0:n.message)||eL),t(!0)};return window.addEventListener(eh.iv,e),()=>window.removeEventListener(eh.iv,e)},[]);let l=(0,r.useCallback)(()=>{try{localStorage.setItem("mcd_plugin_pushopt_dismissed","1")}catch(e){}t(!1)},[]),s=(0,r.useCallback)(async()=>{let e=window.location.origin;!function(e){let t=window;try{if(t.sketchup&&"function"==typeof t.sketchup.openExternal){t.sketchup.openExternal(e);return}if("function"==typeof t.__mcdOpenExternal){t.__mcdOpenExternal(e);return}}catch(e){}try{window.open(e,"_blank")}catch(e){}}(await (0,eZ.db)("".concat(e,"/home/?pushopt=1"))),l()},[l]);return e&&a&&"undefined"!=typeof document?(0,w.createPortal)((0,o.jsx)(ez,{onClick:l,children:(0,o.jsxs)(eA,{onClick:e=>e.stopPropagation(),children:[(0,o.jsx)(eO,{"aria-hidden":!0,children:"\uD83D\uDD14"}),(0,o.jsx)(eT,{children:"신제품 입고 알림"}),(0,o.jsxs)(eD,{children:[n,(0,o.jsx)("br",{}),(0,o.jsx)(eR,{children:"플러그인은 알림을 직접 받을 수 없어, 웹 브라우저에서 켜시면 신제품 등록 시 바로 받아보실 수 있어요."})]}),(0,o.jsxs)(eM,{children:[(0,o.jsx)(eB,{type:"button",onClick:l,children:"다시 안 보기"}),(0,o.jsx)(eU,{type:"button",onClick:s,children:"웹에서 알림 켜기"})]})]})}),document.body):null}let ez=b.ZP.div.withConfig({componentId:"sc-555daa6b-0"})(["position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,0.35);display:flex;align-items:center;justify-content:center;"]),eA=b.ZP.div.withConfig({componentId:"sc-555daa6b-1"})(["width:100%;max-width:420px;background:#fff;border-radius:16px;padding:24px 20px 28px;box-shadow:0 8px 28px rgba(0,0,0,0.18);text-align:center;"]),eO=b.ZP.div.withConfig({componentId:"sc-555daa6b-2"})(["font-size:32px;margin-bottom:8px;"]),eT=b.ZP.div.withConfig({componentId:"sc-555daa6b-3"})(["font-size:17px;font-weight:700;color:#1a1a1a;margin-bottom:6px;"]),eD=b.ZP.p.withConfig({componentId:"sc-555daa6b-4"})(["font-size:14px;line-height:1.5;color:#555;margin:0 0 20px;"]),eR=b.ZP.span.withConfig({componentId:"sc-555daa6b-5"})(["font-size:12px;color:#888;"]),eM=b.ZP.div.withConfig({componentId:"sc-555daa6b-6"})(["display:flex;gap:10px;"]),eB=b.ZP.button.withConfig({componentId:"sc-555daa6b-7"})(["flex:1;height:46px;border:1px solid #e0e0e0;border-radius:10px;background:#fff;color:#777;font-size:15px;cursor:pointer;"]),eU=b.ZP.button.withConfig({componentId:"sc-555daa6b-8"})(["flex:2;height:46px;border:none;border-radius:10px;background:#6c2bd9;color:#fff;font-size:15px;font-weight:700;cursor:pointer;"]);function eW(){let[e,t]=(0,r.useState)(!1),[n,i]=(0,r.useState)(null);return((0,r.useEffect)(()=>t(!0),[]),(0,r.useEffect)(()=>{let e=window;e.__mcdUpdateState=e=>{var t,n;if(!e||"object"!=typeof e)return;let o=!!e.pending;i({pending:o,version:String(null!==(t=e.version)&&void 0!==t?t:""),required:!!e.required,installed:String(null!==(n=e.installed)&&void 0!==n?n:"")});try{sessionStorage.setItem("__mcd_update_pending",o?"1":"0")}catch(e){}try{window.dispatchEvent(new CustomEvent("mcd:update-state",{detail:{pending:o}}))}catch(e){}};let t=e.__mcdCaps;return e.__mcdCaps=e=>{try{(null==e?void 0:e.plugin)&&sessionStorage.setItem("__mcd_pv",String(e.plugin))}catch(e){}"function"==typeof t&&t(e)},()=>{e.__mcdUpdateState&&delete e.__mcdUpdateState}},[]),e&&n&&"undefined"!=typeof document)?n.required?(0,w.createPortal)((0,o.jsx)(eK,{role:"alertdialog","aria-modal":"true",children:(0,o.jsxs)(eq,{children:[(0,o.jsx)(eX,{"aria-hidden":!0,children:"\uD83D\uDD04"}),(0,o.jsx)(eY,{children:"SketchUp을 다시 켜주세요"}),(0,o.jsxs)(eG,{children:["지금 버전에는 마감재가 잘못 저장될 수 있는 문제가 있어요.",(0,o.jsx)("br",{}),"새 버전은 이미 설치되어 있고, ",(0,o.jsx)("b",{children:"SketchUp을 껐다 켜면 바로 적용"}),"됩니다."]}),(0,o.jsx)(eJ,{children:"작업 중이시면 파일을 저장한 뒤 다시 켜주세요. 저장한 내용은 그대로 남습니다."}),(0,o.jsxs)(e$,{children:[(0,o.jsxs)("span",{children:["지금 ",n.installed||"—"]}),(0,o.jsx)(eQ,{"aria-hidden":!0,children:"→"}),(0,o.jsx)("b",{children:n.version||"최신"})]})]})}),document.body):n.pending?(0,w.createPortal)((0,o.jsxs)(eF,{role:"status",children:[(0,o.jsx)(eH,{"aria-hidden":!0}),(0,o.jsxs)(eV,{children:["새 버전(",n.version,")이 준비됐어요 \xb7"," ",(0,o.jsx)("b",{children:"SketchUp을 다시 켜면 적용됩니다"})]})]}),document.body):null:null}let eF=b.ZP.div.withConfig({componentId:"sc-b1f84390-0"})(["position:fixed;left:0;right:0;bottom:0;z-index:2147482000;display:flex;align-items:center;justify-content:center;gap:8px;padding:7px 12px;background:#eef1fe;border-top:1px solid #d7d9f0;color:#2b2f5e;font-size:12.5px;line-height:1.4;pointer-events:none;b{font-weight:700;}"]),eH=b.ZP.span.withConfig({componentId:"sc-b1f84390-1"})(["flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:#4c6ef5;"]),eV=b.ZP.span.withConfig({componentId:"sc-b1f84390-2"})(["min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]),eK=b.ZP.div.withConfig({componentId:"sc-b1f84390-3"})(["position:fixed;inset:0;z-index:2147483600;background:rgba(20,20,30,0.55);display:flex;align-items:center;justify-content:center;padding:20px;"]),eq=b.ZP.div.withConfig({componentId:"sc-b1f84390-4"})(["width:100%;max-width:420px;background:#fff;border-radius:16px;padding:26px 22px 22px;box-shadow:0 12px 34px rgba(0,0,0,0.28);text-align:center;"]),eX=b.ZP.div.withConfig({componentId:"sc-b1f84390-5"})(["font-size:34px;margin-bottom:10px;"]),eY=b.ZP.div.withConfig({componentId:"sc-b1f84390-6"})(["font-size:18px;font-weight:700;color:#1a1a1a;margin-bottom:8px;"]),eG=b.ZP.p.withConfig({componentId:"sc-b1f84390-7"})(["margin:0 0 14px;font-size:14px;line-height:1.6;color:#444;"]),eJ=b.ZP.p.withConfig({componentId:"sc-b1f84390-8"})(["margin:0 0 16px;font-size:12.5px;line-height:1.55;color:#888;"]),e$=b.ZP.div.withConfig({componentId:"sc-b1f84390-9"})(["display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;color:#888;font-family:ui-monospace,Menlo,Consolas,monospace;b{color:#4c6ef5;}"]),eQ=b.ZP.span.withConfig({componentId:"sc-b1f84390-10"})(["color:#c4c4d4;"]),e0="mcd_update_strip_dismissed",e1="/home/sketchup";function e5(e,t){let n=e.trim().replace(/^v/i,"").split(".").map(e=>parseInt(e,10)),o=t.trim().replace(/^v/i,"").split(".").map(e=>parseInt(e,10));if(!n.length||!o.length||n.some(isNaN)||o.some(isNaN))return!1;for(let e=0;e{let e=!0;return(async()=>{try{var t,o,i,r,a,c,s;if(!("1"===sessionStorage.getItem("__mcd_su")||document.documentElement.classList.contains("su-plugin"))||"1"===sessionStorage.getItem(e0)||(window.location.pathname||"").startsWith(e1))return;try{null===(o=window.sketchup)||void 0===o||null===(t=o.getCaps)||void 0===t||t.call(o)}catch(e){}let{data:d}=await l.et.get("/plugin/latest"),u=String(null!==(i=null==d?void 0:d.version)&&void 0!==i?i:"").trim();if(!u||!e)return;let f=null!==(r=sessionStorage.getItem("__mcd_pv"))&&void 0!==r?r:"";for(let t=0;!f&&t<30&&e;t+=1)await new Promise(e=>setTimeout(e,200)),f=null!==(a=sessionStorage.getItem("__mcd_pv"))&&void 0!==a?a:"";if(!e||"1"===sessionStorage.getItem("__mcd_update_pending"))return;let p=(()=>{try{var e;return"function"==typeof(null===(e=window.sketchup)||void 0===e?void 0:e.getCaps)}catch(e){return!1}})(),h=!!f&&e5(f,u),m=!f&&!p;if(!h&&!m)return;let g=String(null!==(c=null==d?void 0:d.minSupported)&&void 0!==c?c:"").trim(),x=!!g&&!!f&&e5(f,g);n({version:u,title:String(null!==(s=null==d?void 0:d.title)&&void 0!==s?s:"").trim(),installed:f,critical:x})}catch(e){}})(),()=>{e=!1}},[]),(0,r.useEffect)(()=>{let e=e=>{var t;(null==e?void 0:null===(t=e.detail)||void 0===t?void 0:t.pending)&&n(null)};return window.addEventListener("mcd:update-state",e),()=>window.removeEventListener("mcd:update-state",e)},[]),(0,r.useEffect)(()=>{if(!t)return;let e=document.body.style.paddingTop;return document.body.style.paddingTop="34px",()=>{document.body.style.paddingTop=e}},[t]);let i=(0,r.useCallback)(()=>{try{let e=window.sketchup;if(e&&"function"==typeof e.installUpdate){e.installUpdate();return}}catch(e){}e.push(e1)},[e]),c=(0,r.useCallback)(()=>{try{sessionStorage.setItem(e0,"1")}catch(e){}n(null)},[]);if(!t)return null;let s=t.installed?e2(t.installed):"구버전",d=e2(t.version);return(0,o.jsxs)(e8,{role:t.critical?"alert":"status",$crit:t.critical,children:[(0,o.jsx)(e6,{"aria-hidden":!0,$crit:t.critical}),t.critical?(0,o.jsxs)(e3,{children:[(0,o.jsxs)("b",{children:["지금 ",s,"은 일부 기능이 정상 동작하지 않습니다."]}),(0,o.jsxs)(e7,{children:[" 최신 ",d,"으로 업데이트해 주세요."]})]}):(0,o.jsxs)(e3,{children:["새 버전 ",(0,o.jsx)("b",{children:d}),t.title?(0,o.jsxs)(e7,{children:[" \xb7 ",t.title]}):null]}),(0,o.jsx)(e9,{type:"button",$crit:t.critical,onClick:i,children:"지금 설치"}),t.critical?null:(0,o.jsx)(te,{type:"button",onClick:c,"aria-label":"이번만 닫기",children:"✕"})]})}let e8=b.ZP.div.withConfig({componentId:"sc-215a5185-0"})(["position:fixed;top:0;left:0;right:0;z-index:2147483000;height:34px;display:flex;align-items:center;gap:8px;padding:0 12px;background:",";border-bottom:1px solid ",";color:",";font-size:12.5px;font-weight:600;box-sizing:border-box;"],e=>{let{$crit:t}=e;return t?"#fbe9e7":"#fdf5e6"},e=>{let{$crit:t}=e;return t?"#dc8b83":"#e2a03f"},e=>{let{$crit:t}=e;return t?"#a8261e":"#8a6d3b"}),e6=b.ZP.span.withConfig({componentId:"sc-215a5185-1"})(["flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:",";"],e=>{let{$crit:t}=e;return t?"#c2352b":"#e2a03f"}),e3=b.ZP.span.withConfig({componentId:"sc-215a5185-2"})(["flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;b{font-weight:800;}"]),e7=b.ZP.span.withConfig({componentId:"sc-215a5185-3"})(["opacity:0.8;font-weight:500;"]),e9=b.ZP.button.withConfig({componentId:"sc-215a5185-4"})(["flex:0 0 auto;height:24px;padding:0 11px;border:1px solid ",";border-radius:6px;background:",";color:",";font-family:inherit;font-size:12px;font-weight:800;cursor:pointer;&:hover{background:",";}"],e=>{let{$crit:t}=e;return t?"#c2352b":"#e2a03f"},e=>{let{$crit:t}=e;return t?"#c2352b":"#ffffff"},e=>{let{$crit:t}=e;return t?"#ffffff":"#8a6d3b"},e=>{let{$crit:t}=e;return t?"#a8261e":"#f7ead2"}),te=b.ZP.button.withConfig({componentId:"sc-215a5185-5"})(["flex:0 0 auto;width:22px;height:22px;border:0;background:transparent;color:#b09468;font-size:13px;cursor:pointer;&:hover{color:#8a6d3b;}"]),tt="mcd_ios_pwa_dismissed";function tn(){let e=(0,c.sJ)(s.Z),[t,n]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{var t,o;if((0,ef.kV)()&&e.isLogin&&!(!function(){if("undefined"==typeof navigator)return!1;let e=navigator.userAgent||"";return(!!/iphone|ipad|ipod/i.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&/safari/i.test(e)&&!/crios|fxios|edgios/i.test(e)}()||!0===window.navigator.standalone||(null===(t=(o=window).matchMedia)||void 0===t?void 0:t.call(o,"(display-mode: standalone)").matches)===!0)){try{if("1"===localStorage.getItem(tt))return}catch(e){}n(!0)}},[e.isLogin]),t)?(0,o.jsxs)(to,{role:"status",children:[(0,o.jsxs)(ti,{children:[(0,o.jsx)("b",{children:"홈 화면에 추가"}),"하면 신제품 입고 알림을 받을 수 있어요.",(0,o.jsx)("br",{}),(0,o.jsxs)(tr,{children:["공유 ",(0,o.jsx)(ta,{"aria-hidden":!0,children:"⬆️"})," → ‘홈 화면에 추가’를 눌러주세요."]})]}),(0,o.jsx)(tc,{type:"button",onClick:()=>{try{localStorage.setItem(tt,"1")}catch(e){}n(!1)},"aria-label":"닫기",children:"✕"})]}):null}let to=b.ZP.div.withConfig({componentId:"sc-505cd5e6-0"})(["position:fixed;left:12px;right:12px;bottom:12px;z-index:99998;background:#1a1a1a;color:#fff;border-radius:12px;padding:14px 16px;display:flex;align-items:center;gap:12px;box-shadow:0 6px 24px rgba(0,0,0,0.25);"]),ti=b.ZP.div.withConfig({componentId:"sc-505cd5e6-1"})(["flex:1;font-size:13px;line-height:1.45;"]),tr=b.ZP.span.withConfig({componentId:"sc-505cd5e6-2"})(["font-size:12px;color:#cfcfcf;"]),ta=b.ZP.span.withConfig({componentId:"sc-505cd5e6-3"})(["font-size:13px;"]),tc=b.ZP.button.withConfig({componentId:"sc-505cd5e6-4"})(["flex-shrink:0;width:28px;height:28px;border:none;background:rgba(255,255,255,0.15);color:#fff;border-radius:50%;font-size:13px;cursor:pointer;"]);var tl=()=>{let e=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{if(!e.current){try{if("/callback"===window.location.pathname.replace(/\/+$/,""))return}catch(e){}e.current=!0,(async()=>{await (0,eZ.ik)()&&window.location.reload()})()}},[]),null},ts=n(9927);async function td(e){try{if(navigator.clipboard&&window.isSecureContext)return await navigator.clipboard.writeText(e),!0}catch(e){}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.focus(),t.select();let n=document.execCommand("copy");return document.body.removeChild(t),n}catch(e){return!1}}function tu(){let e=(0,a.useRouter)(),t=(0,D.Z)(),[n,i]=(0,r.useState)(!1),[c,l]=(0,r.useState)("choice"),[s,d]=(0,r.useState)(!1),[u,f]=(0,r.useState)(!1);(0,r.useEffect)(()=>{f(!0)},[]),(0,r.useEffect)(()=>{let e=()=>{l("choice"),d(!1),i(!0)};return window.addEventListener(ts.L,e),()=>window.removeEventListener(ts.L,e)},[]);let p=(0,r.useCallback)(()=>i(!1),[]),h=(0,r.useCallback)(()=>{i(!1),e.push("/premium?src=exhausted")},[e]),m=(null==t?void 0:t.id)?"".concat(window.location.origin,"/signup?ref=").concat(t.id):"",g=(0,r.useCallback)(async()=>{m&&d(await td(m))},[m]);return n&&u&&"undefined"!=typeof document?(0,w.createPortal)((0,o.jsx)(tf,{onClick:p,children:(0,o.jsx)(tp,{onClick:e=>e.stopPropagation(),children:"choice"===c?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(th,{children:[(0,o.jsx)("span",{"aria-hidden":!0,children:"\uD83C\uDF81"})," 무료 장수를 다 쓰셨어요"]}),(0,o.jsxs)(tm,{children:["제휴하면 심리스\xb7PBR ",(0,o.jsx)(tx,{children:"무제한"}),",",(0,o.jsx)("br",{}),"친구 추천하면 ",(0,o.jsx)(tx,{children:"5장"}),"을 더 드려요."]}),(0,o.jsxs)(tj,{children:[(0,o.jsx)(tk,{type:"button",onClick:h,children:"무료 제휴 \xb7 추가구매"}),(0,o.jsx)(tC,{type:"button",onClick:()=>l("referral"),children:"친구 추천"})]})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(th,{children:[(0,o.jsx)("span",{"aria-hidden":!0,children:"\uD83E\uDD1D"})," 친구 추천하고 5장 받기"]}),(0,o.jsxs)(tm,{children:["아래 링크를 친구에게 공유하세요.",(0,o.jsx)("br",{}),(0,o.jsx)(tg,{children:"친구가 이 링크로 가입하고 승인되면 두 분 모두 5장을 드려요."})]}),(0,o.jsxs)(tw,{children:[(0,o.jsx)(tb,{title:m,children:m||"로그인 후 이용해 주세요"}),(0,o.jsx)(tv,{type:"button",onClick:g,disabled:!m,children:s?"복사됨":"복사"})]}),(0,o.jsxs)(ty,{children:["또는 친구가 가입 시 ",(0,o.jsx)("b",{children:"추천인란에 내 이메일(아이디)"}),"을 입력해도 돼요."]}),(0,o.jsxs)(tj,{children:[(0,o.jsx)(tC,{type:"button",onClick:()=>l("choice"),children:"뒤로"}),(0,o.jsx)(tk,{type:"button",onClick:p,children:"닫기"})]})]})})}),document.body):null}let tf=b.ZP.div.withConfig({componentId:"sc-e4fe3380-0"})(["position:fixed;inset:0;z-index:2147483647;background:rgba(0,0,0,0.4);display:flex;align-items:center;justify-content:center;padding:16px;"]),tp=b.ZP.div.withConfig({componentId:"sc-e4fe3380-1"})(["width:100%;max-width:440px;background:#fff;border-radius:16px;padding:26px 22px 24px;box-shadow:0 10px 32px rgba(0,0,0,0.2);text-align:center;"]),th=b.ZP.div.withConfig({componentId:"sc-e4fe3380-2"})(["font-size:18px;font-weight:700;color:#1a1a1a;margin-bottom:8px;"]),tm=b.ZP.p.withConfig({componentId:"sc-e4fe3380-3"})(["font-size:14px;line-height:1.55;color:#555;margin:0 0 18px;"]),tg=b.ZP.span.withConfig({componentId:"sc-e4fe3380-4"})(["font-size:12.5px;color:#888;"]),tx=b.ZP.b.withConfig({componentId:"sc-e4fe3380-5"})(["font-weight:700;color:#1a1a1a;"]),tw=b.ZP.div.withConfig({componentId:"sc-e4fe3380-6"})(["display:flex;gap:8px;margin-bottom:10px;"]),tb=b.ZP.div.withConfig({componentId:"sc-e4fe3380-7"})(["flex:1;height:44px;display:flex;align-items:center;padding:0 12px;border:1px solid #e5e5e5;border-radius:10px;background:#f7f7f9;font-size:13px;color:#444;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),tv=b.ZP.button.withConfig({componentId:"sc-e4fe3380-8"})(["flex-shrink:0;min-width:64px;height:44px;border:none;border-radius:10px;background:#6c2bd9;color:#fff;font-size:14px;font-weight:700;cursor:pointer;&:disabled{opacity:0.5;cursor:default;}"]),ty=b.ZP.div.withConfig({componentId:"sc-e4fe3380-9"})(["font-size:12px;color:#999;line-height:1.5;margin-bottom:18px;"]),tj=b.ZP.div.withConfig({componentId:"sc-e4fe3380-10"})(["display:flex;gap:8px;button{font-size:14px;white-space:nowrap;padding:0;}"]),tC=b.ZP.button.withConfig({componentId:"sc-e4fe3380-11"})(["flex:1;height:48px;border:1px solid #e0e0e0;border-radius:10px;background:#fff;color:#666;font-size:15px;cursor:pointer;"]),tk=b.ZP.button.withConfig({componentId:"sc-e4fe3380-12"})(["flex:1;height:48px;border:none;border-radius:10px;background:#6c2bd9;color:#fff;font-size:15px;font-weight:700;cursor:pointer;"]);var tI=n(60174);function tP(){let e=(0,a.useRouter)(),[t,n]=(0,r.useState)(!1),[i,c]=(0,r.useState)(""),[l,s]=(0,r.useState)(!1);(0,r.useEffect)(()=>{s(!0)},[]),(0,r.useEffect)(()=>{let e=e=>{var t;let o=e.detail;c(String(null!==(t=null==o?void 0:o.message)&&void 0!==t?t:"")),n(!0)};return window.addEventListener(tI.yP,e),()=>window.removeEventListener(tI.yP,e)},[]);let d=(0,r.useCallback)(()=>n(!1),[]),u=(0,r.useCallback)(()=>{n(!1),e.push("".concat("/home/sketchup/","?src=premium-cap"))},[e]);return t&&l&&"undefined"!=typeof document?(0,w.createPortal)((0,o.jsx)(tS,{onClick:d,children:(0,o.jsxs)(tE,{role:"dialog","aria-modal":"true",onClick:e=>e.stopPropagation(),children:[(0,o.jsxs)(t_,{children:[(0,o.jsx)("span",{"aria-hidden":!0,children:"⏳"})," 오늘 웹 다운로드 한도에 도달했어요"]}),(0,o.jsxs)(tZ,{children:[i||"오늘 웹에서 받을 수 있는 심리스\xb7PBR 수량을 모두 사용했습니다.",(0,o.jsx)("br",{}),(0,o.jsx)(tL,{children:"스케치업 플러그인"}),"에서는 제한 없이 클릭 한 번에 재질로 바로 적용됩니다."]}),(0,o.jsxs)(tN,{children:[(0,o.jsx)(tz,{type:"button",onClick:d,children:"닫기"}),(0,o.jsx)(tA,{type:"button",onClick:u,children:"플러그인 설치하기"})]})]})}),document.body):null}let tS=b.ZP.div.withConfig({componentId:"sc-bc50c6c9-0"})(["position:fixed;inset:0;z-index:2147483647;background:rgba(0,0,0,0.4);display:flex;align-items:center;justify-content:center;padding:16px;"]),tE=b.ZP.div.withConfig({componentId:"sc-bc50c6c9-1"})(["width:100%;max-width:440px;background:#fff;border-radius:16px;padding:26px 22px 24px;box-shadow:0 10px 32px rgba(0,0,0,0.2);text-align:center;"]),t_=b.ZP.div.withConfig({componentId:"sc-bc50c6c9-2"})(["font-size:18px;font-weight:700;color:#1a1a1a;margin-bottom:8px;"]),tZ=b.ZP.p.withConfig({componentId:"sc-bc50c6c9-3"})(["font-size:14px;line-height:1.55;color:#555;margin:0 0 18px;"]),tL=b.ZP.b.withConfig({componentId:"sc-bc50c6c9-4"})(["font-weight:700;color:#1a1a1a;"]),tN=b.ZP.div.withConfig({componentId:"sc-bc50c6c9-5"})(["display:flex;gap:8px;button{font-size:14px;white-space:nowrap;padding:0;}"]),tz=b.ZP.button.withConfig({componentId:"sc-bc50c6c9-6"})(["flex:1;height:48px;border:1px solid #e0e0e0;border-radius:10px;background:#fff;color:#666;font-size:15px;cursor:pointer;"]),tA=b.ZP.button.withConfig({componentId:"sc-bc50c6c9-7"})(["flex:1;height:48px;border:none;border-radius:10px;background:#6c2bd9;color:#fff;font-size:15px;font-weight:700;cursor:pointer;"]);var tO=n(61779);function tT(){let e=(0,a.useRouter)(),[t,n]=(0,r.useState)(null),[i,c]=(0,r.useState)(""),[l,s]=(0,r.useState)(!1);(0,r.useEffect)(()=>s(!0),[]),(0,r.useEffect)(()=>{let e=e=>{var t,o;let i=e.detail;c(String(null!==(t=null==i?void 0:i.optionLabel)&&void 0!==t?t:"")),n(null!==(o=null==i?void 0:i.kind)&&void 0!==o?o:"not-ready")};return window.addEventListener(tO.v,e),()=>window.removeEventListener(tO.v,e)},[]);let d=(0,r.useCallback)(()=>n(null),[]),u=(0,r.useCallback)(()=>{n(null),e.push("".concat("/home/sketchup/","?src=model3d"))},[e]);return t&&l&&"undefined"!=typeof document?(0,w.createPortal)((0,o.jsx)(tD,{onClick:d,children:(0,o.jsx)(tR,{role:"dialog","aria-modal":"true",onClick:e=>e.stopPropagation(),children:"not-ready"===t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tM,{children:"3D 제품 준비중입니다"}),(0,o.jsxs)(tB,{children:[i?(0,o.jsxs)(o.Fragment,{children:["선택하신 ",(0,o.jsx)(tU,{children:i})," 옵션의 3D 파일을 준비하고 있어요."]}):"이 제품의 3D 파일을 준비하고 있어요.",(0,o.jsx)("br",{}),"준비가 끝나면 이 버튼으로 바로 받으실 수 있습니다."]}),(0,o.jsx)(tW,{children:(0,o.jsx)(tH,{type:"button",onClick:d,children:"확인"})})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tM,{children:"플러그인 업데이트가 필요해요"}),(0,o.jsxs)(tB,{children:["3D 제품 배치는 ",(0,o.jsx)(tU,{children:"최신 마코디 스케치업 플러그인"}),"에서 지원됩니다.",(0,o.jsx)("br",{}),"플러그인을 업데이트한 뒤 스케치업을 다시 실행해 주세요."]}),(0,o.jsxs)(tW,{children:[(0,o.jsx)(tF,{type:"button",onClick:d,children:"닫기"}),(0,o.jsx)(tH,{type:"button",onClick:u,children:"업데이트 안내"})]})]})})}),document.body):null}let tD=b.ZP.div.withConfig({componentId:"sc-5aafa436-0"})(["position:fixed;inset:0;z-index:2147483647;background:rgba(0,0,0,0.4);display:flex;align-items:center;justify-content:center;padding:16px;"]),tR=b.ZP.div.withConfig({componentId:"sc-5aafa436-1"})(["width:100%;max-width:420px;background:#fff;border-radius:16px;padding:26px 22px 24px;box-shadow:0 10px 32px rgba(0,0,0,0.2);text-align:center;"]),tM=b.ZP.div.withConfig({componentId:"sc-5aafa436-2"})(["font-size:18px;font-weight:700;color:#1a1a1a;margin-bottom:8px;"]),tB=b.ZP.p.withConfig({componentId:"sc-5aafa436-3"})(["font-size:14px;line-height:1.55;color:#555;margin:0 0 18px;"]),tU=b.ZP.b.withConfig({componentId:"sc-5aafa436-4"})(["font-weight:700;color:#1a1a1a;"]),tW=b.ZP.div.withConfig({componentId:"sc-5aafa436-5"})(["display:flex;gap:8px;button{white-space:nowrap;padding:0;}"]),tF=b.ZP.button.withConfig({componentId:"sc-5aafa436-6"})(["flex:1;height:48px;border:1px solid #e0e0e0;border-radius:10px;background:#fff;color:#666;font-size:15px;cursor:pointer;"]),tH=b.ZP.button.withConfig({componentId:"sc-5aafa436-7"})(["flex:1;height:48px;border:none;border-radius:10px;background:#6c2bd9;color:#fff;font-size:15px;font-weight:700;cursor:pointer;"]);function tV(e){let{children:t}=e;return(0,T.Z)()?null:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eu,{}),(0,o.jsx)(eg,{}),(0,o.jsx)(ev,{}),(0,o.jsx)(eN,{}),(0,o.jsx)(eW,{}),(0,o.jsx)(e4,{}),(0,o.jsx)(tn,{}),(0,o.jsx)(tu,{}),(0,o.jsx)(tP,{}),(0,o.jsx)(tT,{}),t,(0,o.jsx)(q,{})]})}let tK=e=>!!e&&/^\/(product|shop)(\/|$)/.test(e);function tq(e){let{children:t}=e;return tK((0,a.usePathname)())?(0,o.jsx)(tY,{children:t}):(0,o.jsx)(tG,{children:t})}function tX(){let e=(0,c.Zl)(s.Z);return(0,r.useEffect)(()=>{let t=localStorage.getItem("TOKEN");if(!t)return;let n=!0;return l.et.defaults.headers.common.Authorization="Bearer ".concat(t),l.Wg.get("/user/me",{headers:{Authorization:"Bearer ".concat(t)}}).then(t=>{let{data:o}=t;n&&o&&e({isLogin:!0,isPhoneAuth:!!o.phoneNumber})}).catch(t=>{var o;n&&(null==t?void 0:null===(o=t.response)||void 0===o?void 0:o.status)===401&&(localStorage.removeItem("TOKEN"),e({isLogin:!1,isPhoneAuth:!1}))}),()=>{n=!1}},[e]),null}function tY(e){let{children:t}=e,[n]=(0,r.useState)(()=>new i.QueryClient({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,staleTime:6e4}}}));return(0,o.jsx)(i.QueryClientProvider,{client:n,children:(0,o.jsxs)(c.Wh,{children:[(0,o.jsx)(tX,{}),(0,o.jsx)(eu,{}),t]})})}function tG(e){let{children:t}=e,[n]=(0,r.useState)(()=>new i.QueryClient({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1,staleTime:6e4}}}));return(0,r.useEffect)(()=>{let e=e=>{e.preventDefault()};return document.addEventListener("contextmenu",e),()=>{document.removeEventListener("contextmenu",e)}},[]),(0,o.jsxs)(i.QueryClientProvider,{client:n,children:[(0,o.jsx)(tl,{}),(0,o.jsx)(O,{children:(0,o.jsx)(tV,{children:t})})]})}},40873:function(e,t,n){"use strict";n.d(t,{default:function(){return s}});var o=n(57437),i=n(2265),r=n(99376),a=n(88862),c=n(42369);let l=(0,a.vJ)(["*{box-sizing:border-box;padding:0;margin:0;font-size:14px;line-height:170%;color:#0d0d0d;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:'Pretendard',-apple-system,BlinkMacSystemFont,helvetica,'Apple SD Gothic Neo',sans-serif;}html,body{width:100%;height:100%;min-height:100%;-ms-overflow-style:none;}a{color:inherit;text-decoration:none;}input,textarea{outline:0;}textarea{resize:none;}*::-webkit-scrollbar{width:8px;height:8px;}*::-webkit-scrollbar-thumb{height:10%;background:#a0a0a0;border-radius:10px;}*::-webkit-scrollbar-track{background:transparent;}"]);function s(e){let{children:t}=e,[n]=(0,i.useState)(()=>new a.qH),[s,u]=(0,i.useState)(!1);(0,r.useServerInsertedHTML)(()=>{let e=n.getStyleElement();return n.instance.clearTag(),(0,o.jsx)(o.Fragment,{children:e})}),(0,i.useEffect)(()=>{u(!0)},[]);let f=(e,t)=>"string"!=typeof t||!e.startsWith("$")&&(0,c.Z)(e);return s?(0,o.jsxs)(a.LC,{shouldForwardProp:f,children:[(0,o.jsx)(l,{}),(0,o.jsx)(d,{children:t})]}):(0,o.jsxs)(a.LC,{sheet:n.instance,shouldForwardProp:f,children:[(0,o.jsx)(l,{}),(0,o.jsx)(d,{children:t})]})}let d=a.ZP.div.withConfig({componentId:"sc-63b5aba4-0"})(["display:flex;flex-direction:column;min-height:100%;width:100%;margin:0 auto;height:100%;"])},87739:function(e,t,n){"use strict";n.d(t,{IB:function(){return a},kx:function(){return r},rr:function(){return c}});var o=n(2265),i=n(64911);let r=[{label:"마코디홈",href:"/",match:e=>"/"===e},{label:"자재별",href:"/shop/",match:e=>/^\/shop(\/(?!best|brand)|$)/.test(e)},{label:"브랜드별",href:"/shop/brand/",match:e=>e.startsWith("/shop/brand")},{label:"베스트",href:"/shop/best/",match:e=>e.startsWith("/shop/best")},{label:"B2B지원",href:"/home/sketchup/",match:e=>e.startsWith("/home/sketchup")}],a=()=>!(0,i.v)();function c(){let[e,t]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{(0,i.v)()&&t(!1)},[]),e}},72044:function(e,t,n){"use strict";var o=n(2265),i=n(43618),r=n(29918),a=n(89723);let c=null,l=e=>{if(c&&c.token===e&&(0===c.doneAt||Date.now()-c.doneAt<2e3))return c.promise;let t=r.Wg.get("/user/me",{headers:{Authorization:"Bearer ".concat(e)}}).then(e=>e.data),n={token:e,doneAt:0,promise:t};return c=n,t.then(()=>{n.doneAt=Date.now()},()=>{c===n&&(c=null)}),t};t.Z=()=>{let e=(0,i.Zl)(a.Z),[t,n]=(0,o.useState)(!0),c=localStorage.getItem("TOKEN");(0,o.useEffect)(()=>{let t=!0;return(async()=>{if(!c){t&&n(!1);return}try{let e=await l(c);if(!t)return;if(e){let t=!!e.phoneNumber&&""!==e.phoneNumber;s(t)}else n(!1)}catch(i){var o;if(!t)return;if(401===(null==i?void 0:null===(o=i.response)||void 0===o?void 0:o.status)){localStorage.removeItem("TOKEN"),e({isLogin:!1,isPhoneAuth:!1}),n(!1),window.location.href="/home";return}r.et.defaults.headers.common.Authorization="Bearer ".concat(c),n(!1)}})(),()=>{t=!1}},[c]);let s=t=>{c&&(r.et.defaults.headers.common.Authorization="Bearer ".concat(c)),e({isLogin:!0,isPhoneAuth:t}),n(!1)};return t}},27872:function(e,t,n){"use strict";n.d(t,{P1:function(){return c},Ri:function(){return s}});var o=n(2265),i=n(8668),r=n(54843);let a="mcd_push_dismissed";function c(){if(!(0,i.kV)()||!("Notification"in window)||"default"!==Notification.permission)return!1;try{if("1"===localStorage.getItem(a))return!1}catch(e){}return!0}function l(){try{localStorage.setItem(a,"1")}catch(e){}}function s(){return{request:(0,o.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"web";if(!(0,i.kV)()||!("Notification"in window))return"unsupported";let t=await Notification.requestPermission();return"granted"===t?await (0,r.D4)(e):l(),t},[]),isPromptable:c,markDismissed:l}}},28741:function(e,t,n){"use strict";n.d(t,{default:function(){return p}});var o=n(57437),i=n(2265),r=n(29918);let a={"1박스":"1箱","3D 입체패널":"3D立体パネル","3D메탈":"3Dメタル","3D타일":"3Dタイル",가구재:"化粧板",가구제작:"家具製作",가구제작가능:"家具製作可","가든 스톤":"GARDEN STONE",가온브릭스:"カオンブリックス",가온상재:"カオン商材",가죽:"本革",간편시공:"簡単施工",강마루:"複合フローリング",강마루종류:"複合フローリングの種類",강화마루:"ラミネートフローリング",개나리벽지:"ケナリ壁紙",거울:"ミラー",겉지롱브릭:"ロングブリック(スライス)",겉지타일:"スライスブリック",경공업용:"軽工業用",계단판:"階段材(踏板)","고무 바닥재":"ゴム床",고벽돌:"アンティークレンガ",고벽돌롱브릭:"アンティークロングブリック",고벽돌타일:"アンティークブリックタイル",고재:"古材",곡면:"曲面",공간블럭:"花ブロック",구스메이트:"グースメイト",구정마루:"クジョンフローリング","국내 재고":"韓国国内在庫",국내산:"韓国製",국내재고:"韓国国内在庫",그린피플:"グリーンピープル",금속:"金属",기능성바닥재:"機能性床材",기와:"瓦",기와타일:"瓦タイル",까사로마:"CASAROMA",나일론:"ナイロン",난연재:"難燃材料",내벽:"内壁",내부:"屋内",내추럴서피스:"ナチュラルサーフェス","넥스트 타일":"NEXT TILE",노출콘크리트:"打放しコンクリート",노출콘트리트:"打放しコンクリート",단가변동:"単価変動",단가별도:"単価別途",단가별도문의:"単価は別途お問い合わせ",단색:"単色",단열금속기와:"断熱材一体型金属屋根",단파론:"ダンパル",대각재:"大角材",대군통상:"テグン通商",대리석:"大理石",대리석복합:"大理石複合","대림 미라톤":"テリム ミラトン","더 골드타일":"THE GOLD TILE","더 조은목재":"ザ・チョウン木材",데코타일:"フロアタイル","도막\xb7포장 바닥재":"塗り床・舗装材",도막형바닥재:"塗り床材",도장가능:"塗装可",도장별도:"塗装別途",동방특수금속상사:"トンバン特殊金属商事",동신종합목재:"トンシン総合木材",동신포리마:"DONGSHIN POLYMER",동화자연마루:"ドンファ自然フローリング",두꺼운장판:"厚手クッションフロア",듀얼:"デュアル","듀폰 코리안":"デュポン コーリアン","듀퐁 소로나":"デュポン ソロナ",디아망:"ディアマン",디자인월:"デザインウォール",라고데코:"ラゴデコ","라임+메탈":"ライム+メタル",라임스톤:"ライムストーン",라임클레이플라스터:"ライムクレイプラスター",라임플라스터:"漆喰(ライムプラスター)",럭스틸:"ラクスティール",레고리스:"レゴリス",레더:"レザー",롤시트:"長尺シート",롤카펫:"ロールカーペット","롯데 래디언스":"LOTTE RADIANZ","롯데 로셀린":"LOTTE ロセリン","롯데 스타론":"LOTTE STARON",루바:"ルーバー",루버:"ルーバー","루버 시스템":"ルーバーシステム","루버,템바보드":"ルーバー・リブパネル",루버천장:"天井ルーバー",마블:"マーブル","마블(인조강화석)":"マーブル(人造強化石)",마이크로시멘트:"マイクロセメント",메라톤:"メラトン",메탈:"メタル","메탈 사이딩":"金属サイディング",메탈메쉬:"金属メッシュ","메탈메쉬,메탈패브릭":"金属メッシュ・メタルファブリック",메탈패브릭:"メタルファブリック",명성우드:"ミョンソンウッド",명품:"高級",모노륨장판:"クッションフロア(モノリウム)",모노타일:"モノタイル",모니어:"Monier",모듈라:"モジュラー",모자이크:"モザイクタイル",목모보드:"木毛セメント板",목재:"木材",목재기와:"シダーシェイク(木製屋根材)",무광:"マット",무늬목:"突板","무늬목 판재":"突板化粧合板",미건:"ミゴン","미끄럼 방지":"滑り止め",미스티:"ミスティ",미장스톤:"左官ストーン",미장재:"左官材・塗り壁材",미장페인트:"左官調仕上塗材",바닥:"床","바닥 카펫타일":"タイルカーペット",바닥벽돌:"床用レンガ",바닥석재:"床用石材",바닥장판:"クッションフロア",바닥재:"床材",바닥타일:"床タイル",바살트:"バサルト",박스:"箱",반광:"半光沢",발포알루미늄:"発泡アルミ",방염:"防炎","방염 실크벽지":"不燃・準不燃ビニル壁紙",방염가능:"防炎対応可",방염단가:"防炎仕様単価",방염비:"防炎加工費",방염직물:"防炎生地",백페인트글라스:"カラーガラス",버너:"バーナー仕上げ",베로징크:"ベロジンク(チタン亜鉛合金板)",벨벳:"ベルベット",벽:"壁",벽돌:"レンガ","벽돌,시멘트블록":"レンガ・コンクリートブロック",벽장재:"壁装材",벽지:"壁紙",벽타일:"壁タイル",별도문의:"別途お問い合わせ",보행용:"歩行用","부가세 별도":"税別",부가세별도:"税別",분체도장:"粉体塗装",불연강판:"不燃鋼板",브라운스톤:"BROWNSTONE",브릭:"ブリック",비닐:"ビニール",비방염:"非防炎",비방염단가:"非防炎仕様単価",빅슬랩:"大判スラブ",빅스톤:"ビッグストーン",빅우드:"ビッグウッド",사각리브보드:"角リブボード",사이딩판넬:"サイディング外壁材",사틴글라스:"フロストガラス",사파이어:"サファイア","산마르코(Sanmarco)":"Sanmarco",삼원메탈:"サムウォンメタル",삼원유리:"サムウォンガラス",삼호우드:"サムホウッド",삼화페인트:"サムファペイント",상업용:"商業用",상판:"天板",샌드스톤:"サンドストーン",서울벽지:"ソウル壁紙",서중:"ソジュン",석재:"石材",섬유:"繊維",섬유도장:"繊維壁",세라믹:"セラミック","세라믹 사이딩":"窯業系サイディング",세라믹·빅슬랩:"大判タイル・セラミックスラブ",세라믹고벽돌:"セラミックアンティークレンガ",세라믹롱브릭:"セラミックロングブリック",세라믹타일:"セラミックタイル",솔리드:"ソリッド",수리산업:"スリ産業",수성페인트:"水性塗料",수입산:"海外製",수지마감재:"樹脂仕上げ材",수지플라스틱:"樹脂プラスチック",슈퍼팔코스타:"スーパーパルコスタ(高耐食めっき鋼板)",스크린루버:"スクリーンルーバー",스타코:"スタッコ","스테인리스 스틸":"ステンレス",스톤:"ストーン","스톤 대리석":"ストーン大理石","스톤&마블":"ストーン&マーブル",스튜디오미콘:"スタジオミコン",스페셜페인트:"意匠性塗料","스포츠 매트":"スポーツマット",시멘트보드:"セメント板","시멘트보드,콘크리트판넬":"セメント板・押出成形セメント板",시멘트블럭:"コンクリートブロック",시멘트타일:"セメントタイル",신명마루:"シンミョンフローリング",신한벽지:"シンハン壁紙",실내:"屋内",실내벽:"室内壁",실내외:"屋内外",실리콘:"シリコン",실외:"屋外",실크벽지:"ビニル壁紙",실크천정지:"天井用ビニル壁紙",씨엠코리아:"CM KOREA",아르테스터코:"アルテスタッコ(エンボスジンク調アルミ外装材)",아르테징크:"アルテジンク(ジンク調アルミ外装材)",아크게이트:"アークゲート",아크릴루바:"アクリルルーバー",아크릴포장재:"アクリル系舗装材",아크릴플라스터:"アクリルプラスター",아트보드:"アートボード",아트월:"アートウォール","아티잰(ARTISAN)":"ARTISAN",액체금속:"リキッドメタル",앱스트랙트:"アブストラクト",양면제작:"両面製作","어쿠스틱 판넬":"吸音パネル",에코닐:"エコニール",에폭시:"エポキシ樹脂系塗り床","엔지니어드 플로링":"複合フローリング(挽き板)",엔지니어드스톤:"クオーツストーン",엠투세라믹:"M2セラミック","엣지 및 래핑재":"木口テープ・ラッピング材",영림:"YOUNGLIM",예림:"YEARIM",온돌난방:"床暖房",올레핀:"オレフィン",외벽:"外壁",외부:"屋外",외장재:"外装材",우드:"ウッド",우드타일:"ウッドタイル",우드플로링:"フローリング",우레탄:"ウレタン樹脂系塗り床",울:"ウール",원목마루:"挽き板フローリング",원목질감:"無垢材の質感",원목판재:"無垢板",월마스터:"ウォールマスター",월블럭:"ウォールブロック",유광:"光沢",유럽미장:"ヨーロッパ左官",유럽미장재:"ヨーロッパ左官材",유로세라믹:"ユーロセラミック","유리,유리블럭":"ガラス・ガラスブロック",유리칠판:"ガラス製ホワイトボード",유승:"ユスン",유약벽돌:"施釉レンガ",윤현상재:"ユンヒョン商材",이음데코:"イウムデコ",인목:"インモク",인조가죽:"合成皮革・ビニールレザー",인조고벽돌:"人造アンティークレンガ",인조대리석:"人工大理石",인조석:"人造石",인조석타일:"人造石タイル","인터페이스(Interface)":"Interface",인테리어패밀리:"インテリアファミリー",인테리어필름:"化粧フィルム",일신석재:"イルシン石材",자갈:"砂利",자갈석:"砂利石",자기질:"磁器質タイル",잔다듬:"小叩き仕上げ",장:"枚",장판:"クッションフロア","장판,롤시트,LVS":"クッションフロア・ビニル床シート",장판시공:"クッションフロア施工","재생 나일론":"再生ナイロン","재생 폴리아마이드":"再生ポリアミド",재원금속:"ジェウォンメタル",적층:"積層",전돌:"塼(敷瓦)",전돌타일:"塼タイル(敷瓦)",전통전돌:"伝統塼(敷瓦)",점토기와:"粘土瓦",점토롱브릭:"粘土ロングブリック",점토벽돌:"焼成レンガ",점토타일:"粘土タイル",제일브릭:"チェイルブリック",조광페인트:"チョグァンペイント",조양공업:"チョヤン工業",조은컴퍼니:"チョウンカンパニー",주거용:"住宅用",직각:"直角",진성테크:"ジンソンテック",진스틸코리아:"ジンスチールコリア",진텍징크:"ジンテック(チタン亜鉛合金板)",집성판:"集成材",창일이엔지:"チャンイルENG",천연미장재:"天然左官材",천연석:"天然石",천연석롱브릭:"天然石ロングブリック",천연석벽돌:"天然石レンガ",천연석타일:"天然石タイル",천장:"天井",천장지:"天井紙",천정:"天井",천정지:"天井紙",철평석:"鉄平石",친환경:"環境配慮",친환경미장형페인트:"環境配慮型の左官調塗料",친환경적:"環境に配慮した",카티나:"カティナ",카펫타일:"タイルカーペット",칼징크:"カルジンク(ジンク調カラー鋼板)",커터칼:"カッターナイフ",컬러:"カラー",컬러강판:"カラー鋼板",컬러보드:"カラーボード",컬러스텐:"カラーステン",코노시마:"KONOSHIMA",콘크리트:"コンクリート",콘크리트모르타르:"コンクリートモルタル",콘크리트패널:"押出成形セメント板",퀄사이트:"クォーツァイト",클래식우드:"クラシックウッド",클레이플라스터:"クレイプラスター",타공보드:"有孔ボード",타이거스톤:"TIGER STONE",타일:"タイル","타일형 강마루":"タイル調複合フローリング","타즈 아노다이징":"タズ(アルマイト処理アルミパネル)",타즈징크:"タズジンク(ジンク調アルミ外装材)",탄성포장재:"弾性舗装材",탄화목:"炭化木",테라조:"テラゾー",테라코타:"テラコッタ",텍스메이드:"テックスメイド",텍스타일:"テキスタイル",텐셀:"テンセル",템바보드:"リブパネル",토도세라믹:"トドセラミック",토로라이프:"トロライフ",토석:"土石",톱다이:"丸ノコ台",트라이스톤:"TRISTONE",특수타일:"特殊タイル",틸존스:"ティルジョンス",파벽돌타일:"ブリックタイル",판망암:"片麻岩ネット貼りタイル",판테온:"PANTHEON",팔라토브:"パラトーブ(木目調プリント鋼板)",패브릭:"椅子張り生地・ファブリック",패턴:"パターン",페인트:"塗料",평당:"坪あたり",평당단가:"坪単価",포세린:"磁器質タイル","포세린 화강석":"磁器質(御影石調)",포스코:"POSCO","포스코 스틸리온":"POSCO STEELION",폴리싱:"本磨き仕上げ",폴리아마이드:"ポリアミド",폴리에스터:"ポリエステル",폴리우레탄:"ポリウレタン",폴리카보네이트:"ポリカーボネート",폴리프로필렌:"ポリプロピレン",풀바른:"のり付き",프리미엄:"プレミアム","프리미엄 나일론":"プレミアムナイロン","프리미엄 데코타일":"高意匠フロアタイル","프리미엄 비닐벽지":"ハイグレードビニル壁紙","프리미엄 실크벽지":"ハイグレードビニル壁紙",프리미엄솔리드:"プレミアムソリッド",프리미엄우드:"プレミアムウッド",플로텍스:"フロテックス",하이브리드마루:"ハイブリッドフローリング",한국바로코:"韓国バロコ","한샘 유니트":"HANSSEM UNIT","한셈 비츠":"ハンセム ビッツ",한솔홈데코:"HANSOL HOMEDECO",합성피혁:"合成皮革",합지벽지:"紙壁紙",합판:"合板",헤베:"㎡",헤베당:"㎡あたり","현대 유넥스":"HYUNDAI UNEX","현대 칸스톤":"HYUNDAI CANSTONE","현대 하넥스":"HYUNDAI HANEX",현대시트:"ヒュンダイシート","현대L&C":"HYUNDAI L&C",현무암:"玄武岩",현장시공:"現場施工",혼드:"水磨き仕上げ",혼드마감:"水磨き仕上げ",혼방직물:"混紡生地",화강석:"御影石",환경성적인증:"韓国環境性能表示認証",환경표지인증:"韓国環境ラベル認証",회벽:"漆喰調",흡음도장:"吸音塗装",흡음보드:"吸音板",희노끼:"ヒノキ",CRC보드:"繊維強化セメント板(CRCボード)",ef루프:"efルーフ",HPL:"メラミン化粧板(HPL)","IDP(아이디피)":"IDP","LG 비아테라":"LG VIATERA","LG 하이막스":"LG HI-MACS",LPM:"低圧メラミン化粧板(LPM)",LVS:"ビニル床シート(LVS)",LVT:"LVT(ラグジュアリービニルタイル)","LX 지인":"LX Z:IN","LX Z:IN(LX지인)":"LX Z:IN",LX지인:"LX Z:IN",M2당:"㎡あたり","㎡당":"㎡あたり",MPK세라믹:"MPKセラミック",PVC타일:"ビニル床タイル",SPC:"SPC床材","WPC 월패널":"WPCウォールパネル","데코타일,LVT":"フロアタイル・LVT",텍스:"岩綿吸音板",에칭시트:"エッチングシート",올고다:"オルゴダ",한국:"韓国",대한민국:"韓国",중국:"中国",이탈리아:"イタリア",미국:"アメリカ",스위스:"スイス",독일:"ドイツ",터키:"トルコ",대만:"台湾",덴마크:"デンマーク",캐나다:"カナダ",콜롬비아:"コロンビア",스페인:"スペイン",일본:"日本",유럽:"ヨーロッパ",영국:"イギリス",이스라엘:"イスラエル",네덜란드:"オランダ",리투아니아:"リトアニア",인도:"インド",포르투갈:"ポルトガル",벨기에:"ベルギー",브라질:"ブラジル",프랑스:"フランス",그리스:"ギリシャ",코스타리카:"コスタリカ",북미:"北米",이집트:"エジプト",노르웨이:"ノルウェー",베트남:"ベトナム",아르메니아:"アルメニア",오만:"オマーン",인도네시아:"インドネシア",핀란드:"フィンランド",불가리아:"ブルガリア",아프리카:"アフリカ",팔레스타인:"パレスチナ",필리핀:"フィリピン",앙골라:"アンゴラ",이란:"イラン",페루:"ペルー",보스니아:"ボスニア",태국:"タイ",파키스탄:"パキスタン",마이톤:"マイトン",마이텍스:"マイテックス",베나토:"ベナート",스트라튬:"ストラタム",캐스케이드:"カスケード",벨라시모:"ベラシモ",사운드윈:"サウンドウィン","사운드윈 제로":"サウンドウィン ゼロ","석고텍스 PLUS":"石膏ボード吸音板 PLUS",도기질:"陶器質","분채 타공 철판":"粉体塗装パンチング鋼板",그라데이션:"グラデーション",다중색:"マルチカラー",포세린·빅슬랩:"磁器質タイル\xb7大判スラブ",사하라·클라우디아:"サハラ\xb7クラウディア","우드\xb7네추럴 우드":"ウッド\xb7ナチュラルウッド","우드\xb7키친 우드":"ウッド\xb7キッチンウッド",레더·글리터:"レザー\xb7グリッター",스톤·마블:"ストーン\xb7マーブル",스톤·콘크리트:"ストーン\xb7コンクリート",솔리드·엠보:"ソリッド\xb7エンボス","솔리드\xb7수퍼 매트":"ソリッド\xb7スーパーマット",솔리드·페인트:"ソリッド\xb7ペイント","향균\xb7솔리드 향균":"抗菌\xb7ソリッド抗菌","향균\xb7우드 향균":"抗菌\xb7ウッド抗菌",미메틱보드:"ミメティックボード",해당없음:"該当なし",마코디:"Macodi","자재 샘플실":"資材サンプル室",자재샘플실:"資材サンプル室","협업 신청":"コラボ申請",협업신청:"コラボ申請","입점 신청":"出店申請",입점신청:"出店申請","디지털 샘플실":"デジタルサンプル室","프리미엄 \xb7 제휴":"プレミアム・提携",프리미엄·제휴:"プレミアム・提携","협업 문의":"コラボ問い合わせ","공급 제휴":"供給提携","마코디 사용법":"マコディの使い方","로그인 후 확인":"ログイン後に確認","비밀 혜택":"シークレット特典","설계 단가":"設計単価","설계 단가(m\xb2)":"設計単価(㎡)","설계 단가(m2)":"設計単価(㎡)",설계단가:"設計単価","제휴 단가":"提携単価","제휴 단가(m\xb2)":"提携単価(㎡)","제휴 단가(m2)":"提携単価(㎡)",판매단가:"販売単価","판매단가(m\xb2)":"販売単価(㎡)","판매단가(㎡)":"販売単価(㎡)","합계(판매가)":"合計(販売価格)",제휴할인:"提携割引",별도문의:"別途お問い合わせ","별도 문의":"別途お問い合わせ",가격문의:"価格はお問い合わせ","부가세 별도":"税別",원:"ウォン",만원:"万ウォン",억원:"億ウォン","원/㎡":"ウォン/㎡",정렬:"並び替え",브랜드:"ブランド",시리즈:"シリーズ","사이즈(mm)":"サイズ(mm)",사이즈:"サイズ","단가(m\xb2)":"単価(㎡)",단가:"単価",광택:"光沢",광택도:"光沢度",원산지:"原産地",위치:"位置",용도:"用途",검색:"検索",전체보기:"すべて","심리스/PBR":"シームレス/PBR",심리스:"シームレス",무광:"マット",유광:"光沢",반광:"半光沢",상세정보:"詳細情報",제품명:"製品名",상품코드:"商品コード",구분:"区分",종류:"種類",국가:"国","샘플 담기":"サンプル追加","스펙북 담기":"スペックブック追加","내 아카이브 열기":"マイアーカイブを開く","최근 본 상품":"最近見た商品","실시간으로 집계 중":"リアルタイム集計中","도막\xb7포장 바닥재":"塗り床・舗装材",도막형바닥재:"塗り床材",탄성포장재:"弾性舗装材",아크릴포장재:"アクリル系舗装材",실크벽지:"ビニル壁紙","방염 실크벽지":"不燃・準不燃ビニル壁紙",원목마루:"挽き板フローリング",강마루:"複合フローリング",데코타일:"フロアタイル",포세린:"磁器質タイル",인테리어필름:"化粧フィルム",인조대리석:"人工大理石",엔지니어드스톤:"クオーツストーン",한국:"韓国",중국:"中国",이탈리아:"イタリア",미국:"アメリカ",독일:"ドイツ",일본:"日本",국내산:"国内産",수입산:"輸入品"};var c=n(64911),l=n(40257);let s=/[가-힣]/,d="ja_tx_v2",u=new Set(["SCRIPT","STYLE","NOSCRIPT","TEXTAREA","CODE","PRE","INPUT"]),f=c.v;function p(){let[e,t]=(0,i.useState)("ja"===l.env.NEXT_PUBLIC_LOCALE);return((0,i.useEffect)(()=>{if(!f()){t(!1);return}document.documentElement.lang="ja",t(!0);let e={};try{e=JSON.parse(localStorage.getItem(d)||"{}")}catch(t){e={}}let n=()=>{try{localStorage.setItem(d,JSON.stringify(e))}catch(e){}},o=new WeakMap,i=new WeakMap,c=e=>{let t=e.parentElement;if(!t||u.has(t.tagName)||t.closest("[data-no-ja]"))return!0;let n=e.nodeValue||"";if(!s.test(n))return!0;let i=o.get(e);return null!=i&&e.nodeValue===i},l=e=>{let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),o=n.nextNode();for(;o;)c(o)||t.push(o),o=n.nextNode();return t},p=(e,t)=>(e.match(/^\s*/)||[""])[0]+t+(e.match(/\s*$/)||[""])[0],h=e=>e.replace(/ma[ck]o[dt][iy]/gi,"Macodi").replace(/マコ[ーゥ]?デ[ィイ]?|マコデ/g,"Macodi"),m=(e,t)=>{let n=e.nodeValue||"",i=p(n,h(t));i!==n&&(e.nodeValue=i,o.set(e,i))},g={만:"万",억:"億",조:"兆"},x=e=>{let t=e.replace(/([0-9][0-9,]*)\s*([만억조])?\s*원/g,(e,t,n)=>"".concat(t).concat(n?g[n]:"","ウォン"));return t!==e?t:null},w=async t=>{let n=Array.from(new Set(t.map(e=>e.trim()).filter(Boolean))).filter(t=>null==e[t]);for(let t=0;t{var o;e[t]=null!==(o=i[n])&&void 0!==o?o:t})}catch(e){}}},b=async t=>{let i=t.filter(e=>e.isConnected&&!c(e));if(!i.length)return;let r=[];for(let t of i){var l;let n=t.nodeValue||"",i=x(n);if(null!=i){t.nodeValue=i,o.set(t,i);continue}let c=n.trim(),s=null!==(l=a[c])&&void 0!==l?l:e[c];null!=s?m(t,s):r.push(t)}r.length&&(await w(r.map(e=>e.nodeValue||"")),r.forEach(t=>{let n=e[(t.nodeValue||"").trim()];null!=n&&m(t,n)}),n())},v=e=>Array.from(e.querySelectorAll("input[placeholder],textarea[placeholder]")).filter(e=>{let t=e.placeholder||"";return s.test(t)&&i.get(e)!==t}),y=(e,t)=>{let n=p(e.placeholder,h(t));e.placeholder=n,i.set(e,n)},j=async t=>{if(!t.length)return;let n=[];for(let i of t){var o;let t=i.placeholder.trim(),r=null!==(o=a[t])&&void 0!==o?o:e[t];null!=r?y(i,r):n.push(i)}n.length&&(await w(n.map(e=>e.placeholder)),n.forEach(t=>{let n=e[t.placeholder.trim()];null!=n&&y(t,n)}))},C=!1,k=()=>{if(!C){C=!0,t(!1);try{document.documentElement.removeAttribute("data-ja-boot")}catch(e){}}};b(l(document.body)).then(k),j(v(document.body));let I=setTimeout(k,4e3),P=new Set,S=0,E=()=>{S||(S=requestAnimationFrame(()=>{S=0;let e=Array.from(P);P=new Set,b(e),j(v(document.body))}))},_=new MutationObserver(e=>{for(let t of e)"characterData"===t.type?3===t.target.nodeType&&P.add(t.target):t.addedNodes.forEach(e=>{3===e.nodeType?P.add(e):1===e.nodeType&&l(e).forEach(e=>P.add(e))});P.size&&E()});_.observe(document.body,{childList:!0,subtree:!0,characterData:!0});let Z=e=>{var t,n;if(e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey)return;let o=null===(n=e.target)||void 0===n?void 0:null===(t=n.closest)||void 0===t?void 0:t.call(n,"a");if(!o||"_blank"===o.target)return;let i=o.getAttribute("href")||"";/^https?:\/\/(www\.)?macodi\.co\.kr/i.test(i)&&(e.preventDefault(),window.location.assign(i.replace(/^https?:\/\/(www\.)?macodi\.co\.kr/i,window.location.origin)))};return document.addEventListener("click",Z,!0),()=>{_.disconnect(),clearTimeout(I),cancelAnimationFrame(S),document.removeEventListener("click",Z,!0),n()}},[]),e)?(0,o.jsx)("div",{"aria-hidden":!0,style:{position:"fixed",inset:0,zIndex:2147483646,background:"#fff",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,o.jsx)("div",{style:{fontSize:14,color:"#9a9a9a"},children:"読み込み中…"})}):null}},64911:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var o=n(40257);function i(){if("ja"===o.env.NEXT_PUBLIC_LOCALE)return!0;let e=window.location.hostname;if("macodi.net"===e||"www.macodi.net"===e)return!0;try{let e=new URLSearchParams(window.location.search).get("lang");if("ja"===e)return localStorage.setItem("force_ja","1"),!0;if("ko"===e)return localStorage.removeItem("force_ja"),!1;if("1"===localStorage.getItem("force_ja"))return!0}catch(e){}return!1}},61779:function(e,t,n){"use strict";n.d(t,{n:function(){return i},v:function(){return o}});let o="mcd:model3d-notice";function i(e,t){window.dispatchEvent(new CustomEvent(o,{detail:{kind:e,optionLabel:null!=t?t:""}}))}},60174:function(e,t,n){"use strict";n.d(t,{Az:function(){return r},B5:function(){return i},yP:function(){return o}});let o="mcd:premium-cap-sheet",i="PREMIUM_DAILY_LIMIT_WEB";function r(e){window.dispatchEvent(new CustomEvent(o,{detail:{message:null!=e?e:""}}))}},8668:function(e,t,n){"use strict";n.d(t,{WM:function(){return l},ft:function(){return i},kV:function(){return r},qe:function(){return o}});let o={apiKey:"AIzaSyCB--2xNFu3z2hbFS2G1_g1j1aLSioAKaY",authDomain:"macodi-push.firebaseapp.com",projectId:"macodi-push",storageBucket:n(40257).env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET,messagingSenderId:"356231351762",appId:"1:356231351762:web:78c09b0b0659109649cc0b"},i="BACTfl27sU62pBBcFg3NOPx9mVlMyfSrbPOY7QuygpNQfViiZtIomLTkS1T6IQgE_IPHzGHJLYqq54kpZLgYk-M",r=()=>!!o.apiKey&&!!o.projectId&&!!o.appId&&!!o.messagingSenderId&&!!i,a=null;async function c(){if(!r())return null;if(!a){let{initializeApp:e,getApps:t,getApp:i}=await Promise.all([n.e(2873),n.e(738)]).then(n.bind(n,738));a=t().length?i():e(o)}return a}async function l(){if(!r())return null;try{let{getMessaging:e,isSupported:t}=await Promise.all([n.e(2873),n.e(7012)]).then(n.bind(n,27012));if(!await t())return null;let o=await c();if(!o)return null;return e(o)}catch(e){return null}}},54843:function(e,t,n){"use strict";n.d(t,{D4:function(){return c},o2:function(){return s},yA:function(){return a}});var o=n(8668),i=n(45209);let r=null;async function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"web";"Notification"in window&&"granted"===Notification.permission&&await c(e)}async function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"web",t=await (0,o.WM)();if(!t)return!1;let a=await ("undefined"!=typeof navigator&&"serviceWorker"in navigator&&(0,o.kV)()?(r||(r=navigator.serviceWorker.register(function(){let e=new URLSearchParams(Object.entries(o.qe).filter(e=>{let[,t]=e;return"string"==typeof t&&t.length>0})).toString();return"".concat("/firebase-messaging-sw.js","?").concat(e)}(),{scope:"/"}).catch(()=>null)),r):Promise.resolve(null));if(!a)return!1;try{let{getToken:r}=await Promise.all([n.e(2873),n.e(7012)]).then(n.bind(n,27012)),c=await r(t,{vapidKey:o.ft,serviceWorkerRegistration:a});if(!c)return!1;return await (0,i.Us)(c,e)}catch(e){return!1}}let l=!1;async function s(){if(l)return;let e=await (0,o.WM)();if(!e)return;l=!0;let{onMessage:t}=await Promise.all([n.e(2873),n.e(7012)]).then(n.bind(n,27012));t(e,e=>{let t=e.data||{},n=t.title||"마코디 신제품",o=t.url||"/home";"Notification"in window&&"granted"===Notification.permission&&(new Notification(n,{body:t.body||"",icon:t.icon||"/images/push-icon.png",data:{url:o}}).onclick=()=>{window.focus(),window.location.href=o})})}},45209:function(e,t,n){"use strict";n.d(t,{Sv:function(){return r},Us:function(){return i}});var o=n(29918);async function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"web";try{return await o.et.post("/push/subscribe",{token:e,platform:t}),!0}catch(e){return!1}}async function r(){try{var e;let t=await o.et.get("/push/status");return!!(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.active)}catch(e){return!1}}},71670:function(e,t,n){"use strict";n.d(t,{Rw:function(){return l},Zd:function(){return a},eP:function(){return s},fH:function(){return d},iv:function(){return c}});var o=n(27872),i=n(8668),r=n(45209);let a="mcd:push-prompt",c="mcd:plugin-push-prompt",l="mcd:push-granted-info";function s(e){(0,o.P1)()&&window.dispatchEvent(new CustomEvent(a,{detail:{message:e}}))}async function d(e){if(function(){try{if(window.sketchup||document.documentElement.classList.contains("su-plugin")||"1"===sessionStorage.getItem("__mcd_su"))return!0}catch(e){}return!1}()&&(0,i.kV)()){try{if("1"===localStorage.getItem("mcd_plugin_pushopt_dismissed"))return}catch(e){}try{if(await (0,r.Sv)())return}catch(e){}window.dispatchEvent(new CustomEvent(c,{detail:{message:e}}))}}},9927:function(e,t,n){"use strict";n.d(t,{L:function(){return o},q:function(){return i}});let o="mcd:exhausted-sheet";function i(){window.dispatchEvent(new CustomEvent(o))}},73196:function(e,t,n){"use strict";let o=(0,n(43618).cn)({key:"bookmarkOverridesAtom",default:{}});t.Z=o},17140:function(e,t,n){"use strict";let o=(0,n(43618).cn)({key:"currentFileKey",default:""});t.Z=o},2132:function(e,t,n){"use strict";let o=(0,n(43618).cn)({key:"currentFileName",default:""});t.Z=o},32806:function(e,t,n){"use strict";let o=(0,n(43618).cn)({key:"currentProjectGuid",default:""});t.Z=o},8927:function(e,t,n){"use strict";n.d(t,{db:function(){return i},ik:function(){return c},nZ:function(){return a},tN:function(){return r}});var o=n(29918);let i=async e=>{try{var t;let n=localStorage.getItem("TOKEN");if(!n)return e;let i=await o.et.post("/user/oauth/handoff",{},{headers:{Authorization:"Bearer ".concat(n)}}),r=null==i?void 0:null===(t=i.data)||void 0===t?void 0:t.id;if(!r)return e;let a=new URL(e,window.location.origin);return a.searchParams.set("handoff",String(r)),a.toString()}catch(t){return e}},r=async e=>{let t=window.sketchup;if(!(null==t?void 0:t.openExternal))return;let n=await i(e);try{t.openExternal(n)}catch(e){}},a=e=>{let t=window;if(t.sketchup||"undefined"!=typeof document&&document.documentElement.classList.contains("su-plugin"))try{var n;if("function"==typeof(null===(n=t.sketchup)||void 0===n?void 0:n.openExternal)){t.sketchup.openExternal(e);return}if("function"==typeof t.__mcdOpenExternal){t.__mcdOpenExternal(e);return}}catch(e){}try{window.open(e,"_blank","noopener,noreferrer,width=1100,height=720,menubar=no,toolbar=no")}catch(e){}},c=async()=>{let e="";try{e=new URLSearchParams(window.location.search).get("handoff")||""}catch(e){return!1}if(!e)return!1;let t=/^[A-Za-z0-9_-]{8,64}$/.test(e);try{let e=new URL(window.location.href);e.searchParams.delete("handoff"),window.history.replaceState(null,"",e.toString())}catch(e){}if(!t)return!1;try{if(localStorage.getItem("TOKEN"))return!1}catch(e){}try{var n;let t=await o.et.get("/user/oauth/handoff/".concat(e)),i=null==t?void 0:null===(n=t.data)||void 0===n?void 0:n.token;if(!i)return!1;return localStorage.setItem("TOKEN",i),o.et.defaults.headers.common.Authorization="Bearer ".concat(i),!0}catch(e){return!1}}},2648:function(){},2778:function(){}},function(e){e.O(0,[2461,5676,691,156,9759,6484,7341,9895,8606,7951,1210,3645,2971,2117,1744],function(){return e(e.s=21033)}),_N_E=e.O()}]);