1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6374,3503],{22802:function(e,l,i){"use strict";i.r(l);var t=i(85893),o=i(89755),n=i.n(o),a=i(67294),r=i(65313),d=i(69998),s=i(77325),c=i.n(s),u=i(17457),v=i(5817),m=i(32862),_=i(41664),p=i.n(_),h=i(39332);let T=e=>{var l,i,o,s,_,T,y,g,f,C,L,I,w,S,F;let[b,k]=(0,a.useState)(!1),[x,B]=(0,a.useState)(""),{mediaObj:R}=(0,a.useContext)(v.ZP),N=(0,a.useRef)(null),{sitecoreContext:E}=(0,m.z)(),j=(0,h.usePathname)(),A=(0,h.useSearchParams)(),D=l=>{(null==e?void 0:e.hideTooltip)!==!0&&(null==e?void 0:e.media)!==d.Media.MEDIA_PRINT&&(null==e?void 0:e.media)!==d.Media.MEDIA_PRINT_CLIENT&&(k(!0),B(l))},P=(null==e?void 0:e.tooltipType)!==d.TooltipType.TEXT?(0,t.jsx)("div",{className:c().tooltipImageContainer,children:(0,t.jsx)(n(),{src:(0,r.CreateImageUrlPrefix)((null==e?void 0:null===(l=e.image)||void 0===l?void 0:l.src)?null==e?void 0:e.image.src:""),alt:(null==e?void 0:null===(i=e.image)||void 0===i?void 0:i.alt)?null==e?void 0:e.image.alt:"",layout:"fill",loader:e=>(0,r.customImageLoader)(e,{mw:200}),"data-pin-nopin":(null==e?void 0:null===(o=e.image)||void 0===o?void 0:o.IsRestricted)?"true":null})}):(0,t.jsx)(t.Fragment,{children:x&&""!==x?(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:x}}):null});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:c().sectionListitem,"data-testid":"accordionListItem",children:(null==e?void 0:null===(s=e.linkItem)||void 0===s?void 0:s.mediaType)===d.mediaTypes.Case_Studies?(0,t.jsx)(p(),{prefetch:!1,locale:(null===d.defaultLanguages||void 0===d.defaultLanguages?void 0:d.defaultLanguages.includes(null==E?void 0:null===(_=E.language)||void 0===_?void 0:_.toLocaleLowerCase()))?"":null==E?void 0:null===(T=E.language)||void 0===T?void 0:T.toLocaleLowerCase(),className:(null==R?void 0:R.isClientTheme)?"clientFontColor":"",href:(0,r.AppendQueryParameters)(null!=j?j:"/",A,(null==e?void 0:null===(y=e.linkItem)||void 0===y?void 0:y.ShareUrl)?null==e?void 0:null===(g=e.linkItem)||void 0===g?void 0:g.ShareUrl:""),tabIndex:0,children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:(null==e?void 0:null===(f=e.linkItem)||void 0===f?void 0:f.Title)?null==e?void 0:null===(C=e.linkItem)||void 0===C?void 0:C.Title.replaceAll(" <sup","<sup"):""},className:(null==R?void 0:R.isClientTheme)?"clientFontColor":void 0})}):(0,t.jsx)("button",{ref:N,onClick:()=>{var l;return(null==e?void 0:null===(l=e.linkItem)||void 0===l?void 0:l.Title)?null==e?void 0:e.handleClick(e.linkItem,e.index):void 0},tabIndex:0,onKeyUp:l=>{var i;(13===l.keyCode||32==l.keyCode)&&(null==e?void 0:null===(i=e.linkItem)||void 0===i?void 0:i.Title)&&e.handleClick(e.linkItem,e.index)},onMouseEnter:()=>{var l;return D(null!==(F=null==e?void 0:null===(l=e.linkItem)||void 0===l?void 0:l.Title)&&void 0!==F?F:"")},onMouseLeave:()=>k(!1),"data-testid":"accordionListItemLink",children:(null==e?void 0:null===(L=e.linkItem)||void 0===L?void 0:L.Title)&&(null==e?void 0:null===(I=e.linkItem)||void 0===I?void 0:I.Title)!==""?(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:(null==e?void 0:null===(w=e.linkItem)||void 0===w?void 0:w.Title)?null==e?void 0:null===(S=e.linkItem)||void 0===S?void 0:S.Title.replaceAll(" <sup","<sup"):""},className:(null==R?void 0:R.isClientTheme)?"clientFontColor":void 0}):null})}),(0,t.jsx)(u.default,{target:N.current,show:b,placement:"bottom",isText:(null==e?void 0:e.tooltipType)===d.TooltipType.TEXT,children:P})]})};l.default=T},95344:function(e,l,i){"use strict";i.r(l);var t=i(85893),o=i(22556),n=i(67294),a=i(34616),r=i.n(a),d=i(2086),s=i(35005),c=i(69998),u=i(5817),v=i(39332),m=i(49689),_=i(65313),p=i(32862),h=i(81123);let T=e=>{var l,i,a,T,y,g,f,C,L,I,w;let{sitecoreContext:S}=(0,p.z)(),F=null==S?void 0:S.language,{t:b}=(0,o.QT)(),{theme:k,mediaObj:x}=(0,n.useContext)(u.ZP),[B,R]=(0,n.useState)(!1),[N,E]=(0,n.useState)(!1),[j,A]=(0,n.use
1State)(!1),[D,P]=(0,n.useState)(!1),[O,M]=(0,n.useState)(!1),z=(0,v.useRouter)(),Y=(0,v.usePathname)(),H=(0,v.useSearchParams)(),U=null==H?void 0:H.toString(),V=H.get("mode"),[K,G]=(0,n.useState)(null),[Z,W]=(0,n.useState)(""),[q,J]=(0,n.useState)(!0),Q=null===(l=b("AlphabetLetters"))||void 0===l?void 0:l.split(","),[X,$]=(0,n.useState)({item1:!1,item2:!1}),[ee,el]=(0,n.useState)(""),[ei,et]=(0,n.useState)(""),[eo,en]=(0,n.useState)(""),ea=H.get("vt")||"",er=H.get(null===c.mediaTypes||void 0===c.mediaTypes?void 0:c.mediaTypes.ContentType)||"",[ed,es]=(0,n.useState)((null==U?void 0:U.includes("vt"))?ea:(null==U?void 0:U.includes(null===c.mediaTypes||void 0===c.mediaTypes?void 0:c.mediaTypes.ContentType))?er:""),[ec,eu]=(0,n.useState)(""),[ev,em]=(0,n.useState)(""),e_=(0,n.useRef)(null);(0,n.useEffect)(()=>{var e;if(""===U&&(U=window.location.search),U.includes("&site")||U.includes("&path")){let e=new URLSearchParams(U);e.delete("site"),e.delete("path"),U=e.toString()}et((null==U?void 0:U.includes(c.FilterType.FILTER_SECTIONWISE))?"&order=bysection":(null==U?void 0:U.includes(c.FilterType.FILTER_ALPHABETICALLY))?"&order=alphabetical":(null==U?void 0:U.includes(c.FilterType.FILTER_CREATIONDATE))?"&order=bycreationdate":""),en((null==U?void 0:U.includes(c.FilterType.FILTER_SECTIONWISE))?null===c.FilterType||void 0===c.FilterType?void 0:c.FilterType.FILTER_SECTIONWISE:(null==U?void 0:U.includes(null===c.FilterType||void 0===c.FilterType?void 0:c.FilterType.FILTER_ALPHABETICALLY))?null===c.FilterType||void 0===c.FilterType?void 0:c.FilterType.FILTER_ALPHABETICALLY:""),J((null==U||!U.includes(c.FilterType.FILTER_LIST))&&null!=U&&!!U.includes(c.FilterType.FILTER_GRID)),el((null==U?void 0:U.includes(c.FilterType.FILTER_LIST))?"mode=list":(null==U?void 0:U.includes(c.FilterType.FILTER_GRID))?"mode=grid":"");let l=new URLSearchParams(U),i=l.get("vt"),t=l.get(null===c.mediaTypes||void 0===c.mediaTypes?void 0:c.mediaTypes.ContentType),o=i||(t?(null==t?void 0:t.charAt(0).toUpperCase())+(null==t?void 0:t.slice(1)):"");es(o);let n=i?"&vt=".concat(i):t?"&".concat(null===c.mediaTypes||void 0===c.mediaTypes?void 0:c.mediaTypes.ContentType,"=").concat(t):"";eu(n),em(null!==(e=l.get("keyword"))&&void 0!==e?e:"")},[""!=U]),(0,n.useEffect)(()=>{if((null==e?void 0:e.isContextLoaded)&&U&&(ee||ei||ec||ev)){var l,i,t,o;let n=window.location.pathname+"?"+ee+ei+ec;O||(n+=window.location.hash,M(!0));let a=ev.toString().replace(/\+/g," ").replace(/%20/g," ");""!=ev&&(n+="&keyword="+decodeURIComponent(a));let r=(0,_.AppendQueryParameters)(null!=Y?Y:"/",H,n||""),d=(()=>{let e=new URLSearchParams(window.location.search);e.delete("media"),e.delete("client");let l=e.toString().replace(/\+/g," ");return l})();(null==window?void 0:null===(l=window.location)||void 0===l?void 0:l.pathname)+decodeURIComponent(d?"?"+d:"")!==n&&z.replace(r),ee.includes(c.FilterType.FILTER_LIST)?null==e||e.getThumbNailView(!1):ee.includes(c.FilterType.FILTER_GRID)&&(null==e||e.getThumbNailView(!0)),ei.includes(c.FilterType.FILTER_ALPHABETICALLY)?null==e||e.getSelectedButton(c.FilterType.FILTER_ALPHABETICALLY):ei.includes(c.FilterType.FILTER_SECTIONWISE)?null==e||e.getSelectedButton(c.FilterType.FILTER_SECTIONWISE):""===ei&&((null==e?void 0:null===(i=e.isGoToSectionorLetter)||void 0===i?void 0:i.toLowerCase())===(null===c.FilterType||void 0===c.FilterType?void 0:c.FilterType.FILTER_BYSECTION)?null==e||e.getSelectedButton(c.FilterType.FILTER_SECTIONWISE):(null===(t=null==e?void 0:null===(o=e.isGoToSectionorLetter)||void 0===o?void 0:o.toLowerCase())||void 0===t?void 0:t.includes(c.FilterType.FILTER_ALPHABETICALLY))&&(null==e||e.getSelectedButton(c.FilterType.FILTER_ALPHABETICALLY))),ec&&!ev&&!(null==e?void 0:e.onApply)&&(null==e?void 0:e.selectedType)&&(null==e||e.selectedType(ed.charAt(0).toUpperCase()+ed.slice(1)))}},[ee,ei,ec,ed,ev,null==e?void 0:e.isContextLoaded,Y,H]),(0,n.useEffect)(()=>{let l=!!((null==U?void 0:U.includes(c.FilterType.FILTER_LIST))||(null==U?void 0:U.includes(c.FilterType.FILTER_GRID))),i=!!((null==U?void 0:U.includes(c.FilterType.FILTER_SECTIONWISE))||(null==U?void 0:U.includes(null===c.FilterType||void 0===c.FilterType?void 0:c.FilterType.FILTER_ALPHABETICALLY)));(null==e?void 0:e.isThumbNailView)===!0&&!l&&!D&&(null==e?void 0:e.isContextLoaded)&&(J(!0),el("mode=grid")),(null==e?void 0:e.isThumbNailView)===!1&&!l&&!D&&(null==e?void 0:e.isContextLoaded)&&(J(!1),el("mode=list")),(null==e?void 0:e.isGoToSectionorLetter)&&!i&&!ei&&en((null==e?void 0:e.isGoToSectionorLetter)===(null===c.FilterType||void 0===c.FilterType?void 0:c.FilterType.FILTER_BYSECTION)?null===c.FilterType||void 0===c.FilterType?void 0:c.FilterType.FILTER_SECTIONWISE:(null==e?void 0:e.isGoToSectionorLetter)===(null===c.FilterType||void 0===c.FilterType?void 0:c.FilterType.FILTER_ALPHABET)?null===c.FilterType||void 0===c.FilterType?void 0:c.FilterType.FILTER_ALPHABETICALLY:"")},[null==e?void 0:e.isThumbNailView,null==e?void 0:e.isGoToSectionorLetter,Y,U,ei,ee,D,null==e?void 0:e.isContextLoaded]),(0,n.useEffect)(()=>{H&&Object.keys(H).length>0&&((null==V?void 0:V.includes(c.FilterType.FILTER_LIST))?J(!1):(null==V?void 0:V.includes(c.FilterType.FILTER_GRID))&&J(!0))},[V,H]);let ep=(0,m.I)({onTriggered:()=>{R(!1)}}),eh=(0,m.I)({onTriggered:()=>{A(!1)}}),eT=(0,m.I)({onTriggered:()=>{E(!1)}}),ey=l=>{K===l?(G(null),null==e||e.getSelectedSection(null)):(G(l),null==e||e.getSelectedSection(l)),R(!1)},eg=l=>{null==e||e.onChange(l),W(l.trim())},ef=l=>{"enter"===l.toLowerCase()&&(null==e?void 0:e.handleFilter)&&(null==e||e.handleFilter(),A(!1),em(Z),""===Z&&em(""))},eC=()=>{null==e||e.onClick(""),es(b("All")),eu(""),em(""),A(!1)},eL=l=>{l===c.FilterType.FILTER_ALPHABETICALLY?(et("&order=alphabetical"),en(c.FilterType.FILTER_ALPHABETICALLY)):(et("&order=bysection"),en(c.FilterType.FILTER_SECTIONWISE)),e.getSelectedButton(l),A(!j)},eI=l=>{var i;P(!0),J(l),(null==e?void 0:null===(i=e.toShowThumbNailAndList)||void 0===i?void 0:i.length)>1&&e.getThumbNailView(l),(null==e?void 0:e.isByCreationDate)&&et("&order=bycreationdate"),l?el("mode=grid"):l||el("mode=list")},ew=()=>{(null==e?void 0:e.handleFilter)&&(null==e||e.handleFilter(),A(!1),em(Z),""===Z&&em(""))},eS=l=>{let i=l.target.value;es(i),(null==e?void 0:e.selectedType)&&(null==e||e.selectedType(i)),eu((null==e?void 0:e.queryParam)?"&".concat(e.queryParam,"=").concat(null==i?void 0:i.toLowerCase()):"&vt=".concat(null==i?void 0:i.toLowerCase())),A(!1)};return(0,t.jsx)("div",{className:"".concat(r().filterHeader," ").concat((null==F?void 0:F.includes("zh"))||(null==F?void 0:F.includes("zh-cn"))?r().zhFilter:""),"data-testid":"filter",children:(0,t.jsxs)("ul",{className:r().customUl,children:[(null==eo?void 0:eo.includes(c.FilterType.FILTER_SECTIONWISE))?(0,t.jsx)("li",{children:(0,t.jsx)("div",{ref:ep,onClick:()=>{$({...X,item1:!(null==X?void 0:X.item1)})},"data-testid":"sectionContainer",children:(0,t.jsxs)("div",{className:"".concat(r().rightOptionItem," ").concat(r().sectionItem," ").concat(B&&r().goToSectionOpenItems," ").concat(k===c.Theme.DARK&&r().themeDark),children:[(0,t.jsxs)("div",{onClick:()=>{R(!B)},className:r().filterDiv,"data-testid":"sectionPanel",children:[(0,t.jsx)("button",{"data-testid":"sectionButton",onClick:()=>e.getIsSelected(!B),"aria-expanded":B?"true":"false",children:b("GoToSection")}),(0,t.jsx)("span",{className:"".concat(B?r().arrowUp:r().arrowDown)})]}),(0,t.jsx)("div",{className:r().goToSectionContainer,children:(0,t.jsx)("div",{className:r().scrollpos,children:Array.isArray(null==e?void 0:e.sectionListData)&&(null==e?void 0:null===(a=e.sectionListData)||void 0===a?void 0:a.map((e,l)=>(0,t.jsx)("div",{onClick:()=>ey(e),className:r().sectionListItemLink,tabIndex:0,onKeyUp:l=>{(13===l.keyCode||32==l.keyCode)&&ey(e)},"data-testid":"sectionLink",children:(0,t.jsx)("div",{children:e})},"section-".concat(l))))})})]})})}):(null==eo?void 0:eo.includes(null===c.FilterType||void 0===c.FilterType?void 0:c.FilterType.FILTER_ALPHABETICALLY))?(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"".concat(r().rightOptionItem," ").concat(r().letterItem," ").concat(N&&r().goToLetterOpenItems," ").concat(k===c.Theme.DARK&&r().themeDark),ref:eT,children:[(0,t.jsxs)("div",{onClick:()=>{E(!N)},className:r().filterDiv,"data-testid":"alphabetContainer",children:[(0,t.jsx)("button",{"aria-expanded":N?"true":"false",children:b("GoToLetter")}),(0,t.jsx)("span",{className:"".concat(N?r().arrowUp:r().arrowDown)})]}),(0,t.jsx)("div",{className:r().goToLetterContainer,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{tabIndex:(null==e?void 0:null===(T=e.selectedAlphabets)||void 0===T?void 0:T.includes("#"))?0:-1,className:(null==e?void 0:null===(y=e.selectedAlphabets)||void 0===y?void 0:y.includes("#"))?r().blueColor:r().grayColor,onClick:()=>{null==e||e.getSelectedAlphabet("#"),E(!N)},"data-testid":"alphabet#",children:"#"}),Array.isArray(Q)&&(null==Q?void 0:Q.map((l,i)=>{var o,n;return(0,t.jsx)("span",{tabIndex:(null==e?void 0:null===(o=e.selectedAlphabets)||void 0===o?void 0:o.includes(l))?0:-1,onClick:()=>{null==e||e.getSelectedAlphabet(l),E(!N),ey(l)},onKeyDown:i=>{"Enter"===i.key&&(null==e||e.getSelectedAlphabet(l),E(!N),ey(l))},className:(null==e?void 0:null===(n=e.selectedAlphabets)||void 0===n?void 0:n.includes(l))?r().blueColor:r().grayColor,"data-testid":"alphabet",children:l},"alphabet-".concat(i))}))]})})]})}):"",(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:r().filterOptions,ref:eh,onClick:()=>{$({...X,item2:!(null==X?void 0:X.item2)})},"data-testid":"options",children:(0,t.jsxs)("div",{className:"".concat(r().rightOptionItem," ").concat(j&&r().refineByOpenItem," ").concat(k===c.Theme.DARK&&r().themeDark),children:[(0,t.jsxs)("div",{onClick:()=>{A(!j)},className:r().filterDiv,children:[(0,t.jsx)("button",{onClick:()=>null==e?void 0:e.getIsRefineSelected(!j),"aria-expanded":j?"true":"false","data-testid":"refineBy",children:b("RefineBy")}),(0,t.jsx)("span",{className:"".concat(j?r().arrowUp:r().arrowDown)})]}),(0,t.jsxs)("div",{className:"".concat(r().refineByContainer," ").concat("uk"===F&&r().refineBySection),children:[(null==e?void 0:null===(g=e.toShowViewBy)||void 0===g?void 0:g.length)>1&&(0,t.jsxs)("form",{children:[(0,t.jsx)("span",{className:r().refineByLabel,tabIndex:-1,"data-testid":"refineLabel",children:b("ViewBy")}),(0,t.jsx)("div",{className:r().refineByKeywordContainer,children:(0,t.jsx)("div",{className:r().refineByKeyword,children:(0,t.jsx)(d.Z,{className:r().viewBySection,style:{width:(null==e?void 0:null===(f=e.toShowViewBy)||void 0===f?void 0:f.length)===1?"50%":"100%"},"aria-label":"Basic example",children:(null==e?void 0:e.toShowViewBy)&&(null==e?void 0:null===(C=e.toShowViewBy)||void 0===C?void 0:C.length)>0&&(null==e?void 0:null===(L=e.toShowViewBy)||void 0===L?void 0:L.map((e,l)=>(null==e?void 0:e.displayName)===c.FilterType.FILTER_ALPHABET?(0,t.jsx)(s.Z,{className:(null==eo?void 0:eo.includes(c.FilterType.FILTER_ALPHABETICALLY))?r().activeBtnColor+((null==x?void 0:x.isCl
1ientTheme)?" clientbackgroundColor":""):r().inactiveBtnColor,onClick:()=>eL(c.FilterType.FILTER_ALPHABETICALLY),"data-testid":"filterAlphabet",children:b("AlphabetText")},l):(null==e?void 0:e.displayName)===c.FilterType.FILTER_BYSECTION?(0,t.jsx)(s.Z,{className:"".concat((null==eo?void 0:eo.includes(c.FilterType.FILTER_SECTIONWISE))?r().activeBtnColor+((null==x?void 0:x.isClientTheme)?" clientbackgroundColor":""):r().inactiveBtnColor),onClick:()=>eL(c.FilterType.FILTER_SECTIONWISE),"data-testid":"filterSection",children:b("Section")},l):null))})})})]}),(null==e?void 0:e.contentTypeFilter)&&(null==e?void 0:null===(I=e.contentTypeFilter)||void 0===I?void 0:I.length)>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("label",{htmlFor:"showby",className:r().refineByLabel,tabIndex:-1,"data-testid":"showLabel",children:b("ShowByType")}),(0,t.jsx)("div",{className:r().showByType,children:(0,t.jsxs)("select",{value:(null==ed?void 0:ed.charAt(0).toUpperCase())+(null==ed?void 0:ed.slice(1))||"All",onChange:e=>eS(e),className:"".concat(r().showByTypeDropdown," curvedButton"),"data-testid":"selectType",id:"showby",onKeyDown:e=>{("ArrowDown"===e.key||"ArrowUp"===e.key)&&e.preventDefault()},children:[(0,t.jsx)("option",{value:"All",selected:!0,className:"".concat(r().showByTypeOptions),children:b("All")},"type"),null==e?void 0:null===(w=e.contentTypeFilter)||void 0===w?void 0:w.map((e,l)=>{var i,o,n;return(0,t.jsx)("option",{value:null==e?void 0:null===(i=e.fields)||void 0===i?void 0:null===(o=i.Phrase)||void 0===o?void 0:o.value,className:"".concat(r().showByTypeOptions),children:(null===(n=null==e?void 0:e.name[e.name.length-1])||void 0===n?void 0:n.toLowerCase())==="s"?e.name.slice(0,-1):e.name},"type"+l)})]})})]}),(0,t.jsxs)("div",{className:r().form,children:[(0,t.jsx)("label",{htmlFor:"keyword",className:r().refineByLabel,tabIndex:-1,"data-testid":"keywordLabel",children:b("KeywordFilter")}),(0,t.jsx)("fieldset",{id:"keywordField",children:(0,t.jsxs)("div",{className:r().refineByKeywordContainer,children:[(0,t.jsx)("div",{className:r().refineByKeyword,children:(0,t.jsx)("input",{type:"text",name:"keyword",placeholder:b("KeywordFilter"),className:"curvedButton",id:"keyword",value:decodeURIComponent(e.value),onChange:e=>eg(e.target.value),onKeyDown:e=>ef(e.key),ref:e_,"data-testid":"keyword",tabIndex:0})}),(0,t.jsx)("div",{className:"".concat(r().applyRefineByBtn," ").concat((null==x?void 0:x.isClientTheme)&&"clientbackgroundColor"," curvedButton"),role:"button",tabIndex:0,onClick:()=>e_&&(null==e_?void 0:e_.current)?ew():A(!1),onKeyDown:e=>{"Enter"===e.key&&(e_&&(null==e_?void 0:e_.current)?ew():A(!1))},"data-testid":"applyFilter",children:(0,t.jsx)("span",{children:b("ApplyFilters")})})]})})]}),(0,t.jsx)("button",{className:"".concat(r().clearFilter," ").concat((null==x?void 0:x.isClientTheme)&&"clientFontColor"),onClick:()=>e_&&(null==e_?void 0:e_.current)||""!==ec?eC():A(!1),"data-testid":"clearFilter",onKeyDown:e=>{"Tab"===e.key&&(0,h.$y)()},children:b("ClearFilters")})]})]})})}),(0,t.jsx)("li",{children:(null==e?void 0:null===(i=e.toShowThumbNailAndList)||void 0===i?void 0:i.length)>1&&(0,t.jsxs)("div",{className:r().thumbnailList,children:[(0,t.jsxs)("span",{className:r().thumbnail,onClick:()=>eI(!0),"data-testid":"thumbnail",children:[(0,t.jsx)("button",{className:"".concat(r().thumbnailButton," ").concat(q?r().activeView:""," ").concat(q&&(null==x?void 0:x.isClientTheme)&&"clientbackgroundColor"," curvedButton"),children:b("Thumbnail")}),(0,t.jsx)("span",{className:" ".concat(r().iconsImages," ").concat(q?r().thumbnailIconRed:r().thumbnailIconGrey," ").concat(r().thumbnailIcon)})]}),(0,t.jsxs)("span",{className:r().list,onClick:()=>eI(!1),"data-testid":"list",children:[(0,t.jsx)("button",{className:"".concat(r().listButton," ").concat(q?"":r().activeView," ").concat(!q&&(null==x?void 0:x.isClientTheme)&&"clientbackgroundColor"," curvedButton"),children:b("List")}),(0,t.jsx)("span",{className:"".concat(r().iconsImages," ").concat(q?r().listIconGrey:r().listIconRed," ").concat(r().listIcon," ")})]})]})})]})})};l.default=T},58483:function(e,l,i){"use strict";i.r(l);var t=i(85893),o=i(5817),n=i(2766),a=i.n(n),r=i(69998),d=i(4098),s=i(67294),c=i(22556),u=i(89755),v=i.n(u),m=i(93011),_=i(87456),p=i(65313),h=i(32862),T=i(54483);let y=e=>{var l,i,n,u;let{sitecoreContext:y}=(0,h.z)(),{domain:g,theme:f,resizing:C,edition:L,isAddToAnyActive:I,setisAddToAnyActive:w,mediaObj:S,shareOverlayClose:F,setModalOpen:b}=(0,s.useContext)(o.ZP),{t:k}=(0,c.QT)(),x=new Date().getFullYear(),B=String.fromCodePoint(169),R=null===(l=null==y?void 0:null===(i=y.route)||void 0===i?void 0:null===(n=i.name)||void 0===n?void 0:n.toLowerCase())||void 0===l?void 0:l.replace(/\s/g,""),N=(0,s.useRef)(null);return(0,s.useEffect)(()=>
1{if((null==e?void 0:e.show)&&(w(!1),window.top!==window.self)){var l;null==N||null===(l=N.current)||void 0===l||l.scrollIntoView()}b((null==e?void 0:e.show)||!1)},[null==e?void 0:e.show]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(d.Z,{enforceFocus:!I,className:" ".concat(a().modal," \n ").concat(L===r.Edition.PROFESSIONAL?a().professional:L===r.Edition.CONSUMER?a().consumer:a().veterinary," ").concat(C===r.FontResize.FONT_LARGE?a().fontSize3+" font-size-3":C===r.FontResize.FONT_MEDIUM?a().fontSize2+" font-size-2":a().fontSize1+" font-size-1"," ").concat(f===r.Theme.DARK?"modal-dark":"modal-light"," ").concat((null==e?void 0:e.showFullScreen)&&a().modalFullscreen),onClose:null==e?void 0:e.handleClose,size:null==e?void 0:e.size,show:null==e?void 0:e.show,onHide:null==e?void 0:e.handleClose,backdrop:(null==e?void 0:e.withBackdrop)&&"static","data-testid":"modalPopup",id:"modalPopup",children:[(0,t.jsx)(T.FocusTrap,{active:null==e?void 0:e.show,focusTrapOptions:{allowOutsideClick:!0,escapeDeactivates:!1,initialFocus:!1},children:(0,t.jsxs)("div",{className:a().focusTrapDiv,children:[(0,t.jsxs)(d.Z.Header,{className:" ".concat(a().header," ").concat("drugnamesgenericandbrand"===R&&a().drugHeader," ").concat(f===r.Theme.DARK&&(null==e?void 0:e.hidePopupHeader)!==!0?a().healthyLivingColor:""," ").concat((null==e?void 0:e.hidePopupHeader)&&a().noHeaderBackground,"\n ").concat((null==e?void 0:e.hideModalHeader)&&a().hideModalHeader," ").concat((null==S?void 0:S.isClientTheme)&&"clientbackgroundColor","\n "),ref:N,children:[(0,t.jsx)(d.Z.Title,{as:"h2",className:"".concat(a().title," ").concat("drugnamesgenericandbrand"===R&&a().drugTitle," ").concat(a().headerElement," ").concat((null==S?void 0:S.isClientTheme)&&"heading2"),children:null==e?void 0:e.modalTitle}),(null==e?void 0:e.hidePopupHeader)!==!0?(0,t.jsx)("p",{className:"".concat(a().btnClose," ").concat("drugnamesgenericandbrand"===R&&a().drugBtnClose," ").concat(a().headerElement," ").concat((null==S?void 0:S.isClientTheme)&&"clientbackgroundColor"),onClick:null==e?void 0:e.handleClose,onKeyUp:l=>{var i;"enter"===l.key.toLowerCase()&&(null==e||null===(i=e.handleClose)||void 0===i||i.call(e)),l.stopPropagation()},role:"button",tabIndex:F?-1:0,children:k("Close")}):(0,t.jsx)("p",{onClick:null==e?void 0:e.handleClose,className:(null==e?void 0:e.withBackdrop)?a().modalButton:"",role:"button",tabIndex:0,children:(0,t.jsx)("span",{className:a().closeIcon})})]}),(0,t.jsx)(d.Z.Body,{dir:(null==y?void 0:null===(u=y.language)||void 0===u?void 0:u.toLowerCase())==="ar"?"rtl":"ltr",className:"".concat(a().modalBody," ").concat(f===r.Theme.DARK&&(null==e?void 0:e.hidePopupHeader)!==!0?a().healthyLivingColorBackground:""),children:(0,t.jsx)(t.Fragment,{children:null==e?void 0:e.children})})]})}),(0,t.jsx)(d.Z.Footer,{className:a().copyRightFooter,children:(0,t.jsxs)("div",{className:a().copyRight,children:[(0,t.jsx)("div",{className:a().msdcopyRightImage,children:(null==g?void 0:g.includes("msd"))?(0,t.jsx)(v(),{src:m.Z.src,width:90,height:30,loading:"eager",loader:e=>(0,p.customImageLoader)(e)}):(0,t.jsx)(v(),{src:_.Z.src,width:90,height:30,loading:"eager",loader:e=>(0,p.customImageLoader)(e)})}),(0,t.jsxs)("span",{className:a().copyRightText,children:["".concat(B," ").concat(x),k("Copyright")]})]})})]})})};l.default=y},17457:function(e,l,i){"use strict";i.r(l);var t=i(85893),o=i(67294),n=i(57823),a=i(43489),r=i(5817),d=i(69998),s=i(10468),c=i.n(s);let u=e=>{let{theme:l}=(0,o.useContext)(r.ZP);return(0,t.jsx)(n.Z,{target:e.target,show:e.show,placement:"auto",popperConfig:{modifiers:[{name:"offset",options:{offset:l=>{var i;let t=null==e?void 0:null===(i=e.target)||void 0===i?void 0:i.getBoundingClientRect(),o=30;return o=t&&window.innerHeight-t.y<=l.popper.height+l.reference.height+10?-l.popper.height-10:l.reference.height+10,[t&&window.innerWidth-t.x<=l.popper.width?-(l.popper.width-l.reference.width):0,o]}}}]},children:i=>(0,t.jsx)(a.Z,{id:"listitems-tooltip",...i,className:"".concat(!(null==e?void 0:e.isText)&&c().tooltip," ").concat(!(null==e?void 0:e.isText)&&l===d.Theme.LIGHT&&c().tooltipLight," ").concat(!(null==e?void 0:e.isText)&&l===d.Theme.DARK&&c().tooltipDark," ").concat((null==e?void 0:e.isText)&&c().textTooltip),"data-testid":"tooltipComponent",children:e.children})})};l.default=u},41430:function(e,l,i){"use strict";function t(){return new Date(9999,12,31,23,59,59,9999999)}function o(){return new Date("1/1/0001 12:00:00")}i.d(l,{n:function(){return t},z:function(){return o}})},33503:function(e,l,i){"use strict";i.r(l),i.d(l,{FormatDateTime:function(){return r},FormatDateTimeData:function(){return c},convertArabicNumbers:function(){return d},convertMonthNamesToArabic:function(){return s}});var t=i(85893),o=i(32862),n=i(67294),a=i(42772);let r=e=>{let{format:l,data:i}=e,o=c({format:l,data:i});return(0,t.jsx)(t.Fragment,{children:o})},d=e=>e.replace(/[\u0660-\u0669]/g,e=>String.fromCharCode(e.charCodeAt(0)-1632+48)),s=e=>{let l=["Muharram","Safar","Rabi al-Awwal","Rabi' al-Awwal","Rabi1","Rabi2","Rabi al-Thani","Rabi' al-Thani","Jumada1","Jumada2","Jumada al-Awwal","Jumada al-Ula","Jumada al-Thani","Jumada al-Alkhirah","Rajab","Shaban","Sha'ban","Shaâban","Ramadan","Ramadhan","Shawwal","Dhu al-Qadah","Thul-Qiâdah","Dhul-Qidah","Dhu al-Hijjah","Thul-Hijjah","Dhul-Hijah"],i=["Ù
ØØ±ÙÙ
","ØµÙØ±","Ø±Ø¨ÙØ¹ Ø§ÙØ£ÙÙ","Ø±Ø¨ÙØ¹ Ø§ÙØ£ÙÙ","Ø±Ø¨ÙØ¹ Ø§ÙØ£ÙÙ","Ø±Ø¨ÙØ¹ Ø§ÙØ«Ø§ÙÙ","Ø±Ø¨ÙØ¹ Ø§ÙØ«Ø§ÙÙ","Ø±Ø¨ÙØ¹ Ø§ÙØ«Ø§ÙÙ","جÙ
Ø§Ø¯Ù Ø§ÙØ£ÙÙÙ","جÙ
Ø§Ø¯Ù Ø§ÙØ¢Ø®Ø±Ø©","جÙ
Ø§Ø¯Ù Ø§ÙØ£ÙÙÙ","جÙ
Ø§Ø¯Ù Ø§ÙØ£ÙÙÙ","جÙ
Ø§Ø¯Ù Ø§ÙØ¢Ø®Ø±Ø©","جÙ
Ø§Ø¯Ù Ø§ÙØ«Ø§ÙÙØ©","رجب","شعباÙ","شعباÙ","شعباÙ","رÙ
ضاÙ","رÙ
ضاÙ","Ø´ÙÙØ§Ù","ذ٠اÙÙØ¹Ø¯Ø©","ذ٠اÙÙØ¹Ø¯Ø©","ذ٠اÙÙØ¹Ø¯Ø©","Ø°Ù Ø§ÙØØ¬Ø©","Ø°Ù Ø§ÙØØ¬Ø©","Ø°Ù Ø§ÙØØ¬Ø©"];for(let t=0;t<l.length;t++)e=e.replace(RegExp(l[t],"g"),i[t]);return e},c=e=>{var l,t;let{format:r,data:c}
1=e,[u,v]=(0,n.useState)(""),{sitecoreContext:m}=(0,o.z)(),_=null==m?void 0:null===(l=m.route)||void 0===l?void 0:l.name,p=null==m?void 0:null===(t=m.route)||void 0===t?void 0:t.templateName;return r=(r=r.toLowerCase()).replaceAll("m","M"),(0,n.useEffect)(()=>{let e=async()=>{var e;let l;let t=await i.e(5334).then(i.bind(i,78459)),{DateTime:o,Settings:n}=t,u=null==m?void 0:null===(e=m.language)||void 0===e?void 0:e.toLowerCase();"ar"===u?(n.defaultLocale="ar",n.defaultOutputCalendar="islamic"):(("en"===u||"en-us"===u)&&(n.defaultLocale="en"),n.defaultOutputCalendar="gregory"),(null==u?void 0:u.toLowerCase())==="hi"||(null==u?void 0:u.toLowerCase())==="hi-in"?n.defaultNumberingSystem="deva":n.defaultNumberingSystem="geor";let h="en";switch(null==u?void 0:u.toLowerCase()){case"ar":h="ar";break;case"de":case"de-de":h="de";break;case"es":case"es-ar":case"es-cl":case"es-co":case"es-cr":case"es-do":case"es-ec":case"es-es":case"es-pe":case"es-pr":case"es-ve":h="es";break;case"es-mx":h="es-mx";break;case"es-us":h="es-us";break;case"fr":h="fr";break;case"fr-ca":h="fr-ca";break;case"ko":case"ko-kr":h="ko";break;case"ja-jp":case"ja":h="ja";break;case"it":case"it-it":h="it";break;case"pt":case"pt-pt":h="pt";break;case"pt-br":h="pt-br";break;case"ru":case"ru-ru":h="ru";break;case"hi":case"hi-in":h="hi";break;case"zh":h="zh-cn";break;case"en-ca":h="en-ca";break;case"en-in":h="en-in";break;case"en-nz":h="en-nz";break;case"en-au":h="en-au";break;case"en-sg":h="en-sg";break;case"vi":case"vi-vn":h="vi";break;case"uk":case"uk-ua":h="uk";break;default:h="en-gb"}if(c){if((null==u?void 0:u.toLowerCase())==="ar"){let e=(null==_?void 0:_.toLowerCase())==="news list"||(null==p?void 0:p.toLowerCase())==="searchresults"?"iDD iMMM iYYYY":"iMMM iYYYY",i=o.fromISO(c),t=i.year+","+i.month+","+i.day,n=(0,a.YN)(new Date(t));l=d((l=n?(0,a.CN)(n,e):"").toString()),l=s(l)}else l=o.fromISO(c).setLocale(h).toFormat(r)}else if((null==u?void 0:u.toLowerCase())==="ar"){let e=(null==_?void 0:_.toLowerCase())==="news list"||(null==p?void 0:p.toLowerCase())==="searchresults"?"iDD iMMM iYYYY":"iMMM iYYYY",i=o.now(),t=i.year+","+i.month+","+i.day,n=(0,a.YN)(new Date(t));l=d((l=n?(0,a.CN)(n,e):"").toString()),l=s(l)}else l=o.now().setLocale(h).toFormat(r);return v(l),l};e()},[null==m?void 0:m.language,c]),u};l.default=r},99012:function(e,l,i){"use strict";i.d(l,{OB:function(){return a},Vt:function(){return n}});var t=i(69998);let o=e=>{var l,i;return(null===t.defaultLanguages||void 0===t.defaultLanguages?void 0:t.defaultLanguages.includes(null==e?void 0:e.toLowerCase()))?null==window?void 0:null===(i=window.location)||void 0===i?void 0:i.origin:(null==window?void 0:null===(l=window.location)||void 0===l?void 0:l.origin)+"/"+(null==e?void 0:e.toLowerCase())},n=(e,l)=>{let i;return i=(null===t.MrkDefaultLanguages||void 0===t.MrkDefaultLanguages?void 0:t.MrkDefaultLanguages.includes(l))?null==e?void 0:e.replace(t.DomainNames.msd,t.DomainNames.mrk):null==e?void 0:e.replace(t.DomainNames.mrk,t.DomainNames.msd),"".concat(i,"?base_url=").concat(o(l),"&language=").concat(l)},a=(e,l,i,n,a)=>{let r;let d=(null==l?void 0:l.includes("-"))?null==l?void 0:l.split("-")[0]:l;return e===t.Edition.VETERINARY?(r="https://".concat("en"===d?"www.":"".concat(d,"."),"msdvetmanualquiz.com/gcn/startquiz"),(null===t.MrkDefaultLanguages||void 0===t.MrkDefaultLanguages?void 0:t.MrkDefaultLanguages.includes(l))&&(r=null==r?void 0:r.replace(t.DomainNames.msd,t.DomainNames.mrk))):(r="https://".concat(d,".msdmanualquiz.com/gcn/startquiz"),(null===t.MrkDefaultLanguages||void 0===t.MrkDefaultLanguages?void 0:t.MrkDefaultLanguages.includes(l))&&(r=null==r?void 0:r.replace(t.DomainNames.msd,t.DomainNames.mrk))),"".concat(r,"?base_url=").concat(o(l),"&language=").concat(null==l?void 0:l.toLowerCase(),"&quiz_id=").concat(i,"&question_id=").concat(n,"&answer=").concat(a)}},77325:function(e){e.exports={carouselContainer:"accordionSection_carouselContainer__Y5UzM",carouselContainerTable:"accordionSection_carouselContainerTable__uc_mX",accordionSection:"accordionSection_accordionSection__l_8b2",sectionData:"accordionSection_sectionData__K4MF3",sectionImage:"accordionSection_sectionImage__Rn84v",imageContainer:"accordionSection_imageContainer___ZcTm",sectionList:"accordionSection_sectionList__1cAvc",sectionListItems:"accordionSection_sectionListItems__Nwvla",sectionListitem:"accordionSection_sectionListitem__AnJRn",caseStudy:"accordionSection_caseStudy__WvLqM",popupContainer:"accordionSection_popupContainer__2m2Xk",multimedia_title:"accordionSection_multimedia_title__CRaVC","font-size-1":"accordionSection_font-size-1__PBjHt","font-size-2":"accordionSection_font-size-2__pRO5q","font-size-3":"accordionSection_font-size-3__LWlS_",titleContainer:"accordionSection_titleContainer__3NkaO",print:"accordionSection_print__TTRBk",iframeToolBarMobile:"accordionSection_iframeToolBarMobile__nIJ1R",editionVet:"accordionSection_editionVet__AJD77",quizTitle:"accordionSection_quizTitle__VORFo",sliderDesktop:"accordionSection_sliderDesktop__qqakL",sliderMobile:"accordionSection_sliderMobile___z4TS",setWidth:"accordionSection_setWidth__rLbjy",tooltipImageContainer:"accordionSection_tooltipImageContainer__cZFKz",thumbnailPadding:"accordionSection_thumbnailPadding__UF0fP"}},34616:function(e){e.exports={filterHeader:"filter_filterHeader__GIubt",themeDark:"filter_themeDark__a9159",showByType:"filter_showByType__Rk1RK",goToSectionContainer:"filter_goToSectionContainer__ksv0t",refineByContainer:"filter_refineByContainer__XS2ul",sectionListItemLink:"filter_sectionListItemLink___VNZ8",rightOptionItem:"filter_rightOptionItem__YTCr5",arrowUp:"filter_arrowUp__K2h6C",arrowDown:"filter_arrowDown__6_bYr",showByTypeDropdown:"filter_showByTypeDropdown__gkc9_",showByTypeOptions:"filter_showByTypeOptions__vYdwZ",applyRefineByBtn:"filter_applyRefineByBtn__vJ6hF",goToLetterOpenItems:"filter_goToLetterOpenItems__7Vjbe",refineByOpenItem:"filter_refineByOpenItem__b9rVP",goToLetterContainer:"filter_goToLetterContainer__TAQ4n",goToSectionOpenItems:"filter_goToSectionOpenItems__dZeR0",refineByKeywordContainer:"filter_refineByKeywordContainer__OyfWK",refineByKeyword:"filter_refineByKeyword__hYz_x",viewBySection:"filter_viewBySection__Gn_1V",form:"filter_form__oNB7j",refineByLabel:"filter_refineByLabel__tauVc",clearFilter:"filter_clearFilter__gNR_0",thumbnailList:"filter_thumbnailList__mEFNa",thumbnailButton:"filter_thumbnailButton__C1LAj",listButton:"filter_listButton__k435O",thumbnail:"filter_thumbnail__DFx29",list:"filter_list__SmEu2",activeView:"filter_activeView__DEWdU",iconsImages:"filter_iconsImages__RUwUt",listIconGrey:"filter_listIconGrey__aKyVl",thumbnailIconGrey:"filter_thumbnailIconGrey__YGdL0",blueColor:"filter_blueColor__XYx_7",grayColor:"filter_grayColor__8LJJW",listTitle:"filter_listTitle__4wYlR",filterDiv:"filter_filterDiv__BeoNp",refineBySection:"filter_refineBySection__ORfrw",activeBtnColor:"filter_activeBtnColor__sUXLG",inactiveBtnColor:"filter_inactiveBtnColor__4NYGZ",scrollpos:"filter_scrollpos__wvlle",listIconRed:"filter_listIconRed__6W_uh",thumbnailIconRed:"filter_thumbnailIconRed__xYSx5",sectionItem:"filter_sectionItem__SjH0A",letterItem:"filter_letterItem__9WngA",customUl:"filter_customUl__xPm79",zhFilter:"filter_zhFilter__juA4o"}},2766:function(e){e.exports={modal:"modal_modal__vMCJw",focusTrapDiv:"modal_focusTrapDiv__nw2Bc",modalBody:"modal_modalBody___BnJ7",noHeaderBackgroun
1d:"modal_noHeaderBackground__GHZGy",hideModalHeader:"modal_hideModalHeader__cPEFT",header:"modal_header__sKiDY",title:"modal_title__ujPN2",drugTitle:"modal_drugTitle__pmhQu",headerElement:"modal_headerElement__9HT5x",btnClose:"modal_btnClose__eatUo",drugBtnClose:"modal_drugBtnClose__HBcpz",drugHeader:"modal_drugHeader__GT8_V",healthyLivingColor:"modal_healthyLivingColor__72SiX",healthyLivingColorBackground:"modal_healthyLivingColorBackground__R82V4",fontSize1:"modal_fontSize1__PQaJV",fontSize2:"modal_fontSize2__Z1XUu",fontSize3:"modal_fontSize3__FOP6B",professional:"modal_professional__9S_oL",consumer:"modal_consumer__Pfrhd",veterinary:"modal_veterinary__eYZdF",modalButton:"modal_modalButton__FpPur",closeIcon:"modal_closeIcon__kbcZr",copyRightFooter:"modal_copyRightFooter__b1AAi",copyRight:"modal_copyRight__2qshg",msdcopyRightImage:"modal_msdcopyRightImage__s4hmM",copyRightText:"modal_copyRightText__fQLM9",topicContainerRight:"modal_topicContainerRight__MEV2b"}},10468:function(e){e.exports={tooltip:"tooltipComponent_tooltip__juRSb",active:"tooltipComponent_active__IunLa",tooltipLight:"tooltipComponent_tooltipLight__h28Gl",tooltipDark:"tooltipComponent_tooltipDark__nV_nS",textTooltip:"tooltipComponent_textTooltip__1fZBz"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.