@servicenow/aiux 22.42.1 → 22.42.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/dist/vN/{aiel-c1rnJf9J.js → aiel-Drv2KiHy.js} +3 -3
- package/components/dist/vN/{aiex-BOLhPDhB.js → aiex-Dh5lMLmr.js} +29 -38
- package/components/dist/vN/manifest.json +4 -4
- package/components/dist/vN/{nav-BDWkv54f.js → nav-BatrrdNH.js} +3 -3
- package/components/nav/src/constants.js +2 -1
- package/components/nav/src/nav-layout/src/nav-layout.js +2 -0
- package/components/nav/vN/index.js +4 -2
- package/components/package.json +3 -3
- package/core/commons/package.json +1 -1
- package/core/sdk/dist/build.browser.js +38 -9
- package/core/sdk/package.json +1 -1
- package/core/sdk/src/build-metadata-records/lifecycle.js +7 -3
- package/core/sdk/src/build-runtime-manifest/build.js +46 -6
- package/libraries/aiux-devtools/package.json +1 -1
- package/libraries/aiux-devtools/src/index.js +55 -5
- package/libraries/aiux-devtools/src/store/preferences.js +2 -0
- package/libraries/aiux-devtools/src/ui/shell/devtools-panel.js +80 -43
- package/libraries/aiux-devtools/src/ui/shell/overlay-manager.js +35 -7
- package/package.json +1 -1
- package/public-dev-server/server/package.json +1 -1
- package/public-dev-server/server/src/glide-proxy.js +26 -3
- package/public-dev-server/server/src/server.js +15 -0
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"components-schedule-recurrence": "schedule-recurrence-Bie40pEB.js",
|
|
70
70
|
"components-playbook": "playbook-CgLkNndp.js",
|
|
71
71
|
"components-node-map": "node-map-C3u-ZmaF.js",
|
|
72
|
-
"components-nav": "nav-
|
|
72
|
+
"components-nav": "nav-BatrrdNH.js",
|
|
73
73
|
"components-appointment-calendar": "appointment-calendar-DM2IkkgS.js",
|
|
74
74
|
"shared": [
|
|
75
75
|
"vendor-lodash-DKMhVPNZ.js",
|
|
@@ -1504,7 +1504,7 @@
|
|
|
1504
1504
|
"@servicenow/aiux-components-live-region": "live-region-DCL38RmO.js",
|
|
1505
1505
|
"@servicenow/aiux-components-loader": "loader-Cl8EHzG7.js",
|
|
1506
1506
|
"@servicenow/aiux-components-nacm": "nacm-2Kc0TM9b.js",
|
|
1507
|
-
"@servicenow/aiux-components-nav": "nav-
|
|
1507
|
+
"@servicenow/aiux-components-nav": "nav-BatrrdNH.js",
|
|
1508
1508
|
"@servicenow/aiux-components-notification-container": "notification-container-CU7-Z4AX.js",
|
|
1509
1509
|
"@servicenow/aiux-components-page-alert": "page-alert-Cn58sqQq.js",
|
|
1510
1510
|
"@servicenow/aiux-components-pagination": "pagination-CrwMKUoD.js",
|
|
@@ -1573,8 +1573,8 @@
|
|
|
1573
1573
|
"aiuxDirectives": "aiux-directives-eWGLFwu0.js",
|
|
1574
1574
|
"aiuxContext": "aiux-context-BftnlmFb.js",
|
|
1575
1575
|
"aiuxUtils": "aiux-utils-CTxHm1Wd.js",
|
|
1576
|
-
"aiel": "aiel-
|
|
1577
|
-
"aiex": "aiex-
|
|
1576
|
+
"aiel": "aiel-Drv2KiHy.js",
|
|
1577
|
+
"aiex": "aiex-Dh5lMLmr.js",
|
|
1578
1578
|
"tailwindStylesCSS": "tailwindStyles-R-_g90du.css",
|
|
1579
1579
|
"requirements": {
|
|
1580
1580
|
"components-ai-filter-assist": {
|
|
@@ -82,7 +82,7 @@ let e,t;import{getGlobalRouter as i,dirtyState as a}from"/aiux/assets/core/aiux-
|
|
|
82
82
|
d="M81.833 12.9504H80.0405L76.4597 4.13788H78.8668L80.83 9.17538L82.7548 4.13788H84.765L86.6728 9.17538L88.6531 4.13788H91.0559L87.4794 12.9504H85.6826L83.7578 7.93371L81.833 12.9504Z"
|
|
83
83
|
fill="currentColor"
|
|
84
84
|
/>
|
|
85
|
-
</svg>`,e_=k("nav-page-api");function ey(e,t){"u">typeof window&&(window.__PAGE_ACTIONS_PENDING__={actions:t},e.dispatchEvent(new CustomEvent("page-actions:update",{detail:{actions:t},bubbles:!0,composed:!0})))}function ex(e,t){"u">typeof window&&(window.__HEADER_CONFIG_PENDING__={detail:t},e.dispatchEvent(new CustomEvent("header-config:update",{detail:t,bubbles:!0,composed:!0})))}function ew(e,t){if("u"<typeof window)return;let i=e?.loaderScopeKey??"base";window.__HORIZONTAL_NAV_TITLE_PENDING__={title:t,scope:i},e.dispatchEvent(new CustomEvent("horizontal-nav-title:set",{detail:{title:t,scope:i},bubbles:!0,composed:!0}))}function ek(e,{source:t="ext"}={}){let i=eh.get(),a=i.items||[],n=e.action?.path;if(n&&a.some(e=>e.action?.path===n))return void e_.warn({path:n},"addNavItem: item with this action.path already exists, skipping");let r={...e,_source:t};eh.set({...i,items:[...a,r]})}function e$(e){let t=eh.get(),i=t.items||[],a=i.filter(t=>t.action?.path!==e);a.length===i.length?e_.warn({l1Path:e},"removeNavItem: no L1 item found with matching action.path"):eh.set({...t,items:a})}function eI(e,t){for(let i=0;i<e.length;i++){let a=e[i];if(a.action?.path===t||a.activePath===t)return{item:a,parentItem:null,index:i,isL2:!1};let n=a.l2Nav||[],r=n.findIndex(e=>e.action?.path===t||e.activePath===t);if(-1!==r)return{item:n[r],parentItem:a,index:r,isL2:!0}}return null}function eT(e,t,i,a){let n,r=eh.get(),o=r.items||[],s=eI(o,t);if(!s)return void e_.warn({targetPath:t},`${e}: no nav item found with matching action.path or activePath`);let{item:l,parentItem:c,isL2:d}=s,u=l._l3Prepended||[],p=l._l3Appended||[],h=l._l3Removed||[];if("set"===a)n=i,u=[],p=i,h=[];else if("append"===a){n=[...l.l3Nav||[],...i],p=[...p,...i];let e=new Set(i.map(e=>e.path));h=h.filter(t=>!e.has(t))}else if("prepend"===a){n=[...i,...l.l3Nav||[]],u=[...i,...u];let e=new Set(i.map(e=>e.path));h=h.filter(t=>!e.has(t))}else e_.warn({mode:a},`${e}: unrecognized merge mode, defaulting to set`),n=i,u=[],p=i,h=[];let m={...l,l3Nav:n,_l3Prepended:u,_l3Appended:p,_l3Removed:h},f=[...o];if(d){let e=o.indexOf(c),t=c.l2Nav||[],i=t.indexOf(l),a=[...t];a[i]=m,f[e]={...c,l2Nav:a}}else f[o.indexOf(l)]=m;eh.set({...r,items:f})}function eS(e,t){eT("setL3Nav",e,t,"set")}function eC(e,t){eT("appendL3Nav",e,t,"append")}function eM(e,t){eT("prependL3Nav",e,t,"prepend")}function eE(e,t){let i=eh.get(),a=i.items||[],n=eI(a,e);if(!n)return void e_.warn({targetPath:e},"removeL3Nav: no nav item found with matching action.path or activePath");let{item:r,parentItem:o,isL2:s}=n,l=new Set(t),c=(r.l3Nav||[]).filter(e=>!l.has(e.path)),d=(r._l3Prepended||[]).filter(e=>!l.has(e.path)),u=(r._l3Appended||[]).filter(e=>!l.has(e.path)),p=[...new Set([...r._l3Removed||[],...t])],h={...r,l3Nav:c,_l3Prepended:d,_l3Appended:u,_l3Removed:p},m=[...a];if(s){let e=a.indexOf(o),t=o.l2Nav||[],i=t.indexOf(r),n=[...t];n[i]=h,m[e]={...o,l2Nav:n}}else m[a.indexOf(r)]=h;eh.set({...i,items:m})}function eA(e){G()?.openChat(e)}function eN(){G()?.closeChat()}function eO(e){G()?.requestSkillExecution(e)}let eD=!1,eP="d6e462a5c3533010cbd77096e940dd8c",eR="c51543a5c3133010cbd77096e940dd43",eL="1b682fe1c3133010cbd77096e940dd18",ez="63242b61c3133010cbd77096e940dd23",ej="e708a3f75372011010baddeeff7b120a",eF="__search__";function eU(e,t){let i=e?.replace(/\/$/,"").split("/").filter(Boolean).pop()||"unknown",a=t?.replace(/^\//,"").split("/")[0]||"unknown";if("classic"===a&&globalThis.window?.location?.search){let e=new URLSearchParams(globalThis.window.location.search).get("target");e&&(a=(e.split("/").pop()?.split("?")[0]||"").replace(/\.do$/,"")||"classic")}return`${i}:${a}`}function eW(e){let t,{pathname:i,search:a,hash:n,origin:r}=e,o="/aiux/ui/",s="/now/nav/ui/",l="/aiux/ui/workspace",c=a,d=n;if(i.startsWith(l+"/")||i===l)t=i.slice(l.length)||"/";else if("/aiux/ui/classic"===i){let e=new URLSearchParams(a).get("target");if(e){let i=e.startsWith("/")?e.slice(1):e;t=`${s}classic/params/target/${encodeURIComponent(i)}`}else t=`${s}classic`;c="",d=""}else t=i.startsWith(o)?s+i.slice(o.length):s;return r+t+c+d}function eH(e,t){let i;function a(...n){clearTimeout(i),i=setTimeout(()=>e(...n),t)}return a.cancel=()=>clearTimeout(i),a}let eB="__workspaces__",eK="__admin__",eq=l("Favorites"),eG="experience",eQ=l("Toggle previewing our new design"),eY=l("Action executed successfully"),eV=[{id:eL,icon:"star",label:l("Favorites"),pinName:"favorites"},{id:eR,icon:"change",label:l("History"),pinName:"recents"},{id:eP,icon:"grid",label:l("All"),pinName:"all"}],eZ=Object.freeze({ALL:"all",FAVORITES:"favorites",RECENTS:"recents",WORKSPACES:"workspaces",ADMIN:"admin"});eZ.FAVORITES,eZ.RECENTS,eZ.WORKSPACES,eZ.ADMIN;let eX="nav-all-menu-panel",eJ=e=>`nav-all-menu-tab-${e}`,e0="nav-all-menu-overflow-trigger",e1="nav-all-menu-overflow-menu",e2="aiux-nav-create-tab",e3={icon:"bug",title:"Debugging",l2Nav:[{title:"Header",action:{type:"navigate",path:"/debugging/header"}}]},e4={unifiedExperience:!0,menus:!0,userAvatar:!0,preferences:!0,themeToggle:!0,darkTheme:!0,logo:!1,prefetch:!0,userSession:!0,concoursePicker:!0,domainPickerOnly:!1,filter:!0,userPreferences:!0,notifications:!0,chat:!0,wmBasedChat:!1,pinning:!0,profile:!0,shortcutCommands:!0,keyboardShortcuts:!0,aiuxToggle:!0,helpPanel:!0,helpAssistant:!0,whatsNew:!0,guidedTours:!0,dragDrop:!0,horizontalContextualNav:!1,announcements:!1,skipLink:!0},e5={animation:"dots",color:null,target:"content"},e6=[{icon:"home",title:l("Home"),action:{type:"navigate",path:"/home"}},{icon:"bell",title:l("Notifications"),action:{type:"event",name:"open-notifications-menu"},badge:!0},{icon:"sn-sparkmoji-logo",title:l("Ask Otto"),action:{type:"event",name:"open-chat"},badge:!0}],e9=[{id:eP,icon:"grid",label:l("All")},{id:eL,icon:"star",label:l("Favorites")},{id:eR,icon:"change",label:l("History")},{id:eB,icon:"window",label:l("Workspaces")},{id:eK,icon:"shield",label:l("Admin")}],e8={icon:"magnifying-glass",title:l("Search"),action:{type:"menu-tray",menuId:eF},testId:"nav-global-search"};function e7(e){let t=e.indexOf("?"),i=e.indexOf("#"),a=-1===t&&-1===i?e.length:-1===t?i:-1===i?t:Math.min(t,i);return e.slice(0,a)}let te="deep",tt="back";function ti(e,t){if(!e||!t)return{l1:null,l2:null};let i=e7(t);for(let t of e){if(t.l2Nav?.length){let e=t.l2Nav.find(e=>e.action?.path===i);if(e)return{l1:t,l2:e};let a=null,n=-1;for(let e of t.l2Nav)if(function(e,t){let i=e7(t),a=e.action?.path;return!!(a===i||a&&i.startsWith(a+"/"))||(e.l3Nav?.some(e=>e.path===i)??!1)}(e,i)){let t=e.action?.path?.length??0;t>n&&(a=e,n=t)}if(a)return{l1:t,l2:a}}if(t.action?.path===i)return{l1:t,l2:null}}for(let t of e){let e=t.activePath||t.action?.path;if(e&&(i===e||i.startsWith(e+"/")))return{l1:t,l2:null}}return{l1:null,l2:null}}function ta(e,t=[],i=null){let a;if(Array.isArray(e))return{l3Nav:e,showHeader:!1,title:"",pageTitle:"",metadata:[],openInSidebar:!1,actionsDropdown:!1,hideToolbar:!1,transient:!1};let n=e?.l3,r=i?.l3Nav;if(n){let e=i?._l3Prepended!==void 0||i?._l3Appended!==void 0,t=e&&i?._l3Prepended||[],r=e?i?._l3Appended||[]:i?.l3Nav||[],o=i?._l3Removed||[];if(0===t.length&&0===r.length&&0===o.length)a=n;else{let e=new Set(o),i=n.filter(t=>!e.has(t.path)),s=new Set(i.map(e=>e.path)),l=t.filter(t=>!s.has(t.path)&&!e.has(t.path)),c=new Set(l.map(e=>e.path));a=[...l,...i,...r.filter(t=>!s.has(t.path)&&!e.has(t.path)&&!c.has(t.path))]}}else a=t||r||[];let o=e?.header===!0||a.length>0||i?.header===!0,s=e?.title||"",l=e?.pageTitle||"",c=e?.metadata||[],d=e?.openInSidebar===!0,u=e?.actionsDropdown===!0;return{l3Nav:a,showHeader:o,title:s,pageTitle:l,metadata:c,openInSidebar:d,actionsDropdown:u,hideToolbar:e?.hideToolbar===!0||i?.hideToolbar===!0,transient:e?.transient===!0}}function tn(e,t,i,a){if(!e)return"deep";let n=a?e7(a):a;if(!t)return e.action?.path===n?"l1":"deep";if(t.action?.path===n)return"l2";let r=t?.l3Nav?.length>0||i?.some(e=>e.path===t?.action?.path)?i:[];return r?.some(e=>e.path===n)?"l3":"deep"}function tr(e,t){if(!e||!t)return null;let i=e7(t),a=e.findIndex(e=>e.path===i);if(-1!==a)return{tab:e[a],index:a};let n=-1,r=0;for(let t=0;t<e.length;t++){let{path:a}=e[t];a&&i.startsWith(a+"/")&&a.length>r&&(n=t,r=a.length)}return n>=0?{tab:e[n],index:n}:null}function to({l1:e,l2:t,l3Nav:i}={}){if(t)return!1;let a=e?.action?.path;return!!a&&!!i?.some(e=>e.path===a)}function ts(e){if(!e||"string"!=typeof e)return"";let t=`/${e}`;return/^\/[a-zA-Z0-9._\-/]+$/.test(t)?t:""}function tl(e){return!!e&&"string"==typeof e&&(e.includes("ccbd67c4408f4110f8775ad9518199da.iix")||e.includes("77eb60325f210100a9ad2572f2b477ae.iix")||e.includes("0850a525073220105fca5d1aead30038"))}function tc(e){let t=e?.action;return!!t&&("modal"===t.type&&"scope-picker"===t.component||"event"===t.type&&"open-chat"===t.name)}function td(e){if(!e||r)return;let t=e.querySelector('button:not([disabled]):not([tabindex="-1"]), [href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])');(t||e).focus?.()}function tu(){return"true"===($("aiux.lab_preferences.enabled")||"").toLowerCase()}function tp(){if("true"!==$("aiux.experience.__experiment_active")&&tu()){let e=I("aiux.experience");if(null!=e&&""!==e)return"true"===String(e).toLowerCase()}let e=$("aiux.experience");return null==e||""===e?eD:"true"===String(e).toLowerCase()}function th(){if(tu()){let e=I("aiux.nav.semantic_search.enabled");if(null!=e&&""!==e)return"true"===String(e).toLowerCase()}return"true"===String($("aiux.nav.semantic_search.enabled")).toLowerCase()}let tm="aiux.nav.menuCache",tf="aiux.nav.menuCache.backend",tg="menu";function tb(){try{return!!globalThis.window?.localStorage}catch{return!1}}function tv(){try{return!!globalThis.window?.indexedDB}catch{return!1}}function t_(){if(!tv())return"localStorage";if(!tb())return"idb";try{return"localStorage"===window.localStorage.getItem(tf)?"localStorage":"idb"}catch{return"idb"}}function ty(e){if(tb())try{window.localStorage.setItem(tf,e)}catch{}}function tx(e,t){return{value:e,flushstamp:t,ts:Date.now(),version:1}}function tw(e){if(e&&1===e.version&&"number"==typeof e.ts&&Date.now()-e.ts<864e5)return{value:e.value,flushstamp:e.flushstamp}}function tk(){return e||(tv()?((e=new Promise((e,t)=>{let i;try{i=window.indexedDB.open("aiux.nav",1)}catch(e){t(e);return}i.onupgradeneeded=e=>{e.target.result.createObjectStore(tg)},i.onsuccess=t=>e(t.target.result),i.onerror=e=>t(e.target.error),i.onblocked=()=>t(Error("indexedDB blocked"))})).catch(()=>{e=void 0}),e):Promise.reject(Error("indexedDB unavailable")))}async function t$(){try{let e=await tk();return await new Promise(t=>{let i=e.transaction(tg,"readonly").objectStore(tg).get(tm);i.onsuccess=()=>t(tw(i.result)),i.onerror=()=>t(void 0)})}catch{return}}async function tI(e,t){try{let i=await tk();return await new Promise(a=>{let n=i.transaction(tg,"readwrite").objectStore(tg).put(tx(e,t),tm);n.onsuccess=()=>a(!0),n.onerror=()=>a(!1)})}catch{return!1}}async function tT(){if(tv())try{let e=await tk();await new Promise(t=>{let i=e.transaction(tg,"readwrite").objectStore(tg).delete(tm);i.onsuccess=()=>t(),i.onerror=()=>t()})}catch{}}async function tS(){if(!r)return"idb"===t_()?t$():function(){if(tb())try{let e=window.localStorage.getItem(tm);if(!e)return;let t=JSON.parse(e),i=tw(t);if(!i)return void window.localStorage.removeItem(tm);return i}catch{return}}()}async function tC(e,t){r||("localStorage"===t_()?tM(e,t):await tI(e,t)||(ty("localStorage"),tM(e,t)))}function tM(e,t){if(tb())try{window.localStorage.setItem(tm,JSON.stringify(tx(e,t)))}catch{}}async function tE(){if(!r){if(tb())try{window.localStorage.removeItem(tm)}catch{}await tT()}}async function tA({replace:e}={}){if(r)return;await tE();let t=globalThis.window?.location;t&&(e?t.replace(e):t.reload())}async function tN(e){if(!r){if("localStorage"===t_())return tD(e);try{let t=await tk();return await new Promise(i=>{let a=t.transaction(tg,"readonly").objectStore(tg).get(e);a.onsuccess=()=>i(a.result),a.onerror=()=>i(void 0)})}catch{return tD(e)}}}async function tO(e,t){if(!r){if("localStorage"===t_())return void tP(e,t);try{let i=await tk();if(await new Promise(a=>{let n=i.transaction(tg,"readwrite").objectStore(tg).put(t,e);n.onsuccess=()=>a(!0),n.onerror=()=>a(!1)}))return}catch{}ty("localStorage"),tP(e,t)}}function tD(e){if(tb())try{let t=window.localStorage.getItem(e);return t?JSON.parse(t):void 0}catch{return}}function tP(e,t){if(tb())try{window.localStorage.setItem(e,JSON.stringify(t))}catch{}}let tR=Object.freeze({IMPERSONATE:"/api/now/ui/impersonate",ELEVATE_ROLES:"/api/now/ui/impersonate/role",APPLICATION_PICKER:"/api/now/ui/concoursepicker/application",UPDATE_SET_PICKER:"/api/now/ui/concoursepicker/updateset"}),tL={Accept:"application/json","Content-Type":"application/json"};class tz extends Error{constructor(e,t,i){super(`${e} failed (${t})${i?`: ${i}`:""}`),this.name="SessionActionError",this.action=e,this.status=t,this.errorMessage=i}}async function tj(e){try{let t=await e.json();return t?.error?.message}catch{return}}async function tF(e){if(!e)return;let t=await T(`${tR.IMPERSONATE}/${e}`,{method:"POST",headers:tL,credentials:"include"});if(!t.ok){let e=await tj(t);throw new tz("Impersonation",t.status,e)}let i=await t.json().catch(()=>({}));if(!i?.result)throw new tz("Impersonation",t.status,i?.error?.message);!function(){if(void 0===globalThis.window||void 0===globalThis.BroadcastChannel)return;let e=new globalThis.BroadcastChannel("aiux-impersonation-change");e.postMessage({type:"impersonation-changed"}),e.close()}();let a=globalThis.window?.location.origin;await tA(a?{replace:a}:void 0)}async function tU(e){if(null==e)return;let t=await T(tR.ELEVATE_ROLES,{method:"POST",headers:tL,credentials:"include",body:JSON.stringify({roles:e})});if(!t.ok){let e=await tj(t);throw new tz("Elevate roles",t.status,e)}await tA()}async function tW(e){if(!e)return;let t=await T(tR.APPLICATION_PICKER,{method:"PUT",headers:tL,credentials:"include",body:JSON.stringify({app_id:e})});if(!t.ok){let e=await tj(t);throw new tz("Application change",t.status,e)}await tA()}async function tH(e){if(!e)return;let t=await T(tR.UPDATE_SET_PICKER,{method:"PUT",headers:tL,credentials:"include",body:JSON.stringify({sysId:e})});if(!t.ok){let e=await tj(t);throw new tz("Update set change",t.status,e)}tB("update-set")}function tB(e){"function"==typeof globalThis.document?.dispatchEvent&&globalThis.document.dispatchEvent(new CustomEvent("aiux:concourse-picker-stale",{detail:{picker:e}}))}let tK="now-ai-canvas-window",tq="modal",tG="DEFAULT";function tQ(e,t,i){if("u">typeof window&&window.nowWindowManager)if(i){let e=window.nowWindowManager.windowsState,t=e?.modalWindows?.includes(tK),i=e?.leftDockId===tK;t?window.nowWindowManager.toggleModal(tK,!1,!0):i&&window.nowWindowManager.toggleDock(tK,"left",!0),window.nowWindowManager.setWindowProperties(tK,{chromeless:!1})}else if(t)window.nowWindowManager.toggleModal(tK,!0,!0),window.nowWindowManager.setWindowProperties(tK,{chromeless:!1});else if(e===tG){let e=window.nowWindowManager?.windowsState,t=e?.leftDockId===tK;e?.modalWindows?.includes(tK)&&window.nowWindowManager.toggleModal(tK,!1,!0),t||window.nowWindowManager.toggleDock(tK,"left",!0),window.nowWindowManager.setWindowProperties(tK,{chromeless:!1})}else window.nowWindowManager.toggleModal(tK,!0,!0),window.nowWindowManager.setWindowProperties(tK,{chromeless:!0})}let tY="nav:close-menus";class tV{constructor(e,t){let i="function"==typeof t?{close:t}:t;this._host=e,this._close=i.close,this._isOpen=i.isOpen??(()=>!0),this._outsideAnchors=i.outsideAnchors??(e=>[e]),this._outsideEvent=i.outsideEvent??"click",this._enableOutsideClick=i.outsideClick??!0,this._broadcastHandler=null,this._outsideHandler=null,e.addController?.(this)}hostConnected(){this._broadcastHandler=()=>{this._isOpen(this._host)&&this._close.call(this._host,this._host)},globalThis.window?.addEventListener?.(tY,this._broadcastHandler),this._enableOutsideClick&&(this._outsideHandler=e=>{if(!this._isOpen(this._host))return;let t=this._outsideAnchors(this._host)||[],i=e.composedPath();t.some(e=>e&&i.includes(e))||this._close.call(this._host,this._host)},globalThis.document?.addEventListener?.(this._outsideEvent,this._outsideHandler,!0))}hostDisconnected(){this._broadcastHandler&&(globalThis.window?.removeEventListener?.(tY,this._broadcastHandler),this._broadcastHandler=null),this._outsideHandler&&(globalThis.document?.removeEventListener?.(this._outsideEvent,this._outsideHandler,!0),this._outsideHandler=null)}}let tZ=Object.freeze({LG:"lg",MD:"md",SM:"sm"});class tX extends S{static{this.styles=o`
|
|
85
|
+
</svg>`,e_=k("nav-page-api");function ey(e,t){"u">typeof window&&(window.__PAGE_ACTIONS_PENDING__={actions:t},e.dispatchEvent(new CustomEvent("page-actions:update",{detail:{actions:t},bubbles:!0,composed:!0})))}function ex(e,t){"u">typeof window&&(window.__HEADER_CONFIG_PENDING__={detail:t},e.dispatchEvent(new CustomEvent("header-config:update",{detail:t,bubbles:!0,composed:!0})))}function ew(e,t){if("u"<typeof window)return;let i=e?.loaderScopeKey??"base";window.__HORIZONTAL_NAV_TITLE_PENDING__={title:t,scope:i},e.dispatchEvent(new CustomEvent("horizontal-nav-title:set",{detail:{title:t,scope:i},bubbles:!0,composed:!0}))}function ek(e,{source:t="ext"}={}){let i=eh.get(),a=i.items||[],n=e.action?.path;if(n&&a.some(e=>e.action?.path===n))return void e_.warn({path:n},"addNavItem: item with this action.path already exists, skipping");let r={...e,_source:t};eh.set({...i,items:[...a,r]})}function e$(e){let t=eh.get(),i=t.items||[],a=i.filter(t=>t.action?.path!==e);a.length===i.length?e_.warn({l1Path:e},"removeNavItem: no L1 item found with matching action.path"):eh.set({...t,items:a})}function eI(e,t){for(let i=0;i<e.length;i++){let a=e[i];if(a.action?.path===t||a.activePath===t)return{item:a,parentItem:null,index:i,isL2:!1};let n=a.l2Nav||[],r=n.findIndex(e=>e.action?.path===t||e.activePath===t);if(-1!==r)return{item:n[r],parentItem:a,index:r,isL2:!0}}return null}function eT(e,t,i,a){let n,r=eh.get(),o=r.items||[],s=eI(o,t);if(!s)return void e_.warn({targetPath:t},`${e}: no nav item found with matching action.path or activePath`);let{item:l,parentItem:c,isL2:d}=s,u=l._l3Prepended||[],p=l._l3Appended||[],h=l._l3Removed||[];if("set"===a)n=i,u=[],p=i,h=[];else if("append"===a){n=[...l.l3Nav||[],...i],p=[...p,...i];let e=new Set(i.map(e=>e.path));h=h.filter(t=>!e.has(t))}else if("prepend"===a){n=[...i,...l.l3Nav||[]],u=[...i,...u];let e=new Set(i.map(e=>e.path));h=h.filter(t=>!e.has(t))}else e_.warn({mode:a},`${e}: unrecognized merge mode, defaulting to set`),n=i,u=[],p=i,h=[];let m={...l,l3Nav:n,_l3Prepended:u,_l3Appended:p,_l3Removed:h},f=[...o];if(d){let e=o.indexOf(c),t=c.l2Nav||[],i=t.indexOf(l),a=[...t];a[i]=m,f[e]={...c,l2Nav:a}}else f[o.indexOf(l)]=m;eh.set({...r,items:f})}function eS(e,t){eT("setL3Nav",e,t,"set")}function eC(e,t){eT("appendL3Nav",e,t,"append")}function eM(e,t){eT("prependL3Nav",e,t,"prepend")}function eE(e,t){let i=eh.get(),a=i.items||[],n=eI(a,e);if(!n)return void e_.warn({targetPath:e},"removeL3Nav: no nav item found with matching action.path or activePath");let{item:r,parentItem:o,isL2:s}=n,l=new Set(t),c=(r.l3Nav||[]).filter(e=>!l.has(e.path)),d=(r._l3Prepended||[]).filter(e=>!l.has(e.path)),u=(r._l3Appended||[]).filter(e=>!l.has(e.path)),p=[...new Set([...r._l3Removed||[],...t])],h={...r,l3Nav:c,_l3Prepended:d,_l3Appended:u,_l3Removed:p},m=[...a];if(s){let e=a.indexOf(o),t=o.l2Nav||[],i=t.indexOf(r),n=[...t];n[i]=h,m[e]={...o,l2Nav:n}}else m[a.indexOf(r)]=h;eh.set({...i,items:m})}function eA(e){G()?.openChat(e)}function eN(){G()?.closeChat()}function eO(e){G()?.requestSkillExecution(e)}let eD=!1,eP="d6e462a5c3533010cbd77096e940dd8c",eR="c51543a5c3133010cbd77096e940dd43",eL="1b682fe1c3133010cbd77096e940dd18",ez="63242b61c3133010cbd77096e940dd23",ej="e708a3f75372011010baddeeff7b120a",eF="__search__";function eU(e,t){let i=e?.replace(/\/$/,"").split("/").filter(Boolean).pop()||"unknown",a=t?.replace(/^\//,"").split("/")[0]||"unknown";if("classic"===a&&globalThis.window?.location?.search){let e=new URLSearchParams(globalThis.window.location.search).get("target");e&&(a=(e.split("/").pop()?.split("?")[0]||"").replace(/\.do$/,"")||"classic")}return`${i}:${a}`}function eW(e){let t,{pathname:i,search:a,hash:n,origin:r}=e,o="/aiux/ui/",s="/now/nav/ui/",l="/aiux/ui/workspace",c=a,d=n;if(i.startsWith(l+"/")||i===l)t=i.slice(l.length)||"/";else if("/aiux/ui/classic"===i){let e=new URLSearchParams(a).get("target");if(e){let i=e.startsWith("/")?e.slice(1):e;t=`${s}classic/params/target/${encodeURIComponent(i)}`}else t=`${s}classic`;c="",d=""}else t=i.startsWith(o)?s+i.slice(o.length):s;return r+t+c+d}function eH(e,t){let i;function a(...n){clearTimeout(i),i=setTimeout(()=>e(...n),t)}return a.cancel=()=>clearTimeout(i),a}let eB="__workspaces__",eK="__admin__",eq=l("Favorites"),eG="experience",eQ=l("Toggle previewing our new design"),eY=l("Action executed successfully"),eV=[{id:eL,icon:"star",label:l("Favorites"),pinName:"favorites"},{id:eR,icon:"change",label:l("History"),pinName:"recents"},{id:eP,icon:"grid",label:l("All"),pinName:"all"}],eZ=Object.freeze({ALL:"all",FAVORITES:"favorites",RECENTS:"recents",WORKSPACES:"workspaces",ADMIN:"admin"});eZ.FAVORITES,eZ.RECENTS,eZ.WORKSPACES,eZ.ADMIN;let eX="nav-all-menu-panel",eJ=e=>`nav-all-menu-tab-${e}`,e0="nav-all-menu-overflow-trigger",e1="nav-all-menu-overflow-menu",e2="aiux-nav-create-tab",e3={icon:"bug",title:"Debugging",l2Nav:[{title:"Header",action:{type:"navigate",path:"/debugging/header"}}]},e4={unifiedExperience:!0,menus:!0,userAvatar:!0,preferences:!0,themeToggle:!0,darkTheme:!0,logo:!1,prefetch:!0,userSession:!0,concoursePicker:!0,domainPickerOnly:!1,filter:!0,userPreferences:!0,notifications:!0,chat:!0,wmBasedChat:!1,pinning:!0,profile:!0,shortcutCommands:!0,keyboardShortcuts:!0,aiuxToggle:!0,helpPanel:!0,helpAssistant:!0,whatsNew:!0,guidedTours:!0,dragDrop:!0,horizontalContextualNav:!1,announcements:!1,skipLink:!0,onboarding:!0},e5={animation:"dots",color:null,target:"content"},e6=[{icon:"home",title:l("Home"),action:{type:"navigate",path:"/home"}},{icon:"bell",title:l("Notifications"),action:{type:"event",name:"open-notifications-menu"},badge:!0},{icon:"sn-sparkmoji-logo",title:l("Ask Otto"),action:{type:"event",name:"open-chat"},badge:!0}],e9=[{id:eP,icon:"grid",label:l("All")},{id:eL,icon:"star",label:l("Favorites")},{id:eR,icon:"change",label:l("History")},{id:eB,icon:"window",label:l("Workspaces")},{id:eK,icon:"shield",label:l("Admin")}],e8={icon:"magnifying-glass",title:l("Search"),action:{type:"menu-tray",menuId:eF},testId:"nav-global-search"};function e7(e){let t=e.indexOf("?"),i=e.indexOf("#"),a=-1===t&&-1===i?e.length:-1===t?i:-1===i?t:Math.min(t,i);return e.slice(0,a)}let te="deep",tt="back";function ti(e,t){if(!e||!t)return{l1:null,l2:null};let i=e7(t);for(let t of e){if(t.l2Nav?.length){let e=t.l2Nav.find(e=>e.action?.path===i);if(e)return{l1:t,l2:e};let a=null,n=-1;for(let e of t.l2Nav)if(function(e,t){let i=e7(t),a=e.action?.path;return!!(a===i||a&&i.startsWith(a+"/"))||(e.l3Nav?.some(e=>e.path===i)??!1)}(e,i)){let t=e.action?.path?.length??0;t>n&&(a=e,n=t)}if(a)return{l1:t,l2:a}}if(t.action?.path===i)return{l1:t,l2:null}}for(let t of e){let e=t.activePath||t.action?.path;if(e&&(i===e||i.startsWith(e+"/")))return{l1:t,l2:null}}return{l1:null,l2:null}}function ta(e,t=[],i=null){let a;if(Array.isArray(e))return{l3Nav:e,showHeader:!1,title:"",pageTitle:"",metadata:[],openInSidebar:!1,actionsDropdown:!1,hideToolbar:!1,transient:!1};let n=e?.l3,r=i?.l3Nav;if(n){let e=i?._l3Prepended!==void 0||i?._l3Appended!==void 0,t=e&&i?._l3Prepended||[],r=e?i?._l3Appended||[]:i?.l3Nav||[],o=i?._l3Removed||[];if(0===t.length&&0===r.length&&0===o.length)a=n;else{let e=new Set(o),i=n.filter(t=>!e.has(t.path)),s=new Set(i.map(e=>e.path)),l=t.filter(t=>!s.has(t.path)&&!e.has(t.path)),c=new Set(l.map(e=>e.path));a=[...l,...i,...r.filter(t=>!s.has(t.path)&&!e.has(t.path)&&!c.has(t.path))]}}else a=t||r||[];let o=e?.header===!0||a.length>0||i?.header===!0,s=e?.title||"",l=e?.pageTitle||"",c=e?.metadata||[],d=e?.openInSidebar===!0,u=e?.actionsDropdown===!0;return{l3Nav:a,showHeader:o,title:s,pageTitle:l,metadata:c,openInSidebar:d,actionsDropdown:u,hideToolbar:e?.hideToolbar===!0||i?.hideToolbar===!0,transient:e?.transient===!0}}function tn(e,t,i,a){if(!e)return"deep";let n=a?e7(a):a;if(!t)return e.action?.path===n?"l1":"deep";if(t.action?.path===n)return"l2";let r=t?.l3Nav?.length>0||i?.some(e=>e.path===t?.action?.path)?i:[];return r?.some(e=>e.path===n)?"l3":"deep"}function tr(e,t){if(!e||!t)return null;let i=e7(t),a=e.findIndex(e=>e.path===i);if(-1!==a)return{tab:e[a],index:a};let n=-1,r=0;for(let t=0;t<e.length;t++){let{path:a}=e[t];a&&i.startsWith(a+"/")&&a.length>r&&(n=t,r=a.length)}return n>=0?{tab:e[n],index:n}:null}function to({l1:e,l2:t,l3Nav:i}={}){if(t)return!1;let a=e?.action?.path;return!!a&&!!i?.some(e=>e.path===a)}function ts(e){if(!e||"string"!=typeof e)return"";let t=`/${e}`;return/^\/[a-zA-Z0-9._\-/]+$/.test(t)?t:""}function tl(e){return!!e&&"string"==typeof e&&(e.includes("ccbd67c4408f4110f8775ad9518199da.iix")||e.includes("77eb60325f210100a9ad2572f2b477ae.iix")||e.includes("0850a525073220105fca5d1aead30038"))}function tc(e){let t=e?.action;return!!t&&("modal"===t.type&&"scope-picker"===t.component||"event"===t.type&&"open-chat"===t.name)}function td(e){if(!e||r)return;let t=e.querySelector('button:not([disabled]):not([tabindex="-1"]), [href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])');(t||e).focus?.()}function tu(){return"true"===($("aiux.lab_preferences.enabled")||"").toLowerCase()}function tp(){if("true"!==$("aiux.experience.__experiment_active")&&tu()){let e=I("aiux.experience");if(null!=e&&""!==e)return"true"===String(e).toLowerCase()}let e=$("aiux.experience");return null==e||""===e?eD:"true"===String(e).toLowerCase()}function th(){if(tu()){let e=I("aiux.nav.semantic_search.enabled");if(null!=e&&""!==e)return"true"===String(e).toLowerCase()}return"true"===String($("aiux.nav.semantic_search.enabled")).toLowerCase()}let tm="aiux.nav.menuCache",tf="aiux.nav.menuCache.backend",tg="menu";function tb(){try{return!!globalThis.window?.localStorage}catch{return!1}}function tv(){try{return!!globalThis.window?.indexedDB}catch{return!1}}function t_(){if(!tv())return"localStorage";if(!tb())return"idb";try{return"localStorage"===window.localStorage.getItem(tf)?"localStorage":"idb"}catch{return"idb"}}function ty(e){if(tb())try{window.localStorage.setItem(tf,e)}catch{}}function tx(e,t){return{value:e,flushstamp:t,ts:Date.now(),version:1}}function tw(e){if(e&&1===e.version&&"number"==typeof e.ts&&Date.now()-e.ts<864e5)return{value:e.value,flushstamp:e.flushstamp}}function tk(){return e||(tv()?((e=new Promise((e,t)=>{let i;try{i=window.indexedDB.open("aiux.nav",1)}catch(e){t(e);return}i.onupgradeneeded=e=>{e.target.result.createObjectStore(tg)},i.onsuccess=t=>e(t.target.result),i.onerror=e=>t(e.target.error),i.onblocked=()=>t(Error("indexedDB blocked"))})).catch(()=>{e=void 0}),e):Promise.reject(Error("indexedDB unavailable")))}async function t$(){try{let e=await tk();return await new Promise(t=>{let i=e.transaction(tg,"readonly").objectStore(tg).get(tm);i.onsuccess=()=>t(tw(i.result)),i.onerror=()=>t(void 0)})}catch{return}}async function tI(e,t){try{let i=await tk();return await new Promise(a=>{let n=i.transaction(tg,"readwrite").objectStore(tg).put(tx(e,t),tm);n.onsuccess=()=>a(!0),n.onerror=()=>a(!1)})}catch{return!1}}async function tT(){if(tv())try{let e=await tk();await new Promise(t=>{let i=e.transaction(tg,"readwrite").objectStore(tg).delete(tm);i.onsuccess=()=>t(),i.onerror=()=>t()})}catch{}}async function tS(){if(!r)return"idb"===t_()?t$():function(){if(tb())try{let e=window.localStorage.getItem(tm);if(!e)return;let t=JSON.parse(e),i=tw(t);if(!i)return void window.localStorage.removeItem(tm);return i}catch{return}}()}async function tC(e,t){r||("localStorage"===t_()?tM(e,t):await tI(e,t)||(ty("localStorage"),tM(e,t)))}function tM(e,t){if(tb())try{window.localStorage.setItem(tm,JSON.stringify(tx(e,t)))}catch{}}async function tE(){if(!r){if(tb())try{window.localStorage.removeItem(tm)}catch{}await tT()}}async function tA({replace:e}={}){if(r)return;await tE();let t=globalThis.window?.location;t&&(e?t.replace(e):t.reload())}async function tN(e){if(!r){if("localStorage"===t_())return tD(e);try{let t=await tk();return await new Promise(i=>{let a=t.transaction(tg,"readonly").objectStore(tg).get(e);a.onsuccess=()=>i(a.result),a.onerror=()=>i(void 0)})}catch{return tD(e)}}}async function tO(e,t){if(!r){if("localStorage"===t_())return void tP(e,t);try{let i=await tk();if(await new Promise(a=>{let n=i.transaction(tg,"readwrite").objectStore(tg).put(t,e);n.onsuccess=()=>a(!0),n.onerror=()=>a(!1)}))return}catch{}ty("localStorage"),tP(e,t)}}function tD(e){if(tb())try{let t=window.localStorage.getItem(e);return t?JSON.parse(t):void 0}catch{return}}function tP(e,t){if(tb())try{window.localStorage.setItem(e,JSON.stringify(t))}catch{}}let tR=Object.freeze({IMPERSONATE:"/api/now/ui/impersonate",ELEVATE_ROLES:"/api/now/ui/impersonate/role",APPLICATION_PICKER:"/api/now/ui/concoursepicker/application",UPDATE_SET_PICKER:"/api/now/ui/concoursepicker/updateset"}),tL={Accept:"application/json","Content-Type":"application/json"};class tz extends Error{constructor(e,t,i){super(`${e} failed (${t})${i?`: ${i}`:""}`),this.name="SessionActionError",this.action=e,this.status=t,this.errorMessage=i}}async function tj(e){try{let t=await e.json();return t?.error?.message}catch{return}}async function tF(e){if(!e)return;let t=await T(`${tR.IMPERSONATE}/${e}`,{method:"POST",headers:tL,credentials:"include"});if(!t.ok){let e=await tj(t);throw new tz("Impersonation",t.status,e)}let i=await t.json().catch(()=>({}));if(!i?.result)throw new tz("Impersonation",t.status,i?.error?.message);!function(){if(void 0===globalThis.window||void 0===globalThis.BroadcastChannel)return;let e=new globalThis.BroadcastChannel("aiux-impersonation-change");e.postMessage({type:"impersonation-changed"}),e.close()}();let a=globalThis.window?.location.origin;await tA(a?{replace:a}:void 0)}async function tU(e){if(null==e)return;let t=await T(tR.ELEVATE_ROLES,{method:"POST",headers:tL,credentials:"include",body:JSON.stringify({roles:e})});if(!t.ok){let e=await tj(t);throw new tz("Elevate roles",t.status,e)}await tA()}async function tW(e){if(!e)return;let t=await T(tR.APPLICATION_PICKER,{method:"PUT",headers:tL,credentials:"include",body:JSON.stringify({app_id:e})});if(!t.ok){let e=await tj(t);throw new tz("Application change",t.status,e)}await tA()}async function tH(e){if(!e)return;let t=await T(tR.UPDATE_SET_PICKER,{method:"PUT",headers:tL,credentials:"include",body:JSON.stringify({sysId:e})});if(!t.ok){let e=await tj(t);throw new tz("Update set change",t.status,e)}tB("update-set")}function tB(e){"function"==typeof globalThis.document?.dispatchEvent&&globalThis.document.dispatchEvent(new CustomEvent("aiux:concourse-picker-stale",{detail:{picker:e}}))}let tK="now-ai-canvas-window",tq="modal",tG="DEFAULT";function tQ(e,t,i){if("u">typeof window&&window.nowWindowManager)if(i){let e=window.nowWindowManager.windowsState,t=e?.modalWindows?.includes(tK),i=e?.leftDockId===tK;t?window.nowWindowManager.toggleModal(tK,!1,!0):i&&window.nowWindowManager.toggleDock(tK,"left",!0),window.nowWindowManager.setWindowProperties(tK,{chromeless:!1})}else if(t)window.nowWindowManager.toggleModal(tK,!0,!0),window.nowWindowManager.setWindowProperties(tK,{chromeless:!1});else if(e===tG){let e=window.nowWindowManager?.windowsState,t=e?.leftDockId===tK;e?.modalWindows?.includes(tK)&&window.nowWindowManager.toggleModal(tK,!1,!0),t||window.nowWindowManager.toggleDock(tK,"left",!0),window.nowWindowManager.setWindowProperties(tK,{chromeless:!1})}else window.nowWindowManager.toggleModal(tK,!0,!0),window.nowWindowManager.setWindowProperties(tK,{chromeless:!0})}let tY="nav:close-menus";class tV{constructor(e,t){let i="function"==typeof t?{close:t}:t;this._host=e,this._close=i.close,this._isOpen=i.isOpen??(()=>!0),this._outsideAnchors=i.outsideAnchors??(e=>[e]),this._outsideEvent=i.outsideEvent??"click",this._enableOutsideClick=i.outsideClick??!0,this._broadcastHandler=null,this._outsideHandler=null,e.addController?.(this)}hostConnected(){this._broadcastHandler=()=>{this._isOpen(this._host)&&this._close.call(this._host,this._host)},globalThis.window?.addEventListener?.(tY,this._broadcastHandler),this._enableOutsideClick&&(this._outsideHandler=e=>{if(!this._isOpen(this._host))return;let t=this._outsideAnchors(this._host)||[],i=e.composedPath();t.some(e=>e&&i.includes(e))||this._close.call(this._host,this._host)},globalThis.document?.addEventListener?.(this._outsideEvent,this._outsideHandler,!0))}hostDisconnected(){this._broadcastHandler&&(globalThis.window?.removeEventListener?.(tY,this._broadcastHandler),this._broadcastHandler=null),this._outsideHandler&&(globalThis.document?.removeEventListener?.(this._outsideEvent,this._outsideHandler,!0),this._outsideHandler=null)}}let tZ=Object.freeze({LG:"lg",MD:"md",SM:"sm"});class tX extends S{static{this.styles=o`
|
|
86
86
|
.hnav-menu-btn {
|
|
87
87
|
color: currentColor;
|
|
88
88
|
font-family: var(--font-servicenow, 'ServiceNow Sans'), sans-serif;
|
|
@@ -10600,7 +10600,7 @@ ${t}`}_renderAllMenuExperienceHeader(){return lC(this,{title:this.elevatedNavAct
|
|
|
10600
10600
|
>
|
|
10601
10601
|
${Q({name:t,size:"sm"})}
|
|
10602
10602
|
</button>
|
|
10603
|
-
`}function dD(e){if(!Array.isArray(e.tabs)||0===e.tabs.length)return!1;let t=(e.currentPath||"").replace(/\/$/,"");if(!t)return!1;let i=dA(e),a=i?.tabId||null;return e.tabs.some(e=>{let i=(e?.path||e?.route?.url||"").replace(/\/$/,""),n=a&&e.id===a;return i&&i===t&&n})}function dP(e){return dA(e).tabId||null}function dR(e){return dP(e)||"base"}function dL(e){let t=eh.get()?.horizontalNav;return t?at({basePath:t.basePath,instanceEnabled:t.instanceEnabled,userToggleEnabled:t.userToggleEnabled,userPref:I("aiux.ainpx.isolated_nav.enabled")}):{active:!1,userToggleEnabled:!1}}function dz(e){let t=eh.get()?.elevatedNav;return t?rK({instanceEnabled:t.instanceEnabled,userToggleEnabled:t.userToggleEnabled,userPref:I("aiux.ainpx.glide.elevated_nav.enabled")}):{active:!1,userToggleEnabled:!1}}function dj(e){return ti(eh.get().items,e.currentPath)}function dF(e){let t=eh.get();return e._headerConfigByScope[dR(e)]??function(e){let t=globalThis.window??globalThis,i=e.loaderScopeKey,a=t.__LAYOUT_DATA_BY_SCOPE__?.[i]||t.__LAYOUT_DATA__||{};for(let e of Object.values(t.__COMPONENT_DATA_BY_SCOPE__?.[i]||t.__COMPONENT_DATA__||{}))if(e?.headerConfig)return e.headerConfig;for(let e of Object.values(a))if(e?.headerConfig)return e.headerConfig;return null}(e)??t?.headerConfig??null}function dU(e){let t=function(){if(r||void 0===globalThis.window)return null;try{let e=new URL(globalThis.window.location.href),t=e.searchParams.get("sysparm_userpref_module");if(t)return t;let i=e.searchParams.get("target");if(!i)return null;return new URL(i,globalThis.window.location.origin).searchParams.get("sysparm_userpref_module")}catch{return null}}();if(t)return t;let{l1:i,l2:a}=dj(e);return a?.id?a.id:i?.id?i.id:function(e){if(!e)return null;let t=/^\/list\/([^/?#]+)/.exec(e);if(!t)return null;let i=`${t[1].toLowerCase()}_list.do`,a=eg.get()?.menuData?.[eP];if(!a?.length)return null;let n=null,r=nP(a,e=>{let t=e.route?.params?.target;return e.route?.route==="classic"&&"string"==typeof t&&!!t.toLowerCase().startsWith(i)&&(n??=e,!/[?&]sysparm_query=/i.test(t))});return r?.id??n?.id??null}(e.currentPath)}function dW(e){let t=e.currentPath;if(!t)return null;let i=/^\/record\/([^/?#]+)\/([^/?#]+)/.exec(t);if(i){let[,e,t]=i;return`${e.toLowerCase()}.do?sys_id=${t}`}if(r||!globalThis.window)return null;let a=null;if(t.startsWith("/classic"))try{let e=new URL(globalThis.window.location.href).searchParams.get("target");e&&(a=e.replace(/^\//,""))}catch{}if(null==a){let e=globalThis.window.location.pathname;a=e?e.replace(/^\//,""):null}var n=a;if(!n)return null;let o=function(e,t=nR){if("string"!=typeof e||!e)return null;let i=e.replace(/^\//,"");if(i.includes("://"))return null;let[a,n=""]=i.split("?"),r=new URLSearchParams(n);for(let e of t)r.delete(e);for(let[e,t]of[...r])""===t&&r.delete(e);return{pathname:"/"+a,params:Object.fromEntries(r)}}(n);if(!o)return null;let s=o.pathname.replace(/^\//,""),l=new URLSearchParams(o.params).toString();return l?`${s}?${l}`:s}function dH(e){if(!e.currentPath?.startsWith("/classic"))return null;let t=eg.get()?.menuData?.[eP];if(!t?.length)return null;let i=dU(e);if(i){let e=nP(t,e=>e.id===i);if(e?.label)return e.label}let a=dW(e);if(a){let e=a.toLowerCase().replace(/^\//,""),i=nP(t,t=>{let i=t.route?.params?.target??t.route?.url;return"string"==typeof i&&i.toLowerCase().replace(/^\//,"").startsWith(e)});if(i)return i.route?.context?.experienceName??i.label??null}return null}function dB(e){return e?.renderRoot?.querySelector("aiux-nav-sidebar")?.menuData?.[eL]??eg.get()?.menuData?.[eL]??null}function dK(e,t){if(!t)return null;let i=nP(dB(e),e=>{if(e.moduleId)return!1;let i=e.route?.params?.target??e.route?.url;return"string"==typeof i&&nA(i,t,nR)});return i?.id??null}function dq(e){return e&&"base"!==e?e.startsWith("tab:")?e:`tab:${e}`:"base"}function dG(e){let t=dq(e);if("base"===t)return null;let i=t.slice(4).replace(/[^a-zA-Z0-9_-]/g,"-");return`panel-tab-${i}`}function dQ(e,t){e.activeModal=t}let dY=k("nav-layout");async function dV(e,t){let{item:i}=t.detail;if(e._trackNavEvent("menu-item-click",{title:i.title||"",actionType:i.action?.type||"",path:i.action?.path||""}),i.action?.type==="navigate"){if(i.action.href){if(!r){let{browserNavigate:e}=await import("/aiux/assets/core/aiux-client-B9ipFXGK.js");await e(i.action.href)}return}e._navHistory.requestReset();try{await dN(e,i.action.path)}catch(e){dY.error({error:e.message},"Navigation error")}}else if(i.action?.type==="modal")dQ(e,i.action.component);else if(i.action?.type==="event"&&i.action?.name==="open-notifications-menu"){e._notificationsAnchorRect=t.detail?.triggerRect||null,e._notificationsSidebarCollapsed=t.detail?.sidebarCollapsed??!1;let i=e._notificationsOpen;e._notificationsOpen=!e._notificationsOpen,!i&&e._notificationsOpen&&e._notificationController._fetchNotifications()}else i.action?.type==="event"&&i.action?.name==="open-chat"?e.chatController?.openChat():i.action?.type==="menu-tray"&&i.action?.menuId===eF&&e.dispatchEvent(new CustomEvent("nav-search-open",{detail:{triggerRect:t.detail?.triggerRect},bubbles:!0,composed:!0}))}function dZ(e,t){let i=t.detail?.url;if(!i)return;t.preventDefault();let a=i.startsWith("/")?i:`/${i}`,n="/aiux/ui",r=globalThis.window?.__BASE_PATH__??"",o=""===r||r===n,s=!!globalThis.window?.__CROSS_SERVICE__,l=(t,i)=>{if(o||s)return void e.navigate(o?t:`${n}${t}`,{query:i});let a=i&&Object.keys(i).length?`?${new URLSearchParams(i)}`:"";globalThis.window?.location.assign(`${n}${t}${a}`)};if(/^\/aiux(?:-\d+)?\/[^/]+/.test(a)){globalThis.window&&globalThis.window.location.assign(a);return}if(a.startsWith("/classic"))return void l("/classic",ra(a));if(a.startsWith("/now")){let t=`/workspace${a}`;l(t,ri(t,dA(e)));return}if(/^\/(list|record)\/[^/]+/.test(a))return void l(a,ri(a,dA(e)));if(i7($("aiux.ui.lit_record_list.enabled"))){let t=a.match(/^\/?(\w+)_list\.do/);if(t){let i=`/list/${t[1]}`;l(i,ri(i,dA(e)));return}let i=a.match(/^\/?(\w+)\.do\?.*sys_id=([^&]+)/);if(i&&"-1"!==i[2]){let t=`/record/${i[1]}/${i[2]}`;l(t,ri(t,dA(e)));return}}l("/classic",{target:a})}function dX(e,{detail:{path:t,stackIndex:i}}){if(!e._router||t===e._router.currentPath)return;let a=dR(e);e._navHistory.truncateToIndex(i,a);let n={...dA(e)||{}};delete n.tabId,e._router.navigate(t,{query:n})}function dJ(e,t){let i=dq(t);if(e._panelHosts.has(i))return!0;let a=dG(i),n=e.querySelector?.(`[slot="${a}"], section[data-tab-instance="${i}"], section[data-tab-instance="${t}"]`);return!!n&&(n.setAttribute?.("slot",a),e._panelHosts.set(i,n),!0)}function d0(e,t){let i=t||"base";e._activateContextScope?.(i),e.setAttribute("loader-scope-key",i)}function d1(e){let t=j.get(),i=t?.sys_id||"anonymous";return`aiux-nav-tabs:${e.localName||"layout"}:${i}`}function d2(e){!r&&globalThis.window&&tO(d1(e),{version:1,tabs:e.tabs.map(({id:e,title:t,path:i,query:a,originPath:n,originQuery:r})=>({id:e,title:t,path:i,query:a,originPath:n,originQuery:r})),tabsCollapsed:!0===e.tabsCollapsed,appGroupsCollapsed:Array.from(e.appGroupsCollapsed||[])})}function d3(e,t){let i=e.tabs.find(e=>e.id===t);if(!i)return;e.activeTabId=t,d0(e,t),d2(e);let a=n7(i.query,t),n=dJ(e,t),r="/classic"===i.path,o=(i.path||"").startsWith("/workspace");(r?n:!o&&(i.pageTagName||n))?e.navigate(i.path,{query:a,allowTabId:!0,shallow:!0}):e.navigate(i.path,{query:a,allowTabId:!0})}function d4(e,t){let i=t.detail?.tabId;i&&d3(e,i)}function d5(e,t){let i=t.detail?.tabId;i&&function(e,t){let i,a,n,r,o=e.tabs,s=o.findIndex(e=>e.id===t);if(-1===s)return;let l=o[s];i=dq(`tab:${t}`),a=e._panelHosts.get(i),a?.remove&&a.remove(),(r=(n=dG(i))?e.querySelector?.(`[slot="${n}"]`):Array.from(e.children||[]).find(e=>!e.getAttribute?.("slot")))&&r!==a&&r.remove?.(),e._panelHosts.delete(i),e._navHistory.deleteTab(t),delete e._pageActionsByScope[t],delete e._headerConfigByScope[t];let c=dP(e)===t,d=o.filter(e=>e.id!==t);if(e.tabs=d,!c)return d2(e);let u=d[s-1]||d[s]||null;if(u){e.activeTabId=u.id,d0(e,u.id),d2(e),e.navigate(u.path,{query:n7(u.query,u.id),allowTabId:!0});return}d2(e),e.activeTabId=null,d0(e,null);let p=l?.originPath,h=e.basePage?.path,m=p&&p!==l?.path?p:h&&h!==l?.path?h:"/home",f=re(m===p?l?.originQuery||{}:m===h&&e.basePage?.query||{});e.navigate(m,{query:f})}(e,i)}function d6(e){e.tabsCollapsed=!e.tabsCollapsed,d2(e)}function d9(e,t){let i=t.detail?.groupId;if(!i)return;let a=new Set(e.appGroupsCollapsed);a.has(i)?a.delete(i):a.add(i),e.appGroupsCollapsed=a,d2(e)}function d8(e,t){let i=t.detail?.tabs;i&&Array.isArray(i)&&(e.tabs=i,d2(e))}function d7(e){let t=(e||"").split("/").filter(Boolean).pop();return t?t.split(/[-_]/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):l("New tab")}function ue(e,t,i){t?.setAttribute&&(t.setAttribute("loader-scope-key",i),t.querySelectorAll?.("[loader-scope-key]").forEach(e=>e.setAttribute("loader-scope-key",i)))}function ut(e,t){!function(e,{title:t,route:i}={}){let a="string"==typeof i&&i.length>0,n=e.currentPath,r=rt(dA(e)),o=a?i:e.currentPath;if(!o)return;let s=o===e.currentPath,l=s?rt(dA(e)):{},c=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,d={id:c,title:t||d7(o),path:o,query:l,originPath:n,originQuery:r,pageTagName:s&&e._currentPage?.tagName||null,layoutChain:s&&e._currentLayoutChain||[]};e.tabs=[d,...e.tabs],d2(e);let u=s&&function(e,t){let i=e._panelHosts.get("base");if(!i)return!1;let a=`tab:${t}`,n=e._panelHosts.get(a);n&&n!==i&&(n.remove?.(),e._panelHosts.delete(a));let r=dG(a);return r&&i.setAttribute?.("slot",r),e._panelHosts.delete("base"),e._panelHosts.set(a,i),ue(e,i,t),e.basePage=null,!0}(e,c);u&&(e.activeTabId=c,d0(e,c)),e.navigate(o,{query:n7(l,c),allowTabId:!0,replace:s,...u?{shallow:!0}:{}})}(e,{title:t.detail?.title,route:t.detail?.route})}function ui(e,t){if(r)return;let i=e.currentPath||"/aiux/ui/classic",a=t.detail?.target;oU(i,a?`?${new URLSearchParams({target:a}).toString()}`:"")}let ua=k("nav-layout");function un(e){let t=e.renderRoot?.querySelector("aiux-nav-sidebar"),i=t?.menuData;if(!i){e._contextualNavFavorited=!1,e._contextualNavCanFavorite=!0,e._contextualNavMatchedLabel="",e._contextualNavFavoriteItem=null;return}let a=`${e.currentPath||""}${dE(e)}`,n=nD(Object.entries(i).filter(([e])=>e!==eL&&e!==eR).flatMap(([,e])=>e),a),o=nD(i[eL],a);o&&!r&&ua.debug({browserUrl:a,matchedLabel:o.label,matchedRoute:o.route,matchedUrl:o.url},"Favorite matched"),e._contextualNavFavorited=!!n?.favorited||!!o,e._contextualNavFavoriteItem=o||n,e._contextualNavCanFavorite=!n||!1!==n.canFavorite,e._contextualNavMatchedLabel=n?.label||""}function ur(e,t,{path:i,query:a,pageTagName:n,layoutChain:r}){let o=dq(t),s=e._panelHosts.get(o);if(!s)return!1;let l=e._panelHosts.get("base");return l&&(l.remove?.(),e._panelHosts.delete("base")),s.removeAttribute?.("slot"),e._panelHosts.delete(o),e._panelHosts.set("base",s),ue(e,s,"base"),e.basePage={path:i,query:re(a),pageTagName:n||e.basePage?.pageTagName||null,layoutChain:r||e.basePage?.layoutChain||[]},!0}let uo=k("nav-layout");function us(e,t){uo.debug({event:"classic:target-changed",url:`${e.currentPath}${dE(e)}`},"Classic target changed, recomputing favorite");let i=e.activeTabId,a=null;if(i){let a=e.tabs.find(e=>e.id===i);if(a){let n=t?.detail?.target,r=re(dA(e));n&&(r.target=n),ur(e,i,{path:e.currentPath,query:r,pageTagName:a.pageTagName,layoutChain:a.layoutChain})}}else a=dP(e);e.activeTabId=a,d0(e,a),un(e),e.requestUpdate()}function ul(e,t){let{isVisible:i,initialized:a}=t.detail||{};if(!e.isHomePage)return;let n=!!i,r=void 0===a||!!a;(n!==e._homeChatAnchorVisible||r!==e._homeChatAnchorInitialized)&&(e._homeChatAnchorVisible=n,e._homeChatAnchorInitialized=r,e.requestUpdate())}function uc(e,t,i,a){return"hybrid"===e._homeChatPolicy&&(a.setFullscreen(!1),a.switchMode("DEFAULT"),!0)}function ud(e,t){let i=t?.detail?.menuId;if(!i)return;let a=e.renderRoot?.querySelector("aiux-nav-sidebar");if(!a?.openMenuTrayFor)return;let n=t?.detail?.triggerLeft??null,r=t?.detail?.triggerBottom??null;e._trackNavEvent("horizontal-nav:menu-tray-toggle",{menuId:i}),a.openMenuTrayFor(i,{left:n,bottom:r})}function uu(e,t){let i=t?.detail?.action;("scope-picker"===i||"chat"===i)&&(e._trackNavEvent("horizontal-nav:utility-action",{action:i}),"scope-picker"===i?dQ(e,"scope-picker"):"chat"!==i||r||globalThis.window?.dispatchEvent(new CustomEvent("aiux:open-chat")))}let up=k("nav-layout");function uh(e,{moduleId:t,url:i,add:a,title:n}){let r,o=e._horizontalNavFavoritedOverride;if(e._horizontalNavFavoritedOverride=a,a)r=t?nx(t,n):nw(i,n);else if(t)r=n$(t);else{let t=dK(e,i);r=t?nk(t):Promise.resolve()}r.then(()=>{let t;return t=e.renderRoot?.querySelector("aiux-nav-sidebar"),void(t?.fetchFullMenuData&&t.fetchFullMenuData())}).catch(t=>{e._horizontalNavFavoritedOverride=o,up.error({error:t.message},a?"Failed to favorite from horizontal nav":"Failed to unfavorite from horizontal nav")})}function um(e){let t=dH(e);if(t)return t;let i=e._horizontalNavTitleOverrideByScope[dR(e)];if(i)return i;let{l1:a,l2:n}=dj(e);return n?.title||a?.title||""}function uf(e,t){let i=dU(e),a=i?null:dW(e);if(!i&&!a)return;let n=!!t?.detail?.currentlyFavorited;e._trackNavEvent("horizontal-nav:favorite-toggle",{currentlyFavorited:n});let r=I("glide.ui.favorites.quick_edit_enabled");if(null==r||i7(r)){e._horizontalNavFavoritePopup={targetElement:t?.detail?.anchorEl??null,defaultTitle:um(e),moduleId:i,url:a,deleteFavorite:n};return}uh(e,{moduleId:i,url:a,add:!n,title:um(e)})}function ug(e){let{l1:t,l2:i}=dj(e),a=dF(e),n=a?.favTitle||"";if(n)return n;let{title:r,pageTitle:o}=ta(a,(i||t)?.l3Nav,i||t);return o||r||i?.label||""}function ub(e){if(dD(e)){let i=dA(e)?.tabId||null,a=i?e.tabs.find(e=>e.id===i):null;if(a){var t;let i,n;t=a.id,-1===(n=(i=e.tabs).findIndex(e=>e.id===t))||(ur(e,t,i[n]),e._navHistory.deleteTab(t),delete e._pageActionsByScope[t],delete e._headerConfigByScope[t],e.tabs=i.filter(e=>e.id!==t),e.activeTabId=null,d0(e,null),d2(e),function(){if(r)return;let e=new URL(globalThis.location.href);e.searchParams.has("tabId")&&(e.searchParams.delete("tabId"),globalThis.history.replaceState(globalThis.history.state,"",e.toString()))}()),e.requestUpdate()}return}let i=function(e){if(!Array.isArray(e.tabs)||0===e.tabs.length)return null;let t=(e.currentPath||"").replace(/\/$/,"");if(!t)return null;let i=dA(e)||{};return e.tabs.find(e=>{let a=(e?.path||e?.route?.url||"").replace(/\/$/,"");return!!a&&a===t&&("/classic"!==t||e.query?.target===i.target)})??null}(e);if(i)d3(e,i.id);else{let t=ug(e)||function(e){let{l1:t,l2:i}=dj(e),{title:a,pageTitle:n}=ta(dF(e),(i||t)?.l3Nav,i||t);return n||a||i?.label||""}(e);globalThis.window?.dispatchEvent(new CustomEvent(e2,{detail:{title:t}})),e.requestUpdate()}}let uv=k("nav-layout");async function u_(e,{url:t,title:i,add:a}){if(a){let t=e.renderRoot?.querySelector("aiux-nav-sidebar"),i=nD(t?.menuData?.[eL],`${e.currentPath||""}${dE(e)}`);if(i){e._contextualNavFavorited=!0,e._contextualNavFavoriteItem=i;return}}let n=e._contextualNavFavorited,r=e._contextualNavFavoriteItem;e._contextualNavFavorited=!!a;try{if(a){let a=uy(e,{url:t,title:i});await nv(a)}else{let i=e._contextualNavFavoriteItem?.id;if(!i){uv.warn({url:t},"horizontal-contextual-nav: cannot unfavorite — no matched favorite item id"),e._contextualNavFavorited=n,e._contextualNavFavoriteItem=r;return}await n_(i)}let o=e.renderRoot?.querySelector("aiux-nav-sidebar");o?.fetchFullMenuData&&(await new Promise(e=>setTimeout(e,100)),await o.fetchFullMenuData(),e._contextualNavFavorited=a,e.requestUpdate())}catch(i){e._contextualNavFavorited=n,e._contextualNavFavoriteItem=r,uv.warn({error:i.message,url:t,add:a},"horizontal-contextual-nav: favorite toggle failed")}}function uy(e,{url:t,title:i,group:a}){let{l1:n,l2:r}=dj(e),o=ta(dF(e),(r||n)?.l3Nav,r||n),s=e._contextualNavFavoriteItem,l=s?.color||o.color||r?.color,c=s?.icon||o.icon||r?.icon,d=t.startsWith("now/")||t.startsWith("esc/")||t.startsWith("sn_")||t.includes("/now/")||t.includes("/esc/"),u={title:i,url:t,color:l,icon:c};return d&&(u.ui_type="polaris"),a&&(u.group=a),u}async function ux(e,{url:t,title:i,group:a}){let n=uy(e,{url:t,title:i,group:a}),r=await nv(n);return e._contextualNavFavorited=!0,r?.favorite&&(e._contextualNavFavoriteItem=r.favorite),r}let uw=k("nav-layout");async function uk(e,t){let i=function(){if(void 0===globalThis.window)return"";let e=globalThis.window.location?.pathname||"",t=globalThis.window.location?.search||"",i=nO(`${e}${t}`);return i?i.startsWith("/")?i.substring(1):i:e.substring(1)}();if(!i)return void uw.warn("horizontal-contextual-nav: favorite toggle aborted — no URL");let a=ug(e)||"Page",n=t.detail?.favorited,r=I("glide.ui.favorites.quick_edit_enabled");if(null==r||i7(r)){e._contextualNavFavoritePopup={targetElement:t?.detail?.anchorEl??null,defaultTitle:a,url:i,deleteFavorite:!n};return}u_(e,{url:i,title:a,add:n})}function u$(e,t){let{l1:i,l2:a}=dj(e),{title:n}=ta(dF(e),(a||i)?.l3Nav,a||i);globalThis.window?.dispatchEvent(new CustomEvent(e2,{detail:{title:n||t.detail?.title}}))}function uI(e){e.chatController.deferIfResponding(()=>{!function(e){if(!window.nowWindowManager)return;let t=window.nowWindowManager.windowsState,i=t?.modalWindows?.includes(tK);window.nowWindowManager.toggleModal(tK,!1,!0),i?(e.isChatDetached=!0,e.isFullscreen=!1):(e.isChatDetached=!1,e.isFullscreen=!0)}(e.chatController),e.requestUpdate()})}function uT(e){e.chatController.deferIfResponding(()=>{!function(e){if(!window.nowWindowManager)return;let t=window.nowWindowManager.windowsState;t?.leftDockId===tK?(e.isChatDetached=!0,e.isFullscreen=!1):(e.isChatDetached=!1,e.isFullscreen=!1,e.switchMode(e.CHAT_MODES.DEFAULT))}(e.chatController),e.requestUpdate()})}function uS(e){var t;(t=e.chatController).isChatDetached=!1,t.isFullscreen=!1,t.switchMode(t.CHAT_MODES.OMNI),e.requestUpdate()}function uC(e,t){e._notificationController._handleNotificationsToggle(t)}function uM(e){e._notificationsPinned=!0,e._notificationsOpen=!1,e._trackNavEvent("notifications-pin",{}),rO("aiux.ainpx.notifications_pinned","true").catch(()=>{})}function uE(e){e._notificationsPinned=!1,e._trackNavEvent("notifications-unpin",{}),rO("aiux.ainpx.notifications_pinned","false").catch(()=>{}),e.updateComplete.then(async()=>{let t=e.renderRoot?.querySelector("aiux-nav-sidebar");await t?.updateComplete;let i=t?.renderRoot?.querySelector('[data-menu-anchor-id="notifications"]');if(i){let t=i.getBoundingClientRect();e._notificationsAnchorRect={top:t.top,right:t.right,bottom:t.bottom,left:t.left}}e._notificationsSidebarCollapsed=t?.collapsed??!1,e._notificationsOpen=!0})}function uA(e){e._notificationController._handleToastDismissed()}function uN(e,t){return e._notificationController._handleToastAction(t)}function uO(e,t){return e._notificationController._handleToastSnooze(t)}function uD(e,t){let{path:i,label:a,l1Icon:n}=t.detail??{};i&&e._navHistory.push({path:i,label:a||i,l1Icon:n})}function uP(e,t){let{id:i,path:a,url:n,title:r,label:o,description:s}=t.detail??{},l=n??a;if(!l)return;let c=e.renderRoot?.querySelector("aiux-nav-sidebar");c?._prependHistoryEntry?.({id:i,title:r??o??l,url:l,description:s??""})}async function uR(e,t){let i=t.detail;if(!i?.id)return;let a=e.renderRoot?.querySelector("aiux-nav-sidebar");a?.optimisticAddFavorite(i),await a?.refreshMenu()}async function uL(e,t){let i=t.detail?.id;if(!i)return;let a=e.renderRoot?.querySelector("aiux-nav-sidebar");a?.optimisticRemoveFavorite(i),await a?.refreshMenu()}function uz(e){e.renderRoot?.querySelector("aiux-nav-sidebar")?.refreshMenu()}function uj(e,t){let i=e.renderRoot?.querySelector("aiux-nav-sidebar");!i||t.composedPath?.().includes(i)||i._handleFavoritesEditRequested(t)}function uF(e,t){let i=e._horizontalNavFavoritePopup;if(!i)return;let{name:a}=t.detail,n=(a||i.defaultTitle||"").trim();e._horizontalNavFavoritePopup=null,uh(e,{moduleId:i.moduleId,url:i.url,add:!0,title:n})}function uU(e,{fav:t,groupId:i,identityId:a}){let n=e.renderRoot?.querySelector("aiux-nav-sidebar");n&&(t?.id&&n.optimisticAddFavoriteToGroup?.(t,i,a??t.id),n._handleFavoritesEditRequested?.({detail:{selectId:t?.id??null,expand:!0}}))}let uW=k("nav-layout");async function uH(e,t){let i=e._horizontalNavFavoritePopup;if(!i)return;let{name:a,groupId:n}=t.detail||{},r=(a||i.defaultTitle||"").trim();e._horizontalNavFavoritePopup=null;let o=e._horizontalNavFavoritedOverride;e._horizontalNavFavoritedOverride=!0;try{let t=n?{group:n}:void 0,a=i.moduleId?await (t?nx(i.moduleId,r,t):nx(i.moduleId,r)):await (t?nw(i.url,r,t):nw(i.url,r));uU(e,{fav:a?.favorite,groupId:n,identityId:i.moduleId||a?.favorite?.id})}catch(t){e._horizontalNavFavoritedOverride=o,uW.error({error:t.message},"Failed to favorite from horizontal nav (more)")}}function uB(e){let t=e._horizontalNavFavoritePopup;t&&(e._horizontalNavFavoritePopup=null,uh(e,{moduleId:t.moduleId,url:t.url,add:!1}))}function uK(e){e._horizontalNavFavoritePopup=null}function uq(e){e._horizontalNavFavoritePopup=null}function uG(e,t){let i=e._contextualNavFavoritePopup;if(!i)return;let{name:a}=t.detail,n=(a||i.defaultTitle||"").trim();e._contextualNavFavoritePopup=null,u_(e,{url:i.url,title:n,add:!0})}let uQ=k("nav-layout");async function uY(e,t){let i=e._contextualNavFavoritePopup;if(!i)return;let{name:a,groupId:n}=t.detail||{},r=(a||i.defaultTitle||"").trim();e._contextualNavFavoritePopup=null;try{let t=await ux(e,{url:i.url,title:r,group:n});uU(e,{fav:t?.favorite,groupId:n,identityId:t?.favorite?.id})}catch(e){uQ.error({error:e.message},"Failed to favorite from contextual nav (more)")}}function uV(e){let t=e._contextualNavFavoritePopup;t&&(e._contextualNavFavoritePopup=null,u_(e,{url:t.url,add:!1}))}function uZ(e){e._contextualNavFavoritePopup=null}function uX(e){e._contextualNavFavoritePopup=null}function uJ(e,t){if(!t)return;let i=eh.get()?.features;if(i?.menus===!1)return;let a=e.renderRoot?.querySelector("aiux-nav-sidebar");a?._prependHistoryEntry?.(t)}async function u0(e,t,{retries:i=3,baseDelayMs:a=150}={}){for(let n=0;n<i;n++){try{let i=await T(e,{method:"GET",headers:t});if(i.ok&&202!==i.status){let e=await i.text();if(e)return JSON.parse(e)}}catch{}n<i-1&&await new Promise(e=>setTimeout(e,a*(n+1)))}return{result:{}}}let u1=k("nav-layout"),u2={unifiedExperience:"aiux.experience"};async function u3(e){let t=eh.get()??{},i={...t.features||{}};for(let e of Object.keys(u2))delete i[e];let a={...e4,unifiedExperience:tp(),...i},n=t.items,{defaultLogoFull:r,defaultLogoIcon:o}=t,s={...e5,...t.pageLoader??{}},l=t.headerConfig??null,{protocol:c,hostname:d}=e,u=null;if(a.preferences){let e=I("glide.ui.concourse_picker.recent_items")??"{}",t=I("glide.ui.concourse_picker.max_recent_items");u={timezoneList:[],timezoneCurrent:"",timezoneEnabled:!0,recentConcoursePicker:e,maxRecentItems:t?parseInt(t,10):5}}let p=null;if(u?.recentConcoursePicker)try{p={recentSelections:JSON.parse(u.recentConcoursePicker),maxRecentItems:u.maxRecentItems||5}}catch(e){u1.error({error:e?.message},"Error parsing recent selections")}let h=null;if(!1!==a.concoursePicker){var m;let t={};try{let i=await eu("79c9fd62c7113010099a308dc7c260f1",{},e);t=i?.output?.data?.GlideUserSettingsAccess_Query?.userSettingsAccess??{}}catch{}if(m=t,m?.showApplicationPicker||m?.showUpdateSetPicker||m?.showDomainPicker||m?.showEncryptionPicker||m?.showCryptoModulePicker)try{let[i,a]=await Promise.all([u0(`${c}://${d}/api/now/ui/concoursepicker/concourselist`,F(e)),u0(`${c}://${d}/api/now/ui/concoursepicker/current`,F(e))]);h={concourseData:i.result||{},currentSelections:a.result||{},recentSelections:p?.recentSelections||{},maxRecentItems:p?.maxRecentItems||5,userSettingsAccess:t}}catch(e){u1.error({error:e?.message},"Error fetching concourse picker data"),h={concourseData:{},currentSelections:{},recentSelections:p?.recentSelections||{},maxRecentItems:p?.maxRecentItems||5,userSettingsAccess:t}}}let f="";if(!1!==a.logo&&!r){let t;try{let i={method:"GET",headers:F(e)};if("u">typeof AbortController){let e=new AbortController;i.signal=e.signal,t=setTimeout(()=>e.abort(),5e3)}let a=await T(`${c}://${d}/api/now/get_core_ui_logo_source/getCoreLogoSrc`,i);if(a.ok){let e=await a.json();f=ts(e?.result?.imgSrc)}}catch(e){u1.error({error:e?.message},"Error fetching company logo")}finally{t&&clearTimeout(t)}}f||(f=ts($("sn_intelligent_nav.header.logo.full.image"))),tl(f)&&(f="servicenow");let g=ts($("sn_intelligent_nav.header.logo.small.image"));tl(g)&&(g="servicenow");let b=($("glide.ui.branding.works_with.is_visible")??"true")==="true",v=$("glide.product.name")??"",_=$("glide.product.description")??"",y=null;if(a.logo)try{let t=await eu("b67e4b90c7003010099a308dc7c26094",{},e);y=t?.result?.GlideHeaderLogo_Query?.getLogoURL??null}catch{}let x=a.menus?s2(e,{protocol:c,hostname:d}):Promise.resolve([]),w=e.pagePath||"";if(e.params)for(let[t,i]of Object.entries(e.params))w=w.replace(`:${t}*`,i).replace(`:${t}`,i);let k=await of(e,a,j.get()?.sys_id),S=parseInt($("glide.ui_notification.min_unread_count_for_summary"),10)||7,C={basePath:e.basePath,instanceEnabled:i7($("aiux.ainpx.isolated_nav.instance_enabled")),userToggleEnabled:i7($("aiux.ainpx.isolated_nav.user_toggle_enabled"))},M={instanceEnabled:i7($("aiux.ainpx.glide.elevated_nav.instance_enabled")??"true"),userToggleEnabled:i7($("aiux.ainpx.glide.elevated_nav.user_toggle_enabled")??"true")},E={announcements:[],configId:"",realTimeEnabled:!1};if(a.announcements){if(!eo.get()?.configId){let e=$("glide.ui.polaris.announcement_banner_config_id")||"36aefd8153223010f296ddeeff7b12e9";eo.set({configId:e})}E=await es.loader(e)}let A=w.startsWith("/workspace/")?w.slice(11):null,N={};try{N=await sY(e,eu)??{}}catch(e){u1.warn({error:e?.message},"Failed to fetch search experience configs")}let{searchContexts:O,selectedSearchContext:D}=sQ(N,{activePath:A??"now/nav/ui"}),P=await x;eh.set({features:a,preferences:u,concoursePicker:h,companyLogo:f,companyLogoSm:g,defaultLogoFull:r,defaultLogoIcon:o,brandingWorksWithVisible:b,productName:v,productDescription:_,logoTarget:y,origin:{protocol:c,hostname:d},basePath:e.basePath,pagePath:w,resolvedPath:e.resolvedPath,items:n?.length?n:e6,usesDefaultNavItems:!n?.length,menus:P,tabs:[],activeTabId:e.query?.tabId??null,appTitle:eh.get()?.appTitle??null,csrfToken:e.csrfToken,horizontalNav:C,elevatedNav:M,minUnreadCountForSummary:S,unreadNotificationCount:k,announcements:E,activeWorkspacePath:A,headerConfig:l,searchContexts:O,selectedSearchContext:D,pageLoader:s,ready:!0})}let u4=k("nav-layout");async function u5(){try{let e=await T("/api/now/ui/concoursepicker/timezoneWithCheck",{method:"GET",headers:{Accept:"application/json"}});if(!e.ok)return;let t=await e.json(),i=eh.get()??{};eh.set({...i,preferences:{...i.preferences??{},timezoneList:t.result?.list||[],timezoneCurrent:t.result?.current||"",timezoneEnabled:t.result?.enabled??!0}})}catch(e){u4.error({error:e?.message},"Error fetching timezone preferences")}}async function u6(e){await e.updateComplete;let t=e.renderRoot?.querySelector("aiux-nav-sidebar");return t&&"function"==typeof t.getNavigableMenuItems?t.getNavigableMenuItems():[]}function u9(){return{chatMode:"OMNI",isFullscreen:!1,isChatDetached:!1,lbfProps:{},lbfPropsForNav:{},showHistoryButton:!1,handleChatEvent:()=>{},handleOpenChat:()=>{},handleCloseChat:()=>{},handleRequestSkillExecution:()=>{},handleShowInteractiveView:()=>{},handleCloseInteractiveView:()=>{},handleSidePanelChange:()=>{},onNavigate:()=>{},shouldHideChat:()=>!0,isReady:()=>!1,brandingReady:!1,getAiexMode:()=>"chat_only",initialize:async()=>{},overrideChatNavigation:()=>{},cleanup:()=>{}}}function u8(e,t,{checkFramedPage:i=!0}={}){if(!t)return!0;if(i&&e.isFramedPage)return!1;let a=t.startsWith("/")?t:`/${t}`;if("/"===a||a.endsWith("/home"))return!0;let n=(e.loaderData?.basePath||"").replace(/\/$/,"");return""!==n&&a.replace(/\/$/,"")===n}function u7(e,t){em.set(t);let i=eh.get(),a=[...i.items||[]];if(t)a.find(e=>"Debugging"===e.title)||(a.push(e3),eh.set({...i,items:a}));else{let e=a.findIndex(e=>"Debugging"===e.title);e>=0&&(a.splice(e,1),eh.set({...i,items:a}))}e.requestUpdate()}function pe(e,t){let i=globalThis.document?.documentElement;i&&(t&&"normal"!==t&&A.includes(t)?i.dataset.density=t:delete i.dataset.density)}function pt(e){let t=e.renderRoot?.querySelector("section[data-tab-instance]:not([hidden])");if(!t||e._scrollHandler)return;let i=e.renderRoot.querySelector(".layout-main-container"),a=0;e._scrollHandler=()=>{let e=t.scrollTop,n=Math.min(1,e/80);t.scrollHeight-e-t.clientHeight<1&&n<a&&(n=a),a=n,i?.style.setProperty("--scroll-progress",n)},e._scrollContainer=t,t.addEventListener("scroll",e._scrollHandler)}async function pi(e){if(e._engagementStyleApplied)return;let t=e.renderRoot?.querySelector("sn-engagement-experience");if(!t||(await customElements.whenDefined("sn-engagement-experience"),t.shadowRoot||await new Promise(e=>requestAnimationFrame(e)),!t.shadowRoot))return;let i=new CSSStyleSheet;i.replaceSync("sn-interactive-view { background: var(--color-base-200); }"),t.shadowRoot.adoptedStyleSheets=[...t.shadowRoot.adoptedStyleSheets,i],e._engagementStyleApplied=!0}function pa(e){if(r){e._horizontalNavActive=!1;return}let t=eh.get(),i=t?.basePath||"",a=i7($("aiux.ainpx.glide.isolated_nav.instance_enabled")),{active:n,userToggleEnabled:o}=at({basePath:i,instanceEnabled:a,userToggleEnabled:i7($("aiux.ainpx.glide.isolated_nav.user_toggle_enabled")),userPref:I("aiux.ainpx.glide.isolated_nav.enabled")});e._horizontalNavActive=n,eh.set({...t,horizontalNav:{active:n,userToggleEnabled:o}})}function pn(e){if(r)return;let t=eh.get(),i=i7($("aiux.ainpx.glide.elevated_nav.instance_enabled")??"true"),{active:a,userToggleEnabled:n}=rK({instanceEnabled:i,userToggleEnabled:i7($("aiux.ainpx.glide.elevated_nav.user_toggle_enabled")??"true"),userPref:I("aiux.ainpx.glide.elevated_nav.enabled")});eh.set({...t,elevatedNav:{active:a,userToggleEnabled:n,instanceEnabled:i}})}function pr(e,{href:t,_event:i}){if(!t)return!1;let a=function(e,t=[]){return function(e,t){if(!e||!t?.length)return null;try{let i=new URL(e,r?"http://localhost":window.location.origin);for(let e of t){let t=i.pathname.match(e.pathname);if(!t)continue;let a={...t.groups};if(e.query){let t=!0;for(let[n,r]of Object.entries(e.query)){let e=i.searchParams.get(r);if(!e){t=!1;break}a[n]=e}if(!t)continue}return e.route({...a,search:i.search,hash:i.hash})}}catch{}return null}(e,t)}(t);return!!a&&(e._pendingBackButton=!0,e.navigate(a),!0)}function po(e,t){e._activeMenuTrayId=t?.detail?.menuId??null}function ps(e,t){e._ui16HelpContext=t.detail}let pl=k("nav-layout");function pc(e,t){let{href:i}=t.detail??{};if(i)try{let{pathname:t,search:a}=new URL(i,"http://x"),n=dp(t,a);"custom"!==n.type||n.app_route||(n.type="classic"),e._ui16HelpContext={...n,_url:i},e._helpPanelOpened=!1}catch(e){pl.debug({err:e},"classic:navigate — failed to parse href")}}let pd=k("nav-layout");function pu(e,t){let i=dR(e);e._headerConfigByScope[i]={...e._headerConfigByScope[i]??dF(e),...t.detail},pd.debug({event:"header-config:update",detail:t.detail,url:`${e.currentPath}${dE(e)}`},"Header config updated, recomputing favorite"),e.requestUpdate(),un(e)}function pp(e,t){let i=dR(e);e._pageActionsByScope[i]=t.detail.actions,e.requestUpdate()}function ph(e,t){let i=t?.detail?.title??"",a=t?.detail?.scope??dR(e);i!==(e._horizontalNavTitleOverrideByScope[a]??"")&&(e._horizontalNavTitleOverrideByScope[a]=i,e.requestUpdate())}function pm(e,t){e._horizontalNavActiveMenuId=t.detail?.menuId||null}function pf(e,t){e._loading=t.detail?.loading??!1}function pg(e,t){let{title:i,url:a,description:n}=t.detail??{};i&&a&&function(e,{title:t,url:i,description:a}){sA({title:t,url:i,description:a,onSuccess:t=>uJ(e,t)})}(e,{title:i,url:a,description:n})}function pb(e,t,i,a){var n,r=arguments.length,o=r<3?t:a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}let pv=k("nav-layout");class p_ extends B(Z){static{this.properties={activeModal:{type:String,state:!0},tabs:{state:!0},activeTabId:{type:String,state:!0},tabsCollapsed:{type:Boolean,state:!0},appGroupsCollapsed:{type:Set,state:!0},basePage:{state:!0},_notificationsOpen:{type:Boolean,state:!0},_notificationsPinned:{type:Boolean,state:!0},_pinningEnabled:{type:Boolean,state:!0},_notificationsAnchorRect:{state:!0},_notifications:{type:Array,state:!0},_notificationSettingsOpen:{type:Boolean,state:!0},_toastNotification:{type:Object,state:!0},_activeMenuTrayId:{type:String,state:!0},_horizontalNavTitleOverride:{type:String,state:!0},_horizontalNavFavoritePopup:{state:!0},_contextualNavFavoritePopup:{state:!0},_horizontalNavFavoritedOverride:{state:!0},_notificationsMeta:{type:Object,state:!0},_unreadNotificationCount:{type:Number,state:!0},_contextualNavFavorited:{type:Boolean,state:!0},_contextualNavCanFavorite:{type:Boolean,state:!0},_contextualNavMatchedLabel:{type:String,state:!0},_contextualNavFavoriteItem:{type:Object,state:!0},_horizontalNavActive:{type:Boolean,state:!0},_horizontalNavActiveMenuId:{type:String,state:!0},_helpPanelOpened:{type:Boolean,state:!0},_ui16HelpContext:{type:Object,state:!0},_dirtyWorkspacePaths:{type:Array,state:!0}}}static{this.styles=[Z.styles,sK,t6,sq]}static{this.aiContext={description:"The core UI app-shell layout. Exposes navigation into the menu tree so the assistant can take the user to any section available in the left-nav menus.",bestFor:"When the user asks to go to, open, or navigate to a page, section, or menu item by name."}}static{this.client_tools={navigateToMenuItem:{description:"Navigate the app-shell to a menu item by its visible title. Matches exact title first (case-insensitive), then substring. If no match is found, returns up to 3 suggested titles plus the full list of available titles.",arguments:[{name:"title",description:'The visible title of the menu item to navigate to (e.g. "Incidents", "Home", "Inbox").',type:"string",required:!0}],definition:async function({title:e}={}){if(!e)return{success:!1,reason:"title is required"};let t=await this.getNavigableMenuItems(),{match:i,suggestions:a}=function(e,t){if(!t||!Array.isArray(e)||0===e.length)return{match:null,suggestions:[]};let i=String(t).trim().toLowerCase(),a=e.find(e=>e.title.toLowerCase()===i);if(a)return{match:a,suggestions:[]};let n=e.find(e=>e.title.toLowerCase().includes(i));return n?{match:n,suggestions:[]}:{match:null,suggestions:e.map(e=>{let t=e.title.toLowerCase(),a=0;for(let e of i)t.includes(e)&&(a+=1);return{item:e,score:a}}).filter(e=>e.score>0).sort((e,t)=>t.score-e.score).slice(0,3).map(e=>e.item.title)}}(t,e);if(!i)return{success:!1,reason:`No menu item matched "${e}"`,suggestions:a,available:t.map(e=>e.title)};let n=i.url.startsWith("/")?i.url:`/${i.url}`;if(i.isCustomItem){this._navHistory.requestReset();try{return await dN(this,n),{success:!0,title:i.title,url:n}}catch(e){return{success:!1,reason:e.message}}}{let e=new CustomEvent("core-ui-navigate",{detail:{url:n},cancelable:!0,bubbles:!0});return window.dispatchEvent(e)&&(window.location.href=n),{success:!0,title:i.title,url:n}}}}}}static{this.contexts=[j,R,z,eh,H,ef,R,eg]}static async loader(e){return u3(e)}async getNavigableMenuItems(){return u6(this)}_applyLayoutOverrides(){let e=this.constructor;if(e.__layoutOverridesApplied)return;e.__layoutOverridesApplied=!0;let t=globalThis.__LAYOUT_OVERRIDES__;if(!t)return;let i="NavLayout"===e.name,a=!i&&Object.hasOwnProperty.call(e,"aiContext"),n=!i&&Object.hasOwnProperty.call(e,"client_tools");t.aiContext&&!a&&(e.aiContext={...e.aiContext||{},...t.aiContext}),t.client_tools&&!n&&(e.client_tools={...e.client_tools||{},...t.client_tools})}_applyHomeChatManifestOverride(){let e=globalThis.__LAYOUT_OVERRIDES__;e&&(!0===e.embedsHomeChat&&(this.embedsHomeChat=!0),void 0!==e.homeChatPolicy&&(this._homeChatPolicy=e.homeChatPolicy))}_notificationSettingsOutsideAnchors(){return[this.renderRoot?.querySelector("notification-settings")]}constructor(){super(),this._clientHydrated=!1,this._onboardingStep=null,this._tabActivatedByUser=!1,this._isSearchResultsIV=!1,this._showBackButton=!1,this._tailwindCssUrl="",this._notificationsSidebarCollapsed=!1,this._pendingBackButton=!1,new tV(this,{outsideClick:!1,isOpen:e=>e._notificationsOpen,close:e=>{e._notificationsOpen=!1}}),new tV(this,{isOpen:e=>e._notificationSettingsOpen,close:e=>{e._notificationSettingsOpen=!1},outsideAnchors:e=>e._notificationSettingsOutsideAnchors()}),this.activeModal=null,this.tabs=eh.get()?.tabs??[],this.activeTabId=null,this.tabsCollapsed=!1,this.appGroupsCollapsed=new Set,this.basePage=null,this._pageActionsByScope={},this._headerConfigByScope={},this._clientHydrated=!1,this._canAdoptSSRPanels=!1,this._panelHosts=new Map,this._hasCapturedSSRPanels=!1,this.hideChat=!1,this._homeChatAnchorVisible=!0,this._homeChatAnchorInitialized=!1,this._homeChatPolicy="default",this._prevSidePanelOpen=!1,this._getEventPrefix=()=>eU(eh.get()?.basePath,this.currentPath),this._trackNavEvent=(e,t)=>this.trackEvent(`${this._getEventPrefix()}:${e}`,t),this._prevChatMode="OMNI",this._prevChatDetached=!1,this._prevFullscreen=!1,this._chatEnabled=!0,this.chatController=u9(),this._navHistory=new n6(this),this._notificationController=new sI(this),this._lastNavFromBrowserHistory=!1,this._contextualNavFavorited=!1,this._contextualNavCanFavorite=!0,this._contextualNavMatchedLabel="",this._contextualNavFavoriteItem=null,this._horizontalNavActive=!1,this._horizontalNavActiveMenuId=null,this._onMagellanHistoryAdded=uD.bind(null,this),this._onNavHistoryAdd=uP.bind(null,this),this._onMagellanFavoriteAdded=uR.bind(null,this),this._onMagellanFavoriteRemoved=uL.bind(null,this),this._onMagellanMenuRefresh=uz.bind(null,this),this._onMagellanFavoriteEditRequested=uj.bind(null,this),this._magellanListeners=[["nav:history-add",this._onMagellanHistoryAdded],["nav:history-add",this._onNavHistoryAdd],["nav:favorite-added",this._onMagellanFavoriteAdded],["nav:favorite-removed",this._onMagellanFavoriteRemoved],["nav:menu-refresh",this._onMagellanMenuRefresh],["nav:favorite-edit-modal-requested",this._onMagellanFavoriteEditRequested]],this._handleBreadcrumbNavigate=dX.bind(null,this),this._handleNavTabClick=d4.bind(null,this),this._handleNavTabClose=d5.bind(null,this),this._handleNavTabsToggleCollapse=d6.bind(null,this),this._handleNavAppGroupToggleCollapse=d9.bind(null,this),this._handleNavTabsReordered=d8.bind(null,this),this._handleCreateTabEvent=ut.bind(null,this),this._handleContinueModeTargetChanged=ui.bind(null,this),this._handleClassicTargetChanged=us.bind(null,this),this._handleContextualNavTabToggle=ub.bind(null,this),this._handleContextualNavFavoriteToggle=uk.bind(null,this),this._handleNavigation=pr.bind(null,this),this._handleFullscreenToggle=uI.bind(null,this),this._handleDockToggle=uT.bind(null,this),this._handleChatClose=uS.bind(null,this),this._handleHomeChatAnchorState=ul.bind(null,this),this.onHomeChatEvent=uc.bind(null,this),this._handleOpenInSidebar=u$.bind(null,this),this._handleHorizontalNavMenuOpen=ud.bind(null,this),this._handleHorizontalNavUtilityAction=uu.bind(null,this),this._handleHorizontalNavFavoriteToggle=uf.bind(null,this),this._handleNotificationsToggle=uC.bind(null,this),this._handlePinNotifications=uM.bind(null,this),this._handleUnpinNotifications=uE.bind(null,this),this._handleToastDismissed=uA.bind(null,this),this._handleToastAction=uN.bind(null,this),this._handleToastSnooze=uO.bind(null,this),this._onHorizontalNavFavoritePopupDone=uF.bind(null,this),this._onHorizontalNavFavoritePopupMore=uH.bind(null,this),this._onHorizontalNavFavoritePopupDelete=uB.bind(null,this),this._onHorizontalNavFavoritePopupClose=uK.bind(null,this),this._onHorizontalNavFavoritePopupRemove=uq.bind(null,this),this._onContextualNavFavoritePopupDone=uG.bind(null,this),this._onContextualNavFavoritePopupMore=uY.bind(null,this),this._onContextualNavFavoritePopupDelete=uV.bind(null,this),this._onContextualNavFavoritePopupClose=uZ.bind(null,this),this._onContextualNavFavoritePopupRemove=uX.bind(null,this),this._notificationsOpen=!1,this._notificationsPinned=!1,this._pinningEnabled="true"===($("aiux.ainpx.pinning_enabled")??"false").toLowerCase(),this._notificationsAnchorRect=null,this._notifications=[],this._notificationSettingsOpen=!1,this._toastNotification=null,this._dirtyWorkspacePaths=[],this._unreadNotificationCount=eh.get()?.unreadNotificationCount??0,this._notificationsFetched=!1,this._activeMenuTrayId=null,this._handleNavSidebarMenuTrayChanged=po.bind(null,this),this._horizontalNavTitleOverrideByScope={},this._horizontalNavFavoritePopup=null,this._contextualNavFavoritePopup=null,this._horizontalNavFavoritedOverride=null,this._notificationsMeta={queue:[],deleteQueue:[],offset:0,totalRowCount:0},this._helpPanelOpened=!1,this._ui16HelpContext=null,this._helpPanelAppContextFromIframe=null,this._onUi16HelpContext=ps.bind(null,this),this._onClassicNavigate=pc.bind(null,this),this._onHeaderConfigUpdate=pu.bind(null,this),this._onPageActionsUpdate=pp.bind(null,this),this._onHorizontalNavTitleSet=ph.bind(null,this),this._handleNavItemClick=dV.bind(null,this),this._handleCoreUiNavigate=dZ.bind(null,this),this._handleNavMenuDataUpdated=()=>un(this),this._handleNavMenuTrayChanged=pm.bind(null,this),this._onPageLoadingSet=pf.bind(null,this),this._handleDensityChange=e=>{pe(this,e),this.requestUpdate()},r||(this.addEventListener("nav-item-click",this._handleNavItemClick),"function"==typeof globalThis.window?.addEventListener&&globalThis.window.addEventListener("core-ui-navigate",this._handleCoreUiNavigate),globalThis.window?.addEventListener?.("ui16:help-context",this._onUi16HelpContext),globalThis.window?.addEventListener?.("classic:navigate",this._onClassicNavigate))}async _loadChatController(){try{let{ChatController:e}=await import("/aiux/assets/core/aiux-controllers-YpEbdk7_.js");this.chatController=new e(this),this.chatController.showHistoryButton=!0,this.chatController.showViewToggleButton=!0,this.chatController.pauseAIELContextOnHomePage=!1}catch(e){pv.error({error:e.message},"Failed to load ChatController"),this._chatEnabled=!1,this.hideChat=!0,this.chatController=u9()}}async _initChat(){let e=eh.get()?.features||{};if(this._chatEnabled=!1!==e.chat,!this._chatEnabled){this.hideChat=!0;return}await this._loadChatController(),this._chatEnabled&&this.addEventListener("aict:home-chat-anchor-state",this._handleHomeChatAnchorState)}async connectedCallback(){let e=super.connectedCallback();if(r)return;for(let[e,t]of(this._tailwindCssUrl=globalThis.__TAILWIND_CSS_URL__||"",dT||(dT=e=>{dM(e).catch(e=>d$.error({error:e.message},"global-nav: unhandled error in handler"))},window.addEventListener(dI,dT)),this.addEventListener("header-config:update",this._onHeaderConfigUpdate),this.addEventListener("page-actions:update",this._onPageActionsUpdate),this.addEventListener("classic:target-changed",this._handleContinueModeTargetChanged),this.addEventListener("horizontal-nav-title:set",this._onHorizontalNavTitleSet),th()&&ia().catch(e=>{t9.error({error:e?.message??String(e)},"warmup failed")}),this.addEventListener("nav:menu-data-updated",this._handleNavMenuDataUpdated),this.addEventListener("nav-sidebar:menu-tray-changed",this._handleNavMenuTrayChanged),this.addEventListener("classic:target-changed",this._handleClassicTargetChanged),globalThis.window&&!this._urlCheckInterval&&(this._lastCheckedUrl="",this._urlCheckInterval=setInterval(()=>{if(!this.isConnected||"function"!=typeof this.requestUpdate)return;let e=`${this.currentPath||""}${dE(this)}`;e!==this._lastCheckedUrl&&(this._lastCheckedUrl=e,pv.debug({event:"url-poll-detected-change",url:e},"URL changed via polling, recomputing favorite"),un(this),this.requestUpdate())},500)),this.addEventListener("workspace:page-loading-set",this._onPageLoadingSet),this._teardownDirtyStateSubscription=a.onChange(e=>{this._dirtyWorkspacePaths=[...e.keys()].filter(e=>e.startsWith("workspace:")).map(e=>e.slice(10))}),globalThis.window&&(globalThis.window.__DEBUG_AIUX_HEADER__=()=>{let e="aiux-debug-toolbar";"true"===localStorage.getItem(e)?(localStorage.removeItem(e),u7(this,!1),console.log("[AIUX] Debug toolbar disabled.")):(localStorage.setItem(e,"true"),u7(this,!0),console.log("[AIUX] Debug toolbar enabled."))}),pe(this,z.get()),this._unsubscribeDensity=z.subscribe(this._handleDensityChange),this.addEventListener("breadcrumb-navigate",this._handleBreadcrumbNavigate),this.addEventListener("nav-tab-click",this._handleNavTabClick),this.addEventListener("nav-tab-close",this._handleNavTabClose),this.addEventListener("nav-tabs-toggle-collapse",this._handleNavTabsToggleCollapse),this.addEventListener("nav-app-group-toggle-collapse",this._handleNavAppGroupToggleCollapse),this.addEventListener("nav-sidebar:menu-tray-changed",this._handleNavSidebarMenuTrayChanged),this.addEventListener("nav-tabs-reordered",this._handleNavTabsReordered),this._magellanListeners??[]))this.addEventListener(e,t);if(globalThis.window&&(globalThis.window.addEventListener(e2,this._handleCreateTabEvent),this._handleWindowBlur=()=>{globalThis.window?.dispatchEvent(new CustomEvent(tY))},globalThis.window.addEventListener("blur",this._handleWindowBlur)),this._handleIframeHistoryEntry=pg.bind(null,this),this.addEventListener(aH,this._handleIframeHistoryEntry),this._notificationController.connect(),await e,!this.isConnected)return;let t=eh.get();t&&eh.set({...t,ready:!0}),this._applyLayoutOverrides(),this._applyHomeChatManifestOverride(),this._registerClientTools(),await this._initChat(),this._notificationController.subscribe(),!1!==(eh.get()?.features||{}).concoursePicker&&(this._cancelIdleTimezoneFetch=ep(()=>u5()))}willUpdate(e){if(super.willUpdate?.(e),void 0===this.isHomePage){let e=eh.get()?.pagePath??"";this.isHomePage=u8(this,e,{checkFramedPage:!1})}}async firstUpdated(e){super.firstUpdated?.(e),this._clientHydrated=!0,this._canAdoptSSRPanels=!0,await this._restoreTabsFromStorage(),this._ensureActiveTabFromCurrentRoute(),this._hydrateActiveTabMetadata(),this._drainPendingPageState(),this.updateComplete?.then(()=>pt(this)),"true"===I("aiux.ainpx.notifications_pinned")&&(this._notificationsPinned=!0),"true"!==I("overview_help.visited.navui")&&!0===K("sn_generative_ai")&&(this._onboardingStep={sys_id:"onboarding-otto-welcome",disable_close:!1,actions_label:JSON.stringify({submit:l("Got it")}),layout:"text",trusted:!0,content:{title:l("Say hello to ServiceNow Otto"),has_custom_html:!1,text:`<img src="data:image/svg+xml;base64,PHN2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9IjEiIHN0b3AtY29sb3I9IiMyMTFFMUUiLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDdfbGluZWFyXzEwNjNfMjU0IiB4MT0iMzI1Ljc3OCIgeTE9IjU5LjU0OTEiIHgyPSIzMjUuNzc4IiB5Mj0iMTE0LjA5NiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjNDEzRTNDIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzIxMUUxRSIvPgo8L2xpbmVhckdyYWRpZW50Pgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzEwNjNfMjU0Ij4KPHJlY3Qgd2lkdGg9IjU1MiIgaGVpZ2h0PSIxNjciIHJ4PSIyNCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K" width="100%" alt="" /><p>${l("Say hello to a more intelligent, AI-powered ServiceNow. Look for the Otto mark—it shows you where AI is on the case, working behind the scenes to give you personalized answers, take action faster, and help you reach the results you need.")}</p><p>${l("AI can make mistakes, so always review AI-generated content for accuracy before you rely on it.")}</p>`}}),globalThis.localStorage?.getItem("aiux-debug-toolbar")==="true"&&u7(this,!0),pa(this),pn();let t=globalThis.window?.location?.pathname||this.currentPath;this.isHomePage=u8(this,t),this.isHomePage&&this._navHistory.requestReset(),this._pendingNavPush=!0,this.requestUpdate(),this.updateComplete?.then(()=>{oU(globalThis.window?.location?.pathname||this.currentPath,dE(this))})}_drainPendingPageState(){let e=dR(this);if(globalThis.window?.__PAGE_ACTIONS_PENDING__){let{actions:t}=globalThis.window.__PAGE_ACTIONS_PENDING__;this._pageActionsByScope[e]=t,delete globalThis.window.__PAGE_ACTIONS_PENDING__}if(globalThis.window?.__HEADER_CONFIG_PENDING__){let{detail:t}=globalThis.window.__HEADER_CONFIG_PENDING__;this._headerConfigByScope[e]={...this._headerConfigByScope[e]??dF(this),...t},delete globalThis.window.__HEADER_CONFIG_PENDING__}if(globalThis.window?.__HORIZONTAL_NAV_TITLE_PENDING__){let{title:t,scope:i}=globalThis.window.__HORIZONTAL_NAV_TITLE_PENDING__;this._horizontalNavTitleOverrideByScope[i??e]=t,delete globalThis.window.__HORIZONTAL_NAV_TITLE_PENDING__}}_hydrateActiveTabMetadata(){let e=dP(this);if(!e)return;let t=this._currentPage?.tagName||null,i=this._currentLayoutChain||[];if(!t)return;let a=this.tabs.find(t=>t.id===e);if(!a)return;let n=!!a.pageTagName,r=!!Array.isArray(a.layoutChain)&&a.layoutChain.length>0;n&&r||(this.tabs=this.tabs.map(a=>a.id===e?{...a,pageTagName:a.pageTagName||t,layoutChain:r?a.layoutChain:i}:a),d2(this))}_ensureActiveTabFromCurrentRoute(){let e=dP(this);!e||(this.activeTabId=e,d0(this,e),this.tabs.some(t=>t.id===e)||(this.tabs=[...this.tabs,{id:e,title:d7(this.currentPath),path:this.currentPath,query:rt(dA(this)),originPath:null,originQuery:{},pageTagName:this._currentPage?.tagName||null,layoutChain:this._currentLayoutChain||[]}],d2(this)))}async _restoreTabsFromStorage(){if(!r&&globalThis.window)try{let e=await tN(d1(this));if(!e||e?.version!==1)return;Array.isArray(e.tabs)&&(this.tabs=e.tabs.filter(e=>e?.id&&e?.path).map(e=>({id:e.id,title:e.title,path:e.path,query:e.query||{},originPath:e.originPath||null,originQuery:e.originQuery||{},pageTagName:null,layoutChain:[]}))),"boolean"==typeof e.tabsCollapsed&&(this.tabsCollapsed=e.tabsCollapsed),Array.isArray(e.appGroupsCollapsed)&&(this.appGroupsCollapsed=new Set(e.appGroupsCollapsed.filter(e=>"string"==typeof e)))}catch(e){}}disconnectedCallback(){if(super.disconnectedCallback(),dT&&(window.removeEventListener(dI,dT),dT=null),this._cancelIdleTimezoneFetch?.(),this.removeEventListener("workspace:page-loading-set",this._onPageLoadingSet),this._teardownDirtyStateSubscription?.(),this._teardownDirtyStateSubscription=null,this.removeEventListener("header-config:update",this._onHeaderConfigUpdate),this.removeEventListener("page-actions:update",this._onPageActionsUpdate),this._onUi16HelpContext&&globalThis.window?.removeEventListener?.("ui16:help-context",this._onUi16HelpContext),this._onClassicNavigate&&globalThis.window?.removeEventListener?.("classic:navigate",this._onClassicNavigate),this.removeEventListener("classic:target-changed",this._handleContinueModeTargetChanged),this.removeEventListener("horizontal-nav-title:set",this._onHorizontalNavTitleSet),this.removeEventListener("nav-sidebar:menu-tray-changed",this._handleNavSidebarMenuTrayChanged),this.removeEventListener("breadcrumb-navigate",this._handleBreadcrumbNavigate),this._magellanListeners){for(let[e,t]of this._magellanListeners)this.removeEventListener(e,t);this._magellanListeners=null}this.removeEventListener("classic:target-changed",this._handleClassicTargetChanged),this.removeEventListener("nav:menu-data-updated",this._handleNavMenuDataUpdated),this.removeEventListener("nav-sidebar:menu-tray-changed",this._handleNavMenuTrayChanged),this._urlCheckInterval&&(clearInterval(this._urlCheckInterval),this._urlCheckInterval=null),!r&&globalThis.window&&(globalThis.window.removeEventListener(e2,this._handleCreateTabEvent),this._handleWindowBlur&&(globalThis.window.removeEventListener("blur",this._handleWindowBlur),this._handleWindowBlur=null)),globalThis.window&&globalThis.window.removeEventListener("core-ui-navigate",this._handleCoreUiNavigate),this._chatEnabled&&this.removeEventListener("aict:home-chat-anchor-state",this._handleHomeChatAnchorState),this.removeEventListener(aH,this._handleIframeHistoryEntry),this.removeEventListener("nav-item-click",this._handleNavItemClick),sC&&(clearTimeout(sC),sC=null),this._scrollContainer?.removeEventListener("scroll",this._scrollHandler),this._scrollHandler=null,this._scrollContainer=null,this._unsubscribeDensity?.(),this.removeEventListener("nav-tabs-reordered",this._handleNavTabsReordered),this._notificationController.disconnect()}onNavigateStart(){let e=dR(this);if("base"!==e&&dJ(this,e))return;"base"===e&&(this._pageActionsByScope[e]=[]),this._headerConfigByScope[e]=null,this._contextualNavFavorited=!1,delete globalThis.window?.__PAGE_ACTIONS_PENDING__,delete globalThis.window?.__HEADER_CONFIG_PENDING__,delete globalThis.window?.__HORIZONTAL_NAV_TITLE_PENDING__,this._horizontalNavTitleOverrideByScope[e]="",this._horizontalNavFavoritedOverride=null;let t=ef.get();"object"==typeof t&&null!==t&&!1===t.omniPadding&&ef.set({...t,omniPadding:!0}),this._helpPanelOpened=!1,this._helpPanelAppContextFromIframe=null,globalThis.window&&(globalThis.window.__ui16HelpContext=null);let i=this._router?.currentPath??eh.get()?.resolvedPath;if(i?.startsWith("/workspace")){let e=eh.get();e?.screenContentLinks?.length&&eh.set({...e,screenContentLinks:[]})}}_handleResizeToggleCollapse(){this.renderRoot?.querySelector("aiux-nav-sidebar")?.handleToggleCollapse()}updated(e){if(super.updated?.(e),r)return;this._notificationController.manageNotificationsPopover(e);let t=!!eh.get()?.features?.unifiedExperience;this._experienceReflected!==t&&(this._experienceReflected=t,this.toggleAttribute("experience",t)),pi(this);let i=H.get()?.open??!1;i!==this._prevSidePanelOpen&&(this._prevSidePanelOpen=i,this.chatController.handleSidePanelChange(i));let a=this.chatController.shouldHideChat()?"AIEX_HIDDEN":this.chatController.chatMode;if(a!==this._prevChatMode){this._prevChatMode=a;let e=ef.get();ef.set({..."object"==typeof e&&null!==e?e:{mode:e,omniPadding:!0},mode:a}),!r&&"u">typeof window&&tQ(a,this.chatController.isFullscreen,this.chatController.isChatDetached)}let n=this.chatController.isFullscreen;this._prevFullscreen!==n&&(!r&&"u">typeof window&&tQ(a,n,this.chatController.isChatDetached),this._prevFullscreen=n);let o=this.chatController.isChatDetached;if(this._prevChatDetached!==o&&(!r&&"u">typeof window&&tQ(a,this.chatController.isFullscreen,o),this._prevChatDetached=o),e.has("loaderData")&&pt(this),globalThis.localStorage?.getItem("aiux-debug-toolbar")!=="true"||eh.get().items?.find(e=>"Debugging"===e.title)||u7(this,!0),this._pendingNavPush){this._pendingNavPush=!1;let e=this.currentPath,t=this._lastNavFromBrowserHistory;this._lastNavFromBrowserHistory=!1;let i=dR(this);if(t&&this._navHistory.applyPopstate(e,{tabId:i})){if(!r){let e=this._navHistory.getEntries(i).at(-1);e?.label&&(document.title=e.label)}return}let{l1:a,l2:n}=dj(this),{l3Nav:o,title:s,pageTitle:l,transient:c}=ta(dF(this),(n||a)?.l3Nav,n||a);if(c){if(this._pendingNavPush=!1,!r){let t=l||s||e.split("/").filter(Boolean).pop()||e;document.title=t}return}let d=tn(a,n,o,e),u=tr(o,e)?.tab??null,p=this._navHistory.getEntries(i),h=p.at(-1),m=h?tr(o,h.path)?.tab:null,f=!!(u&&m),g=function(e,t){if(!e||!t||e===t)return!1;let i=e=>e.split("?")[0].split("#")[0],a=i(e),n=i(t),r=e=>e.split("/").filter(Boolean).pop(),o=r(a),s=r(n),l=e=>{let t=e.split("/").filter(Boolean);return t.pop(),t.join("/")},c=l(a),d=l(n),u=a===n&&e!==t;return"-1"===o&&"-1"!==s&&c===d||u}(h?.path,e),b=l||s||("l1"===d?a?.title:null)||n?.title||u?.label||e.split("/").filter(Boolean).pop()||e,v=u&&(a||n)&&b!==u.label?`${b} (${u.label})`:b,_=!!u&&("l3"===d||to({l1:a,l2:n,l3Nav:o})),y=0!==p.length||_?null:function({items:e,currentPath:t}){if(!t)return null;let i=e7(t),a=null,n=0,r=(e,t)=>{let r=e.activePath||e.action?.path,o=e.action?.type==="navigate"?e.action.path:r;((e,t,r,o=e)=>{!e||!t||e===i||i.startsWith(e+"/")&&e.length>n&&(a={path:o,label:t,l1Icon:r},n=e.length)})(r,e.title,t,o)};if(Array.isArray(e))for(let t of e){let e=t.icon;if(Array.isArray(t.l2Nav))for(let i of t.l2Nav)r(i,e);r(t,e)}return a}({items:eh.get()?.items,currentPath:e});if(this._navHistory.push({path:e,label:v,l1Icon:a?.icon},{replace:f||g,tabId:i,root:y}),r||(document.title=v),!e.startsWith("/classic")){let t=a?.title&&a.title!==v?a.title:"";sA({title:v,url:e,description:t,onSuccess:e=>uJ(this,e)})}}}onNavigateEnd(e,t,i){super.onNavigateEnd?.(e,t,i),this._lastNavFromBrowserHistory=!!i?.fromBrowserHistory;let a=dA(this),n=a.tabId||null;if(this._tabActivatedByUser||(this._tabActivatedByUser=!0),this.activeTabId=n,d0(this,n),n){let i,r;i=this.tabs.find(e=>e.id===n),r={id:n,title:i?.title||d7(e),path:e,query:rt(a),originPath:i?.originPath||null,originQuery:i?.originQuery||{},pageTagName:t?.tagName||i?.pageTagName||null,layoutChain:this._currentLayoutChain||i?.layoutChain||[]},i?this.tabs=this.tabs.map(e=>e.id===n?r:e):this.tabs=[...this.tabs,r]}else this.basePage={path:e,query:re(a),pageTagName:t?.tagName||this.basePage?.pageTagName||null,layoutChain:this._currentLayoutChain||this.basePage?.layoutChain||[]};if(function(e,{instanceId:t,pageTagName:i,layoutChain:a}){if(r||!i||!globalThis.document)return;let n=dG(t),o=n?e.querySelector?.(`[slot="${n}"]`):Array.from(e.children||[]).find(e=>!e.getAttribute?.("slot"));o&&(o.remove(),e._panelHosts.delete(t));let s=t.startsWith("tab:")?t.slice(4):"base",l=e._currentComponentConfigs||{},c=globalThis.document.createElement(i);c.setAttribute("loader-scope-key",s),c.setAttribute("aiux-config-data",JSON.stringify(l[i]||{}));let d=c,u=a||[];for(let e=u.length-1;e>=1;e--){let t=u[e],i=t?.tagName;if(!i)continue;let a=globalThis.document.createElement(i);a.setAttribute("layout-key",i),a.setAttribute("loader-scope-key",s),a.setAttribute("aiux-config-data",JSON.stringify(l[i]||{})),a.append(d),d=a}n&&d.setAttribute("slot",n),e.append(d),e._panelHosts.set(t,d)}(this,{instanceId:n?`tab:${n}`:"base",pageTagName:t?.tagName||null,layoutChain:this._currentLayoutChain||[]}),d2(this),this.isHomePage=u8(this,e),this.isHomePage&&(this._homeChatAnchorVisible=!0,this._homeChatAnchorInitialized=!1),this._showBackButton=this._pendingBackButton,this._pendingBackButton=!1,this.chatController.onNavigate(e),un(this),pa(this),pn(),this.requestUpdate(),r||this.isHomePage?this.removeAttribute("chat-mode"):this.setAttribute("chat-mode",this.chatController.chatMode),!r){oU(globalThis.window?.location?.pathname||e,dE(this)),this._pendingNavPush=!0;let t=this.renderRoot?.querySelector(".layout-main-container");t?.style.setProperty("--scroll-progress",0),this._scrollContainer?.removeEventListener("scroll",this._scrollHandler),this._scrollHandler=null,this.updateComplete?.then(()=>pt(this))}}get currentPath(){return this._router?.currentPath||eh.get()?.resolvedPath||(r?"/":globalThis.window?.location.pathname)}get isFramedPage(){let e=this._currentPage?.tagName?.toUpperCase();return"CORE-UI-CLASSIC-PAGE"===e||"CORE-UI-WORKSPACE-SPLAT-PAGE"===e}get pageLoaderTarget(){return eh.get()?.pageLoader?.target??e5.target}_resolveLoaderSelector(){return q(this.pageLoaderTarget,{declarativePresets:!0})}render(){return n`${this.renderSkipLink()}${this.renderLayout()}${this.renderGuidanceModal()}${this.renderWindowManager()}${this.renderSessionExpiryDialog()}${this.renderNetworkStatusDialog()}`}renderLayout(){return function(e){var t;let i,a,o,c=dL(),d=dz(),{anyIndicator:u}=aM(eh.get()?.concoursePicker?.currentSelections),p=e.renderHeader(),h=e.renderAsideStart(c,d),m=e.renderAsideEnd(),b=e.pageLoaderTarget,v="none"===b?s:function(e,{target:t="content",rect:i=null}={}){let{animation:a,color:r}={...e5,...eh.get()?.pageLoader??{}},o=!C(t),s=t===M.PAGE,l=o?E(i):null;return n`
|
|
10603
|
+
`}function dD(e){if(!Array.isArray(e.tabs)||0===e.tabs.length)return!1;let t=(e.currentPath||"").replace(/\/$/,"");if(!t)return!1;let i=dA(e),a=i?.tabId||null;return e.tabs.some(e=>{let i=(e?.path||e?.route?.url||"").replace(/\/$/,""),n=a&&e.id===a;return i&&i===t&&n})}function dP(e){return dA(e).tabId||null}function dR(e){return dP(e)||"base"}function dL(e){let t=eh.get()?.horizontalNav;return t?at({basePath:t.basePath,instanceEnabled:t.instanceEnabled,userToggleEnabled:t.userToggleEnabled,userPref:I("aiux.ainpx.isolated_nav.enabled")}):{active:!1,userToggleEnabled:!1}}function dz(e){let t=eh.get()?.elevatedNav;return t?rK({instanceEnabled:t.instanceEnabled,userToggleEnabled:t.userToggleEnabled,userPref:I("aiux.ainpx.glide.elevated_nav.enabled")}):{active:!1,userToggleEnabled:!1}}function dj(e){return ti(eh.get().items,e.currentPath)}function dF(e){let t=eh.get();return e._headerConfigByScope[dR(e)]??function(e){let t=globalThis.window??globalThis,i=e.loaderScopeKey,a=t.__LAYOUT_DATA_BY_SCOPE__?.[i]||t.__LAYOUT_DATA__||{};for(let e of Object.values(t.__COMPONENT_DATA_BY_SCOPE__?.[i]||t.__COMPONENT_DATA__||{}))if(e?.headerConfig)return e.headerConfig;for(let e of Object.values(a))if(e?.headerConfig)return e.headerConfig;return null}(e)??t?.headerConfig??null}function dU(e){let t=function(){if(r||void 0===globalThis.window)return null;try{let e=new URL(globalThis.window.location.href),t=e.searchParams.get("sysparm_userpref_module");if(t)return t;let i=e.searchParams.get("target");if(!i)return null;return new URL(i,globalThis.window.location.origin).searchParams.get("sysparm_userpref_module")}catch{return null}}();if(t)return t;let{l1:i,l2:a}=dj(e);return a?.id?a.id:i?.id?i.id:function(e){if(!e)return null;let t=/^\/list\/([^/?#]+)/.exec(e);if(!t)return null;let i=`${t[1].toLowerCase()}_list.do`,a=eg.get()?.menuData?.[eP];if(!a?.length)return null;let n=null,r=nP(a,e=>{let t=e.route?.params?.target;return e.route?.route==="classic"&&"string"==typeof t&&!!t.toLowerCase().startsWith(i)&&(n??=e,!/[?&]sysparm_query=/i.test(t))});return r?.id??n?.id??null}(e.currentPath)}function dW(e){let t=e.currentPath;if(!t)return null;let i=/^\/record\/([^/?#]+)\/([^/?#]+)/.exec(t);if(i){let[,e,t]=i;return`${e.toLowerCase()}.do?sys_id=${t}`}if(r||!globalThis.window)return null;let a=null;if(t.startsWith("/classic"))try{let e=new URL(globalThis.window.location.href).searchParams.get("target");e&&(a=e.replace(/^\//,""))}catch{}if(null==a){let e=globalThis.window.location.pathname;a=e?e.replace(/^\//,""):null}var n=a;if(!n)return null;let o=function(e,t=nR){if("string"!=typeof e||!e)return null;let i=e.replace(/^\//,"");if(i.includes("://"))return null;let[a,n=""]=i.split("?"),r=new URLSearchParams(n);for(let e of t)r.delete(e);for(let[e,t]of[...r])""===t&&r.delete(e);return{pathname:"/"+a,params:Object.fromEntries(r)}}(n);if(!o)return null;let s=o.pathname.replace(/^\//,""),l=new URLSearchParams(o.params).toString();return l?`${s}?${l}`:s}function dH(e){if(!e.currentPath?.startsWith("/classic"))return null;let t=eg.get()?.menuData?.[eP];if(!t?.length)return null;let i=dU(e);if(i){let e=nP(t,e=>e.id===i);if(e?.label)return e.label}let a=dW(e);if(a){let e=a.toLowerCase().replace(/^\//,""),i=nP(t,t=>{let i=t.route?.params?.target??t.route?.url;return"string"==typeof i&&i.toLowerCase().replace(/^\//,"").startsWith(e)});if(i)return i.route?.context?.experienceName??i.label??null}return null}function dB(e){return e?.renderRoot?.querySelector("aiux-nav-sidebar")?.menuData?.[eL]??eg.get()?.menuData?.[eL]??null}function dK(e,t){if(!t)return null;let i=nP(dB(e),e=>{if(e.moduleId)return!1;let i=e.route?.params?.target??e.route?.url;return"string"==typeof i&&nA(i,t,nR)});return i?.id??null}function dq(e){return e&&"base"!==e?e.startsWith("tab:")?e:`tab:${e}`:"base"}function dG(e){let t=dq(e);if("base"===t)return null;let i=t.slice(4).replace(/[^a-zA-Z0-9_-]/g,"-");return`panel-tab-${i}`}function dQ(e,t){e.activeModal=t}let dY=k("nav-layout");async function dV(e,t){let{item:i}=t.detail;if(e._trackNavEvent("menu-item-click",{title:i.title||"",actionType:i.action?.type||"",path:i.action?.path||""}),i.action?.type==="navigate"){if(i.action.href){if(!r){let{browserNavigate:e}=await import("/aiux/assets/core/aiux-client-B9ipFXGK.js");await e(i.action.href)}return}e._navHistory.requestReset();try{await dN(e,i.action.path)}catch(e){dY.error({error:e.message},"Navigation error")}}else if(i.action?.type==="modal")dQ(e,i.action.component);else if(i.action?.type==="event"&&i.action?.name==="open-notifications-menu"){e._notificationsAnchorRect=t.detail?.triggerRect||null,e._notificationsSidebarCollapsed=t.detail?.sidebarCollapsed??!1;let i=e._notificationsOpen;e._notificationsOpen=!e._notificationsOpen,!i&&e._notificationsOpen&&e._notificationController._fetchNotifications()}else i.action?.type==="event"&&i.action?.name==="open-chat"?e.chatController?.openChat():i.action?.type==="menu-tray"&&i.action?.menuId===eF&&e.dispatchEvent(new CustomEvent("nav-search-open",{detail:{triggerRect:t.detail?.triggerRect},bubbles:!0,composed:!0}))}function dZ(e,t){let i=t.detail?.url;if(!i)return;t.preventDefault();let a=i.startsWith("/")?i:`/${i}`,n="/aiux/ui",r=globalThis.window?.__BASE_PATH__??"",o=""===r||r===n,s=!!globalThis.window?.__CROSS_SERVICE__,l=(t,i)=>{if(o||s)return void e.navigate(o?t:`${n}${t}`,{query:i});let a=i&&Object.keys(i).length?`?${new URLSearchParams(i)}`:"";globalThis.window?.location.assign(`${n}${t}${a}`)};if(/^\/aiux(?:-\d+)?\/[^/]+/.test(a)){globalThis.window&&globalThis.window.location.assign(a);return}if(a.startsWith("/classic"))return void l("/classic",ra(a));if(a.startsWith("/now")){let t=`/workspace${a}`;l(t,ri(t,dA(e)));return}if(/^\/(list|record)\/[^/]+/.test(a))return void l(a,ri(a,dA(e)));if(i7($("aiux.ui.lit_record_list.enabled"))){let t=a.match(/^\/?(\w+)_list\.do/);if(t){let i=`/list/${t[1]}`;l(i,ri(i,dA(e)));return}let i=a.match(/^\/?(\w+)\.do\?.*sys_id=([^&]+)/);if(i&&"-1"!==i[2]){let t=`/record/${i[1]}/${i[2]}`;l(t,ri(t,dA(e)));return}}l("/classic",{target:a})}function dX(e,{detail:{path:t,stackIndex:i}}){if(!e._router||t===e._router.currentPath)return;let a=dR(e);e._navHistory.truncateToIndex(i,a);let n={...dA(e)||{}};delete n.tabId,e._router.navigate(t,{query:n})}function dJ(e,t){let i=dq(t);if(e._panelHosts.has(i))return!0;let a=dG(i),n=e.querySelector?.(`[slot="${a}"], section[data-tab-instance="${i}"], section[data-tab-instance="${t}"]`);return!!n&&(n.setAttribute?.("slot",a),e._panelHosts.set(i,n),!0)}function d0(e,t){let i=t||"base";e._activateContextScope?.(i),e.setAttribute("loader-scope-key",i)}function d1(e){let t=j.get(),i=t?.sys_id||"anonymous";return`aiux-nav-tabs:${e.localName||"layout"}:${i}`}function d2(e){!r&&globalThis.window&&tO(d1(e),{version:1,tabs:e.tabs.map(({id:e,title:t,path:i,query:a,originPath:n,originQuery:r})=>({id:e,title:t,path:i,query:a,originPath:n,originQuery:r})),tabsCollapsed:!0===e.tabsCollapsed,appGroupsCollapsed:Array.from(e.appGroupsCollapsed||[])})}function d3(e,t){let i=e.tabs.find(e=>e.id===t);if(!i)return;e.activeTabId=t,d0(e,t),d2(e);let a=n7(i.query,t),n=dJ(e,t),r="/classic"===i.path,o=(i.path||"").startsWith("/workspace");(r?n:!o&&(i.pageTagName||n))?e.navigate(i.path,{query:a,allowTabId:!0,shallow:!0}):e.navigate(i.path,{query:a,allowTabId:!0})}function d4(e,t){let i=t.detail?.tabId;i&&d3(e,i)}function d5(e,t){let i=t.detail?.tabId;i&&function(e,t){let i,a,n,r,o=e.tabs,s=o.findIndex(e=>e.id===t);if(-1===s)return;let l=o[s];i=dq(`tab:${t}`),a=e._panelHosts.get(i),a?.remove&&a.remove(),(r=(n=dG(i))?e.querySelector?.(`[slot="${n}"]`):Array.from(e.children||[]).find(e=>!e.getAttribute?.("slot")))&&r!==a&&r.remove?.(),e._panelHosts.delete(i),e._navHistory.deleteTab(t),delete e._pageActionsByScope[t],delete e._headerConfigByScope[t];let c=dP(e)===t,d=o.filter(e=>e.id!==t);if(e.tabs=d,!c)return d2(e);let u=d[s-1]||d[s]||null;if(u){e.activeTabId=u.id,d0(e,u.id),d2(e),e.navigate(u.path,{query:n7(u.query,u.id),allowTabId:!0});return}d2(e),e.activeTabId=null,d0(e,null);let p=l?.originPath,h=e.basePage?.path,m=p&&p!==l?.path?p:h&&h!==l?.path?h:"/home",f=re(m===p?l?.originQuery||{}:m===h&&e.basePage?.query||{});e.navigate(m,{query:f})}(e,i)}function d6(e){e.tabsCollapsed=!e.tabsCollapsed,d2(e)}function d9(e,t){let i=t.detail?.groupId;if(!i)return;let a=new Set(e.appGroupsCollapsed);a.has(i)?a.delete(i):a.add(i),e.appGroupsCollapsed=a,d2(e)}function d8(e,t){let i=t.detail?.tabs;i&&Array.isArray(i)&&(e.tabs=i,d2(e))}function d7(e){let t=(e||"").split("/").filter(Boolean).pop();return t?t.split(/[-_]/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):l("New tab")}function ue(e,t,i){t?.setAttribute&&(t.setAttribute("loader-scope-key",i),t.querySelectorAll?.("[loader-scope-key]").forEach(e=>e.setAttribute("loader-scope-key",i)))}function ut(e,t){!function(e,{title:t,route:i}={}){let a="string"==typeof i&&i.length>0,n=e.currentPath,r=rt(dA(e)),o=a?i:e.currentPath;if(!o)return;let s=o===e.currentPath,l=s?rt(dA(e)):{},c=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,d={id:c,title:t||d7(o),path:o,query:l,originPath:n,originQuery:r,pageTagName:s&&e._currentPage?.tagName||null,layoutChain:s&&e._currentLayoutChain||[]};e.tabs=[d,...e.tabs],d2(e);let u=s&&function(e,t){let i=e._panelHosts.get("base");if(!i)return!1;let a=`tab:${t}`,n=e._panelHosts.get(a);n&&n!==i&&(n.remove?.(),e._panelHosts.delete(a));let r=dG(a);return r&&i.setAttribute?.("slot",r),e._panelHosts.delete("base"),e._panelHosts.set(a,i),ue(e,i,t),e.basePage=null,!0}(e,c);u&&(e.activeTabId=c,d0(e,c)),e.navigate(o,{query:n7(l,c),allowTabId:!0,replace:s,...u?{shallow:!0}:{}})}(e,{title:t.detail?.title,route:t.detail?.route})}function ui(e,t){if(r)return;let i=e.currentPath||"/aiux/ui/classic",a=t.detail?.target;oU(i,a?`?${new URLSearchParams({target:a}).toString()}`:"")}let ua=k("nav-layout");function un(e){let t=e.renderRoot?.querySelector("aiux-nav-sidebar"),i=t?.menuData;if(!i){e._contextualNavFavorited=!1,e._contextualNavCanFavorite=!0,e._contextualNavMatchedLabel="",e._contextualNavFavoriteItem=null;return}let a=`${e.currentPath||""}${dE(e)}`,n=nD(Object.entries(i).filter(([e])=>e!==eL&&e!==eR).flatMap(([,e])=>e),a),o=nD(i[eL],a);o&&!r&&ua.debug({browserUrl:a,matchedLabel:o.label,matchedRoute:o.route,matchedUrl:o.url},"Favorite matched"),e._contextualNavFavorited=!!n?.favorited||!!o,e._contextualNavFavoriteItem=o||n,e._contextualNavCanFavorite=!n||!1!==n.canFavorite,e._contextualNavMatchedLabel=n?.label||""}function ur(e,t,{path:i,query:a,pageTagName:n,layoutChain:r}){let o=dq(t),s=e._panelHosts.get(o);if(!s)return!1;let l=e._panelHosts.get("base");return l&&(l.remove?.(),e._panelHosts.delete("base")),s.removeAttribute?.("slot"),e._panelHosts.delete(o),e._panelHosts.set("base",s),ue(e,s,"base"),e.basePage={path:i,query:re(a),pageTagName:n||e.basePage?.pageTagName||null,layoutChain:r||e.basePage?.layoutChain||[]},!0}let uo=k("nav-layout");function us(e,t){uo.debug({event:"classic:target-changed",url:`${e.currentPath}${dE(e)}`},"Classic target changed, recomputing favorite");let i=e.activeTabId,a=null;if(i){let a=e.tabs.find(e=>e.id===i);if(a){let n=t?.detail?.target,r=re(dA(e));n&&(r.target=n),ur(e,i,{path:e.currentPath,query:r,pageTagName:a.pageTagName,layoutChain:a.layoutChain})}}else a=dP(e);e.activeTabId=a,d0(e,a),un(e),e.requestUpdate()}function ul(e,t){let{isVisible:i,initialized:a}=t.detail||{};if(!e.isHomePage)return;let n=!!i,r=void 0===a||!!a;(n!==e._homeChatAnchorVisible||r!==e._homeChatAnchorInitialized)&&(e._homeChatAnchorVisible=n,e._homeChatAnchorInitialized=r,e.requestUpdate())}function uc(e,t,i,a){return"hybrid"===e._homeChatPolicy&&(a.setFullscreen(!1),a.switchMode("DEFAULT"),!0)}function ud(e,t){let i=t?.detail?.menuId;if(!i)return;let a=e.renderRoot?.querySelector("aiux-nav-sidebar");if(!a?.openMenuTrayFor)return;let n=t?.detail?.triggerLeft??null,r=t?.detail?.triggerBottom??null;e._trackNavEvent("horizontal-nav:menu-tray-toggle",{menuId:i}),a.openMenuTrayFor(i,{left:n,bottom:r})}function uu(e,t){let i=t?.detail?.action;("scope-picker"===i||"chat"===i)&&(e._trackNavEvent("horizontal-nav:utility-action",{action:i}),"scope-picker"===i?dQ(e,"scope-picker"):"chat"!==i||r||globalThis.window?.dispatchEvent(new CustomEvent("aiux:open-chat")))}let up=k("nav-layout");function uh(e,{moduleId:t,url:i,add:a,title:n}){let r,o=e._horizontalNavFavoritedOverride;if(e._horizontalNavFavoritedOverride=a,a)r=t?nx(t,n):nw(i,n);else if(t)r=n$(t);else{let t=dK(e,i);r=t?nk(t):Promise.resolve()}r.then(()=>{let t;return t=e.renderRoot?.querySelector("aiux-nav-sidebar"),void(t?.fetchFullMenuData&&t.fetchFullMenuData())}).catch(t=>{e._horizontalNavFavoritedOverride=o,up.error({error:t.message},a?"Failed to favorite from horizontal nav":"Failed to unfavorite from horizontal nav")})}function um(e){let t=dH(e);if(t)return t;let i=e._horizontalNavTitleOverrideByScope[dR(e)];if(i)return i;let{l1:a,l2:n}=dj(e);return n?.title||a?.title||""}function uf(e,t){let i=dU(e),a=i?null:dW(e);if(!i&&!a)return;let n=!!t?.detail?.currentlyFavorited;e._trackNavEvent("horizontal-nav:favorite-toggle",{currentlyFavorited:n});let r=I("glide.ui.favorites.quick_edit_enabled");if(null==r||i7(r)){e._horizontalNavFavoritePopup={targetElement:t?.detail?.anchorEl??null,defaultTitle:um(e),moduleId:i,url:a,deleteFavorite:n};return}uh(e,{moduleId:i,url:a,add:!n,title:um(e)})}function ug(e){let{l1:t,l2:i}=dj(e),a=dF(e),n=a?.favTitle||"";if(n)return n;let{title:r,pageTitle:o}=ta(a,(i||t)?.l3Nav,i||t);return o||r||i?.label||""}function ub(e){if(dD(e)){let i=dA(e)?.tabId||null,a=i?e.tabs.find(e=>e.id===i):null;if(a){var t;let i,n;t=a.id,-1===(n=(i=e.tabs).findIndex(e=>e.id===t))||(ur(e,t,i[n]),e._navHistory.deleteTab(t),delete e._pageActionsByScope[t],delete e._headerConfigByScope[t],e.tabs=i.filter(e=>e.id!==t),e.activeTabId=null,d0(e,null),d2(e),function(){if(r)return;let e=new URL(globalThis.location.href);e.searchParams.has("tabId")&&(e.searchParams.delete("tabId"),globalThis.history.replaceState(globalThis.history.state,"",e.toString()))}()),e.requestUpdate()}return}let i=function(e){if(!Array.isArray(e.tabs)||0===e.tabs.length)return null;let t=(e.currentPath||"").replace(/\/$/,"");if(!t)return null;let i=dA(e)||{};return e.tabs.find(e=>{let a=(e?.path||e?.route?.url||"").replace(/\/$/,"");return!!a&&a===t&&("/classic"!==t||e.query?.target===i.target)})??null}(e);if(i)d3(e,i.id);else{let t=ug(e)||function(e){let{l1:t,l2:i}=dj(e),{title:a,pageTitle:n}=ta(dF(e),(i||t)?.l3Nav,i||t);return n||a||i?.label||""}(e);globalThis.window?.dispatchEvent(new CustomEvent(e2,{detail:{title:t}})),e.requestUpdate()}}let uv=k("nav-layout");async function u_(e,{url:t,title:i,add:a}){if(a){let t=e.renderRoot?.querySelector("aiux-nav-sidebar"),i=nD(t?.menuData?.[eL],`${e.currentPath||""}${dE(e)}`);if(i){e._contextualNavFavorited=!0,e._contextualNavFavoriteItem=i;return}}let n=e._contextualNavFavorited,r=e._contextualNavFavoriteItem;e._contextualNavFavorited=!!a;try{if(a){let a=uy(e,{url:t,title:i});await nv(a)}else{let i=e._contextualNavFavoriteItem?.id;if(!i){uv.warn({url:t},"horizontal-contextual-nav: cannot unfavorite — no matched favorite item id"),e._contextualNavFavorited=n,e._contextualNavFavoriteItem=r;return}await n_(i)}let o=e.renderRoot?.querySelector("aiux-nav-sidebar");o?.fetchFullMenuData&&(await new Promise(e=>setTimeout(e,100)),await o.fetchFullMenuData(),e._contextualNavFavorited=a,e.requestUpdate())}catch(i){e._contextualNavFavorited=n,e._contextualNavFavoriteItem=r,uv.warn({error:i.message,url:t,add:a},"horizontal-contextual-nav: favorite toggle failed")}}function uy(e,{url:t,title:i,group:a}){let{l1:n,l2:r}=dj(e),o=ta(dF(e),(r||n)?.l3Nav,r||n),s=e._contextualNavFavoriteItem,l=s?.color||o.color||r?.color,c=s?.icon||o.icon||r?.icon,d=t.startsWith("now/")||t.startsWith("esc/")||t.startsWith("sn_")||t.includes("/now/")||t.includes("/esc/"),u={title:i,url:t,color:l,icon:c};return d&&(u.ui_type="polaris"),a&&(u.group=a),u}async function ux(e,{url:t,title:i,group:a}){let n=uy(e,{url:t,title:i,group:a}),r=await nv(n);return e._contextualNavFavorited=!0,r?.favorite&&(e._contextualNavFavoriteItem=r.favorite),r}let uw=k("nav-layout");async function uk(e,t){let i=function(){if(void 0===globalThis.window)return"";let e=globalThis.window.location?.pathname||"",t=globalThis.window.location?.search||"",i=nO(`${e}${t}`);return i?i.startsWith("/")?i.substring(1):i:e.substring(1)}();if(!i)return void uw.warn("horizontal-contextual-nav: favorite toggle aborted — no URL");let a=ug(e)||"Page",n=t.detail?.favorited,r=I("glide.ui.favorites.quick_edit_enabled");if(null==r||i7(r)){e._contextualNavFavoritePopup={targetElement:t?.detail?.anchorEl??null,defaultTitle:a,url:i,deleteFavorite:!n};return}u_(e,{url:i,title:a,add:n})}function u$(e,t){let{l1:i,l2:a}=dj(e),{title:n}=ta(dF(e),(a||i)?.l3Nav,a||i);globalThis.window?.dispatchEvent(new CustomEvent(e2,{detail:{title:n||t.detail?.title}}))}function uI(e){e.chatController.deferIfResponding(()=>{!function(e){if(!window.nowWindowManager)return;let t=window.nowWindowManager.windowsState,i=t?.modalWindows?.includes(tK);window.nowWindowManager.toggleModal(tK,!1,!0),i?(e.isChatDetached=!0,e.isFullscreen=!1):(e.isChatDetached=!1,e.isFullscreen=!0)}(e.chatController),e.requestUpdate()})}function uT(e){e.chatController.deferIfResponding(()=>{!function(e){if(!window.nowWindowManager)return;let t=window.nowWindowManager.windowsState;t?.leftDockId===tK?(e.isChatDetached=!0,e.isFullscreen=!1):(e.isChatDetached=!1,e.isFullscreen=!1,e.switchMode(e.CHAT_MODES.DEFAULT))}(e.chatController),e.requestUpdate()})}function uS(e){var t;(t=e.chatController).isChatDetached=!1,t.isFullscreen=!1,t.switchMode(t.CHAT_MODES.OMNI),e.requestUpdate()}function uC(e,t){e._notificationController._handleNotificationsToggle(t)}function uM(e){e._notificationsPinned=!0,e._notificationsOpen=!1,e._trackNavEvent("notifications-pin",{}),rO("aiux.ainpx.notifications_pinned","true").catch(()=>{})}function uE(e){e._notificationsPinned=!1,e._trackNavEvent("notifications-unpin",{}),rO("aiux.ainpx.notifications_pinned","false").catch(()=>{}),e.updateComplete.then(async()=>{let t=e.renderRoot?.querySelector("aiux-nav-sidebar");await t?.updateComplete;let i=t?.renderRoot?.querySelector('[data-menu-anchor-id="notifications"]');if(i){let t=i.getBoundingClientRect();e._notificationsAnchorRect={top:t.top,right:t.right,bottom:t.bottom,left:t.left}}e._notificationsSidebarCollapsed=t?.collapsed??!1,e._notificationsOpen=!0})}function uA(e){e._notificationController._handleToastDismissed()}function uN(e,t){return e._notificationController._handleToastAction(t)}function uO(e,t){return e._notificationController._handleToastSnooze(t)}function uD(e,t){let{path:i,label:a,l1Icon:n}=t.detail??{};i&&e._navHistory.push({path:i,label:a||i,l1Icon:n})}function uP(e,t){let{id:i,path:a,url:n,title:r,label:o,description:s}=t.detail??{},l=n??a;if(!l)return;let c=e.renderRoot?.querySelector("aiux-nav-sidebar");c?._prependHistoryEntry?.({id:i,title:r??o??l,url:l,description:s??""})}async function uR(e,t){let i=t.detail;if(!i?.id)return;let a=e.renderRoot?.querySelector("aiux-nav-sidebar");a?.optimisticAddFavorite(i),await a?.refreshMenu()}async function uL(e,t){let i=t.detail?.id;if(!i)return;let a=e.renderRoot?.querySelector("aiux-nav-sidebar");a?.optimisticRemoveFavorite(i),await a?.refreshMenu()}function uz(e){e.renderRoot?.querySelector("aiux-nav-sidebar")?.refreshMenu()}function uj(e,t){let i=e.renderRoot?.querySelector("aiux-nav-sidebar");!i||t.composedPath?.().includes(i)||i._handleFavoritesEditRequested(t)}function uF(e,t){let i=e._horizontalNavFavoritePopup;if(!i)return;let{name:a}=t.detail,n=(a||i.defaultTitle||"").trim();e._horizontalNavFavoritePopup=null,uh(e,{moduleId:i.moduleId,url:i.url,add:!0,title:n})}function uU(e,{fav:t,groupId:i,identityId:a}){let n=e.renderRoot?.querySelector("aiux-nav-sidebar");n&&(t?.id&&n.optimisticAddFavoriteToGroup?.(t,i,a??t.id),n._handleFavoritesEditRequested?.({detail:{selectId:t?.id??null,expand:!0}}))}let uW=k("nav-layout");async function uH(e,t){let i=e._horizontalNavFavoritePopup;if(!i)return;let{name:a,groupId:n}=t.detail||{},r=(a||i.defaultTitle||"").trim();e._horizontalNavFavoritePopup=null;let o=e._horizontalNavFavoritedOverride;e._horizontalNavFavoritedOverride=!0;try{let t=n?{group:n}:void 0,a=i.moduleId?await (t?nx(i.moduleId,r,t):nx(i.moduleId,r)):await (t?nw(i.url,r,t):nw(i.url,r));uU(e,{fav:a?.favorite,groupId:n,identityId:i.moduleId||a?.favorite?.id})}catch(t){e._horizontalNavFavoritedOverride=o,uW.error({error:t.message},"Failed to favorite from horizontal nav (more)")}}function uB(e){let t=e._horizontalNavFavoritePopup;t&&(e._horizontalNavFavoritePopup=null,uh(e,{moduleId:t.moduleId,url:t.url,add:!1}))}function uK(e){e._horizontalNavFavoritePopup=null}function uq(e){e._horizontalNavFavoritePopup=null}function uG(e,t){let i=e._contextualNavFavoritePopup;if(!i)return;let{name:a}=t.detail,n=(a||i.defaultTitle||"").trim();e._contextualNavFavoritePopup=null,u_(e,{url:i.url,title:n,add:!0})}let uQ=k("nav-layout");async function uY(e,t){let i=e._contextualNavFavoritePopup;if(!i)return;let{name:a,groupId:n}=t.detail||{},r=(a||i.defaultTitle||"").trim();e._contextualNavFavoritePopup=null;try{let t=await ux(e,{url:i.url,title:r,group:n});uU(e,{fav:t?.favorite,groupId:n,identityId:t?.favorite?.id})}catch(e){uQ.error({error:e.message},"Failed to favorite from contextual nav (more)")}}function uV(e){let t=e._contextualNavFavoritePopup;t&&(e._contextualNavFavoritePopup=null,u_(e,{url:t.url,add:!1}))}function uZ(e){e._contextualNavFavoritePopup=null}function uX(e){e._contextualNavFavoritePopup=null}function uJ(e,t){if(!t)return;let i=eh.get()?.features;if(i?.menus===!1)return;let a=e.renderRoot?.querySelector("aiux-nav-sidebar");a?._prependHistoryEntry?.(t)}async function u0(e,t,{retries:i=3,baseDelayMs:a=150}={}){for(let n=0;n<i;n++){try{let i=await T(e,{method:"GET",headers:t});if(i.ok&&202!==i.status){let e=await i.text();if(e)return JSON.parse(e)}}catch{}n<i-1&&await new Promise(e=>setTimeout(e,a*(n+1)))}return{result:{}}}let u1=k("nav-layout"),u2={unifiedExperience:"aiux.experience"};async function u3(e){let t=eh.get()??{},i={...t.features||{}};for(let e of Object.keys(u2))delete i[e];let a={...e4,unifiedExperience:tp(),...i},n=t.items,{defaultLogoFull:r,defaultLogoIcon:o}=t,s={...e5,...t.pageLoader??{}},l=t.headerConfig??null,{protocol:c,hostname:d}=e,u=null;if(a.preferences){let e=I("glide.ui.concourse_picker.recent_items")??"{}",t=I("glide.ui.concourse_picker.max_recent_items");u={timezoneList:[],timezoneCurrent:"",timezoneEnabled:!0,recentConcoursePicker:e,maxRecentItems:t?parseInt(t,10):5}}let p=null;if(u?.recentConcoursePicker)try{p={recentSelections:JSON.parse(u.recentConcoursePicker),maxRecentItems:u.maxRecentItems||5}}catch(e){u1.error({error:e?.message},"Error parsing recent selections")}let h=null;if(!1!==a.concoursePicker){var m;let t={};try{let i=await eu("79c9fd62c7113010099a308dc7c260f1",{},e);t=i?.output?.data?.GlideUserSettingsAccess_Query?.userSettingsAccess??{}}catch{}if(m=t,m?.showApplicationPicker||m?.showUpdateSetPicker||m?.showDomainPicker||m?.showEncryptionPicker||m?.showCryptoModulePicker)try{let[i,a]=await Promise.all([u0(`${c}://${d}/api/now/ui/concoursepicker/concourselist`,F(e)),u0(`${c}://${d}/api/now/ui/concoursepicker/current`,F(e))]);h={concourseData:i.result||{},currentSelections:a.result||{},recentSelections:p?.recentSelections||{},maxRecentItems:p?.maxRecentItems||5,userSettingsAccess:t}}catch(e){u1.error({error:e?.message},"Error fetching concourse picker data"),h={concourseData:{},currentSelections:{},recentSelections:p?.recentSelections||{},maxRecentItems:p?.maxRecentItems||5,userSettingsAccess:t}}}let f="";if(!1!==a.logo&&!r){let t;try{let i={method:"GET",headers:F(e)};if("u">typeof AbortController){let e=new AbortController;i.signal=e.signal,t=setTimeout(()=>e.abort(),5e3)}let a=await T(`${c}://${d}/api/now/get_core_ui_logo_source/getCoreLogoSrc`,i);if(a.ok){let e=await a.json();f=ts(e?.result?.imgSrc)}}catch(e){u1.error({error:e?.message},"Error fetching company logo")}finally{t&&clearTimeout(t)}}f||(f=ts($("sn_intelligent_nav.header.logo.full.image"))),tl(f)&&(f="servicenow");let g=ts($("sn_intelligent_nav.header.logo.small.image"));tl(g)&&(g="servicenow");let b=($("glide.ui.branding.works_with.is_visible")??"true")==="true",v=$("glide.product.name")??"",_=$("glide.product.description")??"",y=null;if(a.logo)try{let t=await eu("b67e4b90c7003010099a308dc7c26094",{},e);y=t?.result?.GlideHeaderLogo_Query?.getLogoURL??null}catch{}let x=a.menus?s2(e,{protocol:c,hostname:d}):Promise.resolve([]),w=e.pagePath||"";if(e.params)for(let[t,i]of Object.entries(e.params))w=w.replace(`:${t}*`,i).replace(`:${t}`,i);let k=await of(e,a,j.get()?.sys_id),S=parseInt($("glide.ui_notification.min_unread_count_for_summary"),10)||7,C={basePath:e.basePath,instanceEnabled:i7($("aiux.ainpx.isolated_nav.instance_enabled")),userToggleEnabled:i7($("aiux.ainpx.isolated_nav.user_toggle_enabled"))},M={instanceEnabled:i7($("aiux.ainpx.glide.elevated_nav.instance_enabled")??"true"),userToggleEnabled:i7($("aiux.ainpx.glide.elevated_nav.user_toggle_enabled")??"true")},E={announcements:[],configId:"",realTimeEnabled:!1};if(a.announcements){if(!eo.get()?.configId){let e=$("glide.ui.polaris.announcement_banner_config_id")||"36aefd8153223010f296ddeeff7b12e9";eo.set({configId:e})}E=await es.loader(e)}let A=w.startsWith("/workspace/")?w.slice(11):null,N={};try{N=await sY(e,eu)??{}}catch(e){u1.warn({error:e?.message},"Failed to fetch search experience configs")}let{searchContexts:O,selectedSearchContext:D}=sQ(N,{activePath:A??"now/nav/ui"}),P=await x;eh.set({features:a,preferences:u,concoursePicker:h,companyLogo:f,companyLogoSm:g,defaultLogoFull:r,defaultLogoIcon:o,brandingWorksWithVisible:b,productName:v,productDescription:_,logoTarget:y,origin:{protocol:c,hostname:d},basePath:e.basePath,pagePath:w,resolvedPath:e.resolvedPath,items:n?.length?n:e6,usesDefaultNavItems:!n?.length,menus:P,tabs:[],activeTabId:e.query?.tabId??null,appTitle:eh.get()?.appTitle??null,csrfToken:e.csrfToken,horizontalNav:C,elevatedNav:M,minUnreadCountForSummary:S,unreadNotificationCount:k,announcements:E,activeWorkspacePath:A,headerConfig:l,searchContexts:O,selectedSearchContext:D,pageLoader:s,ready:!0})}let u4=k("nav-layout");async function u5(){try{let e=await T("/api/now/ui/concoursepicker/timezoneWithCheck",{method:"GET",headers:{Accept:"application/json"}});if(!e.ok)return;let t=await e.json(),i=eh.get()??{};eh.set({...i,preferences:{...i.preferences??{},timezoneList:t.result?.list||[],timezoneCurrent:t.result?.current||"",timezoneEnabled:t.result?.enabled??!0}})}catch(e){u4.error({error:e?.message},"Error fetching timezone preferences")}}async function u6(e){await e.updateComplete;let t=e.renderRoot?.querySelector("aiux-nav-sidebar");return t&&"function"==typeof t.getNavigableMenuItems?t.getNavigableMenuItems():[]}function u9(){return{chatMode:"OMNI",isFullscreen:!1,isChatDetached:!1,lbfProps:{},lbfPropsForNav:{},showHistoryButton:!1,handleChatEvent:()=>{},handleOpenChat:()=>{},handleCloseChat:()=>{},handleRequestSkillExecution:()=>{},handleShowInteractiveView:()=>{},handleCloseInteractiveView:()=>{},handleSidePanelChange:()=>{},onNavigate:()=>{},shouldHideChat:()=>!0,isReady:()=>!1,brandingReady:!1,getAiexMode:()=>"chat_only",initialize:async()=>{},overrideChatNavigation:()=>{},cleanup:()=>{}}}function u8(e,t,{checkFramedPage:i=!0}={}){if(!t)return!0;if(i&&e.isFramedPage)return!1;let a=t.startsWith("/")?t:`/${t}`;if("/"===a||a.endsWith("/home"))return!0;let n=(e.loaderData?.basePath||"").replace(/\/$/,"");return""!==n&&a.replace(/\/$/,"")===n}function u7(e,t){em.set(t);let i=eh.get(),a=[...i.items||[]];if(t)a.find(e=>"Debugging"===e.title)||(a.push(e3),eh.set({...i,items:a}));else{let e=a.findIndex(e=>"Debugging"===e.title);e>=0&&(a.splice(e,1),eh.set({...i,items:a}))}e.requestUpdate()}function pe(e,t){let i=globalThis.document?.documentElement;i&&(t&&"normal"!==t&&A.includes(t)?i.dataset.density=t:delete i.dataset.density)}function pt(e){let t=e.renderRoot?.querySelector("section[data-tab-instance]:not([hidden])");if(!t||e._scrollHandler)return;let i=e.renderRoot.querySelector(".layout-main-container"),a=0;e._scrollHandler=()=>{let e=t.scrollTop,n=Math.min(1,e/80);t.scrollHeight-e-t.clientHeight<1&&n<a&&(n=a),a=n,i?.style.setProperty("--scroll-progress",n)},e._scrollContainer=t,t.addEventListener("scroll",e._scrollHandler)}async function pi(e){if(e._engagementStyleApplied)return;let t=e.renderRoot?.querySelector("sn-engagement-experience");if(!t||(await customElements.whenDefined("sn-engagement-experience"),t.shadowRoot||await new Promise(e=>requestAnimationFrame(e)),!t.shadowRoot))return;let i=new CSSStyleSheet;i.replaceSync("sn-interactive-view { background: var(--color-base-200); }"),t.shadowRoot.adoptedStyleSheets=[...t.shadowRoot.adoptedStyleSheets,i],e._engagementStyleApplied=!0}function pa(e){if(r){e._horizontalNavActive=!1;return}let t=eh.get(),i=t?.basePath||"",a=i7($("aiux.ainpx.glide.isolated_nav.instance_enabled")),{active:n,userToggleEnabled:o}=at({basePath:i,instanceEnabled:a,userToggleEnabled:i7($("aiux.ainpx.glide.isolated_nav.user_toggle_enabled")),userPref:I("aiux.ainpx.glide.isolated_nav.enabled")});e._horizontalNavActive=n,eh.set({...t,horizontalNav:{active:n,userToggleEnabled:o}})}function pn(e){if(r)return;let t=eh.get(),i=i7($("aiux.ainpx.glide.elevated_nav.instance_enabled")??"true"),{active:a,userToggleEnabled:n}=rK({instanceEnabled:i,userToggleEnabled:i7($("aiux.ainpx.glide.elevated_nav.user_toggle_enabled")??"true"),userPref:I("aiux.ainpx.glide.elevated_nav.enabled")});eh.set({...t,elevatedNav:{active:a,userToggleEnabled:n,instanceEnabled:i}})}function pr(e,{href:t,_event:i}){if(!t)return!1;let a=function(e,t=[]){return function(e,t){if(!e||!t?.length)return null;try{let i=new URL(e,r?"http://localhost":window.location.origin);for(let e of t){let t=i.pathname.match(e.pathname);if(!t)continue;let a={...t.groups};if(e.query){let t=!0;for(let[n,r]of Object.entries(e.query)){let e=i.searchParams.get(r);if(!e){t=!1;break}a[n]=e}if(!t)continue}return e.route({...a,search:i.search,hash:i.hash})}}catch{}return null}(e,t)}(t);return!!a&&(e._pendingBackButton=!0,e.navigate(a),!0)}function po(e,t){e._activeMenuTrayId=t?.detail?.menuId??null}function ps(e,t){e._ui16HelpContext=t.detail}let pl=k("nav-layout");function pc(e,t){let{href:i}=t.detail??{};if(i)try{let{pathname:t,search:a}=new URL(i,"http://x"),n=dp(t,a);"custom"!==n.type||n.app_route||(n.type="classic"),e._ui16HelpContext={...n,_url:i},e._helpPanelOpened=!1}catch(e){pl.debug({err:e},"classic:navigate — failed to parse href")}}let pd=k("nav-layout");function pu(e,t){let i=dR(e);e._headerConfigByScope[i]={...e._headerConfigByScope[i]??dF(e),...t.detail},pd.debug({event:"header-config:update",detail:t.detail,url:`${e.currentPath}${dE(e)}`},"Header config updated, recomputing favorite"),e.requestUpdate(),un(e)}function pp(e,t){let i=dR(e);e._pageActionsByScope[i]=t.detail.actions,e.requestUpdate()}function ph(e,t){let i=t?.detail?.title??"",a=t?.detail?.scope??dR(e);i!==(e._horizontalNavTitleOverrideByScope[a]??"")&&(e._horizontalNavTitleOverrideByScope[a]=i,e.requestUpdate())}function pm(e,t){e._horizontalNavActiveMenuId=t.detail?.menuId||null}function pf(e,t){e._loading=t.detail?.loading??!1}function pg(e,t){let{title:i,url:a,description:n}=t.detail??{};i&&a&&function(e,{title:t,url:i,description:a}){sA({title:t,url:i,description:a,onSuccess:t=>uJ(e,t)})}(e,{title:i,url:a,description:n})}function pb(e,t,i,a){var n,r=arguments.length,o=r<3?t:a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o}let pv=k("nav-layout");class p_ extends B(Z){static{this.properties={activeModal:{type:String,state:!0},tabs:{state:!0},activeTabId:{type:String,state:!0},tabsCollapsed:{type:Boolean,state:!0},appGroupsCollapsed:{type:Set,state:!0},basePage:{state:!0},_notificationsOpen:{type:Boolean,state:!0},_notificationsPinned:{type:Boolean,state:!0},_pinningEnabled:{type:Boolean,state:!0},_notificationsAnchorRect:{state:!0},_notifications:{type:Array,state:!0},_notificationSettingsOpen:{type:Boolean,state:!0},_toastNotification:{type:Object,state:!0},_activeMenuTrayId:{type:String,state:!0},_horizontalNavTitleOverride:{type:String,state:!0},_horizontalNavFavoritePopup:{state:!0},_contextualNavFavoritePopup:{state:!0},_horizontalNavFavoritedOverride:{state:!0},_notificationsMeta:{type:Object,state:!0},_unreadNotificationCount:{type:Number,state:!0},_contextualNavFavorited:{type:Boolean,state:!0},_contextualNavCanFavorite:{type:Boolean,state:!0},_contextualNavMatchedLabel:{type:String,state:!0},_contextualNavFavoriteItem:{type:Object,state:!0},_horizontalNavActive:{type:Boolean,state:!0},_horizontalNavActiveMenuId:{type:String,state:!0},_helpPanelOpened:{type:Boolean,state:!0},_ui16HelpContext:{type:Object,state:!0},_dirtyWorkspacePaths:{type:Array,state:!0}}}static{this.styles=[Z.styles,sK,t6,sq]}static{this.aiContext={description:"The core UI app-shell layout. Exposes navigation into the menu tree so the assistant can take the user to any section available in the left-nav menus.",bestFor:"When the user asks to go to, open, or navigate to a page, section, or menu item by name."}}static{this.client_tools={navigateToMenuItem:{description:"Navigate the app-shell to a menu item by its visible title. Matches exact title first (case-insensitive), then substring. If no match is found, returns up to 3 suggested titles plus the full list of available titles.",arguments:[{name:"title",description:'The visible title of the menu item to navigate to (e.g. "Incidents", "Home", "Inbox").',type:"string",required:!0}],definition:async function({title:e}={}){if(!e)return{success:!1,reason:"title is required"};let t=await this.getNavigableMenuItems(),{match:i,suggestions:a}=function(e,t){if(!t||!Array.isArray(e)||0===e.length)return{match:null,suggestions:[]};let i=String(t).trim().toLowerCase(),a=e.find(e=>e.title.toLowerCase()===i);if(a)return{match:a,suggestions:[]};let n=e.find(e=>e.title.toLowerCase().includes(i));return n?{match:n,suggestions:[]}:{match:null,suggestions:e.map(e=>{let t=e.title.toLowerCase(),a=0;for(let e of i)t.includes(e)&&(a+=1);return{item:e,score:a}}).filter(e=>e.score>0).sort((e,t)=>t.score-e.score).slice(0,3).map(e=>e.item.title)}}(t,e);if(!i)return{success:!1,reason:`No menu item matched "${e}"`,suggestions:a,available:t.map(e=>e.title)};let n=i.url.startsWith("/")?i.url:`/${i.url}`;if(i.isCustomItem){this._navHistory.requestReset();try{return await dN(this,n),{success:!0,title:i.title,url:n}}catch(e){return{success:!1,reason:e.message}}}{let e=new CustomEvent("core-ui-navigate",{detail:{url:n},cancelable:!0,bubbles:!0});return window.dispatchEvent(e)&&(window.location.href=n),{success:!0,title:i.title,url:n}}}}}}static{this.contexts=[j,R,z,eh,H,ef,R,eg]}static async loader(e){return u3(e)}async getNavigableMenuItems(){return u6(this)}_applyLayoutOverrides(){let e=this.constructor;if(e.__layoutOverridesApplied)return;e.__layoutOverridesApplied=!0;let t=globalThis.__LAYOUT_OVERRIDES__;if(!t)return;let i="NavLayout"===e.name,a=!i&&Object.hasOwnProperty.call(e,"aiContext"),n=!i&&Object.hasOwnProperty.call(e,"client_tools");t.aiContext&&!a&&(e.aiContext={...e.aiContext||{},...t.aiContext}),t.client_tools&&!n&&(e.client_tools={...e.client_tools||{},...t.client_tools})}_applyHomeChatManifestOverride(){let e=globalThis.__LAYOUT_OVERRIDES__;e&&(!0===e.embedsHomeChat&&(this.embedsHomeChat=!0),void 0!==e.homeChatPolicy&&(this._homeChatPolicy=e.homeChatPolicy))}_notificationSettingsOutsideAnchors(){return[this.renderRoot?.querySelector("notification-settings")]}constructor(){super(),this._clientHydrated=!1,this._onboardingStep=null,this._tabActivatedByUser=!1,this._isSearchResultsIV=!1,this._showBackButton=!1,this._tailwindCssUrl="",this._notificationsSidebarCollapsed=!1,this._pendingBackButton=!1,new tV(this,{outsideClick:!1,isOpen:e=>e._notificationsOpen,close:e=>{e._notificationsOpen=!1}}),new tV(this,{isOpen:e=>e._notificationSettingsOpen,close:e=>{e._notificationSettingsOpen=!1},outsideAnchors:e=>e._notificationSettingsOutsideAnchors()}),this.activeModal=null,this.tabs=eh.get()?.tabs??[],this.activeTabId=null,this.tabsCollapsed=!1,this.appGroupsCollapsed=new Set,this.basePage=null,this._pageActionsByScope={},this._headerConfigByScope={},this._clientHydrated=!1,this._canAdoptSSRPanels=!1,this._panelHosts=new Map,this._hasCapturedSSRPanels=!1,this.hideChat=!1,this._homeChatAnchorVisible=!0,this._homeChatAnchorInitialized=!1,this._homeChatPolicy="default",this._prevSidePanelOpen=!1,this._getEventPrefix=()=>eU(eh.get()?.basePath,this.currentPath),this._trackNavEvent=(e,t)=>this.trackEvent(`${this._getEventPrefix()}:${e}`,t),this._prevChatMode="OMNI",this._prevChatDetached=!1,this._prevFullscreen=!1,this._chatEnabled=!0,this.chatController=u9(),this._navHistory=new n6(this),this._notificationController=new sI(this),this._lastNavFromBrowserHistory=!1,this._contextualNavFavorited=!1,this._contextualNavCanFavorite=!0,this._contextualNavMatchedLabel="",this._contextualNavFavoriteItem=null,this._horizontalNavActive=!1,this._horizontalNavActiveMenuId=null,this._onMagellanHistoryAdded=uD.bind(null,this),this._onNavHistoryAdd=uP.bind(null,this),this._onMagellanFavoriteAdded=uR.bind(null,this),this._onMagellanFavoriteRemoved=uL.bind(null,this),this._onMagellanMenuRefresh=uz.bind(null,this),this._onMagellanFavoriteEditRequested=uj.bind(null,this),this._magellanListeners=[["nav:history-add",this._onMagellanHistoryAdded],["nav:history-add",this._onNavHistoryAdd],["nav:favorite-added",this._onMagellanFavoriteAdded],["nav:favorite-removed",this._onMagellanFavoriteRemoved],["nav:menu-refresh",this._onMagellanMenuRefresh],["nav:favorite-edit-modal-requested",this._onMagellanFavoriteEditRequested]],this._handleBreadcrumbNavigate=dX.bind(null,this),this._handleNavTabClick=d4.bind(null,this),this._handleNavTabClose=d5.bind(null,this),this._handleNavTabsToggleCollapse=d6.bind(null,this),this._handleNavAppGroupToggleCollapse=d9.bind(null,this),this._handleNavTabsReordered=d8.bind(null,this),this._handleCreateTabEvent=ut.bind(null,this),this._handleContinueModeTargetChanged=ui.bind(null,this),this._handleClassicTargetChanged=us.bind(null,this),this._handleContextualNavTabToggle=ub.bind(null,this),this._handleContextualNavFavoriteToggle=uk.bind(null,this),this._handleNavigation=pr.bind(null,this),this._handleFullscreenToggle=uI.bind(null,this),this._handleDockToggle=uT.bind(null,this),this._handleChatClose=uS.bind(null,this),this._handleHomeChatAnchorState=ul.bind(null,this),this.onHomeChatEvent=uc.bind(null,this),this._handleOpenInSidebar=u$.bind(null,this),this._handleHorizontalNavMenuOpen=ud.bind(null,this),this._handleHorizontalNavUtilityAction=uu.bind(null,this),this._handleHorizontalNavFavoriteToggle=uf.bind(null,this),this._handleNotificationsToggle=uC.bind(null,this),this._handlePinNotifications=uM.bind(null,this),this._handleUnpinNotifications=uE.bind(null,this),this._handleToastDismissed=uA.bind(null,this),this._handleToastAction=uN.bind(null,this),this._handleToastSnooze=uO.bind(null,this),this._onHorizontalNavFavoritePopupDone=uF.bind(null,this),this._onHorizontalNavFavoritePopupMore=uH.bind(null,this),this._onHorizontalNavFavoritePopupDelete=uB.bind(null,this),this._onHorizontalNavFavoritePopupClose=uK.bind(null,this),this._onHorizontalNavFavoritePopupRemove=uq.bind(null,this),this._onContextualNavFavoritePopupDone=uG.bind(null,this),this._onContextualNavFavoritePopupMore=uY.bind(null,this),this._onContextualNavFavoritePopupDelete=uV.bind(null,this),this._onContextualNavFavoritePopupClose=uZ.bind(null,this),this._onContextualNavFavoritePopupRemove=uX.bind(null,this),this._notificationsOpen=!1,this._notificationsPinned=!1,this._pinningEnabled="true"===($("aiux.ainpx.pinning_enabled")??"false").toLowerCase(),this._notificationsAnchorRect=null,this._notifications=[],this._notificationSettingsOpen=!1,this._toastNotification=null,this._dirtyWorkspacePaths=[],this._unreadNotificationCount=eh.get()?.unreadNotificationCount??0,this._notificationsFetched=!1,this._activeMenuTrayId=null,this._handleNavSidebarMenuTrayChanged=po.bind(null,this),this._horizontalNavTitleOverrideByScope={},this._horizontalNavFavoritePopup=null,this._contextualNavFavoritePopup=null,this._horizontalNavFavoritedOverride=null,this._notificationsMeta={queue:[],deleteQueue:[],offset:0,totalRowCount:0},this._helpPanelOpened=!1,this._ui16HelpContext=null,this._helpPanelAppContextFromIframe=null,this._onUi16HelpContext=ps.bind(null,this),this._onClassicNavigate=pc.bind(null,this),this._onHeaderConfigUpdate=pu.bind(null,this),this._onPageActionsUpdate=pp.bind(null,this),this._onHorizontalNavTitleSet=ph.bind(null,this),this._handleNavItemClick=dV.bind(null,this),this._handleCoreUiNavigate=dZ.bind(null,this),this._handleNavMenuDataUpdated=()=>un(this),this._handleNavMenuTrayChanged=pm.bind(null,this),this._onPageLoadingSet=pf.bind(null,this),this._handleDensityChange=e=>{pe(this,e),this.requestUpdate()},r||(this.addEventListener("nav-item-click",this._handleNavItemClick),"function"==typeof globalThis.window?.addEventListener&&globalThis.window.addEventListener("core-ui-navigate",this._handleCoreUiNavigate),globalThis.window?.addEventListener?.("ui16:help-context",this._onUi16HelpContext),globalThis.window?.addEventListener?.("classic:navigate",this._onClassicNavigate))}async _loadChatController(){try{let{ChatController:e}=await import("/aiux/assets/core/aiux-controllers-YpEbdk7_.js");this.chatController=new e(this),this.chatController.showHistoryButton=!0,this.chatController.showViewToggleButton=!0,this.chatController.pauseAIELContextOnHomePage=!1}catch(e){pv.error({error:e.message},"Failed to load ChatController"),this._chatEnabled=!1,this.hideChat=!0,this.chatController=u9()}}async _initChat(){let e=eh.get()?.features||{};if(this._chatEnabled=!1!==e.chat,!this._chatEnabled){this.hideChat=!0;return}await this._loadChatController(),this._chatEnabled&&this.addEventListener("aict:home-chat-anchor-state",this._handleHomeChatAnchorState)}async connectedCallback(){let e=super.connectedCallback();if(r)return;for(let[e,t]of(this._tailwindCssUrl=globalThis.__TAILWIND_CSS_URL__||"",dT||(dT=e=>{dM(e).catch(e=>d$.error({error:e.message},"global-nav: unhandled error in handler"))},window.addEventListener(dI,dT)),this.addEventListener("header-config:update",this._onHeaderConfigUpdate),this.addEventListener("page-actions:update",this._onPageActionsUpdate),this.addEventListener("classic:target-changed",this._handleContinueModeTargetChanged),this.addEventListener("horizontal-nav-title:set",this._onHorizontalNavTitleSet),th()&&ia().catch(e=>{t9.error({error:e?.message??String(e)},"warmup failed")}),this.addEventListener("nav:menu-data-updated",this._handleNavMenuDataUpdated),this.addEventListener("nav-sidebar:menu-tray-changed",this._handleNavMenuTrayChanged),this.addEventListener("classic:target-changed",this._handleClassicTargetChanged),globalThis.window&&!this._urlCheckInterval&&(this._lastCheckedUrl="",this._urlCheckInterval=setInterval(()=>{if(!this.isConnected||"function"!=typeof this.requestUpdate)return;let e=`${this.currentPath||""}${dE(this)}`;e!==this._lastCheckedUrl&&(this._lastCheckedUrl=e,pv.debug({event:"url-poll-detected-change",url:e},"URL changed via polling, recomputing favorite"),un(this),this.requestUpdate())},500)),this.addEventListener("workspace:page-loading-set",this._onPageLoadingSet),this._teardownDirtyStateSubscription=a.onChange(e=>{this._dirtyWorkspacePaths=[...e.keys()].filter(e=>e.startsWith("workspace:")).map(e=>e.slice(10))}),globalThis.window&&(globalThis.window.__DEBUG_AIUX_HEADER__=()=>{let e="aiux-debug-toolbar";"true"===localStorage.getItem(e)?(localStorage.removeItem(e),u7(this,!1),console.log("[AIUX] Debug toolbar disabled.")):(localStorage.setItem(e,"true"),u7(this,!0),console.log("[AIUX] Debug toolbar enabled."))}),pe(this,z.get()),this._unsubscribeDensity=z.subscribe(this._handleDensityChange),this.addEventListener("breadcrumb-navigate",this._handleBreadcrumbNavigate),this.addEventListener("nav-tab-click",this._handleNavTabClick),this.addEventListener("nav-tab-close",this._handleNavTabClose),this.addEventListener("nav-tabs-toggle-collapse",this._handleNavTabsToggleCollapse),this.addEventListener("nav-app-group-toggle-collapse",this._handleNavAppGroupToggleCollapse),this.addEventListener("nav-sidebar:menu-tray-changed",this._handleNavSidebarMenuTrayChanged),this.addEventListener("nav-tabs-reordered",this._handleNavTabsReordered),this._magellanListeners??[]))this.addEventListener(e,t);if(globalThis.window&&(globalThis.window.addEventListener(e2,this._handleCreateTabEvent),this._handleWindowBlur=()=>{globalThis.window?.dispatchEvent(new CustomEvent(tY))},globalThis.window.addEventListener("blur",this._handleWindowBlur)),this._handleIframeHistoryEntry=pg.bind(null,this),this.addEventListener(aH,this._handleIframeHistoryEntry),this._notificationController.connect(),await e,!this.isConnected)return;let t=eh.get();t&&eh.set({...t,ready:!0}),this._applyLayoutOverrides(),this._applyHomeChatManifestOverride(),this._registerClientTools(),await this._initChat(),this._notificationController.subscribe(),!1!==(eh.get()?.features||{}).concoursePicker&&(this._cancelIdleTimezoneFetch=ep(()=>u5()))}willUpdate(e){if(super.willUpdate?.(e),void 0===this.isHomePage){let e=eh.get()?.pagePath??"";this.isHomePage=u8(this,e,{checkFramedPage:!1})}}async firstUpdated(e){super.firstUpdated?.(e),this._clientHydrated=!0,this._canAdoptSSRPanels=!0;let t=eh.get()?.features||{};await this._restoreTabsFromStorage(),this._ensureActiveTabFromCurrentRoute(),this._hydrateActiveTabMetadata(),this._drainPendingPageState(),this.updateComplete?.then(()=>pt(this)),"true"===I("aiux.ainpx.notifications_pinned")&&(this._notificationsPinned=!0),!1!==t.onboarding&&"true"!==I("overview_help.visited.navui")&&!0===K("sn_generative_ai")&&(this._onboardingStep={sys_id:"onboarding-otto-welcome",disable_close:!1,actions_label:JSON.stringify({submit:l("Got it")}),layout:"text",trusted:!0,content:{title:l("Say hello to ServiceNow Otto"),has_custom_html:!1,text:`<img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTUyIiBoZWlnaHQ9IjE2NyIgdmlld0JveD0iMCAwIDU1MiAxNjciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xMDYzXzI1NCkiPgo8cmVjdCB3aWR0aD0iNTUyIiBoZWlnaHQ9IjE2NyIgcng9IjI0IiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBvcGFjaXR5PSIwLjczIiBkPSJNLTQ0LjY4NzUgLTEwMEg2MDMuMzEyVjI2NC41SC00NC42ODc1Vi0xMDBaIiBmaWxsPSJ1cmwoI3BhaW50MF9yYWRpYWxfMTA2M18yNTQpIi8+CjxnIG9wYWNpdHk9IjAuNzMiIGZpbHRlcj0idXJsKCNmaWx0ZXIwX2ZfMTA2M18yNTQpIj4KPHBhdGggZD0iTTYwMi41NTQgMjYyLjA1MUM2MDIuNTU0IDM2My4wMjYgNDYwLjIzMyAzNjguNzE5IDI4NC42NzEgMzY4LjcxOUMxMDkuMTEgMzY4LjcxOSAtMzMuMjEwOSAzNjMuMDI2IC0zMy4yMTA5IDI2Mi4wNTFDLTMzLjIxMDkgMTYxLjA3NiAxMDkuMTEgLTQxLjE4MTYgMjg0LjY3MSAtNDEuMTgxNkM0NjAuMjMzIC00MS4xODE2IDYwMi41NTQgMTYxLjA3NiA2M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b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMjExRTFFIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQ2X2xpbmVhcl8xMDYzXzI1NCIgeDE9IjMyNS43NzgiIHkxPSI1OS41NDkxIiB4Mj0iMzI1Ljc3OCIgeTI9IjExNC4wOTYiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzQxM0UzQyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMyMTFFMUUiLz4KPC9saW5lYXJHcmFkaWVudD4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDdfbGluZWFyXzEwNjNfMjU0IiB4MT0iMzI1Ljc3OCIgeTE9IjU5LjU0OTEiIHgyPSIzMjUuNzc4IiB5Mj0iMTE0LjA5NiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjNDEzRTNDIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzIxMUUxRSIvPgo8L2xpbmVhckdyYWRpZW50Pgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzEwNjNfMjU0Ij4KPHJlY3Qgd2lkdGg9IjU1MiIgaGVpZ2h0PSIxNjciIHJ4PSIyNCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K" width="100%" alt="" /><p>${l("Say hello to a more intelligent, AI-powered ServiceNow. Look for the Otto mark—it shows you where AI is on the case, working behind the scenes to give you personalized answers, take action faster, and help you reach the results you need.")}</p><p>${l("AI can make mistakes, so always review AI-generated content for accuracy before you rely on it.")}</p>`}}),globalThis.localStorage?.getItem("aiux-debug-toolbar")==="true"&&u7(this,!0),pa(this),pn();let i=globalThis.window?.location?.pathname||this.currentPath;this.isHomePage=u8(this,i),this.isHomePage&&this._navHistory.requestReset(),this._pendingNavPush=!0,this.requestUpdate(),this.updateComplete?.then(()=>{oU(globalThis.window?.location?.pathname||this.currentPath,dE(this))})}_drainPendingPageState(){let e=dR(this);if(globalThis.window?.__PAGE_ACTIONS_PENDING__){let{actions:t}=globalThis.window.__PAGE_ACTIONS_PENDING__;this._pageActionsByScope[e]=t,delete globalThis.window.__PAGE_ACTIONS_PENDING__}if(globalThis.window?.__HEADER_CONFIG_PENDING__){let{detail:t}=globalThis.window.__HEADER_CONFIG_PENDING__;this._headerConfigByScope[e]={...this._headerConfigByScope[e]??dF(this),...t},delete globalThis.window.__HEADER_CONFIG_PENDING__}if(globalThis.window?.__HORIZONTAL_NAV_TITLE_PENDING__){let{title:t,scope:i}=globalThis.window.__HORIZONTAL_NAV_TITLE_PENDING__;this._horizontalNavTitleOverrideByScope[i??e]=t,delete globalThis.window.__HORIZONTAL_NAV_TITLE_PENDING__}}_hydrateActiveTabMetadata(){let e=dP(this);if(!e)return;let t=this._currentPage?.tagName||null,i=this._currentLayoutChain||[];if(!t)return;let a=this.tabs.find(t=>t.id===e);if(!a)return;let n=!!a.pageTagName,r=!!Array.isArray(a.layoutChain)&&a.layoutChain.length>0;n&&r||(this.tabs=this.tabs.map(a=>a.id===e?{...a,pageTagName:a.pageTagName||t,layoutChain:r?a.layoutChain:i}:a),d2(this))}_ensureActiveTabFromCurrentRoute(){let e=dP(this);!e||(this.activeTabId=e,d0(this,e),this.tabs.some(t=>t.id===e)||(this.tabs=[...this.tabs,{id:e,title:d7(this.currentPath),path:this.currentPath,query:rt(dA(this)),originPath:null,originQuery:{},pageTagName:this._currentPage?.tagName||null,layoutChain:this._currentLayoutChain||[]}],d2(this)))}async _restoreTabsFromStorage(){if(!r&&globalThis.window)try{let e=await tN(d1(this));if(!e||e?.version!==1)return;Array.isArray(e.tabs)&&(this.tabs=e.tabs.filter(e=>e?.id&&e?.path).map(e=>({id:e.id,title:e.title,path:e.path,query:e.query||{},originPath:e.originPath||null,originQuery:e.originQuery||{},pageTagName:null,layoutChain:[]}))),"boolean"==typeof e.tabsCollapsed&&(this.tabsCollapsed=e.tabsCollapsed),Array.isArray(e.appGroupsCollapsed)&&(this.appGroupsCollapsed=new Set(e.appGroupsCollapsed.filter(e=>"string"==typeof e)))}catch(e){}}disconnectedCallback(){if(super.disconnectedCallback(),dT&&(window.removeEventListener(dI,dT),dT=null),this._cancelIdleTimezoneFetch?.(),this.removeEventListener("workspace:page-loading-set",this._onPageLoadingSet),this._teardownDirtyStateSubscription?.(),this._teardownDirtyStateSubscription=null,this.removeEventListener("header-config:update",this._onHeaderConfigUpdate),this.removeEventListener("page-actions:update",this._onPageActionsUpdate),this._onUi16HelpContext&&globalThis.window?.removeEventListener?.("ui16:help-context",this._onUi16HelpContext),this._onClassicNavigate&&globalThis.window?.removeEventListener?.("classic:navigate",this._onClassicNavigate),this.removeEventListener("classic:target-changed",this._handleContinueModeTargetChanged),this.removeEventListener("horizontal-nav-title:set",this._onHorizontalNavTitleSet),this.removeEventListener("nav-sidebar:menu-tray-changed",this._handleNavSidebarMenuTrayChanged),this.removeEventListener("breadcrumb-navigate",this._handleBreadcrumbNavigate),this._magellanListeners){for(let[e,t]of this._magellanListeners)this.removeEventListener(e,t);this._magellanListeners=null}this.removeEventListener("classic:target-changed",this._handleClassicTargetChanged),this.removeEventListener("nav:menu-data-updated",this._handleNavMenuDataUpdated),this.removeEventListener("nav-sidebar:menu-tray-changed",this._handleNavMenuTrayChanged),this._urlCheckInterval&&(clearInterval(this._urlCheckInterval),this._urlCheckInterval=null),!r&&globalThis.window&&(globalThis.window.removeEventListener(e2,this._handleCreateTabEvent),this._handleWindowBlur&&(globalThis.window.removeEventListener("blur",this._handleWindowBlur),this._handleWindowBlur=null)),globalThis.window&&globalThis.window.removeEventListener("core-ui-navigate",this._handleCoreUiNavigate),this._chatEnabled&&this.removeEventListener("aict:home-chat-anchor-state",this._handleHomeChatAnchorState),this.removeEventListener(aH,this._handleIframeHistoryEntry),this.removeEventListener("nav-item-click",this._handleNavItemClick),sC&&(clearTimeout(sC),sC=null),this._scrollContainer?.removeEventListener("scroll",this._scrollHandler),this._scrollHandler=null,this._scrollContainer=null,this._unsubscribeDensity?.(),this.removeEventListener("nav-tabs-reordered",this._handleNavTabsReordered),this._notificationController.disconnect()}onNavigateStart(){let e=dR(this);if("base"!==e&&dJ(this,e))return;"base"===e&&(this._pageActionsByScope[e]=[]),this._headerConfigByScope[e]=null,this._contextualNavFavorited=!1,delete globalThis.window?.__PAGE_ACTIONS_PENDING__,delete globalThis.window?.__HEADER_CONFIG_PENDING__,delete globalThis.window?.__HORIZONTAL_NAV_TITLE_PENDING__,this._horizontalNavTitleOverrideByScope[e]="",this._horizontalNavFavoritedOverride=null;let t=ef.get();"object"==typeof t&&null!==t&&!1===t.omniPadding&&ef.set({...t,omniPadding:!0}),this._helpPanelOpened=!1,this._helpPanelAppContextFromIframe=null,globalThis.window&&(globalThis.window.__ui16HelpContext=null);let i=this._router?.currentPath??eh.get()?.resolvedPath;if(i?.startsWith("/workspace")){let e=eh.get();e?.screenContentLinks?.length&&eh.set({...e,screenContentLinks:[]})}}_handleResizeToggleCollapse(){this.renderRoot?.querySelector("aiux-nav-sidebar")?.handleToggleCollapse()}updated(e){if(super.updated?.(e),r)return;this._notificationController.manageNotificationsPopover(e);let t=!!eh.get()?.features?.unifiedExperience;this._experienceReflected!==t&&(this._experienceReflected=t,this.toggleAttribute("experience",t)),pi(this);let i=H.get()?.open??!1;i!==this._prevSidePanelOpen&&(this._prevSidePanelOpen=i,this.chatController.handleSidePanelChange(i));let a=this.chatController.shouldHideChat()?"AIEX_HIDDEN":this.chatController.chatMode;if(a!==this._prevChatMode){this._prevChatMode=a;let e=ef.get();ef.set({..."object"==typeof e&&null!==e?e:{mode:e,omniPadding:!0},mode:a}),!r&&"u">typeof window&&tQ(a,this.chatController.isFullscreen,this.chatController.isChatDetached)}let n=this.chatController.isFullscreen;this._prevFullscreen!==n&&(!r&&"u">typeof window&&tQ(a,n,this.chatController.isChatDetached),this._prevFullscreen=n);let o=this.chatController.isChatDetached;if(this._prevChatDetached!==o&&(!r&&"u">typeof window&&tQ(a,this.chatController.isFullscreen,o),this._prevChatDetached=o),e.has("loaderData")&&pt(this),globalThis.localStorage?.getItem("aiux-debug-toolbar")!=="true"||eh.get().items?.find(e=>"Debugging"===e.title)||u7(this,!0),this._pendingNavPush){this._pendingNavPush=!1;let e=this.currentPath,t=this._lastNavFromBrowserHistory;this._lastNavFromBrowserHistory=!1;let i=dR(this);if(t&&this._navHistory.applyPopstate(e,{tabId:i})){if(!r){let e=this._navHistory.getEntries(i).at(-1);e?.label&&(document.title=e.label)}return}let{l1:a,l2:n}=dj(this),{l3Nav:o,title:s,pageTitle:l,transient:c}=ta(dF(this),(n||a)?.l3Nav,n||a);if(c){if(this._pendingNavPush=!1,!r){let t=l||s||e.split("/").filter(Boolean).pop()||e;document.title=t}return}let d=tn(a,n,o,e),u=tr(o,e)?.tab??null,p=this._navHistory.getEntries(i),h=p.at(-1),m=h?tr(o,h.path)?.tab:null,f=!!(u&&m),g=function(e,t){if(!e||!t||e===t)return!1;let i=e=>e.split("?")[0].split("#")[0],a=i(e),n=i(t),r=e=>e.split("/").filter(Boolean).pop(),o=r(a),s=r(n),l=e=>{let t=e.split("/").filter(Boolean);return t.pop(),t.join("/")},c=l(a),d=l(n),u=a===n&&e!==t;return"-1"===o&&"-1"!==s&&c===d||u}(h?.path,e),b=l||s||("l1"===d?a?.title:null)||n?.title||u?.label||e.split("/").filter(Boolean).pop()||e,v=u&&(a||n)&&b!==u.label?`${b} (${u.label})`:b,_=!!u&&("l3"===d||to({l1:a,l2:n,l3Nav:o})),y=0!==p.length||_?null:function({items:e,currentPath:t}){if(!t)return null;let i=e7(t),a=null,n=0,r=(e,t)=>{let r=e.activePath||e.action?.path,o=e.action?.type==="navigate"?e.action.path:r;((e,t,r,o=e)=>{!e||!t||e===i||i.startsWith(e+"/")&&e.length>n&&(a={path:o,label:t,l1Icon:r},n=e.length)})(r,e.title,t,o)};if(Array.isArray(e))for(let t of e){let e=t.icon;if(Array.isArray(t.l2Nav))for(let i of t.l2Nav)r(i,e);r(t,e)}return a}({items:eh.get()?.items,currentPath:e});if(this._navHistory.push({path:e,label:v,l1Icon:a?.icon},{replace:f||g,tabId:i,root:y}),r||(document.title=v),!e.startsWith("/classic")){let t=a?.title&&a.title!==v?a.title:"";sA({title:v,url:e,description:t,onSuccess:e=>uJ(this,e)})}}}onNavigateEnd(e,t,i){super.onNavigateEnd?.(e,t,i),this._lastNavFromBrowserHistory=!!i?.fromBrowserHistory;let a=dA(this),n=a.tabId||null;if(this._tabActivatedByUser||(this._tabActivatedByUser=!0),this.activeTabId=n,d0(this,n),n){let i,r;i=this.tabs.find(e=>e.id===n),r={id:n,title:i?.title||d7(e),path:e,query:rt(a),originPath:i?.originPath||null,originQuery:i?.originQuery||{},pageTagName:t?.tagName||i?.pageTagName||null,layoutChain:this._currentLayoutChain||i?.layoutChain||[]},i?this.tabs=this.tabs.map(e=>e.id===n?r:e):this.tabs=[...this.tabs,r]}else this.basePage={path:e,query:re(a),pageTagName:t?.tagName||this.basePage?.pageTagName||null,layoutChain:this._currentLayoutChain||this.basePage?.layoutChain||[]};if(function(e,{instanceId:t,pageTagName:i,layoutChain:a}){if(r||!i||!globalThis.document)return;let n=dG(t),o=n?e.querySelector?.(`[slot="${n}"]`):Array.from(e.children||[]).find(e=>!e.getAttribute?.("slot"));o&&(o.remove(),e._panelHosts.delete(t));let s=t.startsWith("tab:")?t.slice(4):"base",l=e._currentComponentConfigs||{},c=globalThis.document.createElement(i);c.setAttribute("loader-scope-key",s),c.setAttribute("aiux-config-data",JSON.stringify(l[i]||{}));let d=c,u=a||[];for(let e=u.length-1;e>=1;e--){let t=u[e],i=t?.tagName;if(!i)continue;let a=globalThis.document.createElement(i);a.setAttribute("layout-key",i),a.setAttribute("loader-scope-key",s),a.setAttribute("aiux-config-data",JSON.stringify(l[i]||{})),a.append(d),d=a}n&&d.setAttribute("slot",n),e.append(d),e._panelHosts.set(t,d)}(this,{instanceId:n?`tab:${n}`:"base",pageTagName:t?.tagName||null,layoutChain:this._currentLayoutChain||[]}),d2(this),this.isHomePage=u8(this,e),this.isHomePage&&(this._homeChatAnchorVisible=!0,this._homeChatAnchorInitialized=!1),this._showBackButton=this._pendingBackButton,this._pendingBackButton=!1,this.chatController.onNavigate(e),un(this),pa(this),pn(),this.requestUpdate(),r||this.isHomePage?this.removeAttribute("chat-mode"):this.setAttribute("chat-mode",this.chatController.chatMode),!r){oU(globalThis.window?.location?.pathname||e,dE(this)),this._pendingNavPush=!0;let t=this.renderRoot?.querySelector(".layout-main-container");t?.style.setProperty("--scroll-progress",0),this._scrollContainer?.removeEventListener("scroll",this._scrollHandler),this._scrollHandler=null,this.updateComplete?.then(()=>pt(this))}}get currentPath(){return this._router?.currentPath||eh.get()?.resolvedPath||(r?"/":globalThis.window?.location.pathname)}get isFramedPage(){let e=this._currentPage?.tagName?.toUpperCase();return"CORE-UI-CLASSIC-PAGE"===e||"CORE-UI-WORKSPACE-SPLAT-PAGE"===e}get pageLoaderTarget(){return eh.get()?.pageLoader?.target??e5.target}_resolveLoaderSelector(){return q(this.pageLoaderTarget,{declarativePresets:!0})}render(){return n`${this.renderSkipLink()}${this.renderLayout()}${this.renderGuidanceModal()}${this.renderWindowManager()}${this.renderSessionExpiryDialog()}${this.renderNetworkStatusDialog()}`}renderLayout(){return function(e){var t;let i,a,o,c=dL(),d=dz(),{anyIndicator:u}=aM(eh.get()?.concoursePicker?.currentSelections),p=e.renderHeader(),h=e.renderAsideStart(c,d),m=e.renderAsideEnd(),b=e.pageLoaderTarget,v="none"===b?s:function(e,{target:t="content",rect:i=null}={}){let{animation:a,color:r}={...e5,...eh.get()?.pageLoader??{}},o=!C(t),s=t===M.PAGE,l=o?E(i):null;return n`
|
|
10604
10604
|
<div
|
|
10605
10605
|
class=${f({"aiux-loading-overlay":!0,"cover-viewport":s,visible:e})}
|
|
10606
10606
|
style=${g(l??{})}
|
|
@@ -10883,4 +10883,4 @@ ${t}`}_renderAllMenuExperienceHeader(){return lC(this,{title:this.elevatedNavAct
|
|
|
10883
10883
|
${i?n`<slot name=${i}></slot>`:n`<slot></slot>`}
|
|
10884
10884
|
</section>
|
|
10885
10885
|
`})({instanceId:e.key,active:e.active}))}`}}if(pb([h("#notifications-panel")],p_.prototype,"_notificationsPanel",void 0),pb([p()],p_.prototype,"_clientHydrated",void 0),pb([p()],p_.prototype,"_onboardingStep",void 0),pb([p()],p_.prototype,"_tabActivatedByUser",void 0),pb([p()],p_.prototype,"_isSearchResultsIV",void 0),pb([p()],p_.prototype,"_showBackButton",void 0),pb([p()],p_.prototype,"_tailwindCssUrl",void 0),pb([p()],p_.prototype,"_notificationsSidebarCollapsed",void 0),p_=pb([d("aiux-nav-layout")],p_),!r&&globalThis.window?.location){globalThis.NOW=globalThis.NOW||{};let{protocol:e,hostname:t,port:i}=globalThis.window.location,a=`${e}//${t}${i?":"+i:""}`;globalThis.NOW.instanceUrl=a,globalThis.NOW.glideUrl=a,globalThis.NOW.isPolarisWrapper=!0,globalThis.NOW.isAIUXWrapper="true"}function py(e={}){if(!globalThis.window)return;let t={title:e?.title};e?.route&&(t.route=e.route),globalThis.window.dispatchEvent(new CustomEvent(e2,{detail:t}))}export{eD as EXPERIENCE,i9 as HNAV_FLAGS,dg as HorizontalContextualNav,tX as HorizontalNav,p_ as NavLayout,df as NavSidebar,ev as SERVICENOW_LOGO_FULL,eb as SERVICENOW_LOGO_ICON,tR as SESSION_ENDPOINTS,tz as SessionActionError,ek as addNavItem,eC as appendL3Nav,dp as buildHelpAppContext,ef as chatModeContext,eN as closeChat,py as createCurrentPageTab,tp as getExperienceEnabled,ae as isInScope,eg as menuDataContext,eh as navLayoutContext,tB as notifyConcoursePickerStale,eA as openChat,tU as postElevateRoles,tF as postImpersonate,eM as prependL3Nav,tW as putApplicationChange,tH as putUpdateSetChange,eE as removeL3Nav,e$ as removeNavItem,eO as requestSkillExecution,at as resolveHorizontalNavState,ts as sanitizeLogoUrl,ex as setHeaderConfig,ew as setHorizontalNavTitle,eS as setL3Nav,ey as setPageActions,i7 as toBool,em as toolbarDebugContext};
|
|
10886
|
-
//# sourceMappingURL=nav-
|
|
10886
|
+
//# sourceMappingURL=nav-BatrrdNH.js.map
|
|
@@ -123,7 +123,8 @@ export const DEFAULT_FEATURES = {
|
|
|
123
123
|
announcements: false,
|
|
124
124
|
// DEF0854604: WCAG 2.4.1 Bypass Blocks — skip-to-main-content link.
|
|
125
125
|
// Default-on; apps should not disable this (Level A requirement).
|
|
126
|
-
skipLink: true
|
|
126
|
+
skipLink: true,
|
|
127
|
+
onboarding: true
|
|
127
128
|
};
|
|
128
129
|
|
|
129
130
|
// Page-transition loading overlay shown during client-side navigation.
|
|
@@ -855,6 +855,7 @@ export class NavLayout extends withWidgetContext(AIUXStructuredLayout) {
|
|
|
855
855
|
super.firstUpdated?.(changedProperties);
|
|
856
856
|
this._clientHydrated = true;
|
|
857
857
|
this._canAdoptSSRPanels = true;
|
|
858
|
+
const features = navLayoutContext.get()?.features || {};
|
|
858
859
|
|
|
859
860
|
await this._restoreTabsFromStorage();
|
|
860
861
|
this._ensureActiveTabFromCurrentRoute();
|
|
@@ -873,6 +874,7 @@ export class NavLayout extends withWidgetContext(AIUXStructuredLayout) {
|
|
|
873
874
|
// only pre-fetches literal getUserPreference()/isPluginActive() args, not
|
|
874
875
|
// variables constructed from the constants above.
|
|
875
876
|
if (
|
|
877
|
+
features.onboarding !== false &&
|
|
876
878
|
getUserPreference('overview_help.visited.navui') !== 'true' &&
|
|
877
879
|
isPluginActive('sn_generative_ai') === true
|
|
878
880
|
) {
|
|
@@ -1100,7 +1100,8 @@ const DEFAULT_FEATURES = {
|
|
|
1100
1100
|
announcements: false,
|
|
1101
1101
|
// DEF0854604: WCAG 2.4.1 Bypass Blocks — skip-to-main-content link.
|
|
1102
1102
|
// Default-on; apps should not disable this (Level A requirement).
|
|
1103
|
-
skipLink: true
|
|
1103
|
+
skipLink: true,
|
|
1104
|
+
onboarding: true
|
|
1104
1105
|
};
|
|
1105
1106
|
// Page-transition loading overlay shown during client-side navigation.
|
|
1106
1107
|
// Apps opt into a different animation/color/placement by setting `pageLoader`
|
|
@@ -49309,6 +49310,7 @@ class NavLayout extends withWidgetContext(AIUXStructuredLayout) {
|
|
|
49309
49310
|
super.firstUpdated?.(changedProperties);
|
|
49310
49311
|
this._clientHydrated = true;
|
|
49311
49312
|
this._canAdoptSSRPanels = true;
|
|
49313
|
+
const features = navLayoutContext.get()?.features || {};
|
|
49312
49314
|
await this._restoreTabsFromStorage();
|
|
49313
49315
|
this._ensureActiveTabFromCurrentRoute();
|
|
49314
49316
|
this._hydrateActiveTabMetadata();
|
|
@@ -49321,7 +49323,7 @@ class NavLayout extends withWidgetContext(AIUXStructuredLayout) {
|
|
|
49321
49323
|
// The preference/plugin ids must be string literals — the build extractor
|
|
49322
49324
|
// only pre-fetches literal getUserPreference()/isPluginActive() args, not
|
|
49323
49325
|
// variables constructed from the constants above.
|
|
49324
|
-
if (getUserPreference('overview_help.visited.navui') !== 'true' && isPluginActive('sn_generative_ai') === true) {
|
|
49326
|
+
if (features.onboarding !== false && getUserPreference('overview_help.visited.navui') !== 'true' && isPluginActive('sn_generative_ai') === true) {
|
|
49325
49327
|
this._onboardingStep = getOnboardingStep();
|
|
49326
49328
|
}
|
|
49327
49329
|
if (globalThis.localStorage?.getItem('aiux-debug-toolbar') === 'true') {
|
package/components/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicenow/aiux-components-build",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.184",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Build script for platform components",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@servicenow/aiux-services": "workspace:*",
|
|
18
18
|
"@servicenow/aiux-sn-feedback": "4.0.0",
|
|
19
19
|
"@servicenow/aiux-sn-honeycomb": "2.1.0",
|
|
20
|
-
"ai-engagement-shell-experience": "1.4.0-rc.
|
|
20
|
+
"ai-engagement-shell-experience": "1.4.0-rc.9",
|
|
21
21
|
"@servicenow/aiux-components-accordion": "1.1.0",
|
|
22
22
|
"@servicenow/aiux-components-alert": "2.2.1",
|
|
23
23
|
"@servicenow/aiux-components-carousel": "2.1.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@servicenow/aiux-schedule-recurrence": "3.1.0",
|
|
34
34
|
"@servicenow/aiux-timer": "1.2.0",
|
|
35
35
|
"gridstack": "^12.4.2",
|
|
36
|
-
"library-ai-engagement": "1.4.0-rc.
|
|
36
|
+
"library-ai-engagement": "1.4.0-rc.9",
|
|
37
37
|
"lit": "^3.3.2",
|
|
38
38
|
"lit-element": "^4.2.2",
|
|
39
39
|
"lit-html": "^3.3.2",
|