console.log('MA script RELEASE'); (function(b,a,r,s){ b[s]=b[s]||function(c,d){b[s][c]=d};})(window,document,'script','barsQ'); barsQ('caid','elevenam'); barsQ('cdid','mobile'); barsQ('host','cafe24'); barsQ('appi','com.byappsc.elevenam|1041293188|elevenam'); barsQ('zigzag',''); var mode = "RELEASE"; console.log("ma script in " + mode); const MA_SDK_VER = "3.0.4"; "object" != typeof barsJS && (barsJS = {}), function (t, a) { var r = t.location.href, e = t.location.hostname; -1 == r.indexOf("EKAMS=") && -1 == r.indexOf("NaPm=") || (r = t.location.protocol + "//" + e); var s = a.referrer, o = navigator.userAgent, n = !1, b = o.match("Byapps") && !o.match("StyleView"), p = o.match("Googlebot"), i = "malog.byapps.co.kr"; "function" != typeof barsJS.gtCT && (barsJS.gtCT = function () { if ("undefined" != typeof iCategoryNo) return iCategoryNo; var t; r.includes("category") ? t = /\/category\/[^\d]*(\d+)/g : r.includes("cate_no") && (t = /(?:cate_no=)(\d+)/); var a = t.exec(r); return null !== a ? a[1] : null }), "function" != typeof barsJS.gtHT && (barsJS.gtHT = function (t) { t = -1 != r.indexOf("://m.") && "undefined" != typeof EC_SDE_SHOP_NUM || void 0 !== window.CAFE24 ? "cafe24" : -1 != r.indexOf("/m2") ? "godo" : -1 != r.indexOf("/m") ? "makeshop" : "unknown", barsQ("host", t) }), "function" != typeof barsJS.gtCK && (barsJS.gtCK = function (t) { var r = a.cookie.match("(^|;) ?" + t + "=([^;]*)(;|$)"); return r ? decodeURIComponent(r[2]) : "" }), "function" != typeof barsJS.stCK && (barsJS.stCK = function (t, r, e, s, o) { var n; e && (n = new Date).setTime(n.getTime() + e), a.cookie = t + "=" + encodeURIComponent(r) + (e ? ";expires=" + n.toGMTString() : "") + (s ? ";domain=" + s : "") + ";path=" + (o || "/;") }), "function" != typeof barsJS.ckWP && (barsJS.ckWP = function () { return "serviceWorker" in navigator && "PushManager" in t && "showNotification" in ServiceWorkerRegistration.prototype && !o.match("NAVER") }), "function" != typeof barsJS.gtUD && (barsJS.gtUD = function () { function t() { return Math.floor(65536 * (1 + Math.random())).toString(16).substring(1) } return t() + t() + "-" + t() + "-" + t() + "-" + t() + "-" + t() + t() + t() }), "function" != typeof barsJS.gtUI && (barsJS.gtUI = function () { var t = barsJS.gtDS("mid") + "|" + barsJS.gtDS("mpn"); return "|" == t && (t = ""), t }), "function" != typeof barsJS.clUD && (barsJS.clUD = function () { t.addEventListener("message", (function (a) { if (-1 != a.origin.indexOf("//" + i) && a.data) { var r = JSON.parse(a.data); r.macable || (r.macable = !0, r.matoken = barsJS.gtUD()), r.matoken && (barsQ.uuid = r.matoken, barsJS.stCK("bars_uuid", barsQ.uuid, 6048e5, barsJS.rtD()), barsJS.gtMA(), b || t.addEventListener("load", (function () { barsJS.IJS() }), !1)) } })); var r = a.createElement("iframe"); r.setAttribute("frameborder", "0"), r.style.width = "0px", r.style.height = "0px", a.body.appendChild(r), setTimeout((function () { r.setAttribute("src", "//" + i + "/v/") }), 0) }), "function" != typeof barsJS.rtQ && (barsJS.rtQ = function () { var t = ""; for (var a in barsQ) "__bind__" != a && "couponLink" != a && "couponSet" != a && "rt_st" != a && -1 == a.indexOf("bind") && -1 == a.indexOf("argument") && void 0 !== barsQ[a] && (t && (t += ","), t += '"' + a + '":"' + barsQ[a].toString().replace(/[\r|\n]/g, " ").replace(/\"/gi, "") + '"'); return "q={" + t + "}" }), "function" != typeof barsJS.rtD && (barsJS.rtD = function () { var t = /[a-z-0-9]+\.([a-z]|(co|pe|or|ne|re)\.([a-z])|([a-z]\.kr))+$/gi.exec(e); return t ? "." + t[0] : h }), "function" != typeof barsJS.launch_action && (barsJS.launch_action = function (t, a, r, e) { var s = new Date, o = s.getYear() + "/" + (s.getMonth() + 1) + "/" + s.getDate(); barsJS.stCK("BYAPPS_visit_date", o, 108e6, barsJS.rtD()), $("#byapps_launch_block").remove(), $("#byapps_launch_button").remove(); var n = "undefined" != typeof byapps_custom_link ? "?openurl=" + encodeURIComponent(byapps_custom_link) : ""; "app" == t && barsJS.lcAS(a, r, e, n) }), "function" != typeof barsJS.launch_popoup && (barsJS.launch_popoup = function (t, a, r) { if (o.match(/iPhone|iPad|iPod/i) && !arguments[2]) return !1; var e = $("#byapps_install_popup_layer").html(); $("#byapps_launch_block").remove(), $("#byapps_launch_button").remove(), $("
" + e + "
").css({ top: 0, left: 0, zIndex: 20002 }).appendTo("body").stop(!0, !0).fadeIn(300), $(".button_byapps_app_install").click((function () { barsJS.launch_action("app", t, a, r) })), $(".button_byapps_app_cancel").click((function () { barsJS.launch_action("web") })) }), "function" != typeof barsJS.launch_alert && (barsJS.launch_alert = function () { if (o.match(/iPhone|iPad|iPod/i) && !arguments[2]) return !1; var t = "undefined" != typeof byapps_install_alert_text ? byapps_install_alert_text : "앱을 설치하시면 더욱 편리한 서비스를 받으실 수 있습니다\n설치하시겠습니까?"; confirm(t) ? barsJS.launch_action("app", arguments[0], arguments[1], arguments[2]) : barsJS.launch_action("web") }), "function" != typeof barsJS.install && (barsJS.install = function () { if (!b && r) { var t = barsJS.gtCK("BYAPPS_visit_count"), e = barsJS.gtCK("BYAPPS_visit_date"); t = t ? Number(t) + 1 : 1; var s = new Date, n = s.getYear() + "/" + (s.getMonth() + 1) + "/" + s.getDate(); !(0 == arguments[0] || t > Number(arguments[0])) || e && e == n ? barsJS.stCK("BYAPPS_visit_count", t, 108e6, barsJS.rtD()) : (barsJS.stCK("BYAPPS_visit_count", 0, 108e6, barsJS.rtD()), "undefined" == typeof byapps_update_alert_text || "" == byapps_update_alert_text || -1 == a.cookie.indexOf("SMA_in_app=smartapp") && -1 == r.indexOf("looketapps") && -1 == a.cookie.indexOf("app_agent=power_app") && -1 == o.indexOf("HybridShop") ? (barsQ.act = "install_popup", barsJS.sdDT("POST", "/put/", barsJS.rtQ()), "img" == arguments[1] ? barsJS.launch_popoup(arguments[2], arguments[3], arguments[4]) : "txt" == arguments[1] && barsJS.launch_alert(arguments[2], arguments[3], arguments[4])) : (barsQ.act = "update_popup", barsJS.sdDT("POST", "/put/", barsJS.rtQ()), barsJS.launch_alert(arguments[2], arguments[3], arguments[4]))) } }), "function" != typeof barsJS.popup_action && (barsJS.popup_action = function (r) { var e = new Date, s = e.getYear() + "/" + (e.getMonth() + 1) + "/" + e.getDate(), o = void 0 !== byapps_wps_popup.day ? Number(byapps_wps_popup.day) : 3; if (barsJS.stCK("wps_check_date", s, 86400 * o * 1e3, barsJS.rtD()), $("#byapps_popup_block").remove(), $("#byapps_popup_button").remove(), r && void 0 !== byapps_wps_popup.url) { var n = barsJS.gtUI(), b = a.createElement("form"), p = a.createElement("input"), i = a.createElement("input"); b.method = "POST", b.action = byapps_wps_popup.url + "/", b.target = "popup_wps", p.name = "uid", p.value = barsQ.uuid, b.appendChild(p), n && (i.name = "uif", i.value = btoa(n), b.appendChild(i)), a.body.appendChild(b), t.open("about:blank", "popup_wps", "width=600, height=400, scrollbars=no") ? b.submit() : alert("팝업차단을 허용해 주시기 바랍니다."), a.body.removeChild(b), t.onmessage = function (t) { if (t.data && -1 != t.origin.indexOf(byapps_wps_popup.url)) { var a = JSON.parse(t.data); "undefined" !== a.optin && barsJS.stCK("bars_is_wp", a.optin, 31536e7, barsJS.rtD()), "undefined" !== a.url && a.url ? self.location.href = decodeURIComponent(a.url) : "undefined" !== a.optin && 1 == a.optin && (barsQ.act = "wpon", barsQ.iswp = "1", barsJS.sdDT("POST", "/get_ma/", barsJS.rtQ(), !0)) } } } }), "function" != typeof barsJS.popup_layer && (barsJS.popup_layer = function () { var t = $("#byapps_wps_popup_layer").html(); $("#byapps_popup_block").remove(), $("#byapps_popup_button").remove(), $("
" + t + "
").css({ top: 0, left: 0, zIndex: 20002 }).appendTo("body").stop(!0, !0).fadeIn(300), $(".button_byapps_popup_confirm").click((function () { barsJS.popup_action(!0) })), $(".button_byapps_popup_cancel").click((function () { barsJS.popup_action(!1) })) }), "function" != typeof barsJS.popup_alert && (barsJS.popup_alert = function () { var t = void 0 !== byapps_wps_popup.text ? byapps_wps_popup.text : "알림 수신동의를 하시면\n특가상품, 쿠폰, 이벤트 등 다양한 광고성 정보를 알림으로 받을 수 있습니다."; confirm(t) ? barsJS.popup_action(!0) : barsJS.popup_action(!1) }), "function" != typeof barsJS.popup_custom && (barsJS.popup_custom = function () { if (a.querySelector("#byapps_wps_popup_layer").style.display = "block", a.querySelector(".button_byapps_popup_confirm").addEventListener("click", (function () { barsJS.popup_action(!0) })), a.querySelector("[wpsballoon]") && "1" != barsQ.iswp) { a.querySelector(".button_byapps_popup_confirm").classList.add("on"); var t = "undefined" != typeof byapps_wps_popup && void 0 !== byapps_wps_popup.sleep ? 1e3 * byapps_wps_popup.sleep : 5e3; setTimeout((function () { a.querySelector(".button_byapps_popup_confirm").classList.add("off") }), t) } }), "function" != typeof barsJS.subscription && (barsJS.subscription = function () { if (barsJS.ckWP() && "undefined" != typeof byapps_wps_popup && void 0 !== byapps_wps_popup.url) if ("custom" == byapps_wps_popup.type) barsJS.popup_custom(); else if ("1" != barsQ.iswp) { var t = barsJS.gtCK("wps_check_date"), a = new Date; a.getYear(), a.getMonth(), a.getDate(); t || (barsQ.act = "wps_popup", barsJS.sdDT("POST", "/put/", barsJS.rtQ()), "img" == byapps_wps_popup.type ? barsJS.popup_layer() : "txt" == byapps_wps_popup.type && barsJS.popup_alert()) } }), "function" != typeof barsJS.apCL && (barsJS.apCL = function (t) { var r = a.createElement("IFRAME"); r.setAttribute("src", "byapps://" + t), r.setAttribute("frameborder", "0"), r.style.width = "1px", r.style.height = "1px", a.body.appendChild(r), a.body.removeChild(r), r = null }), "function" != typeof barsJS.lcAS && (barsJS.lcAS = function (t, a, r, e) { if (t || a || !barsQ.appi || (a = barsQ.appi.split("|")[0], r = barsQ.appi.split("|")[1], t = barsQ.appi.split("|")[2]), barsQ.act = "install_click", barsJS.sdDT("POST", "/put/", barsJS.rtQ()), o.match(/Android/i) && a && t) if (o.match("Android4.4") || o.match("Android 4.4") || o.toLocaleLowerCase().search("chrome") > -1 && navigator.appVersion.match(/Chrome\/\d+.\d+/)[0].split("/")[1] > 25) location.href = "intent://" + t + e + "#Intent;scheme=byapps://" + t + ";action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;package=" + a + ";S.browser_fallback_url=http%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3D" + a + "%26referrer%3Dutm_source%3Dbyapps%26utm_medium%3Dlink%26utm_campaign%3DMAPOP;end"; else { var s = "market://details?id=" + a + "&referrer=utm_source%3Dbyapps%26utm_medium%3Dlink%26utm_campaign%3DMAPOP", n = (new Date).getTime(); setTimeout((function () { (new Date).getTime() - n < 2e3 && (location.href = s) }), 1500), location.href = "byapps://" + t + e } else if (o.match(/iPhone|iPad|iPod/i) && r) { s = "http://itunes.apple.com/kr/app/id" + r + "?mt=8", n = (new Date).getTime(); setTimeout((function () { (new Date).getTime() - n < 2e3 && (location.href = s) }), 1500), location.href = "byapps" + t + "://" + e } }), "function" != typeof barsJS.paCL && (barsJS.paCL = function (r) { var e = JSON.parse("{" + r + "}"); if (e.wd || (e.wd = "216px"), e.ht || (e.ht = "105px"), e.tb || (e.tb = "center"), e.lr || (e.lr = "bottom:10"), e.ani || (e.ani = "bounce"), e.bdr || (e.bdr = "0"), -1 != e.wd.indexOf("%") ? (e.wd = e.wd.replace("%", ""), e.wd = t.innerWidth * (e.wd / 100)) : e.wd = e.wd.replace("px", ""), -1 != e.ht.indexOf("%") ? (e.ht = e.ht.replace("%", ""), e.ht = t.innerHeight * (e.ht / 100)) : e.ht = e.ht.replace("px", ""), e.img && (e.bgc = "transparent"), "center" == e.tb) { var s = (t.innerHeight - e.ht) / 2; e.tb = "top:" + s } if ("center" == e.lr) { s = (t.innerWidth - e.wd) / 2; e.lr = "left:" + s } var o = a.querySelectorAll("#ma_common_class").length; if (0 == o) { o = ""; var n = a.createElement("style"); n.type = "text/css", n.id = "ma_common_class", n.innerHTML = "@keyframes byapps_ma_ani_bounce {0%{-webkit-transform:translateY(200px);}50%,80%,100%{-webkit-transform:translateY(0);}10%{-webkit-transform:translateY(-100px);}20%,40%{-webkit-transform:translateY(50px);}30%{-webkit-transform:translateY(-50px);}}@keyframes byapps_ma_ani_zoomin {0%{-webkit-transform:scale(0);opacity:0;}50%,80%,100%{-webkit-transform:scale(1.0);opacity:1;}10%{-webkit-transform:scale(1.5);opacity:1;}20%,40%{-webkit-transform:scale(0.5);opacity:0.5;}30%{-webkit-transform:scale(1.2);opacity:1;}}@keyframes byapps_ma_ani_rollingout {0%{-webkit-transform:rotate(-180deg);opacity:0;}50%,80%,100%{-webkit-transform:rotate(0deg);opacity:1;}10%{-webkit-transform:rotate(45deg);opacity:1;}20%,40%{-webkit-transform:rotate(-90deg);opacity:0.5;}30%{-webkit-transform:rotate(45deg);opacity:1;}}@keyframes byapps_ma_ani_slideleft {0%{-webkit-transform:translateX(200%);opacity:0;}100%{-webkit-transform:translateX(0);opacity:1;}}@keyframes byapps_ma_ani_slideright {0%{-webkit-transform:translateX(-100%);opacity:0;}100%{-webkit-transform:translateX(0);opacity:1;}}@keyframes byapps_ma_ani_maskin {0%{-webkit-mask-image:-webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);-webkit-mask-size: 10px;}100%{-webkit-mask-size: 400px;}}@keyframes byapps_ma_ani_fadein {0%{opacity:0;}100%{opacity:1;}}.byapps_ma_pop_banner{position:fixed;width:" + e.wd + "px;height:" + e.ht + "px;" + e.tb + "px;" + e.lr + "px;font-size:12px;font-family:'NanumGothic','serif';text-align:center;letter-spacing:-1px;overflow:hidden;animation:byapps_ma_ani_" + e.ani + ";z-index:9999999999999;}.byapps_ma_pop_banner h1{letter-spacing:-3px;line-height:130% !important;}.byapps_ma_pop_close{position:absolute;display:inline-block;width:20px;height:20px;top:0;right:0;background:#fff;border-radius:10px;overflow:hidden;}.byapps_ma_pop_close:before,.byapps_ma_pop_close:after{content:'';position:absolute;height:2px;width:14px;top:9px;left:3px;background:#000;}.byapps_ma_pop_close:before{-webkit-transform:rotate(45deg);}.byapps_ma_pop_close:after{-webkit-transform:rotate(-45deg);}", a.getElementsByTagName("head")[0].appendChild(n) } else a.querySelectorAll("#ma_common_class")[0].innerHTML += ".byapps_ma_pop_banner" + o + "{position:fixed;width:" + e.wd + "px;height:" + e.ht + "px;" + e.tb + "px;" + e.lr + "px;font-size:12px;font-family:'NanumGothic','serif';text-align:center;letter-spacing:-1px;overflow:hidden;animation:byapps_ma_ani_" + e.ani + ";z-index:9999999999999;}"; var b = a.createElement("div"); b.id = "byapps_ma_pop_banner_body", b.className = "byapps_ma_pop_banner" + o, a.body.appendChild(b); var p = a.querySelectorAll("#byapps_ma_pop_banner_body"); p[p.length - 1].style = "display:block !important"; var i = e.txt ? decodeURIComponent(e.txt) : '', c = "ma_" + Math.floor(65536 * (1 + Math.random())).toString(16).substring(1); p[p.length - 1].innerHTML = '' + i + '', a.getElementById(c).addEventListener("click", (function () { barsJS.dnCP(e.id, e.pt, e.lt) }), !1); var _ = a.getElementsByClassName("byapps_ma_pop_close"); _[_.length - 1].addEventListener("click", (function () { barsJS.clPA("byapps_ma_pop_banner_body") }), !1) }), "function" != typeof barsJS.clPA && (barsJS.clPA = function (t) { t || (t = "byapps_ma_pop_banner_body"); var r = a.querySelectorAll("#" + t); r[r.length - 1].remove() }), "function" != typeof barsJS.ckAT && (barsJS.ckAT = function () { var a = t.location.pathname; return "mall" == barsQ.host && "object" == typeof Byapps_MA_SDK_custom && "function" == typeof Byapps_MA_SDK_custom.get_action ? Byapps_MA_SDK_custom.get_action() : "" != barsJS.gtDS("title") || -1 != a.indexOf("product/detail.html") || "cafe24" == barsQ.host && "PRODUCT_DETAIL" == barsJS.gtMT('[name="path_role"]') || -1 != a.indexOf("/m/product.html") || -1 != a.indexOf("/goods/goods_view.php") || -1 != a.indexOf("/goods/view.php") ? "view" : "MEMBER_LOGIN" == barsJS.gtMT('[name="path_role"]') || -1 != a.indexOf("member/login.html") || -1 != a.indexOf("front/php/login/") || -1 != a.indexOf("/m/login.html") || -1 != a.indexOf("/member/login.php") || -1 != a.indexOf("/mem/login.php") ? "login" : "MEMBER_JOIN" == barsJS.gtMT('[name="path_role"]') || -1 != a.indexOf("member/join.html") || -1 != a.indexOf("member/agreement.html") || -1 != a.indexOf("/m/join.html") || -1 != a.indexOf("/m/join_contract.html") || -1 != a.indexOf("/member/join_agreement.php") || -1 != a.indexOf("/mem/join.php") ? "join" : "MEMBER_JOINRESULT" == barsJS.gtMT('[name="path_role"]') || -1 != a.indexOf("member/join_result.html") || -1 != a.indexOf("/m/join_complete.html") ? "joined" : "ORDER_BASKET" == barsJS.gtMT('[name="path_role"]') || -1 != a.indexOf("order/basket.html") || -1 != a.indexOf("/m/basket.html") || -1 != a.indexOf("/order/cart.php") || -1 != a.indexOf("/goods/cart.php") ? "cart" : "PRODUCT_LIST" == barsJS.gtMT('[name="path_role"]') || -1 != r.indexOf("product/list.html?cate_no") || -1 != a.indexOf("product/list_") && -1 != r.indexOf("html?cate_no") || -1 != a.indexOf("product_list.html") || -1 != r.indexOf("/goods/list.php?category") ? "cate" : "PRODUCT_SEARCH" == barsJS.gtMT('[name="path_role"]') || -1 != a.indexOf("product/search.html") || -1 != a.indexOf("/m/search.html") || -1 != a.indexOf("/goods/goods_search.php") || -1 != a.indexOf("/goods/goods_search.php") || -1 != r.indexOf("/goods/list.php?kw") ? "search" : "ORDER_ORDERFORM" == barsJS.gtMT('[name="path_role"]') || -1 != a.indexOf("order/orderform.html") || -1 != a.indexOf("/m/order.html") || -1 != a.indexOf("/order/order.php") || -1 != a.indexOf("/ord/order.php") ? "order" : "ORDER_ORDERRESULT" == barsJS.gtMT('[name="path_role"]') || -1 != a.indexOf("order/order_result.html") || -1 != a.indexOf("/m/order_complete.html") ? "ordered" : "move" }), "function" != typeof barsJS.gtQP && (barsJS.gtQP = function (t, a) { var r = ""; return t.toString().replace(/[?&]+([^=&]+)=([^&]*)/gi, (function (t, e, s) { e == a && (r = s) })), r.split("#")[0] }), "function" != typeof barsJS.stTG && (barsJS.stTG = function (t) { return t.toString().replace(/(<([^>]+)>)/gi, "") }), "function" != typeof barsJS.stPR && (barsJS.stPR = function (t) { return t.replace(/[^0-9]/g, "") }), "function" != typeof barsJS.stCT && (barsJS.stCT = function (t) { var a = barsJS.gtCK("bars_" + t + "_cnt"); a = a ? Number(a) : 0, a++, barsJS.stCK("bars_" + t + "_cnt", a, 864e5, barsJS.rtD()) }), "function" != typeof barsJS.ckSE && (barsJS.ckSE = function () { return "mall" == barsQ.host && "object" == typeof Byapps_MA_SDK_custom && "function" == typeof Byapps_MA_SDK_custom.is_search ? Byapps_MA_SDK_custom.is_search() : -1 != s.indexOf("product/search.html") || -1 != s.indexOf("/m/search.html") ? 1 : 0 }), "function" != typeof barsJS.ckAR && (barsJS.ckAR = function (t, a) { if (!(t = barsJS.gtCK("bars_ma_" + t))) return !1; for (var r = t.split(";"), e = 0; e < r.length; e++)if (r[e] == a) return !0; return !1 }), "function" != typeof barsJS.inAR && (barsJS.inAR = function (t, a, r) { if (!t) return !1; for (var e = t.split(r), s = 0; s < e.length; s++)if (e[s] == a) return !0; return !1 }), "function" != typeof barsJS.ckPR && (barsJS.ckPR = function (t, a) { var r = barsJS.gtCK("bars_ma_pp_" + t); return !((r = r ? Number(r) : 0) >= Number(a)) }), "function" != typeof barsJS.stPP && (barsJS.stPP = function (t, a) { var r = barsJS.gtCK("bars_ma_pp_" + t); r = r ? Number(r) : 0, a = a ? Number(a) : 24, r++, barsJS.stCK("bars_ma_pp_" + t, r, 3600 * a * 1e3, barsJS.rtD()) }), "function" != typeof barsJS.ckLG && (barsJS.ckLG = function () { return "cafe24" == barsQ.host && barsJS.gtCK("ec_mem_level") || "makeshop" == barsQ.host && barsJS.gtCK("login_id") ? 1 : "mall" == barsQ.host && "object" == typeof Byapps_MA_SDK_custom && "function" == typeof Byapps_MA_SDK_custom.is_login ? Byapps_MA_SDK_custom.is_login() : 0 }), "function" != typeof barsJS.ckUL && (barsJS.ckUL = function (t) { var r = a.createElement("a"); return r.setAttribute("href", t), t = !r.protocol || "http:" != r.protocol && "https:" != r.protocol ? "http:" : r.protocol, t += r.hostname ? "//" + r.hostname : "//" + e, t += r.pathname ? r.pathname : "", t += r.search ? r.search : "" }), "function" != typeof barsJS.ckRF && (barsJS.ckRF = function (t) { var r = "direct"; if ("byapps_ma_shortcut" == t) r = t; else { var s = a.createElement("a"); s.setAttribute("href", t), e != s.hostname && (r = s.hostname) } r = barsQ.zigzag ? "zigzag" : r, barsJS.stCK("bars_vfrom", r, 36e6, barsJS.rtD()) }), "function" != typeof barsJS.ckVF && (barsJS.ckVF = function (t, a) { return "all" == t || t == barsQ.vfrom || "search" == t && "all" == a || "search" == t && -1 != barsQ.vfrom.indexOf(a) }), "function" != typeof barsJS.ckCT && (barsJS.ckCT = function (t) { "cafe24" == barsQ.host ? t = barsJS.gtCT() : "makeshop" == barsQ.host ? t = barsJS.gtQP(r, "xcode") : "mall" == barsQ.host && "object" == typeof Byapps_MA_SDK_custom && "function" === Byapps_MA_SDK_custom.get_category && (t = Byapps_MA_SDK_custom.get_category()), t && (t = t + ";" + barsJS.gtCK("bars_ma_ct"), barsJS.stCK("bars_ma_ct", t, 72e5, barsJS.rtD())) }), "function" != typeof barsJS.ckCC && (barsJS.ckCC = function (t, a) { let r = barsJS.gtCK(a); if (!r) return !1; let e = r.split(";"); if (e.length < 1) return !1; let s = 0, o = e[0]; for (let t = 1; t < e.length; t++)e[t] && e[t] == o && s++; return s > 0 && s % t == 0 }), "function" != typeof barsJS.gtMT && (barsJS.gtMT = function (t) { try { return a.querySelector(t).getAttribute("content") } catch (t) { return "" } }), "function" != typeof barsJS.gtOS && (barsJS.gtOS = function () { return o.match(/Android/i) ? "android" : o.match(/iPhone|iPad|iPod/i) ? "ios" : -1 != o.indexOf("Window") ? "windows" : -1 != o.indexOf("Mac") ? "mac" : -1 != o.indexOf("X11") ? "unix" : -1 != o.indexOf("Linux") ? "linux" : void 0 }), "function" != typeof barsJS.stDS && (barsJS.stDS = function (t, r) { try { a.querySelector('[data-byapps-item="' + t + '"]').innerHTML = r } catch (t) { } }), "function" != typeof barsJS.gtDS && (barsJS.gtDS = function (t) { try { return a.querySelector('[data-byapps-item="' + t + '"]').getAttribute("data-byapps-item-value") || a.querySelector('[data-byapps-item="' + t + '"]').textContent } catch (t) { return "" } }), "function" != typeof barsJS.ckPC && (barsJS.ckPC = function (t, a, r) { var e = barsJS.gtCK("bars_basket_cnt"), s = barsJS.gtCK("bars_like_cnt"); return e = e ? Number(e) : 0, s = s ? Number(s) : 0, "0" == t && "0" == a || ("0" != t && "0" != a ? "or" == r && (e >= Number(t) || s >= Number(a)) || "and" == r && e >= Number(t) && s >= Number(a) : ("0" != t || "0" != a) && ("0" != t && e >= Number(t) || "0" != a && s >= Number(a))) }), "function" != typeof barsJS.ckMA && (barsJS.ckMA = function (t, a) { return t %= 10, "10" == a || 0 != t && t / a <= 1 }), "function" != typeof barsJS.ckCN && (barsJS.ckCN = function (t) { return !(!barsJS.ckVF(t.vf, t.vs) || !barsJS.ckPC(t.ac, t.al, t.ao) || barsJS.ckAR(t.pt, t.id) || "0" != t.sn && !barsJS.ckPR(t.id, Number(t.sn))) }), "function" != typeof barsJS.acMA && (barsJS.acMA = function (t) { barsQ[t] && barsJS.paCL(barsQ[t]) }), "function" != typeof barsJS.stBQ && (barsJS.stBQ = function () { if (!barsQ.uuid) { var t = barsJS.gtCK("bars_uuid"); t ? barsQ("uuid", t) : barsJS.clUD() } barsQ.uuid && barsJS.stCK("bars_uuid", barsQ.uuid, 6048e5, barsJS.rtD()), barsQ("url", encodeURIComponent(r)), barsQ("refer", encodeURIComponent(s)), barsQ("uagent", encodeURIComponent(o)), barsJS.gtCK("bars_vfrom") && barsJS.gtCK("bars_visit") || barsQ("visit", "yes"), s && !barsJS.gtCK("bars_vfrom") && barsJS.ckRF(s), b && barsQ("cdid", "app"), barsQ.os || (barsQ("os", barsJS.gtOS()), barsQ.os.match(/ios|android/i) || barsQ("cdid", "pc")), barsQ.host || barsJS.gtHT(), barsQ("lgin", barsJS.ckLG()), "1" == barsQ.lgin && barsJS.stCK("bars_is_mb", barsQ.lgin, 31536e6, barsJS.rtD()), -1 != r.indexOf("?byapps_ma_shortcut") && barsJS.ckRF("byapps_ma_shortcut"); var a = barsJS.ckAT(); if (barsQ("act", a), "view" == a ? barsJS.gtDT() : "cate" == a ? barsJS.ckCT() : "order" == a ? barsJS.gtOI() : "ordered" == a && barsJS.gtOR(), b && "ios" == barsQ.os && "cafe24" == barsQ.host && "order" == a && -1 == r.indexOf("app_scheme") && self.location.replace(r + "&app_scheme=byapps" + barsQ.caid + "://"), "1" == barsQ.lgin && barsJS.gtCK("bars_ma_rdcp") && confirm(decodeURIComponent("%EB%B0%9C%EA%B8%89%EA%B0%80%EB%8A%A5%ED%95%9C%20%EC%BF%A0%ED%8F%B0%EC%9D%B4%20%EC%A1%B4%EC%9E%AC%ED%95%A9%EB%8B%88%EB%8B%A4.%0A%EB%B0%9C%EA%B8%89%EB%B0%9B%EC%9C%BC%EC%8B%9C%EA%B2%A0%EC%8A%B5%EB%8B%88%EA%B9%8C%3F"))) { var e = barsJS.gtCK("bars_ma_rdcp"), n = barsJS.gtCK("bars_ma_cp") + e.split("|")[0] + ";"; barsJS.stCK("bars_ma_cp", n, 31536e7, barsJS.rtD()), barsJS.stCK("bars_ma_rdcp", "", -2592e7, barsJS.rtD()), b && !barsJS.gtCK("bars_is_ap") && barsJS.stCK("bars_is_ap", "yes", 31536e7, barsJS.rtD()), self.location.replace(e.split("|")[1]) } var p = Math.round((new Date).getTime() / 1e3); if (barsJS.gtCK("bars_visit")) { var i = Number(barsJS.gtCK("bars_visit")); barsQ.stayed = p - i } else barsJS.stCK("bars_visit", p, 72e5, barsJS.rtD()); barsQ("vfrom", encodeURIComponent(barsJS.gtCK("bars_vfrom"))) }), "function" != typeof barsJS.gtDT && (barsJS.gtDT = function () { var a = barsJS.gtDS("purl"), e = barsJS.gtDS("pno"), s = barsJS.gtDS("image"), o = barsJS.stTG(barsJS.gtDS("title")), n = barsJS.gtDS("cate"), b = barsJS.gtDS("cate_title"), p = barsJS.gtDS("price"); p && (p = barsJS.stPR(barsJS.stTG(p))); var i = barsJS.gtDS("sprice"); if (i && (i = barsJS.stPR(barsJS.stTG(i))), "cafe24" == barsQ.host) { if (o || "undefined" == typeof product_name || (o = product_name), a || (a = barsJS.gtMT('[property="og:url"]')), e || (e = "undefined" != typeof iProductNo ? iProductNo : barsJS.gtQP(r, "product_no")), e || "PRODUCT_DETAIL" != barsJS.gtMT('[name="path_role"]') || (e = t.location.pathname.split("/")[3]), !s || s && -1 != s.indexOf("img_product_big.gif")) { var c = barsJS.gtMT('[property="og:image"]'); c && (s = c) } n || (n = barsJS.gtCT()), n || "PRODUCT_DETAIL" != barsJS.gtMT('[name="path_role"]') || (n = t.location.pathname.split("/")[5] || ""), p || ("undefined" != typeof iProductPrice ? p = iProductPrice : "undefined" != typeof productPrice && (p = productPrice)), p && i && i > p && (i = barsJS.gtMT('[property="product:sale_price:amount"]')) && (i = barsJS.stPR(barsJS.stTG(i))) } else "makeshop" == barsQ.host && (a || (a = barsJS.gtMT('[property="og:url"]')), e || (e = barsJS.gtQP(r, "branduid")), n || (n = barsJS.gtQP(r, "xcode"))); if (e && (e = barsJS.stTG(e)), p && i && i > p && (i = p), a || (a = r), a && -1 == a.indexOf("http:") && (a = barsJS.ckUL(a)), s && -1 == s.indexOf("http:") && (s = barsJS.ckUL(s)), o && (o = o.replace(/\"/gi, "")), e) { var _ = e + ";" + barsJS.gtCK("bars_ma_sp"); barsJS.stCK("bars_ma_sp", _, 36e5, barsJS.rtD()) } barsQ("purl", encodeURIComponent(a)), barsQ("title", encodeURIComponent(o)), barsQ("image", encodeURIComponent(s)), barsQ("price", encodeURIComponent(p)), barsQ("sprice", encodeURIComponent(i)), barsQ("itemno", encodeURIComponent(e)), barsQ("cate", encodeURIComponent(n)), barsQ("cate_name", encodeURIComponent(b)), barsQ("issearch", barsJS.ckSE()) }), "function" != typeof barsJS.gtOI && (barsJS.gtOI = function () { if ("cafe24" == barsQ.host) { let t = a.querySelector("#total_price").value, r = 0, e = []; if (t || "object" != typeof EC_ORDER_FORM_ASSIGN_DATA || void 0 === EC_ORDER_FORM_ASSIGN_DATA.r_total_price || (t = EC_ORDER_FORM_ASSIGN_DATA.r_total_price), "object" == typeof EC_ORDER_FORM_ASSIGN_DATA && void 0 !== EC_ORDER_FORM_ASSIGN_DATA.ship_fee && (r = EC_ORDER_FORM_ASSIGN_DATA.ship_fee), "undefined" != typeof aBasketProductOrderData && aBasketProductOrderData.length > 0) for (let t = 0; t < aBasketProductOrderData.length; t++)e.push(aBasketProductOrderData[t].product_no); if (e.length > 0) { let t = e.join("|"); barsQ("itemno", encodeURIComponent(t)), barsJS.stCK("bars_items", t, 108e6, barsJS.rtD()) } t && (barsQ("orderamount", encodeURIComponent(t)), barsJS.stCK("bars_tp", t, 108e6, barsJS.rtD())), r && barsQ("shipamount", encodeURIComponent(r)) } else if ("mall" == barsQ.host && "object" == typeof Byapps_MA_SDK_custom) { var t = "function" == typeof Byapps_MA_SDK_custom.get_orderlist ? Byapps_MA_SDK_custom.get_orderlist() : ""; t && (barsQ("itemno", encodeURIComponent(t)), barsJS.stCK("bars_items", t, 108e6, barsJS.rtD())); var r = "function" == typeof Byapps_MA_SDK_custom.get_orderamount ? Byapps_MA_SDK_custom.get_orderamount() : ""; r && (barsQ("orderamount", encodeURIComponent(r)), barsJS.stCK("bars_tp", r, 108e6, barsJS.rtD())) } }), "function" != typeof barsJS.ijSC && (barsJS.ijSC = function () { if ("cafe24" == barsQ.host) { if ("function" == typeof t.basket_result_action && "function" != typeof byapps_interrupt_basket) { var a = t.basket_result_action; n = !0, t.basket_result_action = function () { return barsQ.act = "basket", barsJS.sdDT("POST", "/put/", barsJS.rtQ()), a.apply(a, arguments) } } if ("object" == typeof t.EC_SHOP_FRONT_PRODUCT_OPTIONLAYER && "function" == typeof t.EC_SHOP_FRONT_PRODUCT_OPTIONLAYER.showLayer && "function" != typeof byapps_interrupt_basket_ly) { var r = t.EC_SHOP_FRONT_PRODUCT_OPTIONLAYER.showLayer; n = !0, t.EC_SHOP_FRONT_PRODUCT_OPTIONLAYER.showLayer = function () { return "basket" != barsQ.act && (barsQ.act = "basket", barsJS.sdDT("POST", "/put/", barsJS.rtQ())), r.apply(r, arguments) } } if ("function" == typeof t.add_wishlist_result && "function" != typeof byapps_interrupt_like) { var e = t.add_wishlist_result; n = !0, t.add_wishlist_result = function () { return barsQ.act = "like", barsJS.sdDT("POST", "/put/", barsJS.rtQ()), e.apply(e, arguments) } } } else if ("makeshop" == barsQ.host) { if ("function" == typeof t.send && "function" != typeof byapps_interrupt_basket && !b) { a = t.send; n = !0, t.send = function () { return barsQ.act = "basket", barsJS.sdDT("POST", "/put/", barsJS.rtQ()), a.apply(a, arguments) } } if ("function" == typeof t.send_wish && "function" != typeof byapps_interrupt_like && !b) { e = t.send_wish; n = !0, t.send_wish = function () { return barsQ.act = "like", barsJS.sdDT("POST", "/put/", barsJS.rtQ()), e.apply(e, arguments) } } } else if ("mall" == barsQ.host && "object" == typeof t.Byapps_MA_SDK_custom && "function" == typeof t.Byapps_MA_SDK_custom.do_retarget_action) { a = t.Byapps_MA_SDK_custom.do_retarget_action; n = !0, t.Byapps_MA_SDK_custom.do_retarget_action = function () { var t = arguments.length > 0 ? arguments[0] : "like"; return barsQ.act = t, barsJS.sdDT("POST", "/put/", barsJS.rtQ()), a.apply(a, arguments) } } }), "function" != typeof barsJS.gtOR && (barsJS.gtOR = function () { let t = []; if ("object" == typeof EC_FRONT_EXTERNAL_SCRIPT_VARIABLE_DATA && void 0 !== EC_FRONT_EXTERNAL_SCRIPT_VARIABLE_DATA.payed_amount) { if (barsQ("orderamount", encodeURIComponent(EC_FRONT_EXTERNAL_SCRIPT_VARIABLE_DATA.payed_amount)), barsQ("orderno", encodeURIComponent(EC_FRONT_EXTERNAL_SCRIPT_VARIABLE_DATA.order_id)), EC_FRONT_EXTERNAL_SCRIPT_VARIABLE_DATA.order_product.length > 0) { let a = EC_FRONT_EXTERNAL_SCRIPT_VARIABLE_DATA.order_product; for (let r = 0; r < a.length; r++)t.push(a[r].product_no); if (t.length > 0) { let a = t.join("|"); barsQ("itemno", encodeURIComponent(a)) } } } else barsJS.gtCK("bars_items") && barsQ("itemno", encodeURIComponent(barsJS.gtCK("bars_items"))), barsJS.gtCK("bars_tp") && barsQ("orderamount", encodeURIComponent(barsJS.gtCK("bars_tp"))), "undefined" != typeof byapps_order_info && ("string" == typeof byapps_order_info && (byapps_order_info = JSON.parse(byapps_order_info)), byapps_order_info.order_id && barsQ("orderno", encodeURIComponent(byapps_order_info.order_id)), byapps_order_info.amount && barsQ("orderamount", encodeURIComponent(byapps_order_info.amount))), "cafe24" != barsQ.host || barsQ.orderno || barsQ("orderno", encodeURIComponent(barsJS.gtQP(r, "order_id"))) }), "function" != typeof barsJS.rtMA && (barsJS.rtMA = function (a) { let e = JSON.parse(a), s = Math.round((new Date).getTime() / 1e3), o = barsJS.gtCK("bars_ma_vt"), n = barsJS.gtCK("bars_ma_vc"), p = barsJS.gtCK("bars_ma_cc"), i = barsJS.gtCK("bars_cs_no"); if (o = o ? Number(o) : s - 1, n = n ? Number(n) : 1, p = p ? Number(p) : 1, i = i ? Number(i) : 0, e.length) for (let a = 0; a < e.length; a++) { if ("visit" == e[a].at && ("0" == e[a].cv && "0" == barsQ.vtime || "0" != e[a].cv && Math.ceil((s - o) / 3600) > Number(e[a].cv)) && barsJS.ckCN(e[a])) { barsJS.mkPA(e[a]); break } if ("view" == e[a].at && "view" == barsQ.act && p % Number(e[a].cv) == 0 && barsJS.ckCN(e[a])) { barsJS.mkPA(e[a]); break } if ("pview" == e[a].at && "view" == barsQ.act && barsQ.itemno && barsJS.inAR(e[a].cv, barsQ.itemno, ",") && barsJS.ckCN(e[a])) { barsJS.mkPA(e[a]); break } if ("cview" == e[a].at && "cate" == barsQ.act && barsJS.ckCC(Number(e[a].cv), "bars_ma_ct") && barsJS.ckCN(e[a])) { let t = ""; if ("cafe24" == barsQ.host ? t = barsJS.gtCT() : "makeshop" == barsQ.host ? t = barsJS.gtQP(r, "xcode") : "mall" == barsQ.host && "object" == typeof Byapps_MA_SDK_custom && "function" === Byapps_MA_SDK_custom.get_category && (t = Byapps_MA_SDK_custom.get_category()), t && barsJS.inAR(e[a].sf, t, ",")) { barsJS.mkPA(e[a]); break } } else { if ("cart" == e[a].at && "cart" == barsQ.act && n % Number(e[a].cv) == 0 && barsJS.ckCN(e[a])) { barsJS.mkPA(e[a]); break } if ("homestay" == e[a].at && barsQ.stayed > 0 && barsJS.ckCN(e[a])) { let t = Number(barsQ.stayed), r = Number(e[a].cv) - t; r < 0 && (r = 0); let s = e[a]; setTimeout((function () { barsJS.mkPA(s) }), 1e3 * r) } else if ("stay" == e[a].at && "view" == barsQ.act && barsJS.ckCN(e[a])) { let r = e[a], s = Number(e[a].cv); t.addEventListener("touchend", (function () { barsQ.touch ? barsQ.touch++ : barsQ.touch = 1, 5 == barsQ.touch && setTimeout((function () { barsJS.mkPA(r) }), 1e3 * s) }), !1) } else { if ("sproduct" == e[a].at && "view" == barsQ.act && barsJS.ckCC(Number(e[a].cv), "bars_ma_sp") && barsJS.ckCN(e[a])) { barsJS.mkPA(e[a]); break } if ("cate" == e[a].at && "cate" == barsQ.act && barsJS.ckCC(Number(e[a].cv), "bars_ma_ct") && barsJS.ckCN(e[a])) { barsJS.mkPA(e[a]); break } if ("nologin" == e[a].at && 0 == barsQ.lgin && "1" == barsQ.ismb && n % Number(e[a].cv) == 0 && barsJS.ckCN(e[a])) { barsJS.mkPA(e[a]); break } if ("yes" != barsQ.visit & "move" == e[a].at && n % Number(e[a].cv) == 0 && barsJS.ckCN(e[a])) { barsJS.mkPA(e[a]); break } if ("joined" == e[a].at && "joined" == barsQ.act && barsJS.ckCN(e[a])) { barsJS.mkPA(e[a]); break } if ("wpon" == e[a].at && "wpon" == barsQ.act && "1" == barsQ.iswp && barsJS.ckCN(e[a])) { barsJS.mkPA(e[a]); break } if ("order" == e[a].at && "order" == barsQ.act) { let t = barsQ.orderamount ? barsJS.stPR(decodeURIComponent(barsQ.orderamount)) : 0; if (barsQ.shipamount && (t -= barsJS.stPR(decodeURIComponent(barsQ.shipamount))), Number(e[a].sf) <= Number(t) && Number(e[a].st) >= Number(t) && barsJS.ckCN(e[a])) { barsJS.mkPA(e[a]); break } } else if ("ordered" == e[a].at && "ordered" == barsQ.act) { let t = barsQ.orderamount ? barsJS.stPR(decodeURIComponent(barsQ.orderamount)) : 0; if (Number(e[a].sf) <= Number(t) && Number(e[a].st) >= Number(t) && barsJS.ckCN(e[a])) { barsJS.mkPA(e[a]); break } } else { if ("install" == e[a].at && "yes" == barsQ.isap && b) { barsJS.ckAR(e[a].pt, e[a].id) && !barsJS.gtCK("bars_is_ap") ? barsJS.stCK("bars_is_ap", "yes", 31536e7, barsJS.rtD()) : barsJS.mkPA(e[a]); break } if ("ismc" == e[a].at) barsJS.stCK("bars_is_mc", e[a].va, 7776e6, barsJS.rtD()); else if ("ismt" == e[a].at) barsJS.stCK("bars_is_mt", e[a].va, 36e5, barsJS.rtD()); else if ("iswp" == e[a].at) barsJS.stCK("bars_is_wp", e[a].va, 31536e7, barsJS.rtD()); else if ("csno" == e[a].at) i != Number(e[a].va) && (i = Number(e[a].va), barsJS.stCK("bars_cs_no", i, 864e5, barsJS.rtD()), barsJS.stCK("bars_cs_dt", s, 864e5, barsJS.rtD()), barsQ.csno = i), void 0 !== e[a].xp && barsJS.stCK("bars_is_xp", e[a].xp, 108e5, barsJS.rtD()); else if ("retarget" == e[a].at) { let t = e[a].pt + "|" + e[a].msg; barsQ("rt_st", t), barsJS.stCK("_rt_st_", t, 864e5, barsJS.rtD()), void 0 !== e[a].wpr && barsQ("rt_wpr", e[a].wpr), void 0 !== e[a].wph && barsQ("rt_wph", e[a].wph) } } } } } barsJS.stCK("bars_ma_vt", s, 2592e6, barsJS.rtD()), barsJS.subscription() }), "function" != typeof barsJS.mkPA && (barsJS.mkPA = function (t) { if (t.ul && -1 != t.ul.indexOf("naversearchapp://") && (!o.match("NAVER") || "android" != barsQ.os || barsJS.gtCK("bars_bacon_set"))) return !1; if (barsJS.ckVF(t.vf, t.vs) && barsJS.ckPC(t.ac, t.al, t.ao) && !barsJS.ckAR(t.pt, t.id) && ("0" == t.sn || barsJS.ckPR(t.id, Number(t.sn)))) if (barsJS.ckMA(barsQ.csno, t.sp)) { if ("homestay" == t.at) { var a = Math.round((new Date).getTime() / 1e3); barsJS.stCK("bars_visit", a, 72e5, barsJS.rtD()) } t.wd || (t.wd = "216px"), t.ht || (t.ht = "105px"), t.tb || (t.tb = "center"), t.lr || (t.lr = "bottom:10"), t.ani || (t.ani = "bounce"), t.bdr || (t.bdr = "0"), barsJS.stPP(t.id, Number(t.sa)), barsJS.stCK("bars_pcode", t.id, 18e6, barsJS.rtD()), barsQ("act_ma", encodeURIComponent(t.at)), barsQ("act_ma_id", encodeURIComponent(t.id)), barsJS.sdDT("POST", "/put_ma/", barsJS.rtQ()), barsQ.couponSet = '"typ":"banner","ico":"coupon","bgc":"' + t.bc + '","txc":"' + t.tc + '"', barsQ.couponSet += ',"wd":"' + t.wd + '","ht":"' + t.ht + '","tb":"' + t.tb + '","lr":"' + t.lr + '","ani":"' + t.ani + '","bdr":"' + t.bdr + '"', t.ul && -1 != t.ul.indexOf("byapps://") && b || t.ul && -1 != t.ul.indexOf("naversearchapp://") || t.ul && -1 != t.ul.indexOf("script://") ? barsQ.couponLink = t.ul : t.ul ? barsQ.couponLink = t.ul + "&u=" + encodeURIComponent(r) : barsQ.couponLink = "", b && (t.ul = "byapps://js_barsJS.dnCP(" + t.id + ",'" + t.pt + "','" + t.lt + "')"), barsQ.couponSet += ',"id":"' + t.id + '","pt":"' + t.pt + '","lt":"' + t.lt + '"', "text" == t.ct ? barsQ.couponSet += ',"txt":"' + encodeURIComponent(t.cp) + '","url":"' + t.ul + '"' : "image" == t.ct && (barsQ.couponSet += ',"img":"' + t.cp + '","url":"' + t.ul + '"'), barsJS.acMA("couponSet") } else if ("0" != barsQ.csno) { if ("homestay" == t.at) { a = Math.round((new Date).getTime() / 1e3); barsJS.stCK("bars_visit", a, 72e5, barsJS.rtD()) } barsJS.stPP(t.id, Number(t.sa)), barsJS.stCK("bars_scode", t.id + ";" + t.sp, 18e6, barsJS.rtD()), barsQ("ma_sp", encodeURIComponent(t.sp)), barsQ("act_ma", encodeURIComponent(t.at)), barsQ("act_ma_id", encodeURIComponent(t.id)), barsJS.sdDT("POST", "/put_ma/", barsJS.rtQ()) } }), "function" != typeof barsJS.dnCP && (barsJS.dnCP = function (t, a, r) { barsJS.stCK("bars_acode", t, 18e6, barsJS.rtD()), "ev" == a ? barsQ.couponLink && (t = barsJS.gtCK("bars_ma_ev") + t + ";", barsJS.stCK("bars_ma_ev", t, 864e5, barsJS.rtD())) : "cp" == a && ("1" == barsQ.lgin || b && "byapps://shopCoupon" == barsQ.couponLink ? (t = barsJS.gtCK("bars_ma_cp") + t + ";", barsJS.stCK("bars_ma_cp", t, 31536e7, barsJS.rtD()), "yes" == barsQ.isap && b && !barsJS.gtCK("bars_is_ap") && barsJS.stCK("bars_is_ap", "yes", 31536e7, barsJS.rtD())) : barsQ.couponLink && barsJS.stCK("bars_ma_rdcp", t + "|" + barsQ.couponLink, 18e5, barsJS.rtD())), "app" != r || b || "mobile" != barsQ.cdid ? (barsQ("ma_click", "Y"), barsQ.couponLink && -1 != barsQ.couponLink.indexOf("naversearchapp://") && barsQ("bcon", "Y"), barsJS.sdDT("POST", "/put_ma/", barsJS.rtQ(), barsJS.mvLK)) : (barsJS.lcAS(), barsJS.clPA()) }), "function" != typeof barsJS.mvLK && (barsJS.mvLK = function () { if (barsQ.couponLink && -1 != barsQ.couponLink.indexOf("naversearchapp://") && (barsJS.stCK("bars_bacon_set", "yes", 31536e7, barsJS.rtD()), barsJS.clPA()), barsQ.couponLink && -1 != barsQ.couponLink.indexOf("script://")) { barsQ.couponLink = barsQ.couponLink.replace("script://", ""); var a = barsQ.couponLink.split("("); if (a.length > 1) { a[1] = a[1].replace(")", ""); var r = a[1].split(","); "function" == typeof t[a[0]] && t[a[0]].apply(null, r) } else "function" == typeof t[a[0]] && t[a[0]]() } else barsQ.couponLink ? self.location.href = barsQ.couponLink : b || barsJS.clPA() }), "function" != typeof barsJS.sdDT && (barsJS.sdDT = function (a, r, e, s) { if (-1 != (r = "//" + i + "/v/1.1" + r).indexOf("/put/") && barsJS.gtCK("bars_send") && barsJS.gtCK("bars_send") == barsQ.act + barsQ.url) return !1; if (-1 != r.indexOf("/get_ma/") && barsJS.gtCK("bars_send_ma") && barsJS.gtCK("bars_send_ma") == barsQ.act + barsQ.url) return !1; "basket" == barsQ.act || "like" == barsQ.act ? barsJS.stCT(barsQ.act) : "ordered" == barsQ.act && barsJS.stCK("bars_is_mc", "1", 7776e6, barsJS.rtD()), -1 != r.indexOf("/put/") ? barsJS.stCK("bars_send", barsQ.act + barsQ.url, 36e6) : -1 != r.indexOf("/get_ma/") && "wpon" != barsQ.act && barsJS.stCK("bars_send_ma", barsQ.act + barsQ.url, 36e6); try { var o = function (a, r, e) { var s = null; return t.XDomainRequest ? ((s = new t.XDomainRequest).open(a, r, !0), s.onload = function () { "function" == typeof e && e() }) : t.XMLHttpRequest ? ((s = new XMLHttpRequest).open(a, r, !0), s.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), s.onreadystatechange = function () { 4 === s.readyState && s.status >= 200 && s.status < 400 && ("function" == typeof e ? e() : e && 200 == s.status && s.responseText && barsJS.rtMA(s.responseText)) }) : t.ActiveXObject && ((s = new ActiveXObject("Microsoft.XMLHTTP")).open(a, r), s.onload = function () { "function" == typeof e && e() }), s }(a, r, s); o.send(e) } catch (o) { "function" == typeof s && s() } }), "function" != typeof barsJS.cbLK && (barsJS.cbLK = function () { "function" == typeof byapps_call_back_custom ? byapps_call_back_custom() : "cafe24" == barsQ.host && ($("#member_login_module_id").hide(), $("#order_history_nologin_id").show()) }), "function" != typeof barsJS.IJS && (barsJS.IJS = function () { barsJS.gtCK("bars_vcode") && barsQ("vcode", encodeURIComponent(barsJS.gtCK("bars_vcode"))), barsJS.gtCK("bars_rcode") && barsQ("rcode", encodeURIComponent(barsJS.gtCK("bars_rcode"))), barsJS.gtCK("bars_acode") && barsQ("acode", encodeURIComponent(barsJS.gtCK("bars_acode"))), barsJS.gtCK("bars_pcode") && barsQ("pcode", encodeURIComponent(barsJS.gtCK("bars_pcode"))), barsJS.gtCK("bars_scode") && barsQ("scode", encodeURIComponent(barsJS.gtCK("bars_scode"))), barsJS.gtCK("bars_wcode") && barsQ("wcode", encodeURIComponent(barsJS.gtCK("bars_wcode"))), barsJS.gtCK("bars_ma_sp") && barsQ("sprd", encodeURIComponent(barsJS.gtCK("bars_ma_sp"))), barsJS.gtCK("bars_ma_ct") && barsQ("bcate", encodeURIComponent(barsJS.gtCK("bars_ma_ct"))), barsQ.uuid && barsJS.sdDT("POST", "/put/", barsJS.rtQ()), "view" != barsQ.act || b || n || barsJS.ijSC() }), "function" != typeof barsJS.IJC && (barsJS.IJC = function () { if ("view" == barsQ.act && barsJS.ijSC(), -1 != r.indexOf("byapps_retarget_service")) { var e = ""; "cafe24" == barsQ.host ? e = barsJS.gtQP(r, "product_no") : "makeshop" == barsQ.host && (e = barsJS.gtQP(r, "branduid")), !e && barsQ.itemno && (e = barsQ.itemno), e && barsJS.stCK("bars_rcode", e, 6048e5, barsJS.rtD()) } else if (-1 != r.indexOf("byapps_wps_retarget") || s && -1 != s.indexOf("push.center")) { e = ""; var o = Math.round((new Date).getTime() / 1e3); "cafe24" == barsQ.host ? e = barsJS.gtQP(r, "product_no") : "makeshop" == barsQ.host ? e = barsJS.gtQP(r, "branduid") : s && (e = barsJS.gtQP(s, "idx")), !e && barsQ.itemno && (e = barsQ.itemno), e && barsJS.stCK("bars_wcode", e + ":" + o, 6048e5, barsJS.rtD()) } else if (-1 != r.indexOf("link_from_byapps.php") || s && -1 != s.indexOf("link_from_byapps.php")) { e = ""; -1 != r.indexOf("link_from_byapps.php") ? e = barsJS.gtQP(r, "idx") : s && (e = barsJS.gtQP(s, "idx")), e && barsJS.stCK("bars_rcode", e, 6048e5, barsJS.rtD()) } var n = a.getElementById("byapps_install_banner_layer"); if (n && (n.style.display = b ? "none" : "block"), b && "login" == barsQ.act && "Y" == barsQ.autoLogin) { var p = -1 != r.indexOf("returnUrl") ? r.split("returnUrl=")[1] : ""; -1 == (p = (p = -1 != p.indexOf("&toMoveLoginCheckModule") ? p.split("&toMoveLoginCheckModule")[0] : p) ? decodeURIComponent(p) : s).indexOf("http://") && -1 == p.indexOf("https://") && (p = t.location.protocol + "//" + t.location.hostname + p), -1 != r.indexOf("noMemberOrder") ? p += (-1 != p.indexOf("?") ? "&" : "?") + "byappsBtn=비회원조회&byappsLink=byapps://js_barsJS.cbLK()" : "1" == barsJS.gtQP(r, "noMember") && (p += (-1 != p.indexOf("?") ? "&" : "?") + "byappsBtn=비회원주문&byappsLink=self"), barsJS.apCL("shopLogin?" + p) } }), "function" != typeof barsJS.gtMA && (barsJS.gtMA = function () { barsJS.gtCK("bars_is_mc") && barsQ("ismc", encodeURIComponent(barsJS.gtCK("bars_is_mc"))), barsJS.gtCK("bars_is_mb") && barsQ("ismb", encodeURIComponent(barsJS.gtCK("bars_is_mb"))), barsJS.gtCK("bars_is_mt") && barsQ("ismt", encodeURIComponent(barsJS.gtCK("bars_is_mt"))), barsJS.gtCK("bars_is_xp") && barsQ("isxp", encodeURIComponent(barsJS.gtCK("bars_is_xp"))), barsJS.ckWP() && barsJS.gtCK("bars_is_wp") && barsQ("iswp", encodeURIComponent(barsJS.gtCK("bars_is_wp"))), b && !barsJS.gtCK("bars_is_ap") && barsQ("isap", "yes"); var t = barsJS.gtCK("bars_ma_vt"), a = barsJS.gtCK("bars_ma_vc"), r = barsJS.gtCK("bars_ma_cc"), e = barsJS.gtCK("bars_cs_no"); if (t || (t = 0), a = a ? Number(a) + 1 : 1, r = r ? Number(r) : 0, (e = e && t ? Number(e) : 0) > 0) { var s = new Date, o = barsJS.gtCK("bars_cs_dt"), n = new Date(1e3 * o); s.toLocaleDateString() != n.toLocaleDateString() && (e = 0, barsJS.gtCK("bars_ma_ev") && barsJS.stCK("bars_ma_ev", "", -2592e7, barsJS.rtD())) } "view" == barsQ.act && (r++, barsJS.stCK("bars_ma_cc", r, 864e5, barsJS.rtD())), barsJS.stCK("bars_ma_vc", a, 864e5, barsJS.rtD()), barsQ("mcount", encodeURIComponent(a)), barsQ("vcount", encodeURIComponent(r)), barsQ("vtime", encodeURIComponent(t)), barsQ("csno", encodeURIComponent(e)), barsQ.uuid && "1" != barsQ.isxp && barsJS.sdDT("POST", "/get_ma/", barsJS.rtQ(), !0) }), "function" == typeof barsQ && barsQ.length > 0 && !p && (barsJS.stBQ(), barsJS.IJC(), barsJS.gtMA(), barsJS.subscription(), "complete" == a.readyState ? barsJS.IJS() : t.addEventListener("load", (function () { barsJS.IJS() }), !1), console.log("Byapps MA v3.0.4")) }(window, document);(function(h,l,p,y,q){var r=h.location.href,z=h.location.host,w=l.referrer,A=l.querySelector('script[src*="id='+p+'"]'),g={},c="",x=!1,t=!0;try{sessionStorage.setItem("WACK_test","yes"),sessionStorage.removeItem("WACK_test")}catch(a){t=!1}var m=function(a){try{return l.querySelector(a).getAttribute("content")}catch(b){return""}},u=function(a,b){var e="";a.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(a,c,f){c==b&&(e=f)});return e.split("#")[0]},B=function(a,b,e){var d=l.createElement("script");d.type= "text/javascript";d.async=!0;d.src="https://www.googletagmanager.com/gtag/js?id="+p;d.onload=function(){window.dataLayer=window.dataLayer||[];window.byapps_gtag=function(){dataLayer.push(arguments)};byapps_gtag("js",new Date);byapps_gtag("config",p);a&&b&&byapps_gtag(a,b,e);q&&b&&console.log(b,e)};l.body.appendChild(d)},k=function(a,b,e){A&&"function"===typeof gtag?(a&&b&>ag(a,b,e),q&&b&&console.log(b,e)):"function"===typeof byapps_gtag?(a&&b&&byapps_gtag(a,b,e),q&&b&&console.log(b,e)):B(a,b,e)}, n=function(){var a="",b="",e="",d="",c="";a||(a="undefined"!==typeof iProductNo?iProductNo:barsJS.gtDS("pno"));b||(b="undefined"!==typeof product_name?product_name:m('[property="og:title"]'))||(b=barsJS.gtDS("title"));e||(e="undefined"!==typeof iCategoryNo?iCategoryNo:barsJS.gtDS("cate"));if(!d)if("undefined"!==typeof iProductPrice)d=iProductPrice;else if("undefined"!==typeof productPrice)d=productPrice;else{(d=m('[property="product:price:amount"]'))||(d=barsJS.gtDS("price"));var f=m('[property="product:sale_price:amount"]'); f||(f=barsJS.gtDS("sprice"));d&&f&&d>f&&(d=f)}c||(c=m('[property="product:price:currency"]'));"undefined"===typeof EC_SDE_SHOP_NUM||void 0===window.sessionStorage||a&&b&&e||(f=window.sessionStorage.getItem("localRecentProduct"+EC_SDE_SHOP_NUM),null!==f&&(f=JSON.parse(f),!a&&f[0].iProductNo&&(a=f[0].iProductNo),!b&&f[0].sProductName&&(b=f[0].sProductName),!e&&f[0].sParam&&(e=u(f[0].sParam,"cate_no"))));return{items:[{id:a,name:b,list_name:"",brand:"",category:e,price:d,currency:c}]}},C=function(){var a= l.querySelector("#NPAY_BUY_LINK");a&&a.addEventListener("click",function(a){g.NPAY_BUY()})};g.PRODUCT_DETAIL=function(){if("function"===typeof h.basket_result_action){var a=h.basket_result_action;h.basket_result_action=function(){g.ADD_TO_CART();return a.apply(a,arguments)}}if("function"===typeof h.add_wishlist_result){var b=h.add_wishlist_result;h.add_wishlist_result=function(){g.ADD_TO_WISHLIST();return b.apply(b,arguments)}}c||(c=n());-1==r.indexOf("layer_option.html")&&k("event","view_item",c); C()};g.view=function(){c||(c=n());k("event","view_item",c)};g.ORDER_BASKET=function(){var a;a=t?decodeURIComponent(sessionStorage.getItem("WACK_savedItem")||""):(a=l.cookie.match("(^|;) ?WACK_savedItem=([^;]*)(;|$)"))?decodeURIComponent(a[2]):"";if(a){a=JSON.parse(a);var b=[];if("undefined"!==typeof aBasketProductData&&0aBasketProductData.length)for(var e=0;e