var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); /* ÂòÇϱâ Ç¥½Ã */ function makeshopWishlist() { this.my_wishlist = document.querySelectorAll('.my-wish-list'); this.my_wish_count = document.querySelectorAll('.my-wish-count'); this.isLogin = function () { return (document.cookie.indexOf('prev_logindate=') > -1); } this.display = function (param) { var wishlist = []; for (var i=0; i -1) { this.enabled(this.my_wishlist[i]); } else { this.unenabled(this.my_wishlist[i]); } } } this.wishlist = function () { if (this.my_wishlist.length > 0) { if (this.isLogin()) { var _self = this; this.send(function (response) { if (response.result) { _self.display(response.data); } }, 'mode=wishlist'); } else { this.display([]); } } } this.wishEvent = function () { var _self = this; for (var i=0; i 0) { alert(response.message); } } }, 'mode=wish&uid=' + this.dataset.uid); } }); } } this.enabled = function (el) { if (el.dataset.enabled !== undefined) { el.innerHTML = el.dataset.enabled; } else { el.parentElement.innerHTML = el.parentElement.dataset.enabled; } } this.unenabled = function (el) { if (el.dataset.unenabled !== undefined) { el.innerHTML = el.dataset.unenabled; } else { el.parentElement.innerHTML = el.parentElement.dataset.unenabled; } } this.observer = function () { if (typeof MutationObserver === 'function' && location.pathname.indexOf('/m/') > -1) { var _self = this; var wishlist_count = _self.my_wishlist.length; var wish_count = _self.my_wish_count.length; var mutationObserver = new MutationObserver(function() { _self.my_wishlist = document.querySelectorAll('.my-wish-list'); _self.my_wish_count = document.querySelectorAll('.my-wish-count'); if (wishlist_count !== _self.my_wishlist.length || wish_count !== _self.my_wish_count.length) { wishlist_count = _self.my_wishlist.length; wish_count = _self.my_wish_count.length; _self.init(); } }); mutationObserver.observe(document.body, { childList: true, subtree: true, }); } } this.send = function (action, data) { try { var xhr = new XMLHttpRequest(); xhr.open("POST", "/html/wishlist.action.html", true); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.onreadystatechange = function () { if (xhr.readyState === 4 && xhr.status === 200) { action(JSON.parse(xhr.responseText)); } } xhr.send(data); } catch (e) { console.log(e); } } this.wishCount = function () { var _self = this; if (this.my_wish_count.length > 0) { var uids = []; for (var i=0; i 0) { this.send(function (response) { if (response.result) { _self.wishCountDisplay(response.data); } }, 'mode=wish_count&uids=' + uids); } } } this.wishCountDisplay = function (param) { if (typeof param === 'object') { for (var i=0; i 0) { for (var i=0; i 0) { for (var i=0; i 0) ? parseInt(this.my_wish_count[i].innerHTML) - 1 : 0; } } } } this.init = function () { this.wishlist(); this.wishEvent(); this.wishCount(); } } } /* FILE ARCHIVED ON 14:37:10 Apr 06, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 04:52:22 Apr 28, 2026. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): capture_cache.get: 0.528 captures_list: 0.832 exclusion.robots: 0.014 exclusion.robots.policy: 0.005 esindex: 0.009 cdx.remote: 13.883 LoadShardBlock: 948.233 (3) PetaboxLoader3.resolve: 73.787 (4) PetaboxLoader3.datanode: 926.781 (4) load_resource: 55.417 */