PageSourceSearch

https://www.merckvetmanual.com/_next/static/chunks/languageSwitcher-130f51d67558f89c.js

js merckvetmanual.com collected 2026-09-24 08:49:29 UTC 60,657 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3521],{3465:function(e,l,i){i.r(l),i.d(l,{Default:function(){return t}});var o=i(85893);i(67294);var n=i(23574);l.default={title:"Components/EditionSwitcher",component:n.EditionSwitcher};let a=e=>(0,o.jsx)(n.EditionSwitcher,{...e}),t=a.bind({});t.args={params:{name:"EditionSwitcher"},rendering:{uid:"{00000000-0000-0000-0000-000000000000}",componentName:"EditionSwitcher"},fields:{CssStyle:{value:"home"},OtherEditionText:{value:"VIEW CONSUMER VERSION"},DataId:{value:"HE"},SwitchToAnotherEditionUsersTextForTranslation:{value:"Manuals.TopicPage.EditionToggle.Consumers"},EditionToSwitchTo:{value:{href:"edition switcher link here"}},DisableLogoEditionSwitchToggle:{value:!1}}}},23574:function(e,l,i){i.r(l),i.d(l,{EditionSwitcher:function(){return w}});var o=i(85893),n=i(67294),a=i(86063),t=i.n(a),d=i(32862),u=i(62099),v=i(69998),r=i(28984),s=i(2086),c=i(74744),h=i(5817),m=i(22556),g=i(36562),p=i(65313),f=i(39332);let w=e=>{let{edition:l,setShowLoader:i}=(0,n.useContext)(h.ZP),{t:a}=(0,m.QT)(),{sitecoreContext:u}=(0,d.z)(),w=(null==u?void 0:u.language)?null==u?void 0:u.language:"",{otherEditionRedirectUrl:L,currentTopicContext:N,currentTopicId:x,firstTopicRelativeUrl:C,otherEditionDisplayName:S}=(0,n.useContext)(h.ZP),T=l===v.Edition.PROFESSIONAL?"1":"2",E=(0,f.usePathname)(),j=(0,f.useSearchParams)(),[k,I]=(0,n.useState)(""),{direction:b,setShowSpeechOverlay:A}=(0,n.useContext)(h.ZP),y=[{name:a(l===v.Edition.PROFESSIONAL?"MetaTagEditionName":"Professional Edition"),value:"1",key:v.Edition.PROFESSIONAL},{name:a(l===v.Edition.CONSUMER?"MetaTagEditionName":"Consumer Edition"),value:"2",key:v.Edition.CONSUMER}];(0,n.useEffect)(()=>{l===v.Edition.PROFESSIONAL?I("Professional edition active"):l===v.Edition.CONSUMER?I("Consumer edition active"):I("")},[l]);let M=e=>{I("".concat(e," edition is currently active"))},D=async()=>{var e,l,o,n,a;let t=setTimeout(()=>{i(!0)},1e3),d=(0,g.GetOtherDomain)(null==window?void 0:null===(e=window.location)||void 0===e?void 0:e.host,null==u?void 0:u.language),r=(null==u?void 0:null===(l=u.route)||void 0===l?void 0:l.templateName)?null==u?void 0:null===(o=u.route)||void 0===o?void 0:o.templateName:"",s=window.location.href,h=await (0,c.getEditionToggleUrl)(d,r,x,C,N,(null==u?void 0:u.language)?null==u?void 0:u.language:"en",S,s,L);clearTimeout(t),i(!1),console.log(null==u?void 0:null===(n=u.route)||void 0===n?void 0:n.templateName),(null==u?void 0:null===(a=u.route)||void 0===a?void 0:a.templateName)===v.Template.MMTopic&&(window.speechSynthesis.cancel(),A(!1)),window.location.href=(0,p.AppendQueryParameters)(null!=E?E:"/",j,h)},R=e=>{("Enter"===e.code||"Space"===e.code)&&D()};return(0,o.jsx)(o.Fragment,{children:l!==v.Edition.VETERINARY&&!v.editionSwitcherLanguages.includes(w.toLowerCase())&&(0,o.jsxs)("div",{dir:b,className:t().editionSwticher,"data-testid":"editionText",role:"link",children:[(0,o.jsx)(s.Z,{tabIndex:-1,children:y.map((i,n)=>{var a;return(0,o.jsx)(r.Z,{className:"".concat(t().toggleStyle," ").concat(i.key===v.Edition.PROFESSIONAL&&t().profButton," ").concat(i.key===v.Edition.CONSUMER&&t().homeButton," ").concat("1"===T&&T===i.value&&t().profButtonActive," ").concat("2"===T&&T===i.value&&t().homeButtonActive),id:"radio-".concat(n),type:"radio",variant:"light",name:"radio",value:i.value,checked:T===i.value,onChange:()=>{D()},"data-id":null==e?void 0:null===(a=e.fields)||void 0===a?void 0:a.DataId,onKeyDown:e=>{i.value!==T&&R(e)},onFocus:()=>M(l),onBlur:()=>I(""),"data-testid":i.key===v.Edition.PROFESSIONAL?"prof":"home",children:i.name},n)})}),(0,o.jsx)("span",{className:t().visuallyHidden,"aria-live":"polite",children:k})]})})};l.default=(0,u.C)()(w)},74744:function(e,l,i){i.r(l),i.d(l,{editionSwitch:function(){return a},getEditionToggleUrl:function(){return u},getOtherEditionTopicUrl:function(){return v},getQueryParamsFromUrl:function(){return t}});var o=i(69998),n=i(35187);let a=async(e,l,i,o)=>{var n,a,t,d,u,v,r,s,c,h;let m=null==e?void 0:null===(n=e.route)||void 0===n?void 0:n.fields,g="";if((null==e?void 0:null===(a=e.route)||void 0===a?void 0:a.templateName)=="SearchResults"){let e=null==l?void 0:l.replace(null==i?void 0:i.toLocaleLowerCase(),null==o?void 0:o.toLocaleLowerCase());g=e||"/"+o}else g=(null==m?void 0:null===(t=m.SwitchItem)||void 0===t?void 0:null===(d=t.value)||void 0===d?void 0:d.href)!=""&&(null==m?void 0:m.SwitchItem)!=null&&(null==m?void 0:null===(r=m.SwitchItem)||void 0===r?void 0:null===(s=r.value)||void 0===s?void 0:s.href)?null==m?void 0:null===(c=m.SwitchItem)||void 0===c?void 0:null===(h=c.value)||void 0===h?void 0:h.href:"/"+o;let p="/".concat(null==e?void 0:null===(u=e.route)||void 0===u?void 0:null===(v=u.itemLanguage)||void 0===v?void 0:v.toLowerCase());g=g.toLowerCase();let f=(null==g?void 0:g.includes(p))?null==g?void 0:g.replace(p,""):g;return f},t=e=>{let l=e.split("?"),i=l[1].split("&media=");return"?"+i[0]},d=async(e,l,i)=>{var a,t,d,u,v,r,s,c,h,m,g,p,f;let w="";if(null!==e.ICD9&&(null===(a=e.ICD9)||void 0===a?void 0:a.value)!==""){let a=null===(t=e.ICD9)||void 0===t?void 0:null===(d=t.value)||void 0===d?void 0:d.replaceAll(";"," "),p=(0,n.SearchstaxParams)(a||"",o.DefaultSearchStaxParam.DOUBLEROW,o.DefaultSearchStaxParam.START,o.SearchStaxMo
1delName.ICD9_SEARCH,l,"","relativeurlcomputed_s",void 0,[]),f=await (0,n.GetOtherEditionSelectData)(p).then(e=>e).catch(e=>(console.log(e),null));w=(null==f?void 0:null===(u=f.data)||void 0===u?void 0:null===(v=u.response)||void 0===v?void 0:v.numFound)===1?null===(r=null==f?void 0:null===(s=f.data)||void 0===s?void 0:null===(c=s.response)||void 0===c?void 0:c.docs[0])||void 0===r?void 0:r.relativeurlcomputed_s:"/"+i+"/SearchResults?query="+(null==e?void 0:null===(h=e.Title)||void 0===h?void 0:null===(m=h.jsonValue)||void 0===m?void 0:m.value)+"&icd9="+(null===(g=e.ICD9)||void 0===g?void 0:g.value)}else w="/"+i+"/SearchResults?query="+(null==e?void 0:null===(p=e.Title)||void 0===p?void 0:null===(f=p.jsonValue)||void 0===f?void 0:f.value);let L="/".concat(null==l?void 0:l.toLowerCase());w=w.toLowerCase();let N=(null==w?void 0:w.includes(L))?null==w?void 0:w.replace(L,""):w;return N},u=async(e,l,i,o,n,a,d,u,r)=>{var s,c;let h;if("MMTopic"==l)h=await v(e,i,o,n,a,d);else if("SearchResults"==l){let l=t(u);h=(null===(s=e+r)||void 0===s?void 0:s.toLocaleLowerCase())+l}else h=null===(c=e+r)||void 0===c?void 0:c.toLocaleLowerCase();return h},v=async(e,l,i,o,n,a)=>{var t,u,v;let r;if(l===(null==i?void 0:null===(t=i.itemId)||void 0===t?void 0:t.replaceAll("-","").toUpperCase())){let l=null==i?void 0:null===(u=i.relatedLink)||void 0===u?void 0:u.toLocaleLowerCase();(null==l?void 0:l.startsWith("/"+n.toLowerCase()))&&(l=l.replace("/"+n.toLowerCase(),"")),r=""!==l?(e+l).toLocaleLowerCase():(e+"/"+a).toLocaleLowerCase()}else{let l=await d(o,n,a).then(e=>e);r=null===(v=e+l)||void 0===v?void 0:v.toLocaleLowerCase()}return r}},44518:function(e,l,i){i.r(l),i.d(l,{Default:function(){return t}});var o=i(85893);i(67294);var n=i(76121);l.default={title:"Components/LanguageSwitcher",component:n.default};let a=e=>(0,o.jsx)(n.default,{...e}),t=a.bind({});t.args={params:{name:"LanguageSwitcher"},rendering:{uid:"{00000000-0000-0000-0000-000000000000}",componentName:"LanguageSwitcher"},langswitcher:{fields:{data:{item:{DisableLanguageDropDown:{value:!0},LanguagesForDropdown:{targetItems:[{displayName:"de",id:"846874db-99d9-4f3b-8197-1ecab0a67790",name:"de",url:"",domain:""}]},ShowOtherLanguagesInDropdown:{value:!1},Logo:{src:"",alt:"",height:"",width:""}},datasource:{children:{results:[{displayName:"",CurrentLanguageName:{value:""},name:"",nativeName:{value:""},currentLanguage:""}]}}}}}}},76121:function(e,l,i){i.r(l),i.d(l,{getStaticProps:function(){return t}});var o=i(85893);i(67294);var n=i(85253);let a=e=>(0,o.jsx)(n.default,{languageSwitcherData:e.langswitcher}),t=async e=>({langswitcher:e});l.default=a},22686:function(e,l,i){i.r(l),l.default="\nquery languageswitchermsdpagesquery($language:String!,$routePath:String!,$site:String!){\n    layout(language:$language,routePath:$routePath,site:$site){\n      item{\n        url{path}\n      }\n    }\n  }\n  "},76747:function(e,l,i){i.r(l),i.d(l,{languageSwitcherQuery:function(){return o},sectionContextItem:function(){return n}});let o='\n  # Editing here does not save the query on the item; copy it back when done!\n  query LanguageSwitcher($path: String!, $template: String!, $language: String!) {\n    search(\n      where: {\n        AND: [\n          { name: "_templates", value: $template, operator: CONTAINS }\n          { name: "_path", value: $path, operator: CONTAINS }\n          { name: "_language", value: $language, operator: EQ }\n        ]\n      }\n      first: 50\n    ) {\n      results {\n        displayName\n        url {\n          path\n        }\n      }\n    }\n  }\n',n="/sitecore/content/professional/home/News/External/2023/01/02/02/38/2659013711"},85253:function(e,l,i){i.r(l),i.d(l,{LanguageSwitcherUI:function(){return N}});var o=i(85893),n=i(67294),a=i(32862),t=i(22556),d=i(89755),u=i.n(d),v=i(70440),r=i.n(v),s=i(65313),c=i(5817),h=i(39332),m=i(15369),g=i(24707),p=i.n(g),f=i(69998),w=i(52498),L=i(22686);let N=e=>{var l,i,d,v,g,N,x,C,S,T;let{currentEditionDisplayName:E}=(0,n.useContext)(c.ZP),j=(0,h.usePathname)(),k=(0,h.useSearchParams)(),{t:I}=(0,t.QT)(),{sitecoreContext:b}
1=(0,a.z)(),A=null==b?void 0:b.itemPath,[y,M]=(0,n.useState)([]),[D,R]=(0,n.useState)(""),[P,H]=(0,n.useState)(!1),O=(0,n.useRef)(null),_=null==e?void 0:null===(l=e.languageSwitcherData)||void 0===l?void 0:null===(i=l.fields)||void 0===i?void 0:null===(d=i.data)||void 0===d?void 0:d.item,[U,B]=(0,n.useState)(-1),{direction:Z,edition:F,setShowLoader:V,setShowSpeechOverlay:z}=(0,n.useContext)(c.ZP),W=Boolean(null==e?void 0:e.isStickyRightToolbar),Q=async()=>{var l,i;let o=[];null==_||null===(l=_.LanguagesForDropdown)||void 0===l||null===(i=l.targetItems)||void 0===i||i.map(l=>{var i,n,a,t,d,u,v;let r=null===(i=null==l?void 0:null===(n=l.name)||void 0===n?void 0:n.split("-"))||void 0===i?void 0:i.shift(),s=null==e?void 0:null===(a=e.languageSwitcherData)||void 0===a?void 0:null===(t=a.fields)||void 0===t?void 0:null===(d=t.data)||void 0===d?void 0:d.datasource;null==s||null===(u=s.children)||void 0===u||null===(v=u.results)||void 0===v||v.filter(e=>{(null==e?void 0:e.name)===r&&(e.currentLanguage=null==l?void 0:l.name,o.push(e))})}),M(o)};(0,n.useEffect)(()=>{Q();let e=(null==b?void 0:b.language)?null==b?void 0:b.language:"";R(e)},[null==_?void 0:null===(v=_.LanguagesForDropdown)||void 0===v?void 0:v.targetItems,null==b?void 0:b.language,D]),(0,n.useEffect)(()=>{if(!P||U<0)return;let e=document.getElementById("language".concat(U));e.scrollIntoView({block:"nearest",behavior:"auto"})},[U,P,y]);let q=async(e,l)=>{var i,o,n,a,t,d,u,v,r,c,h,g,N,x,C,S,T,I,y,M;window.sessionStorage.removeItem("quizInfo"),R(e);let D=window.location.href;if((null==D?void 0:D.includes("media"))&&(D=D.replace(/[?&]media=[^&]+/,"")),(null==D?void 0:D.includes(f.mrk.join("")))&&(D=D.replaceAll(f.mrk.join(""),"msd")),"1"===e){if((null===(o=null==l?void 0:l.split("-"))||void 0===o?void 0:o.shift())!=="en"){if((null===p()||void 0===p()?void 0:null===(a=p().jssAppName)||void 0===a?void 0:a.toLocaleLowerCase())==(null===f.Site||void 0===f.Site?void 0:null===(t=f.Site.MManual)||void 0===t?void 0:t.toLocaleLowerCase()))D=null===(d=null==D?void 0:D.toLocaleLowerCase())||void 0===d?void 0:d.replace("/".concat(l),"/".concat(null===(u=null==l?void 0:l.split("-"))||void 0===u?void 0:u.shift()));else{let e=null===(v=null==l?void 0:l.split("-"))||void 0===v?void 0:v.shift();D=null===(r=null==D?void 0:D.toLocaleLowerCase())||void 0===r?void 0:r.replace(RegExp("/".concat(l,"(?=/|$)")),"/".concat(e))}}else D=(null===p()||void 0===p()?void 0:null===(c=p().jssAppName)||void 0===c?void 0:c.toLocaleLowerCase())==(null===f.Site||void 0===f.Site?void 0:null===(h=f.Site.MManual)||void 0===h?void 0:h.toLocaleLowerCase())?null===(g=null==D?void 0:D.toLocaleLowerCase())||void 0===g?void 0:g.replace("/".concat(l),""):null===(N=null==D?void 0:D.toLocaleLowerCase())||void 0===N?void 0:N.replace(RegExp("/".concat(l,"(?=/|$)")),"");if((null==b?void 0:null===(n=b.route)||void 0===n?void 0:n.displayName)!=="*"){let e=(x=window.location.protocol+"//"+window.location.host).replace(f.mrk.join(""),"msd"),i=null==A?void 0:A.replaceAll(f.mrk.join(""),"msd"),o=null===(C=null==l?void 0:l.split("-"))||void 0===C?void 0:C.shift(),n={language:o,routePath:i,site:null===p()||void 0===p()?void 0:p().jssAppName},a=await (0,w.d)(L.default,n),t=(null===p()||void 0===p()?void 0:null===(S=p().jssAppName)||void 0===S?void 0:S.toLocaleLowerCase())===(null===f.Site||void 0===f.Site?void 0:null===(T=f.Site.VETERINARY)||void 0===T?void 0:T.toLocaleLowerCase());(null==a?void 0:null===(I=a.layout)||void 0===I?void 0:null===(y=I.item)||void 0===y?void 0:null===(M=y.url)||void 0===M?void 0:M.path)||(D=t?"en"!==o?e+"/"+o:e:"en"!==o?e+"/"+o+"/"+E:e+"/"+E)}D+="".concat(D.indexOf("?")>-1?"&":"?","langselector=1"),D=(0,s.AppendQueryParameters)(null!=j?j:"/",k,D),window.open(D,"_blank")}else{let l=setTimeout(()=>{V(!0)},1e3),i=await (0,m.getSelectedLanguage)(e,b,k,!0);clearTimeout(l),V(!1),i&&(e.includes("zh")?window.open(i,"_blank"):window.location.href=(0,s.AppendQueryParameters)(null!=j?j:"/",k,i))}(null==b?void 0:null===(i=b.route)||void 0===i?void 0:i.templateName)===f.Template.MMTopic&&(window.speechSynthesis.cancel(),z(!1)),G()},G=()=>{H(!P)},$=e=>{"Tab"!=e.key&&e.preventDefault();let l=O.current;if(!l||!P)return;let i=l.querySelectorAll("li"),o=i.length,n=U;switch(e.key){case"ArrowUp":e.preventDefault(),n=(U-1+o)%o;break;case"ArrowDown":e.preventDefault(),n=(U+1)%o;break;case"Enter":e.preventDefault();let a=i[U];a&&a.click();break;default:return}B(n)},K=e=>{var l,i,o;let n=null===(l=null==e?void 0:e.split("-"))||void 0===l?void 0:l.shift(),a=y.find(e=>e.name===n);return(null==y?void 0:y.length)>0?(null==a?void 0:null===(i=a.nativeName)||void 0===i?void 0:i.value)?null==a?void 0:null===(o=a.nativeName)||void 0===o?void 0:o.value:I("LangSwitch_OtherLanguages"):""};return(0,n.useEffect)(()=>{let e=e=>{O.current&&!O.current.contains(e.target)&&H(!1)};return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}},[]),(0,n.useEffect)(()=>{let e=e=>{let l=O.current;l&&!l.contains(e.target)&&H(!1)};return window.addEventListener("focusin",e),()=>{window.removeEventListener("focusin",e)}},[]),(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:r().langswitcher,"data-testid":"LanguageSwitcher",id:"langswitcher",children:(0,o.jsxs)("div",{className:r().langswitcherDropdown,ref:O,i
1d:"langswitcherDropdown",onClick:G,onKeyDown:$,onKeyUp:e=>{13===e.keyCode&&G()},tabIndex:0,role:"combobox","aria-controls":P?"stickydropdown":void 0,"aria-expanded":P?"true":"false","aria-owns":P?"stickydropdown":void 0,"aria-activedescendant":U>=0?"language".concat(U):void 0,"aria-label":"".concat(K(D)," ").concat(I("SelectLanguageText")),children:[(0,o.jsxs)("div",{className:"".concat(r().dropdownHeader," ").concat(W?r().dropdownHeaderNoBorder:""," outerCurvedBorder"),id:"stickylanguage",children:[(null==_?void 0:null===(g=_.Logo)||void 0===g?void 0:g.src)&&(0,o.jsx)(u(),{src:(0,s.CreateImageUrlPrefix)((null==_?void 0:_.Logo.src)||""),alt:null==_?void 0:null===(N=_.Logo)||void 0===N?void 0:N.alt,height:(null==_?void 0:null===(x=_.Logo)||void 0===x?void 0:x.height)?parseInt(null==_?void 0:null===(C=_.Logo)||void 0===C?void 0:C.height):0,width:(null==_?void 0:null===(S=_.Logo)||void 0===S?void 0:S.width)?parseInt(null==_?void 0:null===(T=_.Logo)||void 0===T?void 0:T.width):0,id:"langswitcher-image","aria-hidden":"true"}),(0,o.jsx)("div",{"aria-hidden":"true",className:r().selectedLanguage,children:K(D)}),(0,o.jsx)("div",{dir:Z,className:P?r().arrowUp:r().arrowDown,id:"stickyarrow"})]}),P&&(()=>{var e;let l=(null==window?void 0:window.innerWidth)<=768,i=W?"".concat(r().dropdownOptionsWrapper," \n      ").concat(!F&&r().landingDropdownOptionsWrapper,"  innerCurvedBorder"):"",n=W?"".concat(r().dropdownOptions," ").concat(!F&&r().landingdropdownOptions):"".concat(r().dropdownOptionsBase," innerCurvedBorder ").concat(!F&&r().landingdropdownOptions);return(0,o.jsx)("div",{className:"".concat(i),children:(0,o.jsxs)("ul",{className:"".concat(n),id:"stickydropdown",children:[null==y?void 0:y.map((e,i)=>{var n,a,t,d,u,v,s,c,h,m,g;return(0,o.jsx)("li",{className:"".concat(r().languageOption," ").concat(U===i?r().focused:""," ").concat(e.name===(null===(n=null==D?void 0:D.split("-"))||void 0===n?void 0:n.shift())?F?r().active:r().landingActive:""),id:l?e.name===(null===(a=null==D?void 0:D.split("-"))||void 0===a?void 0:a.shift())?"active-language":"":"language".concat(i),onClick:()=>q(e.currentLanguage),role:"link","aria-label":e.name===D?(null==e?void 0:null===(t=e.nativeName)||void 0===t?void 0:t.value)+"current language":"",children:(null==e?void 0:e.name)==(null===(d=null==b?void 0:null===(u=b.language)||void 0===u?void 0:u.split("-"))||void 0===d?void 0:d.shift())?null==e?void 0:null===(v=e.nativeName)||void 0===v?void 0:null===(s=v.value)||void 0===s?void 0:s.toUpperCase():"".concat(null==e?void 0:null===(c=e.nativeName)||void 0===c?void 0:null===(h=c.value)||void 0===h?void 0:h.toUpperCase()," (").concat(null==e?void 0:null===(m=e.CurrentLanguageName)||void 0===m?void 0:null===(g=m.value)||void 0===g?void 0:g.toUpperCase(),")")},"language"+i)}),(null==_?void 0:null===(e=_.ShowOtherLanguagesInDropdown)||void 0===e?void 0:e.value)&&(0,o.jsx)("li",{className:"".concat(r().languageOption," ").concat(2===U?r().focused:""),onClick:()=>{var e;return q("1",null==b?void 0:null===(e=b.language)||void 0===e?void 0:e.toLocaleLowerCase())},role:"link",id:"language2",children:I("LangSwitch_OtherLanguages")})]})})})()]})})})};l.default=N},15369:function(e,l,i){i.r(l),i.d(l,{getSelectedLanguage:function(){return c}});var o=i(69998),n=i(63358),a=i(33058),t=i(24707),d=i.n(t),u=i(76747),v=i(87086),r=i(36562),s=i(52498);let c=async(e,l,t,c)=>{var h,m,g,p,f,w,L,N,x,C,S,T,E,j,k,I,b,A,y,M,D,R,P,H,O,_,U,B,Z,F,V,z,W,Q,q,G,$,K,Y,J,X,ee,el,ei,eo,en;let ea,et;let ed=d().jssAppName.toLowerCase()==o.Edition.HOME_CONSUMER.toLowerCase()?n.fy:d().jssAppName.toLowerCase()===o.Edition.PROFESSIONAL.toLowerCase()?n.vZ:n.Yz,eu=(null==e?void 0:e.includes("zh"))?(0,r.chinaDomainUrl)(window.location.host,d().jssAppName.toLowerCase()):window.location.protocol+"//"+window.location.host,ev=await (0,a.nD)(ed,e);if((null==l?void 0:null===(h=l.route)||void 0===h?void 0:h.templateName)=="MMTopic"){let i=null==l?void 0:null===(w=l.route)||void 0===w?void 0:w.name,o=(null===(L=null==e?void 0:e.split("-"))||void 0===L?void 0:L.shift())=="en"?null==i?void 0:i.split("_").shift():"".concat(null===(N=null==i?void 0:i.split("_"))||void 0===N?void 0:N.shift(),"_").concat(null===(x=null==e?void 0:e.split("-"))||void 0===x?void 0:x.shift()),n={name:o,language:e,template:null==l?void 0:null===(C=l.route)||void 0===C?void 0:C.templateId},a=await (0,s.d)(v.topiclangSwitchQuery,n);ea=(null==a?void 0:null===(S=a.search)||void 0===S?void 0:null===(T=S.results)||void 0===T?void 0:T.length)>0?null===(E=null==a?void 0:null===(j=a.search)||void 0===j?void 0:j.results[0].url)||void 0===E?void 0:E.path:null==ev?void 0:null===(k=ev.url)||void 0===k?void 0:k.path}else if((null==l?void 0:null===(m=l.route)||void 0===m?void 0:m.templateName)=="AuthorBio"){let l=window.location.href,n=null===(I=null===(b=null==l?void 0:l.replace("?langselector=1",""))||void 0===b?void 0:b.split("/"))||void 0===I?void 0:I.pop(),a=o.AuthorType.MEDICALAUTHOR;
1d().jssAppName.toLowerCase()===o.Edition.VETERINARY.toLowerCase()&&(a=o.AuthorType.VETERINARYAUTHOR);let t={datasource:"".concat("/sitecore/content/Resources/Authors","/").concat(a,"/").concat(null==n?void 0:n.replace(/-/g," ").toUpperCase()),language:e},{authorDetailsQuery:u}=await i.e(3251).then(i.bind(i,3251)),v=await (0,s.d)(u,t),r=null!==(H=null==v?void 0:v.datasource)&&void 0!==H?H:{},c=(null!==(O=null==r?void 0:null===(A=r.chapters)||void 0===A?void 0:null===(y=A.targetItems)||void 0===y?void 0:y.length)&&void 0!==O?O:0)>0,h=(null!==(_=null==r?void 0:null===(M=r.topics)||void 0===M?void 0:null===(D=M.targetItems)||void 0===D?void 0:D.length)&&void 0!==_?_:0)>0,m=(null!==(U=null==r?void 0:null===(R=r.commentary)||void 0===R?void 0:null===(P=R.targetItems)||void 0===P?void 0:P.length)&&void 0!==U?U:0)>0;ea=c||h||m?(null==ev?void 0:null===(B=ev.url)||void 0===B?void 0:B.path)+"/authors/"+n:null==ev?void 0:null===(Z=ev.url)||void 0===Z?void 0:Z.path}else if("{".concat(null==l?void 0:null===(g=l.route)||void 0===g?void 0:g.itemId,"}")==n.fy.toLowerCase()||"{".concat(null==l?void 0:null===(p=l.route)||void 0===p?void 0:p.itemId,"}")==n.vZ.toLowerCase()||"{".concat(null==l?void 0:null===(f=l.route)||void 0===f?void 0:f.itemId,"}")==n.Yz.toLowerCase())ea=null==ev?void 0:null===(F=ev.url)||void 0===F?void 0:F.path;else if(d().jssAppName.toLowerCase()==o.Site.MManual.toLowerCase())ea="";else{let i={path:null==l?void 0:l.itemId,template:null==l?void 0:null===(V=l.route)||void 0===V?void 0:V.templateId,language:e},t=await (0,s.d)(u.languageSwitcherQuery,i);if((null==l?void 0:null===(z=l.route)||void 0===z?void 0:z.templateName)=="MMNews"&&(null==t?void 0:null===(W=t.search)||void 0===W?void 0:null===(Q=W.results)||void 0===Q?void 0:Q.length)<=0){let l=d().jssAppName.toLowerCase()==o.Edition.HOME_CONSUMER.toLowerCase()?n.Fn:n.Bs,i=await (0,a.nD)(l,e);ea=(null==i?void 0:null===($=i.url)||void 0===$?void 0:$.path)?null==i?void 0:null===(K=i.url)||void 0===K?void 0:K.path:null==ev?void 0:null===(Y=ev.url)||void 0===Y?void 0:Y.path}else ea=(null==l?void 0:null===(q=l.route)||void 0===q?void 0:q.displayName)=="*"&&(null==l?void 0:null===(G=l.route)||void 0===G?void 0:G.templateName)==="App Route"?null==ev?void 0:null===(J=ev.url)||void 0===J?void 0:J.path:(null==t?void 0:null===(X=t.search)||void 0===X?void 0:null===(ee=X.results)||void 0===ee?void 0:ee.length)>0?null===(el=null==t?void 0:null===(ei=t.search)||void 0===ei?void 0:ei.results[0])||void 0===el?void 0:null===(eo=el.url)||void 0===eo?void 0:eo.path:null==ev?void 0:null===(en=ev.url)||void 0===en?void 0:en.path}et="ja"==e?"/ja-jp":o.defaultLanguages.includes(e.toLowerCase())?"":"/".concat(e);let er=new URLSearchParams(t),es=er.get("query"),ec=er.get("type"),eh=er.get("page"),em=er.get("icd9"),eg=er.get("icd10"),ep=eu+et+ea,ef="";(es=es?es.replace("?langselector=1",""):"")&&(ef+="?query=".concat(es)),em&&(ef+="".concat(ef?"&":"?","icd9=").concat(em)),eg&&(ef+="".concat(ef?"&":"?","icd10=").concat(eg)),eh&&(ef+="".concat(ef?"&":"?","page=").concat(eh)),ec&&(ef+="".concat(ef?"&":"?","type=").concat(ec));let ew=ef?ep+ef:ep;if(c)return null==ew?void 0:ew.toLowerCase();window.location.href=null==ew?void 0:ew.toLowerCase()}},20462:function(e,l,i){i.r(l),i.d(l,{Default:function(){return t}});var o=i(85893);i(67294);var n=i(1551);l.default={title:"Components/Logo",component:n.default};let a=e=>(0,o.jsx)(n.default,{...e}),t=a.bind({});t.args={BrandLogo:{value:{src:"brand logo image source",alt:"brand logo",width:"52",height:"52"}},BrandName:{value:"MSD MANUAL"},EditionText:{value:"Professional Version"},Link:{value:{href:"/en"}},ShowEdition:{value:!1}}},1551:function(e,l,i){i.r(l);var o=i(85893),n=i(32862),a=i(67294),t=i(5817),d=i(24707),u=i.n(d),v=i(69998),r=i(21982),s=i.n(r),c=i(65313),h=i(18058),m=i(39332),g=i(89755),p=i.n(g),f=i(22556);let w=e=>{var l,i,d,r,g,w,L,N,x,C,S,T,E,j,k,I,b,A,y,M,D,R,P,H,O,_,U,B,Z,F,V;let{media:z,mediaObj:W,theme:Q}=(0,a.useContext)(t.ZP),{sitecoreContext:q}=(0,n.z)(),G=(0,m.usePathname)(),{t:$}=(0,f.QT)(),K=(0,m.useSearchParams)(),Y={...null==e?void 0:e.Link};Y&&Y.value&&Y.value.href&&!Y.value.href.includes("media")&&(Y.value.href=(0,h.Z)((null===u()||void 0===u()?void 0:u().jssAppName)==(null===v.Site||void 0===v.Site?void 0:v.Site.MManual)?Y.value.href?Y.value.href:"":(0,c.AppendQueryParameters)(null!=G?G:"/",K,Y.value.href)));let J=(null==q?void 0:null===(l=q.language)||void 0===l?void 0:l.toLowerCase())===v.Languages.AR?null===v.Direction||void 0===v.Direction?void 0:v.Direction.RTL:null===v.Direction||void 0===v.Direction?void 0:v.Direction.LTR,X="";X=u().jssAppName.toLowerCase()==v.Edition.HOME_CONSUMER.toLowerCase()?null!==(U=null==W?void 0:W.ConsumerLogoUrl)&&void 0!==U?U:"":u().jssAppName.toLowerCase()==v.Edition.PROFESSIONAL.toLowerCase()?null!==(B=null==W?void 0:W.ProfessionalLogoUrl)&&void 0!==B?B:"":null!==(Z=null==W?void 0:W.Veter
1inaryLogoUrl)&&void 0!==Z?Z:"";let ee=(null==W?void 0:W.isMedia)&&(null==W?void 0:null===(i=W.components)||void 0===i?void 0:i.isLogo),el=(null==e?void 0:null===(d=e.BrandName)||void 0===d?void 0:d.value)+" "+(null==e?void 0:null===(r=e.EditionText)||void 0===r?void 0:r.value)+" "+$("Logo");return(0,o.jsx)("div",{dir:J,className:" ".concat(s().headerLogo," ").concat(Q===v.Theme.LIGHT&&s().genericLayoutColor," ").concat(ee&&s().headerLogoWithBackground),children:null!==e&&(0,o.jsxs)("a",{href:X||(null!==(F=null==Y?void 0:null===(g=Y.value)||void 0===g?void 0:g.href)&&void 0!==F?F:""),"aria-label":el,children:[(0,o.jsx)("span",{className:s().headerLogo__descriptionLogoWrapper,children:(null==e?void 0:null===(w=e.BrandLogo)||void 0===w?void 0:null===(L=w.value)||void 0===L?void 0:L.height)&&(null==e?void 0:null===(N=e.BrandLogo)||void 0===N?void 0:null===(x=N.value)||void 0===x?void 0:x.width)&&(0,o.jsx)(p(),{src:(0,c.CreateImageUrlPrefix)(null!==(V=e.BrandLogo.value.src)&&void 0!==V?V:""),height:(null==e?void 0:null===(C=e.BrandLogo)||void 0===C?void 0:null===(S=C.value)||void 0===S?void 0:S.height)?parseInt(String(null==e?void 0:null===(T=e.BrandLogo)||void 0===T?void 0:null===(E=T.value)||void 0===E?void 0:E.height)):0,width:(null==e?void 0:null===(j=e.BrandLogo)||void 0===j?void 0:null===(k=j.value)||void 0===k?void 0:k.width)?parseInt(String(null==e?void 0:null===(I=e.BrandLogo)||void 0===I?void 0:null===(b=I.value)||void 0===b?void 0:b.width)):0,alt:"string"==typeof(null==e?void 0:null===(A=e.BrandLogo)||void 0===A?void 0:null===(y=A.value)||void 0===y?void 0:y.alt)?e.BrandLogo.value.alt:""})}),(null==q?void 0:null===(M=q.route)||void 0===M?void 0:M.name)===v.Template.HomePage?(0,o.jsxs)("h1",{className:"".concat(s().headerLogo__descriptionText," ").concat(s().headerLogo__descriptionTextResetH1),children:[(null==e?void 0:null===(D=e.BrandName)||void 0===D?void 0:D.value)&&(0,o.jsx)("span",{className:s().headerLogo__descriptionCompany,children:null==e?void 0:null===(R=e.BrandName)||void 0===R?void 0:R.value}),(null==e?void 0:e.ShowEdition)&&(0,o.jsx)("span",{className:"".concat(s().headerLogo__descriptionVersion," ").concat((null===u()||void 0===u()?void 0:u().jssAppName)==="mmanuals"&&(null==z?void 0:z.includes(v.Media.MEDIA_QR))&&s().qrdescriptionVersion),children:null==e?void 0:null===(P=e.EditionText)||void 0===P?void 0:P.value})]}):(0,o.jsxs)("span",{className:s().headerLogo__descriptionText,children:[(null==e?void 0:null===(H=e.BrandName)||void 0===H?void 0:H.value)&&(0,o.jsx)("span",{className:s().headerLogo__descriptionCompany,children:null==e?void 0:null===(O=e.BrandName)||void 0===O?void 0:O.value}),(null==e?void 0:e.ShowEdition)&&(0,o.jsx)("span",{className:"".concat(s().headerLogo__descriptionVersion," ").concat((null===u()||void 0===u()?void 0:u().jssAppName)==="mmanuals"&&(null==z?void 0:z.includes(v.Media.MEDIA_QR))&&s().qrdescriptionVersion),children:null==e?void 0:null===(_=e.EditionText)||void 0===_?void 0:_.value})]})]})})};l.default=w},71746:function(e,l,i){i.r(l),i.d(l,{Default:function(){return t}});var o=i(85893);i(67294);var n=i(83524);l.default={title:"Components/TopicLeftNavigation",component:n.TopicLeftNavigation};let a=e=>(0,o.jsx)(n.TopicLeftNavigation,{...e}),t=a.bind({});t.args={data:"abc"}},83524:function(e,l,i){i.r(l),i.d(l,{TopicLeftNavigation:function(){return f}});var o=i(85893),n=i(32862),a=i(72433),t=i(67294),d=i(5817),u=i(69998),v=i(47596),r=i.n(v),s=i(22556),c=i(5152),h=i.n(c),m=i(41664),g=i.n(m);let p=h()(()=>i.e(5801).then(i.bind(i,75801)).then(e=>e.default),{loadableGenerated:{webpack:()=>[75801]},ssr:!1}),f=e=>{var l;let{t:i}=(0,s.QT)(),{theme:v,mediaObj:c}=(0,t.useContext)(d.ZP),h=null==e?void 0:e.data,[m,f]=(0,t.useState)(!1),w={value:i("TopicNavigationTitle")},{sitecoreContext:L}=(0,n.z)(),N=(null==L?void 0:null===(l=L.language)||void 0===l?void 0:l.toLowerCase())===u.Languages.AR?u.Direction.RTL:u.Direction.LTR,x=()=>{f(!m)},C=e=>{if(null==e||!e.UniqueID||null==e||!e.Title)return"";{var l;let i=null==e?void 0:null===(l=e.htmltotextTitle)||void 0===l?void 0:l.replace(/\s+/g,"-");return"#"+i+"_"+(null==e?void 0:e.UniqueID)}};return(0,o.jsx)("div",{className:"".concat(r().topicLeftNavigation," ").concat(v===u.Theme.DARK&&r().themeDark,"\n    ").concat(N===u.Direction.RTL&&r().directionRTL,"\n    ").concat(!0!==m&&r().topicNavLinkCollapsed,"\n    ").concat((null==h?void 0:h.length)===0&&r().hideBorderMargin),"data-testid":"Topic-leftnavigation",children:Array.isArray(h)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:r().topicLeftNavHeader,children:[(0,o.jsx)(a.x,{field:w}),(0,o.jsx)("span",{onClick:x,className:"".concat(r().accordionIcon," ").concat(m?r().listCollapsed:r().listExpanded),tabIndex:0,role:"button","aria-expanded":m?"true":"false",onKeyUp:e=>"Enter"===e.key?x():"","aria-label":null==w?void 0:w.value})]}),(0,o.jsxs)("ul",{className:"".concat(r().topicLeftNavList," left-top-list"),children:[null==h?void 0:h.map(l=>(0,o.jsx)("li",{className:r().topicLeftNavListItems,children:(0,o.jsxs)(g(),{href:C(l),className:r().topicLeftNavLink,onClick:()=>{var l;return null==e?void 0:null===(l=e.show)||void 0===l?void 0:l.call(e,!1)},children:[(0,o.jsx)("div",{className:r().topicLeftNavImage}),(null==l?void 0:l.Title)&&(null==l?void 0:l.Title.trim())!==""&&(0,o.jsx)("div",{className:r().topicLeftNavTitle,dangerouslySetInnerHTML:{__html:l.Title}})]})},null==l?void 0:l.UniqueID)),(null==e?void 0:e.drugDataExist)&&(0,o.jsx)("li",{className:r().topicLeftNavListItems,children:(0,o.jsxs)("button",{onClick:()=>{var l,i;null===(l=e.handleScroll)||void 0===l||l.call(e),null==e||null===(i=e.show)||void 0===i||i.call(e,!1)},className:"".concat(r().topicLeftNavLink," ").concat(r().topicLeftNavDrugLink),role:"link",children:[(0,o.jsx)("div",{className:r().topicLeftNavImage}),(0,o.jsx)("div",{className:r().topicLeftNavTitle,children:i("DrugNav")})]})}),(null==e?void 0:e.totalResourcesCount)!==0&&(0,o.jsx)("li",{className:r().topicLeftNavListItems,children:(0,o.jsxs)("button",{className:"".concat(r().topicLeftNavLink," ").concat(r().topicLeftNavMultimediaLink),onClick:()=>{var l;e.onMultimediaClick&&e.onMultimediaClick(),null==e||null===(l=e.show)||void 0===l||l.call(e,!1)},tabIndex:0,"aria-label":i("Multimedia"),onKeyDown:l=>
1{("Enter"===l.key||" "===l.key)&&(l.preventDefault(),e.onMultimediaClick&&e.onMultimediaClick())},children:[(0,o.jsx)("span",{className:r().topicLeftNavMultimediaLink,children:(0,o.jsx)(p,{className:"".concat((null==c?void 0:c.isClientTheme)?"clientSvgInfoIconColor":""),height:26,width:26,"aria-label":i("Multimedia"),role:"img"})}),(0,o.jsx)("span",{className:r().topicLeftNavTitle,children:i("Multimedia")})]})},i("Multimedia"))]})]})})};l.default=(0,t.memo)(f)},39731:function(e,l,i){i.r(l),i.d(l,{Default:function(){return t}});var o=i(85893);i(67294);var n=i(75266);l.default={title:"Components/TopicSubNavigation",component:n.TopicSubNavigation};let a=e=>(0,o.jsx)(n.TopicSubNavigation,{...e}),t=a.bind({});t.args={data:"abc"}},75266:function(e,l,i){i.r(l),i.d(l,{TopicSubNavigation:function(){return m}});var o=i(85893),n=i(67294),a=i(22556),t=i(69998),d=i(5817),u=i(28498),v=i.n(u),r=i(32862),s=i(5152),c=i.n(s);let h=c()(()=>i.e(5801).then(i.bind(i,75801)).then(e=>e.default),{loadableGenerated:{webpack:()=>[75801]},loading:()=>(0,o.jsx)(o.Fragment,{}),ssr:!1}),m=e=>{var l;let{mediaObj:i,theme:u}=(0,n.useContext)(d.ZP),{sitecoreContext:s}=(0,r.z)(),{t:c}=(0,a.QT)(),[m,g]=(0,n.useState)(""),p=(0,n.useRef)(null),f=e=>{if(null==e||!e.UniqueID||null==e||!e.Title)return"";{var l;let i=null==e?void 0:null===(l=e.htmltotextTitle)||void 0===l?void 0:l.replace(/\s+/g,"-");return"#"+i+"_"+(null==e?void 0:e.UniqueID)}},w=()=>{g((null==e?void 0:e.onMultimediaClick)?"expanded":"collapsed"),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>g(""),2e3)},L=null==e?void 0:e.data,N=Array.isArray(L)&&L.some(e=>(null==e?void 0:e.HeadType)==="E_Head");return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:v().ariaAnnouncement,"aria-live":"polite",children:m}),Array.isArray(L)&&(0,o.jsx)("div",{className:"".concat(v().topicSubNavigation," \n    ").concat((null==s?void 0:null===(l=s.language)||void 0===l?void 0:l.toLowerCase())===t.Languages.AR&&v().directionRTL,"\n    ").concat((null==i?void 0:i.isMedia)&&"hideOnPrint","  ").concat(u===t.Theme.DARK&&v().themeDark),"data-testid":"Topic-subnavigation",children:(0,o.jsxs)("ul",{className:v().topicSubNavList,children:[Array.isArray(L)&&(null==L?void 0:L.map(e=>(0,o.jsxs)("li",{className:"".concat(v().topicSubNavListItem," ").concat(N&&(null==e?void 0:e.HeadType)==="F_Head"?v().fHead:""),children:[(null==e?void 0:e.Title)&&(null==e?void 0:e.Title)!==""&&(0,o.jsx)("a",{href:f(e),className:v().topicSubNavListItemLink,dangerouslySetInnerHTML:{__html:e.Title}}),(0,o.jsx)("span",{className:v().topicSubNavListItemLinkSeparator,"aria-hidden":"true",children:"|"})]},null==e?void 0:e.UniqueID))),(null==e?void 0:e.drugDataExist)&&(0,o.jsxs)("li",{className:v().topicSubNavListItem,children:[(0,o.jsx)("button",{onClick:e.handleScroll,className:"".concat(v().topicSubNavListItemLink," ").concat(v().topicSubNavDrugLink),role:"link",children:c("DrugNav")}),(0,o.jsx)("span",{className:v().topicSubNavListItemLinkSeparator,"aria-hidden":"true",children:"|"})]}),(null==e?void 0:e.totalResourcesCount)!==0&&(0,o.jsxs)("li",{className:v().topicSubNavListItem,children:[(0,o.jsxs)("button",{className:v().topicSubNavListItemLink,onClick:()=>{e.onMultimediaClick&&e.onMultimediaClick(),w()},tabIndex:0,onKeyDown:l=>{("Enter"===l.key||" "===l.key)&&(l.preventDefault(),e.onMultimediaClick&&e.onMultimediaClick(),w())},"aria-label":c("Multimedia"),role:"button","aria-expanded":"false",children:[(0,o.jsx)("span",{className:v().topicSubNavMultimediaLink,children:(0,o.jsx)(h,{role:"img",height:26,width:26,"aria-label":c("Multimedia")})}),(0,o.jsx)("span",{className:v().topicSubNavListItemLinkText,children:c("Multimedia")})]}),(0,o.jsx)("span",{className:v().topicSubNavListItemLinkSeparator,"aria-hidden":"true",children:"|"})]},c("Multimedia"))]})})]})};l.default=(0,n.memo)(m)},52363:function(e,l,i){i.r(l),i.d(l,{Default:function(){return t}});var o=i(85893);i(67294);var n=i(88093);l.default={title:"Components/LeftNavigation",component:n.default};let a=e=>(0,o.jsx)(n.default,{...e}),t=a.bind({});t.args={params:{name:"LeftNavigation"},rendering:{uid:"{00000000-0000-0000-0000-000000000000}",componentName:"LeftNavigation"},fields:{heading:{value:"Left Navigation"}
1,navlist:[{displayName:"About The Manuals",id:"0123456789",fields:{link:{value:{href:"link path here"}},title:{value:"About Us"}}}]}}},88093:function(e,l,i){i.r(l);var o=i(85893),n=i(62099),a=i(67294),t=i(5817),d=i(55162);let u=e=>{let{setLeftNavigationProps:l}=(0,a.useContext)(t.ZP);return(0,a.useEffect)(()=>{l(e)},[]),(0,o.jsx)(d.default,{navigationProps:e})};l.default=(0,n.C)()(u)},55162:function(e,l,i){i.r(l);var o=i(85893),n=i(32862),a=i(72433),t=i(67294),d=i(41664),u=i.n(d),v=i(69998),r=i(38500),s=i.n(r),c=i(5817),h=i(65313),m=i(39332);let g=e=>{var l,i,d,r;let{onLinkClick:g,navigationProps:p}=e,{theme:f,direction:w,media:L,mediaObj:N,leftNavigationProps:x}=(0,t.useContext)(c.ZP),C=null!=p?p:x,S=null==C?void 0:null===(l=C.fields)||void 0===l?void 0:l.heading,T=null==C?void 0:null===(i=C.fields)||void 0===i?void 0:i.navlist,[E,j]=(0,t.useState)(""),[k,I]=(0,t.useState)(""),{sitecoreContext:b}=(0,n.z)(),A=(0,m.usePathname)(),y=(0,m.useSearchParams)(),M=null===v.petOwnerPages||void 0===v.petOwnerPages?void 0:v.petOwnerPages.includes(null==b?void 0:null===(d=b.route)||void 0===d?void 0:d.name),D=(null==L?void 0:L.includes(v.Media.MEDIA_HYBRID))||(null==L?void 0:L.includes(v.Media.MEDIA_PRINT));(0,t.useEffect)(()=>{var e;let l=null==b?void 0:null===(e=b.itemId)||void 0===e?void 0:e.toUpperCase();null==T||T.map(e=>{var i,o,n;let a=null==e?void 0:null===(i=e.fields)||void 0===i?void 0:null===(o=i.link)||void 0===o?void 0:null===(n=o.value)||void 0===n?void 0:n.id;void 0!==(a=null==a?void 0:a.replace(/[{}]/g,""))&&l===a&&j(null==e?void 0:e.id)})},[T,b]);let R=(0,t.useCallback)(()=>{try{null==g||g()}catch(e){}},[g]);return(0,o.jsxs)("div",{className:"".concat(s().otherTopics," ").concat(f===v.Theme.LIGHT&&s().otherTopicsLightTheme,"\n      ").concat(w===v.Direction.LTR?s().otherTopicsContainerLtr:s().otherTopicsContainerRtl," ").concat((null==b?void 0:null===(r=b.route)||void 0===r?void 0:r.templateName)===v.Template.AboutPage&&s().aboutPage,"  outerCurvedBorder\n    "),"data-testid":"leftNavigation-container",children:[(0,o.jsx)(a.x,{tag:"div","data-testid":"list-header",className:"".concat(s().otherTopicsHeader," ").concat(f===v.Theme.LIGHT&&s().otherTopicsHeaderLight," ").concat((null==N?void 0:N.isClientTheme)&&"heading2"),field:S}),(0,o.jsx)("ul",{className:"".concat(s().otherTopicsContent," ").concat(M&&D&&s().PetPrintHybrid),"data-testid":"leftNavigation-list",children:Array.isArray(T)&&(null==T?void 0:T.map((e,l)=>{var i,n,a,t,d,r,c,m,g,p,L,x,C,S,T,D,P,H;return e&&(0,o.jsx)("li",{"data-testid":"list"+l,className:s().otherTopicsListItem,onClick:()=>j(null==e?void 0:e.id),onMouseOver:()=>I(null==e?void 0:e.id),onMouseLeave:()=>I(""),children:(0,o.jsxs)(u(),{prefetch:!1,locale:(null===v.defaultLanguages||void 0===v.defaultLanguages?void 0:v.defaultLanguages.includes(null==b?void 0:null===(i=b.language)||void 0===i?void 0:i.toLocaleLowerCase()))?"":null==b?void 0:null===(n=b.language)||void 0===n?void 0:n.toLocaleLowerCase(),href:(null==e?void 0:null===(a=e.fields)||void 0===a?void 0:null===(t=a.link)||void 0===t?void 0:null===(d=t.value)||void 0===d?void 0:d.href)?(0,h.AppendQueryParameters)(null!=A?A:"/",y,null==e?void 0:null===(r=e.fields)||void 0===r?void 0:null===(c=r.link)||void 0===c?void 0:null===(m=c.value)||void 0===m?void 0:m.href):"",className:s().otherTopicsLink,"data-testid":"leftNavigation-link","aria-current":E===(null==e?void 0:e.id)?"true":"false",role:"link",onClick:R,children:[(0,o.jsx)("div",{className:"".concat(s().otherTopicsLinkImage," ").concat(w===v.Direction.RTL&&s().otherTopicsArrowRtl),children:k===(null==e?void 0:e.id)?(0,o.jsx)("span",{className:"".concat(s().otherTopicsLinkImageArrow," ").concat(s().otherTopicsLinkImageArrowHover," ").concat(f===v.Theme.DARK&&s().otherTopicsLinkImageArrowGrey," ")}):(0,o.jsx)("span",{className:"".concat(s().otherTopicsLinkImageArrow," ").concat(E!==(null==e?void 0:e.id)||M?(null==e?void 0:null===(g=e.fields)||void 0===g?void 0:null===(p=g.title)||void 0===p?void 0:p.value.includes(v.Navigation.PET_HEALTH))?s().otherTopicsLinkImageArrowBlack:s().otherTopicsLinkImageArrowGrey:f===v.Theme.LIGHT?s().otherTopicsLinkImageArrowBlack:""," ").concat(f===v.Theme.DARK&&s().otherTopicsLinkImageArrowGrey," \n                   \n                    ")})}),(0,o.jsx)("div",{className:"".concat(f===v.Theme.LIGHT?(null==e?void 0:null===(L=e.fields)||void 0===L?void 0:null===(x=L.title)||void 0===x?void 0:x.value.includes(v.Navigation.PET_HEALTH))?s().otherTopicsLinkSelected:s().otherTopicsLinkText:(null==e?void 0:null===(C=e.fields)||void 0===C?void 0:null===(S=C.title)||void 0===S?void 0:S.value.includes(v.Navigation.PET_HEALTH))?s().otherTopicsLinkSelectedDark:s().otherTopicsDark," ").concat(E===(null==e?void 0:e.id)?f===v.Theme.LIGHT?s().otherTopicsLinkSelected:s().otherTopicsLinkSelectedDark:""," ").concat((null==N?void 0:N.isClientTheme)&&E!==(null==e?void 0:e.id)?"clientFontColor":""),children:(null==e?void 0:null===(T=e.fields)||void 0===T?void 0:null===(D=T.title)||void 0===D?void 0:D.value)!==""?null==e?void 0:null===(P=e.fields)||void 0===P?void 0:null===(H=P.title)||void 0===H?void 0:H.value:null==e?void 0:e.displayName})]})},null==e?void 0:e.id)}
1))})]})};l.default=g},11698:function(e,l,i){i.r(l);var o=i(85893),n=i(24147),a=i(89755),t=i.n(a),d=i(67294),u=i(60834),v=i(43998),r=i(97892),s=i(5817),c=i(69998),h=i(49438),m=i.n(h),g=i(22556),p=i(36562),f=i(24707),w=i.n(f),L=i(65313);let N=e=>{var l,i,a,h,f,N,x,C,S,T,E,j,k,I,b,A,y,M,D,R,P;let{props:H,viewportWidth:O}=e,{theme:_,direction:U,activePage:B,resizing:Z,setActivePage:F,domain:V}=(0,d.useContext)(s.ZP),{t:z}=(0,g.QT)(),W=e=>{var l,i,o,n,a,t,d;if((null==e?void 0:e.name)==="Cookie Preferences")return"javascript:void(0)";if((null==e?void 0:e.name)=="Veterinary Manual"){let e=(0,p.domainUrl)(V);return null==e?void 0:e.veterinary}let u=(null===w()||void 0===w()?void 0:w().jssAppName)==c.Site.MManual?null==e?void 0:null===(l=e.fields)||void 0===l?void 0:null===(i=l.link)||void 0===i?void 0:null===(o=i.value)||void 0===o?void 0:null===(n=o.href)||void 0===n?void 0:n.replace("/sitecore/content/home/","/"):null==e?void 0:null===(a=e.fields)||void 0===a?void 0:null===(t=a.link)||void 0===t?void 0:null===(d=t.value)||void 0===d?void 0:d.href;return u||""},Q=e=>{var l,i,o;return(null==e?void 0:e.name)!=="Cookie Preferences"?"":null==e?void 0:null===(l=e.fields)||void 0===l?void 0:null===(i=l.link)||void 0===i?void 0:null===(o=i.value)||void 0===o?void 0:o.class};return(0,o.jsxs)(v.Z.Offcanvas,{id:"offcanvasNavbar-expand","aria-label":z("Expanded"),role:"dialog","aria-modal":"true",placement:U===c.Direction.LTR?"start":"end",className:"".concat(m().offCanvas,"\n            ").concat(_===c.Theme.DARK&&m().themeDark),backdropClassName:m().offCanvasBackdrop,"data-testid":"offcanvasNavbar-expand",children:[(0,o.jsx)(r.Z.Header,{closeButton:!0,className:"".concat(m().toggleCanvasHeader,"\n            ").concat(U===c.Direction.RTL?m().toggleCanvasHeaderRight:m().toggleCanvasHeaderLeft)}),(0,o.jsx)(r.Z.Body,{className:"".concat(m().toggleCanvasBody," ").concat(U===c.Direction.RTL&&m().toggleCanvasBodyRight,"\n              ").concat(Z===c.FontResize.FONT_LARGE?m().fontSize3:Z===c.FontResize.FONT_MEDIUM?m().fontSize2:m().fontSize1,"\n              "),children:(0,o.jsxs)(u.Z,{className:m().toggleCanvasNavList,children:[Array.isArray(null==H?void 0:H.navlist)&&(null==H?void 0:H.navlist.map(e=>{var l,i,n,a,t,d,v,r,s,h,g;let p=(null===w()||void 0===w()?void 0:w().jssAppName)==(null===c.Site||void 0===c.Site?void 0:c.Site.MManual)?null==e?void 0:null===(l=e.fields)||void 0===l?void 0:null===(i=l.link)||void 0===i?void 0:null===(n=i.value)||void 0===n?void 0:null===(a=n.href)||void 0===a?void 0:a.replace("/sitecore/content/home/","/"):null==e?void 0:null===(t=e.fields)||void 0===t?void 0:null===(d=t.link)||void 0===d?void 0:null===(v=d.value)||void 0===v?void 0:v.href;return(null==e?void 0:null===(r=e.fields)||void 0===r?void 0:null===(s=r.title)||void 0===s?void 0:s.value)&&(0,o.jsx)(u.Z.Link,{href:p,className:"".concat(m().toggleCanvasHeaderNavProps," ").concat(B==(null==e?void 0:e.name)?m().active:""),onClick:()=>{var l,i;return F(null==e?void 0:null===(l=e.fields)||void 0===l?void 0:null===(i=l.title)||void 0===i?void 0:i.value)},role:"link",children:null==e?void 0:null===(h=e.fields)||void 0===h?void 0:null===(g=h.title)||void 0===g?void 0:g.value.toUpperCase()},null==e?void 0:e.id)})),(null==H?void 0:null===(l=H.hambergerheaderhat)||void 0===l?void 0:null===(i=l.fields)||void 0===i?void 0:i.title)&&(0,o.jsx)(u.Z.Link,{href:"",className:m().toggleCanvasHeaderNavProps,role:"link",children:null==H?void 0:null===(a=H.hambergerheaderhat)||void 0===a?void 0:null===(h=a.fields)||void 0===h?void 0:null===(f=h.title)||void 0===f?void 0:f.value.toUpperCase()},null==H?void 0:null===(N=H.hambergerheaderhat)||void 0===N?void 0:N.id),(null==H?void 0:null===(x=H.hambergerheaderhat)||void 0===x?void 0:null===(C=x.fields)||void 0===C?void 0:null===(S=C.Enable)||void 0===S?void 0:S.value)&&(0,o.jsxs)(u.Z.Link,{href:"",className:"".concat(m().toggleCanvasHeaderNavProps," ").concat(m().toggleCanvasHeaderNavPropsLogo),role:"link",children:[z("BroughtToYouBy"),(0,o.jsxs)("span",{className:m().hamburgerLogo,children:[(null==H?void 0:null===(T=H.hambergerheaderhat)||void 0===T?void 0:null===(E=T.fields)||void 0===E?void 0:E.Logo)&&(0,o.jsx)(n.o,{field:null==H?void 0:null===(j=H.hambergerheaderhat)||void 0===j?void 0:null===(k=j.fields)||void 0===k?void 0:k.Logo,height:30,width:O>500?100:50}),(null==H?void 0:null===(I=H.hambergerheaderhat)||void 0===I?void 0:null===(b=I.fields)||void 0===b?void 0:null===(A=b.Flag)||void 0===A?void 0:A.value)&&(0,o.jsx)(n.o,{field:null==H?void 0:null===(y=H.hambergerheaderhat)||void 0===y?void 0:null===(M=y.fields)||void 0===M?void 0:M.Flag,height:30,width:O>500?100:50})]})]}),(0,o.jsx)("div",{className:m().hamburgerBorder,children:(null==H?void 0:null===(D=H.hambergerheaderhat)||void 0===D?void 0:null===(R=D.fields)||void 0===R?void 0:null===(P=R.HeaderHatLinks)||void 0===P?void 0:P.length)>0&&Array.isArray(null==H?void 0:H.hambergerheaderhatList)&&(null==H?void 0:H.hambergerheaderhatList.map((e,l)=>{var i,a,t,d,v,r,s,h,g,p,f,w;return(0,o.jsxs)(u.Z.Link,{href:null==e?void 0:null===(i=e.fields)||void 0===i?void 0:null===(a=i.link)||void 0===a?void 0:null===(t=a.value)||void 0===t?void 0:t.href,className:"".concat(m().toggleCanvasHeaderhat," ").concat(_===c.Theme.DARK&&m().darktoggleCanvasHeaderhat),role:"link",children:[(0,o.jsx)("div",{children:(0,o.jsx)("div",{className:m().circle})}),(null==e?void 0:e.name)==="WorldWideLink"&&(null==e?void 0:null===(d=e.fields)||void 0===d?void 0:null===(v=d.icon)||void 0===v?void 0:null===(r=v.value)||void 0===r?void 0:r.width)&&(null==e?void 0:null===(s=e.fields)||void 0===s?void 0:null===(h=s.icon)||void 0===h?void 0:null===(g=h.value)||void 0===g?void 0:g.height)&&(0,o.jsx)("span",{className:m().headerworldicon,children:(0,o.jsx)(n.o,{field:null==e?void 0:null===(p=e.fields)||void 0===p?void 0:p.icon})}),null==e?void 0:null===(f=e.fields)||void 0===f?void 0:null===(w=f.title)||void 0===w?void 0:w.value.toUpperCase()]},l)}))}),Array.isArray(null==H?void 0:H.hambergerfooterlist)&&(null==H?void 0:H.hambergerfooterlist.map((e,l)=>{var i,n,a,d,v,r,s,c,h,g,p;return(null==e?void 0:e.name)!=="Cookie Preferences"?(0,o.jsxs)(u.Z.Link,{href:W(e),className:Q(e)+" "+m().toggleCanvasFooterNavProps,role:"link",children:[(0,o.jsx)("div",{children:(0,o.jsx)("div",{className:m().circle})}),(0,o.jsxs)("div",{className:m().txtImgContainer,children:[(0,o.jsx)("span",{className:m().text,children:null==e?void 0:null===(i=e.fields)||void 0===i?void 0:null===(n=i.title)||void 0===n?void 0:n.value}),(0,o.jsx)("span",{className:m().ImageSpan,children:(null==e?void 0:null===(a=e.fields)||void 0===a?void 0:null===(d=a.icon)||void 0===d?void 0:null===(v=d.value)||void 0===v?void 0:v.src)&&(null==e?void 0:null===(r=e.fields)||void 0===r?void 0:null===(s=r.icon)||void 0===s?void 0:null===(c=s.value)||void 0===c?void 0:c.src)!=""&&(0,o.jsx)(t(),{style:{objectFit:"cover"},priority:0===l,loading:0===l?"eager":"lazy",loader:e=>(0,L.customImageLoader)(e,{mw:500}),src:null==e?void 0:null===(h=e.fields)||void 0===h?void 0:null===(g=h.icon)||void 0===g?void 0:null===(p=g.value)||void 0===p?void 0:p.src,height:14,width:30})})]})]},null==e?void 0:e.id):null}))]})})]})};l.default=N},80643:function(e,l,i){i.r(l),i.d(l,{Default:function(){return t}});var o=i(85893);
1i(67294);var n=i(83726);l.default={title:"Components/HamburgerNavigation",component:n.default};let a=e=>(0,o.jsx)(n.default,{...e}),t=a.bind({});t.args={navlist:[{id:"95830bf1-e92f-4ccb-8e4a-fd69a5a0350f",name:"Home",fields:{title:{value:"Home"},link:{value:{href:""}}}}],hambergerfooterlist:[{id:"testid1",name:"Footer Link",fields:{icon:{value:{src:"",alt:""}},link:{value:{href:""}},hideonmobile:{value:!1},title:{value:"Disclaimer"},showonmobilebreadcrumb:{value:!0}}}],hambergerheaderhat:{id:"HeaderHat 1",name:"Header Hat",fields:{title:{value:"Header Hat"},Enable:{value:!0},HeaderHatLinks:[],Logo:{value:{src:"/-/media/mmanual_logo_green_transparent.svg?h=30&iar=0&w=100",alt:"msd logo",width:"100",height:"30"}},Flag:{value:{src:"/-/jssmedia/manual/flags/canadianflag.png?h=29&iar=0&w=60&mw=128",alt:"flag",width:"100",height:"30"}}}}}},83726:function(e,l,i){i.r(l);var o=i(85893),n=i(32862),a=i(67294),t=i(10682),d=i(43998),u=i(69998),v=i(49438),r=i.n(v),s=i(5152),c=i.n(s);let h=c()(()=>i.e(3521).then(i.bind(i,11698)),{loadableGenerated:{webpack:()=>[11698]},loading:()=>(0,o.jsx)(o.Fragment,{}),ssr:!1}),m=e=>{var l;let{sitecoreContext:i}=(0,n.z)(),v=(null==i?void 0:null===(l=i.language)||void 0===l?void 0:l.toLowerCase())===u.Languages.AR?u.Direction.RTL:u.Direction.LTR,[s,c]=(0,a.useState)(0),[m,g]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=null==window?void 0:window.innerWidth;c(e),window.addEventListener("resize",()=>{let e=null==window?void 0:window.innerWidth;c(e)})},[]);let p=()=>{g(!m)};return(0,o.jsx)("div",{children:(0,o.jsx)(d.Z,{dir:v,expand:"xxs",className:"".concat(v===u.Direction.LTR&&r().hamburgerLtr,"      \n      ").concat(v===u.Direction.RTL&&r().hamburgerRtl,"\n      "),onToggle:p,"data-testid":"hamburgerMenu",children:(0,o.jsxs)(t.Z,{className:r().toggleContainer,children:[(0,o.jsx)(d.Z.Toggle,{"aria-expanded":!!m&&void 0}),m&&(0,o.jsx)(h,{props:e,viewportWidth:s})]})})})};l.default=m},13248:function(e,l,i){i.r(l),i.d(l,{Default:function(){return t}});var o=i(85893);i(67294);var n=i(45065);l.default={title:"Components/MainNavigation",component:n.MainNavigation};let a=e=>(0,o.jsx)(n.MainNavigation,{...e}),t=a.bind({});t.args={navItems:[{id:"95830bf1-e92f-4ccb-8e4a-fd69a5a0350f",name:"Home",fields:{title:{value:"Home"},link:{value:{href:""}}}}]}},45065:function(e,l,i){i.r(l),i.d(l,{MainNavigation:function(){return E}});var o=i(85893),n=i(67294),a=i(10682),t=i(60834),d=i(43998),u=i(70218),v=i(22556),r=i(39332),s=i(69998),c=i(5817),h=i(76086),m=i.n(h),g=i(89755),p=i.n(g),f=i(65313),w=i(79325),L=i(5152),N=i.n(L),x=i(24707),C=i.n(x),S=i(32862);let T=N()(()=>i.e(7541).then(i.bind(i,77541)).then(e=>e.default),{loadableGenerated:{webpack:()=>[77541]},loading:()=>(0,o.jsx)(o.Fragment,{}),ssr:!1}),E=e=>{var l,i;let{t:h}=(0,v.QT)(),{sitecoreContext:g}=(0,S.z)(),{navItems:L}=e,N=(0,r.usePathname)(),x=(0,r.useSearchParams)(),{resizing:E,setActivePage:j,edition:k}=(0,n.useContext)(c.ZP),[I,b]=(0,n.useState)(""),A=null==g?void 0:null===(l=g.language)||void 0===l?void 0:l.toLowerCase(),[y,M]=(0,n.useState)((null==A?void 0:A.startsWith("ru"))||(null==A?void 0:A.startsWith("uk"))?2:3),D=(null==g?void 0:null===(i=g.language)||void 0===i?void 0:i.toLowerCase())==="ar"?"rtl":"ltr",[R,P]=(0,n.useState)(!0),H=(0,n.useRef)(null),O=(0,n.useRef)(null),_=0,[U,B]=(0,n.useState)(0),[Z,F]=(0,n.useState)(),V=()=>{(null==window?void 0:window.innerWidth)<800?F(!0):F(!1)};(0,n.useEffect)(()=>(void 0!==window&&(V(),null==window||window.addEventListener("resize",V)),()=>{window.removeEventListener("resize",V)}),[]),(0,n.useEffect)(()=>{var e,l,i,o,n,a;let t;let d=null===(e=null==window?void 0:null===(l=window.location)||void 0===l?void 0:null===(i=l.href)||void 0===i?void 0:i.split("/"))||void 0===e?void 0:e.pop(),u=null===(o=null==d?void 0:d.split("?"))||void 0===o?void 0:o.shift(),v=decodeURI(u||"");null==L||L.map(e=>{var l,i,o,n,a;let t=null===(l=null==e?void 0:null===(i=e.fields)||void 0===i?void 0:null===(o=i.link)||void 0===o?void 0:null===(n=o.value)||void 0===n?void 0:null===(a=n.href)||void 0===a?void 0:a.split("/"))||void 0===l?void 0:l.pop();v===t&&(b(null==e?void 0:e.name),j(null==e?void 0:e.name)),k===s.Edition.VETE
1RINARY&&v===A&&(null==e?void 0:e.name)===s.NavigationItem.HomePage&&(b(null==e?void 0:e.name),j(null==e?void 0:e.name))}),t=null===(n=O.current)||void 0===n?void 0:n.clientWidth,B(null==window?void 0:window.innerWidth),void 0!==t&&(_=t-40),Q(),null==window||window.addEventListener("resize",()=>{var e;B(null==window?void 0:window.innerWidth),void 0!==(t=null===(e=O.current)||void 0===e?void 0:e.clientWidth)&&(_=t-40),Q()});let r=null===(a=H.current)||void 0===a?void 0:a.children[0];r&&r.setAttribute("aria-label",h("Search_More"))},[D,E,L,Z]),(0,n.useEffect)(()=>{let e=()=>{var e,l;let i=(null==document?void 0:null===(e=document.body)||void 0===e?void 0:e.scrollTop)||(null==document?void 0:null===(l=document.documentElement)||void 0===l?void 0:l.scrollTop);i>10?R&&P(!1):P(!0)};return null==window||window.addEventListener("scroll",e),()=>null==window?void 0:window.removeEventListener("scroll",e)},[R]),(0,n.useEffect)(()=>{var e,l,i;let o=[];null==L||L.map(e=>{var l,i,n,a,t;let d=null===(l=null==e?void 0:null===(i=e.fields)||void 0===i?void 0:null===(n=i.link)||void 0===n?void 0:null===(a=n.value)||void 0===a?void 0:null===(t=a.href)||void 0===t?void 0:t.split("/"))||void 0===l?void 0:l.pop();o.push(d)});let n=null===(e=null==window?void 0:null===(l=window.location)||void 0===l?void 0:null===(i=l.href)||void 0===i?void 0:i.split("/"))||void 0===e?void 0:e.pop(),a=null==n?void 0:n.split("?").shift(),t=decodeURI(a||"");o.includes(t)||t===A||(b(""),j(""))},[j,b,L]);let z=null==L?void 0:L.slice(0,y),W=null==L?void 0:L.slice(y),Q=()=>{if(0>navigator.userAgent.indexOf("Chrome-Lighthouse")){let e=0,l=null==L?void 0:L.findIndex(l=>{let i=null==document?void 0:document.getElementById(l.id);return(null==i?void 0:i.clientWidth)!==void 0&&(e=(null==i?void 0:i.clientWidth)>=720?e+(null==i?void 0:i.clientWidth)+20:e+(null==i?void 0:i.clientWidth)+12),e>_});Z&&l>4?M(4):M(l)}};return(0,o.jsxs)("div",{children:[(0,o.jsx)(d.Z,{className:"".concat(m().navigationBar," ").concat(m().hideNavBar),id:"navBar",ref:O,children:(0,o.jsx)(a.Z,{className:m().navigationContainer,children:(0,o.jsx)(t.Z,{className:m().navigationList,children:Array.isArray(L)&&(null==L?void 0:L.map(e=>{var l,i,n,a,d,u,v,r,c,h,g,p,f,w;return(null==e?void 0:null===(l=e.fields)||void 0===l?void 0:null===(i=l.title)||void 0===i?void 0:i.value)?(0,o.jsx)(t.Z.Link,{id:null==e?void 0:e.id,href:null==e?void 0:null===(n=e.fields)||void 0===n?void 0:null===(a=n.link)||void 0===a?void 0:null===(d=a.value)||void 0===d?void 0:d.href,className:"".concat(m().navigationListItems,"\n            ").concat(I===(null==e?void 0:e.name)&&m().navigationListItemSelected,"\n            ").concat(U>1024&&(null==e?void 0:null===(u=e.name)||void 0===u?void 0:u.toUpperCase())===s.NavItems.NAVITEM_HOME&&m().homeText,"\n            ").concat(U<=1024&&(null==e?void 0:null===(v=e.name)||void 0===v?void 0:v.toUpperCase())===s.NavItems.NAVITEM_HOME&&m().homeIconSize,"\n          "),onClick:()=>{b(null==e?void 0:e.name),j(null==e?void 0:e.name)},role:"link",children:U<=1024&&(null==e?void 0:null===(r=e.name)||void 0===r?void 0:r.toUpperCase())===s.NavItems.NAVITEM_HOME?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("span",{dir:D,className:I.toUpperCase()===s.NavItems.NAVITEM_HOME?m().selectedHomeIcon:m().homeIcon})}):(null==e?void 0:null===(c=e.fields)||void 0===c?void 0:null===(h=c.title)||void 0===h?void 0:null===(g=h.value)||void 0===g?void 0:g.toUpperCase())!==s.NavItems.NAVITEM_HOME&&(null==e?void 0:null===(p=e.fields)||void 0===p?void 0:null===(f=p.title)||void 0===f?void 0:null===(w=f.value)||void 0===w?void 0:w.toUpperCase())},null==e?void 0:e.id):null}))})})}),(0,o.jsx)(d.Z,{className:"".concat(m().navigationBar,"\n                  ").concat(U<=1024&&!R&&m().hideOnScroll,"\n                  "),children:(0,o.jsx)(a.Z,{className:m().navigationContainer,id:"navbar-item",children:(0,o.jsxs)(t.Z,{className:m().navigationList,children:[Array.isArray(z)&&(null==z?void 0:z.map(e=>{var l,i,n,a,d,u,v,r,c,h,g,L,S,T,E,A,y,M;let R=(null===C()||void 0===C()?void 0:C().jssAppName)=="mmanuals"?null===(l=(0,f.AppendQueryParameters)(N,x,null==e?void 0:null===(i=e.fields)||void 0===i?void 0:null===(n=i.link)||void 0===n?void 0:null===(a=n.value)||void 0===a?void 0:a.href))||void 0===l?void 0:l.replace("/sitecore/content/home/","/"):(0,f.AppendQueryParameters)(N,x,null==e?void 0:null===(d=e.fields)||void 0===d?void 0:null===(u=d.link)||void 0===u?void 0:null===(v=u.value)||void 0===v?void 0:v.href);return(null==e?void 0:null===(r=e.fields)||void 0===r?void 0:null===(c=r.title)||void 0===c?void 0:c.value)?(0,o.jsx)(t.Z.Link,{href:R,className:"".concat(m().navigationListItems,"\n                  ").concat(I===(null==e?void 0:e.name)&&m().navigationListItemSelected,"\n                  ").concat(U>1024&&(null==e?void 0:null===(h=e.name)||void 0===h?void 0:h.toUpperCase())===s.NavItems.NAVITEM_HOME&&m().homeText,"\n                  ").concat(U<=1024&&(null==e?void 0:null===(g=e.name)||void 0===g?void 0:g.toUpperCase())===s.NavItems.NAVITEM_HOME&&m().homeIconSize,"\n                  "),onClick:()=>{b(null==e?void 0:e.name),j(null==e?void 0:e.name)},role:"link",children:U<=1024&&(null==e?void 0:null===(L=e.name)||void 0===L?void 0:L.toUpperCase())===s.NavItems.NAVITEM_HOME?(0,o.jsx)("span",{dir:D,className:"\n                          ".concat(m().homeIcon," ").concat(I.toUpperCase()===s.NavItems.NAVITEM_HOME?k===s.Edition.VETE
1RINARY?m().selectedVetIcon:k===s.Edition.PROFESSIONAL?m().selectedProfIcon:m().selectedConsumerIcon:m().homeIcon,"\n                        "),children:(0,o.jsx)(p(),{src:w.Z.src,alt:"home",width:20,height:20,priority:!0,loader:e=>(0,f.customImageLoader)(e)})}):(null==e?void 0:null===(S=e.fields)||void 0===S?void 0:null===(T=S.title)||void 0===T?void 0:null===(E=T.value)||void 0===E?void 0:E.toUpperCase())!==s.NavItems.NAVITEM_HOME&&(null==e?void 0:null===(A=e.fields)||void 0===A?void 0:null===(y=A.title)||void 0===y?void 0:null===(M=y.value)||void 0===M?void 0:M.toUpperCase())},null==e?void 0:e.id):null})),(null==W?void 0:W.length)>0&&(0,o.jsx)(u.Z,{id:"navigation-dropdown",title:" ",className:m().navigationDropdown,dir:D,ref:H,children:(0,o.jsx)(T,{dropdown:W,setSelected:b,selected:I})})]})})})]})};l.default=E},15737:function(e,l,i){i.r(l),i.d(l,{Default:function(){return t}});var o=i(85893);i(67294);var n=i(67936);l.default={title:"Components/Navigation",component:n.Navigation};let a=e=>(0,o.jsx)(n.Navigation,{...e}),t=a.bind({});t.args={params:{name:"Navigation"},rendering:{uid:"{00000000-0000-0000-0000-000000000000}",componentName:"Navigation"},fields:{navlist:[],hambergerfooterlist:[],hambergerheaderhat:{id:"cb6925f8-6d92-4d34-b4db-612d5ae51dd7",name:"HeaderHat",fields:{title:{value:"Header Hat"},Enable:{value:!0},HeaderHatLinks:[],Logo:{value:{src:"/-/media/mmanual_logo_green_transparent.svg?h=30&iar=0&w=100",alt:"msd logo",width:"100",height:"30"}},Flag:{value:{src:"/-/jssmedia/manual/flags/canadianflag.png?h=29&iar=0&w=60&mw=128",alt:"flag",width:"100",height:"30"}}}},hambergerheaderhatlist:[{name:"AboutUs",fields:{link:{value:{href:"http://www.msd.co.jp/about/index.xhtml",linktype:"external",url:"http://www.msd.co.jp/about/index.xhtml"}},icon:{value:{src:"http://www.msd.co.jp/about/index.xhtml",alt:"worldwide",width:"200",height:"20"}},title:{value:"about MSD"}}}]}}},67936:function(e,l,i){i.r(l),i.d(l,{Navigation:function(){return h}});var o=i(85893),n=i(67294),a=i(32862),t=i(62099),d=i(45065),u=i(83726),v=i(76086),r=i.n(v),s=i(5817),c=i(69998);let h=e=>{var l,i,t,v,h;let{direction:m,edition:g}=(0,n.useContext)(s.ZP),{sitecoreContext:p}=(0,a.z)(),f=null==e?void 0:null===(l=e.fields)||void 0===l?void 0:l.hambergerfooterlist,w=null==e?void 0:null===(i=e.fields)||void 0===i?void 0:i.hambergerheaderhat,L=null==e?void 0:null===(t=e.fields)||void 0===t?void 0:t.hambergerheaderhatlist,N=null==e?void 0:null===(v=e.fields)||void 0===v?void 0:v.navlist;return(0,o.jsxs)("div",{dir:(null==p?void 0:null===(h=p.language)||void 0===h?void 0:h.toLowerCase())==="ar"?"rtl":"ltr",className:" container ".concat(r().navigation," ").concat(g===c.Edition.PROFESSIONAL&&(null==p?void 0:p.language)==="ru"?r().russianProfessional:"","\n   \n    ").concat("rtl"===m&&r().navigationRight),"data-testid":"navigation",children:[(0,o.jsx)(u.default,{navlist:N,hambergerfooterlist:f,hambergerheaderhat:w,hambergerheaderhatList:L}),(0,o.jsx)(d.default,{navItems:N})]})};l.default=(0,t.C)()(h)},78286:function(e,l,i){i.r(l),i.d(l,{useEditionSwitcherVisibility:function(){return n}});var o=i(67294);let n=(e,l)=>(0,o.useMemo)(()=>{let i=null==e?void 0:e.find(e=>(null==e?void 0:e.displayName)===l);if(i){var o,n,a,t;return null==i||null===(o=i.fields)||void 0===o||null===(n=o.HideEditionSwitcher)||void 0===n||!n.value||!(null==i?void 0:null===(a=i.fields)||void 0===a?void 0:null===(t=a.HideEditionSwitcher)||void 0===t?void 0:t.value)}return!0},[e,l])}}]);

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.