/*! 160368 */!function(e){let n="www.microsoft.com"!==window.location.hostname,i="https://go.microsoft.com/fwlink/p/?LinkID=",t={HERO:".highlight",ME_CONTROL_SIGN_IN:'#mectrl_main_trigger[href*="SignIn"]',SIGN_IN_LINK:'a[data-bi-bhvr="100"]',SIGN_UP_LINK:'a[data-bi-bhvr="210"]',UHF_SIGN_UP:"#c_shellmenu_signupforfree"},o,r=0,s;function a(){let e=document.querySelector(t.ME_CONTROL_SIGN_IN),i=document.querySelector(t.UHF_SIGN_UP);e||e&&i?(o.signIn&&e.setAttribute("href",o.signIn),o.signUp&&i.setAttribute("href",o.signUp),clearInterval(s),n&&console.log("UHF sign-in override loaded after "+r+" iterations.")):r>40&&(clearInterval(s),n&&console.log("UHF sign-in override skipped after "+r+" iterations.")),r++}function l(){(o=function o(){let r=document.querySelector(t.HERO),s,a;if(r){let l=r.querySelector(t.SIGN_IN_LINK),g=r.querySelector(t.SIGN_UP_LINK);l?s=l.getAttribute("href"):n&&console.log("No hero sign in link found."),g?a=g.getAttribute("href"):n&&console.log("No hero sign up link found.")}else n&&console.log("No hero found.");if((!s||!a)&&e.conditionalFwLinks)for(let c=0,I=e.conditionalFwLinks.length;c{try{let n=JSON.parse(e.dataset.biTags),i=function e(n,i){let t=i.toLowerCase();return n[Object.keys(n).find(e=>e.toLowerCase()===t)]}(n,"bilinkname");i&&(e.dataset.biCn=i)}catch(t){console.error(t)}})}"interactive"===document.readyState||"complete"===document.readyState?l():document.addEventListener("DOMContentLoaded",l)}({conditionalFwLinks:[{pathTest:/teams-for-home(?:\/[^\/\s]+)?$/i,signInFwLink:"2148766",signUpFwLink:"2163566",m365SignInFwLink:"2111487"}],signInfwLink:"873020&lm=deeplink&lmsrc=homePageWeb&cmpid=WebSignIn"}); /*! 183044 */try{(()=>{"use strict";const t="[data-mount='multi-feature-vertical-tab'] .lazyload",n=new CustomEvent("resize");function c(){window.dispatchEvent(n)}!function(){const n=document.querySelectorAll(t);n.length&&n.forEach(t=>t.onload=c)}()})()}catch{} /*! 154450 */!function(){if(!window.location.pathname.includes("microsoft-365/microsoft-365-for-existing-subscribers"))return;function e(){const e=document.querySelector("#c-uhf-nav-cta");e&&(e.style.display="none")}"complete"===document.readyState||"interactive"===document.readyState?e():document.addEventListener("DOMContentLoaded",e)}(); /*! 190578 */!function(){const e=window.location.pathname,t=".root .universalfooter",o=`${t} #uhf-footer`,c=`${o} .c-uhff-base`,n=`${o} .c-uhff-nav .c-heading-4, .c-uhff-nav a.c-uhff-link`,u=`${o} .c-uhff-base>a.c-uhff-link.c-uhff-lang-selector`,a=`${c} ul.c-list.f-bare`,l="#191919",r="text-light";function d(){e.includes("mixed-reality/windows-mixed-reality")&&(function(){const e=document.querySelector(t);e&&(e.style.backgroundColor=l);const n=document.querySelector(o);n&&(n.style.backgroundColor=l);const u=document.querySelector(c);u&&(u.style.backgroundColor=l)}(),function(){const e=document.querySelectorAll(n);e&&e.length>0&&e.forEach(e=>e.classList.add(r));const t=document.querySelector(u);t&&t.classList.add(r);const o=document.querySelector(a);o&&o.classList.add(r)}())}"interactive"===document.readyState||"complete"===document.readyState?d():document.addEventListener("DOMContentLoaded",d)}(); /*! ?????? */!function(a){if(window.location.pathname.indexOf("/microsoft-365/onedrive")>-1){function b(){let b=document.querySelector(h);b?(b.setAttribute("href",e+(a.fwLink?a.fwLink:a.pageFwLinks[j])),clearInterval(k),d&&console.log("UHF sign-in override loaded after "+l+" iterations.")):l>g&&(clearInterval(k),d&&console.log("UHF sign-in override skipped after "+l+" iterations.")),l++}function c(){(a.fwLink||j in a.pageFwLinks)&&(k=setInterval(b,f))}const d="www.microsoft.com"!==window.location.hostname,e="https://go.microsoft.com/fwlink/p/?LinkID=",f=250,g=40,h='#mectrl_main_trigger[href*="signin"]',i=window.location.pathname.split("/"),j=i[i.length-1];let k,l=0;"interactive"===document.readyState||"complete"===document.readyState?c():document.addEventListener("DOMContentLoaded",c)}}({fwLink:"2119709"}); /*! 199932 */!function(){if(window.location.pathname.includes("/en-us/security/business/solutions/identity-access")){var e=document.querySelector("#feature-oc61b9 .grid-feature-item-1");e.classList.remove("col-md-6"),e.classList.add("col-md")}}(); /*! 160671 */!function(e){let t="www.microsoft.com"!==window.location.hostname,i="https://go.microsoft.com/fwlink/p/?LinkID=",n=window.location.pathname.split("/"),s=n[n.length-1],o=n.length>2?n[2]:"";0==s.length&&(s=n[n.length-2]);let r=0,a;function l(){let n=document.querySelector('#mectrl_main_trigger[href*="signin" i]');n?(s in e.pageFwLinks?n.setAttribute("href",i+e.pageFwLinks[s]):o in e.siteFwLinks?n.setAttribute("href",i+e.siteFwLinks[o]):n.setAttribute("href",i+e.fwLink),n.setAttribute("target","_blank"),clearInterval(a),t&&console.log("UHF sign-in override loaded after "+r+" iterations.")):r>40&&(clearInterval(a),t&&console.log("UHF sign-in override skipped after "+r+" iterations.")),r++}function g(){var t,i=3e3;let n,r;var g=(t=l,n=void 0!==i?i:10,function(){r&&window.clearTimeout(r),r=window.setTimeout(function(){r=null,t()},n)});(e.fwLink||s in e.pageFwLinks||o in e.siteFwLinks)&&(a=setInterval(l,250),window.addEventListener("resize",g))}"interactive"===document.readyState||"complete"===document.readyState?g():document.addEventListener("DOMContentLoaded",g)}({pageFwLinks:{"online-surveys-polls-quizzes":"2115709"},siteFwLinks:{"windows-365":"2168661"}}); /*! 227522 */setTimeout(()=>{document.querySelectorAll("#feature-oceb69 video.w-100").forEach(e=>{e.setAttribute("loop","true"),e.paused?(e.defaultPlaybackRate=.9,e.play(),e.playbackRate=.9):(e.defaultPlaybackRate=.9,e.playbackRate=.9)})},500); /*! 233045 */!function(){const t="Learn about the new Bing in Windows and more.";if(-1!==window.location.href.indexOf("http://approjects.co.za/?big=en-us/ai")){const e=document.querySelector("#alert-uid2b22 a.cta");e&&(e.innerText=t,e.setAttribute("aria-label",t),e.setAttribute("href","https://blogs.windows.com/"))}}(); /*! 232011 */!function(){function e(){document.querySelectorAll("li > [id^='c-shellmenu-hidden-'i]").forEach(function(e){e.parentElement.style="display: none!important;"})}"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",e)}(); /*! 237517 */(()=>{let e="d-none",t="d-md-block",o=o=>{let r=o.querySelectorAll(`.card-footer > .${e}.${t}`);r.forEach(o=>{o.classList.remove(e),o.classList.remove(t)});let l=o.querySelectorAll(".card-body");l.forEach(t=>{t.classList.remove("mb-md-g"),t.classList.add("mb-g");let o=t.querySelectorAll(`.${e}.d-sm-block`);o.forEach(t=>{t.classList.remove(e)})})},r=()=>{let e=document.querySelectorAll(".compare-chart");e.forEach(e=>{let t=e.querySelector("thead:not(.position-sticky)"),r=e.querySelector("tfoot");t&&o(t),r&&o(r)})};"complete"===document.readyState||"interactive"===document.readyState?r():document.addEventListener("DOMContentLoaded",r)})(); /*! 240075 */(()=>{function e(e){if(e&&e.length){let t=!1,o=0;for(const c of e){const e=c.firstElementChild;e&&!e.classList.contains("card-header")&&(t=!0,e.style.height="auto",e.offsetHeight>o&&(o=e.offsetHeight))}if(t)for(const t of e){const e=t.firstElementChild;if(e.classList.contains("card-header")){const c=document.createElement("div");c.classList.add("mb-1"),c.style.height=o+"px",t.insertBefore(c,e)}else e.style.height=o+"px"}}}function t(){const t=window.location.search.indexOf("wcmmode")>-1?".cmp-tabs .tab-panel":".cmp-tabs .cmp-tabs__tabpanel",c=document.querySelectorAll(t);for(const t of c.length?c:[document]){e(t.querySelectorAll("table.compare-chart .card"));o(t.querySelectorAll("table.compare-chart thead .card-header"));o(t.querySelectorAll("table.compare-chart tfoot .card-header"));o(t.querySelectorAll("table.compare-chart thead .card-body"));o(t.querySelectorAll("table.compare-chart tfoot .card-body"));o(t.querySelectorAll("table.compare-chart thead .card-footer"));o(t.querySelectorAll("table.compare-chart tfoot .card-footer"))}}function o(e){if(e&&e.length>1){let t=0;for(const t of e)t.style.height="auto",t.style.flexGrow="0",t.style.flexShrink="0",t.style.flexBasis="auto";for(const o of e)o.offsetHeight>t&&(t=o.offsetHeight);if(t>0)for(const o of e)o.style.height=t+"px"}}function c(){setTimeout(function(){t()},500)}function a(){const e=function(e,t){let o,c=void 0!==t?t:10;return function(){o&&window.clearTimeout(o),o=window.setTimeout(function(){o=null,e()},c)}}(t,100);window.addEventListener("resize",e),t(),function(){const e=document.querySelectorAll(".cmp-tabs .tab-group a[data-cmp-hook-tabs]");for(const t of e)t.addEventListener("click",e=>{c()}),t.addEventListener("keydown",e=>{"Enter"!==e.code&&"Space"!==e.code||c()})}()}"complete"===document.readyState||"interactive"===document.readyState?a():document.addEventListener("DOMContentLoaded",a)})(); /*! 252649 */(()=>{let e=window.location.pathname,i=(window.location.hostname,e.split("/")[1]),t=[`/${i}/ai`,`/${i}/ai/dynamics-365-ai`,`/${i}/startups/ai`],n=`.universalheader,.uhf {letter-spacing: normal !important;line-height: 1.5;}body {font-weight: 400;font-size: 0.875rem;line-height: 1rem;letter-spacing: -0.03em; }@media (min-width: 860px) {body {font-size: 1rem;line-height: 1.5rem; } }.display-1 {font-weight: 600;font-size: 2.98625rem;line-height: 4.5rem;letter-spacing: -0.05em; }@media (min-width: 860px) {.display-1 {font-size: 3.76812rem;line-height: 5rem; } }@media (min-width: 1084px) {.display-1 {font-size: 4.76813rem;line-height: 6rem; } }.display-2 {font-weight: 600;font-size: 2.48813rem;line-height: 3rem;letter-spacing: -0.05em; }@media (min-width: 860px) {.display-2 {font-size: 2.815rem;line-height: 3.5rem; } }@media (min-width: 1084px) {.display-2 {font-size: 3.815rem;line-height: 5rem; } }h1,.h1 {font-weight: 600;font-size: 2.07375rem;line-height: 2.5rem;letter-spacing: -0.05em; }@media (min-width: 860px) {h1,.h1 {font-size: 2.30187rem; } }@media (min-width: 1084px) {h1,.h1 {font-size: 3.05187rem;line-height: 4.5rem; } }h2,.h2 {font-weight: 600;font-size: 1.69125rem;line-height: 2rem;letter-spacing: -0.05em; }@media (min-width: 1084px) {h2,.h2 {font-size: 2.44125rem;line-height: 3.5rem; } }h3,.h3 {font-weight: 600;font-size: 1.45312rem;line-height: 2rem;letter-spacing: -0.05em; }@media (min-width: 1084px) {h3,.h3 {font-size: 1.95312rem;line-height: 2.5rem; } }h4,.h4 {font-weight: 600;font-size: 1.25rem;line-height: 2rem;letter-spacing: -0.05em; }@media (min-width: 860px) {h4,.h4 {line-height: 1.5rem; } }@media (min-width: 1084px) {h4,.h4 {font-size: 1.5625rem;line-height: 2rem; } }h5,.h5 {font-weight: 600;font-size: 1.125rem;line-height: 1.5rem;letter-spacing: -0.03em; }@media (min-width: 860px) {h5,.h5 {font-size: 1rem; } }@media (min-width: 1084px) {h5,.h5 {font-size: 1.25rem;line-height: 1.5rem; } }.lead {font-weight: 400;font-size: 1.5rem;line-height: 1.125rem;letter-spacing: -0.03em; }@media (min-width: 860px) {.lead {font-size: 1rem; } }@media (min-width: 1084px) {.lead {font-size: 1.25rem;line-height: 2rem; } }.base {font-weight: 400;font-size: 0.875rem;line-height: 1rem;letter-spacing: -0.03em; }@media (min-width: 860px) {.base {font-size: 1rem;line-height: 1.5rem; } }.small {font-weight: 400;font-size: 0.875rem;line-height: 1.25rem;letter-spacing: -0.03em; }.x-small {font-weight: 400;font-size: 0.75rem;line-height: 1rem;letter-spacing: -0.03em; }.label-eyebrow {font-weight: 600;font-size: 0.75rem;line-height: 1rem;letter-spacing: 0.08em; }.label-base {font-weight: 600;font-size: 1rem;line-height: 1.5rem; }.label-small {font-weight: 600;font-size: 0.875rem;line-height: 1rem; }.label-x-small {font-weight: 600;font-size: 0.75rem;line-height: 1rem; }.action-trigger,.btn,.cta {letter-spacing: -0.02em; }`,h=e=>t.some(i=>m(e)===i),m=e=>(e=e.replace(".html","")).replace(/\/+$/,""),r=e=>{let i=document.createElement("style");i.setAttribute("id","Static Override 252649"),document.head.appendChild(i),i.appendChild(document.createTextNode(e))},a=()=>!0,$=()=>document.body.classList.contains("reimagine-page"),l=()=>{h(e)&&a()&&!$()&&r(n)};"interactive"===document.readyState||"complete"===document.readyState?l():document.addEventListener("DOMContentLoaded",l)})(); /*! 252296 */try{(()=>{const{pathname:e,hostname:t}=window.location,o=["ai","startups","startups/ai"],n=["ai_hp"],a=".cmp-tabs .tab-group [data-cmp-hook-tabs='tab']",r=".ow-m365-video",c="video:not([muted])";function i(){(document.querySelectorAll(a)||[]).forEach(e=>{let t="#"+e.getAttribute("aria-controls"),o=document.querySelector(t),n=null!=o?o.querySelectorAll(r):[];if(n!=[]){e.addEventListener("onHide",function(){n.forEach(e=>{var t;(t=e.querySelector(c))&&!t.paused&&t.pause()})})}})}(function(){const a=e.replace(".html","").toLowerCase().split("/").filter(function(e){return""!==e}),r=a[a.length-1]||"",c=a[a.length-2]||"";return!!(0==o.indexOf(r)||1==o.indexOf(r)||o.indexOf(c+"/"+r)>-1||n.includes(r)&&"sites-author.adobeppe.microsoft.com"===t)})()&&("interactive"===document.readyState||"complete"===document.readyState?i():document.addEventListener("DOMContentLoaded",i,!1))})()}catch(e){console.log(e)} /*! 254514 */(()=>{let e=window.location.pathname,t=(window.location.hostname,{TABS:".tabs.aem-GridColumn.aem-GridColumn--default--12[data-component-id='15172cf55fd198c73e128a7ebd647612']",BACK_TO_TAB:".btn.btn-link.sr-only-focusable"}),a=["/ai_hp","/ai"],l=["mb-4","mt-n5","mt-lg-n6","mb-lg-5","d-flex","mw-fit-content"],n=e=>a.some(t=>o(e).indexOf(t)>0),o=e=>(e=e.replace(".html","")).replace(/\/+$/,""),d=()=>{let e=document.querySelectorAll(t.TABS);for(let a of e){let n=a.querySelector(t.BACK_TO_TAB);n&&n.classList.add(...l)}},m=()=>!0,c=()=>{n(e)&&m()&&d()};"interactive"===document.readyState||"complete"===document.readyState?c():document.addEventListener("DOMContentLoaded",c)})(); /*! 267416 */(()=>{let e=()=>{let e=["mx-ng","mx-md-0"];document.querySelectorAll('.aem-Grid>.feature [data-mount="m365-feature"] .card').forEach(t=>t.classList.remove(...e))};"interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",e)})(); /*! 268589 */(()=>{let t=window.location.origin,e=window.location.pathname,o=e.split("/")[1],c="/"+o,r=e.replace(c,"");function s(){return"https://azure.microsoft.com"===t&&null!==r.match(/^\/products/)}function i(){if(!s())return;let t=['[data-srcset^="https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/ISO?"]','[data-srcset^="https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/security_csa?"]','[data-srcset^="https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/security_itar?"]','[data-srcset^="https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/security_cjis?"]','[data-srcset^="https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/security_hipaa?"]','[data-srcset^="https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/IRS?"]'];var e=null;for(let o=0;o{const t=()=>{document.location.pathname.indexOf("windows-365/frontline")>0&&setTimeout(function(){var t=document.querySelectorAll(".oc-sku-list-table-component .sr-only.oc-list-price");if(t&&t.length>0)for(var e=0;e{let[e,t]=[window.location.hostname,window.location.pathname],o="/products/ai-services/cognitive-search",i=document.querySelectorAll('.ow-m365-video[data-video-type="inline"] .ow-m365-video-player-ctn:not([data-is-initialized="true"])'),n=function(){let e=document.createElement("script");e.src="https://azure.microsoft.com/etc.clientlibs/onecloud/components/content/onecloud-player/v1/onecloud-player/clientlibs/site.min.ACSHASH1602c90e606d7c8626641fad69febea8.js",document.body.appendChild(e)};"azure.microsoft.com"===e&&(t.endsWith(o)||t.endsWith(o+"/"))&&i.length&&n()})(); /*! 275018 288521 Fix horizontal scroll issue with tables*/(()=>{const pageScope={"www.microsoft.com":{},previews:true};const CUSTOM_STYLE=` @media (max-width: 560px) { [data-component-id="b77a3c59aec694da566e0bb18c2d7e26"] { overflow: auto; } } `;function run(){if(!window.SOUtil.pageIsInScope(pageScope)){return}document.body.insertAdjacentHTML("beforeend",'")}if(document.readyState!=="loading"){run()}else{document.addEventListener("DOMContentLoaded",run)}})(); /*! 288501 */(()=>{let e=` @media (max-width: 560px) { .SO-288501 { display: flex !important; flex-direction: column-reverse !important; } .SO-288501 .carousel-controls { position: relative !important; transform: translateX(0) !important; left: 0 !important; bottom: 0 !important; display: grid !important; grid-template-rows: repeat(1, 1fr); grid-template-columns: repeat(2, 1fr); } .SO-288501 .carousel-controls ol.carousel-indicators { flex-wrap: wrap; grid-row: 1; grid-column-start: 1; grid-column-end: 3; } .SO-288501 .carousel-controls .carousel-control-prev { grid-row: 2; grid-column: 1; } .SO-288501 .carousel-controls .carousel-control-next { grid-row: 2; grid-column: 2; margin-left: auto; } } `;function t(){let t=window.location.href;if(t.includes("https://azure.microsoft.com")&&t.includes("solutions/industries/discrete-manufacturing/iot")){document.body.insertAdjacentHTML("beforeend",'");document.querySelector("#sneakpeekcontentcardscarousel-uide0e6").querySelector("section div.carousel.slide.carousel-sneak-peek div").classList.add("SO-288501")}}"interactive"===document.readyState||"complete"===document.readyState?t():document.addEventListener("DOMContentLoaded",t)})(); /*!288523 */(()=>{let o=["/microsoft-365/outlook/outlook-for-mac"],a=window.location.pathname,t=n(a),r=` .material-color-dark.heading-bg-color-layout-container-uid32fd [data-component-id="6bcfe650a6c8d0d6861d5c2318eb410c"] [data-mount="click-group"] button{ color: #fff !important; } .material-color-dark.heading-bg-color-layout-container-uida6fa .ms-rte-link { color: #fff !important; } .material-color-dark.heading-bg-color-layout-container-uid58414 .ms-rte-link { color: #fff !important; } .material-color-dark.heading-bg-color-tabs [data-component-id="7d035e44732558122f71f786dbc90344"] .text-primary { color: #fff !important; } .material-color-dark.heading-bg-color-tabs [data-component-id="7d035e44732558122f71f786dbc90344"] .ms-rte-link { color: #fff !important; } .material-color-dark.heading-bg-color-tabs [data-component-id="7d035e44732558122f71f786dbc90344"] .link-group .cta { color: #fff !important; } .material-color-dark.heading-bg-color-tabs [data-component-id="7d035e44732558122f71f786dbc90344"] .link-group .cta { color: #fff !important; } .material-color-dark.heading-bg-color-tabs [data-component-id="7d035e44732558122f71f786dbc90344"] [data-mount="click-group"] a { color: #fff !important; } .material-color-dark a.btn-link.sr-only-focusable { color: #fff !important; } [data-component-id="681246136dd91ef8d8438942a2cc9102"] .btn.btn-link { color: #fff !important; } [data-component-id="681246136dd91ef8d8438942a2cc9102"] .btn.btn-link.inactive { color: #757575 !important; } .material-color-dark [data-component-id="5aae1cc391ba1be81238febb88e2ef7b"] .superscript { color: #fff !important; } `;function e(){return o.some(o=>t.endsWith(o))}function n(o){return o.replace(/\/+$/,"")}function c(){e()&&document.body.insertAdjacentHTML("beforeend",'")}"interactive"===document.readyState||"complete"===document.readyState?c():document.addEventListener("DOMContentLoaded",c)})(); /*!288510*/(()=>{const e=".horizontal-nav a.bg-transparent",t=()=>{document.querySelectorAll(e).forEach(e=>{e.classList.remove("bg-transparent")})};"complete"===document.readyState||"interactive"===document.readyState?t():document.addEventListener("DOMContentLoaded",t)})(); /*!288704*/(()=>{function e(){let e=document.querySelector("#oc-contact-sales");if(e){let t=e.querySelectorAll("span.btn.glyph-prepend.btn-glyph-only");t.forEach(e=>{e.setAttribute("aria-hidden","true")})}}"interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",e)})(); /*! 288993 */(()=>{let e=window.location.origin,t="https://sites-author.adobeprod.microsoft.com",r=window.location.pathname,n=r.split("/")[1],o="/"+n,a=r.replace(o,"");function i(){var e,t=document.querySelector(".carousel__controls"),r=document.querySelector(".carousel__arrow-next"),n=document.querySelector(".carousel__arrow-prev"),o=document.querySelectorAll(".carousel__indicators-item"),a=o.length,i=document.createElement("span");i.setAttribute("class","sr-only"),i.setAttribute("aria-live","polite"),t&&t.appendChild(i);for(var u=0;u{function e(){let e=window.location.hostname,t=window.location.pathname,o=t.split("/").slice(2).join("/");if(["sites-author.adobeprod.microsoft.com","sites-author.adobeppe.microsoft.com","www.microsoft.com"].includes(e)&&["aiforall","aiforall/","copilot","copilot/","microsoft/bade/en-us/aiforall.html","microsoft/bade/en-us/copilot.html","microsoft/bade/en-us/qa-folder/iss_qa/aiforall_test.html"].includes(o.toLowerCase())){(function e(){let t=` .media-control.media-control--override::before { display: none; } .media-control.media-control--override::after { display: none; } .media-control.media-control--override:focus { outline: 2px dotted; } .media-control.media-control--override { background-color: transparent; color: var(--theme-foreground-accent-strong-normal); border: 2px solid var(--theme-foreground-accent-strong-normal); box-shadow: none; height: 32px; width: 32px; } .media-control.media-control--override .glyph-prepend { position: unset; } .hero-media.hero-media--featured-xl.hero-media--campaign .html5-video video { object-position: 0% 80%; } [data-component-id="3d6c0c8bbf28ee24fc5733387b814476"].theme-night .tab-panel .media__slot .btn.btn--icon-only { --button-color: #2a446f !important; --button-border-color: #2a446f !important; } `,o=document.querySelectorAll('[data-mount="m365-video"] .media-control');if(0!==o.length)for(let a of(document.body.insertAdjacentHTML("beforeend",'"),o))a.classList.add("btn","btn--icon-only","btn--secondary","media-control--override")})(),function e(){let t=` .interactive-demo.theme-night .tabs .tab { border-color: var(--theme-border-special-fade) !important; } .interactive-demo.theme-night .tabs .tab__item { background: var(--theme-background-glass-normal); } .interactive-demo .tabs .active .tab__item { background: var(--theme-background-glass-selected); } .interactive-demo .tabs .tab__item .badge { background-color: var(--theme-background-overlay-full); var(--theme-border-special-fade); } .section-master.theme-night .card { background: var(--theme-background-glass-normal); } .interactive-demo.theme-night .tabs .arrow-next { --arrow-background-gradient-start-position: 0%; --arrow-background-color: #003259; } .interactive-demo.theme-night .tabs .arrow-prev { --arrow-background-gradient-start-position: 0%; --arrow-background-color: var(--root-color-blue-black-700); } .interactive-demo .block-feature .block-feature__paragraph { text-align-last: center; } .section-master--layout-header-horizontal-alignment-center-focus.section-master--layout-header-horizontal-alignment-center.section-master--alignment-center .accordion { width: 100%; } `;document.body.insertAdjacentHTML("beforeend",'")}();document.querySelectorAll(".statement-banner .block-heading--campaign").forEach(e=>{e.classList.remove("block-heading--size-xl");let t=e.querySelector(".block-heading__title"),o=t.getAttribute("class");t.removeAttribute("class");let a=t.querySelector("[data-oc-token-text]"),r=t.querySelector("h1")||t.querySelector("h2")||t.querySelector("h3")||t.querySelector("h4")||t.querySelector("h5")||t.querySelector("h6");r?r.setAttribute("class",o):a.setAttribute("class",o)});let a=document.querySelectorAll(".interactive-demo .tabs .block-feature");a.forEach(e=>{let t=document.createElement("div");t.classList.add("layout","layout--focus"),t.appendChild(e.cloneNode(!0)),e.parentNode.replaceChild(t,e)});let r=document.querySelectorAll(".statement-banner .block-heading:not(:has(.text-gradient)");r.forEach(e=>{let t=document.createElement("div");t.classList.add("layout","layout--focus"),t.appendChild(e.cloneNode(!0)),e.parentNode.replaceChild(t,e)});let n=document.querySelector(".statement-banner .block-heading--campaign");n?.classList.add("statement-banner-override-class");let i=document.querySelectorAll(".section-master--layout-header-horizontal-alignment-center-focus");i.forEach(e=>{e.classList.add("section-master--layout-header-horizontal-alignment-center","section-master--alignment-center")})}}"interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",e)})(); /*!295096*/(()=>{let e=document.querySelectorAll("#oc-contact-sales ul > li > div > button");e.forEach(e=>{"7"!==e.dataset.biBhvr&&(e.dataset.biBhvr="7",e.dataset.biCn+="_Icon")});let t=`#oc-contact-sales ul > li > div > span.glyph-prepend:hover {cursor: default;}`,a=document.createElement("style");a.setAttribute("id","Static Override 295096"),a.appendChild(document.createTextNode(t)),document.head.appendChild(a)})(); /*!295857*/(()=>{let e=window.location.origin,t=window.location.pathname,i=t.split("/")[1],r="/"+i,o=t.replace(r,""),a=["/isv/qa-folder/qa/copilot-for-work","/microsoft-365/copilot-for-work","/microsoft-365/copilot-for-work/"];function n(){for(let t of a)if(o===t)return"https://www.microsoft.com"===e}var l=function(){function e(e){var t=this;e&&e.dataset&&e.dataset.video&&(this.playerContainerElementId=e.getAttribute("id"),this.playerData=JSON.parse(e.dataset.video),this.originalTelemetryDataObject=null,e&&e.dataset&&e.dataset.m&&(this.originalTelemetryDataObject=JSON.parse(e.dataset.m)),this.videoEventsNotBound=!0,this.previousTime=0,this.previousWatchTimePercentage=0,this.playerAPI=function(e){t.videoPlayer=e},this.renderOnePlayer())}return e.prototype.renderOnePlayer=function(){var e=this;window.MsOnePlayer.render(this.playerContainerElementId,this.playerData,function(t){e.playerAPI(t)})},e.prototype.disposeVideoPlayer=function(){this.videoPlayer&&this.videoPlayer.dispose&&this.videoPlayer.dispose()},e}();function s(e){e&&e.length&&e.forEach(function(e){var t=e.querySelector(".ow-m365-video-player-ctn");if(t){var i="m365-video-inline-override-"+d();window&&window.MsOnePlayer&&"true"!==t.dataset.isInitialized&&(t.id=i,new l(t),t.dataset.isInitialized="true")}})}function d(){var e=new Uint32Array(3);return window.crypto.getRandomValues(e),(performance.now().toString(36)+Array.from(e).map(function(e){return e.toString(36)}).join("")).replace(/\./g,"")}function c(){if(!n())return;let e=document.querySelectorAll(".ow-m365-video");e.length&&s(e)}"interactive"===document.readyState||"complete"===document.readyState?c():document.addEventListener("DOMContentLoaded",c)})(); /*!296927*/(()=>{function e(){let e=window.location.hostname;["www.microsoft.com","azure.microsoft.com"].includes(e)&&void 0!=document.querySelector(".testimonial-card__content-media .ocr-img")&&function e(){let t=` .testimonial-card__content-media .ocr-img { --image-width: unset; } `;document.body.insertAdjacentHTML("beforeend",'")}()}"interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",e)})(); /*!298516*/(()=>{let t=window.location.origin,e=` .btn.btn--icon-only.btn--sm { padding: var(--root-spacing-xs); } `;function o(){let t=document.querySelector("body");return t&&t.classList.contains("reimagine-page")}function n(){return"https://www.microsoft.com"===t||"https://azure.microsoft.com"===t||"https://sites-author.adobeprod.microsoft.com"===t||"https://sites-author.adobeprod.microsoft.com"===t}function r(){n()&&o()&&document.body.insertAdjacentHTML("beforeend",'")}"interactive"===document.readyState||"complete"===document.readyState?r():document.addEventListener("DOMContentLoaded",r)})(); /*!298533*/(()=>{let t=window.location.origin,e=window.location.pathname,o=e.split("/")[1],i="/"+o,r=e.replace(i,""),a=["/microsoft/bade/en-us/copilot.html","/launches/2023/11/16/282257-november-21-2023/content/microsoft/bade/en-us/microsoft-cloud.html"],n=["/copilot","/copilot/","/microsoft-cloud","/microsoft-cloud/"],s=` .section-master.section-master--override298533 { @media (min-width: 860px) { height: 100vh; max-height: 550px; display: flex; align-items: center; } @media (min-width: 1440px) { max-height: 800px; } } `;function d(){for(let e of a)if(r.startsWith(e))return"https://sites-author.adobeprod.microsoft.com"===t}function c(){for(let e of n)if(r===e)return"https://www.microsoft.com"===t}function l(){if(!d()&&!c())return;let t=document.querySelectorAll('[data-mount="m365-video"].section-master__video');for(let e of t)e.classList.add("m365-video--control-top-right"),e.parentElement.classList.add("section-master--override298533");document.body.insertAdjacentHTML("beforeend",'")}"interactive"===document.readyState||"complete"===document.readyState?l():document.addEventListener("DOMContentLoaded",l)})(); /*!301626*/(()=>{let e=window.location.origin,t=` .theme-day { --theme-background-background-overlay-fill : var(--root-overlay-day-bg-overlay-fill); } .theme-night { --theme-background-background-overlay-fill : var(--root-overlay-night-bg-overlay-fill); } `;function o(){for(var e=document.querySelectorAll(".carousel__indicators-item__media .media.media--ratio-21-9 .ocr-img.img-fluid.media__asset"),t=0;t'+t+""),o())}"interactive"===document.readyState||"complete"===document.readyState?i():document.addEventListener("DOMContentLoaded",i)})(); /*!303250*/(()=>{let t=window.location.origin,o=` .modal--full-screen [data-mount='reimagine-modal'].theme-night .modal-close { border-color: #fff; } .modal--full-screen [data-mount='reimagine-modal'].theme-night .modal-close .glyph-prepend-cancel { color: #fff !important; } `;function e(){for(var t=document.querySelectorAll(".media__slot .btn--icon-onlybtn--secondary"),o=0;o'+o+"")}function r(){let t=document.querySelector("body");return t&&t.classList.contains("reimagine-page")}function a(){return"https://www.microsoft.com"===t||"https://azure.microsoft.com"===t||"https://sites-author.adobeprod.microsoft.com"===t||"https://sites-author.adobeppe.microsoft.com"===t}function c(){a()&&r()&&(e(),n())}"interactive"===document.readyState||"complete"===document.readyState?c():document.addEventListener("DOMContentLoaded",c)})(); /*!293492*/(()=>{let o=window.location.origin,t=window.location.pathname,r=t.split("/")[1],e="/"+r,s=t.replace(e,""),c=["/microsoft/bade/en-us/microsoft-365/homepage-b.html","/microsoft/bade/en-us/microsoft-365/microsoft-365-business.html","/microsoft/bade/en-us/microsoft-365/microsoft-365-enterprise.html","/microsoft/bade/en-us/microsoft-365/copilot-for-work.html","/microsoft/bade/en-us/power-platform.html","/microsoft/bade/en-us/microsoft-365.html"],i=["/microsoft-365/homepage-b","/microsoft-365/homepage-b/","/microsoft-365/microsoft-365-business","/microsoft-365/microsoft-365-business/","/microsoft-365/microsoft-365-enterprise","/microsoft-365/microsoft-365-enterprise/","/microsoft-365/copilot-for-work","/microsoft-365/copilot-for-work/","/power-platform","/power-platform/","/microsoft-365","/microsoft-365/","/power-platform/resources","/power-platform/resources/"],f=["/products/managed-ccf","/products/managed-ccf/"];function m(){for(let t of c)if(s.startsWith(t))return"https://sites-author.adobeprod.microsoft.com"===o}function a(){for(let t of i)if(s===t)return"https://www.microsoft.com"===o}function l(){for(let t of f)if(s===t)return"https://azure.microsoft.com"===o}function n(){if(!m()&&!a()&&!l())return;let o=document.querySelectorAll(".card-grid");for(let t of o){let r=t.querySelectorAll(".card-grid__cards .layout__col");for(let e of r)e.querySelector(".block-feature__paragraph")||(e.style.display="none")}}"interactive"===document.readyState||"complete"===document.readyState?n():document.addEventListener("DOMContentLoaded",n)})(); /*!304410*/(()=>{function e(){let e="block-feature__eyebrow",t=document.querySelector('[data-component-id="88c73f454d3d7e6b4978837690a0c11d"]');if(t){let a=t.querySelector(".dynamic-content__template .card-grid--disable-card-promo .block-feature__headings");if(a){let n=a.getElementsByClassName(e);if(!n||0==n.length){let d=document.createElement("div");d.className=e;let l=document.createElement("h5");l.className="block-feature__label",l.innerText="Label",d.appendChild(l),a.insertBefore(d,a.firstChild);var r=document.createEvent("Event");r.initEvent("DOMContentLoaded",!0,!0),window.document.dispatchEvent(r)}}}}"interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",e)})(); /*!315749*/(()=>{let t=window.location.origin,e=window.location.pathname,i=e.split("/")[1],o="/"+i,s=e.replace(o,""),r=` .section-master .section-master__slot .col div.media-block:last-child .media-block__caption {padding-bottom: 0;} `;function a(){return"https://sites-author.adobeprod.microsoft.com"===t&&s.startsWith("/microsoft/bade/en-us/security/security-insider/")||"https://www.microsoft.com"===t&&s.startsWith("/security/security-insider/")}function c(){a()&&document.body.insertAdjacentHTML("beforeend",'")}"interactive"===document.readyState||"complete"===document.readyState?c():document.addEventListener("DOMContentLoaded",c)})(); /*!317765*/(()=>{"use strict";(()=>{const t="Success",e=".oc-shared-pricing-data",c="[data-oc-product~='purchase']",r="[data-oc-product~='not-available'] p",o="[data-oc-shared-data='oc-tax-disclaimer'] p",a="[data-oc-shared-data='oc-consumer-tax-disclmr'] p",n="data-oc-product",d="oc-tax-disclaimer",i="oc-consumer-tax-disclmr",u="/etc.clientlibs/onecloud/clientlibs/clientlib-product-pricing.min";function l(){const e=null!==document.querySelector('[data-component-id="3a796505b6c04fa385e30bdb1b3679f7"]'),r=null!==document.querySelector(c);if(!e||!r)return;const o=performance.getEntriesByType("resource").filter(t=>200===t.responseStatus),a=o.some(t=>"script"===t.initiatorType&&t.name.includes(u));o.some(t=>"link"===t.initiatorType&&t.name.includes(u))||function(){const t=document.createElement("style");t.id="static-override-317765",t.textContent='\n [data-oc-product]:not([data-oc-product*=Success]) > * {\n display: none;\n }\n\n [data-oc-product]:not([data-oc-product*=Success]) [data-oc-product="not-available"],\n [data-oc-product]:not([data-oc-product*=Success]) [data-oc-product="not-available"] * {\n display: block !important\n }\n ',document.head.appendChild(t)}(),a||(s(),p(),document.addEventListener("onComplete",()=>{document.querySelectorAll("[data-token-text]").forEach(e=>{const c=e.querySelector("[data-oc-product*=purchase][data-oc-product*=main]");if(!c)return;const r=e.querySelectorAll("[data-oc-product*=purchase]:not([data-oc-product*=main])[data-token=m365ProductPrice]");if(!r)return;let o=t;for(const e of r){let c=e.getAttribute(n).split(" ")[1];if(c!==t){o=c;break}}let a=c.getAttribute(n),d=a.split(" ")[2];c.setAttribute(n,a.replace(d,o))}),p(),s()}))}function s(){const t=document.querySelectorAll(c);t&&t.forEach(t=>{const c=t.getAttribute(n).split(" ")[2],u=document.querySelector(e);let l=t.querySelector(o),s=t.querySelector(a),p=t.querySelector(r);u&&(p&&c&&(p.innerHTML=u.getAttribute(c)),l&&(l.innerHTML=u.getAttribute(d)),s&&(s.innerHTML=u.getAttribute(i)))})}function p(){const e=document.querySelectorAll(c);e&&e.forEach(e=>{const c=e.getAttribute(n).split(" ")[2];let d=e.querySelector(o),i=e.querySelector(a),u=e.querySelector(r);c===t?(d&&d.removeAttribute("aria-hidden"),i&&i.removeAttribute("aria-hidden"),u&&u.setAttribute("aria-hidden","true")):(d&&d.setAttribute("aria-hidden","true"),i&&i.setAttribute("aria-hidden","true"),u&&u.removeAttribute("aria-hidden"))})}"interactive"===document.readyState||"complete"===document.readyState?l():document.addEventListener("DOMContentLoaded",()=>l())})()})(); /*!329115*/(()=>{let t=document.querySelectorAll("img.card-img"),e=t=>{if("IMG"!==t.tagName)return!1;let e=t.getAttribute("width")||t.getAttribute("height")||t.naturalWidth||t.naturalHeight;if(!e)return!1;let r=Number.parseInt(e);return!isNaN(r)&&!!(r<100)},r=t=>new Promise((e,r)=>{let a=new MutationObserver((t,r)=>{for(let a of t)if("attributes"===a.type&&"class"===a.attributeName){let i=a.target;i.classList.contains("lazyloaded")&&(r.disconnect(),e())}});a.observe(t,{attributes:!0,attributeFilter:["class"]})}),a=t=>{t.classList.remove("card-img")},i=Array.from(t).filter(e);i.forEach(a);let l=document.querySelectorAll("img.card-img.lazyload, img.card-img.lazyloading");l.forEach(t=>{r(t).then(()=>{e(t)&&a(t)})})})(); /*!340602*/(()=>{let e=window.location.origin,t="https://www.microsoft.com",o="https://sites-author.adobeprod.microsoft.com",a=window.location.pathname,l=a.split("/")[1],i="/"+l,r=a.replace(i,""),c=` @media (min-width: 1280px) { .carousel--type-media-playlist-video .carousel__overlay-content.theme-night .block-feature__label { color: var(--root-color-sky-blue-300); } .carousel--type-media-playlist-video .carousel__overlay-content.theme-night .block-feature__title { --block-feature-title-color: var(--root-color-sky-blue-50); } .carousel--type-media-playlist-video .carousel__overlay-content.theme-night .block-feature__paragraph { color: var(--root-color-sky-blue-100); } .carousel--type-media-playlist-video .carousel__controls.theme-night .list-item__content .label-small { --fg-val: var(--root-color-sky-blue-300); } .carousel--type-media-playlist-video .carousel__controls.theme-night .list-item__content-title { --fg-val: var(--root-color-sky-blue-50); } } @media (max-width: 1279.8px) { .carousel--type-media-playlist-video .carousel__controls { z-index: 1 !important; } } `;function s(){return e===o&&r.startsWith("/microsoft/bade/en-us/copilot/maximize-impact")||e===t&&r.startsWith("/microsoft-copilot/maximize-impact")||e===o&&r.startsWith("/launches/2024/04/26/328153-may-9-2024/content/microsoft/bade/en-us/copilot/ai-get-ready")||e===t&&r.startsWith("/microsoft-copilot/ai-get-ready")}function n(){s()&&(d(),document.body.insertAdjacentHTML("beforeend",'"))}function d(){let e=document.querySelectorAll(".interactive-demo__tab .tab");e.length&&e.forEach(e=>{e.addEventListener("click",e=>{let t=document.querySelector(".video-js.vjs-playing");if(t){let o=t.querySelector("video");o.pause()}})})}"interactive"===document.readyState||"complete"===document.readyState?n():document.addEventListener("DOMContentLoaded",n)})(); /*!334365*/(()=>{let e={"www.microsoft.com":{markets:["en-us"]},"azure.microsoft.com":{markets:["en-us"]},previews:!0},t=e=>{let t=location.hostname,o=location.pathname,s=document.documentElement.lang.toLowerCase(),a={"sr-rs":["sr-rs","sr-latn-rs","sr-cyrl-rs"],default:[s]},c=a[s]||a.default,n=c.find(e=>-1!==o.indexOf(e)),l=o.replace(`/${n}`,"").replace(/\/$/,""),i=e.previews&&("sites-author.adobeprod.microsoft.com"===t||"sites-author.adobeppe.microsoft.com"===t),m={"/content/microsoft/bade":"www.microsoft.com","/content/azure/acom":"azure.microsoft.com"},d=t,u=r(),f=l;if(i){let h=o.replace(/\/content\/launches(\/[^\/]+){4}/g,""),p=Object.keys(m).find(e=>h.startsWith(e));if(d=m[p],!p||!d)return!1;f=h.replace(p,"").replace(`/${n}`,"").replace(".html","")}let w=e[d];return!!(w&&(!w.markets||w.markets.includes(u))&&(!w.paths||w.paths.includes(f)))},r=()=>{let e=document.documentElement.lang.toLowerCase(),t=e.split("-")[0],r=new URLSearchParams(location.search).get("market")?.toLowerCase();return r?`${t}-${r}`:e},o=()=>{document.querySelectorAll(".us-hidden").forEach(e=>{let t=new URL(e.href),r=new URLSearchParams(t.search);r.delete("clcid"),r.delete("culture"),r.delete("country"),t.search=r.toString(),e.href=t.toString()})},s=e=>{"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()};t(e)&&s(o)})(); /*!343666*/(()=>{let e={"www.microsoft.com":{markets:["ar","bg-bg","zh-cn","zh-hk","zh-tw","hr-hr","cs-cz","da-dk","nl-nl","nl-be","en","et-ee","fi-fi","fr-be","fr-ca","fr-fr","fr","fr-ch","de-de","de-at","de-ch","el-gr","he-il","hu-hu","id-id","it-it","ja-jp","ko-kr","lv-lv","lt-lt","nb-no","pl-pl","pt-pt","pt-br","ro-ro","ru-ru","sr-latn-rs","sk-sk","sl-si","es-ar","es-cl","es-co","es","es-mx","es-es","sv-se","th-th","tr-tr","uk-ua","vi-vn"],paths:["/microsoft-365/planner/microsoft-planner-plans-and-pricing"]},previews:!0,marketAware:!1},t=e=>{let t=location.hostname,a=location.pathname,s=document.documentElement.lang.toLowerCase(),o={"sr-rs":["sr-rs","sr-latn-rs","sr-cyrl-rs"],default:[s]},n=o[s]||o.default,l=n.find(e=>-1!==a.indexOf(e)),c=a.replace(`/${l}`,"").replace(/\/$/,""),i=e.previews&&("sites-author.adobeprod.microsoft.com"===t||"sites-author.adobeppe.microsoft.com"===t),d={"/content/microsoft/bade":"www.microsoft.com","/content/azure/acom":"azure.microsoft.com"},m=t,p=r(e.marketAware),h=c;if(i){let f=a.replace(/\/content\/launches(\/[^\/]+){4}/g,""),u=Object.keys(d).find(e=>f.startsWith(e));if(m=d[u],!u||!m)return!1;h=f.replace(u,"").replace(`/${l}`,"").replace(".html","")}let w=e[m];return!!(w&&(!w.markets||w.markets.includes(p))&&(!w.paths||w.paths.includes(h)))},r=e=>{let t=document.documentElement.lang.toLowerCase(),r=t.split("-")[0],a=new URLSearchParams(location.search).get("market")?.toLowerCase();return a&&!1!==e?`${r}-${a}`:t},a=()=>{document.querySelectorAll('[data-product-id="CFQ7TTC0HDB1"] .oc-title').forEach(e=>{e.textContent="Planner Plan 1"})},s=e=>{"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()};t(e)&&s(a)})(); /*!345256*/(()=>{let e={"azure.microsoft.com":{},previews:!0},t=e=>{let t=location.hostname,a=location.pathname,o=document.documentElement.lang.toLowerCase(),s={"sr-rs":["sr-rs","sr-latn-rs","sr-cyrl-rs"],default:[o]},n=s[o]||s.default,c=n.find(e=>-1!==a.indexOf(e)),l=a.replace(`/${c}`,"").replace(/\/$/,""),i=e.previews&&("sites-author.adobeprod.microsoft.com"===t||"sites-author.adobeppe.microsoft.com"===t),m={"/content/microsoft/bade":"www.microsoft.com","/content/azure/acom":"azure.microsoft.com"},d=t,p=r(e.marketAware),u=l;if(i){let f=a.replace(/\/content\/launches(\/[^\/]+){4}/g,""),h=Object.keys(m).find(e=>f.startsWith(e));if(d=m[h],!h||!d)return!1;u=f.replace(h,"").replace(`/${c}`,"").replace(".html","")}let w=e[d];return!!(w&&(!w.markets||w.markets.includes(p))&&(!w.paths||w.paths.includes(u)))},r=e=>{let t=document.documentElement.lang.toLowerCase(),r=t.split("-")[0],a=new URLSearchParams(location.search).get("market")?.toLowerCase();return a&&!1!==e?`${r}-${a}`:t},a=()=>{telemetry.appInsightsCore.addTelemetryInitializer(e=>{try{e.ext.web.userConsent=!1}catch(t){console.error(t)}return e})},o=e=>{"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()};t(e)&&o(a)})(); /*! 351594: Fix issue where sticky table header covers too much of viewport in sku-list-table component */ (()=>{const run=()=>{const stickyTableHeaders=document.querySelectorAll(`.sku-list-table thead.position-sticky`);if(!stickyTableHeaders.length||!mwf?.Sticky){return}stickyTableHeaders.forEach(stickyTableHeader=>{stickyTableHeader.classList.remove("position-sticky","top-0");stickyTableHeader.style.display="table-header-group";const stickyTableHeaderComponent=new mwf.Sticky({el:stickyTableHeader})})};if(document.readyState!=="loading"){run()}else{document.addEventListener("DOMContentLoaded",run)}})(); /*! 189677 Outlook deeplink support */ (()=>{if(location.pathname.indexOf("/microsoft-365/outlook/")===-1)return;const doLogging=window.location.hostname!=="www.microsoft.com";const emptyString="";const intervalDelay=250;const maxIterations=40;const queryParamExp=/(?:\?|&)[^\s&]*/g;const dogfoodSignInURL="https://outlook-sdf.live.com/mail/";let signInParams={};const dogfoodSignInParams={cobrandid:"ab0455a0-8d03-46b9-b18b-df2f57b9e44c",nlp:"1"};const pageSignInSelector=` [href*="LinkID=2092832" i], [href*="LinkID=2105311" i], [href*="LinkID=2105416" i], [href*="LinkID=2125442" i] `;const uhfSignInSelector='#mectrl_main_trigger[href*="signin" i]';let iterations=0;let overrideInterval;let queryParams;const signInFWLink="https://go.microsoft.com/fwlink/p/?LinkID=2125442";let signInHref;function debounce(func,delay){let debounceDelay=delay!==undefined?delay:10;let debounceTimeout;return function(){if(debounceTimeout){window.clearTimeout(debounceTimeout)}debounceTimeout=window.setTimeout(function(){debounceTimeout=null;func()},debounceDelay)}}function getQueryParams(){let queryParams={};let queryParamMatches=window.location.search.match(queryParamExp);if(queryParamMatches&&queryParamMatches.length){queryParamMatches.forEach(function(queryParamMatch){let splitParam=queryParamMatch.split("=");if(splitParam.length===2){queryParams[splitParam[0].slice(1)]=splitParam[1]}})}return queryParams}function tryUpdateUHFSignInHref(){let uhfSignIn=document.querySelector(uhfSignInSelector);if(uhfSignIn){setSignInHref(uhfSignIn);return true}return false}function doCoherenceOverride(){let shouldClearInterval=false;if(tryUpdateUHFSignInHref()){shouldClearInterval=true;if(doLogging){console.log("Outlook UHF sign-in override loaded after "+iterations+" iterations.")}}else if(iterations>=maxIterations){shouldClearInterval=true;if(doLogging){console.log("Outlook UHF sign-in override skipped after "+iterations+" iterations.")}}if(shouldClearInterval){clearInterval(overrideInterval)}iterations++}function setSignInHref(el){el.setAttribute("href",signInHref)}function run(){overrideInterval=setInterval(tryUpdateUHFSignInHref,intervalDelay);window.addEventListener("resize",debounce(doCoherenceOverride,3e3));if(signInParams["deeplink"]||isDogfood){Array.prototype.forEach.call(document.querySelectorAll(pageSignInSelector),setSignInHref);if(doLogging){console.log("Outlook page sign-in override loaded.")}}else if(doLogging){console.log("Outlook page sign-in override skipped.")}}queryParams=getQueryParams();const isDogfood=queryParams["sdf"]==="1";if(queryParams["deeplink"]){signInParams["deeplink"]=decodeURIComponent(queryParams["deeplink"]).replace(/^\//,emptyString)}if(isDogfood){signInParams={...dogfoodSignInParams,...signInParams}}signInHref=isDogfood?dogfoodSignInURL:signInFWLink;const signInUrl=new URL(signInHref);Object.keys(signInParams).forEach(key=>signInUrl.searchParams.append(key,signInParams[key]));signInHref=signInUrl.href;if(document.readyState!=="loading"){run()}else{document.addEventListener("DOMContentLoaded",run)}})(); /*! 356617 UMPs inside of carousels not correctly sized */ (()=>{const pageScope={"www.microsoft.com":{paths:["/qa-folder/iss_qa/ai-get-ready3","/microsoft-365/business/win-with-copilot"],markets:["en-us"]},previews:true};function updateModalCarouselUMPWidths(){let modalCarousels=document.querySelectorAll(".modal .carousel");modalCarousels.forEach(carousel=>{const hasUMP=carousel.querySelector("universal-media-player");if(hasUMP){const carouselContainer=carousel.querySelector(".carousel__container");const carouselSlides=carousel.querySelectorAll(".carousel__slide");const carouselCMP=carousel.querySelectorAll(".cascade-media-player");if(carouselContainer){carouselContainer.classList.add("w-100")}carouselSlides.forEach(slide=>{slide.classList.add("w-100")});carouselCMP.forEach(cmp=>{cmp.classList.add("w-100")})}})}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(updateModalCarouselUMPWidths)}})(); /*! 356283: Biz Apps trial links in secondary nav "lock" the page. Remove duplicate trial DOM elements for mobile VPs */ (()=>{const pageScope={"www.microsoft.com":{paths:["/power-platform/products/power-apps","/power-platform/products/power-apps/partners","/power-platform/products/power-pages","/dynamics-365/products/customer-insights","/dynamics-365/products/guides","/dynamics-365/products/field-service","/dynamics-365/products/customer-service","/dynamics-365/products/sales","/dynamics-365/products/contact-center"]},previews:true};function removeDuplicateSecondaryNavBAPButton(){let secondaryNavBAPTrialButton=document.querySelector(".secondary-nav .dropdown [new-trial-web-component-trigger]");let secondaryNavBAPTrial=document.querySelector(".secondary-nav .dropdown new-trial");if(secondaryNavBAPTrialButton&&secondaryNavBAPTrial){secondaryNavBAPTrialButton.remove();secondaryNavBAPTrial.remove()}}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(removeDuplicateSecondaryNavBAPButton)}})(); /*! 359042: Windows 365 GPU sku Variable price */ (()=>{const pageScope={"www.microsoft.com":{paths:["/windows-365/enterprise/compare-plans-pricing"]},previews:true};const locContent={ar:"متغير","bg-bg":"Променлива","cs-cz":"Variabilní","da-dk":"Variable","de-at":"Variabel","de-ch":"Variabel","de-de":"Variabel","el-gr":"Μεταβλητή",en:"Variable","en-au":"Variable","en-ca":"Variable","en-gb":"Variable","en-ie":"Variable","en-in":"Variable","en-my":"Variable","en-nz":"Variable","en-sg":"Variable","en-us":"Variable","en-za":"Variable",es:"Variable","es-ar":"Variable","es-cl":"Variable","es-co":"Variable","es-es":"Variable","es-mx":"Variable","et-ee":"Muutuja","fi-fi":"Vaihtelee",fr:"Variable","fr-be":"Variable","fr-ca":"Variable","fr-ch":"Variable","fr-fr":"Variable","he-il":"משתנה","hr-hr":"Promjenjivo","hu-hu":"Változó","id-id":"Variabel","it-it":"Variable","ja-jp":"変動制","ko-kr":"가변","lt-lt":"Priklauso nuo aplinkybių","lv-lv":"Mainīgais","nb-no":"Variable","nl-be":"Variabele","nl-nl":"Variabele","pl-pl":"Różnie","pt-br":"Variável","pt-pt":"Variável","ro-ro":"Variabilă","ru-ru":"Переменная","sk-sk":"Variabilné","sl-si":"Spremenljivo","sr-rs":"Promenljiva","sv-se":"Varierar","th-th":"ตัวแปร","tr-tr":"Değişken","uk-ua":"Змінна","vi-vn":"Biến","zh-cn":"变量","zh-hk":"變數","zh-tw":"變數"};const locale=document.documentElement.lang.toLowerCase();function setSkuPricing(){const priceSelector='.oc-sku-card-w365 [data-product-id="CFQ7TTC0HHS9"][data-sku-id="0050"] .oc-list-price';document.querySelectorAll(priceSelector).forEach(price=>{price.textContent=locContent[locale]||locContent["en-us"];price.setAttribute("data-product-price-override","true")})}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(setSkuPricing)}})(); /*!313132/332084 Copilot pricing for annual commitment placement */ (()=>{const targetSelector="[data-ocr-skurequest='a0c4p0_pidcfq7ttc0mm8r_skuid0002_r2p1']";const cardPlanDetailListClass="card-plan-detail-list";const cardPlanDetailGridCardSelector=".card-plan-detail--grid-card";const skuPricingSelector=".sku__pricing";const skuParagraphSelector=".sku__paragraph";const skuRecurrenceSelector=".sku__detail-recurrence";const pageScope={"www.microsoft.com":{paths:["/microsoft-365/business/copilot-for-microsoft-365","/microsoft-365/microsoft-copilot","/microsoft-365/enterprise/copilot-for-microsoft-365"]},previews:true};function moveSkuParagraph(){const skus=document.querySelectorAll(targetSelector);skus.forEach(sku=>{const cardPlanDetail=sku.closest(cardPlanDetailGridCardSelector);moveSkuParagraphByElement(sku);moveSkuParagraphByGrid(cardPlanDetail)})}function moveSkuParagraphByElement(sku){if(!sku){return}const skuParagraph=sku.querySelector(skuParagraphSelector);if(!skuParagraph){return}const skuRecurrence=sku.querySelector(skuRecurrenceSelector);if(!skuRecurrence){return}sku.insertBefore(skuParagraph,skuRecurrence.nextSibling)}function moveSkuParagraphByGrid(cardPlanDetail){if(!cardPlanDetail){return}const cardPlanDetailList=cardPlanDetail.parentElement;if(!cardPlanDetailList||!cardPlanDetailList.classList.contains(cardPlanDetailListClass)){return}changeGridElementPosition(cardPlanDetailList,skuPricingSelector,"2");changeGridElementPosition(cardPlanDetailList,skuRecurrenceSelector,"3");changeGridElementPosition(cardPlanDetailList,skuParagraphSelector,"4")}function changeGridElementPosition(cardPlanDetailList,sectionSelector,position){const skuSections=cardPlanDetailList.querySelectorAll(sectionSelector);if(skuSections){skuSections.forEach(skuSection=>skuSection.style.gridRowStart=position)}}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(moveSkuParagraph)}})(); /*! 254637: Add Banner to ACOM and BizApps sites for RU-* locales stating that sales are suspended */ (()=>{const pageScope={"www.microsoft.com":{paths:["/power-platform","/dynamics-365"],allSubpaths:true,markets:["ru-ru"]},"azure.microsoft.com":{markets:["ru-ru"]},previews:true,marketAware:false};function addBannerMarkup(){var isAzurePage=window.location.hostname==="azure.microsoft.com"||window.location.href.includes("https://sites-author.adobeprod.microsoft.com/content/azure/acom/")||window.location.href.includes("https://sites-author.adobeppe.microsoft.com/content/azure/acom/");var isReimagine=document.querySelector("body.reimagine-page")?true:false;var bannerHTML=isReimagine?`
`:`

Майкрософт приостановил все новые продажи продуктов и услуг в Беларуси и России.

Подробнее
`;var container=document.querySelector(".aem-Grid.aem-Grid--12.aem-Grid--default--12")?.querySelector(".aem-Grid.aem-Grid--12.aem-Grid--default--12")?.querySelector(".aem-Grid.aem-Grid--12.aem-Grid--default--12");if(container){container.insertAdjacentHTML("afterbegin",bannerHTML)}}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(addBannerMarkup)}})(); /*!370970 Copilot Naming */ (()=>{const targetSelector="[data-ocr-skurequest='a0c4p0_pidcfq7ttc0mm8r_skuid0002_r2p1']";const productTitleSelector=".sku__title .oc-product-title";const productTitle="Microsoft 365 Copilot";const pageScope={"www.microsoft.com":{paths:["/microsoft-365/microsoft-365-enterprise","/microsoft-365/copilot","/microsoft-365/copilot/enterprise","/microsoft-365/copilot/business","/microsoft-copilot/microsoft-copilot-studio"]},previews:true,marketAware:false};const pageScopeChina={"www.microsoft.com":{paths:["/microsoft-365/microsoft-365-enterprise","/microsoft-365/copilot","/microsoft-365/copilot/enterprise","/microsoft-365/copilot/business","/microsoft-copilot/microsoft-copilot-studio"],markets:["zh-cn"]},previews:true};function updateProductTitle(){const skus=document.querySelectorAll(targetSelector);skus.forEach(sku=>{const productTitleElem=sku.querySelector(productTitleSelector);if(productTitleElem){productTitleElem.textContent=productTitle}})}if(window.SOUtil.pageIsInScope(pageScope)&&!window.SOUtil.pageIsInScope(pageScopeChina)){window.SOUtil.runOnPageLoad(updateProductTitle)}})(); /*!07/14 Override for AI pages */ (()=>{const pageScope={"www.microsoft.com":{paths:["/ai/principles-and-approach","/ai/tools-practices","/ai/responsible-ai"]},previews:true};const cssOverride=` [data-oc="oc209b"] + .row.section-master__slot, [data-oc="ocf7ba"] + .row.section-master__slot, [data-oc="oc9d58"] + .row.section-master__slot, [data-oc="ocf6a1"] + .row.section-master__slot, [data-oc="ocfa16"] + .row.section-master__slot, [data-oc="oc404b"] + .row.section-master__slot{ margin-left: 0 !important; margin-right: 0 !important; } .ocr-accordion:not(.ocr-accordion--contained) .accordion .ocr-accordion-item:first-child .ocr-accordion-item__header { padding-top: 1.5rem !important } .ocr-accordion:not(.ocr-accordion--contained) .accordion .accordion-vertical-item:first-child .ocr-accordion-item__header { padding-top: 0 !important; } @media (min-width:860px) { .accordion--vertical .media { width: 50% !important; } } `;function applyCSS(){const style=document.createElement("style");style.setAttribute("id","Static Override AI Pages 0714");document.head.appendChild(style);style.appendChild(document.createTextNode(cssOverride))}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(applyCSS)}})(); /*! 377400 - Update button styles in AI Chat Drawer */ (()=>{const overrideId="377400";const cssStyles=` .ai-chat-drawer .webchat__bubble__content--follow-up { background-color: transparent !important; } .ai-chat-message, .ai-chat-drawer .webchat__bubble__content .webchat__text-content[id^="follow-up"] .ac-actionSet .ac-pushButton:not(.action--ai-feedback), .ai-chat-drawer .webchat__bubble__content .ac-adaptiveCard[id^="follow-up"] .ac-actionSet .ac-pushButton:not(.action--ai-feedback) { padding: var(--root-spacing-m) var(--root-spacing-l); border-radius: var(--root-radii-s); font-size: 0.875rem; font-weight: 400; } .ai-chat-message--tag, .ai-chat-drawer .webchat__bubble__content .webchat__text-content[id^="follow-up"] .ac-actionSet .ac-pushButton:not(.action--ai-feedback), .ai-chat-drawer .webchat__bubble__content .ac-adaptiveCard[id^="follow-up"] .ac-actionSet .ac-pushButton:not(.action--ai-feedback) { border-width: var(--root-border-xs); padding: var(--root-spacing-xs) 10px; width: auto; line-height: 20px; } .ai-chat-drawer .webchat__bubble__content .webchat__text-content[id^="follow-up"], .ai-chat-drawer .webchat__bubble__content .ac-adaptiveCard[id^="follow-up"] { padding: 0 !important; } .ai-chat-drawer .webchat__bubble__content .webchat__text-content[id^="follow-up"] .ac-actionSet, .ai-chat-drawer .webchat__bubble__content .ac-adaptiveCard[id^="follow-up"] .ac-actionSet { align-items: flex-end !important; } .ai-chat-drawer .webchat__bubble__content .webchat__text-content[id^="follow-up"] .ac-actionSet .ac-pushButton:not(.action--ai-feedback), .ai-chat-drawer .webchat__bubble__content .ac-adaptiveCard[id^="follow-up"] .ac-actionSet .ac-pushButton:not(.action--ai-feedback) { max-width: 100%; } .ai-chat-message, .ai-chat-drawer .webchat__bubble__content .webchat__text-content[id^="follow-up"] .ac-actionSet .ac-pushButton:not(.action--ai-feedback), .ai-chat-drawer .webchat__bubble__content .ac-adaptiveCard[id^="follow-up"] .ac-actionSet .ac-pushButton:not(.action--ai-feedback) { padding: var(--root-spacing-m) var(--root-spacing-l); border-radius: var(--root-radii-s); font-size: 0.875rem; font-weight: 400; } .ai-chat-message--tag, .ai-chat-drawer .webchat__bubble__content .webchat__text-content[id^="follow-up"] .ac-actionSet .ac-pushButton:not(.action--ai-feedback), .ai-chat-drawer .webchat__bubble__content .ac-adaptiveCard[id^="follow-up"] .ac-actionSet .ac-pushButton:not(.action--ai-feedback) { border-width: var(--root-border-xs); padding: var(--root-spacing-xs) 10px; width: auto; line-height: 20px; } .ai-chat-drawer .ac-actionSet .ac-pushButton:not(.action--ai-feedback) { --button-justify-content: center; border: 2px solid var(--button-border-color); padding: var(--button-padding-y) var(--button-padding-x); justify-content: var(--button-justify-content); font-weight: 600; font-size: 0.9375rem; line-height: 1.375rem; letter-spacing: -0.02em; --button-padding-x: var(--root-spacing-m); --button-padding-y: var(--root-spacing-s); --button-padding-glyph: calc(var(--root-spacing-m) - 2px); border-radius: var(--root-radii-s); --button-spacing-glyph: var(--root-spacing-s); --button-bg-color: var(--theme-background-accent-strong-normal); --button-color: var(--theme-foreground-accent-strong-normal); --button-border-color: transparent; background-color: var(--button-bg-color); color: var(--button-color); --button-hover-bg-color: var(--theme-background-accent-strong-hover); --button-hover-color: var(--theme-foreground-accent-strong-hover); --button-hover-border-color: transparent; --button-pressed-bg-color: var(--theme-background-accent-strong-pressed); --button-pressed-color: var(--theme-foreground-accent-strong-pressed); --button-pressed-border-color: transparent; border-radius: var(--root-radii-s); --button-opacity: 0.2; --button-padding-x: var(--root-spacing-m); --button-padding-y: var(--root-spacing-xs); --button-padding-glyph: calc(var(--root-spacing-s) - 2px); --button-spacing-glyph: var(--root-spacing-xs); } .ai-chat-drawer .ac-actionSet .ac-pushButton:not(.action--ai-feedback):hover { --button-bg-color: var(--button-hover-bg-color); --button-color: var(--button-hover-color); --button-border-color: var(--button-hover-border-color); background-color: var(--button-bg-color); color: var(--button-color); border-color: var(--button-border-color); background-image: none; box-shadow: none; } .ai-chat-drawer .ac-actionSet .ac-pushButton:not(.action--ai-feedback):active { --button-bg-color: var(--button-pressed-bg-color); --button-color: var(--button-pressed-color); --button-border-color: var(--button-pressed-border-color); background-color: var(--button-bg-color); color: var(--button-color); border-color: var(--button-border-color); } .ai-chat-drawer .ac-actionSet .ac-pushButton:not(.action--ai-feedback):disabled, .ai-chat-drawer .ac-actionSet .ac-pushButton:not(.action--ai-feedback).disabled, .ai-chat-drawer .ac-actionSet .ac-pushButton:not(.action--ai-feedback).inactive { cursor: default; opacity: var(--button-opacity); } .ai-chat-drawer .ac-actionSet .ac-pushButton:not(.action--ai-feedback).style-default:not(.style-positive):not(.primary) { box-sizing: border-box; --button-bg-color: transparent; --button-color: var(--theme-foreground-accent-subtle-normal) !important; --button-border-color: var(--theme-border-accent-subtle-normal); background-color: var(--button-bg-color); color: var(--button-color); border-color: var(--button-border-color); --button-hover-bg-color: transparent; --button-hover-color: var(--theme-foreground-accent-subtle-hover) !important; --button-hover-border-color: var(--theme-border-accent-subtle-hover); --button-pressed-bg-color: transparent; --button-pressed-color: var(--theme-foreground-accent-subtle-pressed) !important; --button-pressed-border-color: var(--theme-border-accent-subtle-pressed); } .ai-chat-drawer .ac-actionSet .ac-pushButton:not(.action--ai-feedback).style-default:not(.style-positive):not(.primary):hover { --button-bg-color: var(--button-hover-bg-color); --button-color: var(--button-hover-color); --button-border-color: var(--button-hover-border-color); background-color: var(--button-bg-color); color: var(--button-color); border-color: var(--button-border-color); background-image: none; box-shadow: none; } .ai-chat-drawer .ac-actionSet .ac-pushButton:not(.action--ai-feedback).style-default:not(.style-positive):not(.primary):active { --button-bg-color: var(--button-pressed-bg-color); --button-color: var(--button-pressed-color); --button-border-color: var(--button-pressed-border-color); background-color: var(--button-bg-color); color: var(--button-color); border-color: var(--button-border-color); } .ai-chat-drawer .ac-actionSet .ac-pushButton:not(.action--ai-feedback).style-positive { --button-bg-color: var(--theme-background-accent-strong-normal); --button-color: var(--theme-foreground-accent-strong-normal); --button-border-color: transparent; background-color: var(--button-bg-color); color: var(--button-color); --button-hover-bg-color: var(--theme-background-accent-strong-hover); --button-hover-color: var(--theme-foreground-accent-strong-hover); --button-hover-border-color: transparent; --button-pressed-bg-color: var(--theme-background-accent-strong-pressed); --button-pressed-color: var(--theme-foreground-accent-strong-pressed); --button-pressed-border-color: transparent; } .ai-chat-drawer .ac-actionSet .ac-pushButton:not(.action--ai-feedback).style-positive:hover { --button-bg-color: var(--button-hover-bg-color); --button-color: var(--button-hover-color); --button-border-color: var(--button-hover-border-color); background-color: var(--button-bg-color); color: var(--button-color); border-color: var(--button-border-color); background-image: none; box-shadow: none; } .ai-chat-drawer .ac-actionSet .ac-pushButton:not(.action--ai-feedback).style-positive:active { --button-bg-color: var(--button-pressed-bg-color); --button-color: var(--button-pressed-color); --button-border-color: var(--button-pressed-border-color); background-color: var(--button-bg-color); color: var(--button-color); border-color: var(--button-border-color); } .ai-chat-drawer .ac-actionSet .ac-pushButton:not(.action--ai-feedback):focus { outline-offset: -0.375rem; } .ai-chat-drawer .ac-actionSet .ac-pushButton:not(.action--ai-feedback):active, .ai-chat-drawer .ac-actionSet .ac-pushButton:not(.action--ai-feedback)[aria-pressed="true"] { background-color: var(--button-pressed-bg-color); color: var(--button-pressed-color); border-color: var(--button-pressed-border-color); } `;const getAIChatDrawer=()=>{const drawer=window.ocrReimagine?.AIChatDrawer||window.m365?.AIChatDrawer;if(!drawer||drawer.getInstances().length===0){return null}return drawer.getInstances()[0]};function handleIncomingAdaptiveCard(adaptiveCardData){if(adaptiveCardData.id?.startsWith("follow-up")){const adaptiveCardId=adaptiveCardData.id;window.setTimeout(()=>{const followUpAdaptiveCardElem=document.getElementById(adaptiveCardId);if(followUpAdaptiveCardElem){const webChatBubbleContent=followUpAdaptiveCardElem.closest(".webchat__bubble__content");webChatBubbleContent.classList.add("webchat__bubble__content--follow-up")}})}}function init(){let aiChatDrawerInstance;aiChatDrawerInstance=getAIChatDrawer();if(!aiChatDrawerInstance){return}const store=aiChatDrawerInstance.store;let activities=[];const unsubscribe=store.subscribe(()=>{const state=store.getState();if(state.activities.length>activities.length){activities.push(state.activities[state.activities.length-1]);const lastActivity=activities[activities.length-1];if(lastActivity.from.role==="bot"&&lastActivity.type==="message"&&lastActivity.attachments?.length&&lastActivity.attachments[0].content?.type==="AdaptiveCard"){const adaptiveCardData=lastActivity.attachments[0].content;handleIncomingAdaptiveCard(adaptiveCardData)}}});window.addEventListener("beforeunload",()=>{unsubscribe()})}window.SOUtil.addStylesheet(cssStyles,overrideId);window.addEventListener("webchatconnectfulfilled",init)})(); /*! 383650 - Fix for UMP video playing in the background after closing the Modal */ (()=>{const reimagineModals=document.querySelectorAll("[data-mount='reimagine-modal']");reimagineModals.forEach(modal=>{const ump=modal.querySelector("universal-media-player");const modalCloseBtn=modal.querySelector(".modal-close");if(ump&&modalCloseBtn){modalCloseBtn.addEventListener("click",()=>{if(ump.pause){ump.pause()}})}})})(); /*! 383817 - Fix for Media Playlist not working due to UMP update */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-copilot/ai-get-ready","/microsoft-copilot/maximize-impact","/copilot/ai-get-ready","/copilot/maximize-impact"]},previews:true};function updateMediaPlaylist(){const Attributes={DISABLED:"disabled",TABINDEX:"tabindex",ARIALABEL:"aria-label",ARIACURRENT:"aria-current",DATA_TRANSLATABLE:"data-current-slide-translatable",MULTI_SLIDE_TRANSLATABLE:"data-multi-slide-translatable",SINGLE_SLIDE_TRANSLATABLE:"data-single-slide-translatable",DATA_SLIDE_SELECTOR:"data-slide-selector",ATTRIBUTES:"attributes",ARIA_EXPANDED:"aria-expanded",ARIA_LIVE:"aria-live",ARIA_HIDDEN:"aria-hidden",DATA_EXPANDED_ARIA_LABEL:"data-expanded-aria-label",DATA_COLLAPSED_ARIA_LABEL:"data-collapsed-aria-label",ARIA_CONTROLS:"aria-controls"};const ClassName={CAROUSEL:"carousel",CAROUSEL_CONTROLS:"carousel__controls",CAROUSEL_WINDOW:"carousel__window",CAROUSEL_WINDOW_NO_MARGIN:"carousel__window--no-controls",CAROUSEL_ITEM:"carousel__slide",CAROUSEL_ITEM_ACTIVE:"active",CAROUSEL_MEDIA_NAV:"carousel__indicators-item",CAROUSEL_INDICATORS:"carousel__indicators",CAROUSEL_CTA:"carousel__cta",CONTAINER:"carousel__container",PADDING_INLINE_END:"padding-inline-end",SCROLL_PADDING_INLINE_START:"scroll-padding-inline-start",CASE_STUDY_TYPE:"carousel--type-case-study",CASE_STUDY_MODAL_TYPE:"carousel--type-case-study-modal",CASE_STUDY_NEWS_TYPE:"carousel--type-case-study-news",PROMO_TYPE:"carousel--type-promo",VERTICAL_TYPE:"carousel--type-vertical",HERO_MEDIA_TYPE:"carousel--type-hero-media",MEDIA_TABS_TYPE:"carousel--type-media-tabs",ANNOUNCEMENT_TEXT:"carousel__announcement-text",MEDIA_PLAYLIST_VIDEO_TYPE:"carousel--type-media-playlist-video",SLIDE_OVERLAY_CONTENT:"carousel__overlay-content",SLIDE_OVERLAY_TOGGLE_BTN:"carousel__overlay-btn-toggle",SINGLE_SLIDE:"single-slide",THEME_NIGHT:"theme-night",THEME_DAY:"theme-day",SLIDER_ARROWS:"slider-arrows",CAROUSEL_INDICATOR_ITEM_WRAPPER:"carousel__indicators-item-wrapper",SHOW_MORE_INDICATOR:"carousel__show-more-indicator",BACK_TO_CONTROLS:"carousel__back-to-controls",SCROLL_SNAP_MANDATORY:"scroll-snap-mandatory",ANIMATION:"animation",EFFECT_ON:"effect-on"};const MediaPlaylistVideoClassNames={BLOCK_FEATURE:"block-feature",MEDIA:"media",UMP_CONTAINER:"ump-container",UMP:"universal-media-player",SLIDE_UP_ANIMATION:"slide-up-animation",SLIDE_UP_BOTTOM_ANIMATION:"slide-up-bottom-animation",SLIDE_DOWN_BOTTOM_ANIMATION:"slide-down-bottom-animation",OVERLAY_HEADING_HIDDEN:"overlay-heading-hidden",OVERLAY_CONTROLS_HIDDEN:"overlay-controls-hidden",CAROUSEL_OVERLAY_CONTENT_HIDDEN:"carousel__overlay-content-hidden",D_NONE:"d-none",D_FLEX:"d-flex",OVERLAY_VISIBLE:"overlay-visible",OVERLAY_HIDDEN:"overlay-hidden",OVERLAY_TARGET:"overlay__target",VIDEO_JS:"video-js",VJS_BIG_PLAY_BUTTON:"vjs-big-play-button",VJS_PLAY_CONTROL:"vjs-play-control",VJS_VOLUME_PANEL_VERTICAL:"vjs-volume-panel-vertical",VJS_MODAL_DIALOG:"vjs-modal-dialog",VJS_TEXT_TRACK_SETTINGS:"vjs-text-track-settings",VJS_MENU_BUTTON_POPUP:"vjs-menu-button-popup",VJS_USER_ACTIVE:"vjs-user-active",VJS_USER_INACTIVE:"vjs-user-inactive",VJS_PLAYING:"vjs-playing",VJS_PAUSED:"vjs-paused",VJS_HOVER:"vjs-hover",VJS_SLIDER_ACTIVE:"vjs-slider-active",VJS_HIDDEN:"vjs-hidden"};const EventName={CLICK_DATA_API:"click",ON_CLICK:"onClick",ON_INIT:"onInit",ON_REMOVE:"onRemove",ON_SCROLL:"onScroll",ON_UPDATE:"onUpdate",RESIZE_DATA_API:"resize",SCROLL_DATA_API:"scroll"};const Selector={CAROUSEL_WRAPPER_WITH_ANIMATION:`.${ClassName.CAROUSEL}.${ClassName.ANIMATION}`,CAROUSEL_WRAPPER:`.${ClassName.CAROUSEL}`,CAROUSEL_CONTROLS:`.${ClassName.CAROUSEL_CONTROLS}`,CAROUSEL_WINDOW:`.${ClassName.CAROUSEL_WINDOW}`,CAROUSEL_ITEMS:`.${ClassName.CAROUSEL_ITEM}`,CAROUSEL_MEDIA_NAV:`.${ClassName.CAROUSEL_MEDIA_NAV}`,CAROUSEL_INDICATORS:`.${ClassName.CAROUSEL_INDICATORS}`,CAROUSEL_CTA:`.${ClassName.CAROUSEL_CONTROLS} .${ClassName.CAROUSEL_CTA}`,CONTAINER:`.${ClassName.CONTAINER}`,DATA_MOUNT:`[data-mount="ocr-carousel"]`,DATA_MOUNT_OLD:`.carousel__section[data-mount="carousel"]`,SNAP_ALIGN_START:`.${ClassName.CAROUSEL_ITEM}`,MODAL_WINDOW:`[data-mount="modal"]`,CASE_STUDY_TYPE:`.${ClassName.CASE_STUDY_TYPE}`,CASE_STUDY_MODAL_TYPE:`.${ClassName.CASE_STUDY_MODAL_TYPE}`,CASE_STUDY_NEWS_TYPE:`.${ClassName.CASE_STUDY_NEWS_TYPE}`,PROMO_TYPE:`.${ClassName.PROMO_TYPE}`,VERTICAL_TYPE:`.${ClassName.VERTICAL_TYPE}`,HERO_MEDIA_TYPE:`.${ClassName.HERO_MEDIA_TYPE}`,MEDIA_TABS_TYPE:`.${ClassName.MEDIA_TABS_TYPE}`,ANNOUNCEMENT_TEXT:`.${ClassName.ANNOUNCEMENT_TEXT}`,MEDIA_PLAYLIST_VIDEO_TYPE:`.${ClassName.MEDIA_PLAYLIST_VIDEO_TYPE}`,SLIDE_OVERLAY_CONTENT:`.${ClassName.SLIDE_OVERLAY_CONTENT}`,SLIDE_OVERLAY_TOGGLE_BTN:`.${ClassName.SLIDE_OVERLAY_TOGGLE_BTN}`,SLIDER_ARROWS:`.${ClassName.SLIDER_ARROWS}`,CAROUSEL_INDICATOR_ITEM_WRAPPER:`.${ClassName.CAROUSEL_INDICATOR_ITEM_WRAPPER}`,SHOW_MORE_INDICATOR:`.${ClassName.SHOW_MORE_INDICATOR}`,BACK_TO_CONTROLS:`.${ClassName.BACK_TO_CONTROLS}`};const MediaPlaylistVideoSelectors={BLOCK_FEATURE:`.${MediaPlaylistVideoClassNames.BLOCK_FEATURE}`,MEDIA:`.${MediaPlaylistVideoClassNames.MEDIA}`,UMP_CONTAINER:`.${MediaPlaylistVideoClassNames.UMP_CONTAINER}`,UMP:`${MediaPlaylistVideoClassNames.UMP}`,VIDEO_JS:`.${MediaPlaylistVideoClassNames.VIDEO_JS}`,VJS_BIG_PLAY_BUTTON:`.${MediaPlaylistVideoClassNames.VJS_BIG_PLAY_BUTTON}`,VJS_PLAY_CONTROL:`.${MediaPlaylistVideoClassNames.VJS_PLAY_CONTROL}`,VJS_VOLUME_PANEL_VERTICAL:`.${MediaPlaylistVideoClassNames.VJS_VOLUME_PANEL_VERTICAL}`,VJS_MENU_BUTTON_POPUP:`button.${MediaPlaylistVideoClassNames.VJS_MENU_BUTTON_POPUP}`};class MediaPlaylistVideo{constructor(opts){const{carouselSlides,carouselMount}=opts;this.carouselMount=carouselMount;this.carouselSlides=carouselSlides;this.carouselMediaPlaylistVideoContainer=carouselMount.closest(Selector.MEDIA_PLAYLIST_VIDEO_TYPE);this.carouselMediaPlaylistVideoContainer.style.setProperty("--media-playlist-overlay-bottom-spacing","80px");this.carouselContainerClassList=this.carouselMediaPlaylistVideoContainer.classList;this.initialCarouselTheme=null;for(const className of this.carouselContainerClassList){if(className===ClassName.THEME_DAY||className===ClassName.THEME_NIGHT){this.initialCarouselTheme=className;break}}this.carouselContainer=carouselMount.querySelector(Selector.CONTAINER);this.bgClass=null;this.vp3mediaQuery1280px=window.matchMedia("(min-width: 1280px)");this.isDesktopLayout=this.vp3mediaQuery1280px.matches;this.indexShowMoreIndicator=4;this.showMoreIndicatorAmount=4;this.dataExpandedAriaLabel=this.carouselContainer.getAttribute(Attributes.DATA_EXPANDED_ARIA_LABEL);this.dataCollapsedAriaLabel=this.carouselContainer.getAttribute(Attributes.DATA_COLLAPSED_ARIA_LABEL);if(carouselSlides.length>0){this.carouselControls=this.carouselMount.querySelector(Selector.CAROUSEL_CONTROLS);this.carouselControlsClassList=this.carouselControls?.classList;this.indicatorItems=this.carouselMount.querySelectorAll(Selector.CAROUSEL_MEDIA_NAV);this.slideOverlayContents=this.carouselMount.querySelectorAll(Selector.SLIDE_OVERLAY_CONTENT);this.sliderArrows=this.carouselMount.querySelector(Selector.SLIDER_ARROWS);this.slideOverlayBlockFeatures=[];this.showMoreIndicatorBtnWrapper=this.carouselMount.querySelector(Selector.SHOW_MORE_INDICATOR);if(this.showMoreIndicatorBtnWrapper){this.showMoreIndicatorBtn=this.showMoreIndicatorBtnWrapper.querySelector("button")}this.listCarouselIndicatorItems=this.carouselMount.querySelectorAll(Selector.CAROUSEL_INDICATOR_ITEM_WRAPPER);carouselSlides.forEach(carouselSlide=>{const currentSlideDOMElements=this.getCurrentSlideDOMElements(carouselSlide,this.carouselControls);this.bindEventsToSlideContent(currentSlideDOMElements);this.initSlideElements(carouselSlide.id,currentSlideDOMElements)});if(this.isSingleSlideWithoutControls(carouselSlides,this.carouselControls)){this.carouselMount.classList.add(ClassName.SINGLE_SLIDE)}else{this.resizeObserverCarouselControls(this.carouselControls,this.carouselMount)}this.activeIndex=0;this.prevIndex=0;this.bindEvents();if(!this.vp3mediaQuery1280px.matches){this.setupMobileView()}}}isSingleSlideWithoutControls(carouselSlides,carouselControls){return carouselSlides.length===1&&!carouselControls}setupMobileView(){this.bgClass=this.findClassStartingWith(this.carouselMediaPlaylistVideoContainer,"bg--");if(!this.bgClass){const sectionMaster=this.carouselMediaPlaylistVideoContainer.closest(".section-master");this.bgClass=this.findClassStartingWith(sectionMaster,"bg--")}if(this.initialCarouselTheme===ClassName.THEME_NIGHT){this.addOrRemoveNightTheme(false);this.carouselContainerClassList.remove(ClassName.THEME_NIGHT);this.carouselContainerClassList.add(ClassName.THEME_DAY)}this.sliderArrows?.classList.add(MediaPlaylistVideoClassNames.D_NONE);this.hideOverlayControls(false);this.slideOverlayContents.forEach(slideOverlayContent=>{slideOverlayContent?.classList.remove(MediaPlaylistVideoClassNames.CAROUSEL_OVERLAY_CONTENT_HIDDEN);if(this.bgClass){slideOverlayContent?.classList.add(this.bgClass)}});this.slideOverlayBlockFeatures.forEach(slideOverlayBlockFeature=>{this.hideOverlayHeadingContent(false,slideOverlayBlockFeature)});if(this.indicatorItems.length<=4&&this.showMoreIndicatorBtnWrapper){this.showMoreIndicatorBtnWrapper.classList.add(MediaPlaylistVideoClassNames.D_NONE)}}getCurrentSlideDOMElements(carouselSlide,carouselControls){const query=(selector,base=carouselSlide)=>base.querySelector(selector);const mediaElement=query(MediaPlaylistVideoSelectors.MEDIA);const umpContainer=query(MediaPlaylistVideoSelectors.UMP_CONTAINER);const umpElement=query(MediaPlaylistVideoSelectors.UMP);const umpElementShadowRoot=umpElement?.shadowRoot;const umpVideoElement=query("video",umpContainer);const slideOverlayContent=query(Selector.SLIDE_OVERLAY_CONTENT);const slideOverlayBlockFeature=slideOverlayContent?query(MediaPlaylistVideoSelectors.BLOCK_FEATURE,slideOverlayContent):null;const slideOverlayToggleBtn=slideOverlayContent?query(Selector.SLIDE_OVERLAY_TOGGLE_BTN,slideOverlayContent):null;const spanElement=slideOverlayToggleBtn?query("span",slideOverlayToggleBtn):null;this.slideOverlayBlockFeatures.push(slideOverlayBlockFeature);return{mediaElement:mediaElement,umpContainer:umpContainer,umpElement:umpElement,umpElementShadowRoot:umpElementShadowRoot,umpVideoElement:umpVideoElement,carouselControls:carouselControls,slideOverlayContent:slideOverlayContent,slideOverlayBlockFeature:slideOverlayBlockFeature,slideOverlayToggleBtn:slideOverlayToggleBtn,spanElement:spanElement,isUserInteractedWithVideo:false,isVolumeHovered:false,isModalDialogOpen:false,isControlsAriaExpanded:false}}initSlideElements(carouselSlideID,currentSlideDOMElements){const{slideOverlayToggleBtn,slideOverlayBlockFeature,carouselControls}=currentSlideDOMElements;carouselControls.style.zIndex=11;if(slideOverlayBlockFeature){slideOverlayBlockFeature.setAttribute(Attributes.ARIA_LIVE,"polite");slideOverlayBlockFeature.id=`${carouselSlideID}-bf`}if(slideOverlayToggleBtn){slideOverlayToggleBtn.setAttribute(Attributes.ARIA_CONTROLS,`${slideOverlayBlockFeature.id} ${carouselControls.id}`);slideOverlayToggleBtn.setAttribute(Attributes.ARIALABEL,this.dataCollapsedAriaLabel)}}bindEvents(){document.defaultView.addEventListener(EventName.RESIZE_DATA_API,this.handleResize.bind(this));this.indicatorItems.forEach(indicatorItem=>{indicatorItem.addEventListener(EventName.CLICK_DATA_API,this.handleIndicatorClick.bind(this))});if(this.showMoreIndicatorBtn){this.showMoreIndicatorBtn.addEventListener(EventName.CLICK_DATA_API,this.handleShowMoreIndicatorClickBtn.bind(this,this.listCarouselIndicatorItems))}}handleResize(){if(this.vp3mediaQuery1280px.matches){if(this.initialCarouselTheme===ClassName.THEME_NIGHT){this.addOrRemoveNightTheme(false);this.carouselContainerClassList.add(ClassName.THEME_NIGHT);this.carouselContainerClassList.remove(ClassName.THEME_DAY)}this.sliderArrows?.classList.remove(MediaPlaylistVideoClassNames.D_NONE);if(this.bgClass){this.slideOverlayContents.forEach(slideOverlayContent=>{slideOverlayContent?.classList.remove(this.bgClass)})}if(!this.isDesktopLayout){this.pausePlayingVideo(true);const activeIndicator=this.getActiveSlideIndicator();if(activeIndicator){activeIndicator.click()}this.isDesktopLayout=true}}else{this.setupMobileView();const activeIndicator=this.getActiveSlideIndicator();if(activeIndicator){activeIndicator.click()}this.isDesktopLayout=false}}handleIndicatorClick(){setTimeout(()=>{const activeIndicator=this.getActiveSlideIndicator();if(activeIndicator){const activeIndicatorParentLi=activeIndicator.parentElement;if(activeIndicatorParentLi){const index=Array.from(this.listCarouselIndicatorItems).findIndex(node=>node===activeIndicatorParentLi);if(index!==-1){this.prevIndex=this.activeIndex;this.activeIndex=index}}}this.pausePlayingVideo()},1e3)}bindEventsToSlideContent(currentSlideDOMElements){const umpControls=currentSlideDOMElements.umpElementShadowRoot.querySelector("ump-controls");const bigPlayBtn=umpControls.shadowRoot.querySelector("ump-big-play-button");const umpPlayBtn=bigPlayBtn?.shadowRoot.querySelector("button");if(!bigPlayBtn||!umpPlayBtn)return;if(document.dir==="rtl"){bigPlayBtn.style.right="50px";bigPlayBtn.style.left="auto"}else{bigPlayBtn.style.left="50px"}bigPlayBtn.style.top="70px";umpControls?.addEventListener(EventName.CLICK_DATA_API,this.handleUmpControlBarClick.bind(this,currentSlideDOMElements));umpPlayBtn?.addEventListener(EventName.CLICK_DATA_API,this.handleUMPBigPlayBtn.bind(this,currentSlideDOMElements));if(currentSlideDOMElements.slideOverlayToggleBtn){currentSlideDOMElements.slideOverlayToggleBtn.addEventListener(EventName.CLICK_DATA_API,this.handleSlideOverlayToggleBtn.bind(this,currentSlideDOMElements))}}bindVolumeBtnEvents(currentSlideDOMElements,targetElement){const volumeBtn=targetElement.querySelector("button.btn-volume");const volumeMenu=targetElement.querySelector(".volume-menu");const volumeSlider=volumeMenu?.querySelector("ump-slider")?.shadowRoot?.querySelector("input");if(!volumeBtn)return;volumeBtn.addEventListener("mouseenter",()=>{this.handleUMPUserInteractionWithVolume(currentSlideDOMElements,true)});volumeMenu.addEventListener("mouseenter",()=>{this.handleUMPUserInteractionWithVolume(currentSlideDOMElements,true)});volumeBtn.addEventListener("mouseleave",()=>{this.handleUMPUserInteractionWithVolume(currentSlideDOMElements,false)});volumeMenu.addEventListener("mouseleave",()=>{this.handleUMPUserInteractionWithVolume(currentSlideDOMElements,false)});volumeBtn.addEventListener("focus",()=>{this.handleUMPUserInteractionWithVolume(currentSlideDOMElements,true)});volumeSlider.addEventListener("focus",()=>{this.handleUMPUserInteractionWithVolume(currentSlideDOMElements,true)});volumeBtn.addEventListener("focusout",()=>{this.handleUMPUserInteractionWithVolume(currentSlideDOMElements,false)});volumeSlider.addEventListener("focusout",()=>{this.handleUMPUserInteractionWithVolume(currentSlideDOMElements,false)})}handleUMPBigPlayBtn(currentSlideDOMElements){this.observeUMPV2Controls(currentSlideDOMElements);this.handleUMPPlay.bind(this,currentSlideDOMElements,true)}handleUmpControlBarClick(currentSlideDOMElements){this.switchClass(MediaPlaylistVideoClassNames.OVERLAY_VISIBLE,MediaPlaylistVideoClassNames.OVERLAY_HIDDEN,currentSlideDOMElements.slideOverlayToggleBtn);this.handleUMPPlay(currentSlideDOMElements,true)}handleUMPPlay(currentSlideDOMElements,isUmpPlayBtnClicked){if(!this.isViewportWidthAtLeast1280px())return;const{slideOverlayToggleBtn,mediaElement,slideOverlayBlockFeature,carouselControls,slideOverlayContent}=currentSlideDOMElements;if(slideOverlayBlockFeature){this.switchClass(MediaPlaylistVideoClassNames.SLIDE_UP_ANIMATION,null,slideOverlayBlockFeature);this.hideOverlayHeadingContent(true,slideOverlayBlockFeature)}if(carouselControls){this.switchClass(MediaPlaylistVideoClassNames.SLIDE_UP_ANIMATION,null,carouselControls);this.hideOverlayControls(true)}this.switchClass(MediaPlaylistVideoClassNames.OVERLAY_TARGET,null,mediaElement);if(slideOverlayContent){slideOverlayContent.style.zIndex="11";this.switchClass(MediaPlaylistVideoClassNames.SLIDE_UP_BOTTOM_ANIMATION,MediaPlaylistVideoClassNames.SLIDE_DOWN_BOTTOM_ANIMATION,slideOverlayContent);this.switchClass(null,MediaPlaylistVideoClassNames.CAROUSEL_OVERLAY_CONTENT_HIDDEN,slideOverlayContent)}if(slideOverlayToggleBtn){if(isUmpPlayBtnClicked||!currentSlideDOMElements.isUserInteractedWithVideo){currentSlideDOMElements.isUserInteractedWithVideo=true;this.addClassWithDelay(MediaPlaylistVideoClassNames.SLIDE_UP_ANIMATION,MediaPlaylistVideoClassNames.D_NONE,null,slideOverlayToggleBtn,500);slideOverlayToggleBtn.setAttribute(Attributes.ARIALABEL,this.dataExpandedAriaLabel);slideOverlayToggleBtn.setAttribute(Attributes.ARIA_EXPANDED,"true")}else{this.switchClass(MediaPlaylistVideoClassNames.OVERLAY_VISIBLE,MediaPlaylistVideoClassNames.OVERLAY_HIDDEN,slideOverlayToggleBtn);slideOverlayToggleBtn.setAttribute(Attributes.ARIALABEL,this.dataCollapsedAriaLabel);slideOverlayToggleBtn.setAttribute(Attributes.ARIA_EXPANDED,"false")}}}handleShowMoreIndicatorClickBtn(listCarouselIndicatorItems){let firstElementOfSet;for(let i=0;i{if(!this.isViewportWidthAtLeast1280px())return;for(const entry of entries){if(entry.contentBoxSize){const contentBoxSize=entry.contentBoxSize[0];carouselMount.style.setProperty("--media-playlist-indicator-height",`${contentBoxSize.blockSize}px`)}}})}createAndStartObserver(targetElements,currentSlideDOMElements){const observer=new MutationObserver(mutationsList=>{for(const mutation of mutationsList){if(mutation.type===Attributes.ATTRIBUTES&&mutation.attributeName==="class"){if(mutation.target.classList.contains(MediaPlaylistVideoClassNames.VIDEO_JS)){this.handleUMPUserInteraction(currentSlideDOMElements,mutation.target)}else if(mutation.target.classList.contains(MediaPlaylistVideoClassNames.VJS_VOLUME_PANEL_VERTICAL)){this.handleUMPUserInteractionWithVolume(currentSlideDOMElements,mutation.target)}else if(mutation.target.classList.contains(MediaPlaylistVideoClassNames.VJS_MODAL_DIALOG)&&mutation.target.classList.contains(MediaPlaylistVideoClassNames.VJS_TEXT_TRACK_SETTINGS)){this.handleUMPUserInteractionWithDialog(currentSlideDOMElements,mutation.target)}}else if(mutation.type===Attributes.ATTRIBUTES&&mutation.attributeName===Attributes.ARIA_EXPANDED){this.handleUMPUserInteractionWithPopupButtons(currentSlideDOMElements,mutation.target)}}});for(const targetElement of targetElements){if(!targetElement)continue;observer.observe(targetElement,{attributes:true})}}observeUMPV2Controls(currentSlideDOMElements){const umpControls=currentSlideDOMElements.umpElementShadowRoot.querySelector("ump-controls");const controlsDiv=umpControls.shadowRoot?.querySelector(".controls");if(umpControls){const observer=new MutationObserver(mutationsList=>{for(const mutation of mutationsList){if(mutation.type==="childList"&&mutation.addedNodes.length>0){this.observeUMPV2ControlBar(currentSlideDOMElements,mutation.target)}if(mutation.type===Attributes.ATTRIBUTES&&mutation.attributeName==="class"){this.handleUMPUserInteraction(currentSlideDOMElements,mutation.target)}}});observer.observe(controlsDiv,{attributes:true,childList:true,subtree:true})}}observeUMPV2ControlBar(currentSlideDOMElements,parentElement){const umpControlBar=parentElement.querySelector("ump-control-bar");if(umpControlBar){const observer=new MutationObserver(mutationsList=>{for(const mutation of mutationsList){if(mutation.type==="childList"&&mutation.addedNodes.length>0){this.observeUMPV2VolumeMenu(currentSlideDOMElements,mutation.target);observer.disconnect()}}});observer.observe(umpControlBar.shadowRoot,{childList:true,subtree:true})}}observeUMPV2VolumeMenu(currentSlideDOMElements,targetElement){const volumeMenu=targetElement.querySelector(".volume-menu");const volumeSlider=volumeMenu?.querySelector("ump-slider");if(volumeSlider){const observer=new MutationObserver(mutationsList=>{for(const mutation of mutationsList){if(mutation.type==="childList"&&mutation.addedNodes.length>0){this.bindVolumeBtnEvents(currentSlideDOMElements,targetElement);observer.disconnect()}}});observer.observe(volumeSlider.shadowRoot,{childList:true,subtree:true})}}handleUMPUserInteraction(currentSlideDOMElements,targetElement){if(!this.isViewportWidthAtLeast1280px())return;const isUserActive=!targetElement.classList.contains("hidden");const isPlayingAndUserInactive=targetElement.classList.contains("hidden");if(isUserActive&¤tSlideDOMElements.isUserInteractedWithVideo){currentSlideDOMElements.slideOverlayToggleBtn.classList.remove(MediaPlaylistVideoClassNames.D_NONE)}else if(isPlayingAndUserInactive){currentSlideDOMElements.slideOverlayToggleBtn.classList.add(MediaPlaylistVideoClassNames.D_NONE);this.handleUMPPlay(currentSlideDOMElements,false)}}handleUMPUserInteractionWithVolume(currentSlideDOMElements,isHoveredOrSliderActive){if(!this.isViewportWidthAtLeast1280px())return;this.setControlsZIndex(currentSlideDOMElements,isHoveredOrSliderActive?10:11);this.setControlsOpacity(currentSlideDOMElements,isHoveredOrSliderActive?.5:1)}handleUMPUserInteractionWithDialog(currentSlideDOMElements,targetElement){if(!this.isViewportWidthAtLeast1280px())return;const isDialogHidden=targetElement.classList.contains(MediaPlaylistVideoClassNames.VJS_HIDDEN);currentSlideDOMElements.isModalDialogOpen=!isDialogHidden;this.setControlsZIndex(currentSlideDOMElements,!isDialogHidden||this.isUserInteractingWithVideoControls(currentSlideDOMElements)?0:2)}handleUMPUserInteractionWithPopupButtons(currentSlideDOMElements,targetElement){if(!this.isViewportWidthAtLeast1280px())return;const isAriaExpanded=targetElement.getAttribute(Attributes.ARIA_EXPANDED)==="true";currentSlideDOMElements.isControlsAriaExpanded=isAriaExpanded;this.setControlsZIndex(currentSlideDOMElements,isAriaExpanded||this.isUserInteractingWithVideoControls(currentSlideDOMElements)?0:2)}pausePlayingVideo(isDesktopLayout=false){const activeSlide=this.carouselMount.querySelector('.carousel__slide[tabindex="0"]');const prevActiveUmp=this.carouselSlides[this.prevIndex].querySelector("universal-media-player");prevActiveUmp.pause();const videoPlaying=document.querySelector(`.${MediaPlaylistVideoClassNames.VIDEO_JS}.${MediaPlaylistVideoClassNames.VJS_PLAYING}`);if(videoPlaying){const videoElem=videoPlaying.querySelector("video");if(videoElem){videoElem.pause()}if(isDesktopLayout){const mediaElement=videoPlaying.closest(MediaPlaylistVideoSelectors.MEDIA);if(mediaElement){mediaElement.classList.add(MediaPlaylistVideoClassNames.OVERLAY_TARGET)}}}}hideOverlayControls(hide){if(!this.carouselControls)return;if(hide){this.carouselControls.classList.add(MediaPlaylistVideoClassNames.OVERLAY_CONTROLS_HIDDEN);this.addClassWithDelay(null,null,MediaPlaylistVideoClassNames.D_NONE,this.carouselControls,1e3)}else{this.carouselControls.classList.remove(MediaPlaylistVideoClassNames.D_NONE);this.carouselControls.classList.remove(MediaPlaylistVideoClassNames.OVERLAY_CONTROLS_HIDDEN)}}hideOverlayHeadingContent(hide,element){if(!element)return;if(hide){element.classList.add(MediaPlaylistVideoClassNames.OVERLAY_HEADING_HIDDEN);this.addClassWithDelay(null,MediaPlaylistVideoClassNames.D_FLEX,MediaPlaylistVideoClassNames.D_NONE,element,1e3)}else{element.classList.remove(MediaPlaylistVideoClassNames.D_NONE);element.classList.add(MediaPlaylistVideoClassNames.D_FLEX);element.classList.remove(MediaPlaylistVideoClassNames.OVERLAY_HEADING_HIDDEN)}}setControlsZIndex(currentSlideDOMElements,zIndex){const{carouselControls,slideOverlayContent}=currentSlideDOMElements;this.setElementZIndex(zIndex,carouselControls);this.setElementZIndex(zIndex,slideOverlayContent)}setControlsOpacity(currentSlideDOMElements,opacity){const{carouselControls,slideOverlayContent}=currentSlideDOMElements;this.setElementOpacity(opacity,carouselControls);this.setElementOpacity(opacity,slideOverlayContent)}setElementZIndex(zIndex,targetElement){if(targetElement){targetElement.style.zIndex=zIndex}}setElementOpacity(opacity,targetElement){if(targetElement){targetElement.style.opacity=opacity}}switchClass(classToRemove,classToAdd,targetElement){if(targetElement){if(classToRemove){targetElement.classList.remove(classToRemove)}if(classToAdd){targetElement.classList.add(classToAdd)}}}addClassWithDelay(classToAdd,delayClassToRemove,delayClassToAdd,targetElement,delay){if(targetElement){if(classToAdd)targetElement.classList.add(classToAdd);setTimeout(()=>{if(delayClassToRemove){targetElement.classList.remove(delayClassToRemove)}if(delayClassToAdd){targetElement.classList.add(delayClassToAdd)}},delay)}}addOrRemoveNightTheme(addNightTheme){if(addNightTheme){this.slideOverlayContents.forEach(slideOverlayContent=>{slideOverlayContent.classList.add(ClassName.THEME_NIGHT)});this.carouselControls?.classList.add(ClassName.THEME_NIGHT)}else{this.slideOverlayContents.forEach(slideOverlayContent=>{slideOverlayContent.classList.remove(ClassName.THEME_NIGHT)});this.carouselControls?.classList.remove(ClassName.THEME_NIGHT)}}findClassStartingWith(element,prefix){if(!element||!element.classList)return null;return Array.from(element.classList).find(className=>className.startsWith(prefix))}isUserInteractingWithVideoControls(currentSlideDOMElements){const{isControlsAriaExpanded,isVolumeHovered,isModalDialogOpen}=currentSlideDOMElements;return isControlsAriaExpanded||isVolumeHovered||isModalDialogOpen}isViewportWidthAtLeast1280px(){return this.vp3mediaQuery1280px.matches}getActiveSlideIndicator(){return this.carouselMount.querySelector(`.${ClassName.CAROUSEL_MEDIA_NAV}.${ClassName.CAROUSEL_ITEM_ACTIVE}`)}}const carousels=document.querySelectorAll(Selector.DATA_MOUNT);carousels.forEach(carousel=>{const carouselWindow=carousel.querySelector(Selector.CAROUSEL_WINDOW);let carouselItems=[];if(carousel.dataset.slideSelector){carouselItems=carousel.querySelectorAll(carousel.dataset.slideSelector)}else{carouselItems=carouselWindow.querySelectorAll(Selector.CAROUSEL_ITEMS)}new MediaPlaylistVideo({carouselSlides:carouselItems,carouselMount:carousel})})}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(updateMediaPlaylist)}})(); /*! 485949 - Fix for AIChatDrawer - incorrect sourceSite after opening new browser tab with AIChatDrawer on it */ (()=>{const init=()=>{let aiChatDrawerInstance;if(window.ocrReimagine!==undefined){aiChatDrawerInstance=window.ocrReimagine.AIChatDrawer.getInstances()[0]}else{aiChatDrawerInstance=window.m365.AIChatDrawer.getInstances()[0]}if(!aiChatDrawerInstance||!aiChatDrawerInstance.sourceSite||!aiChatDrawerInstance.updateSourceSite){return}aiChatDrawerInstance.updateSourceSite(aiChatDrawerInstance.sourceSite)};window.addEventListener("webchatconnectfulfilled",init)})(); /*! 1026806 - Add "Created with Copilot Studio to AI assistant components" */ /*! 1095103 Update banner text for Ask Microsoft rebrand */ /*! 1095319 - Fix for Ask Microsoft rebrand banner text */ (()=>{const overrideId="1026806";const pageScope={"www.microsoft.com":{allSubpaths:true},"azure.microsoft.com":{allSubpaths:true},previews:true};function updateAIStuff(){const twoFeatures=document.querySelector(".chatgpt-banner.chatgpt-banner__2-block-features");const aiChatDrawerInstance=document.querySelector(".ai-chat-drawer");const aiChatButton=document.querySelector(".ai-chat-button");const aiChatButtonText=aiChatButton?.querySelector(".ai-chat-button__text");const smallText=aiChatButtonText?.querySelector("small");const heading=aiChatDrawerInstance?.querySelector(".block-feature__headings");const disclaimer=aiChatDrawerInstance?.querySelector(".block-feature__paragraph");if(twoFeatures&&smallText&&disclaimer){return}let styleText=``;const twoFeaturesBannerStyles=` .ai-chat-banner .block-feature__headings { gap: 4px !important; } .ai-chat-banner .ai-chat-banner__main-text .block-feature { gap: 32px !important; } .ai-chat-banner .block-feature .ocr-icon { margin-top: 4px !important; } .ai-chat-banner .block-feature__top { align-items: center !important; } .ai-chat-banner .block-feature--xs .block-feature__title { white-space: nowrap !important; font-size: var(--root-h3-font-size) !important; font-weight: 400 !important; } .ai-chat-banner .ai-chat-banner__main-text .block-feature .block-feature__paragraph { font-size: 16px !important; } `;const aiChatBanner=document.querySelector(".ai-chat-banner");let aiChatBannerBlockFeature=aiChatBanner?.querySelector(".block-feature");if(aiChatBannerBlockFeature&&!twoFeatures){const imgSource=aiChatBannerBlockFeature.querySelector(".ocr-img img").src;let paragraphText=aiChatBannerBlockFeature.querySelector(".block-feature__body .block-feature__paragraph")?.textContent;if(paragraphText){paragraphText=paragraphText.replace(/Ask the AI-powered assistant/g,"Try Ask Microsoft").replace(/the AI-powered assistant/g,"Ask Microsoft").replace(/AI-powered assistant/g,"Ask Microsoft")}const HTMLOverrideBlockFeatureForBanner=`

Ask Microsoft

${paragraphText||"Need help finding a product or solution? Try Ask Microsoft."}

`;aiChatBannerBlockFeature.innerHTML=HTMLOverrideBlockFeatureForBanner;styleText+=twoFeaturesBannerStyles}window.SOUtil.addStylesheet(styleText,overrideId)}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(updateAIStuff)}})(); /*! 1036215 - Fix for Product Plan Cards Blades */ (()=>{const adjustMarginBottom=blades=>{blades.forEach(blade=>{const textElement=blade.querySelector(".layout.section-master__layout .section-master__layout-header .block-heading");const buttonElement=blade.querySelector(".pill-bar.pill-bar--selector");if(textElement&&buttonElement){if(window.innerWidth<=859.98){buttonElement.style.marginBottom=`0px`}else{const textHeight=textElement.offsetHeight;const buttonHeight=buttonElement.offsetHeight;const marginBottom=textHeight-buttonHeight;buttonElement.style.marginBottom=`${marginBottom}px`}}})};function debounce(func,delay){let timeout;return function(...args){clearTimeout(timeout);timeout=setTimeout(()=>func.apply(this,args),delay)}}const productPlanCardsBlades=document.querySelectorAll(".section-master.section-master--blade-product-plan-cards");const debouncedResize=debounce(()=>adjustMarginBottom(productPlanCardsBlades),200);adjustMarginBottom(productPlanCardsBlades);if(productPlanCardsBlades.length>0){window.addEventListener("resize",debouncedResize)}})(); /*! 1039278 - Compare Table - Fixes for small viewports / high zoom, so content in columns does not overlap */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-365/business/microsoft-365-for-business-support-options","/microsoft-365/enterprise/microsoft365-plans-and-pricing","/microsoft-teams/microsoft-teams-rooms/compare-rooms-plans","/microsoft-teams/compare-microsoft-teams-business-options","/microsoft-365/business/compare-all-microsoft-365-business-products-with-microsoft-365-copilot","/microsoft-teams/compare-microsoft-teams-business-options"],markets:["en-us"]},previews:true};const CUSTOM_STYLE=` .compare-chart-4 { min-width: 500px; } @media (max-width: 1083.98px) { .compare-chart:not(.compare-chart-2) thead td:first-child { padding: 0; width: 0%; } } @media (max-width: 859.98px) { .compare-chart.compare-chart-2 thead td:first-child { padding:0; width: 0% } } `;function run(){if(!window.SOUtil.pageIsInScope(pageScope)){return}document.body.insertAdjacentHTML("beforeend",'");setTimeout(()=>{const stickyTheads=document.querySelectorAll(".compare-chart thead.sticky");stickyTheads.forEach(thead=>{thead.style.height="auto"});window.dispatchEvent(new Event("resize"))},50)}if(document.readyState!=="loading"){run()}else{document.addEventListener("DOMContentLoaded",run)}})(); /*! 1058399 - SKU Telemetry - Add data-bi-tags for SKU CTAs */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-365/business/microsoft-365-plans-and-pricing","/microsoft-365/business/no-teams-plans-and-pricing","/microsoft-365/business/with-copilot-plans-and-pricing","/microsoft-365/business/nonprofit-plans-and-pricing","/microsoft-365/business/additional-services-plans-and-pricing","/microsoft-365/copilot/pricing","/microsoft-365/copilot/pricing/enterprise","/microsoft-365/copilot/pricing/copilot-studio"],markets:["en-us"]},previews:true};const SELECTORS={SKU:"[data-component-id='29d382aad0139a094d341ff4dd652cd5']",BUTTON_OR_ANCHOR:"a,button",SKU_BUTTON:".sku__buttons",SKU_TITLE:".sku__title .oc-product-title"};const TELEMETRY_ATTRIBUTES={HEADER_NAME:"data-bi-hn",DATA_BI_ENGLISH_HEADER:"data-bi-ehn",DATA_BI_PRODNAME:"data-bi-prod",DATA_BI_SKU:"data-bi-sku",DATA_BI_SKUNAME:"data-bi-subnm",DATA_BI_PRODID:"data-bi-pid",DATA_BI_AREANAME:"data-bi-an",DATA_BI_CONTAINERNAME:"data-bi-view"};const TELEMETRY_BEHAVIOR={ACTION_ADD_TO_CART:"81",ACTION_EMAIL:"124",ACTION_TRIAL_INITIATE:"201"};if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(processSkuTelemetry)}function processSkuTelemetry(){const skus=document.querySelectorAll(SELECTORS.SKU);if(skus.length){skus.forEach(sku=>{const ocrRequest=sku.querySelector(".sku")?.dataset?.ocrSkuRequest;const skuId=ocrRequest?.split("_")[2].split("skuid")[1];const pid=ocrRequest?.split("_")[1].split("pid")[1];const skuTitle=sku.querySelector(SELECTORS.SKU_TITLE)?.textContent;const ACTION_LINKS=sku.querySelectorAll(SELECTORS.SKU_BUTTON+" "+SELECTORS.BUTTON_OR_ANCHOR);ACTION_LINKS.forEach(actionLink=>{if(actionLink.dataset.biBhvr==TELEMETRY_BEHAVIOR.ACTION_ADD_TO_CART||actionLink.dataset.biBhvr==TELEMETRY_BEHAVIOR.ACTION_EMAIL||actionLink.dataset.biBhvr==TELEMETRY_BEHAVIOR.ACTION_TRIAL_INITIATE){if(skuTitle){actionLink.setAttribute(TELEMETRY_ATTRIBUTES.DATA_BI_PRODNAME,skuTitle);actionLink.setAttribute(TELEMETRY_ATTRIBUTES.DATA_BI_SKUNAME,skuTitle)}}if(skuTitle){actionLink.setAttribute(TELEMETRY_ATTRIBUTES.HEADER_NAME,skuTitle);actionLink.setAttribute(TELEMETRY_ATTRIBUTES.DATA_BI_ENGLISH_HEADER,skuTitle)}if(!actionLink.dataset.biAn||!actionLink.dataset.biView){setAreaTags(actionLink,sku)}if(pid){actionLink.setAttribute(TELEMETRY_ATTRIBUTES.DATA_BI_PRODID,pid)}if(skuId){actionLink.setAttribute(TELEMETRY_ATTRIBUTES.DATA_BI_SKU,skuId)}})})}}function setAreaTags(link,sku){const tabPillBarItemId=findTabPillBar(sku.parentElement);if(!tabPillBarItemId)return;const tabPillBarItem=document.getElementById(tabPillBarItemId+"-tab");if(!tabPillBarItem)return;if(tabPillBarItem.dataset?.biAn){link.setAttribute(TELEMETRY_ATTRIBUTES.DATA_BI_AREANAME,tabPillBarItem.dataset.biAn)}if(tabPillBarItem.dataset?.biView){link.setAttribute(TELEMETRY_ATTRIBUTES.DATA_BI_CONTAINERNAME,tabPillBarItem.dataset.biView)}}function findTabPillBar(currentElement){if(!currentElement)return null;if(currentElement.className==="root responsivegrid")return null;if(currentElement.id?.includes("tabs-pill-bar")){return currentElement.id}return findTabPillBar(currentElement.parentElement)}})(); /*! 1060771 - Vidyard player fix for extends beyond viewport */ (()=>{const pageScope={"www.microsoft.com":{},"azure.microsoft.com":{},previews:true};if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(adjustVidyardPlayerSize);window.addEventListener("resize",adjustVidyardPlayerSize)}function adjustVidyardPlayerSize(){let vidyardPlayers=document.querySelectorAll('[data-component-id="53fca94fc232313b34a6e5413212ea93"]');if(!vidyardPlayers||vidyardPlayers.length===0){return}const widthHeightRatio=1.75;const padding=window.innerWidth<860?16:24;vidyardPlayers.forEach(element=>{let parentEle=element.parentElement?.parentElement;if(!parentEle)return;const parentWidth=parentEle.offsetWidth-padding>800?800:parentEle.offsetWidth;element.children[0].style.width=parentWidth-2*padding+"px";element.children[0].style.height=(parentWidth-2*padding)/widthHeightRatio+"px"})}})(); /*! 1069096 Pricing Hub Telemetry */ (()=>{const TelemetryUtils={setAttributes(element,attributes){Object.keys(attributes).forEach(key=>{element.setAttribute(key,attributes[key])})},getSlotNumber(element,siblings){return Array.prototype.indexOf.call(siblings,element)+1},findClosestParent(element,parentTags){return parentTags.map(tag=>element.closest(tag)).find(parent=>parent)},formatComponentName(parentComponentTagName){return parentComponentTagName.toLowerCase().replace(/^reimagine-/,"").replace(/-/g," ").replace(/\b\w/g,char=>char.toUpperCase())},querySelectorAllDeep(selector,rootNode,deep,all){if(!selector){return null}if(!deep){if(all){return Array.from(rootNode.querySelectorAll(selector))}else{return rootNode.querySelector(selector)}}const results=[];const traverser=node=>{if(!all&&results.length)return;if(node==null)return;if(node.nodeType!==Node.ELEMENT_NODE)return;if(node.matches(selector)){results.push(node);if(!all)return}const children=node.children;if(children.length){for(const child of children){traverser(child)}}const shadowRoot=node.shadowRoot;if(shadowRoot){const shadowChildren=shadowRoot.children;for(const shadowChild of shadowChildren){traverser(shadowChild)}}};traverser(rootNode);return all?results:results.length?results[0]:null},closestDeep(element,selector){while(element){if(element.matches&&element.matches(selector)){return element}if(element.parentNode){element=element.parentNode}else if(element.host){element=element.host}else{element=null}}return null}};const ActionTelemetry={init(){const elements=TelemetryUtils.querySelectorAllDeep("reimagine-button",document.body,true,true);elements.forEach(element=>{const filteredSearchParent=TelemetryUtils.closestDeep(element,"reimagine-filtered-search");const aiPoweredAssistant=TelemetryUtils.closestDeep(element,"reimagine-ai-powered-assistant");if(filteredSearchParent){this.setTelemetryAttributesFilteredSearch(element,filteredSearchParent)}else if(aiPoweredAssistant){this.setTelemetryAttributesAiPoweredAssistant(element,aiPoweredAssistant)}else{this.setTelemetryAttributes(element)}});document.addEventListener("click",this.handleClick)},setTelemetryAttributes(element){let slotNumber=1;const parentComponent=element.parentElement;if(!parentComponent){return}if(parentComponent.tagName.toLowerCase()==="reimagine-button-group"){const siblingElements=parentComponent.querySelectorAll("reimagine-button, reimagine-link");slotNumber=TelemetryUtils.getSlotNumber(element,siblingElements)}const isButton=element.tagName.toLowerCase()==="reimagine-button";const textSlot=isButton?"button__text":"link__text";const textElement=element.querySelector(`span[slot='${textSlot}']`);const elementText=textElement?textElement.textContent.trim():"";const enCtaAttribute=element.getAttribute("enCtatext");const enCtaAttributeText=enCtaAttribute?enCtaAttribute.trim():"";const parentComponentTagName=TelemetryUtils.formatComponentName(parentComponent.tagName);TelemetryUtils.setAttributes(element,{"data-bi-cn":elementText,"data-bi-ecn":enCtaAttributeText,"data-bi-sn":slotNumber,"data-bi-compnm":parentComponentTagName,"data-bi-ct":isButton?"Component Button":"Component Link"})},setTelemetryAttributesFilteredSearch(element,parentComponent){const cardElement=TelemetryUtils.findClosestParent(element,["reimagine-card-product-pricing"]);const siblingElements=TelemetryUtils.querySelectorAllDeep("reimagine-button, reimagine-link",cardElement?cardElement:parentComponent,true,true);const slotNumber=TelemetryUtils.getSlotNumber(element,siblingElements);const isButton=element.tagName.toLowerCase()==="reimagine-button";const textSlot=isButton?"button__text":"link__text";const textElement=TelemetryUtils.querySelectorAllDeep(`span[slot='${textSlot}']`,element,true,false);const elementText=textElement?textElement.textContent.trim():"";const enCtaAttribute=element.getAttribute("enCtatext");const enCtaAttributeText=enCtaAttribute?enCtaAttribute.trim():"";let headingTextElement;let headingText="";if(cardElement){headingTextElement=TelemetryUtils.querySelectorAllDeep("[slot='title']",cardElement,true,false)}else{headingTextElement=TelemetryUtils.querySelectorAllDeep("[slot='heading-block__heading-text']",parentComponent,true,false)}headingText=headingTextElement?headingTextElement.textContent.trim():"";const parentComponentTagName="Section with Filtered Search";const headingBlock=TelemetryUtils.querySelectorAllDeep("reimagine-heading-block",parentComponent,true,false);const eyebrowLabelElement=TelemetryUtils.querySelectorAllDeep("[slot='heading-block__eyebrow-label']",headingBlock,true,false);const eyebrowHeadingTextElement=TelemetryUtils.querySelectorAllDeep("[slot='heading-block__heading-text']",headingBlock,true,false);const eyebrowLabel=eyebrowLabelElement?eyebrowLabelElement.textContent.trim():"";const eyebrowHeadingText=eyebrowHeadingTextElement?eyebrowHeadingTextElement.textContent.trim():"";const combinedHeading=eyebrowLabel&&eyebrowHeadingText?`${eyebrowLabel} | ${eyebrowHeadingText}`:eyebrowLabel||eyebrowHeadingText;TelemetryUtils.setAttributes(element,{"data-bi-cn":elementText,"data-bi-ecn":enCtaAttributeText,"data-bi-hn":headingText,"data-bi-ehn":headingText,"data-bi-sn":slotNumber,"data-bi-compnm":parentComponentTagName,"data-bi-view":combinedHeading,"data-bi-ct":cardElement?isButton?"Card Button":"Card Link":isButton?"Component Button":"Component Link"})},setTelemetryAttributesAiPoweredAssistant(element,parentComponent){const cardElement=TelemetryUtils.findClosestParent(element,["reimagine-card-plan-detail"]);const siblingElements=TelemetryUtils.querySelectorAllDeep("reimagine-button, reimagine-link",cardElement?cardElement:parentComponent,true,true);const slotNumber=TelemetryUtils.getSlotNumber(element,siblingElements);const isButton=element.tagName.toLowerCase()==="reimagine-button";const textSlot=isButton?"button__text":"link__text";const textElement=TelemetryUtils.querySelectorAllDeep(`span[slot='${textSlot}']`,element,true,false);const elementText=textElement?textElement.textContent.trim():"";const enCtaAttribute=element.getAttribute("enCtatext");const enCtaAttributeText=enCtaAttribute?enCtaAttribute.trim():"";let headingTextElement;let headingText="";if(cardElement){headingTextElement=TelemetryUtils.querySelectorAllDeep("[slot='title']",cardElement,true,false)}else{headingTextElement=TelemetryUtils.querySelectorAllDeep("[slot='heading-block__heading-text']",parentComponent,true,false)}headingText=headingTextElement?headingTextElement.textContent.trim():"";const parentComponentTagName="Section with full screen web assistant";const headingBlock=TelemetryUtils.querySelectorAllDeep("reimagine-heading-block",parentComponent,true,false);const eyebrowLabelElement=TelemetryUtils.querySelectorAllDeep("[slot='heading-block__eyebrow-label']",headingBlock,true,false);const eyebrowHeadingTextElement=TelemetryUtils.querySelectorAllDeep("[slot='heading-block__heading-text']",headingBlock,true,false);const eyebrowLabel=eyebrowLabelElement?eyebrowLabelElement.textContent.trim():"";const eyebrowHeadingText=eyebrowHeadingTextElement?eyebrowHeadingTextElement.textContent.trim():"";const combinedHeading=eyebrowLabel&&eyebrowHeadingText?`${eyebrowLabel} | ${eyebrowHeadingText}`:eyebrowLabel||eyebrowHeadingText;TelemetryUtils.setAttributes(element,{"data-bi-cn":elementText,"data-bi-ecn":enCtaAttributeText,"data-bi-hn":headingText,"data-bi-ehn":headingText,"data-bi-sn":slotNumber,"data-bi-compnm":parentComponentTagName,"data-bi-view":combinedHeading,"data-bi-ct":cardElement?isButton?"Card Button":"Card Link":isButton?"Component Button":"Component Link"})},handleClick(event){let element=null;const path=event.composedPath();for(let i=0;i{ActionTelemetry.init()})}})(); /*! 1068876 - Fix issue: Cannot get token on Moray pages with MarketSelector */ (()=>{ /*! If both global m365 and ocrReimagine exist, use m365 version of AI Chat Drawer */ function fixSetAIChatDrawerInstance(){if(window.m365?.AIChatDrawer&&window.ocrReimagine){window.ocrReimagine.AIChatDrawer=window.m365.AIChatDrawer;window.ocrReimagine.AISearchForm={getInstances:()=>[null]}}}window.SOUtil.runOnPageLoad(fixSetAIChatDrawerInstance)})(); /*! 1077059 - [Events] Update display for Topic facets */ (()=>{const pageScope={"www.microsoft.com":{paths:["/events/search-catalog","/events/category/microsoft-virtual-training-days","/events/category/microsoft-365-copilot-training","/events/category/industry-events","/isv/qa-folder/events/search-catalog","/isv/qa-folder/events/category/microsoft-virtual-training-days","/isv/qa-folder/events/category/microsoft-365-copilot-training","/isv/qa-folder/events/category/industry-events"]},previews:true};function run(){const topicPanel=document.querySelector('[ocr-en-text="Topic"]')?.closest(".filter-panel-item");const topicFacets=topicPanel?.querySelectorAll(".ocr-input__facet");if(topicFacets&&topicFacets.length>0){topicFacets.forEach(facet=>{facet.classList.add("d-none")})}}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(run)}})(); /*! 1077539 - [Events] Fix URL copied to email */ (()=>{const pageScope={"www.microsoft.com":{paths:["/events/search-catalog","/events/category/microsoft-virtual-training-days","/events/category/microsoft-365-copilot-training","/events/category/industry-events","/isv/qa-folder/events/search-catalog","/isv/qa-folder/events/category/microsoft-virtual-training-days","/isv/qa-folder/events/category/microsoft-365-copilot-training","/isv/qa-folder/events/category/industry-events"]},previews:true};function run(){const eventShareModal=document.querySelector("#events-share-modal-dialog");if(!eventShareModal){return}eventShareModal.addEventListener("onShow",updateShareUrl)}function updateShareUrl(){const clipShareElements=document.querySelectorAll("[data-mount='clipboard-share']");clipShareElements.forEach(clipShareElement=>{var linkElement=clipShareElement.querySelector("a");if(!linkElement){return}if(linkElement.href){const emailHrefPrefix=linkElement.href.split("http")[0];if(!emailHrefPrefix.includes("mailto:")){return}const url=window.location.href.split("#")[0];const encodedUrl=encodeURIComponent(url);linkElement.href=emailHrefPrefix+encodedUrl}})}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(run)}})(); /*! 1079235 - Rolling Text component behavior updates */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-365-copilot"]},previews:true};let overrideId="1079235";function adjustRollingTextBehavior(){let rollingTextInstances=window.ocrReimagine.RollingText.getInstances();if(!rollingTextInstances||rollingTextInstances.length===0)return;rollingTextInstances.forEach(rollingText=>{if(window.innerWidth>=860){const rollingTextContainer=rollingText.rollingTextContainer||rollingText.element;if(rollingTextContainer){const sectionMaster=rollingTextContainer.closest(".section-master");if(sectionMaster){const eyebrowContainer=sectionMaster.querySelector(".block-heading__eyebrow");if(eyebrowContainer&&rollingText.playPauseButton){if(!eyebrowContainer.contains(rollingText.playPauseButton)){eyebrowContainer.appendChild(rollingText.playPauseButton)}}}}}else{const parentSectionMaster=rollingText.el.closest(".section-master");if(parentSectionMaster&&rollingText.playPauseButton){parentSectionMaster.prepend(rollingText.playPauseButton)}}})}function adjustNavSpacing(){if(window.innerWidth<860)return;const secondaryStickyNav=document.querySelector(".secondary-sticky-nav .dropdown");if(!secondaryStickyNav)return;const navLinks=secondaryStickyNav.querySelectorAll("a[href]");navLinks.forEach(link=>{const href=link.getAttribute("href");if(href&&href.startsWith("#")){const targetId=href.substring(1);const targetElement=document.getElementById(targetId);if(targetElement){targetElement.style.paddingTop="108px";const sectionMaster=targetElement.closest(".section-master");if(sectionMaster){sectionMaster.style.padding="0px"}}}})}const styleText=` .section-master:has(.block-heading__rolling-text--dynamic-container) .layout.section-master__layout { --layout-column-gap: var(--root-density-horizontal-comfortable, 3rem); } @media (max-width: 859.98px) { .section-master:has(.block-heading__rolling-text--dynamic-container) .layout.section-master__layout { flex-direction: column; } } .section-master:has(.block-heading__rolling-text--dynamic-container) .block-heading__rolling-text--dynamic { padding-bottom: 0.25lh; margin-bottom: -0.25lh; inset-inline-start: auto; } .section-master:has(.block-heading__rolling-text--dynamic-container) .section-master__layout-slot .media:has(.media__badge) { margin: calc(var(--badge-offset) * -1); } .block-heading__rolling-text--dynamic-container { height: 1.20lh; } .block-heading--alignment-centered .block-heading__rolling-text--dynamic-container { display: flex; justify-content: center; } .block-heading--size-3xl .block-heading__slot { margin: var(--root-spacing-2xl) 0 0; } @media (min-width: 860px) { .sticky.sticky--contained.sticky-direction-top { --sticky-contained-top: 32px; } .section-master:has(.block-heading__rolling-text--dynamic-container) .block-heading__eyebrow { display: flex; flex-direction: row; justify-content: space-between; align-items: center; } .section-master:has(.block-heading__rolling-text--dynamic-container) .block-heading__eyebrow .block-heading__rolling-text-button { margin: 0; } } `;const mobileStyleText=` @media (max-width: 859.99px) { .section-master:has(.block-heading__rolling-text--dynamic-container) > .btn.btn--icon-only { position: absolute; top: 16px; left: 16px; z-index: 1; } .section-master:has(.block-heading__rolling-text--dynamic-container) .button-group { width: 100%; } } `;if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(adjustRollingTextBehavior);window.SOUtil.runOnPageLoad(adjustNavSpacing);window.SOUtil.addStylesheet(styleText,overrideId);window.SOUtil.addStylesheet(mobileStyleText,overrideId+"-mobile")}})(); /*! 1079235 - Copilot Page Featured Card Updates Scope Creep */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-365-copilot","/microsoft-365-copilot/in-apps-for-work"]},previews:true};let overrideId="1079235-v2";const styleText=` .featured-cards .featured-cards__media .media .html5-video, .featured-cards .featured-cards__media .media img, .featured-cards .featured-cards__media .media { overflow: hidden; } .featured-cards--default-media img { height: auto !important; } .featured-cards__default-media .html5-video, .featured-cards__card-media .html5-video { border-radius: 24px; } `;if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.addStylesheet(styleText,overrideId)}})(); /*! 1079681 - Crop Hero Images instead of Stretch */ (()=>{const pageScope={"www.microsoft.com":{paths:["/security/security-insider/"],allSubpaths:true},previews:true};let overrideId="1079681";const styleText=` .hero-article .hero-article__media img { --image-object-fit: cover } `;if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.addStylesheet(styleText,overrideId)}})(); /*! 1081134 - Fix the OCV App ID */ (()=>{const pageScope={"www.microsoft.com":{},"azure.microsoft.com":{},previews:true};function updateOCVAppID(){const element=document.querySelector('[data-appid="50316"]');if(element){element.setAttribute("data-appid","2906")}}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(updateOCVAppID)}})(); /*! SO 1082457 - Pricing Hub Telemetry */ (()=>{class ReimagineTelemetryUtils{static querySelectorDeep=(selector,rootNode=document.body,deep=false)=>{const results=this.querySelectorAllDeep(selector,rootNode,deep,false);return Array.isArray(results)&&results.length?results[0]:results};static querySelectorAllDeep=(selector,rootNode=document.body,deep=false,all=true)=>{if(!selector)return null;if(!deep){return all?Array.from(rootNode.querySelectorAll(selector)):rootNode.querySelector(selector)}const results=[];const traverser=node=>{if(!all&&results.length)return;if(node.nodeType!==Node.ELEMENT_NODE)return;if(node.matches(selector)){results.push(node);if(!all)return}for(const child of node.children){traverser(child)}if(node.shadowRoot){for(const shadowChild of node.shadowRoot.children){traverser(shadowChild)}}};traverser(rootNode);return all?results:results.length?results[0]:null}}const BI_ATTR={biBhvr:"data-bi-bhvr",biTags:"data-bi-tags",biHn:"data-bi-hn",biCn:"data-bi-cn",biEcn:"data-bi-ecn",biSn:"data-bi-sn",biCompnm:"data-bi-compnm",biCt:"data-bi-ct",lang:"lang"};const listenForPageAction=elem=>{elem.addEventListener("click",()=>{if(window.telemetry&&window.telemetry.webAnalyticsPlugin&&typeof window.telemetry.webAnalyticsPlugin.capturePageAction==="function"){window.telemetry.webAnalyticsPlugin.capturePageAction(elem)}})};const getSlottedText=slot=>{const assignedNodes=Array.from(slot.assignedNodes());return assignedNodes.filter(node=>node.nodeType===Node.TEXT_NODE&&node.textContent?.trim()!=="").map(node=>node.textContent?.trim()||"").join(" ")};const awaitDefined=async(component,callback)=>{await customElements.whenDefined(component);callback()};const setupAISearchHeroTelemetry=()=>{const COMPONENT_NAME="AI Search Hero";const aiSearchHeros=ReimagineTelemetryUtils.querySelectorAllDeep("reimagine-hero-ai-search",document.body,true,true);aiSearchHeros.forEach(aiSearchHero=>{const headingElement=ReimagineTelemetryUtils.querySelectorDeep('reimagine-layout-column reimagine-heading-block [slot="heading-block__heading-text"]',aiSearchHero,true);const headingContent=headingElement.textContent.trim();const promptCards=ReimagineTelemetryUtils.querySelectorAllDeep("reimagine-card-badge",aiSearchHero,true,true);promptCards.forEach((promptCard,index)=>{const cardHeadingElement=ReimagineTelemetryUtils.querySelectorDeep('[slot="text-block__heading"]',promptCard,true);const cardHeading=cardHeadingElement.textContent.trim();promptCard.setAttribute(BI_ATTR.biHn,cardHeading);promptCard.setAttribute(BI_ATTR.biSn,index+1);promptCard.setAttribute(BI_ATTR.biCompnm,COMPONENT_NAME);listenForPageAction(promptCard)});const secondaryNavItem=ReimagineTelemetryUtils.querySelectorDeep(".secondary-nav-item__link",aiSearchHero,true);const secondaryNavLabelSlot=ReimagineTelemetryUtils.querySelectorDeep(".secondary-nav-item__label slot",secondaryNavItem,true);const labelText=getSlottedText(secondaryNavLabelSlot);secondaryNavItem.setAttribute(BI_ATTR.biCn,labelText);secondaryNavItem.setAttribute(BI_ATTR.biHn,headingContent);secondaryNavItem.setAttribute(BI_ATTR.biSn,promptCards.length);secondaryNavItem.setAttribute(BI_ATTR.biCompnm,COMPONENT_NAME);listenForPageAction(secondaryNavItem)})};const setupFilteredSearchTelemetry=()=>{const COMPONENT_NAME="Filtered Search";const filteredSearchComponents=ReimagineTelemetryUtils.querySelectorAllDeep("reimagine-filtered-search",document.body,true,true);filteredSearchComponents.forEach(filteredSearch=>{const headingElement=ReimagineTelemetryUtils.querySelectorDeep('reimagine-heading-block [slot="heading-block__heading-text"]',filteredSearch,true);const headingContent=headingElement.textContent.trim();const pills=ReimagineTelemetryUtils.querySelectorAllDeep("reimagine-pill",filteredSearch,true,true);pills.forEach((pill,index)=>{const pillWrapperSlot=ReimagineTelemetryUtils.querySelectorDeep(".pill_wrapper slot:not([name])",pill,true);const label=getSlottedText(pillWrapperSlot);pill.setAttribute(BI_ATTR.biCn,label);pill.setAttribute(BI_ATTR.biSn,index+1);pill.setAttribute(BI_ATTR.biHn,headingContent);pill.setAttribute(BI_ATTR.biCompnm,COMPONENT_NAME);listenForPageAction(pill)})});document.addEventListener("onOcrClientPricingRenderComplete",()=>{setTimeout(()=>{filteredSearchComponents.forEach(filteredSearch=>{const filteredSearchCardContainers=ReimagineTelemetryUtils.querySelectorAllDeep(".card-container",filteredSearch,true,true);filteredSearchCardContainers.forEach(cardContainer=>{const cardLinks=ReimagineTelemetryUtils.querySelectorAllDeep("reimagine-link, reimagine-button",cardContainer,true,true);cardLinks.forEach(setupActionTelemetry)})})},500)})};const copyLinkTelemetry=(elemFrom,elemTo)=>{if(!elemFrom||!elemTo)return;const attributesToCopy=["data-bi-bhvr","data-bi-tags","lang","data-bi-cn","data-bi-ecn","data-bi-sn","data-bi-compnm","data-bi-ct"];attributesToCopy.forEach(attr=>{const value=elemFrom.getAttribute(attr);if(value){elemTo.setAttribute(attr,value)}})};const setupActionTelemetry=reimagineElement=>{const anchorElem=ReimagineTelemetryUtils.querySelectorDeep("a, button",reimagineElement,true);if(!anchorElem)return;copyLinkTelemetry(reimagineElement,anchorElem);reimagineElement.addEventListener("click",()=>{if(window.telemetry&&window.telemetry.webAnalyticsPlugin&&typeof window.telemetry.webAnalyticsPlugin.capturePageAction==="function"){window.telemetry.webAnalyticsPlugin.capturePageAction(anchorElem)}},true)};document.addEventListener("DOMContentLoaded",()=>{awaitDefined("reimagine-hero-ai-search",setupAISearchHeroTelemetry);awaitDefined("reimagine-filtered-search",setupFilteredSearchTelemetry);setTimeout(()=>{var isAcomAssetHubPreviewPageInScope=window.location.href.includes("https://golf-author.adobeprod.microsoft.com/content/launches/2026/01/21/1098091-dev-2026/content/azure/acom/en-us/resources/research.html");var isAcomAssetHubPageInScope=window.location.href.includes("https://azure.microsoft.com/en-us/resources/research");if(isAcomAssetHubPreviewPageInScope||isAcomAssetHubPageInScope){return}const reimagineLinks=ReimagineTelemetryUtils.querySelectorAllDeep("reimagine-link, reimagine-button",document.body,true,true);if(Array.isArray(reimagineLinks)){reimagineLinks.forEach(setupActionTelemetry)}},1500)})})(); /*! 1082371 - Add hero transactional class to hero */ (()=>{function updateHeroTransactional(){document.querySelector(".section-master:has(.tabs-pill-bar .block-heading .card-plan-detail)")?.classList.add("section-master--blade-hero-transactional")}window.SOUtil.runOnPageLoad(updateHeroTransactional)})();(()=>{function hideL0AuthoringContainer(){if(window.parent&&window.parent.document&&window.parent!==window){try{const style=window.parent.document.createElement("style");style.id="l0-header-hider";style.textContent='[title="OneCloud Universal Header (L0) [Root]"] { display: none !important; }';window.parent.document.head.appendChild(style)}catch(e){}}else{}}window.SOUtil.runOnPageLoad(hideL0AuthoringContainer)})(); /*! 1092966 - Microsoft Clarity tracking script */ (async()=>{const domains={"azure.microsoft.com":"cn33fv2fqq"};const storeClarityId="rcwvv0hsnp";const sites=[["ai","fklpdhl3lg"],["customers","nqgr9bv86z"],["dynamics-365","56ntj8n5ti"],["education","qbw8y1v5xr"],["evalcenter","co915hf5d5"],["events","bx9lrsl3v8"],["fasttrack","co87mqlj22"],["flexibility","8j710qd1zy"],["health-solutions","qch4fin049"],["hololens","8j7188n0nf"],["industry","8j70sts7ed"],["isv","co8cdtj65f"],["marketplace","sxijn6d0cr"],["mesh","8j7188n0nf"],["microsoft-365","8qumfcbe49"],["microsoft-365-copilot","8qumfcbe49"],["microsoft-cloud","8rugvc69mo"],["microsoft-copilot","jf75j84chi"],["microsoft-fabric","gnlfnng0p8"],["microsoft-learn","gxa46mx9ho"],["microsoft-loop","co87wrbsd6"],["microsoft-teams","8j6z5n8me5"],["microsoft-viva","8j70e2bszm"],["power-platform","69q536qdr1"],["security","8j70lgy2cr"],["software-development-companies","r2mqwu0t85"],["sovereignty","v9s43lmegt"],["sql-server","8j71hxh8mv"],["startups","h9oep2750d"],["store",storeClarityId],["sustainability","co90igj0k6"],["system-center","8ruh2qg98n"],["trust-center","8j70lgy2cr"],["us-government","v9s516swgw"],["windows-365","8j705rlc54"],["windows-server","8ruh98y350"]];const sitePathPattern=String.raw`\/([a-z]{2}|[a-z]{2}-[a-z]{2}|[a-z]{2}-[a-z]{4}-[a-z]{2})\/%SECTION%(\/$|\/.*|$)`;const regexList=sites.map(([section,id])=>[new RegExp(sitePathPattern.replace("%SECTION%",section.replace(/-/g,"\\-")),"i"),id]);const homepagePattern=/^\/([a-z]{2}|[a-z]{2}-[a-z]{2}|[a-z]{2}-[a-z]{4}-[a-z]{2})\/?$/i;function getClarityId(){const host=window.location.hostname;if(domains[host]){return domains[host]}const urlPath=window.location.pathname;for(const[regex,id]of regexList){if(regex.test(urlPath)){return id}}if(host==="www.microsoft.com"&&homepagePattern.test(urlPath)){return storeClarityId}return null}const waitForWcpConsentObj=(maxRetries=100,interval=50)=>{return new Promise((resolve,reject)=>{let retries=0;const checkWcpConsent=setInterval(()=>{if(window.WcpConsent&&window.WcpConsent.siteConsent){clearInterval(checkWcpConsent);resolve()}else if(retries>=maxRetries){clearInterval(checkWcpConsent);reject(new Error("WcpConsent object not found within the expected time"))}retries++},interval)})};function isWcpConsentPresent(){return typeof WcpConsent!=="undefined"&&WcpConsent&&typeof WcpConsent.siteConsent!=="undefined"&&WcpConsent.siteConsent}function isGpcOptInPresent(){return typeof GPC_DataSharingOptIn!=="undefined"&&GPC_DataSharingOptIn!=null}function isConsentRequired(){if(isWcpConsentPresent()&&WcpConsent.siteConsent&&WcpConsent.siteConsent.isConsentRequired!==undefined&&WcpConsent.siteConsent.isConsentRequired!==null){return WcpConsent.siteConsent.isConsentRequired}return true}function isConsentGranted(userConsent){return userConsent&&userConsent.Advertising&&userConsent.Analytics&&userConsent.SocialMedia}function getUserConsent(){if(WcpConsent&&WcpConsent.siteConsent&&0!==Object.keys(WcpConsent.siteConsent).length){return WcpConsent.siteConsent.getConsent()}return undefined}function checkUserConsent(){var userConsent=getUserConsent();return isConsentGranted(userConsent)}const loadClarity=()=>{const clarityId=getClarityId();if(!clarityId){console.warn("Clarity not loaded: No matching Clarity project for this site");return}(function(c,l,a,r,i,t,y){c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);t.id="oc-clarity-script-1092966"})(window,document,"clarity","script",clarityId)};await waitForWcpConsentObj().then(()=>{if(isGpcOptInPresent()&&GPC_DataSharingOptIn===true&&(!isConsentRequired()||checkUserConsent())){loadClarity();console.log("Clarity loaded")}else{console.log("Clarity not loaded due to lack of user consent")}}).catch(error=>{console.error("Error loading Clarity:",error)})})(); /*! 1096730 - Incorrect tab item aria-label */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-365/business/microsoft-365-plans-and-pricing"],markets:["en-us"]},previews:true};const Selectors={tabsPillBarRadio:".pill-bar.pill-bar--radio-tabs",tabItem:".ocr-input.ocr-input--type-radio",tabItemTagContent:".tag.tag--not-clickable.tag--size-s .label-eyebrow p"};function run(){const tabsPillBars=document.querySelectorAll(Selectors.tabsPillBarRadio);tabsPillBars.forEach(tabsPillBar=>{const tabItems=tabsPillBar.querySelectorAll(Selectors.tabItem);tabItems.forEach(tabItem=>{const tagElement=tabItem.querySelector(Selectors.tabItemTagContent);if(tagElement){const content=tagElement.textContent.trim();const ariaLabel=tabItem.getAttribute("aria-label");if(content&&ariaLabel){tabItem.setAttribute("aria-label",`${ariaLabel} ${content}`)}else if(content&&!ariaLabel){tabItem.setAttribute("aria-label",content)}}})})}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(run)}})();(()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-viva/integrations"]},previews:true};function fixCarouselAccessibility(){const carousels=document.querySelectorAll(".carousel");carousels.forEach(carousel=>{const prevBtn=carousel.querySelector(".carousel-control-prev")||carousel.querySelector('[data-slide="prev"]');const nextBtn=carousel.querySelector(".carousel-control-next")||carousel.querySelector('[data-slide="next"]');const updateTabindex=()=>{setTimeout(()=>{const activeItem=carousel.querySelector(".carousel-item.active");if(activeItem){const cards=activeItem.querySelectorAll(".card");cards.forEach(card=>{const img=card.querySelector("img.card-img");if(card.hasAttribute("tabindex")){card.removeAttribute("tabindex")}if(img!==null){img.setAttribute("tabindex","0")}})}},600)};if(prevBtn){prevBtn.addEventListener("click",updateTabindex)}if(nextBtn){nextBtn.addEventListener("click",updateTabindex)}updateTabindex()})}if(window.SOUtil&&window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(fixCarouselAccessibility)}})(); /*! 1061292 - Fix Play Icon Accessibility Role */ (()=>{const pageScope={"www.microsoft.com":{paths:["/trust-center/compliance/due-diligence-checklist"]},previews:true};function run(){const modalTriggerBtns=document.querySelectorAll(".modal-trigger");modalTriggerBtns.forEach(btn=>{btn.setAttribute("role","button");btn.style.cursor="pointer"})}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(run)}})(); /*! 1096783 - hide background image for hero media in high contrast mode */ (()=>{const pageScope={"www.microsoft.com":{paths:["/security"],markets:["en-us"]},previews:true};const customStyles=` @media (forced-colors: active) { [ocr-component-name="hero-media"] .hero-media__media [ocr-component-name="html-video"] { display: none; } } `;const overrideId="1096783";if(window.SOUtil&&window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(()=>{window.SOUtil.addStylesheet(customStyles,overrideId)})}})(); /*! 1096784 - Fix multiple issues with the dropdown */ (()=>{const pageScope={"www.microsoft.com":{paths:["/security/pricing","/qa-folder/iss_qa"],allSubpaths:true,markets:["en-us"]},previews:true};class ReimagineSOUtils{static querySelectorDeep=(selector,rootNode=document.body,deep=false)=>{const results=this.querySelectorAllDeep(selector,rootNode,deep,false);return Array.isArray(results)&&results.length?results[0]:results};static querySelectorAllDeep=(selector,rootNode=document.body,deep=false,all=true)=>{if(!selector)return null;if(!deep){return all?Array.from(rootNode.querySelectorAll(selector)):rootNode.querySelector(selector)}const results=[];const traverser=node=>{if(!all&&results.length)return;if(node.nodeType!==Node.ELEMENT_NODE)return;if(node.matches(selector)){results.push(node);if(!all)return}for(const child of node.children){traverser(child)}if(node.shadowRoot){for(const shadowChild of node.shadowRoot.children){traverser(shadowChild)}}};traverser(rootNode);return all?results:results.length?results[0]:null}}function run(){const dropdowns=ReimagineSOUtils.querySelectorAllDeep("reimagine-dropdown",document.body,true,true);const menulists=ReimagineSOUtils.querySelectorAllDeep("reimagine-menu-list",document.body,true,true);dropdowns.forEach(dropdown=>{if(dropdown){dropdown.setAttribute("trigger-role","listbox")}});menulists.forEach(menulist=>{if(menulist){const menulistItems=ReimagineSOUtils.querySelectorAllDeep("reimagine-menu-list-item",menulist,true,true);if(menulist.getAttribute("configuration")==="heading"){processMenuListWithHeadings(menulistItems)}else{processMenuListWithoutHeadings(menulistItems)}addKeyboardNavigation(menulist,menulistItems);function processMenuListWithHeadings(items){let currentGroupOptions=[];let currentGroupHeading=null;items.forEach(item=>{const config=item.getAttribute("configuration");if(config==="heading"){if(currentGroupHeading&¤tGroupOptions.length>0){setAriaLabelsForGroup(currentGroupHeading,currentGroupOptions)}currentGroupHeading=item;currentGroupOptions=[]}else if(config==="option"){currentGroupOptions.push(item)}});if(currentGroupHeading&¤tGroupOptions.length>0){setAriaLabelsForGroup(currentGroupHeading,currentGroupOptions)}}function findElementWithSelectors(shadowRoot,selectors){for(const selector of selectors){const element=shadowRoot.querySelector(selector);if(element)return element}return null}function setAriaLabelsForGroup(heading,options){const groupLen=options.length;const headingText=heading.innerText;options.forEach((optionItem,optionIndex)=>{const optionElement=findElementWithSelectors(optionItem.shadowRoot,['div.option[role="option"]','div[role="option"]',"div.option","a"]);const optionText=optionItem.innerText;if(optionElement){optionElement.setAttribute("aria-label",`${headingText}, ${optionText}, ${optionIndex+1} of ${groupLen} items`)}else{console.warn(`No matching element found for optionItem at index ${optionIndex} in group "${headingText}"`)}})}function processMenuListWithoutHeadings(items){const len=items.length;items.forEach((item,index)=>{const target=findElementWithSelectors(item.shadowRoot,["a",'[part="option"]','div.option[role="option"]','div[role="option"]']);if(target){const text=item.innerText;target.setAttribute("aria-label",`${text}, ${index+1} of ${len}`)}else{console.warn(`No matching element found for menulistItem at index ${index}`)}})}function addKeyboardNavigation(menulist,items){const isGrouped=menulist.getAttribute("configuration")==="heading";const focusableItems=items.filter(item=>item.getAttribute("configuration")!=="heading");if(focusableItems.length===0)return;menulist.addEventListener("keydown",e=>{if(!["ArrowDown","ArrowUp"].includes(e.key))return;e.preventDefault();let currentIndex=-1;focusableItems.forEach((item,index)=>{const optionElement=findElementWithSelectors(item.shadowRoot,['div.option[role="option"]','div[role="option"]',"div.option","a",'[part="option"]']);if(optionElement&&(document.activeElement===optionElement||optionElement.contains(document.activeElement))){currentIndex=index}});let nextIndex=currentIndex;if(isGrouped&&(e.key==="ArrowDown"||e.key==="ArrowUp")){const currentItem=focusableItems[currentIndex];if(currentItem){const currentGroupItems=[];let foundGroup=false;items.forEach(item=>{const config=item.getAttribute("configuration");if(config==="heading"){if(foundGroup)return;foundGroup=false}else if(config==="option"){if(item===currentItem)foundGroup=true;if(!foundGroup)return;currentGroupItems.push(item)}});const posInGroup=currentGroupItems.indexOf(currentItem);if(e.key==="ArrowDown"){if(posInGroup0){nextIndex=focusableItems.indexOf(currentGroupItems[posInGroup-1])}else{const prevGroupLastItem=focusableItems[currentIndex-1];nextIndex=prevGroupLastItem!==undefined?currentIndex-1:focusableItems.length-1}}}}else{switch(e.key){case"ArrowDown":nextIndex=currentIndex0?currentIndex-1:focusableItems.length-1;break}}if(nextIndex!==-1&&focusableItems[nextIndex]){const nextOptionElement=findElementWithSelectors(focusableItems[nextIndex].shadowRoot,['div.option[role="option"]','div[role="option"]',"div.option","a",'[part="option"]']);if(nextOptionElement){nextOptionElement.focus()}}})}}})}if(window.SOUtil&&window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(run)}})(); /*! 1097090 - Fix incorrect tabindex within legacy secondary nav */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-teams/teams-free"],markets:["en-us"]},previews:true};const selector={secondaryStickyNav:'[ocr-component-name="secondary-sticky-nav"]',reimagineFeatured:"reimagine-featured"};function run(){const secondaryStickyNavs=document.querySelectorAll(selector.secondaryStickyNav);secondaryStickyNavs.forEach(nav=>{const reimagineFeatureds=nav.querySelectorAll(selector.reimagineFeatured);reimagineFeatureds.forEach(featured=>{if(featured.tabIndex===-1){featured.removeAttribute("tabindex")}})})}if(window.SOUtil&&window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(run)}})(); /*! 1065419 - Ensure screen readers announce when the Clear button is activated and all selected options in the dropdown are cleared. */ (()=>{"use strict";const pageScope={"www.microsoft.com":{paths:["/microsoft-365/microsoft-365-products"],markets:["en-us"]},previews:true};const Selectors={filteredSearch:"reimagine-filtered-search",container:'reimagine-container[class="container"]',tabs:"reimagine-tabs",tabPanel:"reimagine-tab-panel",dropdownBar:"reimagine-dropdown-bar",counter:'[slot="counter"]',clearButton:"reimagine-link"};const announce=(message,priority="polite")=>{const region=document.createElement("div");region.setAttribute("role","status");region.setAttribute("aria-live",priority);region.setAttribute("aria-atomic","true");Object.assign(region.style,{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"});document.body.appendChild(region);setTimeout(()=>region.textContent=message,100);setTimeout(()=>region.remove(),3e3)};const processDropdownBar=dropdownBar=>{const clearButton=dropdownBar?.querySelector(Selectors.clearButton);const counter=dropdownBar?.querySelector(Selectors.counter);if(!clearButton||!counter)return;if(dropdownBar.dataset.so1065419==="true")return;dropdownBar.dataset.so1065419="true";let totalItems=null,hasActiveFilters=false,previousCount=null;const updateClearButtonState=()=>{const match=counter.textContent?.trim().match(/^(\d+)/);if(!match)return;const currentCount=parseInt(match[1],10);if(currentCount===0&&totalItems===null)return;if(totalItems===null||currentCount>totalItems)totalItems=currentCount;const filtersApplied=currentCount{if(hasActiveFilters)setTimeout(()=>announce("Cleared the applied filters","assertive"),100)};clearButton.addEventListener("click",clearButton._clickListener,true);const observer=new MutationObserver(updateClearButtonState);observer.observe(counter,{childList:true,characterData:true,subtree:true});dropdownBar._observer=observer;window.addEventListener("beforeunload",()=>observer.disconnect(),{once:true});updateClearButtonState()};function run(){document.addEventListener("onOcrClientPricingRenderComplete",()=>{setTimeout(()=>{const filteredSearchComponents=document.querySelectorAll(Selectors.filteredSearch);filteredSearchComponents.forEach(filteredSearch=>{if(!filteredSearch.shadowRoot)return;const container=filteredSearch.shadowRoot.querySelector(Selectors.container);const tabs=container?.querySelector(Selectors.tabs);const tabPanels=tabs?.querySelectorAll(Selectors.tabPanel);if(!tabPanels?.length)return;tabPanels.forEach(tabPanel=>{const dropdownBars=tabPanel.querySelectorAll(Selectors.dropdownBar);dropdownBars.forEach(processDropdownBar)})})},500)})}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(run)}})(); /*! 1096727 - Pricing cards accessibility fixes */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-365/microsoft-365-products"],markets:["en-us"]},previews:true};const getTextContent=(element,fallback="")=>{return element?.textContent?.trim()||fallback};const setAriaLabel=(element,label)=>{if(!element||!label)return false;element.setAttribute("aria-label",label);return true};const getParentCard=element=>{return element?.closest("reimagine-card-product-pricing")};const getProductTitle=reimagineSkuEl=>{if(reimagineSkuEl){const skuNameEl=reimagineSkuEl.querySelector('[slot="title"]');const productTitle=getTextContent(skuNameEl);if(productTitle)return productTitle}};const applyCardAccessibilityFixes=card=>{const skuElement=card.querySelector("reimagine-sku");if(skuElement){const productTitle=getProductTitle(skuElement);associateCompareCheckboxesWithCardName(card,productTitle);requestAnimationFrame(()=>{const pricingContainer=skuElement.shadowRoot?.querySelector(".pricing-values");if(pricingContainer){pricingContainer.removeAttribute("aria-hidden")}});const noteSlot=skuElement.querySelector('[slot="note"]');if(noteSlot){var seeTermsLink=noteSlot.querySelector("a");if(seeTermsLink){const noteText=getTextContent(seeTermsLink).toLowerCase();const ariaLabel=seeTermsLink.getAttribute("aria-label");const href=seeTermsLink.getAttribute("href");if(href&&href.includes("linkid=2265909")&¬eText.includes("terms")&&(!ariaLabel||ariaLabel.toLowerCase()==="see terms")){seeTermsLink.setAttribute("aria-label",`See Microsoft Store Terms of Sale`)}}}const buttonGroup=skuElement.querySelector("reimagine-button-group");const reimagineBtns=buttonGroup?buttonGroup.querySelectorAll("reimagine-button"):[];reimagineBtns.forEach(reimagineBtn=>{const anchorElem=reimagineBtn.shadowRoot?.querySelector("a");const btnTextSpan=reimagineBtn.querySelector('span[slot="button__text"]');const anchorText=getTextContent(btnTextSpan);if(anchorText){const descriptiveLabel=`${anchorText} ${productTitle}`;setAriaLabel(anchorElem,descriptiveLabel)}})}};const associateCompareCheckboxesWithCardName=(card,productTitle)=>{const checkbox=card.shadowRoot?.querySelector(".checkbox__label .checkbox__input");if(checkbox&&!checkbox.dataset.so1096727){checkbox.dataset.so1096727="true";setAriaLabel(checkbox,`${productTitle} Compare`)}};const handleBackToTab=filteredSearchElemShadowRoot=>{filteredSearchElemShadowRoot.querySelectorAll("reimagine-tab-panel").forEach(tabPanel=>{const reimagineBtn=tabPanel.shadowRoot?.querySelector('reimagine-button[part="tab-panel__sr-button"]');const backBtn=reimagineBtn?.shadowRoot?.querySelector("button");if(!backBtn||backBtn.dataset.so1096727)return;backBtn.dataset.so1096727="true";backBtn.addEventListener("keydown",e=>{if(e.key!=="Enter"&&e.key!==" ")return;e.preventDefault();const activeTab=filteredSearchElemShadowRoot.querySelector("reimagine-tab[active]");activeTab?.focus()})})};const handleClearButton=filteredSearchElemShadowRoot=>{const clearButtonParent=filteredSearchElemShadowRoot.querySelector('reimagine-link[slot="clear-all"]');if(!clearButtonParent||clearButtonParent.dataset.so1096727)return;clearButtonParent.dataset.so1096727="true";clearButtonParent.addEventListener("keydown",e=>{if(e.key!=="Enter"&&e.key!==" ")return;e.preventDefault();clearButtonParent.click()})};const applyAllFixes=filteredSearchElemShadowRoot=>{try{const pricingCards=filteredSearchElemShadowRoot.querySelectorAll("reimagine-card-product-pricing");pricingCards.forEach(card=>applyCardAccessibilityFixes(card));handleBackToTab(filteredSearchElemShadowRoot);handleClearButton(filteredSearchElemShadowRoot)}catch(e){console.error("SO 1096727 error:",e)}};function run(){document.addEventListener("onOcrClientPricingRenderComplete",()=>{setTimeout(()=>{const filteredSearchComponents=document.querySelectorAll("reimagine-filtered-search");filteredSearchComponents.forEach(filteredSearch=>{if(!filteredSearch.shadowRoot)return;if(filteredSearch.tabIndex===-1){filteredSearch.removeAttribute("tabindex")}applyAllFixes(filteredSearch.shadowRoot);const skuObserver=new MutationObserver(mutations=>{mutations.forEach(mutation=>{mutation.addedNodes.forEach(node=>{if(node.nodeName==="REIMAGINE-SKU"&&node.dataset.so1096727!=="true"){node.dataset.so1096727="true";const parentCard=getParentCard(node);if(parentCard)applyCardAccessibilityFixes(parentCard)}})})});skuObserver.observe(filteredSearch.shadowRoot,{childList:true,subtree:true})})},500)})}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(run)}})(); /*! 1080341, 1080098 - Incorrect heading structure */ (()=>{const pageScope={"www.microsoft.com":{paths:["/events/category/microsoft-365-copilot-training","/events/search-catalog","/customers/search"]},previews:true};const selector={filterSearchResult:'[ocr-component-name="filter-search-results"]',filterPanelHeaderTitle:".search-results__filter-panel__header .block-feature__headings",filterPanelBodyItem:".search-results__filter-panel__body button.filter-panel-item__header",filterPanelBodyItemSubcategory:".filter-panel-item__subcategories .block-heading",mainPanelTitle:".search-results__main-panel__header .block-feature__headings",mainPanelDynamicContentEyebrow:".dynamic-content__content .card-grid--disable-card-promo .block-feature__eyebrow",mainPanelDynamicContentTitle:".dynamic-content__content .card-grid--disable-card-promo .block-feature__headings "};function replaceHeadingInElement(container,newTagName){const headings=Array.from(container.children).filter(child=>child instanceof HTMLHeadingElement);headings.forEach(heading=>{const currentTag=heading.tagName.toLowerCase();if(currentTag===newTagName)return;const newHeading=document.createElement(newTagName);const originalClassName=heading.className;const originalTag=currentTag;const useTagAsClass=newTagName!=="p"&&!originalClassName.includes(originalTag);newHeading.className=useTagAsClass?`${originalClassName} ${originalTag}`:originalClassName;newHeading.textContent=heading.textContent;container.replaceChild(newHeading,heading)})}function replaceHeading(targets,newTagName){if(!targets?.length)return;targets.forEach(target=>replaceHeadingInElement(target,newTagName))}function fixHeadingStructure(targetNode){replaceHeading(targetNode.querySelectorAll(selector.filterPanelHeaderTitle),"h2");replaceHeading(targetNode.querySelectorAll(selector.mainPanelTitle),"h2");replaceHeading(targetNode.querySelectorAll(selector.filterPanelBodyItem),"h3");replaceHeading(targetNode.querySelectorAll(selector.filterPanelBodyItemSubcategory),"h4")}function fixCardHeadingStructureInDynamicContent(targetNode){const eyebrows=targetNode.querySelectorAll(selector.mainPanelDynamicContentEyebrow);const titles=targetNode.querySelectorAll(selector.mainPanelDynamicContentTitle);replaceHeading(eyebrows,"p");replaceHeading(titles,"h3")}function run(){const filterSearchResult=document.querySelectorAll(selector.filterSearchResult);if(filterSearchResult.length>0){filterSearchResult.forEach(instance=>{instance.addEventListener("searchResultsCardsLoadedSO",e=>{fixCardHeadingStructureInDynamicContent(e.target)});fixHeadingStructure(instance)})}}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(run)}})(); /*! 1097159 - Fix Narrator navigation by removing aria-hidden from table cells */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-365/business/with-copilot-plans-and-pricing"],markets:["en-us"]},previews:true};function removeAriaHiddenFromTableCells(){const tables=document.querySelectorAll("table.ocr-table__table");tables.forEach(table=>{const tdCells=table.querySelectorAll('td[aria-hidden="true"]');tdCells.forEach(td=>{td.removeAttribute("aria-hidden")})})}if(window.SOUtil&&window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(removeAriaHiddenFromTableCells)}})(); /*! 1099829 - Fix stat footnote can't be clickable and link footnote item back */ (()=>{function updateFootnoteTagAndAttributes(){if(!document.querySelector("reimagine-data-tiles"))return;const selector='reimagine-data-tiles reimagine-card-stat reimagine-stat span[slot="stat__title-footnote"], reimagine-data-tiles reimagine-card-stat reimagine-stat span[slot="stat__label-footnote"]';const results=document.querySelectorAll(selector);results.forEach(result=>{const newElem=document.createElement("a");for(const attr of result.attributes){newElem.setAttribute(attr.name,attr.value)}newElem.append(...result.childNodes);newElem.style.setProperty("color","var(--ds-stat-footnote-color, var(--ds-theme-foreground-base-strong))");const href=newElem.getAttribute("href");if(href&&href.startsWith("#footnote-")){const footnoteId=href.substring(1);const refIdBase=footnoteId.replace("footnote-","footnote-ref-");let refId=refIdBase;let counter=1;while(document.getElementById(refId)){refId=`${refIdBase}-${counter}`;counter++}if(!newElem.id){newElem.id=refId}const footnote=document.getElementById(footnoteId);if(footnote&&footnote.tagName.toLowerCase()==="a"){if(!footnote.getAttribute("href")){footnote.setAttribute("href","#"+refId)}newElem.addEventListener("click",()=>{footnote.setAttribute("href","#"+refId)})}}result.replaceWith(newElem)})}if(window.SOUtil){window.SOUtil.runOnPageLoad(updateFootnoteTagAndAttributes)}})(); /*! 1100751 - Update visibility if already defined */ (()=>{const TAGS=["reimagine-pricing-grid","reimagine-timeline","reimagine-story-telling","reimagine-hero-author","reimagine-editorial-agenda","reimagine-media-text-stacked","reimagine-banner-timer","reimagine-banner-search","reimagine-media-playlist-video-item","reimagine-media-playlist-video","reimagine-data-tiles","reimagine-immersive-scroll","reimagine-media-with-caption","reimagine-media-video","reimagine-jumplinks","reimagine-long-form-seo","reimagine-banner-heading","reimagine-cta-banner","reimagine-statement-banner","reimagine-section-with-media","reimagine-banner-news","reimagine-banner-featured","reimagine-data-with-icon","reimagine-data-with-caption","reimagine-featured","reimagine-featured-stack","reimagine-card-grid-staggered","reimagine-card-grid-product","reimagine-mixed-stack","reimagine-hero-impact","reimagine-hero-featured-slider","reimagine-hero-featured-slider-item","reimagine-hero-dynamic-text","reimagine-hero-article","reimagine-hero-ai-search","reimagine-hero-search","reimagine-hero-featured-xl-video","reimagine-hero-product","reimagine-hero-category","reimagine-logo-testimonials","reimagine-high-impact-product-accordion","reimagine-media-demo","reimagine-carousel-card-grid","reimagine-carousel-featured","reimagine-filtered-search","reimagine-high-impact-featured-accordion","reimagine-high-impact-accordion","reimagine-features-and-pricing-product-highlight","reimagine-features-and-pricng-3-col","reimagine-dynamic-search-results","reimagine-search-results","reimagine-story-grid","reimagine-editorial-article-takeaway","reimagine-editorial-article-summary","reimagine-story-summary","reimagine-article-list","reimagine-article-list-item","reimagine-editorial-article-chapter","reimagine-editorial-article-quote","reimagine-editorial-article-header","reimagine-editorial-featured","reimagine-secondary-nav","reimagine-scroll-spy","reimagine-announcement","reimagine-base-ui-shell"];const forceVisible=el=>{el.style.setProperty("visibility","visible","important");el.style.setProperty("opacity","1","important")};const isHiddenByCss=el=>{const cs=getComputedStyle(el);return cs.visibility==="hidden"||cs.opacity==="0"};const checkAndUpdateVisibility=()=>{const presentTags=TAGS.filter(t=>document.querySelector(t));if(!presentTags.length){console.info("[WC Visibility Fix] None of the target tags were found in the DOM.");return}for(const tag of presentTags){const els=Array.from(document.querySelectorAll(tag));const registryCtor=customElements.get(tag);for(const el of els){const isRegistered=!!registryCtor;if(isRegistered&&isHiddenByCss(el)){forceVisible(el)}}}};if(window.SOUtil){window.SOUtil.runOnPageLoad(checkAndUpdateVisibility)}})(); /*! 1092656 - Fix elements with ARIA role missing the required aria-level attribute */ (()=>{const pageScope={"www.microsoft.com":{paths:["/windows-365","/microsoft-teams/group-chat-software","/security","/customers","/education","/ai","/ai/microsoft-sales-copilot"],markets:["en-us"]},"azure.microsoft.com":{paths:[""],markets:["en-us"]},previews:true};function addAriaLevelToElementsWithAriaRole(){document.addEventListener("fetchAndRenderCarouselsFinished",e=>{const{carouselEl}=e.detail||{};const testimonialCards=carouselEl?carouselEl.querySelectorAll(".testimonial-card"):[];testimonialCards.forEach(card=>{const heading=card.querySelector('.testimonial-card__quote blockquote span[role="heading"]');if(heading){const classMath=heading.className.match(/h([1-6])/i);if(classMath){heading.setAttribute("aria-level",classMath[1])}else{heading.setAttribute("aria-level","2")}}})})}if(window.SOUtil&&window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(addAriaLevelToElementsWithAriaRole)}})(); /*! 1102133 - Fix ump visibility when not autoplay */ (()=>{const waitForUmpReady=async(ump,maxRetries=50)=>{for(let i=0;isetTimeout(resolve,100))}return false};window.SOUtil.runOnPageLoad(async()=>{const umps=document.querySelectorAll("reimagine-media universal-media-player");for(const ump of umps){const isReady=await waitForUmpReady(ump);if(isReady&&!ump.options.autoplay){ump.classList.add("ump-visible");ump.classList.remove("ump-hidden")}}})})(); /*! 1102396 Prevent CTA click bubbling in dynamic search results cards */ (()=>{const PROCESSED_CARD_ATTR="data-cta-processed";const pageScope={"azure.microsoft.com":{paths:["/resources/research"],markets:["en-us"]},previews:true};var isAcomAssetHubPreviewPageInScope=window.location.href.includes("https://golf-author.adobeprod.microsoft.com/content/launches/2026/01/21/1098091-dev-2026/content/azure/acom/en-us/resources/research.html");const processCard=card=>{if(card.hasAttribute(PROCESSED_CARD_ATTR)){return}const reimagineLink=card.querySelector("reimagine-link");if(!reimagineLink){return}const checkShadowRoot=setInterval(()=>{if(reimagineLink.shadowRoot){clearInterval(checkShadowRoot);const anchor=reimagineLink.shadowRoot.querySelector("a");if(anchor){anchor.addEventListener("click",event=>{event.stopPropagation()});card.setAttribute(PROCESSED_CARD_ATTR,"true")}}},100);setTimeout(()=>clearInterval(checkShadowRoot),5e3)};const processAllCards=blade=>{if(!blade||!blade.shadowRoot){return}const cards=blade.shadowRoot.querySelectorAll("reimagine-card-feature[clickable]");cards.forEach(processCard)};const setupObservers=blade=>{if(!blade||!blade.shadowRoot){return}const cardSection=blade.shadowRoot.querySelector(".card-section");if(cardSection){const cardObserver=new MutationObserver(mutations=>{mutations.forEach(mutation=>{mutation.addedNodes.forEach(node=>{if(node.nodeType===Node.ELEMENT_NODE){if(node.matches&&node.matches("reimagine-card-feature[clickable]")){processCard(node)}const cards=node.querySelectorAll&&node.querySelectorAll("reimagine-card-feature[clickable]");if(cards){cards.forEach(processCard)}}})})});cardObserver.observe(cardSection,{childList:true,subtree:true});processAllCards(blade)}};const waitForBlade=()=>{const intervalId=setInterval(()=>{const blade=document.querySelector("reimagine-dynamic-search-results");if(blade){clearInterval(intervalId);setTimeout(()=>{setupObservers(blade)},500)}},500);setTimeout(()=>clearInterval(intervalId),1e4)};window.SOUtil.runOnPageLoad(async()=>{if(window.SOUtil.pageIsInScope(pageScope)||isAcomAssetHubPreviewPageInScope){waitForBlade()}})})(); /*! 1103207: [AEM] Dynamic Search Results (RDS Blade) | Checkboxes in filter are inconsistently sized when filter values wrap to second line */ (()=>{const pageScope={"www.microsoft.com":{paths:["/trust-center/security/secure-future-initiative/patterns-and-practices"]},previews:true};function updateCheckboxControlStyle(){const dynamicSearchResultsElem=document.querySelector("reimagine-dynamic-search-results");const root=dynamicSearchResultsElem?.shadowRoot;if(!root)return;const checkboxes=root.querySelectorAll("reimagine-filter-list reimagine-checkbox");if(!checkboxes?.length)return;checkboxes.forEach(cb=>{const control=cb.shadowRoot?.querySelector(".checkbox__control");if(control){control.style.flexShrink="0";return}})}if(window.SOUtil.pageIsInScope(pageScope)){document.addEventListener("DOMContentLoaded",async()=>{await customElements.whenDefined("reimagine-dynamic-search-results");updateCheckboxControlStyle()});document.addEventListener("dynamicSearchResultsFiltersInitializedFromURL",()=>{updateCheckboxControlStyle()})}})(); /*! 1097342 List items should not get disappeared after resizing the page at 400% */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-fabric/features","/microsoft-copilot/organizations","/microsoft-365-copilot/ai-get-ready","/microsoft-365-copilot/business","/windows-server/blog/2021/03/02/announcing-windows-server-2022-now-in-preview"],markets:["en-us"]},"azure.microsoft.com":{paths:["/products/cosmos-db","/solutions/quantum-computing"],markets:["en-us"]},previews:true};const STICKY_SELECTOR='[data-mount="sticky"]';const DROPDOWN_MENU_SELECTOR=".dropdown-menu";const MOBILE_BREAKPOINT=860;const STICKY_Z_INDEX=1061;const updateDropdownHeight=stickyElement=>{const dropdownMenu=stickyElement.querySelector(DROPDOWN_MENU_SELECTOR);if(!dropdownMenu)return;const viewportHeight=window.innerHeight;const stickyHeight=stickyElement.offsetHeight;const availableHeight=viewportHeight-stickyHeight;const isMobileViewport=window.innerWidthavailableHeight;if(isMobileViewport&&isMenuOverflowing&&availableHeight>0){dropdownMenu.style.height=`${availableHeight}px`;stickyElement.style.zIndex=STICKY_Z_INDEX}else{dropdownMenu.style.height="";stickyElement.style.zIndex=""}};if(window.SOUtil&&window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(()=>{const stickyElements=document.querySelectorAll(STICKY_SELECTOR);stickyElements.forEach(stickyElement=>{stickyElement.addEventListener("onShow",()=>{requestAnimationFrame(()=>updateDropdownHeight(stickyElement))})})})}})(); /*! 1103672 - Legacy OCR authoring improvements */ (()=>{const pageScope={"azure.microsoft.com":{},"www.microsoft.com":{},previews:true,editorOnly:true};const overrideId="1103672";const cssStyles=` .aem-AuthorLayer-Edit .cq-placeholder, .aem-AuthorLayer-Edit .oc-author-placeholder, .aem-AuthorLayer-Edit [ocr-component-name="action"] center, .aem-AuthorLayer-Edit [ocr-component-name="action-group"] center { display: none; } .aem-AuthorLayer-Edit .secondary-nav a.w-100 { width: fit-content !important; } .aem-AuthorLayer-Edit [ocr-component-name="secondary-sticky-nav"] .scrollspy-container > center, .aem-AuthorLayer-Edit .secondary-nav a > center { font-weight: bold; font-size: small; color: black; } .aem-AuthorLayer-Edit .secondary-nav a > center { position: absolute; } .aem-AuthorLayer-Edit .accordion--vertical .ocr-accordion-item__top-content, .aem-AuthorLayer-Edit .accordion--vertical .button-group--stacked, .aem-AuthorLayer-Edit .accordion--vertical .ocr-accordion-item__body .cq-Editable-dom > [ocr-component-name="action"], .aem-AuthorLayer-Edit .accordion--vertical .ocr-accordion-item__body .cq-Editable-dom > .newpar, .aem-AuthorLayer-Edit .accordion--vertical .ocr-accordion-item__body .cq-Editable-dom > [ocr-component-name="media"] { width: 50%; } .aem-AuthorLayer-Edit .accordion--vertical .ocr-accordion-item__body .cq-Editable-dom > [ocr-component-name="media"] { justify-self: end; } .aem-AuthorLayer-Edit [ocr-component-name="badge"] { width: var(--badge-width); height: var(--badge-height); } .aem-AuthorLayer-Edit [ocr-component-name="icon"] { width: calc(var(--badge-width) - 10px); height: calc(var(--badge-width) - 10px); } .aem-AuthorLayer-Edit [ocr-component-name="icon"] > [ocr-component-name="image"] { width: calc(var(--badge-width) - 20px); height: calc(var(--badge-width) - 20px); } .aem-AuthorLayer-Edit [ocr-component-name="card-plan-detail"] .card-plan-detail__style-div { z-index: -1; } `;const cqOverlayStyles=` .cq-Overlay--placeholder[data-text="Block Slim (OneCloud Reimagine Atomic)"]::before, .cq-Overlay--placeholder[data-text="Action Group (OneCloud Reimagine Foundation)"]::before, .cq-Overlay--placeholder[data-text="SKU (OneCloud Reimagine Foundation)"]::before, .cq-Overlay--placeholder[data-text="Tabs V2 (OneCloud Reimagine Atomic)"]::before, .cq-Overlay--placeholder[data-text="Carousel (OneCloud Reimagine Atomic)"]::before { content: none !important; } .cq-Overlay--placeholder[data-text="Block Slim (OneCloud Reimagine Atomic)"].is-hover>.cq-Overlay--component-name, .cq-Overlay--placeholder[data-text="Action Group (OneCloud Reimagine Foundation)"].is-hover>.cq-Overlay--component-name, .cq-Overlay--placeholder[data-text="SKU (OneCloud Reimagine Foundation)"].is-hover>.cq-Overlay--component-name, .cq-Overlay--placeholder[data-text="Tabs V2 (OneCloud Reimagine Atomic)"].is-hover>.cq-Overlay--component-name, .cq-Overlay--placeholder[data-text="Carousel (OneCloud Reimagine Atomic)"].is-hover>.cq-Overlay--component-name { display: block !important; } `;if(!window.SOUtil||!window.SOUtil.pageIsInScope(pageScope)){return}window.SOUtil.addStylesheet(cssStyles,overrideId);const editorDoc=window.frameElement?.ownerDocument;if(editorDoc&&editorDoc.head&&!editorDoc.getElementById("static-override-"+overrideId+"-cq-overlay")){const style=editorDoc.createElement("style");style.id="static-override-"+overrideId+"-cq-overlay";style.textContent=cqOverlayStyles;editorDoc.head.appendChild(style)}})();