(()=>{"use strict";const t={storageKey:"qf_sector",storageExpiryKey:"qf_sector_expires_at",storageTtlMs:2592e6,defaultSector:"financial-services",sectors:["financial-services","public-sector"],queryParam:"sector",htmlAttribute:"data-qf-sector",lockAttribute:"data-sector-lock",forcedPaths:[{type:"exact",path:"/",sector:"financial-services"},{type:"prefix",path:"/public-sector",sector:"public-sector"}],debug:!1};function e(...e){t.debug&&console.log("[qfSector]",...e)}function n(t){if(!t)return"/";return t.replace(/[/]+$/,"")||"/"}function o(e){return t.sectors.includes(e)}function c(){const e=`[${t.lockAttribute}]`,n=document.querySelector(e);if(!n)return null;const c=n.getAttribute(t.lockAttribute);return o(c)?c:null}function r(){try{localStorage.removeItem(t.storageKey),localStorage.removeItem(t.storageExpiryKey)}catch(t){e("Unable to clear localStorage:",t)}}function a(n){document.documentElement.setAttribute(t.htmlAttribute,n.sector),window.QF_INITIAL_SECTOR=n,"page-lock"===n.source&&(window.QF_PAGE_LOCK_SECTOR=n.sector),e(`Resolved "${n.sector}" from ${n.source}.`)}window.QF_SECTOR_CONFIG=t,function(){const t=document.createElement("style");t.setAttribute("data-qf-sector-style",""),t.textContent='html[data-qf-sector="financial-services"] [data-sector-nav="public-sector"]{display: none !important;}html[data-qf-sector="public-sector"] [data-sector-nav="financial-services"]{display: none !important;}html[data-qf-sector="financial-services"] body [data-sector-nav="financial-services"], html[data-qf-sector="public-sector"] body [data-sector-nav="public-sector"]{display: block !important;}[data-sector-lock="financial-services"] [data-sector-nav="public-sector"]{display: none !important;}[data-sector-lock="financial-services"] [data-sector-nav="financial-services"]{display: block !important;}[data-sector-lock="public-sector"] [data-sector-nav="financial-services"]{display: none !important;}[data-sector-lock="public-sector"] [data-sector-nav="public-sector"]{display: block !important;}@supports selector(:has(*)){html:has([data-sector-lock="financial-services"]) [data-sector-nav="public-sector"]{display: none !important;}html:has([data-sector-lock="financial-services"]) [data-sector-nav="financial-services"]{display: block !important;}html:has([data-sector-lock="public-sector"]) [data-sector-nav="financial-services"]{display: none !important;}html:has([data-sector-lock="public-sector"]) [data-sector-nav="public-sector"]{display: block !important;}}',document.head.appendChild(t)}(),a(function(){const a=c();if(a)return{sector:a,source:"page-lock"};const s=function(e){const o=n(e);for(const e of t.forcedPaths){const t=n(e.path);if("exact"===e.type&&o===t)return e.sector;if("prefix"===e.type&&(o===t||o.startsWith(`${t}/`)))return e.sector}return null}(window.location.pathname);if(s)return{sector:s,source:"path"};const i=function(){const e=new URLSearchParams(window.location.search).get(t.queryParam);return o(e)?e:null}();if(i)return{sector:i,source:"query"};const l=function(){try{const n=localStorage.getItem(t.storageKey);if(!o(n))return null!==n&&r(),null;const c=localStorage.getItem(t.storageExpiryKey);if(!c)return n;const a=Number(c);return!Number.isFinite(a)||Date.now()>=a?(r(),e("Stored sector expired."),null):n}catch(t){return e("Unable to read localStorage:",t),null}}();return l?{sector:l,source:"storage"}:{sector:t.defaultSector,source:"default"}}()),function(){const t=c();if(t)return void a({sector:t,source:"page-lock"});const e=new MutationObserver(()=>{const t=c();t&&(a({sector:t,source:"page-lock"}),e.disconnect())});e.observe(document.documentElement,{childList:!0,subtree:!0}),document.addEventListener("DOMContentLoaded",()=>{e.disconnect()},{once:!0})}()})(); ; (function (d) { var names = { 'financial-services': 'financial services', 'public-sector': 'public sector' }; var groupSel = '[fs-list-nest="category"].badge-sector-item, .collection-list-badge .badge-sector-item'; var groups = d.getElementsByClassName('badge-sector-item'); function run() { var active = names[d.documentElement.getAttribute('data-qf-sector')]; if (!active) return; for (var g = 0; g < groups.length; g++) { if (!groups[g].matches(groupSel)) continue; var items = groups[g].querySelectorAll('[role="listitem"], .collection-item, .w-dyn-item'), found = false; for (var i = 0; i < items.length; i++) { var el = items[i].querySelector('[fs-list-field="category"]') || items[i]; var v = (el.textContent || '').trim().toLowerCase(); if (v !== names['financial-services'] && v !== names['public-sector']) continue; var show = !found && v === active; items[i].style.display = show ? '' : 'none'; items[i].setAttribute('aria-hidden', String(!show)); if (show) found = true; } } } var mo = new MutationObserver(run); mo.observe(d.documentElement, { childList: true, subtree: true, attributes: true, attributeFilter: ['data-qf-sector'] }); d.addEventListener('DOMContentLoaded', function () { run(); mo.disconnect(); }, { once: true }); })(document);