!function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=163)}({0:function(e,t){e.exports=jQuery},1:function(e,t){e.exports=ko},163:function(e,t,o){"use strict";o.r(t);var n=o(0),i=o.n(n),r=o(1),a=o.n(r),s=o(2);function l(e,t){for(var o=0;o0&&i.childList.forEach((function(e){e.selectedQuantity=a.a.observable(0)}))}t.casProInfo(o)}console.log(t.casProInfo())}))})),f(this,"skipNameUrl",(function(){var e=t.storeAt()+".html";window.location.href="http://hg.y866.cn/biomolecule/lib/static/"+e})),f(this,"skipUrl",(function(e){console.log(e);var t=e.storeAt+".html";window.location.href="http://hg.y866.cn/biomolecule/lib/static/"+t})),f(this,"addCasCart",(function(e,t){if(t.selectedQuantity()>0){var o=[e.productNameTransferred,t.packageSize,t.proCatalogNo,t.moneyCurrency,e.storeAt,t.price,t.shStock,t.shStock].join(";");addToCartSrc(o,t.selectedQuantity()),t.selectedQuantity(0)}else d.a.errorCn("请选择购买数量!")})),f(this,"getCasNumberFromCurrentUrl",(function(){var e=window.location.href.match(/\/cas\/([A-Za-z0-9-]+)\.html/);return e?e[1]:""})),f(this,"iconClose",(function(){i()(".maskCas").hide(),i()(".inquiryCas").hide()})),f(this,"isShowInquiry",(function(e,o){var n=new Map([["μg","9001101"],["mg","9010035"],["g","9010031"],["kg","9010032"],["t","9010030"],["μl","9007003"],["ml","9010033"],["l","9010034"]]),r=t.casInquiryInfo();r.casNo=e.casNoPro,r.catalogNo=o.proCatalogNo,r.productName=e.productName;var a=o.packageSize.match(/^(\d+)\s([\wμ]+)$/);if(a){var s=parseInt(a[1],10),l=a[2].toLowerCase();r.productCount=s.toString(),r.amountUnit=n.get(l)}t.casInquiryInfo(r),i()(".maskCas").show(),i()(".inquiryCas").show()})),f(this,"addInquiryCart",(function(e){var o=t.casInquiryInfo(),n=!1,r=function(e,t,o,r,a){t&&""!==t.trim()?(i()(r).removeClass("nonempty_submit"),i()(a).text("")):(n=!0,i()(r).addClass("nonempty_submit"),i()(a).text(o))};r(0,o.name,"Field is required.","#inquiryName","#msgLastName"),r(0,o.companyName,"Field is required.","#inquiryCompanyName","#msgCompanyName"),r(0,o.email,"Field is required.","#inquiryEmail","#msgEmail"),r(0,o.phone,"Field is required.","#inquiryPhone","#msgTell"),r(0,o.productName,"Field is required.","#inquiryProductName","#msgProductName"),r(0,o.productCount,"Field is required.","#inquiryProductCount","#msgProductCount");o.phone&&!/^1[3456789]\d{9}$/.test(o.phone.trim())&&(n=!0,i()("#inquiryPhone").addClass("nonempty_submit"),i()("#msgTell").text("请检查您的手机号格式"));o.email&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o.email.trim())&&(n=!0,i()("#inquiryEmail").addClass("nonempty_submit"),i()("#msgEmail").text("请检查您的邮箱格式")),n||c.casInquiry(t.casInquiryInfo()).done((function(e){e.success&&(d.a.info("询单成功"),t.casInquiryInfo(new u.a),i()(".maskCas").hide(),i()(".inquiryCas").hide())}))})),f(this,"toggleCasInfo",(function(e){var t=e.expandedCasState();e.expandedCasState(!t);var o=e.colourCasStyle();e.colourCasStyle(!o)})),f(this,"errorInfo",(function(){})),f(this,"errorInfoCas",(function(e){window.location.href="http://hg.y866.cn/biomolecule/lib/static/search.html?q="+e+"&ft=&fa=&fp=&fsp=&ftag=&fsc=&fcc=&fol="})),f(this,"getCookie",(function(e){for(var t="",o=document.cookie.split(";"),n=0;n4&&void 0!==arguments[4]&&arguments[4],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"取消",a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];t||(t="270px"),n||(n="确定");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 c=document.createElement("div");a?c.innerHTML=e:c.textContent=e,c.style.width="100%",c.style.paddingBottom="80px",c.style.whiteSpace="pre-wrap",l.appendChild(c);var u=document.createElement("button");if(u.textContent=n,u.style.position="absolute",u.style.right="0",u.style.bottom="0",u.style.margin="0 15px 15px 0",u.style.padding="10px 25px",u.style.fontSize="14px",u.style.backgroundColor="#8972ac",u.style.color="white",u.style.cursor="pointer",u.style.borderRadius="0",u.onclick=function(){"function"==typeof o&&o(),document.body.removeChild(s)},l.appendChild(u),i){var d=document.createElement("button");d.textContent=r||"取消",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,o,n){o||(o="350px");var i=document.createElement("div");i.style.position="fixed",i.style.top="0",i.style.right="0",i.style.bottom="0",i.style.left="0",i.style.backgroundColor="rgba(0, 0, 0, 0.7)",i.style.zIndex="9990",document.body.appendChild(i);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=o,r.style.backgroundColor="white",r.style.padding="20px",r.style.zIndex="9991",r.style.borderRadius="5px",r.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+"

"),r.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 n&&n(),document.body.removeChild(r),document.body.removeChild(i)},r.appendChild(s),i.onclick=function(){document.body.removeChild(r),document.body.removeChild(i)},document.body.appendChild(r)}},{key:"showConfirmOrCancel",value:function(e,t,o){t||(t="350px");var n=document.createElement("div");n.style.position="fixed",n.style.top="0",n.style.right="0",n.style.bottom="0",n.style.left="0",n.style.backgroundColor="rgba(0, 0, 0, 0.7)",n.style.zIndex="9990",document.body.appendChild(n);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=t,i.style.backgroundColor="white",i.style.padding="20px",i.style.zIndex="9991",i.style.borderRadius="5px",i.style.fontSize="14px";var r=document.createElement("div");r.innerHTML="

"+e+"

",r.style.width="100%",r.style.paddingBottom="60px",r.style.whiteSpace="pre-wrap",r.style.display="flex",r.style.alignItems="center",i.appendChild(r);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 o&&o(),document.body.removeChild(i),document.body.removeChild(n)},i.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(i),document.body.removeChild(n)},i.appendChild(s),n.onclick=function(){document.body.removeChild(i),document.body.removeChild(n)},document.body.appendChild(i)}}],(o=null)&&n(t.prototype,o),i&&n(t,i),e}()},54:function(e,t,o){"use strict";function n(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}o.d(t,"a",(function(){return i}));var i=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n(this,"name",void 0),n(this,"companyName",void 0),n(this,"email",void 0),n(this,"phone",void 0),n(this,"productName",void 0),n(this,"productCount",void 0),n(this,"amountUnit",void 0),n(this,"catalogNo",void 0),n(this,"casNo",void 0),n(this,"inquiryContent",void 0),this.name="",this.companyName="",this.email="",this.phone="",this.productName="",this.productCount="",this.amountUnit="",this.catalogNo="",this.casNo="",this.inquiryContent=""}}});