"use strict"; (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ [2987], { 5198: function(e, i, n) { n.d(i, { x: function() { return a }, X: function() { return d } }); var t = n(266), r = n(809), o = n.n(r), s = n(4704), l = "/ep/v1/global", a = function() { var e = (0, t.Z)(o().mark((function e(i) { var n; return o().wrap((function(e) { for (;;) switch (e.prev = e.next) { case 0: return n = (0, s.Z)(), e.next = 3, n.get(l + "/", {}); case 3: return e.abrupt("return", e.sent); case 4: case "end": return e.stop() } }), e) }))); return function(i) { return e.apply(this, arguments) } }(), d = function() { var e = (0, t.Z)(o().mark((function e(i) { var n; return o().wrap((function(e) { for (;;) switch (e.prev = e.next) { case 0: return n = (0, s.Z)(), e.next = 3, n.get(l + "/popup.php", {}); case 3: return e.abrupt("return", e.sent); case 4: case "end": return e.stop() } }), e) }))); return function(i) { return e.apply(this, arguments) } }() }, 7438: function(e, i, n) { n.d(i, { t$: function() { return a }, CP: function() { return d }, DD: function() { return c }, pJ: function() { return p }, Zk: function() { return h }, h9: function() { return x }, n3: function() { return u } }); var t = n(266), r = n(809), o = n.n(r), s = n(4704), l = "/ep/v1/product", a = function() { var e = (0, t.Z)(o().mark((function e(i) { var n; return o().wrap((function(e) { for (;;) switch (e.prev = e.next) { case 0: return n = (0, s.Z)(), e.next = 3, n.get("/ep/v1/products/", { params: { orderby: i.orderby, category_ID: ___GET['id'], keyword: ___GET['keyword'], posts_per_page: i.posts_per_page, paged: i.paged } }); case 3: return e.abrupt("return", e.sent); case 4: case "end": return e.stop() } }), e) }))); return function(i) { return e.apply(this, arguments) } }(), d = function() { var e = (0, t.Z)(o().mark((function e(i) { var n; return o().wrap((function(e) { for (;;) switch (e.prev = e.next) { case 0: return n = (0, s.Z)(), e.next = 3, n.get(l + "/" + encodeURI(i.product_ID), {}); case 3: return e.abrupt("return", e.sent); case 4: case "end": return e.stop() } }), e) }))); return function(i) { return e.apply(this, arguments) } }(), c = function() { var e = (0, t.Z)(o().mark((function e(i) { var n; return o().wrap((function(e) { for (;;) switch (e.prev = e.next) { case 0: return n = (0, s.Z)(), e.next = 3, n.get(l + "/related2.php?product_ID=" + i.product_ID , {}); case 3: return e.abrupt("return", e.sent); case 4: case "end": return e.stop() } }), e) }))); return function(i) { return e.apply(this, arguments) } }(), p = function() { var e = (0, t.Z)(o().mark((function e(i) { var n; return o().wrap((function(e) { for (;;) switch (e.prev = e.next) { case 0: return n = (0, s.Z)(), e.next = 3, n.get(l + "/point.php", { params: { orderby: i.orderby, category_ID: i.category_ID, paged: i.paged, posts_per_page: i.posts_per_page } }); case 3: return e.abrupt("return", e.sent); case 4: case "end": return e.stop() } }), e) }))); return function(i) { return e.apply(this, arguments) } }(), h = function() { var e = (0, t.Z)(o().mark((function e(i) { var n; return o().wrap((function(e) { for (;;) switch (e.prev = e.next) { case 0: return n = (0, s.Z)(), e.next = 3, n.get("/ep/v1/review/product/?id=" + encodeURI(i.product_ID), { params: { posts_per_page: i.posts_per_page, paged: i.paged } }); case 3: return e.abrupt("return", e.sent); case 4: case "end": return e.stop() } }), e) }))); return function(i) { return e.apply(this, arguments) } }(), x = function() { var e = (0, t.Z)(o().mark((function e(i) { var n; return o().wrap((function(e) { for (;;) switch (e.prev = e.next) { case 0: return n = (0, s.Z)(), e.next = 3, n.get(l + "/category.php", { params: { category_ID: i.category_ID } }); case 3: return e.abrupt("return", e.sent); case 4: case "end": return e.stop() } }), e) }))); return function(i) { return e.apply(this, arguments) } }(), u = function() { var e = (0, t.Z)(o().mark((function e(i) { var n; return o().wrap((function(e) { for (;;) switch (e.prev = e.next) { case 0: return n = (0, s.Z)(), e.next = 3, n.get("/ep/v1/category.php", { params: { category_ID: i.category_ID } }); case 3: return e.abrupt("return", e.sent); case 4: case "end": return e.stop() } }), e) }))); return function(i) { return e.apply(this, arguments) } }() }, 9395: function(e, i, n) { n.d(i, { Z: function() { return O } }); var t = n(7294), r = n(1664), o = n(3617), s = n(9817), l = n(3725), a = n(6044), d = n(9704), c = n(1163), p = n(2788), h = p.ZP.div.withConfig({ displayName: "styled__LatelyWrapper", componentId: "sc-103b4f0-0" })(["padding:30px 40px;a{display:none;}@media ", "{padding:30px 20px;a{display:block;position:absolute;bottom:0;left:0;border-radius:0;}}"], (function(e) { return e.theme.mobile })), x = p.ZP.div.withConfig({ displayName: "styled__LatelyTitle", componentId: "sc-103b4f0-1" })(["font-size:16px;font-weight:500;line-height:23px;color:#000;margin-bottom:20px;@media ", "{font-weight:bold;border-bottom:1px solid #000;padding-bottom:15px;margin-bottom:15px;}"], (function(e) { return e.theme.mobile })), u = p.ZP.div.withConfig({ displayName: "styled__LatelyListWrapper", componentId: "sc-103b4f0-2" })(["max-height:180px;min-height:180px;overflow:scroll;@media ", "{max-height:270px;min-height:270px;}"], (function(e) { return e.theme.mobile })), g = p.ZP.div.withConfig({ displayName: "styled__LatelyList", componentId: "sc-103b4f0-3" })(["& > div{display:flex;margin-bottom:20px;cursor:pointer;transition:.4s;:hover{opacity:0.6;}}"]), m = p.ZP.div.withConfig({ displayName: "styled__ProductThumbnial", componentId: "sc-103b4f0-4" })(["border:1px solid #111;width:70px;height:70px;border-radius:3px;background-color:#fff;border:1px solid #eee;background-image:url(", ");background-repeat:no-repeat;background-size:85% auto;background-position:center;"], (function(e) { return e.url ? e.url : "" })), f = p.ZP.div.withConfig({ displayName: "styled__ProductInfo", componentId: "sc-103b4f0-5" })(["max-width:calc(100% - 70px);padding-left:20px;"]), j = p.ZP.div.withConfig({ displayName: "styled__Cate", componentId: "sc-103b4f0-6" })(["font-size:12px;line-height:17px;color:#646464;margin-top:4px;margin-bottom:3px;"]), b = p.ZP.div.withConfig({ displayName: "styled__Title", componentId: "sc-103b4f0-7" })(["font-size:12px;line-height:17px;color:#878787;margin-bottom:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]), w = p.ZP.div.withConfig({ displayName: "styled__Price", componentId: "sc-103b4f0-8" })(['font-family:"Roboto";font-size:14px;font-weight:500;line-height:16px;color:#000;']), y = p.ZP.div.withConfig({ displayName: "styled__Null", componentId: "sc-103b4f0-9" })(["font-size:14px;line-height:20px;color:#666;text-align:center;padding-top:70px;"]), v = n(5893), _ = function(e) { var i = (0, c.useRouter)(), n = (0, t.useState)(), r = n[0], s = n[1]; (0, t.useEffect)((function() { r || s(JSON.parse(localStorage.getItem("lately"))) })), e.exist(r); var l = r ? r.map((function(e, i) { return e.ID })) : "", d = function() { i.push("/product22/" + (l[0] ? l[0] : "")) }; return (0, v.jsx)(a.Z, { show: e.show, onClose: e.onClose, small: !0, children: (0, v.jsxs)(h, { children: [(0, v.jsx)(x, { children: "최근 본 상품" }), (0, v.jsx)(u, { children: r ? r.map((function(e, i) { return (0, v.jsx)(g, { children: (0, v.jsxs)("div", { onClick: d, children: [(0, v.jsx)(m, { url: e.thumbnail ? e.thumbnail : "" }), (0, v.jsxs)(f, { children: [(0, v.jsx)(j, { children: e.cate ? e.cate : "" }), (0, v.jsx)(b, { children: e.title ? e.title : "" }), (0, v.jsx)(w, { children: e.price ? e.price : "" })] })] }) }) })) : (0, v.jsx)(y, { children: "최근 본 상품이 없습니다." }) }), (0, v.jsx)(o.Z, { onClick: e.onClose, children: "닫기" })] }) }) }, k = n(2830), C = n(9303), I = p.ZP.div.withConfig({ displayName: "styled__FooterWrapper", componentId: "sc-1tmk1pz-0" })(["width:100%;height:auto;", " @media ", "{overflow-x:hidden;background-color:#fff;}"], (function(e) { return e.border ? "" : "\n border-top: 1px solid #eee;\n " }), (function(e) { return e.theme.mobile })), N = p.ZP.div.withConfig({ displayName: "styled__FooterContainer", componentId: "sc-1tmk1pz-1" })(["max-width:1322px;margin:0 auto;padding:51px 20px;position:relative;:before{position:absolute;content:'';top:0;right:388px;width:100%;height:100%;border-right:1px solid #eee;}@media ", "{padding:30px 50px 50px 50px;:before{border:none;}}"], (function(e) { return e.theme.tablet })), Z = p.ZP.div.withConfig({ displayName: "styled__FooterContent", componentId: "sc-1tmk1pz-2" })(["display:flex;justify-content:flex-start;@media ", "{display:block;}"], (function(e) { return e.theme.laptop })), z = p.ZP.img.withConfig({ displayName: "styled__Logo", componentId: "sc-1tmk1pz-3" })(["width:198px;height:28px;margin-right:93px;cursor:pointer;@media ", "{display:block;margin-right:0;margin-bottom:30px;}@media ", "{width:130px;height:16.5px;margin-right:0;margin:50px 20px 0 20px;}"], (function(e) { return e.theme.laptop }), (function(e) { return e.theme.mobile })), P = p.ZP.div.withConfig({ displayName: "styled__FooterMenu", componentId: "sc-1tmk1pz-4" })(["margin:0 165px 0 0;@media ", "{margin:0 0;display:inline-block;}@media ", "{display:block;}@media ", "{display:block;margin:0 0;padding:0 20px 30px 20px;}"], (function(e) { return e.theme.laptop }), (function(e) { return e.theme.tablet }), (function(e) { return e.theme.mobile })), F = p.ZP.div.withConfig({ displayName: "styled__BotMenu", componentId: "sc-1tmk1pz-5" })(["border-top:1px solid #eee;padding:30px 20px;", ""], (function(e) { return e.border ? "" : "\n background-color: #fafafa;\n " })), D = p.ZP.div.withConfig({ displayName: "styled__TopMenu", componentId: "sc-1tmk1pz-6" })(["li{display:inline-block;margin:0 25px 0 0;}a{position:relative;font-size:16px;font-weight:500;line-height:23px;color:#000;cursor:pointer;transition:.4s;:hover{opacity:0.6;}}@media ", "{padding:20px 0 10px 0;p{font-size:14px;font-weight:500;line-height:1.57;color:#000000;}}"], (function(e) { return e.theme.mobile })), S = p.ZP.div.withConfig({ displayName: "styled__Center", componentId: "sc-1tmk1pz-7" })(["margin:19px 0 30px 0;p{margin:0 0 16px 0;font-size:13px;font-weight:normal;line-height:19px;color:#444;}span{font-size:13px;font-weight:normal;line-height:1.54;color:#444;}@media ", "{}"], (function(e) { return e.theme.mobile })), M = p.ZP.div.withConfig({ displayName: "styled__BottomMenu", componentId: "sc-1tmk1pz-8" })(["li{display:none;margin:0 15px 7px 0;}a{position:relative;font-size:13px;font-weight:normal;line-height:19px;color:#666;transition:.4s;:hover{opacity:0.6;}:before{position:absolute;content:'';top:50%;right:-8px;transform:translateY(-50%);height:11px;border-right:1px solid #eee;}}.law{a:before{border:none;}}span{font-size:14px;font-weight:normal;line-height:20px;color:#aaa;}@media ", "{span{font-size:12px;font-weight:normal;line-height:2;color:#444444;}li{margin:20px 13px 5px 0;}a{font-size:12px;:before{top:58%;right:-7px;height:10px;}}.copy{font-size:13px;font-weight:normal;line-height:normal;color:#aaaaaa;}}"], (function(e) { return e.theme.mobile })), W = p.ZP.div.withConfig({ displayName: "styled__FooterInfor", componentId: "sc-1tmk1pz-9" })(["max-width:253px;p{font-size:16px;font-weight:500;line-height:23px;color:#000;}span{display:block;margin:10px 0 19px 0;font-size:14px;font-weight:normal;line-height:20px;letter-spacing:-0.17px;color:#000;}button{display:inline-block;min-width:253px;width:100%;height:46px;line-height:44px;border:none;border:1px solid #000;border-radius:5px;background-color:#fff;transition:.4s;:hover{opacity:0.6;}}a{font-size:14px;font-weight:normal;color:#000;}@media ", "{display:inline-block;vertical-align:top;float:right;}@media ", "{display:block;float:inherit;margin-top:30px;}@media ", "{display:block;float:inherit;max-width:inherit;margin-top:0;span{margin:0 0;font-size:12px;line-height:normal;color:#666;}button{width:100%;margin:20px 0 0 0;}}"], (function(e) { return e.theme.laptop }), (function(e) { return e.theme.tablet }), (function(e) { return e.theme.mobile })), L = p.ZP.a.withConfig({ displayName: "styled__ChatbotIcon", componentId: "sc-1tmk1pz-10" })(["position:fixed;bottom:177px;right:50px;z-index:99999;.icon{box-shadow:0 2px 4px rgba(0,0,0,0.1),0 12px 28px rgba(0,0,0,0.2);transition:.3s;width:56px;height:56px;background-color:#00A9EB;border-radius:50%;text-align:center;position:relative;transition:.4s;:hover{opacity:0.6;}> div{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:36px;height:36px;background-image:url(/images/chatbot.png);background-size:36px 36px;background-repeat:no-repeat;cursor:pointer;> i{display:inline-block;position:relative;top:9px;vertical-align:top;line-height:24px;width:2px;height:2px;margin:0px 1px;background:#fff;border-radius:50%;animation:circlelight 1.5s infinite 0s alternate;:nth-child(2){animation:circlelight 1.5s infinite .5s alternate;}:nth-child(3){animation:circlelight 1.5s infinite 1.5s alternate;}}}:hover{opacity:.8;}}span{display:block;color:#FF5C75;font-weight:bold;width:100%;margin-top:3px;font-size:12px;text-align:center;}@keyframes circlelight{from{opacity:1;}to{opacity:.2;}}@media ", "{right:20px;bottom:123px;.icon{width:46px;height:46px;> div{width:30px;height:30px;background-size:30px 30px;}}span{display:none;}}"], (function(e) { return e.theme.mobile })), Y = p.ZP.div.withConfig({ displayName: "styled__Lately", componentId: "sc-1tmk1pz-11" })(["display:block;position:fixed;bottom:50px;right:50px;z-index:99999;.icon{box-shadow:0 2px 4px rgba(0,0,0,0.1),0 12px 28px rgba(0,0,0,0.1);transition:.3s;width:56px;height:112px;border-radius:100px;text-align:center;position:rela,tive;background-color:#fff;> div{position:absolute;top:30px;left:50%;transform:translate(-50%,-50%);width:24px;height:24px;background-image:url(/images/lately.png);background-size:24px 24px;background-repeat:no-repeat;cursor:pointer;transition:.4s;:hover{opacity:0.6;}}> div:last-child{position:absolute;top:85px;left:50%;transform:translate(-50%,-50%);width:22px;height:22px;background-image:url(/images/top_arrow.png);background-size:22px 22px;background-repeat:no-repeat;cursor:pointer;transition:.4s;:hover{opacity:0.6;}}}@media ", "{bottom:20px;right:20px;z-index:99999;", " .icon{width:46px;height:88px;> div{top:20px;width:18px;height:18px;background-size:18px 18px;}> div:last-child{top:63px;width:16px;height:16px;background-size:16px 16px;}}}"], (function(e) { return e.theme.mobile }), (function(e) { return e.up ? "\n bottom: 90px;\n " : "" })), O = function(e) { var i = (0, d.I0)(), n = (0, d.v9)((function(e) { return e.me.user_data })), o = ((0, c.useRouter)(), (0, t.useState)()), a = o[0], p = o[1], h = (0, t.useState)(0), x = h[0], u = h[1], g = (0, t.useState)(0), m = g[0], f = g[1], j = function(e) { f(m ? 0 : 1) }; return (0, v.jsxs)(I, { border: e.border, children: [(0, v.jsxs)(C.C1, { children: [(0, v.jsx)(C.pU, { at: "xs", children: (0, v.jsxs)(Z, { children: [(0, v.jsx)(z, { src: "/images/m_logo.gif", alt: "" }), (0, v.jsxs)(P, { children: [(0, v.jsx)(D, { children: (0, v.jsxs)("p", { children: ["고객지원 관련 문의사항은 고객센터를 통해", (0, v.jsx)(s.Br, {}), " 친절히 안내하겠습니다."] }) }), (0, v.jsxs)(W, { children: [(0, v.jsx)("span", { children: "평일 : 10:00 ~ 18:00 (점심 : 12:30 ~ 13:30) 주말 및 공휴일 휴무" }), (0, v.jsx)("button", { children: (0, v.jsx)(r.default, { href: "/service/faq", children: "고객센터" }) })] })] }), (0, v.jsx)(F, { children: (0, v.jsxs)(M, { children: [(0, v.jsxs)("span", { children: ["※야폼몰은 제품을 직접 생산하여 판매하는 사이트가 아닌 구매대행 사이트입니다.", (0, v.jsx)("br", {}), "※야폼몰은 재고를 보유하지않으며 개인적인 자가사용 범위와 수입양내에서만 구매대행을 해드립니다.", (0, v.jsx)("br", {}), "※야폼몰은 인도 제품 구매대행 서비스를 제공하고 있습니다. 수입이나 판매는 진행하지 않고 있습니다.", (0, v.jsx)("br", {}), "※이용자의 안전을 위해 의사의 처방전 또는 지시를 수반하지 않는 의약품의 사용은 삼가 주시기 바랍니다.", (0, v.jsx)("br", {}), "※의약품 개인 수입 수입자 자신의 개인 사용을 목적으로 하는 범위에서만 인정되고 있습니다.", (0, v.jsx)("br", {})] }), (0, v.jsxs)("ul", { children: [(0, v.jsx)("li", { children: (0, v.jsx)(r.default, { href: "/page/65488", children: "이용약관" }) }), (0, v.jsx)("li", { children: (0, v.jsx)(r.default, { href: "/page/3", children: "개인정보취급방침" }) }), (0, v.jsx)("li", { children: (0, v.jsx)(r.default, { href: "/page/65490", children: "이용가이드" }) }), (0, v.jsx)("li", { className: "law", children: (0, v.jsx)(r.default, { href: "/page/65493", children: "특정상거래법" }) })] }), (0, v.jsx)("span", { className: "copy", children: "Copyright ⓒ 2020 YAPOM MALL All rights reserved." })] }) })] }) }), (0, v.jsx)(C.pU, { greaterThan: "xs", children: (0, v.jsx)(N, { children: (0, v.jsxs)(Z, { children: [(0, v.jsx)(z, { src: "/images/logo.gif", alt: "" }), (0, v.jsxs)(P, { children: [(0, v.jsx)(D, { children: (0, v.jsxs)("ul", { children: [(0, v.jsx)("li", { children: (0, v.jsx)(r.default, { href: "/service/notice", children: "공지사항" }) }), (0, v.jsx)("li", { children: (0, v.jsx)(r.default, { href: "/event", children: "이벤트" }) }), (0, v.jsx)("li", { children: (0, v.jsx)(r.default, { href: "/review", children: "이용후기" }) }), (0, v.jsx)("li", { children: (0, v.jsx)(r.default, { href: "/oneinquiry.php", children: "1:1문의" }) }), (0, v.jsx)("li", { children: (0, v.jsx)(r.default, { href: "/orderlist.php", children: "배송조회" }) })] }) }), (0, v.jsxs)(S, { children: [(0, v.jsx)("p", { children: "※ 고객지원 관련 문의사항은 고객센터를 통해 친절히 안내하겠습니다." }), (0, v.jsxs)("span", { children: ["※야폼몰은 제품을 직접 생산하여 판매하는 사이트가 아닌 구매대행 사이트입니다.", (0, v.jsx)("br", {}), "※야폼몰은 재고를 보유하지않으며 개인적인 자가사용 범위와 수입양내에서만 구매대행을 해드립니다.", (0, v.jsx)("br", {}), "※야폼몰은 인도 제품 구매대행 서비스를 제공하고 있습니다. 수입이나 판매는 진행하지 않고 있습니다.", (0, v.jsx)("br", {}), "※이용자의 안전을 위해 의사의 처방전 또는 지시를 수반하지 않는 의약품의 사용은 삼가 주시기 바랍니다.", (0, v.jsx)("br", {}), "※의약품 개인 수입 수입자 자신의 개인 사용을 목적으로 하는 범위에서만 인정되고 있습니다.", (0, v.jsx)("br", {}), (0, v.jsx)("br", {})] })] }), (0, v.jsxs)(M, { children: [(0, v.jsxs)("ul", { children: [(0, v.jsx)("li", { children: (0, v.jsx)(r.default, { href: "/page/65488", children: "이용약관" }) }), (0, v.jsx)("li", { children: (0, v.jsx)(r.default, { href: "/page/3", children: "개인정보취급방침" }) }), (0, v.jsx)("li", { children: (0, v.jsx)(r.default, { href: "/page/65490", children: "이용가이드" }) }), (0, v.jsx)("li", { className: "law", children: (0, v.jsx)(r.default, { href: "/page/65493", children: "특정상거래법" }) })] }), (0, v.jsx)("span", { children: "Copyright ⓒ 2020 YAPOM MALL All rights reserved." })] })] }), (0, v.jsxs)(W, { children: [(0, v.jsx)("p", { children: "운영시간" }), (0, v.jsxs)("span", { children: ["평일 : 9:30 ~ 17:30 (점심 : 12:30 ~ 13:30)", (0, v.jsx)("br", {}), "토요일, 일요일, 공휴일 휴무"] }), (0, v.jsx)("button", { children: (0, v.jsx)(r.default, { href: "/service/faq", children: "고객센터" }) })] })] }) }) })] }),(0, v.jsx)(L, { href: "https://open.kakao.com/o/stkRl1Ag", target: "_blank", /*onClick: function(e) { e.preventDefault(), i((0, k.vN)(1)) },*/ children: (0, v.jsx)("div", { className: "icon", children: (0, v.jsxs)("div", { children: [/*(0, v.jsx)("i", {}), (0, v.jsx)("i", {}), (0, v.jsx)("i", {})*/] }) }) }) , (0, v.jsx)(Y, { children: (0, v.jsxs)("div", { className: "icon", children: [(0, v.jsx)("div", { className: a ? "acitve" : "", href: "#", onClick: j }), (0, v.jsx)("div", { onClick: function() { window.scrollTo({ top: 0, behavior: "smooth" }) } })] }) }), (0, v.jsx)(l.Z, { show: x, onClose: function(e) { u(x ? 0 : 1) }, submit_success: u }), (0, v.jsx)(_, { show: m, onClose: j, exist: p })] }) } }, 1720: function(e, i, n) { n.d(i, { Z: function() { return Ce } }); var t = n(7294), r = n(9249), o = n(9704), s = n(9447), l = n(2830), a = n(1664), d = n(9303), c = n(1537), p = n(9530), h = n(7438), x = n(2788), u = x.ZP.div.withConfig({ displayName: "styled__SideMenuWrapper", componentId: "sc-y9rjk6-0" })(["position:fixed;top:0;left:0;transition:0.6s;z-index:999;", " @media ", "{left:-100vw;height:100%;padding-bottom:0px;", "}"], (function(e) { return e.show ? "\n left: 0px;\n " : "\n left: -500px;\n " }), (function(e) { return e.theme.mobile }), (function(e) { return e.show ? "\n left: 0;\n " : "\n left: -100vw;\n " })), g = x.ZP.div.withConfig({ displayName: "styled__Overlay", componentId: "sc-y9rjk6-1" })(["width:100%;height:100vh;background:rgba(0,0,0,0.4);z-index:990;position:fixed;top:0;left:0;", ""], (function(e) { return e.show ? "\n display: block;\n " : "\n display: none;\n " })), m = x.ZP.div.withConfig({ displayName: "styled__SideMenuInner", componentId: "sc-y9rjk6-2" })(["position:relative;width:360px;height:auto;background-color:#fff;z-index:1000;border-right:1px solid #ebebeb;@media ", "{width:100vw;height:100%;padding-bottom:110px;}"], (function(e) { return e.theme.mobile })), f = x.ZP.div.withConfig({ displayName: "styled__CloseButton", componentId: "sc-y9rjk6-3" })(["position:absolute;top:28px;right:28px;width:16px;height:16px;cursor:pointer;div{position:absolute;top:50%;right:-4px;width:22px;height:2px;background:#111;transform:rotate(45deg);}div:last-child{transform:rotate(-45deg);}@media ", "{top:36px;right:20px;width:20px;height:20px;div{width:22px;}}"], (function(e) { return e.theme.mobile })), j = x.ZP.div.withConfig({ displayName: "styled__Title", componentId: "sc-y9rjk6-4" })(["padding:80px 0px 30px 30px;&.main{padding:80px 0px 30px 50px;}font-weight:600;font-size:20px;line-height:29px;color:#111111;@media ", "{height:58px;line-height:58px;font-size:14px;font-weight:500;padding-left:30px;box-sizing:initial;border-bottom:1px solid #ebebeb;&.main{padding:0px 20px;}}"], (function(e) { return e.theme.mobile })), b = x.ZP.ul.withConfig({ displayName: "styled__Category", componentId: "sc-y9rjk6-5" })(["height:auto;overflow-y:auto;z-index:99;li{height:56px;font-size:14px;font-weight:500;line-height:56px;}li:hover{background-color:#00A9EB;div{display:block;right:-401px;}.arrow{display:block;position:absolute;top:0;right:30px;pointer-events:none;}a{color:#fff;}.sub_ul{li:hover{background-color:#fafafa;}li{a{color:#000;}}}}li{div:hover{display:block;right:-401px;}}svg{transform:translateY(25%);pointer-events:none;}> li > a{padding-left:30px;position:relative;display:block;width:100%;height:100%;}> li a{position:relative;display:block;width:100%;height:100%;}.arrow{display:none;}.sub_ul{li{padding-left:30px;}}", " @media ", "{overflow-y:visible;display:block;height:auto;li{height:65px;line-height:65px;box-sizing:initial;border-bottom:1px solid #ebebeb;}li:hover{div{display:none;}}svg{margin-right:15px;}li > a{padding-left:30px;font-size:14px;}.arrow{display:none;}}"], (function(e) { return e.show ? "\n " : "\n li {\n pointer-events: none;\n }\n " }), (function(e) { return e.theme.mobile })), w = x.ZP.div.withConfig({ displayName: "styled__SubCategory", componentId: "sc-y9rjk6-6" })(["display:none;position:absolute;top:0px;left:360px;width:260px;height:100vh;background-color:#fff;padding-bottom:200px;ul{height:100%;overflow-y:scroll;}"]), y = x.ZP.div.withConfig({ displayName: "styled__LoginInfor", componentId: "sc-y9rjk6-7" })(["padding:50px 0 30px 30px;border-bottom:1px solid #eee;@media ", "{padding:50px 0 30px 0 20px;}"], (function(e) { return e.theme.mobile })), v = x.ZP.div.withConfig({ displayName: "styled__IsLogin", componentId: "sc-y9rjk6-8" })([".login{display:inline-block;}img{display:inline-block;width:40px;height:40px;background:#e1e1e1;border-radius:50%;padding:3px;margin-right:15px;}h2{display:inline-block;font-size:16px;font-weight:bold;color:#000;}span{text-decoration:underline;cursor:pointer;}p{margin:10px 0 0 0;font-size:12px;font-weight:normal;line-height:1.33;color:#aaa;}@media ", "{span{text-decoration:none;}}"], (function(e) { return e.theme.mobile })), _ = x.ZP.div.withConfig({ displayName: "styled__MobileSideScroll", componentId: "sc-y9rjk6-9" })(["overflow:auto;height:100vh;padding-bottom:180px;-ms-overflow-style:none;::-webkit-scrollbar{display:none;}@media ", "{height:100%;overflow-y:auto;padding-bottom:90px;}"], (function(e) { return e.theme.mobile })), k = x.ZP.ul.withConfig({ displayName: "styled__OtherMenu", componentId: "sc-y9rjk6-10" })(["display:block;height:270px;border-top:10px solid #f8f8f8;border-bottom:1px solid #ebebeb;li{font-size:14px;line-height:56px;font-weight:500;color:#000;a{display:inline-block;padding-left:30px;width:100%;height:100%;}}li:hover{background-color:#00A9EB;a{color:#fff;}}@media ", "{height:auto;border-bottom:0px;padding-bottom:30px;}"], (function(e) { return e.theme.mobile })), C = x.ZP.div.withConfig({ displayName: "styled__LoadingRoundStyle", componentId: "sc-y9rjk6-11" })(["padding-left:30px;margin-top:10px;"]), I = x.ZP.div.withConfig({ displayName: "styled__MyBoardList", componentId: "sc-y9rjk6-12" })(["padding:25px 0 25px 0;position:relative;display:flex;justify-content:space-around;align-items:center;text-align:center;border-bottom:10px solid #f8f8f8;p{margin:12px 0 4px 0;font-size:12px;font-weight:500;color:#000;}"]), N = x.ZP.div.withConfig({ displayName: "styled__Mypage", componentId: "sc-y9rjk6-13" })(["cursor:pointer;img{width:26px;height:25px;}"]), Z = x.ZP.div.withConfig({ displayName: "styled__OrderList", componentId: "sc-y9rjk6-14" })(["cursor:pointer;img{width:24px;height:23px;}"]), z = x.ZP.div.withConfig({ displayName: "styled__Basket", componentId: "sc-y9rjk6-15" })(["cursor:pointer;img{width:24px;height:23px;}"]), P = n(5893), F = function(e) { var i = e.show, n = e.onClose, r = (0, o.v9)((function(e) { return e.me.user_data })), s = (0, t.useState)(1), l = s[0], x = s[1], F = (0, t.useState)(""), D = F[0], S = F[1], M = (0, t.useState)(""), W = M[0], L = M[1], Y = (0, t.useState)(""), O = Y[0], T = Y[1], B = function(e) { l != e.target.dataset.id && (L(), S(), x(e.target.dataset.id)) }; return (0, t.useEffect)((function() { O !== l && (T(l), l && (L(0), (0, h.h9)({ category_ID: l }).then((function(e) { 200 == e.data.code && (S(e.data.body), L(e.data.body.categories)) })).catch((function(e) { return console.log(e) })))) })), (0, P.jsxs)(u, { show: i, children: [(0, P.jsx)(g, { show: i, onClick: n }), (0, P.jsxs)(m, { show: i, children: [r ? (0, P.jsx)(y, { children: (0, P.jsxs)(v, { children: [(0, P.jsx)("img", { src: " /images/smile.png", alt: "" }), (0, P.jsxs)("h2", { className: "login", children: ["반가워요 ", r.user_name, "님!"] })] }) }) : (0, P.jsx)(y, { children: (0, P.jsx)(a.default, { href: "/login", children: (0, P.jsxs)(v, { children: [(0, P.jsxs)("h2", { children: [(0, P.jsx)("span", { children: "로그인" }), "이 필요합니다."] }), (0, P.jsxs)("p", { children: ["지금 로그인 하시면", (0, P.jsx)("br", {}), "다양한 서비스를 이용하실 수 있습니다."] })] }) }) }), (0, P.jsxs)(f, { onClick: n, children: [(0, P.jsx)("div", {}), (0, P.jsx)("div", {})] }), (0, P.jsxs)(I, { children: [(0, P.jsx)(a.default, { href: "/mypage.php", children: (0, P.jsxs)(N, { children: [(0, P.jsx)("img", { src: " /images/ca_mypage.png", alt: "" }), (0, P.jsx)("p", { children: "마이페이지" })] }) }), (0, P.jsx)(a.default, { href: "/orderlist.php", children: (0, P.jsxs)(Z, { children: [(0, P.jsx)("img", { src: " /images/ca_orderlist.png", alt: "" }), (0, P.jsx)("p", { children: "주문/배송" })] }) }), (0, P.jsx)(a.default, { href: "/basket.php", children: (0, P.jsxs)(z, { children: [(0, P.jsx)("img", { src: " /images/ca_basket.png", alt: "" }), (0, P.jsx)("p", { children: "장바구니" })] }) })] }), (0, P.jsxs)(_, { children: [(0, P.jsxs)(b, { show: i, children: [ (0, P.jsxs)("li", { onClick: n, children: [(0, P.jsx)(a.default, { href: "/products.php?id=10", children: (0, P.jsxs)("a", { onMouseOver: B, "data-id": "10", children: ["탈모 육모", (0, P.jsx)("span", { className: "arrow", children: c.W.ca_arrow })] }) }), (0, P.jsxs)(w, { children: [(0, P.jsx)(j, { children: "탈모 육모" }), (0, P.jsxs)("ul", { className: "sub_ul", children: [(0, P.jsx)("li", { children: (0, P.jsx)(a.default, { onClick: n, href: "/products.php?id=10", children: "전체보기" }) }), W ? W.map((function(e, i) { return (0, P.jsx)(P.Fragment, { children: (0, P.jsx)("li", { children: (0, P.jsx)(a.default, { onClick: n, href: "/products.php?id=" + (e.ID ? e.ID : ""), children: e.name ? e.name : "" }) }) }) })) : (0, P.jsx)(P.Fragment, { children: D ? "" : (0, P.jsx)(C, { children: (0, P.jsx)(p.Z, {}) }) })] })] })] }), (0, P.jsxs)("li", { onClick: n, children: [(0, P.jsx)(a.default, { href: "/products.php?id=20", children: (0, P.jsxs)("a", { onMouseOver: B, "data-id": "20", children: ["성기능", (0, P.jsx)("span", { className: "arrow", children: c.W.ca_arrow })] }) }), (0, P.jsxs)(w, { children: [(0, P.jsx)(j, { children: "성기능" }), (0, P.jsxs)("ul", { className: "sub_ul", children: [(0, P.jsx)("li", { children: (0, P.jsx)(a.default, { onClick: n, href: "/products.php?id=20", children: "전체보기" }) }), W ? W.map((function(e, i) { return (0, P.jsx)(P.Fragment, { children: (0, P.jsx)("li", { children: (0, P.jsx)(a.default, { onClick: n, href: "/products.php?id=" + (e.ID ? e.ID : ""), children: e.name ? e.name : "" }) }) }) })) : (0, P.jsx)(P.Fragment, { children: D ? "" : (0, P.jsx)(C, { children: (0, P.jsx)(p.Z, {}) }) })] })] })] }), (0, P.jsxs)("li", { onClick: n, children: [(0, P.jsx)(a.default, { href: "/products.php?id=40", children: (0, P.jsxs)("a", { onMouseOver: B, "data-id": "40", children: ["수면/정신집중", (0, P.jsx)("span", { className: "arrow", children: c.W.ca_arrow })] }) }), (0, P.jsxs)(w, { children: [(0, P.jsx)(j, { children: "수면/정신집중" }), (0, P.jsxs)("ul", { className: "sub_ul", children: [(0, P.jsx)("li", { children: (0, P.jsx)(a.default, { onClick: n, href: "/products.php?id=40", children: "전체보기" }) }), W ? W.map((function(e, i) { return (0, P.jsx)(P.Fragment, { children: (0, P.jsx)("li", { children: (0, P.jsx)(a.default, { onClick: n, href: "/products.php?id=" + (e.ID ? e.ID : ""), children: e.name ? e.name : "" }) }) }) })) : (0, P.jsx)(P.Fragment, { children: D ? "" : (0, P.jsx)(C, { children: (0, P.jsx)(p.Z, {}) }) })] })] })] }), (0, P.jsxs)("li", { onClick: n, children: [(0, P.jsx)(a.default, { href: "/products.php?id=50", children: (0, P.jsxs)("a", { onMouseOver: B, "data-id": "50", children: ["피부 * 미용", (0, P.jsx)("span", { className: "arrow", children: c.W.ca_arrow })] }) }), (0, P.jsxs)(w, { children: [(0, P.jsx)(j, { children: "피부 * 미용" }), (0, P.jsxs)("ul", { className: "sub_ul", children: [(0, P.jsx)("li", { children: (0, P.jsx)(a.default, { onClick: n, href: "/products.php?id=50", children: "전체보기" }) }), W ? W.map((function(e, i) { return (0, P.jsx)(P.Fragment, { children: (0, P.jsx)("li", { children: (0, P.jsx)(a.default, { onClick: n, href: "/products.php?id=" + (e.ID ? e.ID : ""), children: e.name ? e.name : "" }) }) }) })) : (0, P.jsx)(P.Fragment, { children: D ? "" : (0, P.jsx)(C, { children: (0, P.jsx)(p.Z, {}) }) })] })] })] }), (0, P.jsxs)("li", { onClick: n, children: [(0, P.jsx)(a.default, { href: "/products.php?id=60", children: (0, P.jsxs)("a", { onMouseOver: B, "data-id": "60", children: ["다이어트", (0, P.jsx)("span", { className: "arrow", children: c.W.ca_arrow })] }) }), (0, P.jsxs)(w, { children: [(0, P.jsx)(j, { children: "다이어트" }), (0, P.jsxs)("ul", { className: "sub_ul", children: [(0, P.jsx)("li", { children: (0, P.jsx)(a.default, { onClick: n, href: "/products.php?id=60", children: "전체보기" }) }), W ? W.map((function(e, i) { return (0, P.jsx)(P.Fragment, { children: (0, P.jsx)("li", { children: (0, P.jsx)(a.default, { onClick: n, href: "/products.php?id=" + (e.ID ? e.ID : ""), children: e.name ? e.name : "" }) }) }) })) : (0, P.jsx)(P.Fragment, { children: D ? "" : (0, P.jsx)(C, { children: (0, P.jsx)(p.Z, {}) }) })] })] })] }), (0, P.jsxs)("li", { onClick: n, children: [(0, P.jsx)(a.default, { href: "/products.php?id=70", children: (0, P.jsxs)("a", { onMouseOver: B, "data-id": "70", children: ["여드름", (0, P.jsx)("span", { className: "arrow", children: c.W.ca_arrow })] }) }), (0, P.jsxs)(w, { children: [(0, P.jsx)(j, { children: "여드름" }), (0, P.jsxs)("ul", { className: "sub_ul", children: [(0, P.jsx)("li", { children: (0, P.jsx)(a.default, { onClick: n, href: "/products.php?id=70", children: "전체보기" }) }), W ? W.map((function(e, i) { return (0, P.jsx)(P.Fragment, { children: (0, P.jsx)("li", { children: (0, P.jsx)(a.default, { onClick: n, href: "/products.php?id=" + (e.ID ? e.ID : ""), children: e.name ? e.name : "" }) }) }) })) : (0, P.jsx)(P.Fragment, { children: D ? "" : (0, P.jsx)(C, { children: (0, P.jsx)(p.Z, {}) }) })] })] })] }), (0, P.jsxs)("li", { onClick: n, children: [(0, P.jsx)(a.default, { href: "/products.php?id=80", children: (0, P.jsxs)("a", { onMouseOver: B, "data-id": "80", children: ["항생제/바이러스감염", (0, P.jsx)("span", { className: "arrow", children: c.W.ca_arrow })] }) }), (0, P.jsxs)(w, { children: [(0, P.jsx)(j, { children: "항생제/바이러스감염" }), (0, P.jsxs)("ul", { className: "sub_ul", children: [(0, P.jsx)("li", { children: (0, P.jsx)(a.default, { onClick: n, href: "/products.php?id=80", children: "전체보기" }) }), W ? W.map((function(e, i) { return (0, P.jsx)(P.Fragment, { children: (0, P.jsx)("li", { children: (0, P.jsx)(a.default, { onClick: n, href: "/products.php?id=" + (e.ID ? e.ID : ""), children: e.name ? e.name : "" }) }) }) })) : (0, P.jsx)(P.Fragment, { children: D ? "" : (0, P.jsx)(C, { children: (0, P.jsx)(p.Z, {}) }) })] })] })] }), (0, P.jsxs)("li", { onClick: n, children: [(0, P.jsx)(a.default, { href: "/products.php?id=90", children: (0, P.jsxs)("a", { onMouseOver: B, "data-id": "90", children: ["기타 의약품", (0, P.jsx)("span", { className: "arrow", children: c.W.ca_arrow })] }) }), (0, P.jsxs)(w, { children: [(0, P.jsx)(j, { children: "기타 의약품" }), (0, P.jsxs)("ul", { className: "sub_ul", children: [(0, P.jsx)("li", { children: (0, P.jsx)(a.default, { onClick: n, href: "/products.php?id=90", children: "전체보기" }) }), W ? W.map((function(e, i) { return (0, P.jsx)(P.Fragment, { children: (0, P.jsx)("li", { children: (0, P.jsx)(a.default, { onClick: n, href: "/products.php?id=" + (e.ID ? e.ID : ""), children: e.name ? e.name : "" }) }) }) })) : (0, P.jsx)(P.Fragment, { children: D ? "" : (0, P.jsx)(C, { children: (0, P.jsx)(p.Z, {}) }) })] })] })] })] }), (0, P.jsx)(k, { children: (0, P.jsxs)(d.C1, { children: [(0, P.jsxs)(d.pU, { at: "xs", children: [/*(0, P.jsx)("li", { children: (0, P.jsx)(a.default, { href: "/pointshop.php", children: (0, P.jsx)("a", { children: "적립금몰" }) }) }), */ (0, P.jsx)("li", { children: (0, P.jsx)(a.default, { href: "/service/faq", children: (0, P.jsx)("a", { children: "고객센터" }) }) }), (0, P.jsx)("li", { children: (0, P.jsx)(a.default, { href: "/service/notice", children: (0, P.jsx)("a", { children: "공지사항" }) }) })] }), (0, P.jsxs)(d.pU, { greaterThan: "xs", children: [/*(0, P.jsx)("li", { children: (0, P.jsx)(a.default, { href: "/pointshop.php", children: (0, P.jsx)("a", { children: "적립금몰" }) }) }), */(0, P.jsx)("li", { children: (0, P.jsx)(a.default, { href: "/service/faq", children: (0, P.jsx)("a", { children: "고객센터" }) }) }), (0, P.jsx)("li", { children: (0, P.jsx)(a.default, { href: "/service/notice", children: (0, P.jsx)("a", { children: "공지사항" }) }) })] })] }) })] })] })] }) }, D = x.ZP.div.withConfig({ displayName: "styled__SideMenuWrapper", componentId: "sc-colwxv-0" })(["position:fixed;top:0;left:0;height:100%;z-index:1;transition:0.6s;z-index:999;", ""], (function(e) { return e.show ? "\n left: 0px;\n \n " : "\n left: -100vw;\n " })), S = x.ZP.div.withConfig({ displayName: "styled__Overlay", componentId: "sc-colwxv-1" })(["width:100%;height:100%;background:rgba(0,0,0,0.4);z-index:990;position:fixed;top:0;left:0;", ""], (function(e) { return e.show ? "\n display: block;\n " : "\n display: none;\n " })), M = x.ZP.div.withConfig({ displayName: "styled__SideMenuInner", componentId: "sc-colwxv-2" })(["position:relative;width:360px;height:auto;background-color:#fff;z-index:1000;border-right:1px solid #ebebeb;@media ", "{width:100vw;height:100%;}"], (function(e) { return e.theme.mobile })), W = x.ZP.div.withConfig({ displayName: "styled__CloseButton", componentId: "sc-colwxv-3" })(["position:absolute;top:28px;right:28px;width:16px;height:16px;cursor:pointer;div{position:absolute;top:50%;right:-4px;width:22px;height:2px;background:#111;transform:rotate(45deg);}div:last-child{transform:rotate(-45deg);}@media ", "{top:36px;right:20px;width:20px;height:20px;div{width:22px;}}"], (function(e) { return e.theme.mobile })), L = x.ZP.div.withConfig({ displayName: "styled__Title", componentId: "sc-colwxv-4" })(["padding:80px 0px 30px 30px;&.main{padding:80px 0px 30px 50px;}font-weight:600;font-size:20px;line-height:29px;color:#111111;@media ", "{padding:33px 0 12px 65px;font-size:16px;font-weight:bold;line-height:23px;&.main{padding:0px 20px;}}"], (function(e) { return e.theme.mobile })), Y = x.ZP.ul.withConfig({ displayName: "styled__Category", componentId: "sc-colwxv-5" })(["height:auto;overflow-y:auto;z-index:999999999;li{height:56px;font-size:14px;font-weight:500;line-height:56px;}svg{transform:translateY(25%);pointer-events:none;}> li > a{padding-left:30px;position:relative;display:block;width:100%;height:100%;}> li a{position:relative;display:block;width:100%;height:100%;}.arrow{display:none;}.sub_ul{li{height:54px;line-height:54px;padding-left:30px;}}", ""], (function(e) { return e.show ? "\n right: 0;\n " : "\n right: -100vw;\n \n " })), O = x.ZP.div.withConfig({ displayName: "styled__SubCategory", componentId: "sc-colwxv-6" })(["position:absolute;top:0px;width:100vw;height:100vh;background-color:#fff;padding-bottom:0;z-index:100;right:-100vw;ul{height:calc(100% - 68px);overflow-y:scroll;}img{width:30px;height:30px;position:absolute;top:30px;left:25px;}", ";"], (function(e) { return e.isopen ? "\n visibility:visivle;\n " : "\n visibility:hidden;\n transition: 0.6s;\n " })), T = x.ZP.div.withConfig({ displayName: "styled__LoginInfor", componentId: "sc-colwxv-7" })(["padding:50px 0 30px 30px;border-bottom:1px solid #eee;@media ", "{padding:50px 0 30px 0 20px;}"], (function(e) { return e.theme.mobile })), B = x.ZP.div.withConfig({ displayName: "styled__IsLogin", componentId: "sc-colwxv-8" })([".login{display:inline-block;}img{display:inline-block;width:40px;height:40px;background:#e1e1e1;border-radius:50%;padding:3px;margin-right:15px;}h2{display:inline-block;font-size:16px;font-weight:bold;color:#000;}span{text-decoration:underline;cursor:pointer;}p{margin:10px 0 0 0;font-size:12px;font-weight:normal;line-height:1.33;color:#aaa;}@media ", "{span{}}"], (function(e) { return e.theme.mobile })), R = x.ZP.div.withConfig({ displayName: "styled__MobileSideScroll", componentId: "sc-colwxv-9" })(["overflow:auto;height:calc(100% - 234px);-ms-overflow-style:none;::-webkit-scrollbar{display:none;}@media ", "{}"], (function(e) { return e.theme.mobile })), U = x.ZP.ul.withConfig({ displayName: "styled__OtherMenu", componentId: "sc-colwxv-10" })(["display:block;height:270px;border-top:10px solid #f8f8f8;border-bottom:1px solid #ebebeb;li{font-size:14px;line-height:56px;font-weight:500;color:#000;a{display:inline-block;padding-left:30px;width:100%;height:100%;}}li:hover{background-color:#00A9EB;a{color:#fff;}}@media ", "{height:auto;border-bottom:0px;padding-bottom:30px;}"], (function(e) { return e.theme.mobile })), E = x.ZP.div.withConfig({ displayName: "styled__LoadingRoundStyle", componentId: "sc-colwxv-11" })(["padding-left:30px;margin-top:10px;"]), q = x.ZP.div.withConfig({ displayName: "styled__MyBoardList", componentId: "sc-colwxv-12" })(["padding:25px 0 25px 0;position:relative;display:flex;justify-content:space-around;align-items:center;text-align:center;border-bottom:10px solid #f8f8f8;p{margin:12px 0 4px 0;font-size:12px;font-weight:500;color:#000;}"]), A = x.ZP.div.withConfig({ displayName: "styled__Mypage", componentId: "sc-colwxv-13" })(["cursor:pointer;img{width:26px;height:25px;}"]), X = x.ZP.div.withConfig({ displayName: "styled__OrderList", componentId: "sc-colwxv-14" })(["cursor:pointer;img{width:24px;height:23px;}"]), H = x.ZP.div.withConfig({ displayName: "styled__Basket", componentId: "sc-colwxv-15" })(["cursor:pointer;img{width:24px;height:23px;}"]), K = function(e) { var i = e.show, n = e.onClose, r = (e.open, (0, o.v9)((function(e) { return e.me.user_data }))), s = (0, t.useState)(1), l = s[0], d = s[1], x = (0, t.useState)(""), u = x[0], g = x[1], m = (0, t.useState)(""), f = m[0], j = m[1], b = (0, t.useState)(""), w = b[0], y = b[1], v = (0, t.useState)(0), _ = v[0], k = v[1], C = function(e) { _ ? k(0) : (k(e.target.dataset.id), l != e.target.dataset.id && (j(), g(), d(e.target.dataset.id))), n() }; return (0, t.useEffect)((function() { w !== l && (y(l), l && (j(0), (0, h.h9)({ category_ID: l }).then((function(e) { 200 == e.data.code && (g(e.data.body), j(e.data.body.categories)) })).catch((function(e) { return console.log(e) })))) })), (0, P.jsxs)(D, { show: i, children: [(0, P.jsx)(S, { show: i, onClick: n }), (0, P.jsxs)(M, { show: i, children: [r ? (0, P.jsx)(T, { children: (0, P.jsxs)(B, { children: [(0, P.jsx)("img", { src: " /images/smile.png", alt: "" }), (0, P.jsxs)("h2", { className: "login", children: ["반가워요 ", r.user_name, "님!"] })] }) }) : (0, P.jsx)(T, { children: (0, P.jsx)(a.default, { href: "/login", children: (0, P.jsxs)(B, { children: [(0, P.jsxs)("h2", { children: [(0, P.jsx)("span", { children: "로그인" }), "이 필요합니다."] }), (0, P.jsxs)("p", { children: ["지금 로그인 하시면", (0, P.jsx)("br", {}), "다양한 서비스를 이용하실 수 있습니다."] })] }) }) }), (0, P.jsxs)(W, { onClick: function() { n(), k(0) }, children: [(0, P.jsx)("div", {}), (0, P.jsx)("div", {})] }), (0, P.jsxs)(q, { children: [(0, P.jsx)(a.default, { href: "/mypage.php", children: (0, P.jsxs)(A, { children: [(0, P.jsx)("img", { src: " /images/ca_mypage.png", alt: "" }), (0, P.jsx)("p", { children: "마이페이지" })] }) }), (0, P.jsx)(a.default, { href: "/orderlist.php", children: (0, P.jsxs)(X, { children: [(0, P.jsx)("img", { src: " /images/ca_orderlist.png", alt: "" }), (0, P.jsx)("p", { children: "주문/배송" })] }) }), (0, P.jsx)(a.default, { href: "/basket.php", children: (0, P.jsxs)(H, { children: [(0, P.jsx)("img", { src: " /images/ca_basket.png", alt: "" }), (0, P.jsx)("p", { children: "장바구니" })] }) })] }), (0, P.jsxs)(R, { children: [(0, P.jsxs)(Y, { show: i, children: [(0, P.jsxs)("li", { children: (0, P.jsx)(a.default, { href: "/products.php?id=10", children: (0, P.jsx)("a", { children: "\ud0c8\ubaa8 \uc721\ubaa8" }) }) }),(0, P.jsxs)("li", { children: (0, P.jsx)(a.default, { href: "/products.php?id=20", children: (0, P.jsx)("a", { children: "\uc131\uae30\ub2a5" }) }) }),(0, P.jsxs)("li", { children: (0, P.jsx)(a.default, { href: "/products.php?id=40", children: (0, P.jsx)("a", { children: "\uc218\uba74\/\uc815\uc2e0\uc9d1\uc911" }) }) }),(0, P.jsxs)("li", { children: (0, P.jsx)(a.default, { href: "/products.php?id=50", children: (0, P.jsx)("a", { children: "\ud53c\ubd80 * \ubbf8\uc6a9" }) }) }),(0, P.jsxs)("li", { children: (0, P.jsx)(a.default, { href: "/products.php?id=60", children: (0, P.jsx)("a", { children: "\ub2e4\uc774\uc5b4\ud2b8" }) }) }),(0, P.jsxs)("li", { children: (0, P.jsx)(a.default, { href: "/products.php?id=70", children: (0, P.jsx)("a", { children: "\uc5ec\ub4dc\ub984" }) }) }),(0, P.jsxs)("li", { children: (0, P.jsx)(a.default, { href: "/products.php?id=80", children: (0, P.jsx)("a", { children: "\ud56d\uc0dd\uc81c\/\ubc14\uc774\ub7ec\uc2a4\uac10\uc5fc" }) }) }),(0, P.jsxs)("li", { children: (0, P.jsx)(a.default, { href: "/products.php?id=90", children: (0, P.jsx)("a", { children: "\uae30\ud0c0 \uc758\uc57d\ud488" }) }) })] }), (0, P.jsxs)(U, { children: [/*(0, P.jsx)("li", { children: (0, P.jsx)(a.default, { href: "/pointshop.php", children: (0, P.jsx)("a", { children: "적립금몰" }) }) }), */(0, P.jsx)("li", { children: (0, P.jsx)(a.default, { href: "/story", children: (0, P.jsx)("a", { children: "건강정보" }) }) })/*, (0, P.jsx)("li", { children: (0, P.jsx)(a.default, { href: "/page/2971", children: (0, P.jsx)("a", { children: "라이센스" }) }) })*/, (0, P.jsx)("li", { children: (0, P.jsx)(a.default, { href: "/service/faq", children: (0, P.jsx)("a", { children: "고객센터" }) }) }), (0, P.jsx)("li", { children: (0, P.jsx)(a.default, { href: "/service/notice", children: (0, P.jsx)("a", { children: "공지사항" }) }) })] })] })] })] }) }, J = (n(8675), n(9328), x.ZP.div.withConfig({ displayName: "styled__BasketWrapper", componentId: "sc-1385de0-0" })(["width:100%;padding:0 50px;padding-top:50px;@media ", "{padding:32px 20px 30px 20px;}"], (function(e) { return e.theme.mobile })), x.ZP.div.withConfig({ displayName: "styled__Title", componentId: "sc-1385de0-1" })(["font-weight:bold;font-size:20px;line-height:29px;color:#111;margin-bottom:30px;@media ", "{font-weight:bold;font-size:17px;line-height:29px;color:#111;margin-bottom:16px;}"], (function(e) { return e.theme.mobile })), x.ZP.div.withConfig({ displayName: "styled__NullPage", componentId: "sc-1385de0-2" })(["position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);text-align:center;img{width:60px;height:60px;margin-bottom:10px;}span{display:block;font-size:15px;line-height:1.73;letter-spacing:-0.45px;color:#111;}"]), x.ZP.div.withConfig({ displayName: "styled__BasketItemWrapper", componentId: "sc-1385de0-3" })(["border-top:1px solid #ebebeb;height:calc(100vh - 269px);overflow-y:auto;> div:last-child{border:none;}"]), x.ZP.div.withConfig({ displayName: "styled__ItemInfo", componentId: "sc-1385de0-4" })(["display:flex;justify-content:space-between;padding:20px 0;border-bottom:1px solid #fafafa;@media ", "{position:relative;padding:30px 0;}"], (function(e) { return e.theme.mobile })), x.ZP.div.withConfig({ displayName: "styled__ProductImage", componentId: "sc-1385de0-5" })(["width:120px;height:90px;background:#fbfbfb;border-radius:2px;background-image:url(", ");background-repeat:no-repeat;background-size:85% auto;background-position:center center;@media ", "{width:34%;height:120px;}"], (function(e) { return e.url ? e.url : "" }), (function(e) { return e.theme.mobile })), x.ZP.div.withConfig({ displayName: "styled__ProductDetail", componentId: "sc-1385de0-6" })(["width:calc(100% - 144px);padding-left:20px;@media ", "{width:66%;padding-left:20px;}"], (function(e) { return e.theme.mobile })), x.ZP.div.withConfig({ displayName: "styled__Name", componentId: "sc-1385de0-7" })(["span{font-size:13px;line-height:19px;color:#111111;}margin-top:5px;@media ", "{display:table;width:100%;height:56px;span{display:table-cell;vertical-align:bottom;height:56px;font-size:14px;line-height:1.35;}margin-top:-16px;}"], (function(e) { return e.theme.mobile })), x.ZP.div.withConfig({ displayName: "styled__Price", componentId: "sc-1385de0-8" })(["font-size:13px;line-height:19px;font-weight:500;color:#111;@media ", "{font-size:15px;line-height:26px;margin-top:5px;}"], (function(e) { return e.theme.mobile })), x.ZP.div.withConfig({ displayName: "styled__Amount", componentId: "sc-1385de0-9" })(["display:flex;margin-top:15px;img{width:19px;height:19px;cursor:pointer;}span{display:inline-block;margin:0 8px;font-size:13px;line-height:19px;color:#111;}@media ", "{margin-top:15px;img{width:23px;height:23px;}span{font-size:14px;font-weight:500;line-height:26px;vertical-align:bottom;}}"], (function(e) { return e.theme.mobile })), x.ZP.div.withConfig({ displayName: "styled__Delete", componentId: "sc-1385de0-10" })(["position:relative;width:24px;span{display:inline-block;position:absolute;top:50%;transform:translateY(-50%);font-size:13px;line-height:19px;color:#111;text-decoration:underline;cursor:pointer;}@media ", "{position:absolute;width:30px;bottom:51px;right:0;span{font-size:16px;line-height:23px;}}"], (function(e) { return e.theme.mobile })), x.ZP.div.withConfig({ displayName: "styled__Payment", componentId: "sc-1385de0-11" })(["padding:30px 50px 30px 50px;border-top:1px solid #ebebeb;background:#fff;width:100%;position:absolute;bottom:0;@media ", "{padding:30px 20px 20px 30px;}"], (function(e) { return e.theme.mobile })), x.ZP.div.withConfig({ displayName: "styled__Total", componentId: "sc-1385de0-12" })(["display:flex;justify-content:space-between;margin-bottom:20px;span{font-size:15px;font-weight:bold;line-height:22px;color:#111;}.color{color:#E55F74;}@media ", "{span{font-size:15px;line-height:26px;}}"], (function(e) { return e.theme.mobile })), (0, x.ZP)(a.default).withConfig({ displayName: "styled__ConfirmButton", componentId: "sc-1385de0-13" })(["display:inline-block;width:100%;height:56px;font-weight:500;font-size:15px;line-height:54px;color:#FFFFFF;text-align:center;background-color:#E55F74;border:1px solid #E55F74;border-radius:200px;cursor:pointer;transition:0.2s;@media ", "{height:45px;line-height:44px;font-size:15px;}"], (function(e) { return e.theme.mobile })), n(5705)), Q = n(1508), $ = n(5198), G = n(1163), V = x.ZP.div.withConfig({ displayName: "styled__HeaderWrapper", componentId: "sc-1bjhph1-0" })(["position:relative;width:100%;height:160px;background-color:#fff;@media ", "{height:50px;", ";}"], (function(e) { return e.theme.mobile }), (function(e) { return e.noBold ? "" : "\n box-sizing: initial;\n border-bottom: 20px solid #f8f8f8;\n " })), ee = x.ZP.div.withConfig({ displayName: "styled__MainHeader", componentId: "sc-1bjhph1-1" })(["position:fixed;width:100%;height:101px;line-height:101px;padding:0 20px;background-color:#fff;z-index:3;@media ", "{height:50px;line-height:48px;padding:0px 0px;}"], (function(e) { return e.theme.mobile })), ie = x.ZP.div.withConfig({ displayName: "styled__MainHeaderContainer", componentId: "sc-1bjhph1-2" })(["position:relative;max-width:1204px;width:100%;top:50%;margin:0 auto;z-index:10;@media ", "{}"], (function(e) { return e.theme.mobile })), ne = x.ZP.div.withConfig({ displayName: "styled__SubWrapper", componentId: "sc-1bjhph1-3" })(["max-width:1244px;margin:0 auto;padding:0 20px;@media ", "{max-width:100%;padding:0 0;}"], (function(e) { return e.theme.mobile })), te = x.ZP.div.withConfig({ displayName: "styled__SubHeader", componentId: "sc-1bjhph1-4" })(["position:fixed;top:87px;left:0;width:100%;height:75px;line-height:73px;background-color:#fff;z-index:2;transition:0.4s ease-in-out;border-bottom:0px solid #eee;box-shadow:0 2px 10px 0 rgba(0,0,0,0.03);", " &.hide{transform:translateY(-59px);}@media ", "{position:fixed;top:50px;height:40px;line-height:38px;overflow:hidden !important;&.hide{transform:translateY(-53px);}}"], (function(e) { return e.border ? "" : "\n border-bottom: 1px solid #eee;\n " }), (function(e) { return e.theme.mobile })), re = (x.ZP.div.withConfig({ displayName: "styled__SubHeaderContainer", componentId: "sc-1bjhph1-5" })(["position:relative;width:100%;@media ", "{height:35px;}"], (function(e) { return e.theme.mobile })), x.ZP.div.withConfig({ displayName: "styled__Hamburger", componentId: "sc-1bjhph1-6" })(["display:inline-block;position:absolute;top:50%;transform:translateY(-50%);border-radius:50%;z-index:20;cursor:pointer;transition:0.4s;box-shadow:0 2px 10px 0 rgba(0,0,0,0.08);width:40px;height:40px;:hover{opacity:0.6;}div{position:relative;top:50%;left:20px;transform:translateX(-50%) translateY(-7px);width:18px;height:2px;background-color:#111;}.s{margin:4px 0;}span{font-size:14px;vertical-align:top;position:relative;top:0;left:40px;transform:translateX(-50%);}@media ", "{display:none;}"], (function(e) { return e.theme.mobile }))), oe = x.ZP.div.withConfig({ displayName: "styled__MobileHamburger", componentId: "sc-1bjhph1-7" })(["display:none;@media ", "{display:block;position:absolute;top:50%;left:10px;transform:translateY(-50%);width:auto;height:40px;border-radius:50%;z-index:20;cursor:pointer;transition:0.4s;width:40px;height:40px;:hover{opacity:0.6;}div{position:relative;top:50%;left:20px;transform:translateX(-50%) translateY(-7px);width:18px;height:2px;background-color:#111;}.s{margin:4px 0;}}@media (max-width:330px){left:15px;}"], (function(e) { return e.theme.mobile })), se = x.ZP.div.withConfig({ displayName: "styled__Logo", componentId: "sc-1bjhph1-8" })(["position:absolute;top:0;left:0;transform:translateY(-50%);z-index:20;cursor:pointer;img{width:234px;height:auto;}@media ", "{top:50%;left:50%;transform:translateY(-53%) translateX(-50%);img{width:130px;height:auto;}}"], (function(e) { return e.theme.mobile })), le = x.ZP.div.withConfig({ displayName: "styled__SearchbarSection", componentId: "sc-1bjhph1-9" })(["position:absolute;width:100%;top:50%;left:50%;transform:translate(-50%,-50%);transition:0.6s ease;padding-left:292px;padding-right:195px;background-color:#fff;@media ", "{display:none;}"], (function(e) { return e.theme.mobile })), ae = x.ZP.div.withConfig({ displayName: "styled__SearchbarWrapper", componentId: "sc-1bjhph1-10" })(["position:relative;max-width:722px;margin:0 auto;img{position:absolute;top:52%;right:18px;transform:translateY(-50%);width:30px;height:30px;z-index:1px;cursor:pointer;transition:0.8s;z-index:2;transition:0.4s;:hover{opacity:0.6;}}:after{position:absolute;content:'';top:52%;right:9px;transform:translateY(-50%);background-image:url('/images/search_back.png');background-repeat:no-repeat;background-position:center center;background-size:cover;width:51px;height:51px;cursor:pointer;z-index:0px;}", ";@media ", "{display:none;}"], (function(e) { return e.show ? "\n img {\n right: 18px;\n transition: 0.8s;\n }\n " : "" }), (function(e) { return e.theme.mobile })), de = x.ZP.input.withConfig({ displayName: "styled__Searchbar", componentId: "sc-1bjhph1-11" })(["position:relative;width:100%;height:60px;line-height:60px;padding-left:32px;border:none;transition:0.8s;box-sizing:border-box;border-radius:60px;box-shadow:0 4px 15px 0 rgba(0,0,0,0.04);background-color:#ffffff;::placeholder{font-size:14px;font-weight:normal;color:#aaa;}", " @media ", "{display:none;}"], (function(e) { return e.show ? "\n padding-left: 32px;\n " : "" }), (function(e) { return e.theme.mobile })), ce = x.ZP.div.withConfig({ displayName: "styled__SearchRolling", componentId: "sc-1bjhph1-12" })(["position:fixed;width:100%;height:350px;background-color:#fff;z-index:-1;left:0;transition:0.6s;h2{font-size:14px;font-weight:500;line-height:normal;text-align:center;color:#000;}", " @media ", "{position:fixed;height:100%;", " h2{margin:120px 0 0 0;}}"], (function(e) { return e.rolling ? "top: -530px; " : "top: 100px; z-index: -1;" }), (function(e) { return e.theme.mobile }), (function(e) { return e.rolling ? "top: -100vh; " : "top: 0px; z-index: 989;" })), pe = x.ZP.div.withConfig({ displayName: "styled__RollingList", componentId: "sc-1bjhph1-13" })(["position:relative;p{position:absolute;top:0;left:50%;transition:0.9s;font-size:16px;font-weight:bold;line-height:normal;color:rgba(0,0,0,0);cursor:pointer;}.p1{color:rgba(0,0,0,0.1);}.p2{color:rgba(0,0,0,0.3);}.p3{color:#000;font-size:20px;}.p4{color:rgba(0,0,0,0.3);}.p5{color:rgba(0,0,0,0.1);}.p0{transition:0s;}@media ", "{width:100%;p{font-size:14px;letter-spacing:-0.1px;}.p1{color:rgba(0,0,0,0.1);}.p2{color:rgba(0,0,0,0.3);}.p3{color:rgba(0,0,0,0.5);font-size:14px;}.p4{font-size:20px;color:#000000;}.p5{color:rgba(0,0,0,0.5);}.p6{color:rgba(0,0,0,0.3);}.p7{color:rgba(0,0,0,0.1);}}"], (function(e) { return e.theme.mobile })), he = x.ZP.div.withConfig({ displayName: "styled__MobileSearchIcon", componentId: "sc-1bjhph1-14" })(["position:absolute;top:50%;left:57px;transform:translateY(-54%);img{width:22px;height:22px;}@media ", "{}"], (function(e) { return e.theme.mobile })), xe = x.ZP.div.withConfig({ displayName: "styled__MobileSearchClose", componentId: "sc-1bjhph1-15" })(["@media ", "{position:absolute;width:15px;height:15px;background-image:url(/images/closebutton.png);background-position:center center;background-repeat:no-repeat;background-size:cover;left:50%;bottom:50px;transform:translateX(-50%);z-index:111;}"], (function(e) { return e.theme.mobile })), ue = x.ZP.div.withConfig({ displayName: "styled__Overlay", componentId: "sc-1bjhph1-16" })(["width:100%;height:100%;background:rgba(0,0,0,0.3);z-index:2;position:fixed;top:0;left:0;", ""], (function(e) { return e.show ? "\n display: block;\n " : "\n display: none;\n " })), ge = x.ZP.ul.withConfig({ displayName: "styled__RightMenu", componentId: "sc-1bjhph1-17" })(["display:flex;position:absolute;justify-content:space-between;top:50%;right:0;transform:translateY(-50%);cursor:pointer;> li{float:left;width:30px;height:30px;background-position:center center;background-repeat:no-repeat;position:relative;transition:0.4s;i{border-radius:50%;width:6px;height:6px;background:#00A9EB;display:block;position:absolute;top:2px;right:2px;}:hover{opacity:0.6;}}.bell{background-image:url(/images/bell.png);background-size:30px;position:relative;right:49px;}.user{display:block;width:30px;height:30px;background-image:url(/images/user.png);background-size:30px;position:relative;right:24px;}.basket{display:block;width:30px;height:30px;background-image:url(/images/newbag.png);background-size:30px;}@media ", "{right:14px;transform:translateY(-36%);.blog{display:none;}.license{display:none;}.user{display:none;}.user-li{pointer-events:none;}.bell{right:-19px;height:22px;background-image:url(/images/m_bell.png);background-size:22px;}.basket{margin:0 0;height:22px;background-image:url(/images/m_newbag.png);background-size:22px;background-repeat:no-repeat;}> li{i{top:0;left:auto;right:7px;}:hover{opacity:1;}}}"], (function(e) { return e.theme.mobile })), me = x.ZP.ul.withConfig({ displayName: "styled__SubMenu", componentId: "sc-1bjhph1-18" })(["display:inline-block;margin-left:59px;cursor:pointer;li{position:relative;display:inline-block;padding:0 20px;font-weight:500;font-size:16px;line-height:23px;text-decoration:none;color:#000;transition:0.3s;:after{position:absolute;content:'';display:block;opacity:0;top:6px;right:9px;width:4px;height:4px;border-radius:50%;background:#00A9EB;transition:0.3s;}}li:hover{transition:0.3s;:after{position:absolute;content:'';display:block;opacity:1;top:0px;right:9px;width:4px;height:4px;border-radius:50%;background:#00A9EB;transition:0.3s;}}.active{transition:0s;:after{transition:0s;position:absolute;content:'';display:block;opacity:1;top:0px;right:9px;width:4px;height:4px;border-radius:50%;background:#00A9EB;}}@media ", "{position:relative;top:4px;margin:0;margin-left:0;width:100%;display:flex;justify-content:space-around;vertical-align:top;text-align:center;li{padding:0;box-sizing:border-box;font-size:13px;font-weight:normal;color:#000;float:none;display:inline-block;}.m_blog{display:none;}}@media (max-width:330px){li{font-size:12px;}.event{:after{top:4px;right:2px;}}.review{:after{top:4px;right:2px;}}}"], (function(e) { return e.theme.mobile })), fe = x.ZP.ul.withConfig({ displayName: "styled__SubMenuRight", componentId: "sc-1bjhph1-19" })(["position:relative;cursor:pointer;float:right;li{display:inline-block;font-size:16px;line-height:23px;text-decoration:none;color:#000;transition:0.4s;:hover{opacity:0.6;}}span{padding-right:28px;position:relative;:after{position:absolute;content:'';top:50%;transform:translateY(-50%);right:14px;border-right:1px solid #eee;height:10px;}}img{width:21px;height:auto;margin-right:5px;}.point{font-weight:600;width:100px;}.li-login{position:relative;}.li-login:before{left:-16px;}.li-login:after{right:-16px;}@media ", "{display:none;}"], (function(e) { return e.theme.mobile })), je = x.ZP.ul.withConfig({ displayName: "styled__NoticeBox", componentId: "sc-1bjhph1-20" })(["", ";position:fixed;z-index:999999;overflow-y:auto;top:0;right:0;transform:translateY(50px);width:200px;height:260px;padding:20px;background-color:#fff;box-sizing:border-box;box-shadow:0px 10px 20px rgba(0,0,0,0.1);border-radius:2px;li{border-bottom:1px solid #f8f8f8;padding-top:10px;cursor:pointer;}li:first-child{padding-top:0;}li:last-child{border-bottom:none;}.last-notice{border:none;div{margin-bottom:0;}}"], (function(e) { return e.show ? "display: block" : "display: none" })), be = x.ZP.p.withConfig({ displayName: "styled__NoticeContent", componentId: "sc-1bjhph1-21" })(["font-size:13px;line-height:22px;color:#111111;"]), we = x.ZP.div.withConfig({ displayName: "styled__NoticeTime", componentId: "sc-1bjhph1-22" })(["font-size:11px;line-height:16px;text-align:right;letter-spacing:-0.03em;color:#a3a3a3;margin-bottom:10px;"]), ye = x.ZP.div.withConfig({ displayName: "styled__MobileSearchbarSection", componentId: "sc-1bjhph1-23" })(["@media ", "{width:100%;position:absolute;padding:0 20px;", ";}"], (function(e) { return e.theme.mobile }), (function(e) { return e.show ? "\n top: 50px;\n " : "\n \n " })), ve = x.ZP.div.withConfig({ displayName: "styled__MobileSearchbarWrapper", componentId: "sc-1bjhph1-24" })(["@media ", "{position:relative;img{position:absolute;top:50%;right:3px;transform:translate(-50%,-50%);width:22px;height:22px;cursor:pointer;z-index:1;}}"], (function(e) { return e.theme.mobile })), _e = x.ZP.input.withConfig({ displayName: "styled__MobileSearchbar", componentId: "sc-1bjhph1-25" })(["@media ", "{width:100%;height:40px;line-height:40px;border:none;border-radius:200px;background-color:#fafafa;transition:0.7s;padding:0 40px 0 24px;box-sizing:border-box;::placeholder{font-size:14px;font-weight:normal;color:#aaa;padding-left:calc(50% - 45px);}}"], (function(e) { return e.theme.mobile })), ke = n(9817), Ce = function(e) { var i = (0, ke.zP)(ke.Pz), n = (0, o.v9)((function(e) { return e.cart.cart_items.length })), c = (0, o.v9)((function(e) { return e.me.user_data })), p = (0, t.useState)(""), h = p[0], x = p[1], u = (0, t.useState)(""), g = u[0], m = u[1], f = (0, t.useState)(0), j = f[0], b = f[1], w = (0, t.useState)(0), y = w[0], v = w[1], _ = (0, t.useState)(""), k = _[0], C = _[1], I = (0, t.useState)(0), N = I[0], Z = I[1], z = (0, G.useRouter)(), D = (0, o.I0)(), S = (0, t.useRef)(), M = (0, t.useState)(0), W = M[0], L = M[1]; (0, t.useEffect)((function() { var e = setInterval((function() { L((function(e) { return e + 1 })) }), 3e3); return S.current = e, function() { clearInterval(S.current) } }), []), (0, t.useEffect)((function() { localStorage.getItem("user_token") ? j || (b(1), (0, J.YM)().then((function(e) { 200 == e.data.data.status ? (0, Q.gp)().then((function(e) { 200 == e.data.code && (D((0, s.C)(e.data.body)), console.log(e.data.body)) })).catch((function(e) { return r.Am.error(e) })) : (r.Am.error("로그인 정보가 만료되었습니다."), D((0, s.C)(0)), localStorage.removeItem("user_token"), window.location.reload()) })).catch((function(e) { r.Am.error("로그인 정보가 만료되었습니다."), D((0, s.C)(0)), localStorage.removeItem("user_token"), window.location.reload() }))) : D((0, s.C)(0)), h || (c ? (0, Q.fQ)().then((function(e) { "200" == e.data.code ? (x(e.data.body.results), localStorage.getItem("last_noti") === e.data.body.results[0].id ? v(1) : v(0), m(0)) : m(1) })).catch((function(e) {})) : (x(""), m(1))), k || (0, $.x)({}).then((function(e) { "200" == e.data.code && (D((0, l.KB)(e.data.body.paymentMethod)), C(e.data.body.suggested_search.keyword), Z(parseInt(e.data.body.suggested_search.total)), console.log(e.data.body.total)) })) }), []); var Y = (0, t.useState)(!1), O = Y[0], T = Y[1], B = (0, t.useState)(0), R = B[0], U = B[1], E = (0, t.useState)(""), q = E[0], A = E[1], X = function(e) { "Enter" === e.key && (z.push("/search.php?keyword=" + q), Ie(0)) }, H = (0, t.useState)(0), Ce = H[0], Ie = H[1], Ne = function(e) { Ie(Ce ? 0 : 1) }, Ze = (0, t.useState)(0), ze = Ze[0], Pe = Ze[1], Fe = function(e) { Pe(ze ? 0 : 1) }, De = (0, t.useState)(0), Se = (De[0], De[1], (0, t.useState)(0)), Me = Se[0], We = Se[1], Le = function(e) { z.push("/search.php?keyword=" + (e.currentTarget.dataset.keyword ? e.currentTarget.dataset.keyword : "")), Ne() }, Ye = ((0, o.v9)((function(e) { return e.global })), function() { var e = window.pageYOffset, i = e > 188 && R < e; T(i), U(e), D(i ? (0, l.SY)(1) : (0, l.SY)(0)) }), Oe = (0, t.useState)(), Te = Oe[0], Be = Oe[1]; return (0, t.useEffect)((function() { return Be(window.location.pathname), window.addEventListener("scroll", Ye), function() { return window.removeEventListener("scroll", Ye) } })), (0, P.jsxs)(V, { noBold: e.noBold, children: [(0, P.jsxs)(ee, { children: [(0, P.jsxs)(ie, { children: [(0, P.jsxs)(d.C1, { children: [(0, P.jsx)(d.pU, { greaterThan: "xs", children: (0, P.jsx)(a.default, { href: "/", children: (0, P.jsx)(se, { children: (0, P.jsx)("img", { src: "/images/logo.gif", alt: " logo" }) }) }) }), (0, P.jsx)(d.pU, { at: "xs", children: (0, P.jsx)(a.default, { href: "/", children: (0, P.jsx)(se, { children: (0, P.jsx)("img", { src: "/images/m_logo.gif", alt: " m_logo" }) }) }) })] }), (0, P.jsxs)(oe, { onClick: Fe, children: [(0, P.jsx)("div", { className: "l" }), (0, P.jsx)("div", { className: "s" }), (0, P.jsx)("div", { className: "l" })] }), (0, P.jsxs)(d.C1, { children: [(0, P.jsx)(d.pU, { greaterThan: "xs", children: (0, P.jsx)(le, { show: Ce, children: (0, P.jsxs)(ae, { show: Ce, children: [(0, P.jsx)(de, { show: Ce, type: "text", spellcheck: "false", placeholder: "검색어를 입력하세요", onChange: function(e) { return A(e.target.value) }, value: q, onKeyPress: X, onClick: Ne }), (0, P.jsx)(a.default, { href: q ? "/search.php?keyword=" + q : "", children: (0, P.jsx)("img", { show: Ce, src: "/images/search_icon.png", alt: "search icon" }) })] }) }) }), (0, P.jsx)(d.pU, { at: "xs", children: (0, P.jsx)(he, { onClick: Ne, children: (0, P.jsx)("img", { src: "/images/m_search_icon.png", alt: "search m_icon" }) }) })] }), (0, P.jsxs)(ge, { children: [(0, P.jsx)("li", { className: "bell", onClick: function(e) { Me ? We(0) : (We(1), g || h && localStorage.setItem("last_noti", h[0].id)) }, children: y || !h || g ? "" : (0, P.jsx)("i", {}) }), (0, P.jsx)(je, { show: Me, children: g ? (0, P.jsx)("li", { children: (0, P.jsx)(be, { children: "아직 알림이 없습니다." }) }) : (0, P.jsx)(P.Fragment, { children: h ? h.map((function(e, i) { return (0, P.jsxs)("li", { onClick: function(i) { return z.push(e.link) }, children: [(0, P.jsx)(be, { dangerouslySetInnerHTML: { __html: e.message } }), (0, P.jsx)(we, { children: e.wdate })] }) })) : "" }) }), (0, P.jsx)("li", { className: "user-li", children: (0, P.jsx)(a.default, { href: "/mypage.php", children: (0, P.jsx)("a", { "aria-label": "마이페이지", children: (0, P.jsx)("span", { className: "user" }) }) }) }), (0, P.jsx)("li", { children: (0, P.jsx)(a.default, { href: "/basket.php", children: (0, P.jsxs)("a", { "aria-label": "장바구니 추가", children: [(0, P.jsx)("span", { className: "basket" }), n ? (0, P.jsx)("i", {}) : ""] }) }) })] })] }), (0, P.jsxs)(ce, { rolling: !Ce, children: [(0, P.jsx)("h2", { children: "이런 검색어는 어떠세요?" }), (0, P.jsxs)(d.C1, { children: [(0, P.jsx)(d.pU, { greaterThan: "xs", children: (0, P.jsx)(pe, { children: k ? k.map((function(e, i) { return (0, P.jsx)(P.Fragment, { children: (0, P.jsx)("p", { onClick: Le, "data-keyword": e || "", className: "p" + (W + N - i - 1) % N, style: { transform: "translateX(-50%) translateY(calc(-50px *" + -(W + N - i - 1) % N + "))" }, children: e }) }) })) : "" }) }), (0, P.jsxs)(d.pU, { at: "xs", children: [(0, P.jsx)(ye, { show: Ce, children: (0, P.jsxs)(ve, { show: Ce, children: [(0, P.jsx)(_e, { show: Ce, type: "text", spellcheck: "false", placeholder: "검색어를 입력하세요", onChange: function(e) { return A(e.target.value) }, value: q, onKeyPress: X }), (0, P.jsx)(a.default, { href: q ? "/search.php?keyword=" + q : "", children: (0, P.jsx)("img", { onClick: Ne, show: Ce, src: "/images/search_icon.png", alt: "search m_icon" }) })] }) }), (0, P.jsx)(pe, { children: k ? k.map((function(e, i) { return (0, P.jsx)(P.Fragment, { children: (0, P.jsx)("p", { onClick: Le, "data-keyword": e || "", className: "p" + (W + N - i - 1) % N, style: { transform: "translateX(-50%) translateY(calc(-50px *" + -(W + N - i - 1) % N + "))" }, children: e }) }) })) : "" }), (0, P.jsx)(xe, { onClick: Ne })] })] })] })] }), (0, P.jsx)(te, { className: O ? "hide" : "", border: e.border, children: (0, P.jsxs)(ne, { children: [(0, P.jsxs)(re, { onClick: Fe, children: [(0, P.jsx)("div", { className: "l" }), (0, P.jsx)("div", { className: "s" }), (0, P.jsx)("div", { className: "l" })] }), (0, P.jsxs)(me, { children: [(0, P.jsx)(a.default, { href: "/products.php", children: (0, P.jsx)("li", { className: Te && Te.includes("products") ? "active" : "", children: "쇼핑몰" }) }),/* (0, P.jsx)(a.default, { href: "/pointshop.php", children: (0, P.jsx)("li", { className: Te && Te.includes("pointshop") ? "active" : "", children: "적립금몰" }) }), */(0, P.jsx)(a.default, { href: "/event", children: (0, P.jsx)("li", { className: Te && Te.includes("event") ? "active" : "", children: "이벤트" }) }), (0, P.jsx)(a.default, { href: "/review", children: (0, P.jsx)("li", { className: Te && Te.includes("review") ? "active" : "", children: "실시간리뷰" }) }), (0, P.jsx)(a.default, { href: "/service/faq", children: (0, P.jsx)("li", { className: Te && Te.includes("service") ? "active" : "", children: "고객센터" }) }), i || (0, P.jsx)(a.default, { href: "/story", children: (0, P.jsx)("li", { className: Te && Te.includes("story") ? "active" : "", children: "건강정보" }) })] }), (0, P.jsx)(fe, { children: c ? (0, P.jsx)(P.Fragment, { children: (0, P.jsx)(a.default, { href: "/mypage.php", className: "li-mypage", children: (0, P.jsx)("li", { children: "마이페이지" }) }) }) : (0, P.jsxs)(P.Fragment, { children: [(0, P.jsx)(a.default, { href: "/login", children: (0, P.jsx)("li", { className: "li-login", children: (0, P.jsx)("span", { children: "로그인" }) }) }), (0, P.jsx)(a.default, { href: "/register", children: (0, P.jsx)("li", { className: "li-login", children: "회원가입" }) })] }) })] }) }), (0, P.jsx)(ue, { show: Ce, onClick: Ne }), (0, P.jsxs)(d.C1, { children: [(0, P.jsx)(d.pU, { greaterThan: "xs", children: (0, P.jsx)(F, { show: ze, onClose: Fe }) }), (0, P.jsx)(d.pU, { at: "xs", children: (0, P.jsx)(K, { show: ze, onClose: Fe }) })] })] }) } }, 8675: function(e, i, n) { n(7294); var t = n(2788); t.ZP.div.withConfig({ displayName: "styled__SidePopupWrapper", componentId: "sc-17swnm5-0" })(["position:fixed;top:0;right:0;z-index:1;z-index:999;transition:0.6s;width:auto;height:100%;", " @media ", "{", "}"], (function(e) { return e.show ? "\n right: 0px;\n " : "\n right: -500px;\n " }), (function(e) { return e.theme.mobile }), (function(e) { return e.show ? "\n right: 0px;\n " : "\n right: -100vw;\n " })), t.ZP.div.withConfig({ displayName: "styled__Overlay", componentId: "sc-17swnm5-1" })(["width:100%;height:100%;background:rgba(0,0,0,0.4);z-index:990;position:fixed;top:0;left:0;", ""], (function(e) { return e.show ? "\n display: block;\n " : "\n display: none;\n " })), t.ZP.div.withConfig({ displayName: "styled__SidePopupInner", componentId: "sc-17swnm5-2" })(["position:relative;width:500px;height:100vh;background-color:#fff;z-index:1000;overflow-y:scroll;@media ", "{width:100vw;height:100%;}"], (function(e) { return e.theme.mobile })), t.ZP.img.withConfig({ displayName: "styled__SidePopupClose", componentId: "sc-17swnm5-3" })(["position:absolute;top:50px;right:50px;width:28px;height:28px;z-index:100;cursor:pointer;@media ", "{top:29px;right:14px;width:34px;height:34px;}"], (function(e) { return e.theme.mobile })), n(5893) }, 3725: function(e, i, n) { n.d(i, { Z: function() { return m } }); n(7294); var t = n(9704), r = (n(2830), n(6044)), o = (n(7683), n(3852), n(2788)), s = o.ZP.div.withConfig({ displayName: "styled__Wrapper", componentId: "sc-1jj9p9g-0" })(["position:relative;width:100%;height:100%;overflow:hidden;background-color:#f3f4f6;"]), l = o.ZP.div.withConfig({ displayName: "styled__Section", componentId: "sc-1jj9p9g-1" })(["padding:0 20px;"]), a = (o.ZP.img.withConfig({ displayName: "styled__BackButton", componentId: "sc-1jj9p9g-2" })(["position:absolute;top:57px;left:56px;z-index:1;cursor:pointer;@media ", "{top:12px;left:10px;width:30px;height:auto;}"], (function(e) { return e.theme.mobile })), o.ZP.img.withConfig({ displayName: "styled__CloseButton", componentId: "sc-1jj9p9g-3" })(["position:absolute;top:59px;right:59px;z-index:1;cursor:pointer;@media ", "{top:10px;right:10px;width:32px;height:auto;}"], (function(e) { return e.theme.mobile })), o.ZP.div.withConfig({ displayName: "styled__InquireDate", componentId: "sc-1jj9p9g-4" })(["margin:20px 0 10px 0;span{display:block;font-size:12px;font-weight:normal;line-height:normal;text-align:center;color:#aaaaaa;}"])), d = o.ZP.div.withConfig({ displayName: "styled__Admin", componentId: "sc-1jj9p9g-5" })(["margin-bottom:10px;img{display:inline-block;margin-right:10px;width:30px;height:30px;}span{vertical-align:top;font-size:13px;font-weight:500;line-height:30px;color:#000;}"]), c = o.ZP.div.withConfig({ displayName: "styled__Service", componentId: "sc-1jj9p9g-6" })(["width:100%;height:60px;border-radius:10px;background-color:#fff;span{display:block;padding:12px 20px;font-size:12px;font-weight:normal;line-height:1.5;color:#000;}"]), p = o.ZP.div.withConfig({ displayName: "styled__InquireBox", componentId: "sc-1jj9p9g-7" })(["@media ", "{width:90%;}"], (function(e) { return e.theme.mobile })), h = o.ZP.ul.withConfig({ displayName: "styled__InquireList", componentId: "sc-1jj9p9g-8" })(["width:120px;margin-top:10px;border-radius:5px;border:1px solid #ebeef5;background-color:#fff;li{height:37px;line-height:37px;font-size:12px;font-weight:normal;text-align:center;color:#000;border-bottom:1px solid #ebeef5;}li:last-child{border-bottom:none;}"]), x = o.ZP.div.withConfig({ displayName: "styled__TopSection", componentId: "sc-1jj9p9g-9" })(["width:100%;height:50px;line-height:48px;background-color:#00A9EB;@media ", "{margin-bottom:20px;}"], (function(e) { return e.theme.mobile })), u = o.ZP.div.withConfig({ displayName: "styled__Title", componentId: "sc-1jj9p9g-10" })(["display:inline-block;padding-left:20px;font-size:14px;font-weight:500;line-height:normal;color:#fff;@media ", "{font-size:13px;}"], (function(e) { return e.theme.mobile })), g = (o.ZP.div.withConfig({ displayName: "styled__PageNum", componentId: "sc-1jj9p9g-11" })(["display:inline-block;width:auto;margin-right:20px;font-size:13px;font-weight:bold;line-height:2.92;color:#000;vertical-align:top;"]), o.ZP.textarea.withConfig({ displayName: "styled__InquireTextarea", componentId: "sc-1jj9p9g-12" })(["width:calc(100% - 40px);height:200px;margin:15px 0 30px 20px;border-radius:2px;border:solid 1px #fff;background-color:rgba(255,255,255,0.08);margin-left:41px;padding:10px;box-sizing:border-box;font-weight:500;font-size:15px;line-height:22px;color:#000;transition:0.3s;::placeholder{color:#000;}:hover{background:rgba(255,255,255,0.01);}@media ", "{margin:10px 0 25px 0px;width:100%;}"], (function(e) { return e.theme.mobile })), o.ZP.input.withConfig({ displayName: "styled__InquireInput", componentId: "sc-1jj9p9g-13" })(["display:block;width:calc(100% - 40px);height:46px;background:rgba(255,255,255,0.08);border:1px solid #FFFFFF;box-sizing:border-box;border-radius:2px;font-weight:500;font-size:15px;line-height:44px;color:#000;margin-left:41px;margin-bottom:15px;padding:0 10px;transition:0.3s;::placeholder{color:#000;}:hover{background:rgba(255,255,255,0.01);}@media ", "{margin-left:0px;width:100%;}"], (function(e) { return e.theme.mobile })), o.ZP.button.withConfig({ displayName: "styled__Submit", componentId: "sc-1jj9p9g-14" })(["display:inline-block;width:84px;height:35px;line-height:35px;background:#FFF;border-radius:2px;font-weight:500;font-size:15px;line-height:18px;color:#FD746C;border:none;margin-left:41px;margin-top:15px;img{position:relative;left:6px;bottom:1px;}@media ", "{margin-left:0;}"], (function(e) { return e.theme.mobile })), n(5893)), m = function(e) { (0, t.I0)(); return (0, g.jsx)(r.Z, { show: e.show, onClose: e.onClose, middle: !0, children: (0, g.jsxs)(s, { children: [(0, g.jsx)(x, { children: (0, g.jsx)(u, { children: "야폼몰 채팅11 상담입니다." }) }), (0, g.jsxs)(l, { children: [(0, g.jsx)(a, { children: (0, g.jsx)("span", { children: "2021년 04월 14일 오전 01:38" }) }), (0, g.jsxs)(p, { children: [(0, g.jsxs)(d, { children: [(0, g.jsx)("img", { src: "/images/inquire.png" }), (0, g.jsx)("span", { children: "네리마9" })] }), (0, g.jsx)(c, { children: (0, g.jsxs)("span", { children: ["안녕하세요! 네리마9 고객센터 입니다.", (0, g.jsx)("br", {}), "무엇을 도와드릴까요?"] }) })] }), (0, g.jsxs)(h, { children: [(0, g.jsx)("li", { children: "배송문의" }), (0, g.jsx)("li", { children: "상품문의" }), (0, g.jsx)("li", { children: "기타문의" }), (0, g.jsx)("li", { children: "1:1문의" })] })] })] }) }) } } } ]);