/*! Static Override Utilities */ (()=>{window.SOUtil=window.SOUtil||{addStylesheet:(cssStyles,overrideId)=>{const style=document.createElement("style");if(overrideId){style.id="static-override-"+overrideId}style.appendChild(document.createTextNode(cssStyles));document.head.appendChild(style)},pageIsInScope:pageScope=>{const host=location.hostname.toLowerCase();const path=location.pathname.toLowerCase();const locale=document.documentElement.lang.toLowerCase();const getMarket=marketAware=>{const locale=document.documentElement.lang.toLowerCase();const langCode=locale.split("-")[0];const market=new URLSearchParams(location.search).get("market")?.toLowerCase();if(market&&marketAware!==false){return`${langCode}-${market}`}return locale};const langLocs={"sr-rs":["sr-rs","sr-latn-rs","sr-cyrl-rs"],default:[locale]};const possibleLangLocs=langLocs[locale]||langLocs.default;const pathLocale=possibleLangLocs.find(loc=>path.indexOf(loc)!==-1);const pathNoLocale=path.replace(`/${pathLocale}`,"").replace(/\/$/,"");const previewHosts=["sites-author.adobeprod.microsoft.com","sites-author.adobeppe.microsoft.com","sites-author.adobestg.microsoft.com","sites-author.adobedev.microsoft.com","author-p147723-e1510601.adobeaemcloud.com","golf-author.adobeprod.microsoft.com","author-p147723-e1510635.adobeaemcloud.com","golf-author.adobestg.microsoft.com","author-p147723-e1520828.adobeaemcloud.com","golf-author.adobeppe.microsoft.com","author-p147723-e1510634.adobeaemcloud.com","golf-author.adobedev.microsoft.com","echo-author.adobeprod.microsoft.com","echo-author.adobeppe.microsoft.com","echo-author.adobestg.microsoft.com"];const isPreview=pageScope.previews&&previewHosts.includes(host);const previewPathStarts={"/content/microsoft/bade":"www.microsoft.com","/content/azure/acom":"azure.microsoft.com"};const nonprodHost={"wwwppe.microsoft.com":"www.microsoft.com","wwwqa.microsoft.com":"www.microsoft.com","origin.azureppe.microsoft.com":"azure.microsoft.com","origin.azurestg.microsoft.com":"azure.microsoft.com","origin.azureprod.microsoft.com":"azure.microsoft.com"};if(pageScope.editorOnly&&!window.frameElement?.baseURI.includes("/editor.html")){return false}let checkHost=host;let checkMarket=getMarket(pageScope.marketAware);let checkPath=pathNoLocale;if(pageScope.editorOnly||isPreview){const pathWithoutLaunch=path.replace(/\/content\/launches(\/[^\/]+){4}/g,"");const previewPathStart=Object.keys(previewPathStarts).find(key=>pathWithoutLaunch.startsWith(key));checkHost=previewPathStarts[previewPathStart];if(!previewPathStart||!checkHost){return false}checkPath=pathWithoutLaunch.replace(previewPathStart,"").replace(`/${pathLocale}`,"").replace(".html","")}if(nonprodHost[host]){checkHost=nonprodHost[host]}const hostScope=pageScope[checkHost];if(!hostScope){return false}if(hostScope.markets&&!hostScope.markets.includes(checkMarket)){return false}if(hostScope.paths&&!hostScope.paths.includes(checkPath)&&!(hostScope.allSubpaths&&startsWithPath())){return false}function startsWithPath(){return hostScope.paths.some(path=>checkPath.startsWith(path))}return true},runOnPageLoad:callback=>{if(document.readyState!=="loading"){callback()}else{document.addEventListener("DOMContentLoaded",callback)}},elementPromise:function(props){function addElementMarking(el,attr,value){if(hasElementMarking(el,attr,value))return;const markings=getElementMarkings(el,attr);markings.push(value);el.setAttribute(attr,markings)}function hasElementMarking(el,attr,value){return getElementMarkings(el,attr).includes(value)}function getElementMarkings(el,attr){let ret=el.getAttribute(attr);return ret?ret.split(","):[]}const querySelector=props.selector;const callbackName=props.callback.name;const rejectTime=props.rejectTime?props.rejectTime:0;const foundForDataAttr="data-so-found-for";return new Promise((resolve,reject)=>{if(!querySelector){return reject("No element or no query selector provided")}let wasFound=false;if(document.querySelector(querySelector)){wasFound=true;if(props.multiple){document.querySelectorAll(querySelector).forEach(e=>addElementMarking(e,foundForDataAttr,callbackName))}}if(!wasFound||props.multiple){const observerConfig={attributes:true,childList:true,characterData:true,subtree:true};const observer=new MutationObserver(mutations=>{const instancesFound=document.querySelectorAll(querySelector);const newInstancesFound=[...instancesFound].filter(e=>{if(hasElementMarking(e,foundForDataAttr,callbackName)){return false}addElementMarking(e,foundForDataAttr,callbackName);return true});if(newInstancesFound.length>0){wasFound=true;if(!props.multiple){observer.disconnect()}props.callback(props)}});if(rejectTime>0){window.setTimeout(()=>{observer.disconnect();if(!wasFound){reject(querySelector)}},rejectTime*100)}observer.observe(document,observerConfig)}if(wasFound){return resolve(document.querySelector(querySelector))}})},getElements:function(props){function getElement(props){const selector=props.selector;const baseElement=props.selectElement??document;if(!selector){return null}const element=baseElement.querySelector(selector);return element}function getElementMarkings(el,attr){let ret=el.getAttribute(attr);return ret?ret.split(","):[]}function addElementMarking(el,attr,value){if(hasElementMarking(el,attr,value))return;const markings=getElementMarkings(el,attr);markings.push(value);el.setAttribute(attr,markings)}function hasElementMarking(el,attr,value){return getElementMarkings(el,attr).includes(value)}const modifiedForDataAttr="data-so-modified-for";const callbackName=props.callback.name;if(props.multiple!==true){const el=getElement(props);return el?[el]:[]}const baseElement=props.selectElement??document;var elements=Array.from(baseElement.querySelectorAll(props.selector));if(props.selectorFilter&&typeof props.selectorFilter==="function"){elements=elements.filter(props.selectorFilter)}elements=elements.filter(e=>{if(hasElementMarking(e,modifiedForDataAttr,callbackName)){return false}addElementMarking(e,modifiedForDataAttr,callbackName);return true});return elements}}})(); /*!168090 W365 Social Footer chat CTA*/ (()=>{const linkQuery='[href*="https://info.microsoft.com/ww-landing-Windows-365-Contact-Me.html"]';let linkItem;let linkUpdated=false;let intervalId;const maxIntervals=30;let currInterval=0;function handleCatCTR(){currInterval++;if(linkUpdated&&intervalId||currInterval>maxIntervals){clearInterval(intervalId)}linkItem=document.querySelector(linkQuery);if(linkItem){const listItem=linkItem.parentElement;linkItem.href="http://approjects.co.za/?big=javascript:void(0)";linkItem.removeAttribute("target");if(listItem){listItem.setAttribute("data-ow-chat","");linkUpdated=true}}}function preLoadCheck(){const delay=100;intervalId=setInterval(handleCatCTR,delay)}function postLoadCheck(){if(!linkUpdated){handleCatCTR()}}preLoadCheck();window.SOUtil.runOnPageLoad(postLoadCheck)})(); /*!210729 Hololens gradient text*/ (()=>{const HOLOLENS_GRADIENT_FONT_PAGES=["hololens","hololens/buy","hololens/hardware"];const HOLOLENS_SITE_NAME=HOLOLENS_GRADIENT_FONT_PAGES[0];const INTERVAL_DELAY=50;const INTERVAL_MAX=100;const PATH_SEGMENTS=window.location.pathname.toLowerCase().split("/").filter(function(segment){return segment!==""});const PAGE_NAME=PATH_SEGMENTS[PATH_SEGMENTS.length-1]||"";const SITE_NAME=PATH_SEGMENTS[PATH_SEGMENTS.length-2]||"";const SELECTOR={HOLOLENS_SITE_MAIN:"main#primaryArea"};const NEW_UNIQUE_CLASSES={HOLOLENS_HOME:"hololens-bade-so-gradient-font-h2",HOLOLENS_SUB_PAGES:"hololens-bade-so-gradient-font-h1"};const hololendGradientFontStyles=` main#primaryArea.hololens-bade-so-gradient-font-h1 div.areaheading section[id*='areaheading'] h1, main#primaryArea.hololens-bade-so-gradient-font-h2 div.card[id*='content-card-vertical'] .display-3 { mask-image: linear-gradient(45deg,#fafffc,#ffb9b6,#d699c4,#a5dff9,#fdfdff) !important; -webkit-mask-image: linear-gradient(45deg,#fafffc,#ffb9b6,#d699c4,#a5dff9,#fdfdff) !important; background:linear-gradient(45deg,#fafffc,#ffb9b6,#d699c4,#a5dff9,#fdfdff) !important; background:-webkit-linear-gradient(45deg,#fafffc,#ffb9b6,#d699c4,#a5dff9,#fdfdff) !important; background:-moz-linear-gradient(45deg,#fafffc,#ffb9b6,#d699c4,#a5dff9,#fdfdff) !important; background-clip:text !important; -webkit-background-clip:text !important; -webkit-text-fill-color: transparent !important; }`;let iterations=0;let overrideInterval;function loadOverride(el,cls){try{if(document.querySelector(el)){applyChanges(el,cls);removeInterval(el)}else{checkInterval(el)}}catch(e){removeInterval(el)}}function removeInterval(el){clearInterval(overrideInterval)}function checkInterval(el){if(iterations>INTERVAL_MAX){removeInterval(el)}iterations++}function applyChanges(el,cls){document.querySelector(el).classList.add(cls)}function isPageInScope(){if(HOLOLENS_GRADIENT_FONT_PAGES.indexOf(SITE_NAME.split(".html")[0]+"/"+PAGE_NAME.split(".html")[0])>-1){return true}return false}if(PAGE_NAME.split(".html")[0]==HOLOLENS_SITE_NAME){overrideInterval=setInterval(loadOverride,INTERVAL_DELAY,SELECTOR.HOLOLENS_SITE_MAIN,NEW_UNIQUE_CLASSES.HOLOLENS_HOME)}else if(isPageInScope()){overrideInterval=setInterval(loadOverride,INTERVAL_DELAY,SELECTOR.HOLOLENS_SITE_MAIN,NEW_UNIQUE_CLASSES.HOLOLENS_SUB_PAGES)}window.SOUtil.addStylesheet(hololendGradientFontStyles,210729)})(); /*!206333 Hololens dark theme*/ (()=>{const DARK_THEME_PAGES=["hololens","hololens/apps","hololens/buy","hololens/developers","hololens/hardware","hololens/industry-education","hololens/industry-healthcare","hololens/industry-manufacturing","hololens/mixed-reality-partners","hololens/mrpp","hololens/partner-program","mixed-reality/windows-mixed-reality"];const INTERVAL_DELAY=50;const INTERVAL_MAX=100;const PATH_NAME=window.location.pathname;const MICROSOFT_LOGO_LINK="https://img-prod-cms-rt-microsoft-com.akamaized.net/cms/api/am/imageFileData/RE1MmB8?ver=6c43g";const Selector={MICROSOT_LOGO_UHF:"#uhfLogo .c-image",LIGHT_THEME_ELE_UHF:".universalheader .theme-light"};function getPathSegments(pathname){pathname=pathname.replace(".html","");return pathname.toLowerCase().split("/").filter(function(segment){return segment!==""})}function isPageInScope(){const PATH_SEGMENTS=getPathSegments(PATH_NAME);const PAGE_NAME=PATH_SEGMENTS[PATH_SEGMENTS.length-1]||"";const SITE_NAME=PATH_SEGMENTS[PATH_SEGMENTS.length-2]||"";if(DARK_THEME_PAGES.indexOf(PAGE_NAME)==0||DARK_THEME_PAGES.indexOf(SITE_NAME+"/"+PAGE_NAME)>-1){return true}return false}if(isPageInScope()){let iterationsUH=0;let overrideIntervalUH;const hololensDarkStyles=` body[data-so-bade-theme="hololens-dark"], body[data-so-bade-theme="hololens-dark"] .oc-sticky-tabs .bg-body, body[data-so-bade-theme="hololens-dark"] #footerArea, body[data-so-bade-theme="hololens-dark"] #footerArea footer#uhf-footer, body[data-so-bade-theme="hololens-dark"] #footerArea footer#uhf-footer * { background-color: #191919 !important; color: #fff !important; } body[data-so-bade-theme="hololens-dark"] .c-uhfh nav li.teams-uhf-li:empty { margin-top: -2px; border: none; } `;window.SOUtil.addStylesheet(hololensDarkStyles,206333);function loadOverride(el,applyChanges){try{if(document.querySelector(el)){applyChanges();removeInterval()}else{checkInterval()}}catch(e){removeInterval()}}function removeInterval(){clearInterval(overrideIntervalUH)}function checkInterval(){if(iterationsUH>INTERVAL_MAX){removeInterval()}iterationsUH++}function loadOverrideUH(){let lightThemeEl=document.querySelector(Selector.LIGHT_THEME_ELE_UHF);let lightThemeUHFCls=lightThemeEl!=null?lightThemeEl.classList:"";let bodyEl=document.querySelector("body");let microsoftLogoEle=document.querySelector(Selector.MICROSOT_LOGO_UHF);if(lightThemeUHFCls){lightThemeUHFCls.add("theme-dark");lightThemeUHFCls.remove("theme-light")}microsoftLogoEle.src=MICROSOFT_LOGO_LINK;bodyEl.dataset.soBadeTheme="hololens-dark"}overrideIntervalUH=setInterval(loadOverride,INTERVAL_DELAY,Selector.MICROSOT_LOGO_UHF,loadOverrideUH)}})(); /*! 261320, 261340 style overrides for startups page(s) */ (()=>{const overrideId="261320-261340";const reimaginePageClass="reimagine-page";const pageScopeStartups={"www.microsoft.com":{paths:["/startups","/startups/ai"]},previews:true};const pageScopeStartupsAi={"www.microsoft.com":{paths:["/startups/ai"]},previews:true};const startupsStyles=` body, main, .bg-light, .bg-white, .theme-dark .bg-inverse, .theme-dark .bg-secondary, :not(.theme-dark) .material-card, :not(.theme-dark) .material-surface, :not(.theme-dark) .material-lg-card:not(.theme-dark), .carousel-indicators { color: #3B2E58; } .inactive-bg-light a:not(.tab-image)::after, .inactive-bg-light a:not(.tab-image):not(.active), .inactive-bg-light button:not(.tab-image)::after, .inactive-bg-light button:not(.tab-image):not(.active), main :not(.theme-dark) a:not(.active):not(.btn-dark), .text-black, .text-dark, .text-inverse, .text-secondary { color: #3B2E58 !important; } .btn-dark, .btn-inverse, .btn-secondary, .theme-dark .btn-dark { background-color: #3B2E58; color: #fff; }`;const aiStyles=` section#snap-carousel-oc4ef4 .expandable-card.bg-img-var, section#snap-carousel-oc4ef4 .expandable-card .background-image-mask::after { background-image: linear-gradient(6.12deg, #D59DFF -90.59%, rgba(213, 157, 255, 0) 51.66%) !important; } section#snap-carousel-oc4ef4 img.img-object-cover { object-position: top; } section#snap-carousel-oc4ef4 .expandable-card .w-col-8 { width: 100% !important; } @media (min-width: 1084px) { section#snap-carousel-oc4ef4 .container { justify-content: center; } section#snap-carousel-oc4ef4 .snap-carousel-item { min-width: 200px; } } @media (max-width: 859.5px) { section#snap-carousel-oc4ef4 .expandable-card { min-height: 520px; } }`;let customStyles=startupsStyles;if(window.SOUtil.pageIsInScope(pageScopeStartupsAi)){customStyles+=aiStyles}if(window.SOUtil.pageIsInScope(pageScopeStartups)){window.SOUtil.runOnPageLoad(()=>{if(!document.body.classList.contains(reimaginePageClass)){window.SOUtil.addStylesheet(customStyles,overrideId)}})}})(); /*!266654*/(()=>{let e=window.location.origin,t="https://azure.microsoft.com",a="https://sites-author.adobeprod.microsoft.com",o=window.location.pathname,r=o.split("/")[1],i="/"+r,n=o.replace(i,""),c=` @media (min-width: 860px) { [id='tabs-pill-bar-ocb9d4_tab3'] .accordion--vertical { height: 512px; } } `;function l(){return e===t&&null!==n.match(/^\/homepage-b/)||e===t&&null!==n.match(/^\/homepage/)||e===a&&null!==n.match(/^\/azure\/acom\/en-us\/homepage-b/)||e===a&&null!==n.match(/^\/azure\/acom\/en-us\/homepage/)||e===t&&null!==i.match(/^\/en-us/)&&(""===n||"/"===n)}function m(){if(!l())return;document.body.insertAdjacentHTML("beforeend",'");let e=[document.querySelector(".section-master--blade-hero-double-cta .section-master__image.overlay__target"),document.querySelector(".section-master.section-master--breadth-comfortable.section-master--alignment-center.section-master--layout-header-horizontal-alignment-center .overlay__target"),document.querySelector(".interactive-demo__bg-image.overlay__target")];e.forEach(e=>{e&&e.classList.remove("overlay__target")})}"interactive"===document.readyState||"complete"===document.readyState?m():document.addEventListener("DOMContentLoaded",m)})(); /*! 213983 UHF Customization*/ (()=>{if(window.location.hostname==="golf-author.adobeppe.microsoft.com"||window.location.hostname==="wwwppe.microsoft.com"||window.location.hostname==="golf-author.adobeprod.microsoft.com"){return}try{(()=>{const UHF_LINK_THEME_CONFIG={"/MSServerCloud/CopilotHeader":{options:{removeAllMicrosoft:true},"c-shellmenu_custom_button_outline_newtab_signin":{moveRight:true,newTab:true}},"/msservercloud/Dynamics365Header":{options:{removeAllMicrosoft:true,moveActionMenuRight:true},"c-shellmenu_custom_button_solid_newtab_getstarted":{moveRight:"end",newTab:true},"c-shellmenu_custom_button_outline_newtab_signin":{moveRight:"end",newTab:true}},"/OfficeProducts/DeschutesHeader":{"c-shell-contactsales":{moveRight:true},c_shellmenu_buybutton:{style:{background:"#000000",color:"#FFFFFF"},href:{"/windows-365/enterprise/":"/windows-365/enterprise/compare-plans-pricing/","/windows-365":"/windows-365/business/compare-plans-pricing/"},exclude:"/compare-plans-pricing/"}},"/OfficeProducts/m365-commercialandsmbheader":{mectrl_main_trigger:{href:{"/microsoft-365/business/microsoft-kaizala":"https://go.microsoft.com/fwlink/p/?LinkID=2066870","/microsoft-365":"https://go.microsoft.com/fwlink/p/?LinkID=2237395"}},"c-shell-contactsales":{moveRight:true}},"/OfficeProducts/m365-enterpriseheader":{"c-shell-contactsales":{moveRight:true}},"/OfficeProducts/m365-globalnavheader":{mectrl_main_trigger:{href:{"/microsoft-365/excel":"https://go.microsoft.com/fwlink/p/?LinkID=746665","/microsoft-365/family-safety":"https://go.microsoft.com/fwlink/p/?LinkID=2144033","/microsoft-365/microsoft-stream":"https://go.microsoft.com/fwlink/p/?LinkID=2210345","/microsoft-365/microsoft-to-do-list-app":"https://go.microsoft.com/fwlink/p/?LinkID=2004497","/microsoft-365/online-surveys-polls-quizzes":"https://go.microsoft.com/fwlink/p/?LinkID=2115709","/microsoft-365/powerpoint":"https://go.microsoft.com/fwlink/p/?LinkID=746666","/microsoft-365/word":"https://go.microsoft.com/fwlink/p/?LinkID=746664","/microsoft-365/microsoft-defender-for-individuals":"https://go.microsoft.com/fwlink/p/?LinkID=2208367","/microsoft-365/onenote":"https://go.microsoft.com/fwlink/p/?LinkID=858872","/microsoft-365/microsoft-whiteboard":"https://go.microsoft.com/fwlink/p/?LinkID=2090507","/microsoft-365":"https://go.microsoft.com/fwlink/p/?LinkID=2237395"}}},"/OfficeProducts/m365-onedriveheader":{mectrl_main_trigger:{href:"https://go.microsoft.com/fwlink/p/?LinkID=2119709"}},"/OfficeProducts/m365-yammerheader":{mectrl_main_trigger:{href:"https://go.microsoft.com/fwlink/p/?LinkID=2086622"}},"/OfficeProducts/TeamsHeader2":{"c-shellmenu_0":{exclude:true},options:{removeAllMicrosoft:true,disableMobileDropdown:true}},"/OfficeProducts/TridentHeader":{"c-shell-signin":{moveRight:"end"},"c-shell-tryforfreebutton":{moveRight:"end"}}};const CLASSES={HIDDEN:["d-none","x-hidden"],DESKTOP_HIDDEN:["d-md-none","x-hidden-none-mobile-vp"],DROPDOWN_HIDDEN:["d-none","d-lg-inline-block"],UHF_MENU_ITEM:"uhf-menu-item",ACTION_MENU:"wf-menu"};const ID={ME_CONTROL:"meControl",UHF_LINK_THEME_STYLES:"UHFLinkThemeStyles",UHF_NAV_CTA:"c-uhf-nav-cta"};const V2_BUTTON_STYLES=` @media screen and (min-width: 860px) { header[data-header-footprint] nav a[id *= "_custom_"][id *= "_button_"] { border: 1px solid; border-radius: 3px; border-color: #000000; height: 31px; margin: 1px 8px; margin-top: 11px; padding-top: 4px; line-height: 1.5; font-weight: 400; font-size: 13px; letter-spacing: normal; } header[data-header-footprint] nav a[id *= "_custom_"][id *= "_button_"]:hover:before, header[data-header-footprint] nav a[id *= "_custom_"][id *= "_button_"]:focus:before { display: none; } header[data-header-footprint] nav a[id *= "_custom_"][id *= "_button_"][id *= "_solid_"] { background: #000000; color: #FFFFFF; } header[data-header-footprint] nav a[id *= "_custom_"][id *= "_button_"][id *= "_themed"] { background-color: var(--button-bg-color, #0078d4); border-color: var(--button-border-color, #0078d4); color: var(--button-color, #FFFFFF); } header[data-header-footprint] nav a[id *= "_custom_"][id *= "_button_"][id *= "_themed"]:hover { background-color: var(--button-hover-bg-color, #0078d4); color: var(--button-hover-color, #FFFFFF); } #c-shellmenu_subsitename { font-weight: 600; font-size: 16px; padding-top: 12px; } } @media only screen and (min-width: 1779px) { header[data-header-footprint] nav a[id *= "_custom_"][id *= "_button_"] { margin-inline: 10px !important; } } header[data-header-footprint] nav a[id ^= "c-shellmenu_categoryall"] { color: #0078d4!important; font-weight: 600; } .c-uhfh .c-logo.c-cat-logo:not([href]):hover>span:before { display: none; }`;const SELECTOR={DESKTOP_RIGHT_CONTAINER:"#uhf-c-nav .js-paddle-items",ALL_MICROSOFT:"#uhf-c-nav .js-paddle-items .c-button-logo.all-ms-nav",All_MICROSOFT_MOBILE:".glyph-global-nav-button",CATEGORY_ALL:"[id^=c-shellmenu_categoryall]",MOBILE_NAV_BUTTON:".c-cat-logo-button",MOBILE_LOGO_IMAGE_NO_LINK:".c-uhfh-gcontainer-st span.c-logo-index",NEW_TAB_LINK:'[id^="c-shellmenu_newtab"]',UHF_HEADER:"header[data-header-footprint]",UHF_ACTIONS:".c-uhfh-actions",V2_LINK:'nav a[id ^= "c-shellmenu_custom"]',V2_SEM_HEADER:'header[data-header-footprint *= "SEMHeader"]'};const trackingParams={ocid:null,icid:null,fromcode:null};function populateTrackingParams(){const urlParams=new URLSearchParams(window.location.search);const paramKeys=Array.from(urlParams.keys());for(const param in trackingParams){const originalParam=paramKeys.find(key=>key.toLowerCase()===param.toLowerCase());if(originalParam){trackingParams[param]=urlParams.get(originalParam)}}}function customizeUHF(UHF_LINK_THEME_CONFIG){const HEADER_NAMES=Object.keys(UHF_LINK_THEME_CONFIG);var styleTxt="";for(var headerName of HEADER_NAMES){const HEADER=UHF_LINK_THEME_CONFIG[headerName];const HEADER_SELECTOR='header[data-header-footprint^="'+headerName+'" i]';const LINK_IDS=Object.keys(HEADER);if(!document.querySelector(HEADER_SELECTOR)){continue}for(var link of LINK_IDS){if(link==="options"){styleTxt+=processOptions(HEADER_SELECTOR,HEADER[link]);continue}const LINK=HEADER[link];const LINK_ID=link;const LINK_ID_RIGHT=LINK_ID+"_right";const LINK_SELECTOR=HEADER_SELECTOR+" #"+LINK_ID;const LINK_SELECTOR_RIGHT=HEADER_SELECTOR+" #"+LINK_ID_RIGHT;let LINK_EL=document.querySelector(LINK_SELECTOR);styleTxt+=getDesktopStyles(LINK.moveRight?LINK_SELECTOR_RIGHT:LINK_SELECTOR,LINK.style);if(LINK.moveRight){styleTxt+=getHideDesktopStyle(LINK_SELECTOR)}let count=0;let delay=100;let intervalMax=100;let interval=setInterval(function(){LINK_EL=document.querySelector(LINK_SELECTOR);if(LINK_EL){clearInterval(interval);const LINK_EL_PARENT=LINK_EL?LINK_EL.parentNode:null;if(isPageExcluded(LINK.exclude)){addClasses(LINK_EL_PARENT,CLASSES.HIDDEN)}else{if(LINK.href){const NEW_HREF=getHref(LINK.href);if(NEW_HREF!==null){LINK_EL.setAttribute("href",NEW_HREF)}}addClasses(LINK_EL,LINK.classes?LINK.classes:"");if(LINK.newTab){LINK_EL.setAttribute("target","_blank")}addClasses(LINK_EL_PARENT,LINK.parentClasses?LINK.parentClasses:"");let desktopRightContainer=document.querySelector(`${HEADER_SELECTOR} ${SELECTOR.DESKTOP_RIGHT_CONTAINER}`);if(LINK.moveRight&&desktopRightContainer){let liEl=document.createElement("li");const parentID=LINK_EL_PARENT.getAttribute("id");if(parentID){liEl.setAttribute("id",parentID);LINK_EL_PARENT.removeAttribute("id");if(parentID===ID.UHF_NAV_CTA){addToStyles(getDesktopStyles(`${HEADER_SELECTOR} #${LINK_ID_RIGHT}`,{"margin-top":"11px!important"}))}}addClasses(liEl,CLASSES.UHF_MENU_ITEM);addClasses(liEl,LINK.parentClasses?LINK.parentClasses:"");liEl.setAttribute("data-left-uhf",LINK_ID);let cloneNode=LINK_EL.cloneNode(true);cloneNode.id=LINK_ID_RIGHT;liEl.appendChild(cloneNode);desktopRightContainer.insertAdjacentElement(LINK.moveRight===true?"afterbegin":"beforeend",liEl);addClasses(LINK_EL_PARENT,LINK.dropdownHidden?CLASSES.HIDDEN:CLASSES.DESKTOP_HIDDEN);addClasses(liEl,CLASSES.DROPDOWN_HIDDEN)}if(!LINK.moveRight&&LINK.dropdownHidden){addClasses(LINK_EL_PARENT,CLASSES.DROPDOWN_HIDDEN)}}}else if(count>=intervalMax){clearInterval(interval)}count++},delay)}}addToStyles(styleTxt)}function addToStyles(cssTxt){let style=document.getElementById(ID.UHF_LINK_THEME_STYLES);if(!style){style=document.createElement("style");style.setAttribute("id",ID.UHF_LINK_THEME_STYLES);document.head.appendChild(style)}style.appendChild(document.createTextNode(cssTxt))}function processOptions(HEADER_SELECTOR,options){var styleTxt="";for(var option of Object.keys(options)){const value=options[option];switch(option){case"removeAllMicrosoft":if(value){const allMSLi=document.querySelector(`${HEADER_SELECTOR} ${SELECTOR.ALL_MICROSOFT}`)?.parentElement?.parentElement;addClasses(allMSLi,CLASSES.DESKTOP_HIDDEN);const allMSMobile=document.querySelector(`${HEADER_SELECTOR} ${SELECTOR.All_MICROSOFT_MOBILE}`);addClasses(allMSMobile,CLASSES.HIDDEN)}break;case"disableMobileDropdown":if(value){styleTxt+=replaceMobileNavButton(HEADER_SELECTOR)}break;case"moveActionMenuRight":if(value){const menu=document.querySelector(`${HEADER_SELECTOR} .${CLASSES.ACTION_MENU}`);const meControl=document.querySelector(`${HEADER_SELECTOR} #${ID.ME_CONTROL}`);if(menu&&meControl){meControl.insertAdjacentElement("beforebegin",menu)}else if(menu){menu.parentElement.insertAdjacentElement("beforeend",menu)}}break;default:break}}return styleTxt}function replaceMobileNavButton(headerSelector){const mobileNavSelector=`${headerSelector} ${SELECTOR.MOBILE_NAV_BUTTON}`;const mobileNavButton=document.querySelector(mobileNavSelector);if(mobileNavButton){const mobileNavText=document.createElement("div");mobileNavText.className=mobileNavButton.className;mobileNavText.innerText=mobileNavButton.innerText;mobileNavText.style="display: flex !important;";mobileNavButton.parentElement.replaceChild(mobileNavText,mobileNavButton);return`${mobileNavSelector} {align-items: center;}${mobileNavSelector}::after,${mobileNavSelector} br {display: none;}${headerSelector} #uhf-g-nav {visibility: hidden;}`}return""}function addClasses(el,classes){if(!el||!classes)return;if(typeof classes==="string"){classes=classes.split(" ")}el.classList.add(...classes)}function removeClasses(el,classes){if(!el||!classes)return;if(typeof classes==="string"){classes=classes.split(" ")}el.classList.remove(...classes)}function isPageExcluded(pages){const PAGE_PATH=window.location.pathname;if(typeof pages==="string"){return PAGE_PATH.indexOf(pages)>=0}else if(Array.isArray(pages)){for(const page of pages){if(PAGE_PATH.indexOf(page)>=0){return true}}}else if(typeof pages==="boolean"){return pages}return false}function getHref(config){const PAGE_URL=window.location.href;const SEGMENTS=PAGE_URL.split("/");const START_OF_PATH=PAGE_URL.indexOf(SEGMENTS[3])+SEGMENTS[3].length;const PAGE_URL_START=PAGE_URL.substring(0,START_OF_PATH);if(typeof config==="string"){return getHrefSetting(config,PAGE_URL_START)}else if(typeof config==="object"){const URLS=Object.keys(config);for(var matchUrl of URLS){if(PAGE_URL.indexOf(matchUrl)!==-1){const NEW_HREF=config[matchUrl];return getHrefSetting(NEW_HREF,PAGE_URL_START)}}}return null}function getHrefSetting(url,PAGE_URL_START){if(url===null){return null}else if(url===""){return""}else if(url.indexOf("https://")===-1){return PAGE_URL_START+url}else{return url}}function getHideDesktopStyle(selector){return getDesktopStyles(selector,{display:"none"})}function getDesktopStyles(selector,styleObj){if(!selector||!styleObj)return"";return"@media screen and (min-width: 860px) {\n"+selector+" {\n"+Object.keys(styleObj).reduce((str,field)=>str+="\t"+field+": "+styleObj[field]+";\n","")+"}}\n\n"}function elementPromise(element,querySelector,rejectTime=0){return new Promise((resolve,reject)=>{if(!element||!querySelector){return reject("No element or no query selector provided")}if(document.querySelector(querySelector)){return resolve(element.querySelector(querySelector))}let wasFound=false;const observerConfig={attributes:true,childList:true,characterData:true,subtree:true};const observer=new MutationObserver(mutations=>{if(querySelector&&document.querySelector(querySelector)){wasFound=true;observer.disconnect();resolve(element.querySelector(querySelector))}});if(rejectTime>0){window.setTimeout(()=>{if(!wasFound){reject(querySelector)}},rejectTime*1e3)}observer.observe(element,observerConfig)})}function v2CustomizeUHF(){const HEADER_SELECTOR=SELECTOR.UHF_HEADER;const headerEl=document.querySelector(HEADER_SELECTOR);const dataName="ocuhfcustomized";if(!headerEl||headerEl.dataset[dataName]==="true"){return}headerEl.dataset[dataName]="true";const links=headerEl.querySelectorAll(SELECTOR.V2_LINK);const isSEMHeader=document.querySelector(SELECTOR.V2_SEM_HEADER);const headerOptions={removeAllMicrosoft:true,moveActionMenuRight:true,disableMobileDropdown:isSEMHeader&&links.length===0?true:false};moveCategoryAllLink(headerEl);linkNewTab(headerEl);headerEl.querySelector(SELECTOR.MOBILE_LOGO_IMAGE_NO_LINK)?.removeAttribute("tabindex");let styleTxt="";styleTxt+=processOptions(HEADER_SELECTOR,headerOptions);for(const link of links){const LINK_ID=link.getAttribute("id");const bhvrRegEx=/bhvr(\d+)/i;const LINK={moveRight:LINK_ID.indexOf("button")!==-1?"end":true,newTab:LINK_ID.indexOf("newtab")!==-1,bhvr:bhvrRegEx.test(LINK_ID)?bhvrRegEx.exec(LINK_ID)[1]:null};addTrackingParams(link);const LINK_ID_RIGHT=LINK_ID+"_right";const LINK_SELECTOR=HEADER_SELECTOR+" #"+LINK_ID;const LINK_SELECTOR_RIGHT=HEADER_SELECTOR+" #"+LINK_ID_RIGHT;let LINK_EL=link;styleTxt+=getDesktopStyles(LINK.moveRight?LINK_SELECTOR_RIGHT:LINK_SELECTOR,LINK.style);if(LINK.moveRight){styleTxt+=getHideDesktopStyle(LINK_SELECTOR)}const LINK_EL_PARENT=LINK_EL?LINK_EL.parentNode:null;if(LINK.newTab){LINK_EL.setAttribute("target","_blank")}if(LINK.bhvr){let datamObj={};try{datamObj=JSON.parse(LINK_EL.dataset.m)}catch(e){}datamObj.bhvr=LINK.bhvr;LINK_EL.dataset.m=JSON.stringify(datamObj)}addClasses(LINK_EL_PARENT,LINK.parentClasses?LINK.parentClasses:"");let desktopRightContainer=headerEl.querySelector(SELECTOR.DESKTOP_RIGHT_CONTAINER);if(LINK.moveRight&&desktopRightContainer){let liEl=document.createElement("li");const parentID=LINK_EL_PARENT.getAttribute("id");if(parentID){liEl.setAttribute("id",parentID);LINK_EL_PARENT.removeAttribute("id");if(parentID===ID.UHF_NAV_CTA){addToStyles(getDesktopStyles(`${HEADER_SELECTOR} #${LINK_ID_RIGHT}`,{"margin-top":"11px!important"}))}}addClasses(liEl,CLASSES.UHF_MENU_ITEM);addClasses(liEl,LINK.parentClasses?LINK.parentClasses:"");liEl.setAttribute("data-left-uhf",LINK_ID);let cloneNode=LINK_EL.cloneNode(true);cloneNode.id=LINK_ID_RIGHT;liEl.appendChild(cloneNode);desktopRightContainer.insertAdjacentElement("beforeend",liEl);addClasses(cloneNode,"c-uhf-nav-link");removeClasses(cloneNode,"js-subm-uhf-nav-link");if(LINK_ID.includes("_themed")){addClasses(cloneNode,"btn");const themeClasses=getButtonThemeValues(LINK_ID);addClasses(cloneNode,themeClasses)}addClasses(LINK_EL_PARENT,LINK.dropdownHidden?CLASSES.HIDDEN:CLASSES.DESKTOP_HIDDEN);addClasses(liEl,CLASSES.DROPDOWN_HIDDEN)}if(!LINK.moveRight&&LINK.dropdownHidden){addClasses(LINK_EL_PARENT,CLASSES.DROPDOWN_HIDDEN)}}addToStyles(styleTxt)}function getButtonThemeValues(id){const themeClasses=[];let themes=[];const themeKey="_themed-";const themeKeyLength=themeKey.length;const themedIndex=id.indexOf(themeKey);if(themedIndex===-1){themeClasses.push("btn--primary");themes=["primary","primary"]}else{const endOfTheme=id.indexOf("_",themedIndex+themeKeyLength)!==-1?id.indexOf("_",themedIndex+themeKeyLength):id.length;const theme=id.substring(themedIndex+themeKeyLength,endOfTheme);themes=theme.split(":");themeClasses.push(`btn--${themes[0]}`)}supportOCThemeColorValues(themes[1],themes[0]);return themeClasses}function supportOCThemeColorValues(oneCloudTheme,reimagineTheme){const a=document.createElement("a");a.style.display="none";a.classList.add("btn");document.body.appendChild(a);if(reimagineTheme){a.classList.add(`btn--${reimagineTheme}`);const reimagineStyles=window.getComputedStyle(a);if(reimagineStyles.getPropertyValue("--button-bg-color")){document.body.removeChild(a);return}a.classList.remove(`btn--${reimagineTheme}`)}if(oneCloudTheme){a.classList.add(`btn-${oneCloudTheme}`)}const styles=window.getComputedStyle(a);const color=styles.getPropertyValue("color");const backgroundColor=styles.getPropertyValue("background-color");const borderColor=styles.getPropertyValue("border-color");const hoverColor=color;const hoverBackgroundColor=backgroundColor;document.body.removeChild(a);addToStyles(` header[data-header-footprint] nav a.btn.btn--${reimagineTheme} {--button-color: ${color}; --button-bg-color: ${backgroundColor}; --button-border-color: ${borderColor};} header[data-header-footprint] nav a.btn.btn--${reimagineTheme}:hover {--button-hover-color: ${hoverColor}; --button-hover-bg-color: ${hoverBackgroundColor};}`)}function moveCategoryAllLink(headerEl){headerEl.querySelectorAll(SELECTOR.CATEGORY_ALL).forEach(categoryAllLink=>{const categoryAllListItem=categoryAllLink.parentElement;if(!categoryAllListItem)return;const category=categoryAllListItem.parentElement?.parentElement;if(!category)return;category.insertAdjacentElement("beforebegin",categoryAllListItem);categoryAllListItem.style.flexBasis="100%";categoryAllListItem.style.paddingBlock="10px 0"})}function linkNewTab(headerEl){headerEl.querySelectorAll(SELECTOR.NEW_TAB_LINK).forEach(newTabLink=>{newTabLink.setAttribute("target","_blank")})}function addTrackingParams(el){if(el){const href=el.getAttribute("href");if(href&&URL.canParse(href)&&href.indexOf("mailto:")===-1&&href.indexOf("tel:")===-1){const url=new URL(href);for(const param in trackingParams){if(trackingParams[param]){url.searchParams.append(param,trackingParams[param])}}el.setAttribute("href",url.href)}}}function isV2Convention(){const headerEl=document.querySelector(SELECTOR.UHF_HEADER);if(!headerEl){return false}return headerEl.querySelector(SELECTOR.V2_LINK)||headerEl.querySelector(SELECTOR.CATEGORY_ALL)||headerEl.querySelector(SELECTOR.NEW_TAB_LINK)||document.querySelector(SELECTOR.V2_SEM_HEADER)}addToStyles(V2_BUTTON_STYLES);populateTrackingParams();elementPromise(document,`${SELECTOR.UHF_HEADER} ${SELECTOR.UHF_ACTIONS}`,100).then(header=>{isV2Convention()?v2CustomizeUHF():customizeUHF(UHF_LINK_THEME_CONFIG)}).catch(querySelector=>{console.log("Element not found after timeout: "+querySelector)})})()}catch(err){console.log(err)}})(); /*! 1082896 UHF stacked nav - commercial header and themed site header (includes 213983) */ (function(window){"use strict";function selectElements(selector,context){context=context||document;return context.querySelectorAll(selector)}function hasClass(element,className){return element&&element.classList.contains(className)}function addClass(element,className){if(element&&className){element.classList.add(className)}}function removeClass(element,className){if(element&&className){element.classList.remove(className)}}function addClasses(element,classNames){if(element&&classNames){classNames.forEach(function(className){addClass(element,className)})}}function removeClasses(element,classNames){if(element&&classNames){classNames.forEach(function(className){removeClass(element,className)})}}function closest(element,selector){while(element&&element!==document){if(element.matches(selector)){return element}element=element.parentElement}return null}var NavigationMenus={menus:null,levelTwoMenus:null,multiColumnMenus:null,refreshMenuItems:function(){var menuSelector=".js-nav-menu";this.menus=document.querySelectorAll(menuSelector);this.levelTwoMenus=document.querySelectorAll(menuSelector+" "+menuSelector);this.multiColumnMenus=document.querySelectorAll(".f-multi-column "+menuSelector);if(this.levelTwoMenus){for(var i=0;i0){setTimeout(function(){self.initialize()},initDelay)}else if(initDelay===0){console.log("UhfOverflowMenu: Auto-initialization disabled. Call initialize() when ready.")}}UhfOverflowMenu.prototype.initialize=function(){if(this.isInitialized){return}this.isInitialized=true;if(this._isInMobileViewport()){this.handleMoveIntoMobileViewport()}else{this.handleMoveIntoDesktopViewport()}};UhfOverflowMenu.prototype._cacheMenuElements=function(){this.menus=selectElements(menuSelector,this.headerElement);this.levelTwoMenus=selectElements(menuSelector+" "+menuSelector,this.headerElement)};UhfOverflowMenu.prototype._setupMenuInteractions=function(){var self=this;this._menuMouseEnterHandler=function(event){self._handleDesktopMenuMouseEnter(event)};this._menuMouseLeaveHandler=function(event){self._handleDesktopMenuMouseLeave(event)};this._menuKeyDownHandler=function(event){self._handleMenuKeyDown(event)};this._touchHandler=function(){self.wasTouched=true};this._blurHandler=function(event){self._closeIfBlurred(event)};this.headerElement.addEventListener("mouseover",this._menuMouseEnterHandler);this.headerElement.addEventListener("mouseout",this._menuMouseLeaveHandler);this.headerElement.addEventListener("keydown",this._menuKeyDownHandler);this.headerElement.addEventListener("touchstart",this._touchHandler);document.addEventListener("click",this._blurHandler)};UhfOverflowMenu.prototype._setupMainNavClickHandler=function(){var self=this;this._mainNavClickHandler=function(event){if(self._isInMobileViewport()){return}var button=event.target;if(button.tagName!=="BUTTON"){return}var navItem=closest(button,"li");if(!navItem||!self.nav.contains(navItem)||self.overflowMenu.contains(navItem)){return}if(!hasClass(navItem,overflowTrackedClass)){self._closeAllTrackedMenus()}};this.nav.addEventListener("click",this._mainNavClickHandler)};UhfOverflowMenu.prototype._closeAllTrackedMenus=function(){var trackedItems=this.nav.querySelectorAll("."+overflowTrackedClass);for(var i=0;i div > button");var submenu=navItem.querySelector(":scope > div > ul");if(button&&button.getAttribute("aria-expanded")==="true"){button.setAttribute("aria-expanded","false");if(submenu){submenu.setAttribute("aria-hidden","true");var subSubmenus=submenu.querySelectorAll(":scope > li > ul");subSubmenus.forEach(function(ul){ul.setAttribute("aria-hidden","true")})}if(button.hasAttribute("ms.interactiontype")){button.setAttribute("ms.interactiontype","14")}submenu.style.marginLeft="";submenu.style.marginRight="";submenu.style.height="";removeClass(submenu,flippedClass)}}};UhfOverflowMenu.prototype._handleMenuKeyDown=function(event){if(event.key!=="Enter"&&event.keyCode!==13){return}var target=event.target;if(target.tagName!=="BUTTON"){return}var menu=closest(target.parentElement,menuSelector);if(!menu||!this._isMenuInHeader(menu)){return}if(!this._isMenuInOverflow(menu)){return}if(!this._isLevelTwoMenu(menu)){return}event.preventDefault();if(this._isOpen(menu)){this._closeMenu(menu,true)}else{var parents=this._getParents(menu,menuSelector);this._closeAllOpenMenus(parents);this._openMenu(menu)}};UhfOverflowMenu.prototype._handleDesktopMenuMouseEnter=function(event){if(this._isInMobileViewport()){return}var menu=closest(event.target,menuSelector);if(!menu||!this._isMenuInHeader(menu)){return}if(!this._isMenuInOverflow(menu)){return}if(this.wasTouched||!this._isLevelTwoMenu(menu)){return}var parents=this._getParents(menu,menuSelector);this._closeAllOpenMenus(parents);this._openMenu(menu)};UhfOverflowMenu.prototype._handleDesktopMenuMouseLeave=function(event){var menu=closest(event.target,menuSelector);if(!menu||!this._isMenuInHeader(menu)){return}if(!this._isMenuInOverflow(menu)){return}if(this.wasTouched||!this._isLevelTwoMenu(menu)){return}if(event.relatedTarget&&menu.contains(event.relatedTarget)){return}this._closeMenu(menu)};UhfOverflowMenu.prototype._closeIfBlurred=function(event){var target=event.target;if(this.headerElement.contains(target)){this._updateMultiParentDisplay();return}this._closeAllOpenMenus()};UhfOverflowMenu.prototype._updateMultiParentDisplay=function(){var multiParents=this.headerElement.querySelectorAll('[f-multi-parent="true"]');for(var i=0;i button");return button&&button.getAttribute("aria-expanded")==="true"};UhfOverflowMenu.prototype._openMenu=function(menu){var button=menu.querySelector(":scope > button");var submenu=menu.querySelector(":scope > ul");if(!button){return}button.setAttribute("aria-expanded","true");if(submenu){submenu.setAttribute("aria-hidden","false")}if(button.hasAttribute("ms.interactiontype")){button.setAttribute("ms.interactiontype","15")}if(this._isMenuInOverflow(menu)){this._matchOverflowMenuHeights(menu)}};UhfOverflowMenu.prototype._matchOverflowMenuHeights=function(menu){var self=this;var overflowList=this.overflowMenuList;if(!overflowList){return}overflowList.style.height="";var allSubmenus=overflowList.querySelectorAll("ul");for(var i=0;imaxHeight){maxHeight=overflowHeight}menusToResize.push(overflowList);var openSubmenus=overflowList.querySelectorAll('[aria-expanded="true"]');for(var i=0;i ul");if(openSubmenu){var submenuHeight=openSubmenu.offsetHeight;if(submenuHeight>maxHeight){maxHeight=submenuHeight}menusToResize.push(openSubmenu)}}if(maxHeight>0){for(var j=0;j button");var submenu=menu.querySelector(":scope > ul");if(!button){return}button.setAttribute("aria-expanded","false");if(submenu){submenu.setAttribute("aria-hidden","true")}if(button.hasAttribute("ms.interactiontype")){button.setAttribute("ms.interactiontype","14")}var descendantMenus=menu.querySelectorAll(menuSelector);for(var i=0;i [aria-expanded="true"]',this.headerElement);for(var i=0;i=this.navItemsWidth&&widthDifference>this.minWidthDifference){this.updateGlobalMenuItems(false);if(this.isShowing()&&this.overflowMenuList.children.length===0){this.hide()}}else{if(!this.isShowing()){this.show();this.initializeNavItemsWidths()}this.updateOverflowMenuItems()}if(this.refreshMenu){NavigationMenus.refreshMenuItems();this._cacheMenuElements();this.refreshMenu=false}this._updateMultiParentDisplay()};UhfOverflowMenu.prototype.handleMoveIntoDesktopViewport=function(){if(!this.overflowMenu||!this.nav){return}this._closeAllOpenMenus();this.initializeNavItemsWidths();var widthDifference=this.nav.offsetWidth-this.navItemsWidth;if(this.nav.offsetWidth>this.navItemsWidth&&widthDifference>this.minWidthDifference){this.updateGlobalMenuItems(false);if(this.isShowing()&&this.overflowMenuList.children.length===0){this.hide()}}else{if(!this.isShowing()){this.show();this.initializeNavItemsWidths()}this.updateOverflowMenuItems()}if(this.refreshMenu){NavigationMenus.refreshMenuItems();this._cacheMenuElements();this.refreshMenu=false}this._updateMultiParentDisplay()};UhfOverflowMenu.prototype.handleMoveIntoMobileViewport=function(){if(!this.overflowMenu||!this.nav){return}this._closeAllOpenMenus();this.updateGlobalMenuItems(true);if(this.isShowing()&&this.overflowMenuList.children.length===0){this.hide()}if(this.refreshMenu){NavigationMenus.refreshMenuItems();this._cacheMenuElements();this.refreshMenu=false}this._updateMultiParentDisplay()};UhfOverflowMenu.prototype.initializeNavItemsWidths=function(){if(!this.nav){return}var navItems=this.nav.children;this.navItemsWidth=0;for(var i=0;i1&&this.navItems.length>overflowMenuCount&&(potentialNavItemsWidth>=this.nav.offsetWidth||widthDifference0||this.isEnoughSpaceToFitItems(potentialNavItemsWidth+this.estimateNavOffsetWidth(overflowNavItem))){this.overflowMenuList.removeChild(this.overflowMenuList.firstElementChild);this.nav.insertBefore(overflowNavItem,this.overflowMenu);potentialNavItemsWidth+=overflowNavItem.offsetWidth;if(!this.refreshMenu){this.refreshMenu=true}overflowNavItem=this.cloneAndStyleFirstChild()}};UhfOverflowMenu.prototype.isEnoughSpaceToFitItems=function(potentialWidth){var isEnough=false;if(this.overflowMenuList.children.length>0){if(this.overflowMenuList.children.length===1){potentialWidth-=this.overflowMenu.offsetWidth}if(this.nav.offsetWidth>potentialWidth){isEnough=true}}return isEnough};UhfOverflowMenu.prototype.cloneAndStyleFirstChild=function(){var firstchild=undefined;if(this.overflowMenuList.firstElementChild){firstchild=this.overflowMenuList.firstElementChild.cloneNode(true);this.updateGlobalMenuItemStyle(firstchild)}return firstchild};UhfOverflowMenu.prototype.estimateNavOffsetWidth=function(navItem){var offsetwidth=0;if(navItem){this.nav.insertBefore(navItem,this.overflowMenu);offsetwidth=navItem.offsetWidth;this.nav.removeChild(navItem)}return offsetwidth};UhfOverflowMenu.prototype.updateOverflowMenuItemStyle=function(navItem){addClass(navItem,overflowTrackedClass);this._removeMainNavClickHandler(navItem);if(hasClass(navItem,"single-link")){addClass(navItem,"js-nav-menu");removeClass(navItem.firstElementChild,"c-uhf-nav-link");addClass(navItem.firstElementChild,"js-subm-uhf-nav-link")}else if(hasClass(navItem,"nested-menu")){addClasses(navItem,this.overflowNestedMenuClassList);var divElement=navItem.firstElementChild;var divContent=divElement.children;while(divContent.length>0){var divContentItem=divContent.item(0);if(divContentItem.nodeName==="UL"&&hasClass(divContentItem,"f-multi-column")){var dataMAttr=divContentItem.getAttribute("data-class-idn").split(" ");removeClasses(divContentItem,dataMAttr)}navItem.appendChild(divContentItem)}navItem.removeChild(divElement)}this._toggleMultiParentDisplay(navItem,true)};UhfOverflowMenu.prototype.updateGlobalMenuItemStyle=function(navItem){if(hasClass(navItem,"single-link")){removeClass(navItem,"js-nav-menu");addClass(navItem.firstElementChild,"c-uhf-nav-link");removeClass(navItem.firstElementChild,"js-subm-uhf-nav-link")}else if(hasClass(navItem,"nested-menu")){removeClasses(navItem,this.overflowNestedMenuClassList);var divContent=navItem.children;var divElement=document.createElement("div");divElement.setAttribute("class",this.overflowSubMenuClassList);while(divContent.length>0){var divContentItem=divContent.item(0);if(divContentItem.nodeName==="UL"){var dataMAttr=divContentItem.getAttribute("data-class-idn");if(dataMAttr&&dataMAttr.indexOf("f-multi-column")!==-1){addClasses(divContentItem,dataMAttr.split(" "))}}divElement.appendChild(divContentItem)}navItem.appendChild(divElement)}this._toggleMultiParentDisplay(navItem,false);this._attachMainNavClickHandler(navItem)};UhfOverflowMenu.prototype._toggleMultiParentDisplay=function(navItem,isInOverflow){var multiParents=navItem.querySelectorAll('[f-multi-parent="true"]');for(var i=0;i div > button");if(!button){return}var clickHandler=function(event){event.preventDefault();event.stopPropagation();var menu=button.parentElement.parentElement;var submenu=menu.querySelector(":scope > div > ul");if(!submenu){return}var isExpanded=button.getAttribute("aria-expanded")==="true";button.setAttribute("aria-expanded",isExpanded?"false":"true");submenu.setAttribute("aria-hidden",isExpanded?"true":"false");var subSubmenu=submenu.querySelectorAll(":scope > li > ul");if(subSubmenu){subSubmenu.forEach(function(ul){ul.setAttribute("aria-hidden",isExpanded?"true":"false")})}if(button.hasAttribute("ms.interactiontype")){button.setAttribute("ms.interactiontype",isExpanded?"14":"15")}if(!isExpanded){self._closeAllMenusGlobally();self._positionSubmenu(menu,submenu);var siblings=menu.parentElement.children;for(var i=0;i div > button");var siblingSubmenu=sibling.querySelector(":scope > div > ul");if(siblingButton&&siblingButton.getAttribute("aria-expanded")==="true"){siblingButton.setAttribute("aria-expanded","false");if(siblingSubmenu){siblingSubmenu.setAttribute("aria-hidden","true");var siblingSubSubmenus=siblingSubmenu.querySelectorAll(":scope > li > ul");siblingSubSubmenus.forEach(function(ul){ul.setAttribute("aria-hidden","true")})}if(siblingButton.hasAttribute("ms.interactiontype")){siblingButton.setAttribute("ms.interactiontype","14")}}}}}else{submenu.style.marginLeft="";submenu.style.marginRight="";submenu.style.height=""}};button._uhfMainNavClickHandler=clickHandler;button.addEventListener("click",clickHandler)};UhfOverflowMenu.prototype._removeMainNavClickHandler=function(navItem){var button=navItem.querySelector(":scope > div > button");if(!button){button=navItem.querySelector(":scope > button")}if(button&&button._uhfMainNavClickHandler){button.removeEventListener("click",button._uhfMainNavClickHandler);delete button._uhfMainNavClickHandler}};UhfOverflowMenu.prototype._closeAllMenusGlobally=function(){var allOpenButtons=document.querySelectorAll('.js-nav-menu > button[aria-expanded="true"]');for(var i=0;i ul");if(siblingUl){siblingUl.setAttribute("aria-hidden","true")}if(openButton.hasAttribute("ms.interactiontype")){openButton.setAttribute("ms.interactiontype","14")}}};UhfOverflowMenu.prototype._positionSubmenu=function(menu,submenu){submenu.style.marginLeft="";submenu.style.marginRight="";submenu.style.height="";removeClass(submenu,flippedClass);var submenuRect=submenu.getBoundingClientRect();var windowWidth=window.innerWidth;var dropdownWidth=submenu.offsetWidth;var shiftAmount=0;var shiftBuffer=20;var direction=this._getDirection();var marginProperty=direction==="left"?"marginLeft":"marginRight";var isMultiColumn=hasClass(submenu,"f-multi-column");if(isMultiColumn&&submenuRect.right>windowWidth){shiftAmount=submenuRect.right-windowWidth;shiftBuffer=Math.abs(shiftAmount-submenuRect.left)/2;shiftAmount+=shiftBuffer}else if(isMultiColumn&&submenuRect.left<0){shiftAmount=-submenuRect.left+shiftBuffer}else if(!isMultiColumn&&submenuRect.left+dropdownWidth*2>windowWidth&&submenuRect.right-dropdownWidth*2<0){shiftAmount=dropdownWidth-menu.offsetWidth}else if(submenuRect.right>windowWidth){shiftAmount=submenuRect.right-windowWidth+shiftBuffer}else if(submenuRect.left<0){shiftAmount=-submenuRect.left+shiftBuffer}if(shiftAmount>0){submenu.style[marginProperty]=-shiftAmount+"px"}var parentMenu=menu.parentElement;if(parentMenu&&hasClass(parentMenu,"js-nav-menu")){var parentSubmenu=parentMenu.querySelector(":scope > ul");if(parentSubmenu){var parentHeight=parentSubmenu.offsetHeight;var submenuHeight=submenu.offsetHeight;if(parentHeight>submenuHeight){submenu.style.height=parentHeight+"px"}else if(submenuHeight>parentHeight){parentSubmenu.style.height=submenuHeight+"px"}}}};UhfOverflowMenu.prototype._getDirection=function(){var dir=document.documentElement.getAttribute("dir")||"ltr";return dir==="rtl"?"right":"left"};window.UhfOverflowMenu=UhfOverflowMenu})(window);(()=>{if(window.location.hostname!=="golf-author.adobeppe.microsoft.com"&&window.location.hostname!=="wwwppe.microsoft.com"&&window.location.hostname!=="golf-author.adobeprod.microsoft.com"){return}try{(()=>{const UHF_LINK_THEME_CONFIG={"/MSServerCloud/CopilotHeader":{options:{removeAllMicrosoft:true},"c-shellmenu_custom_button_outline_newtab_signin":{moveRight:true,newTab:true}},"/OfficeProducts/DeschutesHeader":{"c-shell-contactsales":{moveRight:true},c_shellmenu_buybutton:{style:{background:"#000000",color:"#FFFFFF"},href:{"/windows-365/enterprise/":"/windows-365/enterprise/compare-plans-pricing/","/windows-365":"/windows-365/business/compare-plans-pricing/"},exclude:"/compare-plans-pricing/"}},"/OfficeProducts/m365-commercialandsmbheader":{mectrl_main_trigger:{href:{"/microsoft-365/business/microsoft-kaizala":"https://go.microsoft.com/fwlink/p/?LinkID=2066870","/microsoft-365":"https://go.microsoft.com/fwlink/p/?LinkID=2237395"}},"c-shell-contactsales":{moveRight:true}},"/OfficeProducts/m365-enterpriseheader":{"c-shell-contactsales":{moveRight:true}},"/OfficeProducts/m365-globalnavheader":{mectrl_main_trigger:{href:{"/microsoft-365/excel":"https://go.microsoft.com/fwlink/p/?LinkID=746665","/microsoft-365/family-safety":"https://go.microsoft.com/fwlink/p/?LinkID=2144033","/microsoft-365/microsoft-stream":"https://go.microsoft.com/fwlink/p/?LinkID=2210345","/microsoft-365/microsoft-to-do-list-app":"https://go.microsoft.com/fwlink/p/?LinkID=2004497","/microsoft-365/online-surveys-polls-quizzes":"https://go.microsoft.com/fwlink/p/?LinkID=2115709","/microsoft-365/powerpoint":"https://go.microsoft.com/fwlink/p/?LinkID=746666","/microsoft-365/word":"https://go.microsoft.com/fwlink/p/?LinkID=746664","/microsoft-365/microsoft-defender-for-individuals":"https://go.microsoft.com/fwlink/p/?LinkID=2208367","/microsoft-365/onenote":"https://go.microsoft.com/fwlink/p/?LinkID=858872","/microsoft-365/microsoft-whiteboard":"https://go.microsoft.com/fwlink/p/?LinkID=2090507","/microsoft-365":"https://go.microsoft.com/fwlink/p/?LinkID=2237395"}}},"/OfficeProducts/m365-onedriveheader":{mectrl_main_trigger:{href:"https://go.microsoft.com/fwlink/p/?LinkID=2119709"}},"/OfficeProducts/m365-yammerheader":{mectrl_main_trigger:{href:"https://go.microsoft.com/fwlink/p/?LinkID=2086622"}},"/OfficeProducts/TeamsHeader2":{"c-shellmenu_0":{exclude:true},options:{removeAllMicrosoft:true,disableMobileDropdown:true}},"/OfficeProducts/TridentHeader":{"c-shell-signin":{moveRight:"end"},"c-shell-tryforfreebutton":{moveRight:"end"}}};const CLASSES={HIDDEN:["d-none","x-hidden"],DESKTOP_HIDDEN:["d-md-none","x-hidden-none-mobile-vp"],DROPDOWN_HIDDEN:["d-none","d-lg-inline-block"],UHF_MENU_ITEM:"uhf-menu-item",ACTION_MENU:"wf-menu",CUSTOM_BG:"oc-uhf-custom-bg",L0UH:"oc-uhf-l0-uh",THEME_DAY:"theme-day",THEME_NIGHT:"theme-night"};const ID={ME_CONTROL:"meControl",UHF_LINK_THEME_STYLES:"UHFLinkThemeStyles",UHF_NAV_CTA:"c-uhf-nav-cta"};const V2_BUTTON_STYLES=` @media screen and (min-width: 860px) { /* custom button styles (outline) */ header[data-header-footprint] nav a[id *= "_custom_"][id *= "_button_"] { border: 1px solid; border-radius: 3px; border-color: #000000; height: 31px; margin: 1px 8px; margin-top: 11px; padding-top: 4px; line-height: 1.5; font-weight: 400; font-size: 13px; letter-spacing: normal; } header[data-header-footprint] nav a[id *= "_custom_"][id *= "_button_"]:hover:before, header[data-header-footprint] nav a[id *= "_custom_"][id *= "_button_"]:focus:before { display: none; } /* dark theme adjustments for custom button (outline) */ header[data-header-footprint] .oc-uhf-custom-bg.oc-uhf-custom-bg-dark nav a[id *= "_custom_"][id *= "_button_"] { border-color: #FFFFFF; color: #FFFFFF; } /* theme color for UHF search */ .c-uhfh .oc-uhf-custom-bg .c-search input[type="search"], .c-uhfh .oc-uhf-custom-bg .c-search input[type="search"]:active, .c-uhfh .oc-uhf-custom-bg .c-search input[type="search"]:focus, .c-uhfh .oc-uhf-custom-bg .c-search input[type="search"]:hover { border-color: var(--so-uhf-search-border-color, #000000); } .c-uhfh .oc-uhf-custom-bg.oc-uhf-custom-bg-dark .c-search input[type="search"], .c-uhfh .oc-uhf-custom-bg.oc-uhf-custom-bg-dark .c-search input[type="search"]:active, .c-uhfh .oc-uhf-custom-bg.oc-uhf-custom-bg-dark .c-search input[type="search"]:focus, .c-uhfh .oc-uhf-custom-bg.oc-uhf-custom-bg-dark .c-search input[type="search"]:hover { border-color: var(--so-uhf-search-border-color, #FFFFFF); } /* dark theme adjustments for search */ header[data-header-footprint] .oc-uhf-custom-bg.oc-uhf-custom-bg-dark .c-search:not(.js-focused) button, header[data-header-footprint] .oc-uhf-custom-bg.oc-uhf-custom-bg-dark .c-search:not(.js-focused) button:hover, header[data-header-footprint] .oc-uhf-custom-bg.oc-uhf-custom-bg-dark .cancel-search { color: #FFFFFF; } .c-uhfh>div:first-child .c-search input[type="search"] { background-color: #FFFFFF !important; } .c-uhfh .oc-uhf-custom-bg.oc-uhf-custom-bg-dark .c-search input[type="search"]::placeholder { color: #3A4C56; } /* solid button styles */ header[data-header-footprint] nav a[id *= "_custom_"][id *= "_button_"][id *= "_solid_"] { background: #000000; color: #FFFFFF; } header[data-header-footprint] .oc-uhf-custom-bg.oc-uhf-custom-bg-dark nav a[id *= "_custom_"][id *= "_button_"][id *= "_solid_"] { background: #FFFFFF; border-color: #FFFFFF; color: #000000; } /* themed button styles */ header[data-header-footprint] nav a[id *= "_custom_"][id *= "_button_"][id *= "_themed"] { background-color: var(--button-bg-color, #0078d4); border-color: var(--button-border-color, #0078d4); color: var(--button-color, #FFFFFF); } header[data-header-footprint] nav a[id *= "_custom_"][id *= "_button_"][id *= "_themed"]:hover { background-color: var(--button-hover-bg-color, #0078d4); color: var(--button-hover-color, #FFFFFF); } /* subsite name styles */ #c-shellmenu_subsitename { font-weight: 600; font-size: 16px; padding-top: 12px; } } @media only screen and (min-width: 1779px) { /* custom button styling */ header[data-header-footprint] nav a[id *= "_custom_"][id *= "_button_"] { margin-inline: 10px !important; } } /* Category All link styling */ header[data-header-footprint] nav a[id ^= "c-shellmenu_categoryall"] { color: #0078d4!important; font-weight: 600; } /* SEM header: remove logo link if no href */ .c-uhfh .c-logo.c-cat-logo:not([href]):hover>span:before { display: none; } /* L1 styling */ .oc-uhf-custom-bg { #uhfLogo, .c-show-pipe::before { display: none; } #uhfCatLogo { margin-left: 0; } margin-bottom: 0!important; } /* L1 dark theme adjustments */ @media screen and (min-width: 860px) { .c-uhfh>div.oc-uhf-custom-bg.oc-uhf-custom-bg-dark .c-uhf-menu>button[aria-expanded="true"], .c-uhfh>div.oc-uhf-custom-bg.oc-uhf-custom-bg-dark .c-uhf-menu>button:hover, .c-uhfh>div.oc-uhf-custom-bg.oc-uhf-custom-bg-dark .c-uhf-menu>button:focus { background-color: rgba(255,255,255,0.1); } .c-uhfh>div.oc-uhf-custom-bg.oc-uhf-custom-bg-light .c-uhf-menu>button[aria-expanded="true"], .c-uhfh>div.oc-uhf-custom-bg.oc-uhf-custom-bg-light .c-uhf-menu>button:hover, .c-uhfh>div.oc-uhf-custom-bg.oc-uhf-custom-bg-light .c-uhf-menu>button:focus { background-color: rgba(0,0,0,0.1); } .c-uhfh>div.oc-uhf-custom-bg.oc-uhf-custom-bg-dark .c-uhf-menu>button, .c-uhfh>div.oc-uhf-custom-bg.oc-uhf-custom-bg-dark .uhf-menu-item>a, .c-uhfh>div.oc-uhf-custom-bg.oc-uhf-custom-bg-dark .c-cat-logo, .c-uhfh>div.oc-uhf-custom-bg.oc-uhf-custom-bg-dark .mectrl_topHeader, .c-uhfh>div.oc-uhf-custom-bg.oc-uhf-custom-bg-dark a.mectrl_trigger { color: white; } .c-uhfh>div.oc-uhf-custom-bg.oc-uhf-custom-bg-dark .c-me:not(.msame_open) .msame_Header_name { color: white !important; } .c-uhfh>div.oc-uhf-custom-bg.oc-uhf-custom-bg-dark .mectrl_signIn_circle_glyph { filter: invert(1) brightness(2); } } .c-uhfh.c-sgl-stck>div.oc-uhf-custom-bg.oc-uhf-custom-bg-dark .cat-logo-button-cont .c-cat-logo-button { color: white; } /* L0 z-index */ @media screen and (min-width: 860px) { .oc-uhf-l0-uh .c-uhf-menu ul, .oc-uhf-l0-uh.c-uhfh .c-uhf-menu [aria-expanded="true"]:focus:not(.x-hidden-focus)+ul { z-index: 702; } } @media screen and (max-width: 859.9px) { .oc-uhf-l0-uh #uhf-g-nav { z-index: 502; } } /* MeControl position fix for L1 */ .oc-uhf-custom-bg #meControl { top: -84px; } /* Search position fix for L1 */ @media screen and (max-width: 859.9px) { .c-uhfh .oc-uhf-custom-bg .c-search, .c-uhfh .oc-uhf-custom-bg .c-close-search { top: -85px; position: absolute; } } .oc-uhf-l0-uh.c-uhfh .c-close-search { display: none !important; } /* Announcement banner styles for less interference with the theme color */ .ocr-announcement-banner .announcement-banner, .theme-day .announcement-banner { background-color: var(--root-color-vapor-gray-200, #DBDCDC); } .theme-night .announcement-banner { background-color: var(--root-color-vapor-gray-900, #4A4B4B); } /* Copilot banner removal */ #headerRegion:has(.oc-uhf-custom-bg) #epb { display: none !important; } `;const bgColors={ai:{bgColor:"#662269",type:"dark"},azure:{bgColor:"#006DC1",type:"dark",searchBorderColor:"#8AC1EB"},business:{bgColor:"#463668",type:"dark"},copilot:{bgColor:"#0078D4",type:"dark"},"dynamics-365":{bgColor:"#0A1B45",type:"dark"},"eval-center":{bgColor:"#006DC1",type:"dark",searchBorderColor:"#8AC1EB"},events:{bgColor:"#E7E7E7",type:"light",bannerTheme:"dark"},industry:{bgColor:"#662269",type:"dark"},"microsoft-365":{bgColor:"#463668",type:"dark",searchBorderColor:"#C6C1D0"},"microsoft-365-copilot":{bgColor:"#CBE6F4",type:"light",bannerTheme:"dark"},"microsoft-copilot":{bgColor:"#0078D4",type:"dark"},"microsoft-fabric":{bgColor:"#BACCCE",type:"light"},"microsoft-teams":{bgColor:"#CDCCF2",type:"light",bannerTheme:"dark"},"microsoft-viva":{bgColor:"#0078D4",type:"dark"},"power-platform":{bgColor:"#BADCD2",type:"light"},security:{bgColor:"#03159A",type:"dark",searchBorderColor:"#56AEF9"},"sql-server":{bgColor:"#006DC1",type:"dark",searchBorderColor:"#8AC1EB"},sustainability:{bgColor:"#291817",type:"dark"},"windows-365":{bgColor:"#006DC1",type:"dark",searchBorderColor:"#8AC1EB"},"windows-server":{bgColor:"#DCEEF8",type:"light"},default:{bgColor:"#006DC1",type:"dark",bannerTheme:"light",searchBorderColor:"#8AC1EB"}};const SELECTOR={ANNOUNCEMENT_BANNER:".ocr-announcement-banner",DESKTOP_RIGHT_CONTAINER:"#uhf-c-nav .js-paddle-items",ALL_MICROSOFT:"#uhf-c-nav .js-paddle-items .c-button-logo.all-ms-nav",All_MICROSOFT_MOBILE:".glyph-global-nav-button",CATEGORY_ALL:"[id^=c-shellmenu_categoryall]",HEADER_BG:".js-global-head",MOBILE_NAV_BUTTON:".c-cat-logo-button",MOBILE_LOGO_IMAGE_NO_LINK:".c-uhfh-gcontainer-st span.c-logo-index",NEW_TAB_LINK:'[id^="c-shellmenu_newtab"]',UHF_HEADER:"header[data-header-footprint]",UHF_HEADER_NOT_L0:"header[data-header-footprint]:not([data-header-footprint*='L0' i])",UHF_HEADER_L0:"header[data-header-footprint][data-header-footprint*='L0' i]",UHF_ACTIONS:".c-uhfh-actions",V2_LINK:'nav a[id ^= "c-shellmenu_custom"]',V2_SEM_HEADER:'header[data-header-footprint *= "SEMHeader"]'};const trackingParams={ocid:null,icid:null,fromcode:null};function getSiteType(headerEl){const url=headerEl.querySelector("#uhfCatLogo")?.href||document.querySelector('link[rel="canonical"]')?.href||window.location.href;const path=new URL(url).pathname;if(url.indexOf("azure.microsoft.com")!==-1){return"azure"}else if(path.split("/").length<2){return"default"}const siteType=path.split("/")[2]?.toLowerCase()||"default";return siteType}function getBGColorStyle(headerEl){const siteType=getSiteType(headerEl);const theme=bgColors[siteType]?.type||bgColors["default"].type;const bgColor=bgColors[siteType]?.bgColor||bgColors["default"].bgColor;const searchBorderColor=bgColors[siteType]?.searchBorderColor||"";const bannerTheme=bgColors[siteType]?.bannerTheme||bgColors["default"].bannerTheme;return{bgColor:bgColor,theme:theme,bannerTheme:bannerTheme,searchBorderColor:searchBorderColor}}function populateTrackingParams(){const urlParams=new URLSearchParams(window.location.search);const paramKeys=Array.from(urlParams.keys());for(const param in trackingParams){const originalParam=paramKeys.find(key=>key.toLowerCase()===param.toLowerCase());if(originalParam){trackingParams[param]=urlParams.get(originalParam)}}}function customizeUHF(UHF_LINK_THEME_CONFIG){const HEADER_NAMES=Object.keys(UHF_LINK_THEME_CONFIG);var styleTxt="";for(var headerName of HEADER_NAMES){const HEADER=UHF_LINK_THEME_CONFIG[headerName];const HEADER_SELECTOR='header[data-header-footprint^="'+headerName+'" i]';const LINK_IDS=Object.keys(HEADER);if(!document.querySelector(HEADER_SELECTOR)){continue}for(var link of LINK_IDS){if(link==="options"){styleTxt+=processOptions(HEADER_SELECTOR,HEADER[link]);continue}const LINK=HEADER[link];const LINK_ID=link;const LINK_ID_RIGHT=LINK_ID+"_right";const LINK_SELECTOR=HEADER_SELECTOR+" #"+LINK_ID;const LINK_SELECTOR_RIGHT=HEADER_SELECTOR+" #"+LINK_ID_RIGHT;let LINK_EL=document.querySelector(LINK_SELECTOR);styleTxt+=getDesktopStyles(LINK.moveRight?LINK_SELECTOR_RIGHT:LINK_SELECTOR,LINK.style);if(LINK.moveRight){styleTxt+=getHideDesktopStyle(LINK_SELECTOR)}let count=0;let delay=100;let intervalMax=100;let interval=setInterval(function(){LINK_EL=document.querySelector(LINK_SELECTOR);if(LINK_EL){clearInterval(interval);const LINK_EL_PARENT=LINK_EL?LINK_EL.parentNode:null;if(isPageExcluded(LINK.exclude)){addClasses(LINK_EL_PARENT,CLASSES.HIDDEN)}else{if(LINK.href){const NEW_HREF=getHref(LINK.href);if(NEW_HREF!==null){LINK_EL.setAttribute("href",NEW_HREF)}}addClasses(LINK_EL,LINK.classes?LINK.classes:"");if(LINK.newTab){LINK_EL.setAttribute("target","_blank")}addClasses(LINK_EL_PARENT,LINK.parentClasses?LINK.parentClasses:"");let desktopRightContainer=document.querySelector(`${HEADER_SELECTOR} ${SELECTOR.DESKTOP_RIGHT_CONTAINER}`);if(LINK.moveRight&&desktopRightContainer){let liEl=document.createElement("li");const parentID=LINK_EL_PARENT.getAttribute("id");if(parentID){liEl.setAttribute("id",parentID);LINK_EL_PARENT.removeAttribute("id");if(parentID===ID.UHF_NAV_CTA){addToStyles(getDesktopStyles(`${HEADER_SELECTOR} #${LINK_ID_RIGHT}`,{"margin-top":"11px!important"}))}}addClasses(liEl,CLASSES.UHF_MENU_ITEM);addClasses(liEl,LINK.parentClasses?LINK.parentClasses:"");liEl.setAttribute("data-left-uhf",LINK_ID);let cloneNode=LINK_EL.cloneNode(true);cloneNode.id=LINK_ID_RIGHT;liEl.appendChild(cloneNode);desktopRightContainer.insertAdjacentElement(LINK.moveRight===true?"afterbegin":"beforeend",liEl);addClasses(LINK_EL_PARENT,LINK.dropdownHidden?CLASSES.HIDDEN:CLASSES.DESKTOP_HIDDEN);addClasses(liEl,CLASSES.DROPDOWN_HIDDEN)}if(!LINK.moveRight&&LINK.dropdownHidden){addClasses(LINK_EL_PARENT,CLASSES.DROPDOWN_HIDDEN)}}}else if(count>=intervalMax){clearInterval(interval)}count++},delay)}}addToStyles(styleTxt)}function addToStyles(cssTxt){let style=document.getElementById(ID.UHF_LINK_THEME_STYLES);if(!style){style=document.createElement("style");style.setAttribute("id",ID.UHF_LINK_THEME_STYLES);document.head.appendChild(style)}style.appendChild(document.createTextNode(cssTxt))}function processOptions(HEADER_SELECTOR,options){var styleTxt="";for(var option of Object.keys(options)){const value=options[option];switch(option){case"removeAllMicrosoft":if(value){const allMSLi=document.querySelector(`${HEADER_SELECTOR} ${SELECTOR.ALL_MICROSOFT}`)?.parentElement?.parentElement;addClasses(allMSLi,CLASSES.DESKTOP_HIDDEN);const allMSMobile=document.querySelector(`${HEADER_SELECTOR} ${SELECTOR.All_MICROSOFT_MOBILE}`);addClasses(allMSMobile,CLASSES.HIDDEN)}break;case"disableMobileDropdown":if(value){styleTxt+=replaceMobileNavButton(HEADER_SELECTOR)}break;case"moveActionMenuRight":if(value){const menu=document.querySelector(`${HEADER_SELECTOR} .${CLASSES.ACTION_MENU}`);const meControl=document.querySelector(`${HEADER_SELECTOR} #${ID.ME_CONTROL}`);if(menu&&meControl){meControl.insertAdjacentElement("beforebegin",menu)}else if(menu){menu.parentElement.insertAdjacentElement("beforeend",menu)}}break;default:break}}return styleTxt}function replaceMobileNavButton(headerSelector){const mobileNavSelector=`${headerSelector} ${SELECTOR.MOBILE_NAV_BUTTON}`;const mobileNavButton=document.querySelector(mobileNavSelector);if(mobileNavButton){const mobileNavText=document.createElement("div");mobileNavText.className=mobileNavButton.className;mobileNavText.innerText=mobileNavButton.innerText;mobileNavText.style="display: flex !important;";mobileNavButton.parentElement.replaceChild(mobileNavText,mobileNavButton);return`${mobileNavSelector} {align-items: center;}${mobileNavSelector}::after,${mobileNavSelector} br {display: none;}${headerSelector} #uhf-g-nav {visibility: hidden;}`}return""}function addClasses(el,classes){if(!el||!classes)return;if(typeof classes==="string"){classes=classes.split(" ")}el.classList.add(...classes)}function removeClasses(el,classes){if(!el||!classes)return;if(typeof classes==="string"){classes=classes.split(" ")}el.classList.remove(...classes)}function isPageExcluded(pages){const PAGE_PATH=window.location.pathname;if(typeof pages==="string"){return PAGE_PATH.indexOf(pages)>=0}else if(Array.isArray(pages)){for(const page of pages){if(PAGE_PATH.indexOf(page)>=0){return true}}}else if(typeof pages==="boolean"){return pages}return false}function getHref(config){const PAGE_URL=window.location.href;const SEGMENTS=PAGE_URL.split("/");const START_OF_PATH=PAGE_URL.indexOf(SEGMENTS[3])+SEGMENTS[3].length;const PAGE_URL_START=PAGE_URL.substring(0,START_OF_PATH);if(typeof config==="string"){return getHrefSetting(config,PAGE_URL_START)}else if(typeof config==="object"){const URLS=Object.keys(config);for(var matchUrl of URLS){if(PAGE_URL.indexOf(matchUrl)!==-1){const NEW_HREF=config[matchUrl];return getHrefSetting(NEW_HREF,PAGE_URL_START)}}}return null}function getHrefSetting(url,PAGE_URL_START){if(url===null){return null}else if(url===""){return""}else if(url.indexOf("https://")===-1){return PAGE_URL_START+url}else{return url}}function getHideDesktopStyle(selector){return getDesktopStyles(selector,{display:"none"})}function getDesktopStyles(selector,styleObj){if(!selector||!styleObj)return"";return"@media screen and (min-width: 860px) {\n"+selector+" {\n"+Object.keys(styleObj).reduce((str,field)=>str+="\t"+field+": "+styleObj[field]+";\n","")+"}}\n\n"}function elementPromise(element,querySelector,rejectTime=0){return new Promise((resolve,reject)=>{if(!element||!querySelector){return reject("No element or no query selector provided")}if(document.querySelector(querySelector)){return resolve(element.querySelector(querySelector))}let wasFound=false;const observerConfig={attributes:true,childList:true,characterData:true,subtree:true};const observer=new MutationObserver(mutations=>{if(querySelector&&document.querySelector(querySelector)){wasFound=true;observer.disconnect();resolve(element.querySelector(querySelector))}});if(rejectTime>0){window.setTimeout(()=>{if(!wasFound){observer.disconnect();reject(querySelector)}},rejectTime*1e3)}observer.observe(element,observerConfig)})}function isV2Convention(headerEl){if(!headerEl){return false}return headerEl.querySelector(SELECTOR.V2_LINK)||headerEl.querySelector(SELECTOR.CATEGORY_ALL)||headerEl.querySelector(SELECTOR.NEW_TAB_LINK)||document.querySelector(SELECTOR.V2_SEM_HEADER)}function v2CustomizeUHF(){const headerEls=document.querySelectorAll(SELECTOR.UHF_HEADER);const numHeaders=headerEls.length;headerEls.forEach((headerEl,index)=>{const HEADER_FOOTPRINT=headerEl.getAttribute("data-header-footprint");const HEADER_NAME=HEADER_FOOTPRINT.split(",")[0];const HEADER_SELECTOR=`header[data-header-footprint="${HEADER_FOOTPRINT}"]`;const dataName="ocuhfcustomized";if(headerEl.dataset[dataName]==="true"){return}headerEl.dataset[dataName]="true";const isL0Header=HEADER_NAME.toLowerCase().includes("l0");if(isL0Header){headerEl.classList.add(CLASSES.L0UH)}if(numHeaders>1&&!isL0Header){if(!headerEl.uhfOverflowMenu){headerEl.uhfOverflowMenu=new UhfOverflowMenu(headerEl,{initDelay:500});headerEl.classList.remove("no-js")}const{bgColor,theme,bannerTheme,searchBorderColor}=getBGColorStyle(headerEl);addToStyles(`.${CLASSES.CUSTOM_BG}, .${CLASSES.CUSTOM_BG} .cat-logo-button-cont { background-color: ${bgColor} !important; }`);headerEl.querySelector(SELECTOR.HEADER_BG)?.classList.add(CLASSES.CUSTOM_BG);headerEl.querySelector(SELECTOR.HEADER_BG)?.classList.add(CLASSES.CUSTOM_BG+"-"+theme);const searchBorderColorStyle=searchBorderColor?`${HEADER_SELECTOR} {--so-uhf-search-border-color: ${searchBorderColor};}`:"";if(numHeaders>1){addToStyles(` ${searchBorderColorStyle} @media only screen and (max-width: 859px) { ${HEADER_SELECTOR}.c-uhfh.c-sgl-stck .global-head-cont, ${HEADER_SELECTOR}.c-uhfh.c-sgl-stck>div:first-child { height: 0; } ${HEADER_SELECTOR}.c-uhfh.c-sgl-stck .c-uhfh-gcontainer-st { padding: 0; } ${HEADER_SELECTOR}.c-uhfh.c-sgl-stck .cat-logo-button-cont { top: 0; } }`)}elementPromise(document,SELECTOR.ANNOUNCEMENT_BANNER).then(banner=>{if(banner){banner.classList.remove(CLASSES.THEME_DAY);banner.classList.remove(CLASSES.THEME_NIGHT);if(bannerTheme==="dark"){banner.classList.add(CLASSES.THEME_NIGHT)}else{banner.classList.add(CLASSES.THEME_DAY)}}});const searchBtn=headerEl.querySelector("#search");const cancelSearchBtn=headerEl.querySelector("#cancel-search");const closeSearchBtn=headerEl.querySelector(".c-close-search");let currentWidth=window.innerWidth;function searchFocusOutHandler(e){const head=headerEl.querySelector(".js-global-head");const form=headerEl.querySelector(".c-search");if(e.type==="click"&&(!form.contains(document.activeElement)||!form.classList.contains("js-focused"))&&head.classList.contains("f-search-opened")){closeSearch(e);return}if(e.type==="keydown"&&e.keyCode===27){closeSearch(e);return}}function resizeHandler(e){if(window.innerWidth<860&¤tWidth>=860||window.innerWidth>=860&¤tWidth<860){closeSearch(e);window.removeEventListener("resize",resizeHandler)}}const openSearch=e=>{const head=headerEl.querySelector(".js-global-head");head.classList.add("f-search-opened");e.stopPropagation();currentWidth=window.innerWidth;window.addEventListener("resize",resizeHandler);document.body.addEventListener("click",searchFocusOutHandler);document.body.addEventListener("keydown",searchFocusOutHandler)};const closeSearch=e=>{const heads=document.querySelectorAll(".js-global-head");heads.forEach(head=>head.classList.remove("f-search-opened"));const form=headerEl.querySelector(".c-search.js-focused");form?.classList.remove("js-focused");window.removeEventListener("resize",resizeHandler);document.body.removeEventListener("click",searchFocusOutHandler);document.body.removeEventListener("keydown",searchFocusOutHandler)};searchBtn?.addEventListener("click",openSearch);cancelSearchBtn?.addEventListener("click",closeSearch);cancelSearchBtn?.addEventListener("keydown",e=>{if(e.keyCode===27||e.keyCode===13){closeSearch(e)}});closeSearchBtn?.addEventListener("click",closeSearch);const category=headerEl.querySelector("#uhfCatLogoButton");const menu=headerEl.querySelector("#uhf-g-nav");if(category&&menu){category.addEventListener("click",e=>{const isExpanded=category.getAttribute("aria-expanded")==="true";category.setAttribute("aria-expanded",isExpanded?"false":"true");menu.setAttribute("style",isExpanded?"overflow-x: visible;":"overflow-x: visible; display: block; top: 34px")});document.addEventListener("click",e=>{if(!category.contains(e.target)&&!menu.contains(e.target)&&category.getAttribute("aria-expanded")==="true"){category.setAttribute("aria-expanded","false");menu.setAttribute("style","overflow-x: visible;")}})}let waitAttempts=0;const maxWaitAttempts=50;const waitForSiteConsent=setInterval(()=>{waitAttempts++;if(window.siteConsent){clearInterval(waitForSiteConsent);const footerLink=document.querySelector("#c-uhff-footer_managecookies:not(.x-hidden)");if(footerLink){const clone=footerLink.cloneNode(true);footerLink.replaceWith(clone);clone.addEventListener("click",e=>{window.siteConsent.manageConsent()})}}else if(waitAttempts>=maxWaitAttempts){clearInterval(waitForSiteConsent)}},200)}if(!isV2Convention(headerEl)&&UHF_LINK_THEME_CONFIG[HEADER_NAME]){customizeUHF(UHF_LINK_THEME_CONFIG);return}const links=headerEl.querySelectorAll(SELECTOR.V2_LINK);const isSEMHeader=document.querySelector(SELECTOR.V2_SEM_HEADER);const headerOptions={removeAllMicrosoft:true,moveActionMenuRight:true,disableMobileDropdown:isSEMHeader&&links.length===0?true:false};moveCategoryAllLink(headerEl);linkNewTab(headerEl);headerEl.querySelector(SELECTOR.MOBILE_LOGO_IMAGE_NO_LINK)?.removeAttribute("tabindex");let styleTxt="";styleTxt+=processOptions(HEADER_SELECTOR,headerOptions);for(const link of links){const LINK_ID=link.getAttribute("id");const bhvrRegEx=/bhvr(\d+)/i;const LINK={moveRight:LINK_ID.indexOf("button")!==-1?"end":true,newTab:LINK_ID.indexOf("newtab")!==-1,bhvr:bhvrRegEx.test(LINK_ID)?bhvrRegEx.exec(LINK_ID)[1]:null};addTrackingParams(link);const LINK_ID_RIGHT=LINK_ID+"_right";const LINK_SELECTOR=HEADER_SELECTOR+" #"+LINK_ID;const LINK_SELECTOR_RIGHT=HEADER_SELECTOR+" #"+LINK_ID_RIGHT;let LINK_EL=link;styleTxt+=getDesktopStyles(LINK.moveRight?LINK_SELECTOR_RIGHT:LINK_SELECTOR,LINK.style);if(LINK.moveRight){styleTxt+=getHideDesktopStyle(LINK_SELECTOR)}const LINK_EL_PARENT=LINK_EL?LINK_EL.parentNode:null;if(LINK.newTab){LINK_EL.setAttribute("target","_blank")}if(LINK.bhvr){let datamObj={};try{datamObj=JSON.parse(LINK_EL.dataset.m)}catch(e){}datamObj.bhvr=LINK.bhvr;LINK_EL.dataset.m=JSON.stringify(datamObj)}addClasses(LINK_EL_PARENT,LINK.parentClasses?LINK.parentClasses:"");let desktopRightContainer=headerEl.querySelector(SELECTOR.DESKTOP_RIGHT_CONTAINER);if(LINK.moveRight&&desktopRightContainer){let liEl=document.createElement("li");const parentID=LINK_EL_PARENT.getAttribute("id");if(parentID){liEl.setAttribute("id",parentID);LINK_EL_PARENT.removeAttribute("id");if(parentID===ID.UHF_NAV_CTA){addToStyles(getDesktopStyles(`${HEADER_SELECTOR} #${LINK_ID_RIGHT}`,{"margin-top":"11px!important"}))}}addClasses(liEl,CLASSES.UHF_MENU_ITEM);addClasses(liEl,LINK.parentClasses?LINK.parentClasses:"");liEl.setAttribute("data-left-uhf",LINK_ID);let cloneNode=LINK_EL.cloneNode(true);cloneNode.id=LINK_ID_RIGHT;liEl.appendChild(cloneNode);desktopRightContainer.insertAdjacentElement("beforeend",liEl);addClasses(cloneNode,"c-uhf-nav-link");removeClasses(cloneNode,"js-subm-uhf-nav-link");if(LINK_ID.includes("_themed")){addClasses(cloneNode,"btn");const themeClasses=getButtonThemeValues(LINK_ID);addClasses(cloneNode,themeClasses)}addClasses(LINK_EL_PARENT,LINK.dropdownHidden?CLASSES.HIDDEN:CLASSES.DESKTOP_HIDDEN);addClasses(liEl,CLASSES.DROPDOWN_HIDDEN)}if(!LINK.moveRight&&LINK.dropdownHidden){addClasses(LINK_EL_PARENT,CLASSES.DROPDOWN_HIDDEN)}}addToStyles(styleTxt)})}function getButtonThemeValues(id){const themeClasses=[];let themes=[];const themeKey="_themed-";const themeKeyLength=themeKey.length;const themedIndex=id.indexOf(themeKey);if(themedIndex===-1){themeClasses.push("btn--primary");themes=["primary","primary"]}else{const endOfTheme=id.indexOf("_",themedIndex+themeKeyLength)!==-1?id.indexOf("_",themedIndex+themeKeyLength):id.length;const theme=id.substring(themedIndex+themeKeyLength,endOfTheme);themes=theme.split(":");themeClasses.push(`btn--${themes[0]}`)}supportOCThemeColorValues(themes[1],themes[0]);return themeClasses}function supportOCThemeColorValues(oneCloudTheme,reimagineTheme){const a=document.createElement("a");a.style.display="none";a.classList.add("btn");document.body.appendChild(a);if(reimagineTheme){a.classList.add(`btn--${reimagineTheme}`);const reimagineStyles=window.getComputedStyle(a);if(reimagineStyles.getPropertyValue("--button-bg-color")){document.body.removeChild(a);return}a.classList.remove(`btn--${reimagineTheme}`)}if(oneCloudTheme){a.classList.add(`btn-${oneCloudTheme}`)}const styles=window.getComputedStyle(a);const color=styles.getPropertyValue("color");const backgroundColor=styles.getPropertyValue("background-color");const borderColor=styles.getPropertyValue("border-color");const hoverColor=color;const hoverBackgroundColor=backgroundColor;document.body.removeChild(a);addToStyles(` header[data-header-footprint] nav a.btn.btn--${reimagineTheme} {--button-color: ${color}; --button-bg-color: ${backgroundColor}; --button-border-color: ${borderColor};} header[data-header-footprint] nav a.btn.btn--${reimagineTheme}:hover {--button-hover-color: ${hoverColor}; --button-hover-bg-color: ${hoverBackgroundColor};}`)}function moveCategoryAllLink(headerEl){headerEl.querySelectorAll(SELECTOR.CATEGORY_ALL).forEach(categoryAllLink=>{const categoryAllListItem=categoryAllLink.parentElement;if(!categoryAllListItem)return;const category=categoryAllListItem.parentElement?.parentElement;if(!category)return;category.insertAdjacentElement("beforebegin",categoryAllListItem);categoryAllListItem.style.flexBasis="100%";categoryAllListItem.style.paddingBlock="10px 0"})}function linkNewTab(headerEl){headerEl.querySelectorAll(SELECTOR.NEW_TAB_LINK).forEach(newTabLink=>{newTabLink.setAttribute("target","_blank")})}function addTrackingParams(el){if(el){const href=el.getAttribute("href");if(href&&URL.canParse(href)&&href.indexOf("mailto:")===-1&&href.indexOf("tel:")===-1){const url=new URL(href);for(const param in trackingParams){if(trackingParams[param]){url.searchParams.append(param,trackingParams[param])}}el.setAttribute("href",url.href)}}}addToStyles(V2_BUTTON_STYLES);addToStyles("@media screen and (max-width: 859.9px) {.ribbon-top-left {display:none}}");populateTrackingParams();elementPromise(document,`${SELECTOR.UHF_HEADER_L0} ${SELECTOR.UHF_ACTIONS}`,1e3).then(header=>{v2CustomizeUHF()}).catch(querySelector=>{console.log("L0 header not found after timeout: "+querySelector)});elementPromise(document,`${SELECTOR.UHF_HEADER_NOT_L0} ${SELECTOR.UHF_ACTIONS}`,1e3).then(header=>{v2CustomizeUHF()}).catch(querySelector=>{console.log("Site header not found after timeout: "+querySelector)})})()}catch(err){console.log(err)}})(); /*!183421*/window.location.pathname.endsWith("/microsoft-365/outlook/log-in")&&void 0!==window.msauth&&("RPS"===window.msauth.AuthenticationType||"OpenIdConnect"===window.msauth.AuthenticationType)&&(window.location="https://outlook.live.com/owa/?nlp=1"); /*! 281206 Fix en- markets chat config */ (()=>{const chatDefaultLocaleChat="chat-default-locale-chat";const chatMarketConfigMetaSelector=`meta[name='${chatDefaultLocaleChat}']`;function getllcc(){const market=new window.URLSearchParams(window.location.search).get("market");const lang=getLang();let newllcc;if(lang.length===2&&typeof market==="string"&&market.length!==0){newllcc=lang.split("-")[0]+"-"+market}return newllcc}function hasMarketQSP(accepted){accepted=accepted||[];var market=new window.URLSearchParams(window.location.search).get("market");if(typeof market==="string"){market=market.toLowerCase()}else{return false}return market.length!==0&&accepted.includes(market)}function getLang(){return document.getElementsByTagName("html")[0].getAttribute("lang")}function elementPromise(element,querySelector,rejectTime=0){return new Promise((resolve,reject)=>{if(!element||!querySelector){return reject("No element or no query selector provided")}if(document.querySelector(querySelector)){return resolve(element.querySelector(querySelector))}let wasFound=false;const observerConfig={attributes:true,childList:true,characterData:true,subtree:true};const observer=new MutationObserver(mutations=>{if(querySelector&&document.querySelector(querySelector)){wasFound=true;observer.disconnect();resolve(element.querySelector(querySelector))}});if(rejectTime>0){window.setTimeout(()=>{if(!wasFound){reject(querySelector)}},rejectTime*1e3)}observer.observe(element,observerConfig)})}function updateConfigMeta(configMeta){const defaultConfig=configMeta.getAttribute("value");var configObj;try{configObj=JSON.parse(defaultConfig);let newllcc=getllcc();const oldllcc=configObj.market;configObj.market=newllcc;configMeta.setAttribute("value",JSON.stringify(configObj));if(new window.URLSearchParams(window.location.search).get("debugLpChat")==="true"){console.log(`Updating market attribute of ${chatDefaultLocaleChat} to '${newllcc}'. Was '${oldllcc}'.`)}}catch(e){console.error(e)}}function setChatConfigMarket(){const acceptedSubmarkets={en:["ph","ng","ae"]};const lang=getLang();if(acceptedSubmarkets[lang]&&hasMarketQSP(acceptedSubmarkets[lang])){elementPromise(document,chatMarketConfigMetaSelector,20).then(element=>{updateConfigMeta(element)}).catch(querySelector=>{console.log("Element not found after timeout: "+querySelector)})}}setChatConfigMarket()})(); /*!300259*/(()=>{function t(){return r===e&&null!==d.match(/^\/dynamics-365\/products\/business-central\/partner-trial\/partner\/*/)||r===e&&null!==d.match(/^\/dynamics-365\/products\/sales\/partner-trial\/partner\/*/)||r===n&&null!==d.match(/^\/dynamics-365\/qa-folder\/plt\/business-central\/partner-trial\/partner\/*/)||r===n&&null!==d.match(/^\/dynamics-365\/qa-folder\/plt\/sales\/partner-trial\/partner\/*/)||r===l&&null!==d.match(/^\/dynamics-365\/qa-folder\/plt\/business-central\/partner-trial\/partner\/*/)||r===l&&null!==d.match(/^\/dynamics-365\/qa-folder\/plt\/sales\/partner-trial\/partner\/*/)||r===o&&null!==d.match(/^\/dynamics-365\/qa-folder\/plt\/business-central\/partner-trial\/partner\/*/)||r===o&&null!==d.match(/^\/dynamics-365\/qa-folder\/plt\/sales\/partner-trial\/partner\/*/)||r===s&&null!==d.match(/^\/dynamics-365\/qa-folder\/plt\/business-central\/partner-trial\/partner\/*/)||r===s&&null!==d.match(/^\/dynamics-365\/qa-folder\/plt\/sales\/partner-trial\/partner\/*/)}function a(){t()&&document.body.insertAdjacentHTML("beforeend",'")}const r=window.location.origin,e="https://www.microsoft.com",n="https://wwwppe.microsoft.com",l="https://wwwppe.microsoft.com",s="https://sites-author.adobeprod.microsoft.com",o="https://sites-author.adobeppe.microsoft.com",c=window.location.pathname,i=c.split("/")[1],p="/"+i,d=c.replace(p,""),m="\n .theme-night [data-oc-token-text] a {\n color: var(--theme-foreground-base-strong);\n }\n ";"interactive"===document.readyState||"complete"===document.readyState?a():document.addEventListener("DOMContentLoaded",a)})(); /*!187137 Windows 365 Trial Marketization */ (()=>{const CommonContent={de:"Wenden Sie sich für eine kostenlose Testversion an den Vertrieb",en:"Contact Sales for a free trial",es:"Ponte en contacto con ventas para obtener una prueba gratuita",fr:"Contacter le service commercial pour obtenir un essai gratuit"};const Content={"ar-ww":"الاتصال بقسم المبيعات للحصول على تجربة مجانية","bg-bg":"Свържете се с отдела за продажби за безплатна пробна версия","cs-cz":"Požádat obchodní oddělení o bezplatnou zkušební verzi","da-dk":"Kontakt salgsafdelingen for en gratis prøveversion","de-at":CommonContent["de"],"de-ch":CommonContent["de"],"de-de":CommonContent["de"],"el-gr":"Επικοινωνήστε με το τμήμα πωλήσεων για μια δωρεάν δοκιμή","en-au":CommonContent["en"],"en-ca":CommonContent["en"],"en-gb":CommonContent["en"],"en-ie":CommonContent["en"],"en-in":CommonContent["en"],"en-my":CommonContent["en"],"en-nz":CommonContent["en"],"en-sg":CommonContent["en"],"en-us":CommonContent["en"],"en-ww":CommonContent["en"],"en-za":CommonContent["en"],"es-ar":CommonContent["es"],"es-cl":CommonContent["es"],"es-co":CommonContent["es"],"es-es":CommonContent["es"],"es-mx":CommonContent["es"],"es-ww":CommonContent["es"],"et-ee":"Tasuta prooviversiooni saamiseks võtke müügiosakonnaga ühendust","fi-fi":"Ota yhteyttä myyntiin ja tiedustele ilmaista kokeiluversiota","fr-be":CommonContent["fr"],"fr-ca":CommonContent["fr"],"fr-ch":CommonContent["fr"],"fr-fr":CommonContent["fr"],"fr-ww":CommonContent["fr"],"he-il":"פנה למחלקת המכירות לגבי גירסת הניסיון","hr-hr":"Obratite se odjelu prodaje radi besplatne probne verzije","hu-hu":"Ingyenes próbaverzióért vegye fel a kapcsolatot az értékesítési csapattal","id-id":"Hubungi bagian penjualan untuk coba gratis","it-it":"Contatta il reparto vendite per una versione di prova gratuita","ja-jp":"無料試用版について購入前相談窓口に連絡する","ko-kr":"무료 평가판은 영업 팀에 문의","lt-lt":"Susisiekite su pardavimo tarnyba dėl nemokamos bandomosios versijos","lv-lv":"Sazināties ar tirdzniecības pārstāvi, lai iegūtu bezmaksas izmēģinājumversiju","nb-no":"Kontakt salgsavdelingen for å få en gratis prøveversjon","nl-be":"Neem contact op met de verkoopafdeling voor een gratis proefversie","nl-nl":"Neem contact op met de verkoopafdeling voor een gratis proefversie","pl-pl":"Skontaktuj się z działem sprzedaży, aby skorzystać z bezpłatnej wersji próbnej","pt-br":"Contate o departamento de vendas para uma avaliação gratuita","pt-pt":"Contacte a equipa de vendas para obter uma avaliação gratuita","ro-ro":"Contactați echipa de vânzări pentru o versiune de încercare gratuită","ru-ru":"Для получения бесплатной пробной версии свяжитесь с отделом продаж","sk-sk":"Požiadajte oddelenie predaja o bezplatnú skúšobnú verziu","sl-si":"Obrnite se na prodajni oddelek za brezplačno preskusno različico","sr-latn-rs":"Obratite se sektoru prodaje za besplatnu probnu verziju","sv-se":"Kontakta säljteamet för en kostnadsfri utvärderingsversion","th-th":"ติดต่อฝ่ายขายเพื่อรับรุ่นทดลองใช้ฟรี","tr-tr":"Ücretsiz deneme için satış birimine başvurun","uk-ua":"Зв’язатися з відділом збуту, щоб отримати безкоштовну ознайомлювальну версію","vi-vn":"Liên hệ với bộ phận bán hàng để nhận bản dùng thử miễn phí","zh-cn":"联系销售人员获取免费试用版","zh-hk":"連絡銷售人員以取得免費試用版","zh-tw":"連絡銷售人員以取得免費試用版"};const contactSalesPartnerContent={"vi-vn":"Liên hệ với đối tác bán hàng"};const wave3Locales=["bg-bg","cs-cz","da-dk","de-at","el-gr","en-ie","en-za","et-ee","fi-fi","fr-be","fr-fr","he-il","hr-hr","hu-hu","it-it","lt-lt","lv-lv","nb-no","nl-be","pl-pl","pt-pt","ro-ro","sk-sk","sl-si","sr-latn-rs","tr-tr","uk-ua"];const disabledMarkets=["ar","ar-sa","ar-ww","en","en-af","en-bz","en-hk","en-ww","es","es-ww","fr","fr-ne","fr-ww","ga-ie","hi-in","ms-my","prs-af","ps-af","ru-ru","sv-se","zh-cn"];const enterpriseDisabledMarkets=["vi-vn"];const getCountryCodeFromLocale=locale=>{const replaceCountry=locale.split("-");if(replaceCountry.length>1){return replaceCountry[replaceCountry.length-1].toUpperCase()}return null};const documentLang=document.documentElement.lang.toLowerCase();const langLocs={"sr-rs":["sr-rs","sr-latn-rs","sr-cyrl-rs"],default:[documentLang]};const possibleLangLocs=langLocs[documentLang]||langLocs.default;const llcc=possibleLangLocs.find(loc=>window.location.pathname.indexOf(loc)!==-1);const isBusiness=window.location.pathname.indexOf("business")>0;const isDisabledMarket=disabledMarkets.includes(llcc)||!isBusiness&&enterpriseDisabledMarkets.includes(llcc);const isWave3=wave3Locales.includes(llcc);const saleLinkQSP=getCountryCodeFromLocale(llcc)?"&culture="+llcc+"&country="+getCountryCodeFromLocale(llcc):"";const contactSalesFwLink="https://go.microsoft.com/fwlink/?linkid=2182892";const salesLink=contactSalesFwLink+saleLinkQSP;const contactSalesBhvr="124";const TryCTASelectors={Enterprise:[".oc-sku-card-w365 .sku-footer > div > div > div:nth-child(2) a.cta",".sku-list-table > .oc-sku-list-table-component > table > tbody > tr:nth-child(4) > td:nth-child(4) > a",".sku-list-table table > tbody > tr:nth-child(4) > td:nth-child(4) > div:nth-child(3) a[data-bi-pid='CFQ7TTC0HHS9'][data-bi-sku='0015']",".oc-sku-configurator div.ocsc-desktop[data-product-id='CFQ7TTC0HHS9'][data-sku-id='0015'] div.d-block div.link-group > a.cta",".oc-sku-configurator div.ocsc-mobile[data-product-id='CFQ7TTC0HHS9'][data-sku-id='0015'] > div > div.col-5.w-sm-col-4 > div.d-block > div.link-group > a.cta"],Business:[".sku-list-table table > tbody > tr:nth-child(4) > td.px-3.py-3 > div:nth-child(3) > a",".sku-list-table table > tbody > tr:nth-child(4) > td:nth-child(4) > div:nth-child(3) a[data-bi-pid='CFQ7TTC0J203'][data-bi-sku='000P']",".sku-list-table table > tbody > tr:nth-child(4) > td:nth-child(4) > div:nth-child(3) a[data-bi-pid='CFQ7TTC0HX99'][data-bi-sku='000S']",".oc-sku-configurator div.ocsc-desktop[data-product-id='CFQ7TTC0HX99'][data-sku-id='000S'] div.d-block div.link-group > a.cta",".oc-sku-configurator div.ocsc-mobile[data-product-id='CFQ7TTC0HX99'][data-sku-id='000S'] > div > div.col-5.w-sm-col-4 > div.d-block > div.link-group > a.cta",".oc-sku-configurator div.ocsc-desktop[data-product-id='CFQ7TTC0J203'][data-sku-id='000P'] div.d-block div.link-group > a.cta",".oc-sku-configurator div.ocsc-mobile[data-product-id='CFQ7TTC0J203'][data-sku-id='000P'] > div > div.col-5.w-sm-col-4 > div.d-block > div.link-group > a.cta"]};const TrialLinkDisclaimerSelectors={Enterprise:[".oc-sku-card-w365 .sku-footer > div > div > div:not(.link-group)",".sku-list-table table > tbody > tr:nth-child(4) > td.px-3.py-3 > div:nth-child(4)",".oc-sku-configurator div.ocsc-desktop[data-product-id='CFQ7TTC0HHS9'][data-sku-id='0015'] div.d-block div.link-group > div",".oc-sku-configurator div.ocsc-mobile[data-product-id='CFQ7TTC0HHS9'][data-sku-id='0015'] div.d-block div.link-group > div"],Business:[".oc-sku-configurator div.ocsc-desktop[data-product-id='CFQ7TTC0HX99'][data-sku-id='000S'] div.d-block div.link-group > div",".oc-sku-configurator div.ocsc-mobile[data-product-id='CFQ7TTC0HX99'][data-sku-id='000S'] div.d-block div.link-group > div",".oc-sku-configurator div.ocsc-desktop[data-product-id='CFQ7TTC0J203'][data-sku-id='000P'] div.d-block div.link-group > div",".oc-sku-configurator div.ocsc-mobile[data-product-id='CFQ7TTC0J203'][data-sku-id='000P'] div.d-block div.link-group > div"]};const PurchaseInfoSelectors={Business:[".oc-sku-card-w365 .sku-body-secondary > div",".oc-sku-configurator div.ocsc-desktop[data-product-id='CFQ7TTC0HX99'][data-sku-id='000S'] div.d-block > div.mt-3.mb-3",".oc-sku-configurator div.ocsc-mobile[data-product-id='CFQ7TTC0HX99'][data-sku-id='000S'] > div > div > div.d-md-none > div.d-inline-block.align-middle",".oc-sku-configurator div.ocsc-mobile[data-product-id='CFQ7TTC0HX99'][data-sku-id='000S'] > div > div > div.d-none.d-md-block > div.d-inline-block.align-middle",".oc-sku-configurator div.ocsc-desktop[data-product-id='CFQ7TTC0J203'][data-sku-id='000P'] div.d-block > div.mt-3.mb-3",".oc-sku-configurator div.ocsc-mobile[data-product-id='CFQ7TTC0J203'][data-sku-id='000P'] > div > div > div.d-md-none > div.d-inline-block.align-middle",".oc-sku-configurator div.ocsc-mobile[data-product-id='CFQ7TTC0J203'][data-sku-id='000P'] > div > div > div.d-none.d-md-block > div.d-inline-block.align-middle"]};const ContactSalesLinkSelector=`a[href^='${contactSalesFwLink}']`;const TagName={SPAN:"SPAN"};const pageScope={"www.microsoft.com":{paths:["/windows-365/enterprise/all-pricing","/windows-365/enterprise/compare-plans-pricing","/windows-365/enterprise/configure","/windows-365/business/all-pricing","/windows-365/business/compare-plans-pricing","/windows-365/business/configure"]},previews:true};let contactSalesIdIndex=1;const getNewAnchor=locContent=>{const id=getNewAnchorId();return`${locContent}`};const getNewAnchorId=()=>{return`contact-sales-for-a-free-trial-${contactSalesIdIndex++}`};const setTryLinksToContactSales=locContent=>{document.querySelectorAll([...TryCTASelectors.Business,...TryCTASelectors.Enterprise].join(",")).forEach(anchorElem=>{if(anchorElem.hasAttribute("data-target")){anchorElem.insertAdjacentHTML("beforebegin",getNewAnchor(locContent));anchorElem.remove()}else{const anchorId=getNewAnchorId();anchorElem.setAttribute("aria-label",locContent);anchorElem.setAttribute("href",salesLink);if(anchorElem.querySelector(TagName.SPAN)){anchorElem.querySelector(TagName.SPAN).innerHTML=locContent}else{anchorElem.innerHTML=locContent}anchorElem.setAttribute("data-bi-id",anchorId);anchorElem.setAttribute("data-bi-cn",anchorId);anchorElem.setAttribute("data-bi-bhvr",contactSalesBhvr)}})};const getDisabledStyles=()=>{let disableCss="";[...TryCTASelectors.Business,...TryCTASelectors.Enterprise,...TrialLinkDisclaimerSelectors.Business,...TrialLinkDisclaimerSelectors.Enterprise].forEach(selector=>{disableCss+="body:not(.ow-at-125482) "+selector+","});if(isBusiness){PurchaseInfoSelectors.Business.forEach(selector=>{disableCss+="body:not(.ow-at-125482) "+selector+","})}disableCss=disableCss.slice(0,-1);disableCss+=" { display: none !important }";return disableCss};const updateTryCTAs=()=>{const locContent=Content[llcc];if(!locContent||isDisabledMarket)return;if(!isBusiness){setTryLinksToContactSales(locContent)}else if(isBusiness&&isWave3){setTryLinksToContactSales(locContent)}};const updateContactSalesText=()=>{const content=contactSalesPartnerContent[llcc];if(!content)return;document.querySelectorAll(ContactSalesLinkSelector).forEach(anchorElem=>{anchorElem.innerHTML=content})};const addDisabledMarketStyles=()=>{if(isDisabledMarket){const style=document.createElement("style");style.setAttribute("id","SO 187137");style.innerHTML=getDisabledStyles();document.head.appendChild(style)}};const marketizeTrials=()=>{updateContactSalesText();updateTryCTAs()};if(window.SOUtil.pageIsInScope(pageScope)){addDisabledMarketStyles();window.SOUtil.runOnPageLoad(marketizeTrials)}})(); /*!300259*/(()=>{function o(){return e===n&&null!==a.match(/^\/microsoft-365\/business\/copilot-for-microsoft-365\/*/)||e===c&&null!==a.match(/^\/content\/microsoft\/bade\/en-us\/microsoft-365\/business\/copilot-for-microsoft-365\/*/)||e===c&&null!==a.match(/^\/microsoft\/bade\/en-us\/microsoft-365\/business\/copilot-for-microsoft-365\/*/)}function t(){o()&&document.body.insertAdjacentHTML("beforeend",'")}const e=window.location.origin,n="https://www.microsoft.com",c="https://sites-author.adobeprod.microsoft.com",i=window.location.pathname,s=i.split("/")[1],r="/"+s,a=i.replace(r,""),d="\n .theme-night [data-oc-token-text] a {\n color: var(--theme-foreground-base-strong);\n }\n ";"interactive"===document.readyState||"complete"===document.readyState?t():document.addEventListener("DOMContentLoaded",t)})(); /*!337791*/(()=>{const o=["sites-author.adobeppe.microsoft.com","sites-author.adobeprod.microsoft.com"];if(o.includes(window.location.hostname)){const o=new URLSearchParams(window.location.search),t=o.get("octoolkit");if(t){let o=document.createElement("script");o.setAttribute("src","http://approjects.co.za/?big=msonecloudapi/assets/toolkit-loader.js"),parent.document.head.appendChild(o)}}})(); /*!355557 UMPs are playing when they go off screen. Stop it.*/ (()=>{const pageScope={"www.microsoft.com":{paths:["/qa-folder/iss_qa/ai-get-ready3","/microsoft-365/business/win-with-copilot"],markets:["en-us"]},previews:true};const observeAndPauseModalUMPs=()=>{let props={selector:".modal universal-media-player video",callback:addIntersectionObserver,multiple:true};window.SOUtil.elementPromise(props).then(()=>{props.callback(props)})};const addIntersectionObserver=props=>{let elements=window.SOUtil.getElements(props);elements.forEach(elem=>{let umpObserver=new IntersectionObserver((entries,observer)=>{entries.forEach(entry=>{if(!entry.isIntersecting){entry.target.pause()}})});umpObserver.observe(elem)})};if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(observeAndPauseModalUMPs)}})(); /*! 375695 show hidden AI chat for launch for power platform */ /*! ME:13844192 show hidden AI chat for launch for specifc set of M365 pages */ (()=>{const pageScopeSubPathsM365AndPP={"www.microsoft.com":{paths:["/power-platform","/microsoft-365"],allSubpaths:true,markets:["en-us"]},previews:true};const getAIChatDrawer=()=>{const AIChatDrawer=window.ocrReimagine?.AIChatDrawer||window.m365?.AIChatDrawer;if(AIChatDrawer&&AIChatDrawer.getInstances().length>0){return AIChatDrawer.getInstances()[0]}return null};const tryShowAIChat=()=>{const drawer=getAIChatDrawer();if(!drawer)return false;document.querySelectorAll(` .ai-chat-banner, [data-component-id="4f06524427acb2861bc6cc0c037e6d89"] `).forEach(el=>el.classList.remove("d-none"));drawer.setIsHidden(false);drawer.showChatButton(true);return true};const showAIChat=()=>{if(tryShowAIChat()){return}let pollAttempts=200;const AIChatPollInterval=window.setInterval(()=>{if(tryShowAIChat()||pollAttempts--<=0){clearInterval(AIChatPollInterval)}},100)};if(window.SOUtil.pageIsInScope(pageScopeSubPathsM365AndPP)){window.SOUtil.runOnPageLoad(showAIChat)}})(); /* !372852 Customers Logo CSS Override */ (document=>{const pageScope={"www.microsoft.com":{paths:["/customers"],allSubpaths:true},previews:true};if(!window.SOUtil.pageIsInScope(pageScope))return;const style=` .filter-search-results { .media__slot { .ocr-icon { max-width: 3.5rem !important; max-height: 3.5rem !important; height: 3.5rem !important; width: 3.5rem !important; .ocr-img { max-width: 3.5rem !important; max-height: 3.5rem !important; height: 3.5rem !important; width: 3.5rem !important; img { max-width: 3.5rem !important; max-height: 3.5rem !important; height: 3.5rem !important; width: 3.5rem !important; border-radius: 8px !important; } } } } } .filter-card-carousel { .media__slot { .ocr-icon { max-width: 3.5rem !important; max-height: 3.5rem !important; height: 3.5rem !important; width: 3.5rem !important; .ocr-img { max-width: 3.5rem !important; max-height: 3.5rem !important; height: 3.5rem !important; width: 3.5rem !important; img { max-width: 3.5rem !important; max-height: 3.5rem !important; height: 3.5rem !important; width: 3.5rem !important; border-radius: 8px !important; } } } } } `;window.SOUtil.addStylesheet(style,"372852")})(document); /*! 619209 AI Powered Assistant and proactive chat default values */ /*! 1095103 Update proactive prompt text for Ask Microsoft rebrand */ (function(){function updateDefaultValues(){const chatDrawer=document.querySelector('[id="ai-chat-drawer"]');const chatButton=document.querySelector(".ai-chat-button");if(!chatDrawer||!chatButton)return;const AI_CHAT_SELECTOR={AI_CHAT_BUTTON_HEADER_TEXT:".ai-chat-button .ai-chat-button__text span",AI_CHAT_BUTTON_ANCHOR:".ai-chat-button a",HEADER_CONTROLS:".ai-chat-drawer__header__control",BLOCK_FEATURE_TITLE:".block-feature__title",AI_CHAT_BUTTON_TEXT:".ai-chat-button__text",AI_DISCLAIMER:".ai-chat-drawer__disclaimer"};const drawerTitleText=chatDrawer.querySelector(AI_CHAT_SELECTOR.BLOCK_FEATURE_TITLE).textContent||"Ask Microsoft";const aiChatButtonHeader=document.querySelector(AI_CHAT_SELECTOR.AI_CHAT_BUTTON_HEADER_TEXT);const aiChatButtonAnchor=document.querySelector(AI_CHAT_SELECTOR.AI_CHAT_BUTTON_ANCHOR);const headerControls=chatDrawer.querySelector(AI_CHAT_SELECTOR.HEADER_CONTROLS);const aiDisclaimer=chatDrawer.querySelector(AI_CHAT_SELECTOR.AI_DISCLAIMER);const textInputPlaceholder=chatDrawer?.dataset?.textInputPlaceholder||"Ask a work question or make a request...";const aiDisclaimerText=chatDrawer?.dataset?.aiDisclaimer||"AI-generated content may be incorrect";const closeButtonAriaLabel=headerControls&&headerControls.getAttribute("aria-label")?headerControls.getAttribute("aria-label"):"Close Dialog";const chatDrawerAriaLabel=chatDrawer.getAttribute("aria-label")||"Chatbot Window";const buttonTitleText=chatButton.querySelector(`${AI_CHAT_SELECTOR.AI_CHAT_BUTTON_TEXT} span`).textContent||"Ask Microsoft";setDefaultValuesInMarkup();updateChatDrawerVariables();setChatAgentImage();function setDefaultValuesInMarkup(){chatDrawer.setAttribute("data-text-input-placeholder",textInputPlaceholder);chatDrawer.setAttribute("data-ai-disclaimer",aiDisclaimerText);chatDrawer.querySelector(AI_CHAT_SELECTOR.BLOCK_FEATURE_TITLE).textContent=drawerTitleText;if(headerControls){headerControls.setAttribute("aria-label",closeButtonAriaLabel)}chatDrawer.setAttribute("aria-label",chatDrawerAriaLabel);if(aiDisclaimer){aiDisclaimer.textContent=aiDisclaimerText}setDefaultValuesAiChatButton()}function setDefaultValuesAiChatButton(){if(!chatButton.classList.contains("theme-day")&&!chatButton.classList.contains("theme-night")){chatButton.classList.add("theme-day")}if(aiChatButtonHeader&&!aiChatButtonHeader.textContent){aiChatButtonHeader.textContent=buttonTitleText}if(aiChatButtonAnchor&&!aiChatButtonAnchor.getAttribute("aria-label")){aiChatButtonAnchor.setAttribute("aria-label","Expand Ask Microsoft chat dialog")}}function updateChatDrawerVariables(retryCount=0){const chatDrawerReimagineInstance=window.ocrReimagine?.AIChatDrawer?.getInstances().find(instance=>instance.el===chatDrawer);const chatDrawerM365Instance=window.m365?.AIChatDrawer?.getInstances().find(instance=>instance.el===chatDrawer);const chatDrawerInstance=chatDrawerReimagineInstance||chatDrawerM365Instance;if(chatDrawerInstance){chatDrawerInstance.textInputPlaceholder=textInputPlaceholder;chatDrawerInstance.aiDisclaimerText=aiDisclaimerText}else if(retryCount<4){setTimeout(()=>updateChatDrawerVariables(retryCount+1),500)}}function setChatAgentImage(){const img=document.querySelector("#ocr-proactive-chat > div.proactive-chat__body > div.media.media--ratio-1-1 > div > picture > img");if(img){img.setAttribute("src","https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/oc_chat_face_global");img.setAttribute("alt","chat agent")}}}window.SOUtil.runOnPageLoad(updateDefaultValues)})(); /*! 650228 Hide new proactive chat popup */ (()=>{const acomPageScope={"azure.microsoft.com":{markets:["en-us"]},previews:true};const restartPopupTimer=false;const popupTimeout=6e4;const getProactiveChatInstance=()=>{const ProactiveChat=window.ocrReimagine?.ProactiveChat||window.m365?.ProactiveChat;if(!ProactiveChat||ProactiveChat.getInstances().length===0){return null}return ProactiveChat.getInstances()[0]};const clearProactiveTimeout=()=>{const proactiveChat=getProactiveChatInstance();if(proactiveChat){clearTimeout(proactiveChat.popupTimeout);if(restartPopupTimer){proactiveChat.popupTimeout=setTimeout(()=>proactiveChat.showHidePopup(true),popupTimeout)}return true}return false};const preventProactivePopup=()=>{if(clearProactiveTimeout()){return}let pollAttempts=200;const proactiveChatPollInterval=window.setInterval(()=>{if(clearProactiveTimeout()||pollAttempts--<=0){clearInterval(proactiveChatPollInterval)}},100)};window.SOUtil.runOnPageLoad(preventProactivePopup)})(); /*! 977702,1027810 AI Chat Drawer - integrate with chat type CTAs, fix component code */ (()=>{const pageScope={"www.microsoft.com":{paths:["/power-platform","/dynamics-365"],allSubpaths:true,markets:["en-us"]},"azure.microsoft.com":{allSubpaths:true,markets:["en-us"]},previews:true};const getAIChatDrawer=()=>{const AIChatDrawer=window.ocrReimagine?.AIChatDrawer||window.m365?.AIChatDrawer;if(!AIChatDrawer||AIChatDrawer.getInstances().length===0){return null}return AIChatDrawer.getInstances()[0]};const textToSend="Chat with sales";const chatCTASelector="[data-oc-ai-chat]";const tryUpdateChatCTAs=()=>{const drawer=getAIChatDrawer();if(!drawer||drawer.getIsHidden()){return false}document.querySelectorAll(chatCTASelector).forEach(e=>{const newNode=e.cloneNode(true);newNode.setAttribute("data-so","1027810");newNode.addEventListener("click",e=>{drawer.chatOpenOrInit(textToSend)});e.replaceWith(newNode)});return true};const updateChatCTAs=()=>{if(tryUpdateChatCTAs()){return}let pollAttempts=200;const AIChatPollInterval=window.setInterval(()=>{if(tryUpdateChatCTAs()||pollAttempts--<=0){clearInterval(AIChatPollInterval)}},100)};if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(updateChatCTAs)}})(); /*! 1024633 Remove Ai Chat Button href value */ (()=>{const pageScope={"www.microsoft.com":{allSubpaths:true,markets:["en-us"]},"azure.microsoft.com":{allSubpaths:true,markets:["en-us"]},previews:true};const getAIChatDrawer=()=>{const AIChatDrawer=window.ocrReimagine?.AIChatDrawer||window.m365?.AIChatDrawer;if(!AIChatDrawer||AIChatDrawer.getInstances().length===0){return null}return AIChatDrawer.getInstances()[0]};const tryUpdateAiChatButton=()=>{const drawer=getAIChatDrawer();if(!drawer){return false}let aiChatButton=document.querySelector(".ai-chat-button a");if(aiChatButton&&aiChatButton.href){aiChatButton.removeAttribute("href");aiChatButton.setAttribute("href","")}return true};const updateAiChatButton=()=>{if(tryUpdateAiChatButton()){return}let pollAttempts=200;const AIChatPollInterval=window.setInterval(()=>{if(tryUpdateAiChatButton()||pollAttempts--<=0){clearInterval(AIChatPollInterval)}},100)};if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(updateAiChatButton)}})(); /*! 1025007 ACOM, Power Platform LivePerson no agents text */ (()=>{const azurePageScope={"azure.microsoft.com":{allSubpaths:true,markets:["en-us"]},previews:true};const powerPlatformPageScope={"www.microsoft.com":{paths:["/power-platform"],allSubpaths:true,markets:["en-us"]},previews:true};const m365PageScope={"www.microsoft.com":{paths:["/microsoft-365"],allSubpaths:true,markets:["en-us"]},previews:true};const noAgentsTexts={azure:"Unfortunately, a Microsoft Sales Associate isn't available right now. If you're contacting us during regular business hours, please try again. If outside business hours or it is a local holiday, please return during the hours of operation below. Microsoft Chat with Sales hours are: Monday-Friday 24 hours",m365:"A Microsoft Sales associate isn't available right now. If you're contacting us Monday–Friday 6:00 am – 6:00 pm PST, please try again. Otherwise, fill out our contact request form at [https://aka.ms/contact-m365-sales](https://aka.ms/contact-m365-sales), and we’ll be in touch.",powerPlatform:"A Microsoft Sales associate isn't available right now. If you're contacting us Monday–Friday 6:00 am – 3:00 pm PST, please try again. Otherwise, fill out our [contact request form](https://info.microsoft.com/ww-landing-microsoft-power-platform.html), and we’ll be in touch."};var noAgentsText="";if(window.SOUtil.pageIsInScope(azurePageScope)){noAgentsText=noAgentsTexts.azure}else if(window.SOUtil.pageIsInScope(m365PageScope)){noAgentsText=noAgentsTexts.m365}else if(window.SOUtil.pageIsInScope(powerPlatformPageScope)){noAgentsText=noAgentsTexts.powerPlatform}const getAIChatDrawer=()=>{const AIChatDrawer=window.ocrReimagine?.AIChatDrawer||window.m365?.AIChatDrawer;if(!AIChatDrawer||AIChatDrawer.getInstances().length===0){return null}return AIChatDrawer.getInstances()[0]};const tryUpdateNoAgentsText=()=>{const drawer=getAIChatDrawer();if(!drawer){return false}drawer.livePersonNoAgentsText=noAgentsText;return true};const updateNoAgentsText=()=>{if(tryUpdateNoAgentsText()){return}let pollAttempts=200;const AIChatPollInterval=window.setInterval(()=>{if(tryUpdateNoAgentsText()||pollAttempts--<=0){clearInterval(AIChatPollInterval)}},100)};if(window.SOUtil.pageIsInScope(azurePageScope)||window.SOUtil.pageIsInScope(m365PageScope)||window.SOUtil.pageIsInScope(powerPlatformPageScope)){window.SOUtil.runOnPageLoad(updateNoAgentsText)}})(); /*! 1030523 Customers - Carousel Blade duplicates bug fix */ (()=>{const pageScope={"www.microsoft.com":{paths:["/customers"],allSubpaths:true},previews:true};function fixCarouselDuplicateIds(){const carousel=document.querySelector("#storiesbytopic");if(!carousel)return;const carouselDupeId="carousel-oce233";const elements=carousel.querySelectorAll(`#${carouselDupeId}`);elements.forEach((element,index)=>{const newIdNumber=233+index;const newId=`carousel-oce${newIdNumber}`;element.id=newId;element.setAttribute("data-oc",`oce${newIdNumber}`);element.querySelectorAll(`[href*="${carouselDupeId}"], [src*="${carouselDupeId}"], [aria-labelledby*="${carouselDupeId}"], [aria-describedby*="${carouselDupeId}"], [id*="${carouselDupeId}"], [data-oc*="${carouselDupeId}"], [aria-controls*="${carouselDupeId}"]`).forEach(refElement=>{if(refElement.hasAttribute("href")&&refElement.getAttribute("href").includes(carouselDupeId)){refElement.setAttribute("href",refElement.getAttribute("href").replace(carouselDupeId,newId))}if(refElement.hasAttribute("src")&&refElement.getAttribute("src").includes(carouselDupeId)){refElement.setAttribute("src",refElement.getAttribute("src").replace(carouselDupeId,newId))}if(refElement.hasAttribute("aria-labelledby")&&refElement.getAttribute("aria-labelledby").includes(carouselDupeId)){refElement.setAttribute("aria-labelledby",refElement.getAttribute("aria-labelledby").replace(carouselDupeId,newId))}if(refElement.hasAttribute("aria-describedby")&&refElement.getAttribute("aria-describedby").includes(carouselDupeId)){refElement.setAttribute("aria-describedby",refElement.getAttribute("aria-describedby").replace(carouselDupeId,newId))}if(refElement.hasAttribute("id")&&refElement.getAttribute("id").includes(carouselDupeId)){refElement.setAttribute("id",refElement.getAttribute("id").replace(carouselDupeId,newId))}if(refElement.hasAttribute("data-oc")&&refElement.getAttribute("data-oc").includes(carouselDupeId)){refElement.setAttribute("data-oc",refElement.getAttribute("data-oc").replace(carouselDupeId,newId))}if(refElement.hasAttribute("aria-controls")&&refElement.getAttribute("aria-controls").includes(carouselDupeId)){refElement.setAttribute("aria-controls",refElement.getAttribute("aria-controls").replace(carouselDupeId,newId))}})})}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(fixCarouselDuplicateIds)}})(); /*! 1031208, 1065702, 1070882 New Proactive chat UX during LP hours for ACOM, Power Platform, M365 */ /*! 1095103 Update proactive prompt text for Ask Microsoft rebrand */ (()=>{const azurePageScope={"azure.microsoft.com":{markets:["en-us"]},previews:true};const powerPlatformPageScope={"www.microsoft.com":{paths:["/power-platform"],allSubpaths:true,markets:["en-us"]},previews:true};const m365PageScope={"www.microsoft.com":{paths:["/microsoft-365"],allSubpaths:true,markets:["en-us"]},previews:true};const isAzure=window.SOUtil.pageIsInScope(azurePageScope);const isPowerPlatform=window.SOUtil.pageIsInScope(powerPlatformPageScope);const isM365=window.SOUtil.pageIsInScope(m365PageScope);const getAIChatDrawer=()=>{const drawer=window.ocrReimagine?.AIChatDrawer||window.m365?.AIChatDrawer;if(!drawer||drawer.getInstances().length===0){return null}return drawer.getInstances()[0]};const proactiveMarkup=` `;function initProactive(){const Selector={DATA_MOUNT:"[data-mount='proactive-chat-so']",CLOSE_BUTTON:".proactive-chat__header .btn",CANCEL_LINK:".proactive-chat__body .link-inline.so-close-link",CONTACT_LINK:".proactive-chat__body .link-inline:not(.d-none)",OPEN_CHAT_BUTTON:".proactive-chat__body .btn.so-open-chat"};const Attributes={POPUP_DELAY:"data-popup-delay"};const EventName={ON_REMOVE:"onRemove",CLICK:"click",KEYDOWN:"keydown"};const AIComponentName="AI Chat Proactive Popup";let showCompnm=AIComponentName;let forceExp=false;const shortDelay=5e3;if(window.location.search.includes("exp=ai")){forceExp=true}const el=document.querySelector(Selector.DATA_MOUNT);const closeButton=el.querySelector(Selector.CLOSE_BUTTON);const cancelLink=el.querySelector(Selector.CANCEL_LINK);const contactLink=el.querySelector(Selector.CONTACT_LINK);const openChatButton=el.querySelector(Selector.OPEN_CHAT_BUTTON);const popupDelay=forceExp?shortDelay:el.getAttribute(Attributes.POPUP_DELAY)||15e3;let prePopFocusedEl=null;let firstElement=closeButton;let lastElement=contactLink;setTimeout(()=>showHidePopup(true),popupDelay);const events=[{el:closeButton,type:EventName.CLICK,handler:e=>hidePopover(e)},{el:cancelLink,type:EventName.CLICK,handler:e=>hidePopover(e)},{el:cancelLink,type:EventName.KEYDOWN,handler:e=>hidePopover(e)},{el:openChatButton,type:EventName.CLICK,handler:e=>openChat(e)},{el:openChatButton,type:EventName.KEYDOWN,handler:e=>openChat(e)}];events.forEach(({el,type,handler})=>{el.addEventListener(type,handler)});function trapFocusInPopup(e){if(e.key==="Tab"){if(e.shiftKey){if(document.activeElement===firstElement){e.preventDefault();lastElement.focus()}}else{if(document.activeElement===lastElement){e.preventDefault();firstElement.focus()}}}}document.addEventListener(EventName.KEYDOWN,trapFocusInPopup);function hidePopover(e){const aiChatDrawer=getAIChatDrawer();if(e.type==="keydown"&&e.key!==" "&&e.key!=="Enter"){return}aiChatDrawer.updateAIChatDrawerCookie({hideProactiveChat:true});showHidePopup(false,e)}function openChat(e){if(e.type==="keydown"&&e.key!==" "&&e.key!=="Enter"){return}const aiChatDrawer=getAIChatDrawer();showHidePopup(false);aiChatDrawer.onAiChatButtonClick(e)}function showHidePopup(show,e){const aiChatDrawer=getAIChatDrawer();const{aiChatButton}=aiChatDrawer;e?.preventDefault();e?.stopPropagation();const cookie=aiChatDrawer.getAIChatDrawerCookieObject();const hideProactiveChat=cookie?.hideProactiveChat;show=show&&!aiChatDrawer.chatInitialized&&!hideProactiveChat;if(show){prePopFocusedEl=document.activeElement;el.classList.toggle("d-none",!show);aiChatButton.classList.toggle("d-none",show);closeButton.focus();if(show&&telemetry.webAnalyticsPlugin){telemetry.webAnalyticsPlugin.capturePageAction(null,{behavior:14,actionType:"A",contentTags:{containerName:"ChatInvite",compnm:showCompnm}})}}else{if(prePopFocusedEl){prePopFocusedEl.focus()}el.classList.toggle("d-none",!show);aiChatButton.classList.toggle("d-none",show)}}}const addMarkup=(markup,styles=null)=>{if(styles){const head=document.head;const style=document.createElement("style");style.innerHTML=styles;head.appendChild(style)}document.querySelector('[data-mount="proactive-chat"]')?.insertAdjacentHTML("beforebegin",markup)};const tryAddNewProactive=()=>{if(!getAIChatDrawer()){return false}addMarkup(proactiveMarkup);initProactive();return true};const addNewProactive=()=>{if(tryAddNewProactive()){return}let pollAttempts=200;const proactiveChatPollInterval=window.setInterval(()=>{if(tryAddNewProactive()||pollAttempts--<=0){clearInterval(proactiveChatPollInterval)}},100)};if(isAzure||isPowerPlatform||isM365){window.SOUtil.runOnPageLoad(addNewProactive)}})(); /*! 1069545 Clickable Copilot prompt in hero */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-365/copilot/try-copilot-chat"]},previews:true};const desktopLinkUrl="https://go.microsoft.com/fwlink/?linkid=2303781";const promptUrl="https://go.microsoft.com/fwlink/?linkid=2325477";const applyLinkToHeroImage=()=>{const heroes=document.querySelectorAll("#primaryArea");heroes.forEach(hero=>{const heroImage=hero.querySelector(".media:not(.media--highlight) img");if(heroImage){let link;const existingLink=hero.querySelector(`a[href^="${desktopLinkUrl}"], a[href^="https://go.microsoft.com/fwlink/?linkid=2313821"], a[href^="https://go.microsoft.com/fwlink/?linkid=2313625"]`);const parentDiv=heroImage.closest(".media__asset");if(parentDiv&&existingLink){link=existingLink.cloneNode(true);if(link.getAttribute("href").includes(desktopLinkUrl)){link.setAttribute("href",link.getAttribute("href").replace(desktopLinkUrl,promptUrl))}link.id=link.id+"-clickable-image";link.dataset.biBhvr=existingLink.getAttribute("href")?.includes("2303781")?"201":"41";const textSpan=link.querySelector("span");if(textSpan){link.removeChild(textSpan)}link.className="d-block";link.setAttribute("data-bi-cn","openCopilotChatImage");link.setAttribute("data-bi-tags",'{"BiLinkName":"openCopilotChatImage"}');parentDiv.parentNode.insertBefore(link,parentDiv);link.appendChild(parentDiv)}}})};if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(applyLinkToHeroImage)}})(); /*! 1073926 - Outlook Sign in button not working */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-365/outlook/email-and-calendar-software-microsoft-outlook"]},previews:false};if(!window.SOUtil.pageIsInScope(pageScope)){return}"use strict";const redirectElKey="[data-ocr-modal-redirect-id]";const datasetKeys={cookieExpiration:"ocrModalCookieExpiration",redirectId:"ocrModalRedirectId",redirectUrl:"ocrModalRedirectionUrl"};const generateRedirectIds=els=>{const ids=[];els.forEach(el=>{ids.push(el.dataset[datasetKeys.redirectId])});return Array.from(new Set(ids))};const getFirstElByRedirectId=(els,id)=>{let res=null;els.forEach(el=>{if(el.dataset[datasetKeys.redirectId]===id){res=el}});return res};const getSiblingsRedirectUrl=link=>{const redirectEl=link.nextElementSibling;if(redirectEl&&redirectEl.dataset[datasetKeys.redirectUrl]){return redirectEl.dataset[datasetKeys.redirectUrl]}return null};const setCookie=(key,value,expiration)=>{const expDate=new Date;expDate.setTime(expDate.getTime()+expiration);document.cookie=`${key}={'dismissed':'${value}'};expires=${expDate.toUTCString()}`};const cookieModalRedirectFunctions=()=>{const redirectEls=document.querySelectorAll(redirectElKey);if(!redirectEls||redirectEls.length===0){console.error("No modal redirect elements found.");return}const redirectIds=generateRedirectIds(redirectEls);redirectIds.forEach(id=>{cookieModalRedirectFunction(getFirstElByRedirectId(redirectEls,id))})};const cookieModalRedirectFunction=el=>{const{dataset}=el;const cookieExpiration=dataset[datasetKeys.cookieExpiration];const modalId=dataset[datasetKeys.redirectId]?.replace("#","");const redirectUrl=dataset[datasetKeys.redirectUrl];const cookieExpirationInDays=cookieExpiration?parseInt(cookieExpiration,10)*1e3*60*60*24:0;const cookieKey=`modal-redirect-dismissed-${window.location.href.split("?")[0].split("#")[0]}-${modalId}`;const cookieValue=`true`;const modal=document.getElementById(modalId);if(!modal){console.error("Modal element not found.");return}const links=document.querySelectorAll(`[data-target="#${modalId}"]`);if(!links||links.length===0){console.error("Modal link not found.");return}const modalInstances=window.ocrReimagine.ModalExtension.getInstances();let targetedModal=null;modalInstances.forEach(modalInstance=>{if(modalInstance.el.id===modalId){targetedModal=modalInstance}});if(!targetedModal){console.error("Targeted modal not found.");return}const removeModalLinkClickEvent=link=>{const linkClickEventHandler=targetedModal.events.find(event=>event.el&&event.el===link)?.handler;if(!linkClickEventHandler){console.error("Link click event handler not found.");return}link.removeEventListener("click",linkClickEventHandler)};const toggleModal=(redirectUrl,e)=>{const cookieExists=document.cookie.split(";").some(item=>item.trim().startsWith(`${cookieKey}=`));if(cookieExists){const a=document.createElement("a");a.href=redirectUrl;document.body.appendChild(a);a.click()}else{targetedModal.toggle()}};links.forEach(link=>{removeModalLinkClickEvent(link);link.addEventListener("click",e=>{e.preventDefault();e.stopPropagation();let url=getSiblingsRedirectUrl(link)||redirectUrl;toggleModal(url,e)},{capture:true})});targetedModal.el.addEventListener("onHide",()=>{if(cookieExpirationInDays>0){setCookie(cookieKey,cookieValue,cookieExpirationInDays)}})};if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",cookieModalRedirectFunctions)}else{cookieModalRedirectFunctions()}})(); /*! 1069725 Telemetry - ACOM signup attribution signals */ (async()=>{const pageScope={"azure.microsoft.com":{},previews:true};const enableJourneySignals=true;if(!window.SOUtil.pageIsInScope(pageScope)){return}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)}async function hasFullConsent(){try{await waitForWcpConsentObj();if(isGpcOptInPresent()&&GPC_DataSharingOptIn===true&&(!isConsentRequired()||checkUserConsent())){console.log("User has given full consent for journey signals.");return true}else{console.log("User has not given full consent for journey signals.");return false}}catch(error){console.error("Error loading consent journey signals:",error);return false}}const queryParams=new URLSearchParams(window.location.search.toLocaleLowerCase());if(queryParams.has("journeysignals")){switch(queryParams.get("journeysignals")){case"enable":sessionStorage.setItem("journeySignalsEnabled",true);return;case"disable":sessionStorage.removeItem("journeySignalsEnabled");sessionStorage.removeItem("journeySignalsEntryData");return;default:console.warn("Unknown journeysignals value:","'"+queryParams.get("journeysignals")+"'","Valid options are 'enable' or 'disable'.");break}}if(enableJourneySignals||sessionStorage.getItem("journeySignalsEnabled")){var journeySignalsEntryData=null;(async()=>{try{journeySignalsEntryData=JSON.parse(sessionStorage.getItem("journeySignalsEntryData"))}catch(error){}const consent=await hasFullConsent();if(!journeySignalsEntryData){journeySignalsEntryData={}}let entryParams=new URLSearchParams(document.location.search);let entryLowerParams=new URLSearchParams([...entryParams].map(([key,value])=>[key.toLowerCase(),value]));if(document.referrer){if(!journeySignalsEntryData.ref||document.referrer.includes("azure.microsoft.com")===false){journeySignalsEntryData.ref=new URL(document.referrer).hostname||""}}entryLowerParams.get("ocid")&&(journeySignalsEntryData.ocid=entryLowerParams.get("ocid"));entryLowerParams.get("cid")&&(journeySignalsEntryData.cid=entryLowerParams.get("cid"));sessionStorage.setItem("journeySignalsEntryData",JSON.stringify(journeySignalsEntryData));journeySignalsEntryData.hasFullConsent=consent;if(document.readyState!=="loading"){mergeJourneySignalsWithLinks()}else{window.addEventListener("DOMContentLoaded",mergeJourneySignalsWithLinks)}if(WcpConsent&&typeof WcpConsent.onConsentChanged==="function"){WcpConsent.onConsentChanged(()=>{(async()=>{try{const updatedConsent=await hasFullConsent();journeySignalsEntryData.hasFullConsent=updatedConsent;mergeJourneySignalsWithLinks()}catch(error){console.error("Error updating consent status:",error)}})()})}})();function getTrialButtons(){let links=document.querySelectorAll("a[data-bi-bhvr='92'],a[data-bi-bhvr='234'],a[data-bi-bhvr='210']");return links}function clearSessionStorage(){sessionStorage.removeItem("journeySignalsEntryData")}function setSignupStagingLinks(links){links.forEach(link=>{if(link.search.includes("2227353")){link.href="#"}else if(link.search.includes("2234155")){link.href="#"}});return links}function mergeJourneySignalsWithLinks(){let trialButtons=getTrialButtons();trialButtons?.forEach(link=>{try{const params=new URLSearchParams(link.search);const lowerParams=new URLSearchParams([...params].map(([key,value])=>[key.toLowerCase(),value]));const existingParams=Object.fromEntries(lowerParams);const newParams=new URLSearchParams(existingParams);for(const[key,value]of Object.entries(journeySignalsEntryData)){if(value!==null&&value!==undefined){newParams.set(key.toLowerCase(),value)}}link.search=newParams.toString();link.addEventListener("click",()=>{clearSessionStorage()})}catch(error){console.error("Failed to update link:",link,error)}})}function waitForTtMETA(callback,errorCallback){const pollInterval=500;const timeout=5e3;const startTime=Date.now();function poll(){if(window.ttMETA&&Array.isArray(window.ttMETA)&&window.ttMETA.length>0){callback(window.ttMETA)}else if(Date.now()-startTime>=timeout){errorCallback&&errorCallback(new Error("Timeout waiting for ttMETA"))}else{setTimeout(poll,pollInterval)}}poll()}waitForTtMETA(ttMETA=>{if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",()=>processTTMETA(ttMETA))}else{processTTMETA(ttMETA)}},error=>{console.error("Failed to load ttMETA:",error)});function processTTMETA(ttMETA){var trialButtons=getTrialButtons();var exp=null;if(ttMETA[0].CampaignId=="555352"&&window.ttMETA.length>1){ttMETA=ttMETA.slice(1)}if(ttMETA.length>0){exp={exID:ttMETA[0].CampaignId,exVAR:ttMETA[0].RecipeName};trialButtons?.forEach(link=>{try{const params=new URLSearchParams(link.search);const newParams=new URLSearchParams({...Object.fromEntries(params.entries()),...exp});link.search=newParams.toString()}catch(error){}})}}}})(); /*! 1081101 - Remove M365 business trials for ko-kr */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-365/business","/microsoft-365/business/compare-all-microsoft-365-business-products-b","/microsoft-365/business/how-to-use","/microsoft-365/business/microsoft-365-administration","/microsoft-365/business/microsoft-365-apps-for-business","/microsoft-365/business/microsoft-365-business-basic","/microsoft-365/business/microsoft-365-business-premium","/microsoft-365/business/microsoft-365-business-standard","/microsoft-365/business/microsoft-365-business-standard-one-month-trial","/microsoft-365/business/microsoft-365-plan-chooser","/microsoft-365/business/microsoft-365-plans-and-pricing","/microsoft-365/business/microsoft-365-plans-and-pricing-c","/microsoft-365/business/no-teams-plans-and-pricing","/microsoft-365/business/office-2016-2019-end-of-support-upgrade-options","/microsoft-365/clipchamp","/microsoft-365/copilot-for-microsoft-365","/microsoft-365/excel","/microsoft-365/excel-b","/microsoft-365/exchange/compare-microsoft-exchange-online-plans","/microsoft-365/exchange/exchange-online-business-plans-and-pricing","/microsoft-365/get-started-with-office-2024","/microsoft-365/microsoft-365-business","/microsoft-365/microsoft-365-products","/microsoft-365/microsoft-editor","/microsoft-365/onedrive/compare-onedrive-plans","/microsoft-365/onedrive/download","/microsoft-365/onedrive/free-online-cloud-storage","/microsoft-365/onedrive/mobile","/microsoft-365/onedrive/onedrive-business-plans-and-pricing","/microsoft-365/onedrive/online-cloud-storage","/microsoft-365/onedrive/online-cloud-storage-b","/microsoft-365/onedrive/online-photo-storage","/microsoft-365/outlook/email-and-calendar-software-microsoft-outlook","/microsoft-365/outlook/email-and-calendar-software-microsoft-outlook-b","/microsoft-365/outlook/log-in","/microsoft-365/outlook/outlook-business-email-plans","/microsoft-365/outlook/outlook-business-email-plans-and-pricing","/microsoft-365/outlook/outlook-email-plan","/microsoft-365/outlook/outlook-for-mac","/microsoft-365/outlook/outlook-for-windows","/microsoft-365/planner/microsoft-planner-plans-and-pricing-one-time-purchase","/microsoft-365/planner/microsoft-planner-plans-and-pricing-subscriptions","/microsoft-365/powerpoint","/microsoft-365/powerpoint-b","/microsoft-365/sharepoint/compare-sharepoint-plans","/microsoft-365/visio/visio-plans-and-pricing-one-time-purchase","/microsoft-365/visio/visio-plans-and-pricing-subscriptions","/microsoft-365/word","/microsoft-365/word-b","/microsoft-teams/compare-microsoft-teams-business-options","/microsoft-teams/download-app","/microsoft-teams/free-video-conferencing","/microsoft-teams/log-in","/microsoft-teams/small-medium-business","/microsoft-teams/teams-trials","/security/business/endpoint-management/microsoft-intune","/security/business/endpoint-security/microsoft-defender-business","/security/business/endpoint-security/microsoft-defender-business-b","/security/business/get-started/start-free-trial","/security/business/microsoft-365-business-premium-free-trial","/security/business/microsoft-defender-for-business-and-individuals-free-trial","/security/pricing/small-medium-business","/security/pricing/small-medium-business-no-teams","/security/small-medium-business","/sharepoint/sharepoint-business-plans-and-pricing"],markets:["ko-kr"]},previews:false};const fwLinkIds=["2147547","2318629","510938","2317831","2102309","2318521","507653","2318522","2244731","2317832","2245018","2318630","2244916","2318631","2255679","2238334"];const bsTrialSelector=`a[href="http://approjects.co.za/?big=ko-kr/microsoft-365/business/microsoft-365-business-standard-one-month-trial"]`;function generateFWlinkSelectors(linkIds){const ids=Array.isArray(linkIds)?linkIds:[linkIds];const links=ids.map(id=>{const linkIdStr=String(id);return[`https://go.microsoft.com/fwlink/?linkid=${linkIdStr}`,`https://go.microsoft.com/fwlink/p/?linkid=${linkIdStr}`]}).flat();return links.map(link=>`a[href^="${link}" i]`).join(", ")}const fwLinkSelector=generateFWlinkSelectors(fwLinkIds);const fwLinkStyles=fwLinkSelector+", "+bsTrialSelector+" {display: none !important;}";if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.addStylesheet(fwLinkStyles,"1081101")}})(); /*! 1082566 - Copilot GPT5 Email campaign - app download tracking param fixes */ (()=>{document.addEventListener("DOMContentLoaded",()=>{let qsp=document.location.search;let origQrCodeImg=document.querySelector('img[src^="https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/office_mobile_app_qrcode"]');if(/qrversion=email/i.test(qsp)&&origQrCodeImg!==null){let newImg=document.createElement("img");newImg.width=200;newImg.height=200;newImg.src="https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/office-mobile-app-qrcode-email-gpt5-link?resMode=sharp2&op_usm=1.5,0.65,15,0&wid=200&hei=200&qlt=100&fit=constrain";origQrCodeImg.after(newImg);origQrCodeImg.remove()}let iosPassThruInput=document.querySelector('.targeting-container [data-tc-enabled="true"] input[value*="2136762"]')?.parentElement.querySelector(":scope > #listOfQueryStringParameters");if(typeof iosPassThruInput!="undefined"){iosPassThruInput.value=iosPassThruInput.value.replace(/referrer/i,"ct,pt");console.log(iosPassThruInput.value)}});var a=$(".targeting-container").has("[data-tc-enabled=true] .redirect"),d=$(".redirect:not(.targeting-container .redirect)");a=0=2*n)return!0;try{if(telemetry.webAnalyticsPlugin.isInitialized())return!0}catch(e){c&&console.log("Error: "+e)}return!1},n=Number(a.find("#delayRedirect").val()),c=0{const pageScope={"www.microsoft.com":{},"azure.microsoft.com":{},previews:true};function deleteStyleSheet(){const linkTag=document.querySelector('link[href^="/etc.clientlibs/cascade.component.authoring/clientlibs/clientlib-reimagine/page/base"]')||document.querySelector('link[href^="/golf/etc.clientlibs/cascade.component.authoring/clientlibs/clientlib-reimagine/page/base"]');if(linkTag){linkTag.remove()}}if(window.SOUtil.pageIsInScope(pageScope)){deleteStyleSheet()}})(); /*! 1085054 - Rive Controller Enabled Pages */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-365-copilot","/isv/qa-folder/microsoft-365-copilot"]},previews:true};function addRiveController(){class RiveController{static isRtlPage=document.documentElement.getAttribute("dir")==="rtl"?true:false;static fontAssetCache={};static DEFAULT_FONT="segoeui.ttf";static LOCALE_FONT_MAP={"am-et":"ebrima.ttf","ti-et":"ebrima.ttf","as-in":"nirmala.ttf","bn-bd":"nirmala.ttf","bn-in":"nirmala.ttf","gu-in":"nirmala.ttf","hi-in":"nirmala.ttf","kn-in":"nirmala.ttf","kok-in":"nirmala.ttf","ml-in":"nirmala.ttf","mr-in":"nirmala.ttf","ne-np":"nirmala.ttf","or-in":"nirmala.ttf","pa-in":"nirmala.ttf","si-lk":"nirmala.ttf","ta-in":"nirmala.ttf","te-in":"nirmala.ttf","chr-cher-us":"gadugi.ttf","zh-cn":"msyh.ttc","zh-hk":"msjh.ttc","zh-tw":"msjh.ttc","ja-jp":"yugothm.ttc","km-kh":"leelawui.ttf","th-th":"leelawui.ttf","ko-kr":"malgun.ttf"};constructor(riveObjects={}){this.animations=new Map;this.canvasObservers=new WeakMap;this.resizeObserver=null;this.riveObjects=riveObjects;this.setupResizeObserver()}initializeAll(){Object.entries(this.riveObjects).forEach(([key,config])=>{this.setupAnimation(config)});return this}setRiveObjects(newRiveObjects){this.destroy();this.riveObjects=newRiveObjects||{};return this}updateRiveObjects(additionalObjects){Object.assign(this.riveObjects,additionalObjects);return this}addAnimation(key,config){this.riveObjects[key]=config;this.setupAnimation(config);return this}getRiveObjects(){return{...this.riveObjects}}getAnimation(id){return this.animations.get(id)}getAllAnimations(){return Array.from(this.animations.values())}setupAnimation(config){const animation=new RiveAnimation(config,this);this.animations.set(config.id,animation);this.addIntersectionObserver(animation);const canvas=document.getElementById(config.id);if(canvas){this.observeCanvasResize(canvas)}animation.createPlayPauseControl()}removeAnimation(id){const animation=this.animations.get(id);if(animation){const canvas=document.getElementById(animation.config.id);if(canvas){this.unobserveCanvasResize(canvas)}animation.destroy();this.animations.delete(id)}}createRiveInstance(config){const riveInstance=new rive.Rive({src:RiveController.buildAssetUrl(config.file),canvas:document.getElementById(config.id),autoplay:config.autoplay,autoBind:true,fit:rive.Fit.cover,stateMachines:config.stateMachine,assetLoader:(asset,bytes)=>{if(asset.cdnUuid.length>0||bytes.length>0){return false}if(asset.isFont){RiveController.loadFont(asset);return true}return false},onLoad:async()=>{riveInstance.resizeDrawingSurfaceToCanvas();const vmi=riveInstance.viewModelInstance;if(!vmi){console.warn(`Rive instance not found for "${config.stateMachine} id: ${config.id}".`);return}config.searchStrings.forEach((value,i)=>{const varName=`${config.prefix}_${String(i+1).padStart(2,"0")}`;const stringVar=vmi.string(varName);if(stringVar){stringVar.value=value}else{console.warn(`Input "${varName}" not found in Rive file.`)}});const varName=`${config.prefix}_99`;const stringVar=vmi.string(varName);if(stringVar){stringVar.value=config.disclaimerText}},onError:err=>{console.error("Rive load error:",err)}});document.getElementById(config.id).setAttribute("aria-label",config.ariaLabel);document.getElementById(config.id).setAttribute("role","img");return riveInstance}addIntersectionObserver(animation){const canvas=document.getElementById(animation.config.id);if(!canvas)return;if(this.canvasObservers.has(canvas)){return this.canvasObservers.get(canvas)}const intersectionObserver=new IntersectionObserver(entries=>{entries.forEach(entry=>{if(entry.isIntersecting){animation.create()}else{animation.destroy()}})},{threshold:.1,rootMargin:"50px"});intersectionObserver.observe(canvas);this.canvasObservers.set(canvas,intersectionObserver);return intersectionObserver}removeIntersectionObserver(canvas){const observer=this.canvasObservers.get(canvas);if(observer){observer.disconnect();this.canvasObservers.delete(canvas)}}debounce(func,delay){let timeoutId;return(...args)=>{clearTimeout(timeoutId);timeoutId=setTimeout(()=>func.apply(this,args),delay)}}setupResizeObserver(){if(!window.ResizeObserver){console.warn("ResizeObserver not supported in this browser");return}const debouncedResize=this.debounce(entries=>{entries.forEach(entry=>{const canvas=entry.target;const canvasId=canvas.id;if(canvas.offsetWidth===0||canvas.offsetHeight===0){return}const animation=this.animations.get(canvasId);if(animation&&animation.riveInstance){animation.riveInstance.resizeDrawingSurfaceToCanvas()}})},150);this.resizeObserver=new ResizeObserver(debouncedResize)}observeCanvasResize(canvas){if(this.resizeObserver&&canvas){this.resizeObserver.observe(canvas)}}unobserveCanvasResize(canvas){if(this.resizeObserver&&canvas){this.resizeObserver.unobserve(canvas)}}destroy(){this.animations.forEach((animation,id)=>{this.removeAnimation(id)});if(this.resizeObserver){this.resizeObserver.disconnect();this.resizeObserver=null}this.animations.clear()}static determineFontUrl(){const locale=document.documentElement.lang?.toLowerCase();const fontFile=locale?RiveController.LOCALE_FONT_MAP[locale]||RiveController.DEFAULT_FONT:RiveController.DEFAULT_FONT;return RiveController.buildAssetUrl(fontFile)}static async loadFont(asset){const fontUrl=RiveController.determineFontUrl();if(RiveController.fontAssetCache[fontUrl]){asset.setFont(RiveController.fontAssetCache[fontUrl]);return}try{const res=await fetch(fontUrl);if(!res.ok){throw new Error(`Font fetch failed: ${res.status}`)}const font=await rive.decodeFont(new Uint8Array(await res.arrayBuffer()));RiveController.fontAssetCache[fontUrl]=font;asset.setFont(font);font.unref()}catch(err){console.error("RiveController: Failed to load font",err);throw err}}static buildAssetUrl(assetFilename){var basePath=`/msonecloudapi/assets/${assetFilename}`;var baseUrl="https://www.microsoft.com";var sourcePath="";var ockParam="?ock=782163515ae76ede931d40f765e4000a";if(window.location.hostname.includes("adobeppe")){sourcePath=`https://wwwppe.microsoft.com${basePath}${ockParam}`}else if(window.location.hostname.includes("adobeprod")){sourcePath=`https://www.microsoft.com${basePath}${ockParam}`}else{sourcePath=`${baseUrl}${basePath}`}return sourcePath}}class RiveAnimation{constructor(config,controller){this.config=config;this.controller=controller;this.riveInstance=null;this.playPauseControl=null;this.isActive=false}create(){if(this.riveInstance)return;this.riveInstance=this.controller.createRiveInstance(this.config);this.isActive=true;if(this.playPauseControl){if(this.playPauseControl.isPlaying()){this.riveInstance.play()}else{this.riveInstance.pause()}}}destroy(){if(this.riveInstance){this.riveInstance.cleanup();this.riveInstance=null;this.isActive=false}}isCreated(){return this.riveInstance!==null}createPlayPauseControl(){let isPlaying=this.config.autoplay;const button=document.getElementById(this.config.buttonId);if(!button){console.warn(`Button with ID "${this.config.buttonId}" not found`);return}const buttonIcon=button.querySelector(".ocr-icon");if(buttonIcon){buttonIcon.classList.remove("ocr-icon--size-m");buttonIcon.classList.add("ocr-icon--size-sm")}let userHasManuallyControlled=false;const updateButton=()=>{const icon=button.querySelector(".glyph-prepend");if(icon){icon.className=isPlaying?"glyph-prepend glyph-prepend-pause":"glyph-prepend glyph-prepend-play-solid"}button.setAttribute("aria-label",isPlaying?this.config.playingAriaLabel:this.config.pausedAriaLabel);button.setAttribute("data-state",isPlaying?"play":"pause")};updateButton();button.addEventListener("click",()=>{userHasManuallyControlled=true;isPlaying=!isPlaying;if(this.riveInstance){if(isPlaying){this.riveInstance.play()}else{this.riveInstance.pause()}}updateButton()});this.playPauseControl={toggle:()=>{userHasManuallyControlled=true;isPlaying=!isPlaying;if(this.riveInstance){if(isPlaying){this.riveInstance.play()}else{this.riveInstance.pause()}}updateButton()},play:()=>{userHasManuallyControlled=true;isPlaying=true;if(this.riveInstance){this.riveInstance.play()}updateButton()},pause:()=>{userHasManuallyControlled=true;isPlaying=false;if(this.riveInstance){this.riveInstance.pause()}updateButton()},isPlaying:()=>isPlaying,resetAutoControl:()=>{userHasManuallyControlled=false},isAutoControlActive:()=>!userHasManuallyControlled};return this.playPauseControl}}if(window.ocrRiveController){console.warn("RiveController: Global instance already exists");return window.ocrRiveController}const controller=new RiveController;window.ocrRiveController=controller}if(window.SOUtil.pageIsInScope(pageScope)){if(!window.rive||!window.rive.Rive){var riveScript=document.createElement("script");riveScript.src="https://unpkg.com/@rive-app/webgl2@2.31.5/rive.js";riveScript.integrity="sha384-kUV/cLT/RnlWYUGc2mvw6QviRRrfmbHJzUu5vOesQm8wwkT3RHZRvJBeCNYfLUQv";riveScript.crossOrigin="anonymous";riveScript.onload=function(){addRiveController()};document.head.appendChild(riveScript);return}addRiveController()}})(); /*! 1086380 AI banner not triggering web assistant */ (()=>{function appendWaaClassic(){const aiChatBanner=document.querySelector(".ai-chat-banner");const aiChatDrawerClassic=document.querySelector(".ai-chat-drawer");const parentExists=document.querySelector("#web-ai-assistant-experience");const childExists=document.querySelector("#waaClassic");if(aiChatBanner&&aiChatDrawerClassic&&!parentExists&&!childExists){var parentDiv=document.createElement("div");parentDiv.id="web-ai-assistant-experience";var childDiv=document.createElement("div");childDiv.id="waaClassic";parentDiv.appendChild(childDiv);aiChatBanner.parentNode.insertBefore(parentDiv,aiChatBanner)}}window.SOUtil.runOnPageLoad(appendWaaClassic)})(); /*! 1086682 Remove legacy proactive chat if Modern assistant is present */ (()=>{function removeLegacyProactiveChat(){const waaModern=document.querySelector("#waaModern");if(waaModern){const legacyChat=document.querySelector("#proactive-chat-dialog");if(legacyChat){legacyChat.remove()}}}window.SOUtil.runOnPageLoad(removeLegacyProactiveChat)})(); /*!1089379 Commercial Front Door Stats Blade Styling*/ (()=>{const pageScope={"www.microsoft.com":{paths:["/business","/qa-folder/v-mcdonaldk/business"]},previews:true};function updateCardGridStyles(){const selectors={cards:"#card-grid-1089379 .layout--cols-3 > div"};const cardElements=document.querySelectorAll(selectors.cards);if(cardElements.length<4){console.warn("Card grid elements not found or insufficient cards");return}cardElements.forEach((card,index)=>{card.id=`card${index+1}`});const customCardGridStyles=` /* assign grid areas to individual cards */ #card1 { grid-area: card1; } #card2 { grid-area: card2; } #card3 { grid-area: card3; } #card4 { grid-area: card4; } /* define custom grid layout */ #card-grid-1089379 .layout--cols-3{ grid-template-areas: "card1 card2 card2" "card1 card3 card4"; display: grid; grid-template-rows: auto; grid-template-columns: 40% 30% 30%; } /* remove horizontal card feature overlays */ #card1 .card-horizontal--case-study-media .card-horizontal__content, #card2 .card-horizontal--case-study-media .card-horizontal__content, #card3 .card-horizontal--case-study-media .card-horizontal__content, #card4 .card-horizontal--case-study-media .card-horizontal__content { --surface-bg: unset; --surface-border-width: unset; --surface-border-style: unset; --surface-border-color: unset; --surface-backdrop-filter: unset; -webkit-backdrop-filter: unset; backdrop-filter: unset; --card-horizontal-background-color: unset; --surface-border-radius: unset; box-shadow: unset; background: unset; border-radius: unset; border: unset; } /* set text color for card1 and card4 */ div#card1 .block-feature__title, div#card4 .block-feature__title, div#card1 .block-feature__paragraph, div#card4 .block-feature__paragraph { color: #ffffff !important; } /* set image object fit so entire image appears in cards*/ #card1 .ocr-img img, #card2 .ocr-img img, #card3 .ocr-img img, #card4 .ocr-img img { object-fit: cover; } /* set card1, card3, and card4 text content alignment to top of card and remove extra padding*/ #card1 .card-horizontal .card-horizontal__content, #card3 .card-horizontal .card-horizontal__content, #card4 .card-horizontal .card-horizontal__content { justify-content: flex-start; padding: 0px 1.5rem 1.5rem 1.5rem; } /* card2 block feature text spacing adjustment */ #card2 .card-horizontal--case-study-media .block-feature { margin: 48px 0; } /* remove extra gaps to reduce overall component height */ #card1 .block-feature__headings, #card3 .block-feature__headings, #card4 .block-feature__headings { gap: unset; } /* make cards full width within their grid areas */ #card1 .col-lg-12, #card2 .col-lg-12, #card3 .col-lg-12, #card4 .col-lg-12 { flex: 0 0 100%; max-width: 100%; } @media (max-width: 859px) { #card1 .card-horizontal--case-study-media .card-horizontal__content, #card2 .card-horizontal--case-study-media .card-horizontal__content, #card3 .card-horizontal--case-study-media .card-horizontal__content, #card4 .card-horizontal--case-study-media .card-horizontal__content { margin: 10px 0 30px 0; } } /* on mobile devices reset the grid template to stack cards vertically */ @media (max-width: 767px) { #card-grid-1089379 .layout--cols-3 { grid-template-areas: "card1" "card2" "card3" "card4"; grid-template-columns: 100%; } } `;window.SOUtil.addStylesheet(customCardGridStyles,"1089379")}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(updateCardGridStyles)}})(); /*! 1089662 Clickable Copilot prompt in hero */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-365-copilot/try-copilot-in-outlook"]},previews:true};const promptUrl={desktop:"https://go.microsoft.com/fwlink/p?linkid=2341021",ios:"https://go.microsoft.com/fwlink/p?linkid=2341019",android:"https://go.microsoft.com/fwlink/p?linkid=2341020"};const applyLinkToHeroImage=()=>{const heroes=document.querySelectorAll("#primaryArea");heroes.forEach((hero,index)=>{const heroImage=hero.querySelector(".media:not(.media--highlight) img");if(heroImage){let link=document.createElement("a");let url;let bhvr;switch(index){case 2:url=promptUrl.android;bhvr="41";break;case 3:url=promptUrl.ios;bhvr="41";break;default:url=promptUrl.desktop;bhvr="201";break}const parentDiv=heroImage.closest(".media__asset");if(parentDiv){link.href=url;link.id="clickable-image-link-1089662-"+index;link.dataset.biBhvr=bhvr;link.ariaLabel="Open Copilot in Outlook";link.target="_blank";link.className="d-block";link.setAttribute("data-bi-cn","openCopilotChatImage");link.setAttribute("data-bi-tags",'{"BiLinkName":"openCopilotChatImage"}');parentDiv.parentNode.insertBefore(link,parentDiv);link.appendChild(parentDiv)}}})};if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(applyLinkToHeroImage)}})(); /*!1092077 Update Chat Now for Modern assistant*/ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-fabric","/microsoft-365/business","/power-platform","/microsoft-365/enterprise","/microsoft-365/microsoft-365-education","/microsoft-365-copilot/pricing"],allSubpaths:true,markets:["en-us"]},"azure.microsoft.com":{paths:["/contact"],allSubpaths:true,markets:["en-us"]},previews:true};const onChatNowClick=event=>{if(event.type==="keydown"&&event.key!=="Enter"&&event.key!==" "){return}event.preventDefault();const customevent=new CustomEvent("onAiSearchSubmit",{detail:{value:"Chat with sales"}});document.dispatchEvent(customevent)};const waaVariantState=()=>{const modern=document.querySelector("#waaModern");const classic=document.querySelector("#waaClassic");if(modern&&!classic)return"modern";if(classic&&!modern)return"classic";if(modern&&classic)return"both";return null};const tryUpdateChatButtonsForModern=()=>{const waaState=waaVariantState();if(waaState==="classic"||waaState===null){return true}if(waaState!=="modern"){return false}const chatWithSalesLinks=document.querySelectorAll("[data-oc-ai-chat]");chatWithSalesLinks.forEach(element=>{const newNode=element.cloneNode(true);newNode.addEventListener("click",onChatNowClick);if(newNode.tagName!=="BUTTON"){newNode.addEventListener("keydown",onChatNowClick)}element.replaceWith(newNode)});return true};const updateChatNowForModern=()=>{const waaExists=document.querySelector("#web-ai-assistant-experience");if(waaExists){let pollAttempts=200;const modernWaatPollInterval=window.setInterval(()=>{if(tryUpdateChatButtonsForModern()||pollAttempts--<=0){clearInterval(modernWaatPollInterval)}},100)}};if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(updateChatNowForModern)}})(); /*!1092310 AI Foundry Stats Blade Styling*/ (()=>{const pageScope={"azure.microsoft.com":{paths:["/ai-foundry","/products/ai-foundry"]},previews:true};function updateCardGridStyles(){const selectors={cards:"#card-grid-1089379 .layout--cols-3 > div"};const cardElements=document.querySelectorAll(selectors.cards);if(cardElements.length<4){console.warn("Card grid elements not found or insufficient cards");return}cardElements.forEach((card,index)=>{card.id=`card${index+1}`});const customCardGridStyles=` /* assign grid areas to individual cards */ #card1 { grid-area: card1; } #card2 { grid-area: card2; } #card3 { grid-area: card3; } #card4 { grid-area: card4; } /* define custom grid layout */ #card-grid-1089379 .layout--cols-3{ grid-template-areas: "card1 card2 card2" "card1 card3 card4"; display: grid; grid-template-rows: auto; grid-template-columns: 40% 30% 30%; } /* remove horizontal card feature overlays */ #card1 .card-horizontal--case-study-media .card-horizontal__content, #card2 .card-horizontal--case-study-media .card-horizontal__content, #card3 .card-horizontal--case-study-media .card-horizontal__content, #card4 .card-horizontal--case-study-media .card-horizontal__content { --surface-bg: unset; --surface-border-width: unset; --surface-border-style: unset; --surface-border-color: unset; --surface-backdrop-filter: unset; -webkit-backdrop-filter: unset; backdrop-filter: unset; --card-horizontal-background-color: unset; --surface-border-radius: unset; box-shadow: unset; background: unset; border-radius: unset; border: unset; } /* set text color for card2 and card4 */ div#card2 .block-feature__title, div#card2 a, div#card4 .block-feature__title, div#card4 a, div#card2 .block-feature__paragraph, div#card4 .block-feature__paragraph { color: #ffffff !important; } /* set image object fit so entire image appears in cards*/ #card1 .ocr-img img, #card2 .ocr-img img, #card3 .ocr-img img, #card4 .ocr-img img { object-fit: cover; } /* set card1, card3, and card4 text content alignment to top of card and remove extra padding */ #card1 .card-horizontal .card-horizontal__content, #card3 .card-horizontal .card-horizontal__content, #card4 .card-horizontal .card-horizontal__content { justify-content: flex-start; padding: 0px 1.5rem 1.5rem 1.5rem; } /* position footer links at bottom of blade */ #card1 .block-feature__footer, #card2 .block-feature__footer, #card3 .block-feature__footer, #card4 .block-feature__footer { position: absolute; bottom: 20px; } /* remove extra gaps to reduce overall component height */ #card1 .block-feature__headings, #card3 .block-feature__headings, #card4 .block-feature__headings { gap: unset; } /* make cards full width within their grid areas */ #card1 .col-lg-12, #card2 .col-lg-12, #card3 .col-lg-12, #card4 .col-lg-12 { flex: 0 0 100%; max-width: 100%; } @media (max-width: 859px) { #card1 .card-horizontal--case-study-media .card-horizontal__content, #card2 .card-horizontal--case-study-media .card-horizontal__content, #card3 .card-horizontal--case-study-media .card-horizontal__content, #card4 .card-horizontal--case-study-media .card-horizontal__content { margin: 10px 0 30px 0; } #card1 .display-1 { margin-bottom: 15px; } } /* on mobile devices reset the grid template to stack cards vertically */ @media (max-width: 767px) { #card-grid-1089379 .layout--cols-3 { grid-template-areas: "card1" "card2" "card3" "card4"; grid-template-columns: 100%; } #card1 .block-feature__footer, #card2 .block-feature__footer, #card3 .block-feature__footer, #card4 .block-feature__footer { position: unset; bottom: unset; } } `;window.SOUtil.addStylesheet(customCardGridStyles,"1089379")}if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(updateCardGridStyles)}})(); /*!1092674 Search Cards not Rendering*/ /*!1092860 Ai use case page not Rendering */ /*!1094037 Search Page Sustainability not rendering*/ (()=>{const pageScope={"www.microsoft.com":{paths:["/customers","/ai","/sustainability"],allSubpaths:true},previews:true};if(!window.SOUtil.pageIsInScope(pageScope))return;const fixSearchCards=()=>{const eyebrow=document.querySelector(".dynamic-content__template .block-feature__eyebrow div");if(!eyebrow)return;const h5Element=document.createElement("h5");h5Element.className=eyebrow.className;h5Element.innerHTML=eyebrow.innerHTML;eyebrow.parentNode.replaceChild(h5Element,eyebrow)};window.SOUtil.runOnPageLoad(fixSearchCards)})(); /*! 1096499 Add OCID passthru to pill tab links */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-365-copilot/pricing","/microsoft-365-copilot/pricing/individuals","/microsoft-365-copilot/pricing/enterprise","/microsoft-365-copilot/pricing/copilot-studio","/microsoft-365-copilot/pricing-new"],markets:["en-us","en-gb"]},previews:true};const pillTabLinkSelector="a.pill-bar__item, .tab a";const queryparamPasshtruAttr="data-queryparam-passthru";const addOcidPassthruToPillTabLinks=()=>{const pillTabLinks=document.querySelectorAll(pillTabLinkSelector);pillTabLinks.forEach(link=>{if(!link.hasAttribute(queryparamPasshtruAttr)){link.setAttribute(queryparamPasshtruAttr,"ocid")}else{const existingParamsArray=link.getAttribute(queryparamPasshtruAttr).split(",");if(!existingParamsArray.includes("ocid")){link.setAttribute(queryparamPasshtruAttr,existingParamsArray.concat("ocid").join(","))}}})};if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.runOnPageLoad(addOcidPassthruToPillTabLinks)}})(); /*! 1096805 fix queryparam passthru for links with hash */ (()=>{const getQueryParamsFromPage=()=>{let queryParams={};const urlParams=new URLSearchParams(window.location.search);urlParams.forEach((value,key)=>{queryParams[key.toLowerCase()]=value});return queryParams};const processAnchorTags=links=>{const pageQueryParams=getQueryParamsFromPage();links.forEach(link=>{const passthruParams=link.dataset.queryparamPassthru.split(",");link.setAttribute("data-queryparam-passthru-so-1096805",link.getAttribute("data-queryparam-passthru"));link.removeAttribute("data-queryparam-passthru");const linkHref=link.getAttribute("href").trim();if(!linkHref||linkHref===""||linkHref.toLowerCase().startsWith("javascript:")||linkHref.startsWith("#"))return;let linkUrl;try{linkUrl=new URL(linkHref,window.location.origin)}catch(error){return}const linkParams=linkUrl.search;let searchParams=new URLSearchParams(linkParams);let paramsAdded=false;passthruParams.forEach(param=>{param=param.trim().toLowerCase();if(pageQueryParams[param]){searchParams.set(param,pageQueryParams[param]);paramsAdded=true}});if(paramsAdded){linkUrl.search=searchParams.toString();link.setAttribute("href",linkUrl.toString())}})};document.addEventListener("DOMContentLoaded",()=>{const links=document.querySelectorAll("a[data-queryparam-passthru]");if(links.length>0){processAnchorTags(links)}})})(); /*! 1098823 Roadmap Overrides + 1097955 roadmap CSS related changes*/ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-365/roadmap"]},previews:true};if(!window.SOUtil.pageIsInScope(pageScope)){return}const onReady=fn=>{if(document.readyState=="complete"||document.readyState=="interactive")fn();else document.addEventListener("DOMContentLoaded",fn,{once:true})};const patches={centerHeroAction(){const el=document.querySelector("#hero-action-center");if(el&&!el.dataset.centered){el.style.justifyContent="center";el.dataset.centered="true"}},addModalGhostDividers(){document.querySelectorAll('[ocr-component-name="modal"] [ocr-component-name="ghost-card"]').forEach(card=>{if(card.previousElementSibling?.classList.contains("ocr-divider"))return;const divider=document.createElement("div");divider.className="ocr-divider ocr-divider--size-s";divider.style.setProperty("display","block","important");card.parentNode.insertBefore(divider,card)})},updateMediaPolicies(){document.querySelectorAll(".media.slide-in-bottom-2.img-fluid.multi-feature-feature").forEach(node=>{if(node.dataset.updated)return;node.className="media media--highlight media--highlight-glass media--pos-middle-middle slide-in-bottom-2 img-fluid multi-feature-feature";node.dataset.updated="true"})},fixModalZIndex(){const modals=document.querySelectorAll('[data-mount="reimagine-modal"]');modals.forEach(modal=>{modal.style.zIndex="1050";const observer=new MutationObserver(()=>{modal.style.zIndex="1050"});observer.observe(modal,{attributes:true,attributeFilter:["style"]})})},fixTimelineDropdownOverlapWithSecondaryNav(){setTimeout(()=>{const timeline=document.querySelector("reimagine-timeline");const timelineDropdownMenuList=timeline?.shadowRoot?.querySelector("reimagine-menu-list");const timelineDropdownTrigger=timeline?.shadowRoot?.querySelector("reimagine-dropdown-trigger");const secondaryNavSticky=document.querySelector('[ocr-component-name="secondary-sticky-nav"] .sticky');const secondaryNav=document.querySelector('[ocr-component-name="secondary-sticky-nav"]');const showHideSecondaryNav=()=>{if(timelineDropdownMenuList.getAttribute("expanded")=="true"){const menuListRect=timelineDropdownMenuList.getBoundingClientRect();const triggerRect=timelineDropdownTrigger.getBoundingClientRect();let placeholder=document.createElement("div");placeholder.id="secondary-nav-placeholder";placeholder.style.width=`${secondaryNavSticky.getBoundingClientRect().width}px`;placeholder.style.height=`${secondaryNavSticky.getBoundingClientRect().height}px`;if(menuListRect.top{if(child.id==="secondary-nav-placeholder"){child.remove()}})}}else{secondaryNavSticky.style.display="flex";secondaryNav.childNodes.forEach(child=>{if(child.id==="secondary-nav-placeholder"){child.remove()}})}};if(timelineDropdownMenuList&&secondaryNavSticky){const observer=new MutationObserver(()=>{showHideSecondaryNav()});observer.observe(timelineDropdownMenuList,{attributes:true})}const triggerObserver=new IntersectionObserver(entries=>{entries.forEach(entry=>{if(!entry.isIntersecting){secondaryNavSticky.style.display="flex";secondaryNav.childNodes.forEach(child=>{if(child.id==="secondary-nav-placeholder"){child.remove()}})}else{showHideSecondaryNav()}})});if(timelineDropdownTrigger){triggerObserver.observe(timelineDropdownTrigger)}},1e3)},cardPromoHorizontal(){const cardPromoHorizontal=document.querySelectorAll('[data-component-id="2b9a710ec7952a9e39aaccb62b93dcee"] [data-component-id="44caf4f4684ffb74bce8d2eb8f53911a"] [ocr-component-name="card-promo"]');cardPromoHorizontal.forEach(card=>{card.classList.add("card-promo--horizontal");card.classList.add("card-promo--overlay-none")})}};const runPatches=()=>{Object.values(patches).forEach(fn=>{try{fn()}catch(e){console.warn("[Patch failed]",fn.name,e)}})};onReady(()=>{runPatches();initModals()});let activeModal=null;function initModals(){if(!document.body||document.body.dataset.modalsInit)return;document.body.dataset.modalsInit="true";document.body.addEventListener("click",e=>{const trigger=e.target.closest('[data-target^="#TimelineModal"], [id^="timeline-modal-trigger-"]');if(!trigger)return;e.preventDefault();const modalId=trigger.dataset.target||getModalIdFromTrigger(trigger);if(!modalId)return;const modal=document.querySelector(modalId);if(!modal)return;openModal(modal,trigger)});document.addEventListener("keydown",e=>{if(e.key==="Escape"&&activeModal){closeModal(activeModal.modal,activeModal.trigger)}})}function getModalIdFromTrigger(trigger){const wrapper=trigger.closest('[id^="timeline-modal-trigger-"]');if(!wrapper)return null;return`#TimelineModal${wrapper.id.split("-").pop()}`}function openModal(modal,trigger){closeAllModals();modal.style.display="";modal.classList.add("show");modal.setAttribute("role","dialog");modal.setAttribute("aria-modal","true");modal.style.pointerEvents="auto";modal.style.zIndex=1e3;activeModal={modal:modal,trigger:trigger};const firstFocusable=modal.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');firstFocusable?.focus();const closeBtn=modal.querySelector(".modal-close");if(closeBtn&&!closeBtn.dataset.bound){closeBtn.addEventListener("click",()=>closeModal(modal,trigger));closeBtn.dataset.bound="true"}}function closeModal(modal,trigger){modal.classList.remove("show");modal.style.display="none";activeModal=null;trigger?.focus()}function closeAllModals(){document.querySelectorAll('[id^="TimelineModal"]').forEach(m=>{m.classList.remove("show");m.style.display="none"})}const fixMarkup=()=>{const lazyImg=document.querySelector("#image-oc5710");if(lazyImg){lazyImg.removeAttribute("loading")}const timelineButtons=document.querySelectorAll("reimagine-timeline button");timelineButtons.forEach(button=>{button.style.setProperty("margin-inline-start","8px")})};fixMarkup();if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",fixMarkup,{capture:true})}window.SOUtil.runOnPageLoad(initModals);window.SOUtil.addStylesheet(` body .link__text, body [data-oc-token-text], body [slot=text-block__eyebrow-label], reimagine-timeline-bar-indicator, body .btn__text, [slot="link__text"] { font-family: var(--root-font-family-base, var(--root-font-family-segoe-variable-text)); } [slot=modal__footer] .ocr-divider { display: none; } .modal.show { display: block; } `,1098823);let stickyNavDropdownMenu;let clonedNode;const initObserver=new MutationObserver(()=>{stickyNavDropdownMenu=document.querySelector("#sticky-nav .dropdown .dropdown-menu");if(!stickyNavDropdownMenu)return;clonedNode=stickyNavDropdownMenu.cloneNode(true);initObserver.disconnect();observeMenuChanges()});initObserver.observe(document.documentElement,{childList:true,subtree:true});function observeMenuChanges(){const menuObserver=new MutationObserver(mutationsList=>{for(const mutation of mutationsList){if(mutation.type==="childList"){const isMenuEmpty=stickyNavDropdownMenu.children.length===0;if(isMenuEmpty){clonedNode.childNodes.forEach(node=>{stickyNavDropdownMenu.appendChild(node.cloneNode(true))})}}}});menuObserver.observe(stickyNavDropdownMenu,{childList:true})}})(); /*! 1100013 - remove try link on exchange page */ (()=>{const pageScope={"www.microsoft.com":{paths:["/microsoft-365/exchange/microsoft-exchange-online-archiving-email"]},previews:false};const ticketNum="1100013";const style=`#buy-box-ocd34e a[href^="https://go.microsoft.com/fwlink/p/?linkid=2224892"] { display: none !important; }`;if(window.SOUtil.pageIsInScope(pageScope)){window.SOUtil.addStylesheet(style,ticketNum)}})(); /*! 1101133 - Block CoralUI3 script and stylesheet and remove inline pricing markup */ (()=>{const BLOCKED_PATTERN=/\/etc\.clientlibs\/clientlibs\/granite\/coralui3/;const isBlockedScript=node=>node.nodeName==="SCRIPT"&&node.src&&BLOCKED_PATTERN.test(node.src);const isBlockedStylesheet=node=>node.nodeName==="LINK"&&node.rel==="stylesheet"&&node.href&&BLOCKED_PATTERN.test(node.href);document.querySelectorAll('script[src], link[rel="stylesheet"]').forEach(el=>{if(isBlockedScript(el)||isBlockedStylesheet(el)){el.disabled=true;el.remove()}});const observer=new MutationObserver(mutations=>{for(const mutation of mutations){for(const node of mutation.addedNodes){if(isBlockedScript(node)){node.type="javascript/blocked";node.remove()}else if(isBlockedStylesheet(node)){node.disabled=true;node.remove()}}}});observer.observe(document.documentElement,{childList:true,subtree:true});window.SOUtil.runOnPageLoad(()=>{observer.disconnect();const inlinePriceDialogElement=document.querySelector("#reimagineInlinePriceDialog");if(inlinePriceDialogElement){inlinePriceDialogElement.remove()}})})(); /*! 1100980 - A/B test discovery */ (()=>{const pageScope={"www.microsoft.com":{},"azure.microsoft.com":{},previews:false};function shouldShowActivities(){return new URLSearchParams(window.location.search).get("showTargetTests")==="1"}function showActiveTargetActivities(){if(!window.targetGlobalSettings){createPopup("Error Loading Target Activities","Target global settings could not be retrieved. Please allow the page to load completely before refreshing the page.");return}const options=window.targetGlobalSettings.serverState?.response?.execute?.pageLoad?.options;let activityExperiencePairs;let noActivities=false;if(options&&options.length>0){activityExperiencePairs=options.map(option=>{const responseTokens=option.responseTokens||{};return{activityName:responseTokens["activity.name"],experienceName:responseTokens["experience.name"]}}).filter(pair=>pair.activityName).filter((pair,index,self)=>self.findIndex(p=>p.activityName===pair.activityName)===index)}else{noActivities=true}createPopup("Active Target Activities",noActivities?"No active Target activities found.":activityExperiencePairs)}function createPopup(title,message){const overlay=document.createElement("div");overlay.style.cssText="position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:999999;display:flex;align-items:center;justify-content:center;";const modal=document.createElement("div");modal.style.cssText="background:white;padding:24px;border-radius:24px;max-width:600px;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 0 0.125rem var(--root-depth-color-1, rgba(0, 0, 0, 0.12)),0 0.125rem 0.25rem var(--root-depth-color-2, rgba(0, 0, 0, 0.14))";const titleEL=document.createElement("h2");titleEL.textContent=title;titleEL.style.cssText="margin:0 0 10px 0;font-size:24px;line-height:46px";modal.appendChild(titleEL);if(Array.isArray(message)){const list=document.createElement("ul");list.style.cssText="max-height:250px;font-family:monospace;font-size:14px;padding:12px 12px 12px 16px;margin:0;";message.forEach(pair=>{const li=document.createElement("li");li.textContent=pair.activityName;li.style.cssText="padding:4px 0;";list.appendChild(li)});modal.appendChild(list)}else{const messageP=document.createElement("p");messageP.textContent=message;messageP.style.cssText="font-family:monospace;font-size:14px;padding:12px 12px 12px 16px;margin:0;";modal.appendChild(messageP)}const closeBtn=document.createElement("button");closeBtn.textContent="Close";closeBtn.className="btn btn--sm";closeBtn.style.cssText="align-self:flex-end;margin-top:12px;";closeBtn.onclick=()=>overlay.remove();overlay.onclick=e=>{if(e.target===overlay)overlay.remove()};modal.appendChild(closeBtn);overlay.appendChild(modal);document.body.appendChild(overlay)}if(window.SOUtil.pageIsInScope(pageScope)&&shouldShowActivities()){window.SOUtil.runOnPageLoad(showActiveTargetActivities)}})();