!function(i,o,l,t){function e(){this.$policyBar=l("#top_pp"),this.$policyPop=l(".policy_pop"),this.$policyAlert=l("#policy_alert"),this.clickFlag=!1,this.$policyFail=l("#policy_fail_log"),this.$jsHeaderZindex=l(".js-gdpr-zIndex"),this.tagLoginVal=l("#tagIsLogin"),this.scrollTopInit=0,this.init()}e.prototype={init:function(){this.bindEvent(),this.checkCookie()},bindEvent:function(){l(".top_pp span.close_p,.close_comfirm_pp").on("click",l.proxy(this.closeBarOrPop,this)),l(i).on("click",".shop_user_showPop",l.proxy(this.showPolicyPop,this)),l(".get_pp_title").on("click",l.proxy(this.getPolicyArticle,this)),l(".policy_pop .jsCloseBtn,#policy_alert .jsCloseBtn,.alert_comfirm_pp,.js-fail_ok").on("click",l.proxy(this.closePolicyAlert,this)),l(".js-confirmBtn_pp,.js-willBtn_pp,.policy_pop .jsCloseBtn").on("click",l.proxy(this.isAgreeWithProtocol,this))},closeBarOrPop:function(i){l(i.target).hasClass("jsCloseBtn")||l(i.target).hasClass("close_comfirm_pp")?(this.$policyPop.hide(),this.stopScrollBody(2),this.$jsHeaderZindex.removeClass("zIndexTop")):(this.$policyBar.remove(),l.cookie("top_pp","hasClose",{expires:365}))},checkCookie:function(){"hasClose"!==l.cookie("top_pp")&&l("#top_pp").slideDown()},showPolicyPop:function(i){i.preventDefault(),l(i.target).hasClass("shop_user_showPop")&&(this.$jsHeaderZindex.addClass("zIndexTop"),this.$policyPop.fadeIn().find(".handler_bar:not(.shop_cart_pp)").hide().siblings(".shop_cart_pp").show(),this.stopScrollBody(1))},getPolicyArticle:function(i){var o=l(i.target),e=this;if(i.preventDefault(),o.hasClass("pp_hasTerms"))var t="Terms And Conditions";else t="Privacy Policy";if(this.clickFlag)return!1;l.ajax({url:"/getArticles.html?title="+t,type:"GET",success:function(i){if(200==i.code){if(i.data)if(i.data.children){var t="";l.each(i.data.children,function(i,o){t+='