1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[259],{44006:function(e,l,i){i.r(l),i.d(l,{Inforgraphics:function(){return I},getStaticProps:function(){return g}});var o=i(85893),d=i(67294),n=i(5817),t=i(69998),a=i(35187),u=i(32862),v=i(24707),r=i.n(v),s=i(5152),c=i.n(s),m=i(28508),p=i(22556);let h=c()(()=>i.e(9998).then(i.bind(i,39998)).then(e=>e.default),{loadableGenerated:{webpack:()=>[39998]},loading:()=>(0,o.jsx)(o.Fragment,{}),ssr:!1}),I=e=>{var l,i,v,r,s;let{sitecoreContext:c}=(0,u.z)(),{setShowLoader:I}=(0,d.useContext)(n.ZP),{t:g}=(0,p.QT)(),T=null==e?void 0:null===(l=e.section)||void 0===l?void 0:null===(i=l.response)||void 0===i?void 0:i.docs,[S,M]=(0,d.useState)(null==e?void 0:null===(v=e.data)||void 0===v?void 0:null===(r=v.response)||void 0===r?void 0:r.docs);(0,d.useEffect)(()=>{setTimeout(()=>{var e;null==h||null===(e=h.render)||void 0===e||e.preload()},2e3)},[]);let f=async e=>{var l;I(!0);let i=(null==c?void 0:c.language)?null==c?void 0:c.language:"",o=(0,a.SearchstaxParams)(""!==e?e:"*",t.DefaultSearchStaxParam.ROWS,t.DefaultSearchStaxParam.START,t.SearchStaxModelName.INFOGRAPHICS,i,"","",void 0),d=await (0,a.GetSelectData)(o).then(e=>(I(!1),e.data)).catch(e=>(I(!1),console.log(e),null));M(null==d?void 0:null===(l=d.response)||void 0===l?void 0:l.docs)};return(0,o.jsx)(m.default,{docs:T,getFilteredData:f,listItemsData:S,type:t.mediaTypes.Infographics,modalTitle:g("Infographic"),tooltipType:t.TooltipType.IMAGE,hideTooltip:!1,componentName:null==e?void 0:null===(s=e.rendering)||void 0===s?void 0:s.componentName})},g=async(e,l)=>{var o,d,n,u,v,s,c,m;let p=(null==l?void 0:null===(o=l.sitecore)||void 0===o?void 0:null===(d=o.context)||void 0===d?void 0:d.language)?null==l?void 0:null===(n=l.sitecore)||void 0===n?void 0:null===(u=n.context)||void 0===u?void 0:u.language:"",h=(0,a.SearchstaxParams)(t.DefaultSearchStaxParam.QUERY,t.DefaultSearchStaxParam.ROWS,t.DefaultSearchStaxParam.START,t.SearchStaxModelName.INFOGRAPHICS,p,"","titlecomputed_t,title_t,externalurl_t,thumbnailurlcomputed_s,itemtypenamecomputed_s,semanticscomputed_sm,uniqueid_t,inthistopicscomputed_s, coverimageurlcomputed_s,relativeurlcomputed_s",void 0),I=r().jssAppName.toLowerCase()!==t.Edition.VETERINARY.toLowerCase()||void 0,g=null==l?void 0:null===(v=l.sitecore)||void 0===v?void 0:null===(s=v.route)||void 0===s?void 0:null===(c=s.fields)||void 0===c?void 0:c.IncludeSections,T=null==g?void 0:null===(m=g.fields)||void 0===m?void 0:m.IncludedSections,S=(0,a.SearchstaxParams)(t.DefaultSearchStaxParam.QUERY,t.DefaultSearchStaxParam.ROWSFORCANONICAL,t.DefaultSearchStaxParam.START,t.SearchStaxModelName.MM_SECTION,p,"","uniqueid_t,titlecomputed_t,thumbnailurlcomputed_s",I,[],void 0,T),M=await i.e(2249).then(i.bind(i,82249)),[f,x]=await Promise.all([M.GetSelectDataFromServer(h).then(e=>e.data).catch(e=>(console.log(e),null)),M.GetSelectDataFromServer(S).then(e=>e.data).catch(e=>(console.log(e),null))]);return{data:f,section:x}};l.default=I},28508:function(e,l,i){i.r(l);var o=i(85893),d=i(67294),n=i(21521),t=i.n(n),a=i(69998),u=i(5817),v=i(32862),r=i(95344),s=i(64931),c=i(97371),m=i(96249),p=i(81123),h=i(22556),I=i(39332);let g=e=>{var l,i,n,g,T,S,M,f,x,y,D,_,C,E,w;let{media:N,theme:P,mediaObj:V}=(0,d.useContext)(u.ZP),{sitecoreContext:L}=(0,v.z)(),b=null==L?void 0:null===(l=L.route)||void 0===l?void 0:l.fields,R=(0,I.useSearchParams)(),j=R.toString(),{t:A}=(0,h.QT)(),F=null==L?void 0:null===(i=L.route)||void 0===i?void 0:null===(n=i.fields)||void 0===n?void 0:null===(g=n.DefaultSortOrder)||void 0===g?void 0:g.value,U=null==L?void 0:null===(T=L.route)||void 0===T?void 0:null===(S=T.fields)||void 0===S?void 0:S.SortOrderOptions,O=null==L?void 0:null===(M=L.route)||void 0===M?void 0:null===(f=M.fields)||void 0===f?void 0:f.ViewModes,B=(null==L?void 0:null===(x=L.route)||void 0===x?void 0:null===(y=x.fields)||void 0===y?void 0:null===(D=y.DefaultViewMode)||void 0===D?void 0:D.value)!==a.ViewModesType.LIST,k=null==e?void 0:e.docs,q=(null==j?void 0:j.includes(a.FilterType.FILTER_LIST))||(null==j?void 0:j.includes(a.FilterType.FILTER_GRID)),H=null==j?void 0:j.includes(a.FilterType.FILTER_LIST),G=null==L?void 0:null===(_=L.route)||void 0===_?void 0:null===(C=_.fields)||void 0===C?void 0:C.ContentTypeFilter,Q=null!=F&&!!F.includes("ByCreationDate"),[Y,W]=(0,d.useState)(0),[$,z]=(0,d.useState)(!1),[Z,K]=(0,d.useState)(!1),[J,X]=(0,d.useState)(!0),[ee,el]=(0,d.useState)(!1),[ei,eo]=(0,d.useState)(!1),[ed,en]=(0,d.useState)(!1),[et,ea]=(0,d.useState)(!1),[eu,ev]=(0,d.useState)(""),[er,es]=(0,d.useState)(B),[ec,em]=(0,d.useState)([]),[ep,eh]=(0,d.useState)([]),[eI,eg]=(0,d.useState)([]),[eT,eS]=(0,d.useState)(""),eM=(0,d.useRef)(null==e?void 0:e.listItemsData),ef=(0,d.useRef)(window.location.search.includes("keyword")),[ex,ey]=(0,d.useState)((()=>{let e=j||window.location.search.replace(/^\?/,"");return(null==e?void 0:e.includes(a.FilterType.FILTER_ALPHABETICALLY))?a.FilterType.FILTER_ALPHABETICALLY:(null==F?void 0:F.includes(a.FilterType.FILTER_ALPHABET))?a.FilterType.FILTER_ALPHABETICALLY:""})()),[eD,e_]=(0,d.useState)(""),[eC,eE]=(0,d.useState)("");(0,d.useEffect)(()=>{e_("")},[eT]),(0,d.useEffect)(()=>{var e,l;""===j&&(j=window.location.search),eS((null==j?void 0:j.includes("keyword"))&&null!==(l=null===(e=null==R?void 0:R.get("keyword"))||void 0===e?void 0:e.replace(/\+/g," "))&&void 0!==l?l:"")},[""!==j]);let[ew,eN]=(0,d.useState)(!1);(0,d.useEffect)(()=>{let l=j||window.location.search.replace(/^\?/,"");if((null==l?void 0:l.includes("keyword"))&&!ew){let i=new URLSearchParams(l),o=i.get("keyword")||"";null==e||e.getFilteredData(o)}},[j]),(0,d.useEffect)(()=>(eu&&window.addEventListener("scroll",()=>ev("")),()=>{window.removeEventListener("scroll",()=>ev(""))}),[eu]),(0,d.useEffect)(()=>{var e,l,i;!0===ed?K(!1):!0===Z&&en(!1);let o=(null==L?void 0:null===(e=L.route)||void 0===e?void 0:null===(l=e.fields)||void 0===l?void 0:null===(i=l.DefaultViewMode)||void 0===i?void 0:i.value)!==void 0;o&&(el(!0),q?(ea(!H),es(!H)):B?(ea(!0),es(!0)):!1===B&&window.location.search.includes("mode=grid")?(ea(!0),es(!0)):(ea(!1),es(!1)))},[ed,Z,B,L,q,H]);let eP=(0,d.useCallback)(()=>{var l;eo(!0);let i=A("CombinedAlphabets"),o=(0,p.kD)(null==e?void 0:e.listItemsData,i,(null==L?void 0:L.language)?null==L?void 0:L.language:"en");eg(o),W(null==e?void 0:null===(l=e.listItemsData)||void 0===l?void 0:l.length);let d=[];o&&o.length>0&&(null==o||o.map(e=>{var l,i;(null==e?void 0:null===(l=e.filteredItem)||void 0===l?void 0:l.length)>0&&d.push(null==e?void 0:null===(i=e.image)||void 0===i?void 0:i.SectionName)})),eh(d)},[null==e?void 0:e.listItemsData,A]),eV=(0,d.useCallback)(()=>{var l,i;eo(!1);let o=(0,p.ro)(k,null==e?void 0:e.listItemsData);Array.isArray(null==o?void 0:o.itemArray)&&(null==o||null===(l=o.itemArray)||void 0===l||l.sort((e,l)=>{var i,o,d,n;return(null==e?void 0:null===(i=e.image)||void 0===i?void 0:i.SectionName)>(null==l?void 0:null===(o=l.image)||void 0===o?void 0:o.SectionName)?1:(null==e?void 0:null===(d=e.image)||void 0===d?void 0:d.SectionName)<(null==l?void 0:null===(n=l.image)||void 0===n?void 0:n.SectionName)?-1:0}));let d=null==o?void 0:null===(i=o.sectionListHeaders)||void 0===i?void 0:i.sort();em(d),eg(null==o?void 0:o.itemArray),W(null==o?void 0:o.sectionItemCount)},[k,null==e?void 0:e.listItemsData]),eL=(0,d.useCallback)(()=>{let l=(0,p.Nk)(null==e?void 0:e.listItemsData);eg([{filteredItem:l,image:{SectionName:"",SectionImage:{height:"",width:"",alt:"",src:"",title:""}}}]),W(null==l?void 0:l.length)},[null==e?void 0:e.listItemsData]);(0,d.useEffect)(()=>{ef.current&&(null==e?void 0:e.listItemsData)===eM.current||((null==e?void 0:e.type)===(null===a.mediaTypes||void 0===a.mediaTypes?void 0:a.mediaTypes.Infographics)?ex===a.FilterType.FILTER_ALPHABETICALLY?eP():(null==ex?void 0:ex.includes(a.FilterType.FILTER_SECTIONWISE))?eV():eL():ex===a.FilterType.FILTER_ALPHABETICALLY?eP():eV())},[ex,eP,eL,eV,null==e?void 0:e.type]),(0,d.useEffect)(()=>
1{if(ew&&eT){let e=eI.filter(e=>e.filteredItem&&e.filteredItem.some(e=>{var l;return null===(l=e.Title)||void 0===l?void 0:l.toLowerCase().includes(eT.toLowerCase())}));e.length>0?e_(e.map(e=>"".concat(e.image.SectionName," (").concat(e.filteredItem.length,")")).join(", ")):e_(A("NoResults"))}else ew&&e_("")},[eI,ew]);let eb=e=>{ev(e)},eR=e=>{ev(e)},ej=e=>{en(e)},eA=e=>{ev(""),eS(e)},eF=()=>{eS(""),null==e||e.getFilteredData("*"),eE(""),setTimeout(()=>{eE(A("ClearSuccessfull"))},100)},eU=e=>{ey(e)},eO=e=>{K(e)},eB=()=>{""!==eT?null==e||e.getFilteredData(eT):null==e||e.getFilteredData("*"),eN(!0)},ek=e=>{er!==e&&es(e)},eq=l=>{ev(""),(null==e?void 0:e.getshowByTypeData)&&(null==e||e.getshowByTypeData(l,eT))},eH={[null===a.mediaTypes||void 0===a.mediaTypes?void 0:a.mediaTypes.Image]:null===a.mediaTypes||void 0===a.mediaTypes?void 0:a.mediaTypes.ContentType};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"".concat(t().list," ").concat(N!==a.Media.MEDIA_NONE&&!0==$&&"hideOnPrint"),"data-testid":"resourcePage",children:(0,o.jsxs)("div",{className:"".concat(t().listHeader," ").concat(P===a.Theme.LIGHT&&t().listHeaderBackground),children:[(0,o.jsxs)("div",{className:t().expandAllIcon,children:[(0,o.jsx)("button",{onClick:()=>X(!J),className:t().expandCollapseButton,"aria-label":null==e?void 0:e.componentName,"aria-expanded":J?"true":"false","data-testid":"expandAll",children:(0,o.jsx)("div",{className:" ".concat(t().expandCollapseIcon," ").concat(J?t().collapseIcon:t().expandIcon)})}),(0,o.jsxs)("h1",{className:"".concat(t().listTitle," ").concat((null==V?void 0:V.isClientTheme)&&"clientFontColor"),children:[null==b?void 0:null===(E=b.pageTitle)||void 0===E?void 0:E.value," ","("+Y+")"]})]}),(0,o.jsx)("div",{id:"status-message",role:"status","aria-live":"polite","aria-atomic":"true",className:t().visuallyHidden,children:eD}),(0,o.jsx)("div",{id:"clear-success-message",role:"status","aria-live":"polite","aria-atomic":"true",className:t().clearSuccess,children:eC}),ee&&(0,o.jsx)(r.default,{sectionListData:ec,getSelectedSection:eb,getIsSelected:ej,getSelectedAlphabet:eR,value:eT,onChange:eA,onClick:eF,getSelectedButton:eU,getIsRefineSelected:eO,getThumbNailView:ek,isGoToSectionorLetter:F,toShowThumbNailAndList:O,toShowViewBy:U,handleFilter:eB,isThumbNailView:et,selectedAlphabets:ep,isContextLoaded:ee,contentTypeFilter:G,selectedType:eq,isByCreationDate:Q,queryParam:(null==e?void 0:e.type)?eH[e.type]:void 0})]})}),Array.isArray(eI)&&(null==eI?void 0:eI.map((l,i)=>{var d,n,a;return(0,o.jsx)("div",{className:t().listWrap,children:(null==l?void 0:null===(d=l.filteredItem)||void 0===d?void 0:d.length)>0?Q?ee&&J&&(0,o.jsx)(c.default,{component:"resourceThumbnail",setShowStandAlone:z,sectionImage:null==l?void 0:l.image,sectionList:null==l?void 0:l.filteredItem,showCarosual:!0,genericImage:!1,genericImageData:"",thumbNailView:er,modalTitle:null==e?void 0:e.modalTitle,hideTooltip:!1,isAlphabet:ei,isByCreationDate:Q}):(0,o.jsx)(s.default,{listHeader:null==l?void 0:l.image,itemCount:null==l?void 0:null===(n=l.filteredItem)||void 0===n?void 0:n.length,expandAll:J,id:null==l?void 0:null===(a=l.image)||void 0===a?void 0:a.SectionName,scrollToSection:eu,isResourceListingPage:!0,children:ee&&(0,o.jsx)(c.default,{component:"resourceThumbnail",componentType:null==e?void 0:e.type,showCarosual:(null==e?void 0:e.showCarousel)!==!1,genericImage:null!=e&&!!e.genericImage,hideTooltip:null==e?void 0:e.hideTooltip,genericImageData:(null==e?void 0:e.genericImageData)?null==e?void 0:e.genericImageData:"",thumbNailView:er,setShowStandAlone:z,sectionImage:null==l?void 0:l.image,sectionList:null==l?void 0:l.filteredItem,modalTitle:null==e?void 0:e.modalTitle,tooltipType:null==e?void 0:e.tooltipType,isAlphabet:ei,showPlayIcon:null==e?void 0:e.showPlayIcon,isBiodigital:null==e?void 0:e.isBiodigital})}):null},(null==e?void 0:e.type)+i)})),(null==e?void 0:e.listItemsData)&&(null==e?void 0:null===(w=e.listItemsData)||void 0===w?void 0:w.length)===0&&(0,o.jsx)(m.default,{})]})};l.default=g},31213:function(e,l,i){i.r(l),i.d(l,{Default:function(){return t}});var o=i(85893);
1i(67294);var d=i(23042);l.default={title:"Components/Procedure",component:d.Procedure};let n=e=>(0,o.jsx)(d.Procedure,{...e}),t=n.bind({});t.args={params:{name:"Procedure & Exams"},rendering:{uid:"{0}",componentName:"Procedure & Exams"},data:{response:{docs:[{titlecomputed_t:"Blood Disorder",externalurl_t:"http://www.abc.com",thumbnailurlcomputed_s:"http://www.abc.com",semanticscomputed_sm:["vabc"],itemtypenamecomputed_s:"abc",uniqueid_t:"12345",isrestricted_b:!0,vasontcopyright_t:"copy",id_t:"12345",inthistopicscomputed_s:"{{}}",videotype_s:"Youtube"}]}},section:{response:{docs:[{uniqueid_t:"abc",titlecomputed_t:"Blood Disorder",thumbnailurlcomputed_s:""}]}}}},23042:function(e,l,i){i.r(l),i.d(l,{Procedure:function(){return m},getStaticProps:function(){return p}});var o=i(85893),d=i(32862),n=i(35187),t=i(67294),a=i(5817),u=i(69998),v=i(24707),r=i.n(v),s=i(28508),c=i(22556);let m=e=>{var l,v,r,m,p;let{sitecoreContext:h}=(0,d.z)(),{setShowLoader:I}=(0,t.useContext)(a.ZP),{t:g}=(0,c.QT)(),T=null==e?void 0:null===(l=e.section)||void 0===l?void 0:null===(v=l.response)||void 0===v?void 0:v.docs,[S,M]=(0,t.useState)(null==e?void 0:null===(r=e.data)||void 0===r?void 0:null===(m=r.response)||void 0===m?void 0:m.docs),f=async e=>{var l,o;I(!0);let d=(null==h?void 0:h.language)?null==h?void 0:h.language:"",t=(0,n.SearchstaxParams)(e,u.DefaultSearchStaxParam.ROWS,u.DefaultSearchStaxParam.START,u.SearchStaxModelName.PROCEDURESLIST,d,"","",void 0),a=await (0,n.GetSelectData)(t).then(e=>(I(!1),e.data)).catch(e=>(I(!1),console.log(e),null)),v=await Promise.all([i.e(3808),i.e(2019)]).then(i.bind(i,21510)),r=a.response.docs.map(e=>(e.titlecomputed_t=v.convert(null==e?void 0:e.titlecomputed_t,{wordwrap:130}),e));(null==a?void 0:null===(l=a.response)||void 0===l?void 0:l.docs)&&(a.response.docs=r),M(null==a?void 0:null===(o=a.response)||void 0===o?void 0:o.docs)},x=async(e,l)=>{var i;let o=(null==h?void 0:h.language)?null==h?void 0:h.language:"",d="";e!==g("All")&&(d=e);let t=(0,n.SearchstaxParams)(l+"*",u.DefaultSearchStaxParam.ROWS,u.DefaultSearchStaxParam.START,u.SearchStaxModelName.VIDEO,o,"","",void 0,[],d),a=await (0,n.GetSelectData)(t).then(e=>e.data).catch(e=>(console.log(e),null));M(null==a?void 0:null===(i=a.response)||void 0===i?void 0:i.docs)};return(0,o.jsx)(s.default,{docs:T,getFilteredData:f,listItemsData:S,type:u.mediaTypes.Video,modalTitle:g("Video"),tooltipType:u.TooltipType.IMAGE,hideTooltip:!1,componentName:null==e?void 0:null===(p=e.rendering)||void 0===p?void 0:p.componentName,getshowByTypeData:x,showPlayIcon:!0})},p=async(e,l)=>{var o,d,t,a,v,s,c,m;let p=(null==l?void 0:null===(o=l.sitecore)||void 0===o?void 0:null===(d=o.context)||void 0===d?void 0:d.language)?null==l?void 0:null===(t=l.sitecore)||void 0===t?void 0:null===(a=t.context)||void 0===a?void 0:a.language:"",h=(0,n.SearchstaxParams)(u.DefaultSearchStaxParam.QUERY,u.DefaultSearchStaxParam.ROWS,u.DefaultSearchStaxParam.START,u.SearchStaxModelName.PROCEDURESLIST,p,"","titlecomputed_t,externalurl_t,thumbnailurlcomputed_s,relativeurlcomputed_s,semanticscomputed_sm,itemtypenamecomputed_s,uniqueid_t,isrestricted_b,vasontcopyright_t,id_t,inthistopicscomputed_s,_templatename,videotype_s",void 0),I=r().jssAppName.toLowerCase()!==u.Edition.VETERINARY.toLowerCase()||void 0,g=null==l?void 0:null===(v=l.sitecore)||void 0===v?void 0:null===(s=v.route)||void 0===s?void 0:null===(c=s.fields)||void 0===c?void 0:c.IncludeSections,T=null==g?void 0:null===(m=g.fields)||void 0===m?void 0:m.IncludedSections,S=(0,n.SearchstaxParams)(u.DefaultSearchStaxParam.QUERY,u.DefaultSearchStaxParam.ROWSFORCANONICAL,u.DefaultSearchStaxParam.START,u.SearchStaxModelName.MM_SECTION,p,"","uniqueid_t,titlecomputed_t,thumbnailurlcomputed_s",I,[],void 0,T),M=await i.e(2249).then(i.bind(i,82249)),[f,x]=await Promise.all([M.GetSelectDataFromServer(h).then(e=>e.data).catch(e=>(console.log(e),null)),M.GetSelectDataFromServer(S).then(e=>e.data).catch(e=>(console.log(e),null))]),y=await Promise.all([i.e(3808),i.e(2019)]).then(i.bind(i,21510)),D=f.response.docs.map(e=>(e.titlecomputed_t=y.convert(null==e?void 0:e.titlecomputed_t,{wordwrap:130}),e));return f.response.docs=D,{data:f,section:x}};l.default=m},72776:function(e,l,i){i.r(l),i.d(l,{Default:function(){return t}});var o=i(85893);
1i(67294);var d=i(41561);l.default={title:"Components/Video",component:d.Video};let n=e=>(0,o.jsx)(d.Video,{...e}),t=n.bind({});t.args={params:{name:"Video"},rendering:{uid:"{0}",componentName:"Video"},data:{response:{docs:[{titlecomputed_t:"Blood Disorder",externalurl_t:"http://www.abc.com",thumbnailurlcomputed_s:"http://www.abc.com",semanticscomputed_sm:["vabc"],itemtypenamecomputed_s:"abc",uniqueid_t:"12345",isrestricted_b:!0,vasontcopyright_t:"copy",id_t:"12345",inthistopicscomputed_s:"{{}}",videotype_s:"Youtube"}]}},section:{response:{docs:[{uniqueid_t:"abc",titlecomputed_t:"Blood Disorder",thumbnailurlcomputed_s:""}]}}}},41561:function(e,l,i){i.r(l),i.d(l,{Video:function(){return I},getStaticProps:function(){return g}});var o=i(85893),d=i(32862),n=i(35187),t=i(67294),a=i(69998),u=i(24707),v=i.n(u),r=i(5152),s=i.n(r),c=i(28508),m=i(5817),p=i(22556);let h=s()(()=>Promise.all([i.e(7180),i.e(7232)]).then(i.bind(i,97232)).then(e=>e.default),{loadableGenerated:{webpack:()=>[97232]},loading:()=>(0,o.jsx)(o.Fragment,{}),ssr:!1}),I=e=>{var l,i,u,v,r;let{sitecoreContext:s}=(0,d.z)(),{setShowLoader:I}=(0,t.useContext)(m.ZP),{t:g}=(0,p.QT)(),T=null==e?void 0:null===(l=e.section)||void 0===l?void 0:null===(i=l.response)||void 0===i?void 0:i.docs,[S,M]=(0,t.useState)(null==e?void 0:null===(u=e.data)||void 0===u?void 0:null===(v=u.response)||void 0===v?void 0:v.docs);(0,t.useEffect)(()=>{setTimeout(()=>{var e;null==h||null===(e=h.render)||void 0===e||e.preload()},2e3)},[]);let f=async e=>{var l;I(!0);let i=(null==s?void 0:s.language)?null==s?void 0:s.language:"",o=(0,n.SearchstaxParams)(e,a.DefaultSearchStaxParam.ROWS,a.DefaultSearchStaxParam.START,a.SearchStaxModelName.VIDEO,i,"","",void 0),d=await (0,n.GetSelectData)(o).then(e=>(I(!1),e.data)).catch(e=>(I(!1),console.log(e),null));M(null==d?void 0:null===(l=d.response)||void 0===l?void 0:l.docs)},x=async(e,l)=>{var i;let o=(null==s?void 0:s.language)?null==s?void 0:s.language:"",d="";"All"!==e&&(d=e);let t=(0,n.SearchstaxParams)(l+"*",a.DefaultSearchStaxParam.ROWS,a.DefaultSearchStaxParam.START,a.SearchStaxModelName.VIDEO,o,"","",void 0,[],d),u=await (0,n.GetSelectData)(t).then(e=>e.data).catch(e=>(console.log(e),null));M(null==u?void 0:null===(i=u.response)||void 0===i?void 0:i.docs)};return(0,o.jsx)(c.default,{docs:T,getFilteredData:f,listItemsData:S,type:a.mediaTypes.Video,modalTitle:g("Video"),tooltipType:a.TooltipType.IMAGE,hideTooltip:!1,componentName:null==e?void 0:null===(r=e.rendering)||void 0===r?void 0:r.componentName,getshowByTypeData:x,showPlayIcon:!0})},g=async(e,l)=>{var o,d,t,u,r,s,c,m;let p=(null==l?void 0:null===(o=l.sitecore)||void 0===o?void 0:null===(d=o.context)||void 0===d?void 0:d.language)?null==l?void 0:null===(t=l.sitecore)||void 0===t?void 0:null===(u=t.context)||void 0===u?void 0:u.language:"",h=(0,n.SearchstaxParams)(a.DefaultSearchStaxParam.QUERY,a.DefaultSearchStaxParam.ROWS,a.DefaultSearchStaxParam.START,a.SearchStaxModelName.VIDEO,p,"","titlecomputed_t,externalurl_t,thumbnailurlcomputed_s,semanticscomputed_sm,relativeurlcomputed_s,itemtypenamecomputed_s,uniqueid_t,isrestricted_b,vasontcopyright_t,id_t,inthistopicscomputed_s,descriptioncomputed_t,description_t,_templatename,videotype_s",void 0),I=v().jssAppName.toLowerCase()!==a.Edition.VETERINARY.toLowerCase()||void 0,g=null==l?void 0:null===(r=l.sitecore)||void 0===r?void 0:null===(s=r.route)||void 0===s?void 0:null===(c=s.fields)||void 0===c?void 0:c.IncludeSections,T=null==g?void 0:null===(m=g.fields)||void 0===m?void 0:m.IncludedSections,S=(0,n.SearchstaxParams)(a.DefaultSearchStaxParam.QUERY,a.DefaultSearchStaxParam.ROWSFORCANONICAL,a.DefaultSearchStaxParam.START,a.SearchStaxModelName.MM_SECTION,p,"","uniqueid_t,titlecomputed_t,thumbnailurlcomputed_s",I,[],void 0,T),M=await i.e(2249).then(i.bind(i,82249)),[f,x]=await Promise.all([M.GetSelectDataFromServer(h).then(e=>e.data).catch(e=>(console.log(e),null)),M.GetSelectDataFromServer(S).then(e=>e.data).catch(e=>(console.log(e),null))]);return{data:f,section:x}};l.default=I},87150:function(e,l,i){i.r(l)},52423:function(e,l,i){i.r(l),i.d(l,{VideoWidget:function(){return S}});var o=i(85893),d=i(67294),n=i(5152),t=i.n(n),a=i(34350),u=i(56505),v=i(5224),r=i(45917),s=i.n(r),c=i(22556),m=i(5817),p=i(10627),h=i(24230),I=i(69998);let g=t()(()=>Promise.resolve().then(i.bind(i,58483)).then(e=>e.default),{loadableGenerated:{webpack:()=>[58483]},loading:()=>(0,o.jsx)(o.Fragment,{}),ssr:!1}),T=t()(()=>Promise.resolve().then(i.bind(i,97232)).then(e=>e.default),{loadableGenerated:{webpack:()=>[97232]},loading:()=>(0,o.jsx)(o.Fragment,{}),ssr:!1}),S=e=>{var l,i,n,t,r,S,M,f,x,y,D,_,C,E,w,N,P,V,L,b,R,j,A,F,U,O,B,k,q;let H;let{t:G}=(0,c.QT)(),[Q,Y]=(0,d.useState)(!1),[W,$]=(0,d.useState)(!1),[z,Z]=(0,d.useState)(0),K=null==e?void 0:e.data,{edition:J}=(0,d.useContext)(m.ZP);(0,d.useEffect)(()=>{setTimeout(()=>{var e;null==T||null===(e=T.render)||void 0===e||e.preload()},2e3)},[]);let X=(H=[],K&&(H=null==K?void 0:K.map(e=>{var l,i,o;return{Title:null==e?void 0:e.Title,Description:null==e?void 0:e.Description,ContentType:null==e?void 0:e.ContentType,Image:{src:null==e?void 0:null===(l=e.VideoStillURL)||void 0===l?void 0:l.value,alt:null==e?void 0:null===(i=e.Title)||void 0===i?void 0:i.value},ItemId:null==e?void 0:null===(o=e.VideoId)||void 0===o?void 0:o.value,UniqueId:null==e?void 0:e.UniqueId,topicIds:null==e?void 0:e.topicIds,ShareUrlTitle:null==e?void 0:e.ShareUrlTitle}})),H),ee=e=>{var l,i,o,d;let n=null===(l=K[z])||void 0===l?void 0:null===(i=l.Title)||void 0===i?void 0:i.value,t=null===(o=K[z])||void 0===o?void 0:null===(d=o.uniqueID)||void 0===d?void 0:d.value;(0,p.oR)("Videos",n,J,t),Y(e),$(!0)};return(0,o.jsxs)("div",{"data-testid":"VideoWidget",children:[(0,o.jsx)("div",{"data-testid":"ArticleWidget",className:s().articleTitleMobile,children:(0,o.jsx)(v.default,{title:null==e?void 0:e.titleToDisplay,viewAllLink:null==e?void 0:e.viewAllLink,linkName:G("ViewAll")})}),X.length>1?(0,o.jsx)(a.default,{data:X,setShow:()=>ee(!0),SetSelectedMedia:e=>Z(e),contentType:null==e?void 0:e.contentType,viewAllLink:null==e?void 0:e.viewAllLink,titleToDisplay:null==e?void 0:e.titleToDisplay,ShowDescription:null==e?void 0:e.ShowDescription,showPlayIcon:!0,Position:null==e?void 0:e.Position,type:null==e?void 0:e.type,onClickModal:ee}
1):(0,o.jsx)("div",{"data-testid":"ThumbnailClick",children:(0,o.jsx)(u.default,{index:0,alt:(null===(l=X[0])||void 0===l?void 0:null===(i=l.Image)||void 0===i?void 0:i.alt)?null===(n=X[0])||void 0===n?void 0:null===(t=n.Image)||void 0===t?void 0:t.alt:"",src:null===(r=X[0])||void 0===r?void 0:null===(S=r.Image)||void 0===S?void 0:S.src,contentType:null==e?void 0:e.contentType,title:null===(M=X[0])||void 0===M?void 0:M.Title,description:null===(f=X[0])||void 0===f?void 0:null===(x=f.Description)||void 0===x?void 0:x.value,ShowDescription:null==e?void 0:e.ShowDescription,showPlayIcon:!0,Position:null==e?void 0:e.Position,type:null==e?void 0:e.type,setSelectedMedia:Z,onClickModal:ee,showPopup:!0})},"imagevideo"+(null===(y=X[0])||void 0===y?void 0:y.Title)),W&&(0,o.jsx)(g,{show:Q,handleClose:()=>Y(!1),modalTitle:G("Video"),size:"xl",showFullScreen:!0,children:(0,o.jsx)(T,{content:{Title:null===(w=K[z])||void 0===w?void 0:null===(N=w.Title)||void 0===N?void 0:N.value,Description:null===(P=K[z])||void 0===P?void 0:null===(V=P.Description)||void 0===V?void 0:V.value,VideoId:null===(L=K[z])||void 0===L?void 0:null===(b=L.VideoId)||void 0===b?void 0:b.value,Credits:null===(R=K[z])||void 0===R?void 0:null===(j=R.Credits)||void 0===j?void 0:j.value,IsRestricted:(null===(A=K[z])||void 0===A?void 0:null===(F=A.IsRestricted)||void 0===F?void 0:F.value)==="1",PlayerId:"",UniqueId:null===(U=K[z])||void 0===U?void 0:U.UniqueId,ItemId:"",path:"",topicIds:{targetItems:(0,h.H)(null===(O=K[z])||void 0===O?void 0:null===(B=O.topicIds)||void 0===B?void 0:B.targetItems)},ShareUrlTitle:null===(k=K[z])||void 0===k?void 0:null===(q=k.ShareUrlTitle)||void 0===q?void 0:q.value,ContentType:I.Media.Video},isShareRestricted:(null===(D=K[z])||void 0===D?void 0:null===(_=D.IsRestricted)||void 0===_?void 0:_.value)==="1",videoImageSrc:null===(C=X[0])||void 0===C?void 0:null===(E=C.Image)||void 0===E?void 0:E.src})})]})};l.default=(0,d.memo)(S)},87785:function(e,l,i){i.r(l),i.d(l,{TopicVideo:function(){return E}});var o=i(85893),d=i(67294),n=i(69998),t=i(58483),a=i(44770),u=i(5152),v=i.n(u),r=i(7023),s=i(20693),c=i(21738),m=i.n(c),p=i(16607),h=i(32862),I=i(88617),g=i(10627),T=i(5817),S=i(82648),M=i(22556),f=i(89755),x=i.n(f),y=i(65313),D=i(19006),_=i(52498);let C=v()(()=>Promise.all([i.e(7180),i.e(7232)]).then(i.bind(i,97232)).then(e=>e.default),{loadableGenerated:{webpack:()=>[97232]},loading:()=>(0,o.jsx)(o.Fragment,{}),ssr:!1}),E=e=>{var l,i,u,v,c,f,E,w,N,P,V,L,b,R,j,A,F,U,O,B,k,q,H,G,Q,Y,W,$,z,Z,K,J,X,ee,el,ei,eo,ed,en,et,ea,eu,ev,er,es,ec,em,ep;let[eh,eI]=(0,d.useState)(!1),{sitecoreContext:eg}=(0,h.z)(),[eT,eS]=(0,d.useState)([]),{mediaObj:eM,edition:ef,imageLoadingPriority:ex,pinterestLoadingPriority:ey}=(0,d.useContext)(T.ZP),{t:eD}=(0,M.QT)(),[e_,eC]=(0,d.useState)(""),eE=(0,d.useRef)(null);(0,d.useEffect)(()=>{setTimeout(()=>{var e;null==C||null===(e=C.render)||void 0===e||e.preload()},2e3)},[]);let ew=async()=>{var l,i,o,d,n,t,a,u,v,r,s,c,m,p,h,g,T,S,M,f;let x={language:null==eg?void 0:eg.language,id:null==e?void 0:null===(l=e.MultiMediaModel)||void 0===l?void 0:l.ItemId},y=await (0,_.d)(I.inTheseTopics,x),D={props:{datasource:y}};if((null==D?void 0:null===(i=D.props)||void 0===i?void 0:null===(o=i.datasource)||void 0===o?void 0:null===(d=o.search)||void 0===d?void 0:null===(n=d.results)||void 0===n?void 0:n.length)>0){let l=-1;null===(t=null==D?void 0:null===(a=D.props)||void 0===a?void 0:null===(u=a.datasource)||void 0===u?void 0:null===(v=u.search)||void 0===v?void 0:v.results[0])||void 0===t||null===(r=t.field)||void 0===r||r.targetItems.map((i,o)=>{var d,n;(null==i?void 0:null===(d=i.id)||void 0===d?void 0:d.toLowerCase())===(null==e?void 0:null===(n=e.topicId)||void 0===n?void 0:n.toLowerCase())&&(l=o)}),-1!==l&&(null===(s=null==D?void 0:null===(c=D.props)||void 0===c?void 0:null===(m=c.datasource)||void 0===m?void 0:null===(p=m.search)||void 0===p?void 0:p.results[0])||void 0===s||null===(h=s.field)||void 0===h||h.targetItems.splice(l,1)),eS(null===(g=null==D?void 0:null===(T=D.props)||void 0===T?void 0:null===(S=T.datasource)||void 0===S?void 0:null===(M=S.search)||void 0===M?void 0:M.results[0])||void 0===g?void 0:null===(f=g.field)||void 0===f?void 0:f.targetItems)}},eN=async()=>{await ew(),eI(!0),eC(eh?"collapsed":"expanded"),eE.current&&clearTimeout(eE.current),eE.current=setTimeout(()=>eC(""),2e3)},eP=()=>{var l,i,o;(0,g.oR)(null==e?void 0:null===(l=e.MultiMediaModel)||void 0===l?void 0:l.MediaType,null==e?void 0:null===(i=e.MultiMediaModel)||void 0===i?void 0:i.Title,ef,null==e?void 0:null===(o=e.MultiMediaModel)||void 0===o?void 0:o.UniqueId)},eV=(0,D.g)(null==e?void 0:null===(l=e.MultiMediaModel)||void 0===l?void 0:l.Type,null==e?void 0:null===(i=e.MultiMediaModel)||void 0===i?void 0:i.VideoId,null==e?void 0:null===(u=e.MultiMediaModel)||void 0===u?void 0:u.IsRestricted,null==eg?void 0:eg.language),{domain:eL}=(0,d.useContext)(T.ZP),eb=(0,S.GetExcludeFromBrand)(null==e?void 0:e.ExcludeFromBrand,eL),eR=e=>e.replace(/<\/?[^>]+(>|$)/g,""),ej=(null==e?void 0:null===(v=e.MultiMediaModel)||void 0===v?void 0:v.Title)||"",eA=(null==e?void 0:null===(c=e.MultiMediaModel)||void 0===c?void 0:c.Placement)===n.MultiMediaPlacement.SIDELINE?((e,l)=>{let i=eR(e);if(i.length<=l)return e;let o="",d=0,n=!1;for(let i=0;i<e.length&&("<"===e[i]&&(n=!0),!n&&d++,">"===e[i]&&(n=!1),o+=e[i],!(d>=l));i++);return o+"..."})(ej,30):ej;return(0,o.jsxs)(o.Fragment,{children:[eb?null:(0,o.jsxs)("div",{"data-testid":"topicVideo",className:"".concat(m().topicVideoComponent," ").concat(e.themeWithEdition," ").concat(!(null==e?void 0:null===(f=e.mediaType)||void 0===f?void 0:f.includes(n.Media.MEDIA_NONE))&&m().mediaNotNone," ").concat(e.isnutshell&&m().nutShelltopicList),children:[(0,o.jsx)("div",{className:m().ariaAnnouncement,"aria-live":"polite",children:e_}),(0,o.jsxs)("div",{className:"".concat(m().topicVideoContainer," ").concat((null==e?void 0:null===(E=e.MultiMediaModel)||void 0===E?void 0:E.Placement)===n.MultiMediaPlacement.SIDELINE?m().topicVideoContainerSideline:m().topicVideoContainerInline," ").concat((null==e?void 0:null===(w=e.mediaType)||void 0===w?void 0:w.includes("media-print"))&&m().topicVideomediaNotNone," printBreakInside ").concat((null==e?void 0:null===(N=e.MultiMediaModel)||void 0===N?void 0:N.Placement)!==n.MultiMediaPlacement.SIDELINE?"innerCurvedBorder":""),id:null==e?void 0:null===(P=e.MultiMediaModel)||void 0===P?void 0:P.UniqueId,tabIndex:(null==e?void 0:null===(V=e.MultiMediaModel)||void 0===V?void 0:V.Placement)===n.MultiMediaPlacement.SIDELINE?0:-1,onKeyUp:l=>{if(13===l.keyCode||32==l.keyCode){var i;(null==e?void 0:null===(i=e.MultiMediaModel)||void 0===i?void 0:i.Placement)===n.MultiMediaPlacement.SIDELINE&&eN(),eP()}},onClick:()=>{var l;(null==e?void 0:null===(l=e.MultiMediaModel)||void 0===l?void 0:l.Placement)===n.MultiMediaPlacement.SIDELINE&&eN(),eP()},role:"button","aria-expanded":(null==e?void 0:null===(L=e.MultiMediaModel)||void 0===L?void 0:L.Placement)===n.MultiMediaPlacement.SIDELINE?"fal
1se":void 0,"aria-label":(null==e?void 0:null===(b=e.MultiMediaModel)||void 0===b?void 0:b.Placement)===n.MultiMediaPlacement.SIDELINE?((null==e?void 0:null===(R=e.MultiMediaModel)||void 0===R?void 0:R.Title)?null==e?void 0:null===(j=e.MultiMediaModel)||void 0===j?void 0:j.Title:"")+eD("ExpandPopup")+eD("Video"):"",children:[(0,o.jsxs)("div",{className:"".concat(m().topicVideoHeader," ").concat((null==e?void 0:null===(A=e.MultiMediaModel)||void 0===A?void 0:A.Placement)!==n.MultiMediaPlacement.SIDELINE&&m().topicVideoHeaderInline),children:[(0,o.jsx)("div",{className:m().topicVideoTitleContainer,children:""!==eA.trim()&&(0,o.jsx)("span",{className:"".concat(m().topicVideoTitle," ").concat((null==eM?void 0:eM.isClientTheme)&&"clientFontColor"),dangerouslySetInnerHTML:{__html:eA}})}),(null==e?void 0:null===(F=e.MultiMediaModel)||void 0===F?void 0:F.Placement)===n.MultiMediaPlacement.SIDELINE&&(0,o.jsx)(r.ExpandButtonComponent,{handleClick:()=>eN(),appEdition:null==e?void 0:e.appEdition})]}),(0,o.jsx)("div",{className:m().videoThumbnail,children:(null==e?void 0:null===(U=e.MultiMediaModel)||void 0===U?void 0:U.Placement)===n.MultiMediaPlacement.SIDELINE?(0,o.jsx)("div",{onClick:()=>eN(),className:"".concat(m().videoThumbnailContainer," ").concat((null==e?void 0:null===(O=e.mediaType)||void 0===O?void 0:O.includes("media-print"))&&m().disableLink),tabIndex:-1,children:(0,o.jsx)(p.default,{index:0,src:null==e?void 0:null===(B=e.MultiMediaModel)||void 0===B?void 0:B.ImageUrl,contentType:eD("Video"),title:{value:""},description:"",showPlayIcon:!0,mediaType:null==e?void 0:e.mediaType,priority:null==e?void 0:e.priority,isShareRestricted:null==e?void 0:null===(k=e.MultiMediaModel)||void 0===k?void 0:k.IsRestricted})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:m().videoIframeContainer,children:(0,o.jsx)(a.default,{src:eV,title:null==e?void 0:null===(q=e.MultiMediaModel)||void 0===q?void 0:q.Title,allowFullScreen:!0,type:null==e?void 0:null===(H=e.MultiMediaModel)||void 0===H?void 0:H.Type,isShareRestricted:null==e?void 0:null===(G=e.MultiMediaModel)||void 0===G?void 0:G.IsRestricted})}),(0,o.jsx)("div",{className:m().videoPrintContainer,children:(0,o.jsx)(x(),{src:(null==e?void 0:null===(Q=e.MultiMediaModel)||void 0===Q?void 0:Q.ImageUrl)?null==e?void 0:null===(Y=e.MultiMediaModel)||void 0===Y?void 0:Y.ImageUrl:"",height:250,width:800,loader:e=>(0,y.customImageLoader)(e),"data-pin-nopin":(null==e?void 0:null===(W=e.MultiMediaModel)||void 0===W?void 0:W.IsRestricted)?"true":null,loading:ex||ey?"eager":"lazy",className:"innerCurvedBorder"})}),((null==e?void 0:null===($=e.MultiMediaModel)||void 0===$?void 0:$.Description)!==""||(null==e?void 0:null===(z=e.MultiMediaModel)||void 0===z?void 0:z.Credits)!=="")&&(0,o.jsx)(s.default,{details:(null==e?void 0:null===(Z=e.MultiMediaModel)||void 0===Z?void 0:Z.Description)?null==e?void 0:null===(K=e.MultiMediaModel)||void 0===K?void 0:K.Description:"",credits:(null==e?void 0:null===(J=e.MultiMediaModel)||void 0===J?void 0:J.Credits)?null==e?void 0:null===(X=e.MultiMediaModel)||void 0===X?void 0:X.Credits:"",appEdition:null==e?void 0:e.appEdition})]})})]},null==e?void 0:null===(ee=e.MultiMediaModel)||void 0===ee?void 0:ee.ItemId)]}),eh&&(0,o.jsx)(t.default,{show:eh,handleClose:()=>eI(!1),modalTitle:eD("Video"),size:"xl",showFullScreen:!0,children:(0,o.jsx)(C,{content:{Title:null==e?void 0:null===(eo=e.MultiMediaModel)||void 0===eo?void 0:eo.Title,Description:null==e?void 0:null===(ed=e.MultiMediaModel)||void 0===ed?void 0:ed.Description,VideoId:null==e?void 0:null===(en=e.MultiMediaModel)||void 0===en?void 0:en.VideoId,Credits:(null==e?void 0:null===(et=e.MultiMediaModel)||void 0===et?void 0:et.Credits)?null==e?void 0:null===(ea=e.MultiMediaModel)||void 0===ea?void 0:ea.Credits:"",IsRestricted:null==e?void 0:null===(eu=e.MultiMediaModel)||void 0===eu?void 0:eu.IsRestricted,PlayerId:null==e?void 0:null===(ev=e.MultiMediaModel)||void 0===ev?void 0:ev.PlayerId,UniqueId:null==e?void 0:null===(er=e.MultiMediaModel)||void 0===er?void 0:er.UniqueId,ShareUrlTitle:null==e?void 0:null===(es=e.MultiMediaModel)||void 0===es?void 0:es.ShareUrlTitle,ItemId:null==e?void 0:null===(ec=e.MultiMediaModel)||void 0===ec?void 0:ec.ItemId,topicIds:{targetItems:eT},ContentType:n.Media.Video,Type:(null==e?void 0:null===(em=e.MultiMediaModel)||void 0===em?void 0:em.Type)?null==e?void 0:null===(ep=e.MultiMediaModel)||void 0===ep?void 0:ep.Type:1},isShareRestricted:!!(null==e?void 0:null===(el=e.MultiMediaModel)||void 0===el?void 0:el.IsRestricted),videoImageSrc:(null==e?void 0:null===(ei=e.MultiMediaModel)||void 0===ei?void 0:ei.ImageUrl)?(0,y.CreateImageUrlPrefix)(e.MultiMediaModel.ImageUrl):""})})]})};l.default=(0,d.memo)(E)},12021:function(e,l,i){i.r(l),i.d(l,{VideoCacheClearance:function(){return o}});let o='query VideoCacheClearance(\n $language: String!\n $MMEdition: String!\n $rootItem: String!\n $endCursor: String!\n ) {\n search(\n where: {\
1n AND: [\n {\n OR: [\n {\n name: "_templates"\n value: "{6A5C6835-6E11-4602-A11D-B626E9255397}"\n operator: EQ\n }\n {\n name: "_templates"\n value: "{2D09205B-8254-42D6-8C95-DD7E2F6AAA94}"\n operator: EQ\n }\n ]\n }\n { name: "_language", value: $language, operator: EQ }\n { name: "MMEdition", value: $MMEdition, operator: EQ }\n ]\n }\n first: 1000\n after: $endCursor\n ) {\n total\n pageInfo {\n endCursor\n hasNext\n }\n results {\n sharetitle: field(name: "ShareTitle") {\n value\n }\n }\n }\n RootItem: item(language: $language, path: $rootItem) {\n url {\n path\n }\n }\n }\n '},25731:function(e,l,i){i.r(l),i.d(l,{getStaticProps:function(){return y}});var o=i(85893),d=i(69998),n=i(81123),t=i(89575),a=i(8206),u=i.n(a),v=i(44770),r=i(22556),s=i(9008),c=i.n(s),m=i(81661),p=i(32862),h=i(67294),I=i(5817),g=i(25675),T=i.n(g),S=i(58158),M=i(39317),f=i(33075);let x=e=>{var l,i,a,s,g,x,y,D,_,C,E,w,N,P,V,L,b,R,j,A,F,U,O,B,k,q,H,G,Q,Y,W,$,z,Z,K,J,X,ee,el,ei,eo,ed;let en=null==e?void 0:null===(l=e.results)||void 0===l?void 0:null===(i=l.props)||void 0===i?void 0:null===(a=i.datasource)||void 0===a?void 0:null===(s=a.search)||void 0===s?void 0:s.results[0],et=(null==en?void 0:null===(g=en.InthisTopics)||void 0===g?void 0:g.targetItems)?null==en?void 0:null===(x=en.InthisTopics)||void 0===x?void 0:x.targetItems:"",{sitecoreContext:ea}=(0,p.z)(),{domain:eu,mediaObj:ev}=(0,h.useContext)(I.ZP),er=null==ea?void 0:null===(y=ea.language)||void 0===y?void 0:y.toLowerCase(),es=(0,n.H9)(et),ec=(null==en?void 0:en.VideoType)&&(null==en?void 0:null===(D=en.VideoType)||void 0===D?void 0:null===(_=D.value)||void 0===_?void 0:_.toLowerCase())===(null===d.videoType||void 0===d.videoType?void 0:null===(C=d.videoType.YOUTUBE)||void 0===C?void 0:C.toLowerCase())?2:1,em=!!((null==en?void 0:null===(E=en.ExcludeFromBrand)||void 0===E?void 0:E.value)&&(null==eu?void 0:eu.includes(null==en?void 0:null===(w=en.ExcludeFromBrand)||void 0===w?void 0:w.value))),ep=null==e?void 0:null===(N=e.videoObject)||void 0===N?void 0:N.embedUrl,eh=(null==e?void 0:null===(P=e.videoObject)||void 0===P?void 0:P.title)?null==e?void 0:null===(V=e.videoObject)||void 0===V?void 0:V.title:"",{t:eI}=(0,r.QT)(),eg=(0,M.QE)(),eT=(0,M.DD)(),eS=(0,M.SJ)(),eM={"@type":"Organization",name:eI("MManuals")},ef=(0,S.G)(null==e?void 0:e.videoObject,eM),{isMobile:ex}=(0,h.useContext)(I.ZP),[ey,eD]=(0,h.useState)(),e_=()=>{(null==window?void 0:window.innerWidth)<800?eD(!0):eD(!1)};(0,h.useEffect)(()=>(void 0!==window&&(e_(),null==window||window.addEventListener("resize",e_)),()=>{window.removeEventListener("resize",e_)}),[]);let eC=(0,h.useRef)(null);if(em)return(0,o.jsx)(o.Fragment,{});{let l=(0,f.default)({ref:eC,mediaType:eT,themeWithEdition:eg,appTheme:eS});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:u().imageStandalone,"data-testid":"standalonePage",children:[(0,o.jsxs)("div",{className:u().imageContainer,children:[(0,o.jsx)("div",{className:u().mobileH1Container,children:ex&&(null==en?void 0:null===(L=en.title)||void 0===L?void 0:L.value)&&(null==en?void 0:null===(b=en.title)||void 0===b?void 0:b.value)!==""?(0,o.jsx)("h1",{className:u().multiMediaTitleMobile,dangerouslySetInnerHTML:{__html:null==en?void 0:null===(R=en.title)||void 0===R?void 0:R.value}}):null}),(0,o.jsx)("div",{className:"".concat(u().videoWrapper),children:(0,o.jsx)(v.default,{src:ep,title:null==en?void 0:null===(j=en.title)||void 0===j?void 0:j.value,allowFullScreen:!0,seamless:!0,scrolling:"no",width:"100%",height:"420",type:ec})}),(0,o.jsx)("div",{className:u().printvideoSrc,children:(0,o.jsx)(T(),{src:2===ec?null==en?void 0:null===(A=en.ThumbnailURL)||void 0===A?void 0:A.src:null==en?void 0:null===(F=en.Thumbnail)||void 0===F?void 0:F.value,alt:(null==en?void 0:null===(U=en.ThumbnailURL)||void 0===U?void 0:U.alt)?null==en?void 0:null===(O=en.ThumbnailURL)||void 0===O?void 0:O.alt:"",height:2===ec?null==en?void 0:null===(B=en.ThumbnailURL)||void 0===B?void 0:B.height:360,width:2===ec?null==en?void 0:null===(k=en.ThumbnailURL)||void 0===k?void 0:k.width:480,loading:"eager"})})]}),(0,o.jsxs)("div",{dir:(null==ea?void 0:ea.language)&&(null==ea?void 0:null===(q=ea.language)||void 0===q?void 0:q.toLowerCase())==="ar"?"rtl":"ltr",className:u().dataContainer,children:[(!ey||!ex)&&(null==en?void 0:null===(H=en.title)||void 0===H?void 0:H.value)&&(null==en?void 0:null===(G=en.title)||void 0===G?void 0:G.value)!==""?(0,o.jsx)("h1",{className:"".concat(u().multiMediaTitle," ").concat((null==ev?void 0:ev.isClientTheme)&&"heading1"),dangerouslySetInnerHTML:{__html:null==en?void 0:null===(Q=en.title)||void 0===Q?void 0:Q.value}}):null,(0,o.jsxs)("div",{className:u().videoDescription,children:[(null==en?void 0:null===(Y=en.VasontDescription)||void 0===Y?void 0:Y.value)&&(null==en?void 0:null===(W=en.VasontDescription)||void 0===W?void 0:W.value)!==""&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:eC,className:u().multiMediaDescriptionWrapper,children:(0,o.jsx)("div",{className:u().multiMediaDescription,dangerouslySetInnerHTML:{__html:null==en?void 0:null===($=en.VasontDescription)||void 0===$?void 0:$.value}})}),l]}),(null==en?void 0:null===(z=en.VasontCopyright)||void 0===z?void 0:z.value)&&(null==en?void 0:null===(Z=en.VasontCopyright)||void 0===Z?void 0:Z.value)!==""?(0,o.jsx)("div",{className:u().multiMediaCredits,dangerouslySetInnerHTML:{__html:null==en?void 0:null===(K=en.VasontCopyright)||void 0===K?void 0:K.value}}):null]}),(0,o.jsx)("div",{className:u().inThisTopic,children:(0,o.jsx)(t.default,{data:es,backgroundWhite:!0,noScroll:!0})})]})]}),(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(c(),{children:[(0,o.jsx)("title",{children:"".concat(null===d.mediaTypes||void 0===d.mediaTypes?void 0:d.mediaTypes.Video,": ").concat(eh,"
1-").concat(eI("ManualNameText"))}),(0,o.jsx)("meta",{name:"description",content:""}),(0,o.jsx)("meta",{itemProp:"name",content:"".concat(null===d.mediaTypes||void 0===d.mediaTypes?void 0:d.mediaTypes.Video,":").concat(eh,"-").concat(eI("ManualNameText"))}),(0,o.jsx)("meta",{name:"VasontID",content:null==en?void 0:null===(J=en.UniqueId)||void 0===J?void 0:J.value}),(0,o.jsx)("meta",{name:"edition",content:eI("MetaTagEditionName")}),!d.chinaLanguages.includes(er)&&(0,o.jsx)("meta",{name:"twitter:title",content:"".concat(null===d.mediaTypes||void 0===d.mediaTypes?void 0:d.mediaTypes.Video,":").concat(eh,"-").concat(eI("ManualNameText"))}),!d.chinaLanguages.includes(er)&&(0,o.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),!d.chinaLanguages.includes(er)&&(0,o.jsx)("meta",{name:"twitter:description",content:""}),(0,o.jsx)("meta",{property:"og:title",content:"".concat(null===d.mediaTypes||void 0===d.mediaTypes?void 0:d.mediaTypes.Video,":").concat(eh,"-").concat(eI("ManualNameText"))}),(0,o.jsx)("meta",{property:"og:type",content:"article"}),(0,o.jsx)("meta",{property:"og:url",content:null==e?void 0:e.multimediaUrl}),(0,o.jsx)("script",{type:"text/javascript",children:"/* MManual.Foundation.Context.Item.SitecoreId = ".concat(ea.itemId,"\n MManual.Foundation.Context.Item.MediaId =").concat((null==en?void 0:en.id)?null==en?void 0:en.id:"","\n MManual.Foundation.Context.Item.VasontId =").concat((null==en?void 0:null===(X=en.UniqueId)||void 0===X?void 0:X.value)?null==en?void 0:null===(ee=en.UniqueId)||void 0===ee?void 0:ee.value:"","\n MManual.Foundation.Context.Item.TemplateId =").concat((null==en?void 0:null===(el=en.template)||void 0===el?void 0:el.id)?null==en?void 0:null===(ei=en.template)||void 0===ei?void 0:ei.id:""," */")}),(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(ef,null," ")}})]})}),(0,o.jsx)(m.default,{CanonicalResults:null==e?void 0:null===(eo=e.CanonicalResultsForStandalone)||void 0===eo?void 0:eo.finalResult,x_default:null==e?void 0:null===(ed=e.CanonicalResultsForStandalone)||void 0===ed?void 0:ed.XDefault})]})}},y=async(e,l,o)=>{var n,t,a,u,v,r,s,c,m,p,h,I,g,T,S,M,f,x,y,D,_,C,E,w,N,P,V,L,b,R,j,A,F,U,O,B,k,q,H,G,Q,Y;let W=null==o?void 0:null===(n=o.params)||void 0===n?void 0:n.requestPath[3],$=(null==l?void 0:null===(t=l.sitecore)||void 0===t?void 0:null===(a=t.context)||void 0===a?void 0:a.language)?null==l?void 0:null===(u=l.sitecore)||void 0===u?void 0:null===(v=u.context)||void 0===v?void 0:v.language:"",{getDomainUrl:z}=await Promise.resolve().then(i.bind(i,36562)),Z=z($),K=Z+"/"+(null==$?void 0:$.toLowerCase())+W;(null===d.defaultLanguages||void 0===d.defaultLanguages?void 0:d.defaultLanguages.includes(null==$?void 0:$.toLowerCase()))&&(K=Z+W),K=null==K?void 0:K.toLocaleLowerCase().replace(/\s+/g,"-");let J={name:null==o?void 0:null===(r=o.params)||void 0===r?void 0:r.requestPath[1],language:$,template:"",ExcludeFromBrand:(null===d.MrkDefaultLanguages||void 0===d.MrkDefaultLanguages?void 0:d.MrkDefaultLanguages.includes(null==$?void 0:$.toLowerCase()))?d.DomainNames.MRK:d.DomainNames.MSD},X=await Promise.resolve().then(i.bind(i,87845)),ee=X.getGraphQLData,el=await i.e(259).then(i.bind(i,24402)),ei=el.default,eo=await ee(ei,J),ed=null==l?void 0:null===(s=l.sitecore)||void 0===s?void 0:null===(c=s.route)||void 0===c?void 0:null===(m=c.placeholders)||void 0===m?void 0:null===(p=m["jss-main"])||void 0===p?void 0:p.find(e=>"MainContainer"===e.componentName),en=null==ed?void 0:null===(h=ed.fields)||void 0===h?void 0:h.data,et=null==en?void 0:en.LanguageSettings,ea=await Promise.all([i.e(6366),i.e(2731),i.e(1173),i.e(7851)]).then(i.bind(i,18643)),eu=ea.GetCanonicalResultsForStandalonePages,ev=await eu($,null==o?void 0:null===(I=o.params)||void 0===I?void 0:I.requestPath[2],d.GraphqlStandaloneModelName.CANONICAL_VIDEO,{name:null==et?void 0:et.name,languages:null==et?void 0:et.languages},null==l?void 0:null===(g=l.sitecore)||void 0===g?void 0:null===(T=g.route)||void 0===T?void 0:T.itemId,""),er=null==eo?void 0:null===(S=eo.props)||void 0===S?void 0:null===(M=S.datasource)||void 0===M?void 0:null===(f=M.search)||void 0===f?void 0:f.results[0],{videoItem:es}=await Promise.all([i.e(3808),i.e(2693),i.e(2019),i.e(2772),i.e(2896)]).then(i.bind(i,35961)),ec={};ec.Title=(null===(x=er.title)||void 0===x?void 0:x.value)?{value:null===(y=er.title)||void 0===y?void 0:y.value}:{value:""},ec.VasontDescription=(null===(D=er.VasontDescription)||void 0===D?void 0:D.value)?{value:null===(_=er.VasontDescription)||void 0===_?void 0:_.value}:{value:""},ec.Duration=(null===(C=er.Duration)||void 0===C?void 0:C.value)?{value:null===(E=er.Duration)||void 0===E?void 0:E.value}:{value:""},ec.ThumbnailURL={value:null!==(G=null===(w=er.Thumbnail)||void 0===w?void 0:w.value)&&void 0!==G?G:""},ec.ThumbnailURLYT={src:null!==(Q=null===(N=er.ThumbnailURL)||void 0===N?void 0:N.src
1)&&void 0!==Q?Q:""},ec.UploadData={value:null==o?void 0:null===(P=o.params)||void 0===P?void 0:P.requestPath[6]},ec.UploadDateYT={formattedDateValue:null!==(Y=null==o?void 0:null===(V=o.params)||void 0===V?void 0:V.requestPath[6])&&void 0!==Y?Y:""},ec.VideoType=(null===(L=er.VideoType)||void 0===L?void 0:L.value)?{value:null===(b=er.VideoType)||void 0===b?void 0:b.value}:{value:""},ec.VasontTitle=(null===(R=er.title)||void 0===R?void 0:R.value)?{value:null===(j=er.title)||void 0===j?void 0:j.value}:{value:""},ec.ShareTitle=(null===(A=er.ShareTitle)||void 0===A?void 0:A.value)?{value:null===(F=er.ShareTitle)||void 0===F?void 0:F.value}:{value:""},ec.restricted=(null===(U=er.IsRestricted)||void 0===U?void 0:U.boolValue)?{value:null===(O=er.IsRestricted)||void 0===O?void 0:O.boolValue}:{value:!1},ec.ID=(null===(B=er.VideoId)||void 0===B?void 0:B.value)?{value:null===(k=er.VideoId)||void 0===k?void 0:k.value}:{value:""},ec.VideoUrl=K;let em=await es(ec,Z,$);return{results:eo,CanonicalResultsForStandalone:ev,relativeUrlComputed:W,createdDate:(null==o?void 0:null===(q=o.params)||void 0===q?void 0:q.requestPath[6])?null==o?void 0:null===(H=o.params)||void 0===H?void 0:H.requestPath[6]:"",videoObject:em,multimediaUrl:K}};l.default=x},24402:function(e,l,i){i.r(l),i.d(l,{videoPathGraphql:function(){return o}});let o='query VideoItems(\n $language: String!\n $ShareTitle: String!\n $MMEdition: String!\n $ExcludeFromBrand: String!\n) {\n search(\n where: {\n AND: [\n {\n OR: [\n {\n name: "_templates"\n value: "{2D09205B-8254-42D6-8C95-DD7E2F6AAA94}"\n operator: EQ\n }\n {\n name: "_templates"\n value: "{6A5C6835-6E11-4602-A11D-B626E9255397}"\n operator: EQ\n }\n ]\n }\n { name: "ExcludeFromBrand", value: $ExcludeFromBrand, operator: NEQ }\n { name: "_language", value: $language, operator: EQ }\n { name: "ShareTitle", value: $ShareTitle, operator: EQ }\n { name: "MMEdition", value: $MMEdition, operator: EQ }\n ]\n }\n ) {\n results {\n sharetitle: field(name: "ShareTitle") {\n value\n }\n uniqueid: field(name: "uniqueid") {\n value\n }\n title: field(name: "VasontTitle") {\n value\n }\n createddateyt: field(name: "CreationDate") {\n ...on DateField{\n formattedDateValue\n }\n }\n createddate: field(name: "CreationDate") {\n value\n }\n Duration: field(name: "Duration") {\n value\n }\n ExcludeFromBrand: field(name: "ExcludeFromBrand") {\n value\n }\n ID: field(name: "ID") {\n value\n }\n VideoType: field(name: "VideoType") {\n value\n }\n ThumbnailURL: field(name: "ThumbnailURL") {\n ... on ImageField {\n height\n width\n alt\n src\n title\n }\n }\n }\n }\n}';l.default='\nquery VideoSearch($name: String!, $language: String!, $ExcludeFromBrand: String!) {\n search(\n where: {\n AND: [\n {\n OR: [\n {\n name: "_templates"\n value: "{2D09205B-8254-42D6-8C95-DD7E2F6AAA94}"\n operator: EQ\n }\n {\n name: "_templates"\n value: "{6A5C6835-6E11-4602-A11D-B626E9255397}"\n operator: EQ\n }\n ]\n }\n { name: "UniqueID", value: $name, operator: EQ }\n { name: "ExcludeFromBrand", value: $ExcludeFromBrand, operator: NEQ }\n { name: "_language", value: $language, operator: EQ }\n ]\n }\n first: 1\n ) {\n results {\n id\n title: field(name: "VasontTitle") {\n value\n }\n template {\n name\n id\n }\n VideoId: field(name: "ID") {\n value\n }\n UniqueId: field(name: "UniqueId") {\n value\n }\n VasontDescription: field(name: "VasontDescription") {\n value\n }\n VasontCopyright: field(name: "VasontCopyright") {\n value\n }\n ContentType: field(name: "ContentType") {\n value\n }\n Duration: field(name: "Duration") {\n value\n }\n Thumbnail: field(name: "VideoStillUrl") {\n value\n }\n ExcludeFromBrand: field(name: "ExcludeFromBrand") {\n value\n }\n \n VideoType: field(name: "VideoType") {\n value\n }\n ThumbnailURL: field(name: "ThumbnailURL") {\n ... on ImageField {\n height\n width\n alt\n src\n title\n }\n }\n ShareTitle: field(name: "ShareTitle") {\n value\n }\n IsRestricted: field(name: "IsRestricted") {\n ... on CheckboxField {\n boolValue\n }\n }\n InthisTopics: field(name: "TopicIds") {\n value\n ... on MultilistField {\n targetItems {\n id\n displayName\n url {\n path\n }\n ContentType: field(name: "ContentType") {\n value\n }\n Title: field(name: "Title") {\n value\n }\n }\n }\n }\n }\n }\n}'},29947:function(e,l,i){i.r(l);var o=i(85893),d=i(58483),n=i(22556),t=i(89755),a=i.n(t),u=i(67294),v=i(5817),r=i(69998),s=i(65313),c=i(5152),m=i.n(c),p=i(43959),h=i(51321),I=i.n(h),g=i(10627),T=i(32862);let S=m()(()=>Promise.all([i.e(2978),i.e(1843),i.e(1768),i.e(1325),i.e(6366),i.e(2731),i.e(907),i.e(259),i.e(5911),i.e(4813),i.e(2855),i.e(7180),i.e(4974),i.e(7232),i.e(2383)]).then(i.bind(i,97232)).then(e=>e.default),{loadableGenerated:{webpack:()=>[97232]},loading:()=>(0,o.jsx)(o.Fragment,{}),ssr:!1}),M=e=>{var l,i,t,c,m,h,M;let f;let{t:x}=(0,n.QT)(),{sitecoreContext:y}=(0,T.z)(),D=null==y?void 0:null===(l=y.language)||void 0===l?void 0:l.toLowerCase(),{edition:_,theme:C,pinterestLoadingPriority:E,mediaObj:w}=(0,u.useContext)(v.ZP),[N,P]=(0,u.useState)(!1),[V,L]=(0,u.useState)({Title:"",Description:"",VideoId:"",Credits:"",isRestricted:!1,PlayerId:"",ItemId:"",UniqueId:"",ShareUrl:"",topicIds:{targetItems:[]},ContentType:""}),[b,R]=(0,u.useState)(!1),[j,A]=(0,u.useState)(0);(0,u.useEffect)(()=>{setTimeout(()=>{var e;null==S||null===(e=S.render)||void 0===e||e.preload()},2e3)},[]);let F=l=>{var i,o,d,n,t,a,u,v,s,c,m,p,h,I,g,T,S,M,f,x,y,D;let _=(null==e?void 0:null===(i=e.videoItem)||void 0===i?void 0:i.inthistopicscomputed_s)?null==e?void 0:null===(o=e.videoItem)||void 0===o?void 0:o.inthistopicscomputed_s:"";_=JSON.parse(_);let C=[];Array.isArray(_)&&(null==_||_.map(e=>C.push({displayName:null==e?void 0:e.TopicName,url:{path:null==e?void 0:e.Url},ContentType:{value:null==e?void 0:e.ContentType},Title:{value:null==e?void 0:e.Title}}))),L({Title:(null==e?void 0:null===(d=e.videoItem)||void 0===d?void 0:d.titlecomputed_t)?null==e?void 0:null===(n=e.videoItem)||void 0===n?void 0:n.titlecomputed_t:"",Description:(null==e?void 0:null===(t=e.videoItem)||void 0===t?void 0:t.descriptioncomputed_t)?null==e?void 0:null===(a=e.videoItem)||void 0===a?void 0:a.descriptioncomputed_t:"",VideoId:(null==e?void 0:null===(u=e.videoItem)||void 0===u?void 0:u.id_t)?null==e?void 0:null===(v=e.videoItem)||void 0===v?void 0:v.id_t:"",Credits:(null==e?void 0:null===(s=e.videoItem)||void 0===s?void 0:s.vasontcopyright_t)?null==e?void 0:null===(c=e.videoItem)||void 0===c?void 0:c.vasontcopyright_t:"",isRestricted:null!=e&&null!==(m=e.videoItem)&&void 0!==m&&!!m.isrestricted_b&&(null==e?void 0:null===(p=e.videoItem)||void 0===p?void 0:p.isrestricted_b),PlayerId:(null==e?void 0:null===(h=e.videoItem)||void 0===h?void 0:h.id_t)?null==e?void 0:null===(I=e.videoItem)||void 0===I?void 0:I.id_t:"",ItemId:(null==e?void 0:null===(g=e.videoItem)||void 0===g?void 0:g.uniqueid_t)?null==e?void 0:null===(T=e.videoItem)||void 0===T?void 0:T.uniqueid_t:"",UniqueId:(null==e?void 0:null===(S=e.videoItem)||void 0===S?void 0:S.uniqueid_t)?null==e?void 0:null===(M=e.videoItem)||void 0===M?void 0:M.uniqueid_t:"",ShareUrl:(null==e?void 0:null===(f=e.videoItem)||void 0===f?void 0:f.relativeurlcomputed_s)?l.relativeurlcomputed_s:"",ContentType:r.Media.Video,topicIds:{targetItems:C},Type:(null==e?void 0:null===(x=e.videoItem)||void 0===x?void 0:null===(y=x.videotype_s)||void 0===y?void 0:y.toLowerCase())===r.videoType.YOUTUBE?2:1}),R(!!(null==e?void 0:null===(D=e.videoItem)||void 0===D?void 0:D.isrestricted_b)),P(!0),A(window.scrollY)},U=()=>{P(!1),window.scrollTo(0,j)},O=((null==(f=null!=(M=null==e?void 0:null===(i=e.videoItem)||void 0===i?void 0:i.thumbnailurlcomputed_s)?M:"")?void 0:f.startsWith("/-/media/youtube"))&&(f=(0,s.CreateImageUrlPrefix)(null!=M?M:"")),f),B=()=>{var l,i,o,d,n;F(null==e?void 0:e.videoItem),(0,p.h)(null==e?void 0:null===(l=e.videoItem)||void 0===l?void 0:l.titlecomputed_t,null==e?void 0:e.queryUrl,(null==e?void 0:null===(i=e.videoItem)||void 0===i?void 0:i.relativeurlcomputed_s)+"?query="+(null==e?void 0:e.queryUrl),(null==e?void 0:e.index)!=null?(null==e?void 0:e.index)+1:null,D),(0,g.oR)(null==e?void 0:null===(o=e.videoItem)||void 0===o?void 0:o.itemtypenamecomputed_s,null==e?void 0:null===(d=e.videoItem)||void 0===d?void 0:d.titlecomputed_t,_,null==e?void 0:null===(n=e.videoItem)||void 0===n?void 0:n.uniqueid_t)};return(0,o.jsxs)("div",{"data-testid":"searchVideo",children:[e.tab===r.SearchTabName.ALL_ITEMS&&(0,o.jsx)("div",{className:"resourceTag",children:x("Video")}),(0,o.jsx)("div",{className:e.tab===r.SearchTabName.ALL_ITEMS?I().videoItemSingle:I().videoItem,children:(0,o.jsxs)("div",{className:"".concat(I().videoItemContainer," ").concat(e.tab===r.SearchTabName.ALL_ITEMS&&"ar"===D&&I().allvideoItemContainer," ").concat((null==e?void 0:null===(t=e.media)||void 0===t?void 0:t.includes(r.Media.MEDIA_PRINT))&&I().disableVideoItem," ").concat(e.isAIEnabled&&I().aiVideoContainer),onClick:B,onKeyDown:e=>{"Enter"===e.key&&B()},tabIndex:0,children:[(0,o.jsxs)("div",{className:"".concat(I().thumbnailContainer," innerCurvedBorder"),children:[(0,o.jsx)("div",{className:"".concat(I().thumbnailImageContainer," innerCurvedBorder"),children:(0,o.jsx)(a(),{src:O,alt:null==e?void 0:null===(c=e.videoItem)||void 0===c?void 0:c.titlecomputed_t,layout:"fill",objectFit:"cover",loader:e=>
1(0,s.customImageLoader)(e),loading:E?"eager":"lazy","data-pin-nopin":(null==e?void 0:null===(m=e.videoItem)||void 0===m?void 0:m.isrestricted_b)?"true":null})}),(0,o.jsx)("div",{className:I().featuredMediaOverlay,children:(0,o.jsx)("div",{className:"".concat(I().featuredMediaPlayButton," ").concat(_===r.Edition.PROFESSIONAL?I().playProfessional:_===r.Edition.CONSUMER?I().playHome:_===r.Edition.VETERINARY?I().playVet:"")})})]}),(0,o.jsx)("div",{className:"".concat(e.tab===r.SearchTabName.ALL_ITEMS?I().videoItemTitleAllTab:I().videoItemTitle," ").concat(C===r.Theme.DARK&&I().themeDark," ").concat((null==w?void 0:w.isClientTheme)&&"clientFontColor"),children:(null==e?void 0:null===(h=e.videoItem)||void 0===h?void 0:h.titlecomputed_t)&&""!==e.videoItem.titlecomputed_t.trim()&&(0,o.jsx)("h3",{className:"h3Title",dangerouslySetInnerHTML:{__html:e.videoItem.titlecomputed_t}})})]})}),N&&(0,o.jsx)(d.default,{show:N,handleClose:U,modalTitle:x("Video"),size:"xl",showFullScreen:!0,children:(0,o.jsx)(S,{content:V,isShareRestricted:b,videoImageSrc:O})})]})};l.default=M},15010:function(e,l,i){i.r(l);var o=i(85893),d=i(69998),n=i(29947),t=i(51321),a=i.n(t);let u=e=>{var l,i;return(0,o.jsx)("div",{className:"".concat(a().videosContainer," ").concat(e.tab!==d.SearchTabName.ALL_ITEMS?a().videoWrapper:""),children:null==e?void 0:null===(l=e.data)||void 0===l?void 0:null===(i=l.docs)||void 0===i?void 0:i.map((l,i)=>(0,o.jsx)(n.default,{tab:null==e?void 0:e.tab,index:i,queryUrl:null==e?void 0:e.queryUrl,videoItem:l,media:null==e?void 0:e.media},i))})};l.default=u},72450:function(e,l,i){i.r(l);var o=i(85893),d=i(32862),n=i(22556),t=i(69998),a=i(19006),u=i(12721),v=i(64963),r=i(72389),s=i.n(r);let c=e=>{var l,i,r,c,m,p,h,I,g,T,S,M,f,x,y,D,_,C,E,w,N,P,V,L,b,R,j,A,F,U,O,B,k,q,H,G,Q,Y,W,$,z,Z,K,J,X,ee,el,ei,eo,ed,en,et;let{sitecoreContext:ea}=(0,d.z)(),eu=(null==e?void 0:null===(l=e.fields)||void 0===l?void 0:null===(i=l.Video)||void 0===i?void 0:i[0])?null==e?void 0:null===(r=e.fields)||void 0===r?void 0:null===(c=r.Video)||void 0===c?void 0:c[0]:null,ev=(null==eu?void 0:null===(m=eu.fields)||void 0===m?void 0:null===(p=m.VideoType)||void 0===p?void 0:null===(h=p.value)||void 0===h?void 0:h.toLowerCase())===t.videoType.YOUTUBE?2:1,er=null!==(ee=null==eu?void 0:null===(I=eu.fields)||void 0===I?void 0:null===(g=I.ID)||void 0===g?void 0:g.value)&&void 0!==ee?ee:"",es=null!==(el=null==eu?void 0:null===(T=eu.fields)||void 0===T?void 0:null===(S=T.IsRestricted)||void 0===S?void 0:S.value)&&void 0!==el&&el,ec=null!==(ei=null==ea?void 0:ea.language)&&void 0!==ei?ei:"en",{t:em}=(0,n.QT)(),ep=(0,a.g)(ev,er,es,ec),eh=(et=null!==(eo=null==e?void 0:null===(M=e.params)||void 0===M?void 0:M.background)&&void 0!==eo?eo:"homeDarkThemeColor").endsWith("DarkThemeColor")?et.replace("DarkThemeColor","ThemeColor"):et.endsWith("ThemeColor")?et.replace("ThemeColor","DarkThemeColor"):et;return(0,o.jsxs)("article",{className:"".concat(s().videoPlayerContainer," ").concat(null!==(ed=null==e?void 0:null===(f=e.params)||void 0===f?void 0:f.background)&&void 0!==ed?ed:""," "),dir:"ar"===ec?"rtl":"ltr",children:[(0,o.jsx)(v.default,{src:null!=ep?ep:"",placeholder:"HighLightVideo"}),(0,o.jsxs)("div",{className:s().videoPlayerBody,children:[(0,o.jsx)(u.default,{label:em("Video"),videoBadgeBackGroundColorClassName:eh}),(null==e?void 0:null===(x=e.fields)||void 0===x?void 0:null===(y=x.title)||void 0===y?void 0:y.value)?(0,o.jsx)("h3",{dangerouslySetInnerHTML:{__html:null==e?void 0:null===(D=e.fields)||void 0===D?void 0:null===(_=D.title)||void 0===_?void 0:_.value}}):(null==e?void 0:null===(C=e.rendering)||void 0===C?void 0:null===(E=C.fields)||void 0===E?void 0:null===(w=E.Video)||void 0===w?void 0:null===(N=w[0])||void 0===N?void 0:null===(P=N.fields)||void 0===P?void 0:null===(V=P.VasontTitle)||void 0===V?void 0:V.value)?(0,o.jsx)("h3",{dangerouslySetInnerHTML:{__html:null==e?void 0:null===(L=e.rendering)||void 0===L?void 0:null===(b=L.fields)||void 0===b?void 0:null===(R=b.Video)||void 0===R?void 0:null===(j=R[0])||void 0===j?void 0:null===(A=j.fields)||void 0===A?void 0:null===(F=A.VasontTitle)||void 0===F?void 0:F.value}}):null,(null==e?void 0:null===(U=e.fields)||void 0===U?void 0:null===(O=U.description)||void 0===O?void 0:O.value)?(0,o.jsx)("p",{dangerouslySetInnerHTML:{__html:null==e?void 0:null===(B=e.fields)||void 0===B?void 0:null===(k=B.description)||void 0===k?void 0:k.value}}):(null==e?void 0:null===(q=e.rendering)||void 0===q?void 0:null===(H=q.fields)||void 0===H?void 0:null===(G=H.Video)||void 0===G?void 0:null===(Q=G[0])||void 0===Q?void 0:null===(Y=Q.fields)||void 0===Y?void 0:null===(W=Y.VasontDescription)||void 0===W?void 0:W.value)?(0,o.jsx)("p",{dangerouslySetInnerHTML:{__html:null!==(en=null==e?void 0:null===($=e.rendering)||void 0===$?void 0:null===(z=$.fields)||void 0===z?void 0:null===(Z=z.Video)||void 0===Z?void 0:null===(K=Z[0])||void 0===K?void 0:null===(J=K.fields)||void 0===J?void 0:null===(X=J.VasontDescription)||void 0===X?void 0:X.value)&&void 0!==en?en:""}}):null]})]})};l.default=c},12721:function(e,l,i){i.r(l);var o=i(85893),d=i(72389),n=i.n(d);let t=e=>{let{label:l,videoBadgeBackGroundColorClassName:i}=e;return l?(0,o.jsx)("span",{className:"".concat(n().videoBadge," ").concat(i),dangerouslySetInnerHTML:{__html:l}}):null};l.default=t},64963:function(e,l,i){i.r(l);var o=i(85893),d=i(44770),n=i(72389),t=i.n(n);let a=e=>{let{src:l,placeholder:i="Highlight video"}=e;return l?(0,o.jsx)("div",{className:t().videoPlayer,children:(0,o.jsx)(d.default,{src:l,title:"placeholder",width:"100%",height:"100%",allowFullScreen:!0,type:l?1:2})}):(0,o.jsx)("div",{className:"video-player video-player--empty",role:"img","aria-label":i,children:(0,o.jsx)("span",{className:"video-player__placeholder-text",children:i})})};l.default=a},19006:function(e,l,i){i.d(l,{_:function(){return n},g:function(){return d}});var o=i(69998);let d=(e,l,i,d)=>
1{if(2===e)return"".concat(o.VideoUrlData.VIDEO_YOUTUBE).concat(l).concat(o.VideoUrlData.VIDEO_YOUTUBE_PARAM);if("zh"===d){let e=i?o.ChineseVideoUrlData.VIDEO_RESTRICTED_PLAYERID:o.ChineseVideoUrlData.VIDEO_SHARABLE_PLAYERID;return"".concat(o.ChineseVideoUrlData.VIDEO_BRIGHTCOVE_DOMAIN).concat(e).concat(o.ChineseVideoUrlData.VIDEO_BRIGHTCOVE_SUBDOMAIN).concat(l)}{let e=i?o.VideoUrlData.VIDEO_RESTRICTED_PLAYERID:o.VideoUrlData.VIDEO_SHARABLE_PLAYERID;return"".concat(o.VideoUrlData.VIDEO_BRIGHTCOVE_DOMAIN).concat(e).concat(o.VideoUrlData.VIDEO_BRIGHTCOVE_SUBDOMAIN).concat(l)}},n=(e,l)=>{if(2===l)return e;let i=Number(e);if(!i)return e;let o=Math.floor(i/1e3),d=Math.floor(o/86400);o%=86400,d=0!==d?"".concat(d+"D"):"";let n=Math.floor(o/3600);o%=3600,n=0!==n?"".concat(n+"H"):"";let t=Math.floor(o/60);return t=0!==t?"".concat(t+"M"):"",o%=60,"P".concat(d,"T").concat(n).concat(t).concat(o,"S")}}}]);
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.