"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[193],{6121:(e,a,t)=>{t.d(a,{A:()=>u});var n=t(37876),s=t(14232),i=t(18608),r=t(7478),o=t(82027),d=t(78851),l=t(30566),c=t(6995);let p=e=>{let{products:a}=e,t=(0,l.A)(),s=(0,d.Ay)(),i=(0,c.A)(t.breakpoints.down("lg"),{defaultMatches:!0});return(null==a?void 0:a.length)?(0,n.jsx)(r.A,{type:o.jm.RecommendedProducts,products:a,withoutControls:!i,slidesToShow:s({xs:1,sm:2,lg:3}),preloadCardImages:!0,condensed:!0}):null};var m=t(4516),g=t(35152),h=t(81905),x=t(30205);let y=(0,i.makeStyles)()(e=>({promo:{[e.breakpoints.down("md")]:{display:"none"},paddingBottom:e.spacing(6),paddingTop:e.spacing(6),borderBottom:"1px solid ".concat(e.palette.grey[400])},dark:{borderBottomColor:e.palette.grey[600]},grey:{background:e.palette.background.grey,borderColor:"transparent",padding:e.spacing(6),[e.breakpoints.down("md")]:{paddingLeft:e.spacing(0),paddingRight:e.spacing(0)}}})),u=e=>{var a;let{children:t,searchKey:i,variant:r="light",calculateGenePosition:o}=e,{isBlueB2BUser:d}=(0,h.iZ)(),{data:l}=(0,m.Sx)({variables:{input:{searchKey:i,...d?{erpType:x.G.Blue}:{}}},ssr:!1,onCompleted:e=>{var a;e&&(null==e?void 0:null===(a=e.getSrpRecommendedProducts)||void 0===a?void 0:a.products.length)!==0||(0,g.sendEmptyRecommendationGA4Event)({action:"srp load",detail:i.toLowerCase(),section:"recommended products"})}}),c=null==l?void 0:null===(a=l.getSrpRecommendedProducts)||void 0===a?void 0:a.products,u=!!c&&c.length>0;(0,s.useEffect)(()=>{o&&o(u)},[o]);let{classes:A,cx:j}=y(),f=s.Children.toArray(t);return(0,n.jsxs)(n.Fragment,{children:[f.slice(0,2),c&&(0,n.jsx)("div",{className:j(A.promo,"dark"===r&&A.grey),children:(0,n.jsx)(p,{products:c})}),f.slice(2)]})}},26849:(e,a,t)=>{t.d(a,{A:()=>n});let n=(0,t(18608).makeStyles)()(e=>({gridWrapper:{overflow:"hidden",padding:0},columnWrapper:{display:"flex",justifyContent:"space-between",padding:e.spacing(0,5),[e.breakpoints.down("md")]:{flexDirection:"column"},[e.breakpoints.down("lg")]:{margin:0}},firstColumn:{width:"100%",[e.breakpoints.up("md")]:{width:"66%"}}}))},29927:(e,a,t)=>{t.d(a,{A:()=>w});var n=t(37876),s=t(14232),i=t(8733),r=t(18608),o=t(89996),d=t(5612),l=t(38554),c=t(45756),p=t(63724),m=t(32752),g=t(14008),h=t(15699),x=t(47544),y=t(54203),u=t(44274),A=t(62689),j=t(56951);let f=(0,r.makeStyles)()(e=>({root:{padding:e.spacing(6,0),borderBottom:"1px solid ".concat(e.palette.grey[600])},title:{display:"block",fontSize:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium,marginBottom:e.spacing(1),color:e.palette.primary.main},geneWrapper:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start",gap:e.spacing(5),width:"100%"},speciesSectionWrapper:{display:"flex",[e.breakpoints.up("sm")]:{marginLeft:"130px"}},thumbnail:{backgroundColor:e.palette.common.white,border:"1px solid ".concat(e.palette.grey[400]),borderRadius:2,flexShrink:0,height:"109px",width:"109px"},detail:{maxWidth:"calc(100% - 109px)",flexBasis:"calc(100% - 109px)",flexGrow:1},synonymsWrapper:{display:"flex",flexDirection:"row"},geneDataTitle:{fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},geneDataRow:{fontSize:e.typography.pxToRem(14),marginBottom:e.spacing(2),wordBreak:"break-word",whiteSpace:"nowrap"},geneDataRowExpanded:{whiteSpace:"normal"},relatedProductsTitle:{fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),marginBottom:e.spacing(3),marginTop:e.spacing(4)},relatedProductsRow:{display:"flex",flexFlow:"row wrap",maxWidth:"770px","& > *":{marginBottom:e.spacing(1),width:"25%",paddingRight:e.spacing(3)}},expandCta:{fontSize:e.typography.pxToRem(14),color:e.palette.primary.main,fontWeight:e.typography.fontWeightBold},relatedGenesLinkWrapper:{display:"flex",marginTop:e.spacing(5)},relatedGenesLink:{fontSize:e.typography.pxToRem(16),"&:hover > *":{color:e.palette.secondary.dark}},caretRightIcon:{fontSize:e.typography.pxToRem(16),color:e.palette.primary.main,marginLeft:e.spacing(3),[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(10)}}})),S=e=>{let a;return e&&(a="Summary: "===e.slice(0,9)?e.slice(9,e.length-1):null),a},w=e=>{let{gene:a}=e,{classes:t}=f(),r=S(a.summary),[w,R]=(0,s.useState)(!1),v=a.variants.reduce((e,a,t,n)=>{let s=t===n.length-1?"":", ";return e+("".concat(a.commonName," ").concat(a.symbol," (").concat(a.geneId,")")+s)},""),N=v?v.split(" "):[],k=r?r.split(" "):[];return(0,n.jsxs)("div",{className:t.root,"data-testid":"gene-card",children:[(0,n.jsxs)("div",{className:t.geneWrapper,children:[(0,n.jsx)("div",{className:t.thumbnail,children:(0,n.jsx)(h.A,{style:{width:"100%",height:"100%"}})}),(0,n.jsxs)("div",{className:t.detail,children:[(0,n.jsx)(d.N,{...o.U8.index(a.symbol),passHref:!0,children:(0,n.jsx)(l.A,{className:t.title,children:a.symbol})}),a.name&&(0,n.jsx)(c.A,{mb:4,fontSize:16,children:a.name}),a.synonyms.length>0&&(0,n.jsxs)(p.A,{container:!0,children:[(0,n.jsx)(p.A,{xs:3,md:2,children:(0,n.jsx)("div",{className:t.geneDataTitle,children:(0,n.jsx)(i.A,{...g.A.SYNONYMS,children:e=>(0,n.jsxs)("span",{children:[e,":"]})})})}),(0,n.jsx)(p.A,{xs:9,md:10,"data-testid":"gene-synonyms",children:(0,n.jsx)("div",{className:t.geneDataRow,children:a.synonyms.join(", ")})})]})]})]}),(0,n.jsx)("div",{className:t.speciesSectionWrapper,children:(0,n.jsxs)(p.A,{container:!0,sx:{width:"100%"},children:[a.variants.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.A,{xs:3,md:2,children:(0,n.jsx)("div",{className:t.geneDataTitle,children:(0,n.jsx)(i.A,{id:"SPECIES",defaultMessage:"Species",children:e=>(0,n.jsxs)("span",{children:[e,":"]})})})}),(0,n.jsx)(p.A,{xs:9,md:10,"data-testid":"gene-variants",children:(0,n.jsx)(c.A,{lineHeight:1.7,className:w?t.geneDataRowExpanded:t.geneDataRow,children:(0,n.jsx)(x.A,{allowShowMore:!1,wordCount:10,showFullText:w,children:v})})})]}),r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.A,{xs:3,md:2,children:(0,n.jsx)("div",{className:t.geneDataTitle,children:(0,n.jsx)(i.A,{...g.A.SUMMARY,children:e=>(0,n.jsxs)("span",{children:[e,":"]})})})}),(0,n.jsx)(p.A,{xs:9,md:10,"data-testid":"gene-summary",children:(0,n.jsx)(c.A,{lineHeight:1.7,className:w?t.geneDataRowExpanded:t.geneDataRow,children:(0,n.jsx)(x.A,{allowShowMore:!1,wordCount:10,showFullText:w,children:r})})})]}),N.length-1>10||k.length-1>15?(0,n.jsx)(m.A,{"data-testid":"gene-show-more",className:t.expandCta,onClick:()=>R(!w),children:w?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.A,{...g.A.SHOW_LESS}),(0,n.jsx)(y.A,{})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.A,{...g.A.SHOW_MORE}),(0,n.jsx)(u.A,{})]})}):null]})}),a.relatedCategories.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:t.relatedProductsTitle,children:(0,n.jsx)(i.A,{...g.A.RELATED_PRODUCTS,children:e=>(0,n.jsxs)("span",{children:[e,":"]})})}),(0,n.jsx)("div",{id:"gene-categories","data-testid":"gene-categories",className:t.relatedProductsRow,children:a.relatedCategories.map(e=>"shRNA"!==e.name&&"siRNA"!==e.name&&(0,n.jsx)(d.N,{...o.U8.index(a.symbol,e.name),passHref:!0,children:(0,n.jsx)(l.A,{color:"primary",children:e.name})},e.name)||("shRNA"===e.name||"siRNA"===e.name)&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(d.N,{...o.VO.index(e.name,a.symbol),passHref:!0,children:(0,n.jsx)(l.A,{color:"primary",children:e.name})},e.name)}))})]}),a.name&&(0,n.jsx)("div",{className:t.relatedGenesLinkWrapper,children:(0,n.jsx)(d.N,{href:"".concat(o.wO.searchResults(a.name)).concat((0,j.$c)({term:a.name,focus:j.Xc.Genes})),passHref:!0,children:(0,n.jsxs)(l.A,{color:"primary",className:t.relatedGenesLink,children:[(0,n.jsx)(i.A,{...g.A.SEE_ALL_RELATED_GENES}),(0,n.jsx)(A.A,{className:t.caretRightIcon})]})})})]})}},72499:(e,a,t)=>{t.d(a,{A:()=>d});var n=t(37876);t(14232);var s=t(18608),i=t(24644),r=t(35152);let o=(0,s.makeStyles)()(e=>({responsivePaginationWrapper:{padding:e.spacing(4,0)}})),d=e=>{let{currentPage:a,handleUpdatePage:t,numPages:s,customPadding:d,customCounterStyling:l,customButtonStyling:c}=e,{classes:p}=o();return(0,n.jsx)("div",{className:d||p.responsivePaginationWrapper,"data-testid":"search-results-pagination",children:(0,n.jsx)(i.A,{currentPage:a,handleUpdatePage:e=>{(0,r.sendNavigationInteractionEvent)({action:"pagination click",detail:"".concat(e>a?"next":"previous"," - page ").concat(e," of ").concat(s),component:"body",elementType:"button"}),t(e)},numPages:s,customCounterStyling:l,customButtonStyling:c})})}},76113:(e,a,t)=>{t.d(a,{A:()=>h});var n=t(37876),s=t(89996),i=t(18608),r=t(63724),o=t(77018),d=t(71538),l=t(38554),c=t(5612),p=t(77742),m=t(14008);let g=(0,i.makeStyles)()(e=>({sectionWrapper:{background:e.palette.background.grey,boxShadow:"none",height:"100%",padding:e.spacing(5),[e.breakpoints.up("lg")]:{background:"white",boxShadow:"0 0 4px 0 rgba(0, 0, 0, 0.25)",maxWidth:"250px",padding:e.spacing(6)}},heading:{fontSize:e.typography.pxToRem(16),fontWeight:e.typography.fontWeightMedium,[e.breakpoints.up("md")]:{fontSize:e.typography.pxToRem(18),fontWeight:e.typography.fontWeightBold}},textLink:{fontSize:e.typography.pxToRem(14),fontWeight:e.typography.fontWeightBold,color:e.palette.primary.main},headerDivider:{marginBottom:e.spacing(3),marginTop:e.spacing(1),[e.breakpoints.up("xs")]:{marginRight:-20,marginLeft:-20}},sectionContent:{marginBottom:e.spacing(6)}})),h=()=>{let{classes:e}=g(),{formatMessage:a}=(0,p.A)();return(0,n.jsxs)(r.A,{xs:12,className:e.sectionWrapper,children:[(0,n.jsx)(o.A,{component:"div",className:e.heading,children:a(m.A.NEED_ADDITIONAL_HELP)}),(0,n.jsx)(d.A,{className:e.headerDivider}),(0,n.jsx)("div",{className:e.sectionContent,children:(0,n.jsx)(c.N,{href:s.mA.customerSupport(),passHref:!0,children:(0,n.jsx)(l.A,{className:e.textLink,children:a(m.A.CUSTOMER_SUPPORT)})})}),(0,n.jsx)(o.A,{component:"div",className:e.heading,children:a({id:"ALDRICH_MARKET_SELECT",defaultMessage:"Aldrich\xae Market Select"})}),(0,n.jsx)(d.A,{className:e.headerDivider}),(0,n.jsxs)("div",{className:e.sectionContent,children:[(0,n.jsxs)(l.A,{className:e.textLink,href:"http://www.aldrichmarketselect.com",target:"_blank",children:[a({id:"ALDRICH_MARKET_SELECT",defaultMessage:"Aldrich\xae Market Select"}),","," "]}),a(m.A.ALDRICH_MARKET_SELECT_NSR)]})]})}}}]); //# sourceMappingURL=./193.bd86dca101a88018.js.map