!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=123)}({0:function(e,t){e.exports=jQuery},123:function(e,t,n){"use strict";n.r(t);n(8);var o=n(0),r=n.n(o),i=n(22),a=n(24),s=n(7),l=n(4),u=window,c=r()("#pro_loginType"),d=r()("#loginPhone"),p=new a.a((function(){return d.val()})),y=r()("#loginOtpSendButton"),f=r()("#loginProMask"),v=r()("#loginProLogin"),h=r()("#loginProGeneral"),m=r()("#loginEmail"),g=new i.a((function(){return m.val()}));u.isShowLoginWin=function(){switch(r()("#proLoginWin").val()){case"0":f.hide(),v.hide(),h.hide();break;case"1":r()("#main").addClass("gray-text"),r()("#bioz-mce-div").addClass("opacity-mask"),r()(".detail_price").addClass("is-disabled"),v.show(),h.hide();break;case"2":r()("#main").addClass("gray-text"),r()("#bioz-mce-div").addClass("opacity-mask"),r()(".detail_price").addClass("is-disabled"),v.hide(),h.show(),1==r()("#isOnApprove").val()&&x()}},d.on("change",(function(){r()("#loginPhoneError").text("请输入正确的手机号码").toggleClass("hidden-inplace",p.isValid())})),m.on("change",(function(){r()("#loginEmailError").toggleClass("hidden-inplace",g.isValid())}));var b=60;y.on("click",(function(){r()("#loginPhoneError").addClass("hidden-inplace"),p.isNotValid()?r()("#loginPhoneError").text("请输入正确的手机号码").removeClass("hidden-inplace"):(y.removeClass("div-wait"),s.a.phoneExist(p.value()).done((function(e){e.success?s.a.sendPhoneCode(p.value(),"login-phone").done((function(e){e.success?(!function e(){if(0===b)return b=60,y.prop("disabled",!1).removeClass("div-wait"),y.removeClass("invalid-code").addClass("send-code"),r()("#loginCodeTips").html("重发验证码"),r()("#loginCountdown").hide(),void r()("#loginCountdown").html();b--,y.prop("disabled",!0).removeClass("div-wait"),y.removeClass("send-code").addClass("invalid-code"),r()("#loginCodeTips").html("重发验证码"),r()("#loginCountdown").show(),r()("#loginCountdown").html("("+b+"s)"),setTimeout((function(){e()}),1e3)}(),r()("#loginPhoneError").addClass("hidden-inplace")):r()("#loginPhoneError").text("发送失败,请稍后再试").removeClass("hidden-inplace"),y.prop("disabled",!1).removeClass("div-wait")})):(r()("#loginPhoneError").text("您的手机号码尚未注册").removeClass("hidden-inplace"),y.prop("disabled",!1).removeClass("div-wait"))})))}));var C=r()("#loginButton").on("click",(function(){if(1==c.val()){if(m.trigger("change"),g.isValid()){var e={email:g.value(),password:r()("#loginPassword").val(),loginType:"password"};C.prop("disabled",!0).addClass("wait"),r()("#loginError1").addClass("hidden-inplace"),s.a.login(e).done((function(e){setTimeout((function(){return C.prop("disabled",!1).removeClass("wait")}),500),e.success?(e.isAuthorization?(r()("#main").removeClass("gray-text"),r()("#bioz-mce-div").removeClass("opacity-mask"),r()(".detail_price").removeClass("is-disabled"),v.hide()):(v.hide(),e.isOnApproveWeb&&x(),h.show()),r()("#proUserLoginName").text("Hello, "+e.username),k(),r()("#isPermissionRefresh").length&&e.isPermissionCnUser&&location.reload()):"locked"==e.error?l.a.error("Your account has been disabled"):"disabled"==e.error?l.a.error("Your account has been disabled due to: \n"+e.disabledReason):r()("#loginError1").text("无效的账号或密码").removeClass("hidden-inplace")}))}}else if(d.trigger("change"),p.isValid()&&""!=r()("#loginOtpToken").val()){var t={email:p.value(),mobileCode:r()("#loginOtpToken").val(),loginType:"login-phone"};C.prop("disabled",!0).addClass("wait"),r()("#loginError").addClass("hidden-inplace"),s.a.login(t).done((function(e){setTimeout((function(){return C.prop("disabled",!1).removeClass("wait")}),500),e.success?(e.isAuthorization?(r()("#main").removeClass("gray-text"),r()("#bioz-mce-div").removeClass("opacity-mask"),r()(".detail_price").removeClass("is-disabled"),v.hide()):(v.hide(),e.isOnApproveWeb&&x(),h.show()),r()("#proUserLoginName").text("Hello, "+e.username),k()):"locked"==e.error||("disabled"==e.error?l.a.error("Your account has been disabled due to: \n"+e.disabledReason):r()("#loginError").text("验证码错误").removeClass("hidden-inplace"))}))}else r()("#loginError").text("请输入验证码").removeClass("hidden-inplace")}));function k(){s.a.verifyLogin().done((function(e){e.isShowSpectrogram&&checkShowPT()}))}function x(){var e,t,n,o,i,a=(t=8,n=new Date,o=n.getTime(),i=6e4*n.getTimezoneOffset(),new Date(o+i+36e5*t)),s=a.getMonth()+1,l=a.getDate(),u=0,c="",d=(a.getFullYear(),a.getHours()),p=a.getMinutes(),y=a.getDay(),f=0;y>=1&&y<=5?(d>9||9==d&&p>=1)&&(d<22||22==d&&p<1)?a.setMinutes(a.getMinutes()+30):d<9||9==d&&p<1?(a.setHours(9),a.setMinutes(0),f=1):(d>22||22==d&&p>1)&&(u=5==y?3:1,a.setDate(a.getDate()+u),a.setHours(9),a.setMinutes(0)):(u=6==y?2:1,a.setDate(a.getDate()+u),a.setHours(9),a.setMinutes(0)),a.getMonth()+1==6&&14==a.getDate()&&(u++,a.setDate(a.getDate()+1)),s=a.getMonth()+1,l=a.getDate(),d=a.getHours();p=a.getMinutes();c=u>0?s+"月"+l+"日":"10分钟之内",0==u&&1==f&&(c=s+"月"+l+"日的工作时间内"),e="您的账号正在人工审核,我们的工作人员将在
"+c+"与您联系,核实您的信息,请耐心等待~",r()("#onApproveMsg").html(e)}},22:function(e,t,n){"use strict";function o(e,t){for(var n=0;n"+this.value()+" 发送了一次性密码 (One Time Password, OTP)。"}}])&&o(t.prototype,n),i&&o(t,i),e}();r(i,"PATTERN",/^1[3-9]\d{9}$/)},3:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(0),r=n.n(o);function i(e,t){for(var n=0;n4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"取消",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];t||(t="270px"),o||(o="确定");var s=document.createElement("div");s.style.position="fixed",s.style.top="0",s.style.right="0",s.style.bottom="0",s.style.left="0",s.style.backgroundColor="rgba(0, 0, 0, 0.7)",s.style.zIndex="9990";var l=document.createElement("div");l.style.position="fixed",l.style.top="50%",l.style.left="50%",l.style.transform="translate(-50%,-50%)",l.style.width=t,l.style.backgroundColor="white",l.style.padding="20px",l.style.zIndex="9991",l.style.borderRadius="5px",l.style.fontSize="14px","Thank You! You have completed the survey!"==e&&(l.style.fontSize="18px"),s.appendChild(l);var u=document.createElement("div");a?u.innerHTML=e:u.textContent=e,u.style.width="100%",u.style.paddingBottom="80px",u.style.whiteSpace="pre-wrap",l.appendChild(u);var c=document.createElement("button");if(c.textContent=o,c.style.position="absolute",c.style.right="0",c.style.bottom="0",c.style.margin="0 15px 15px 0",c.style.padding="10px 25px",c.style.fontSize="14px",c.style.backgroundColor="#8972ac",c.style.color="white",c.style.cursor="pointer",c.style.borderRadius="0",c.onclick=function(){"function"==typeof n&&n(),document.body.removeChild(s)},l.appendChild(c),r){var d=document.createElement("button");d.textContent=i||"取消",d.style.position="absolute",d.style.left="0",d.style.bottom="0",d.style.margin="0 0 15px 15px",d.style.padding="10px 25px",d.style.fontSize="14px",d.style.backgroundColor="#f9f7fb",d.style.color="#8972ac",d.style.cursor="pointer",d.style.borderRadius="0",d.style.border="1px solid #bdbdbd",d.onclick=function(){document.body.removeChild(s)},l.appendChild(d)}document.body.appendChild(s)}},{key:"showConfirmInfo2",value:function(e,t,n,o){n||(n="350px");var r=document.createElement("div");r.style.position="fixed",r.style.top="0",r.style.right="0",r.style.bottom="0",r.style.left="0",r.style.backgroundColor="rgba(0, 0, 0, 0.7)",r.style.zIndex="9990",document.body.appendChild(r);var i=document.createElement("div");i.style.position="fixed",i.style.top="50%",i.style.left="50%",i.style.transform="translate(-50%,-50%)",i.style.width=n,i.style.backgroundColor="white",i.style.padding="20px",i.style.zIndex="9991",i.style.borderRadius="5px",i.style.fontSize="14px",t||(t="info");var a=document.createElement("div");a.style.width="100%",a.style.paddingBottom="15px",a.style.whiteSpace="pre-wrap",a.style.display="flex",a.style.alignItems="center","error"===t&&(a.innerHTML="

"+e+"

"),"info"===t&&(a.innerHTML="

"+e+"

"),"success"===t&&(a.innerHTML="

"+e+"

"),i.appendChild(a);var s=document.createElement("button");s.textContent="确定",s.style.position="relative",s.style.right="0",s.style.bottom="0",s.style.margin="0",s.style.padding="7px 25px",s.style.fontSize="14px",s.style.float="right",s.style.backgroundColor="#8972ac",s.style.color="white",s.style.cursor="pointer",s.style.borderRadius="0",s.style.border="0",s.onclick=function(){"function"==typeof o&&o(),document.body.removeChild(i),document.body.removeChild(r)},i.appendChild(s),r.onclick=function(){document.body.removeChild(i),document.body.removeChild(r)},document.body.appendChild(i)}},{key:"showConfirmOrCancel",value:function(e,t,n){t||(t="350px");var o=document.createElement("div");o.style.position="fixed",o.style.top="0",o.style.right="0",o.style.bottom="0",o.style.left="0",o.style.backgroundColor="rgba(0, 0, 0, 0.7)",o.style.zIndex="9990",document.body.appendChild(o);var r=document.createElement("div");r.style.position="fixed",r.style.top="50%",r.style.left="50%",r.style.transform="translate(-50%,-50%)",r.style.width=t,r.style.backgroundColor="white",r.style.padding="20px",r.style.zIndex="9991",r.style.borderRadius="5px",r.style.fontSize="14px";var i=document.createElement("div");i.innerHTML="

"+e+"

",i.style.width="100%",i.style.paddingBottom="60px",i.style.whiteSpace="pre-wrap",i.style.display="flex",i.style.alignItems="center",r.appendChild(i);var a=document.createElement("button");a.textContent="确定",a.style.position="absolute",a.style.right="0",a.style.bottom="0",a.style.margin="0px 115px 15px 0px",a.style.padding="10px 25px",a.style.fontSize="14px",a.style.backgroundColor="#8972ac",a.style.color="white",a.style.cursor="pointer",a.style.float="right",a.style.borderRadius="0",a.style.border="0",a.onclick=function(){"function"==typeof n&&n(),document.body.removeChild(r),document.body.removeChild(o)},r.appendChild(a);var s=document.createElement("button");s.textContent="取消",s.style.position="absolute",s.style.right="0",s.style.bottom="0",s.style.margin="0px 20px 15px 15px",s.style.padding="10px 25px",s.style.fontSize="14px",s.style.backgroundColor="#8972ac",s.style.color="white",s.style.float="right",s.style.cursor="pointer",s.style.borderRadius="0",s.style.border="0",s.onclick=function(){document.body.removeChild(r),document.body.removeChild(o)},r.appendChild(s),o.onclick=function(){document.body.removeChild(r),document.body.removeChild(o)},document.body.appendChild(r)}}],(n=null)&&o(t.prototype,n),r&&o(t,r),e}()},7:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(3);function r(e,t){for(var n=0;n",password:e})}},{key:"sendUnlockOtp",value:function(e){return o.a.post("/cn-user/send-unlock-otp.html",e)}},{key:"verifyUnlockOtp",value:function(e,t){return o.a.post("/cn-user/verify-unlock-otp.html",{email:e,otp:t})}},{key:"sendResetOtp",value:function(e){return o.a.post("/cn-user/send-reset-otp.html",e)}},{key:"verifyResetOtp",value:function(e,t){return o.a.post("/cn-user/verify-reset-otp.html",{email:e,otp:t})}},{key:"resetPassword",value:function(e){return o.a.post("/cn-user/reset-password.json",e)}},{key:"getProfile",value:function(){return o.a.get("/cn-user/profile.json")}},{key:"saveProfile",value:function(e){return o.a.post("/cn-user/profile.json",e)}},{key:"onApprove",value:function(e){return o.a.post("/cn-user/on-approve.json",e)}},{key:"changePassword",value:function(e,t){return o.a.post("/cn-user/change-password.json",{password:e,newPassword:t})}},{key:"getOrderCompanyList",value:function(e){return o.a.post("/cn-user/get-order-company-list.json",{company:e})}},{key:"phoneExist",value:function(e){return o.a.post("/cn-user/send-phone-exist.json",{phone:e})}},{key:"sendPhoneCode",value:function(e,t){return o.a.postCsrf("/cn-user/send-phone-code.json",{phone:e,type:t})}},{key:"verifyPhone",value:function(e,t,n,r){return o.a.post("/cn-user/verify-phone.html",{phone:e,code:t,type:n,event:r})}},{key:"verifyPhoneTemp",value:function(e,t,n){return o.a.post("/cn-user/verify-phone.html",{phone:e,code:t,type:n})}},{key:"verifyPhoneUnlock",value:function(e,t,n){return o.a.post("/cn-user/verify-phone-unlock.html",{phone:e,code:t,type:n})}},{key:"verifyLogin",value:function(){return o.a.get("/cn-user/verify-login.html")}},{key:"leaveMessage",value:function(e){return o.a.post("/cn-user/leave-message.html",{content:e})}},{key:"getUserBaseMessage",value:function(){return o.a.get("/cn-user/get-user-mes.html")}},{key:"uploadCertImage",value:function(e){return o.a.post("/cn-user/upload-cert-image.json",e)}},{key:"updateCnCart",value:function(){o.a.get("/cn-user/update-cn-cart.shtml")}},{key:"updateUserDiscountState",value:function(e){return o.a.post("/cn-user/user-user-agency-discount.json",{discountState:e})}},{key:"getComplimentaryOffers",value:function(){return o.a.get("/cn-user/get-activity-products11-offers.shtml")}},{key:"getActivity11CartPros",value:function(){return o.a.get("/cn-user/get-activity-11-cart-pros.shtml")}},{key:"checkActivityAntibody",value:function(){return o.a.get("/cn-user/check-activity-antibody.shtml")}},{key:"checkDouleEleventActivity",value:function(){return o.a.get("/cn-user/check-double-elevent-activity.shtml")}},{key:"checkCellActivity",value:function(){return o.a.get("/cn-user/check-cell-activity.shtml")}},{key:"checkAntibodySchoolOpensActivity",value:function(){return o.a.get("/cn-user/check-antibody-school-opens-activity.shtml")}},{key:"countAntProNumbers",value:function(){return o.a.get("/cn-user/count-ant-pro-numbers.shtml")}},{key:"getValentinesActivityTime",value:function(){return o.a.get("/cn-user/check-valentines-activity-time.shtml")}},{key:"getValentinesActivityPro",value:function(){return o.a.get("/cn-user/check-valentines-activity-pro.shtml")}},{key:"countDouleProNumbers",value:function(){return o.a.get("/cn-user/count-double-elevent-pro-numbers.shtml")}},{key:"countCellProNumbers",value:function(){return o.a.get("/cn-user/count-cell-pro-numbers.shtml")}},{key:"countAntibodyProNumbers",value:function(){return o.a.get("/cn-user/count-antibody-pro-numbers.shtml")}},{key:"getProteinExchange",value:function(){return o.a.get("/cn-user/get-protein-exchange.shtml")}},{key:"getCnUserCCk8Dis",value:function(e){return o.a.postSynchro("/cn-user/get-cn-user-cck8-dis.json",{proNum:e})}},{key:"recordsPermissionUser",value:function(e){return o.a.postSynchro("/cn-user/records-permission-user.json",{catalogNo:e})}},{key:"getSecondAntPros",value:function(){return o.a.get("/cn-user/get-second-ant-pros.shtml")}},{key:"discountCartAntPros",value:function(e){return o.a.post("/cn-user/discount-cart-ant-pros.json",{isPartin:e})}},{key:"discountCartDoubleEleventPros",value:function(e){return o.a.post("/cn-user/discount-cart-double-elevent-pros.json",{isPartin:e})}},{key:"getDoubleDisPrice",value:function(e,t){return o.a.post("/cn-user/get-double-dis-price.json",{cata:e,num:t})}},{key:"updateCellCartTableBackground",value:function(e,t){return o.a.post("/cn-user/update-cell-cart-table-background.json",{cellProsList:e,number:t})}},{key:"saveCxmlCartOrderInfo",value:function(){return o.a.post("/cn-user/save-cn-punch-out.json",{})}}],(n=null)&&r(t.prototype,n),i&&r(t,i),e}()},8:function(e,t,n){"use strict";var o=n(0),r=n.n(o),i=window;"function"==typeof i.cart_sart&&i.cart_sart(),i.getFreight_2=function(){var e=r.a.trim(r.a.cookie("mce_country_name"));r()("#emailCountry").val(e)},i.getFreight_2()}});