Created
October 19, 2022 19:50
-
-
Save heyMP/af1f178804f71ae4d42353c2c0cfb0df to your computer and use it in GitHub Desktop.
Example Bundle File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let e=()=>null;function t(){e("[reveal] web components ready"),e("[reveal] elements ready, revealing the body"),window.document.body.removeAttribute("unresolved")}function r(e){return e.hasOwnProperty("default")&&e.default.constructor===e.type}Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var r=Object(this),o=r.length>>>0;if(0===o)return!1;var a=0|t,i=Math.max(a>=0?a:o-Math.abs(a),0);function n(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}for(;i<o;){if(n(r[i],e))return!0;i++}return!1}}),Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,o=new Array(r);r--;)o[r]=[t[r],e[t[r]]];return o}),String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(e,t){var r=t>0?0|t:0;return this.substring(r,r+e.length)===e}}),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var o=arguments[1],a=0;a<r;){var i=t[a];if(e.call(o,i,a,t))return i;a++}},configurable:!0,writable:!0});class o extends HTMLElement{static debugLog(e=null){if(null!==e)try{localStorage.pfeLog=!!e}catch(t){return o._debugLog=!!e,o._debugLog}return"true"===localStorage.pfeLog||o._debugLog}static trackPerformance(e=null){return null!==e&&(o._trackPerformance=!!e),o._trackPerformance}static get config(){return window.PfeConfig||{}}static log(...e){o.debugLog()&&console.log(...e)}log(...e){o.log(`[${this.tag}${this.id?`#${this.id}`:""}]`,...e)}static warn(...e){console.warn(...e)}warn(...e){o.warn(`[${this.tag}${this.id?`#${this.id}`:""}]`,...e)}static error(...e){throw new Error([...e].join(" "))}error(...e){o.error(`[${this.tag}${this.id?`#${this.id}`:""}]`,...e)}static get PfeTypes(){return{Container:"container",Content:"content",Combo:"combo"}}static get version(){return"1.12.3"}get version(){return this._pfeClass.version}static get properties(){return{pfelement:{title:"Upgraded flag",type:Boolean,default:!0,observer:"_upgradeObserver"},on:{title:"Context",description:"Describes the visual context (backgrounds).",type:String,values:["light","dark","saturated"],default:e=>e.contextVariable,observer:"_onObserver"},context:{title:"Context hook",description:"Lets you override the system-set context.",type:String,values:["light","dark","saturated"],observer:"_contextObserver"},oldTheme:{type:String,values:["light","dark","saturated"],alias:"context",attr:"pfe-theme"},_style:{title:"Custom styles",type:String,attr:"style",observer:"_inlineStyleObserver"},type:{title:"Component type",type:String,values:["container","content","combo"]}}}static get observedAttributes(){const e=this.allProperties;if(e){const t=Object.keys(e).filter((t=>e[t].observer||e[t].cascade||e[t].alias)).map((e=>this._convertPropNameToAttrName(e)));return[...t]}}get randomId(){return"pfe-"+Math.random().toString(36).substr(2,9)}set contextVariable(e){this.cssVariable("context",e)}get contextVariable(){return this.cssVariable("context")||this.cssVariable("theme")}hasLightDOM(){return this.children.length||this.textContent.trim().length}hasSlot(e){if(e)return"string"==typeof e?[...this.children].filter((t=>t.hasAttribute("slot")&&t.getAttribute("slot")===e)).length>0:Array.isArray(e)?e.reduce((e=>[...this.children].filter((t=>t.hasAttribute("slot")&&t.getAttribute("slot")===e)).length>0)):void this.warn(`Expected hasSlot argument to be a string or an array, but it was given: ${typeof e}.`);this.warn("Please provide at least one slot name for which to search.")}getSlot(e="unassigned"){return"unassigned"!==e?[...this.children].filter((t=>t.hasAttribute("slot")&&t.getAttribute("slot")===e)):[...this.children].filter((e=>!e.hasAttribute("slot")))}cssVariable(e,t,r=this){return e="--"!==e.substr(0,2)?"--"+e:e,t?(r.style.setProperty(e,t),t):window.getComputedStyle(r).getPropertyValue(e).trim()||null}contextUpdate(){const e=[...this.querySelectorAll("*")].filter((e=>"pfe-"===e.tagName.toLowerCase().slice(0,4))).filter((e=>e.parentElement?e.parentElement.closest(`[${this._pfeClass._getCache("prop2attr").pfelement}]`)===this:void 0));let t=[...this.shadowRoot.querySelectorAll("*")].filter((e=>"pfe-"===e.tagName.toLowerCase().slice(0,4))).filter((e=>e.parentElement&&e.parentElement.closest(`[${this._pfeClass._getCache("prop2attr").pfelement}]`)?e.parentElement.closest(`[${this._pfeClass._getCache("prop2attr").pfelement}]`)===this:e.getRootNode().host===this));const r=e.concat(t);0!==r.length&&r.map((e=>{e.resetContext&&(this.log(`Update context of ${e.tagName.toLowerCase()}`),e.resetContext(this.on))}))}resetContext(e){if(this.isIE11)return;let t=this.context||this.contextVariable||e;this.on!==t&&(this.on||t)&&(this.log(`Resetting context from ${this.on} to ${t||"null"}`),this.on=t)}constructor(e,{type:t=null,delayRender:r=!1}={}){super(),this._pfeClass=e,this.tag=e.tag,this._parseObserver=this._parseObserver.bind(this),this.isIE11=/MSIE|Trident|Edge\//.test(window.navigator.userAgent),this._pfeClass.instances&&this._pfeClass.instances.length>=0||(this._pfeClass.instances=[]),this.id?this.id.startsWith("pfe-")&&!this.id.startsWith(this.tag)?this._markId=this.id.replace("pfe",this.tag):this._markId=`${this.tag}-${this.id}`:this._markId=this.randomId.replace("pfe",this.tag),this._markCount=0,this.schemaProps=e.schemaProperties,this.slots=e.slots,this.template=document.createElement("template"),t&&this._pfeClass.allProperties.type&&(this._pfeClass.allProperties.type.default=t),this._initializeProperties(),this.attachShadow({mode:"open"}),this._rendered=!1,r||this.render()}connectedCallback(){this._initializeAttributeDefaults(),window.ShadyCSS&&window.ShadyCSS.styleElement(this),this._pfeClass.instances.push(this),o.allInstances.push(this),"object"==typeof this.slots&&(this._slotsObserver=new MutationObserver((()=>this._initializeSlots(this.tag,this.slots))),this._initializeSlots(this.tag,this.slots))}disconnectedCallback(){this._cascadeObserver&&this._cascadeObserver.disconnect(),this._slotsObserver&&this._slotsObserver.disconnect();const e=this._pfeClass.instances.find((e=>e!==this));delete this._pfeClass.instances[e];const t=o.allInstances.find((e=>e!==this));delete o.allInstances[t]}attributeChangedCallback(e,t,r){if(!this._pfeClass.allProperties)return;let o=this._pfeClass._attr2prop(e);const a=this._pfeClass.allProperties[o];if(a){if(a.alias){const e=this._pfeClass.allProperties[a.alias],t=this._pfeClass._prop2attr(a.alias);this.getAttribute(t)!==r&&(this[a.alias]=this._castPropertyValue(e,r))}a.observer&&this[a.observer](this._castPropertyValue(a,t),this._castPropertyValue(a,r)),a.cascade&&this._cascadeAttribute(e,this._pfeClass._convertSelectorsToArray(a.cascade))}}render(){if(this.shadowRoot.innerHTML="",this.template.innerHTML=this.html,window.ShadyCSS&&window.ShadyCSS.prepareTemplate(this.template,this.tag),this.shadowRoot.appendChild(this.template.content.cloneNode(!0)),this.log("render"),this.cascadeProperties(),this.contextUpdate(),o.trackPerformance())try{performance.mark(`${this._markId}-rendered`),this._markCount<1&&(this._markCount=this._markCount+1,performance.measure(`${this._markId}-from-navigation-to-first-render`,void 0,`${this._markId}-rendered`),performance.measure(`${this._markId}-from-defined-to-first-render`,`${this._markId}-defined`,`${this._markId}-rendered`))}catch(e){this.log("Performance marks are not supported by this browser.")}"object"==typeof this.slots&&this._slotsObserver&&this._slotsObserver.observe(this,{childList:!0}),this._cascadeObserver&&this._cascadeObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this._rendered=!0}emitEvent(e,{bubbles:t=!0,cancelable:r=!1,composed:o=!0,detail:a={}}={}){a?this.log(`Custom event: ${e}`,a):this.log(`Custom event: ${e}`),this.dispatchEvent(new CustomEvent(e,{bubbles:t,cancelable:r,composed:o,detail:a}))}cascadeProperties(e){const t=this._pfeClass._getCache("cascadingProperties");if(t){this._cascadeObserver&&this._cascadeObserver.disconnect();let r=Object.keys(t);if(r)if(e)[...e].forEach((e=>{r.forEach((r=>{if(e.matches&&e.matches(r)){t[r].forEach((t=>this._copyAttribute(t,e)))}}))}));else{const e=r.filter((e=>"pfe-"===e.slice(0,"pfe".length+1))).map((e=>customElements.whenDefined(e)));e?Promise.all(e).then((()=>{this._cascadeAttributes(r,t)})):this._cascadeAttributes(r,t)}this._rendered&&this._cascadeObserver&&this._cascadeObserver.observe(this,{attributes:!0,childList:!0,subtree:!0})}}_upgradeObserver(){this.classList.add("PFElement")}_contextObserver(e,t){t&&(e&&e!==t||!e)&&(this.log("Running the context observer"),this.on=t,this.cssVariable("context",t))}_onObserver(e,t){(e&&e!==t||t&&!e)&&(this.log("Context update"),this.contextUpdate())}_inlineStyleObserver(e,t){if(e!==t)if(t){this.log(`Style observer activated on ${this.tag}`,`${t||"null"}`);let e=/--[\w|-]*(?:context|theme):\s*(?:\"*(light|dark|saturated)\"*)/gi.exec(t);if(!e)return;const r=e[1];r===this.on||this.context||(this.on=r)}else this.resetContext()}_parseObserver(e){for(let t of e)if("childList"===t.type&&t.addedNodes.length){const e=[...t.addedNodes].filter((e=>e.nodeType!==HTMLElement.TEXT_NODE));this.cascadeProperties(e)}}static _validateProperties(){for(let e in this.allProperties){const t=this.allProperties[e];[String,Number,Boolean].includes(t.type||String)||this.error(`Property "${e}" on ${this.name} must have type String, Number, or Boolean.`),/^[a-z_]/.test(e)||this.error(`Property ${this.name}.${e} defined, but prop names must begin with a lower-case letter or an underscore`);const o="function"==typeof t.default;!t.default||r(t)||o||this.error(`[${this.name}] The default value \`${t.default}\` does not match the assigned type ${t.type.name} for the '${e}' property`)}}_castPropertyValue(e,t){switch(e.type){case Number:return{[t]:Number(t),null:null,NaN:NaN,undefined:void 0}[t];case Boolean:return null!==t;case String:return{[t]:t,undefined:void 0}[t];default:return t}}_assignValueToAttribute(e,t,r){e.type===Boolean&&!r||null===r||void 0===r?this.removeAttribute(t):e.type===Boolean&&"boolean"==typeof r?this.setAttribute(t,""):(e.values&&this._validateAttributeValue(e,t,r),this.setAttribute(t,r))}_initializeSlots(e,t){this.log("Validate slots..."),this._slotsObserver&&this._slotsObserver.disconnect(),Object.keys(t).forEach((r=>{let o=t[r];if("object"==typeof o){let t=!1,a=[];o.namedSlot?(a=this.getSlot(`${e}--${r}`),a.length>0&&(o.nodes=a,t=!0),a=this.getSlot(`${r}`),a.length>0&&(o.nodes=a,t=!0)):(a=[...this.children].filter((e=>!e.hasAttribute("slot"))),a.length>0&&(o.nodes=a,t=!0)),t?this.setAttribute(`has_${r}`,""):this.removeAttribute(`has_${r}`)}})),this.log("Slots validated."),this._slotsObserver&&this._slotsObserver.observe(this,{childList:!0})}_initializeProperties(){const e=this._pfeClass.allProperties;let t=!1;Object.keys(e).length>0&&this.log("Initialize properties");for(let r in e){const o=e[r];if(void 0!==this[r])this.log(`Property "${r}" on ${this.constructor.name} cannot be defined because the property name is reserved`);else{const e=this._pfeClass._prop2attr(r);o.cascade&&(t=!0),Object.defineProperty(this,r,{get:()=>{const t=this.getAttribute(e);return this._castPropertyValue(o,t)},set:t=>(this._assignValueToAttribute(o,e,t),t),writeable:!0,enumerable:!0,configurable:!1})}}t&&(this._cascadeObserver=new MutationObserver(this._parseObserver))}_initializeAttributeDefaults(){const e=this._pfeClass.allProperties;for(let t in e){const r=e[t],o=this._pfeClass._prop2attr(t);if(r.hasOwnProperty("default")){let e=r.default;"function"==typeof r.default&&(e=r.default(this)),this.hasAttribute(o)||this._assignValueToAttribute(r,o,e)}}}_validateAttributeValue(e,t,r){return Array.isArray(e.values)&&e.values.length>0&&!e.values.includes(r)&&this.warn(`${r} is not a valid value for ${t}. Please provide one of the following values: ${e.values.join(", ")}`),r}static _prop2attr(e){return this._getCache("prop2attr")[e]}static _attr2prop(e){return this._getCache("attr2prop")[e]}static _convertPropNameToAttrName(e){const t=this.allProperties[e];return t.attr?t.attr:e.replace(/^_/,"").replace(/^[A-Z]/,(e=>e.toLowerCase())).replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}static _convertAttrNameToPropName(e){for(let t in this.allProperties)if(this.allProperties[t].attr===e)return t;const t=e.replace(/-([A-Za-z])/g,(e=>e[1].toUpperCase()));return t}_cascadeAttributes(e,t){e.forEach((e=>{t[e].forEach((t=>{this._cascadeAttribute(t,e)}))}))}_cascadeAttribute(e,t){const r=[...this.querySelectorAll(t),...this.shadowRoot.querySelectorAll(t)];for(const t of r)this._copyAttribute(e,t)}_copyAttribute(e,t){this.log(`copying ${e} to ${t}`);const r=this.getAttribute(e);t[null==r?"removeAttribute":"setAttribute"](e,r)}static _convertSelectorsToArray(e){if(e){if("string"==typeof e)return e.split(",");if("object"==typeof e)return e;this.warn(`selectors should be provided as a string, array, or object; received: ${typeof e}.`)}}static _parsePropertiesForCascade(e){let t={};for(const[r,o]of Object.entries(e)){let e=this._convertSelectorsToArray(o.cascade);e&&e.map((e=>{let o=this._prop2attr(r);t[e]?t[e].push(o):t[e]=[o]}))}return t}static create(e){e._createCache(),e._populateCache(e),e._validateProperties();try{window.customElements.define(e.tag,e)}catch(t){const r=window.customElements.get(e.tag);r&&r.version!==e.version&&this.warn(`${e.tag} was registered at version ${r.version}; cannot register version ${e.version}.`),t&&t.message&&this.log(t.message)}if(o.trackPerformance())try{performance.mark(`${this._markId}-defined`)}catch(e){this.log("Performance marks are not supported by this browser.")}}static _createCache(){this._cache={properties:{},globalProperties:{},componentProperties:{},cascadingProperties:{},attr2prop:{},prop2attr:{}}}static _setCache(e,t){this._cache[e]=t}static _getCache(e){return e?this._cache[e]:this._cache}static _populateCache(e){const t={...e.properties,...o.properties};e._setCache("componentProperties",e.properties),e._setCache("globalProperties",o.properties),e._setCache("properties",t);const r={},a={};for(let e in t){const t=this._convertPropNameToAttrName(e);r[e]=t,a[t]=e}e._setCache("attr2prop",a),e._setCache("prop2attr",r);const i=this._parsePropertiesForCascade(t);Object.keys(i)&&e._setCache("cascadingProperties",i)}static get allProperties(){return this._getCache("properties")}static get cascadingProperties(){return this._getCache("cascadingProperties")}static get breakpoint(){return{xs:"0px",sm:"576px",md:"768px",lg:"992px",xl:"1200px","2xl":"1450px"}}}o.allInstances=[],function(r){e=r;const o=window.WebComponents,a=o&&window.WebComponents.ready;!o||a?t():window.addEventListener("WebComponentsReady",t)}(o.log); | |
/*! | |
* PatternFly Elements: PfeBand 1.12.3 | |
* @license | |
* Copyright 2021 Red Hat, Inc. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in | |
* all copies or substantial portions of the Software. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
* SOFTWARE. | |
* | |
*/ | |
class a extends o{static get version(){return"1.12.3"}get html(){return`\n<style>@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host([color=accent]),:host([color=base]),:host([color=complement]),:host([color=darker]),:host([color=darkest]),:host([color=lighter]),:host([color=lightest]){background-color:#fff!important;color:#151515!important}}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host{color:#151515!important}}:host{--context:var(--pfe-band--context, light);display:block;border:1px solid transparent;border:var(--pfe-band--Border,var(--pfe-theme--surface--border-width,1px) var(--pfe-theme--surface--border-style,solid) transparent);background-color:#f0f0f0;background-color:var(--pfe-band--BackgroundColor,var(--pfe-theme--color--surface--base,#f0f0f0));background-position:center center;background-position:var(--pfe-band--BackgroundPosition,center center);color:#3c3f42;color:var(--pfe-broadcasted--text,#3c3f42);padding:calc(calc(1rem * 4)/ 2) calc(1rem * 1);padding:calc(var(--pfe-band--Padding--vertical,calc(var(--pfe-theme--container-spacer,1rem) * 4))/ 2) var(--pfe-band--Padding--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 1))}@media (min-width:576px){:host{padding:calc(1rem * 4) calc(1rem * 1);padding:var(--pfe-band--Padding,var(--pfe-band--Padding--vertical,calc(var(--pfe-theme--container-spacer,1rem) * 4)) var(--pfe-band--Padding--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 1)))}}:host *,:host ::after,:host ::before{-webkit-box-sizing:border-box;box-sizing:border-box}@media print{:host{background-color:#fff!important;background-image:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}}@media print{:host{border-radius:3px;border:1px solid #d2d2d2;padding:2rem 1rem}}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host{background-color:#fff!important;background-image:none!important;color:#151515!important;padding:2rem 1rem}}@media screen and (-ms-high-contrast:active) and (min-width:576px),screen and (-ms-high-contrast:none) and (min-width:576px){:host{padding:4rem 1rem}}:host([on=dark]){--pfe-broadcasted--text:var(--pfe-theme--color--text--on-dark, #fff);--pfe-broadcasted--text--muted:var(--pfe-theme--color--text--muted--on-dark, #d2d2d2);--pfe-broadcasted--link:var(--pfe-theme--color--link--on-dark, #73bcf7);--pfe-broadcasted--link--hover:var(--pfe-theme--color--link--hover--on-dark, #bee1f4);--pfe-broadcasted--link--focus:var(--pfe-theme--color--link--focus--on-dark, #bee1f4);--pfe-broadcasted--link--visited:var(--pfe-theme--color--link--visited--on-dark, #bee1f4);--pfe-broadcasted--link-decoration:var(--pfe-theme--link-decoration--on-dark, none);--pfe-broadcasted--link-decoration--hover:var(--pfe-theme--link-decoration--hover--on-dark, underline);--pfe-broadcasted--link-decoration--focus:var(--pfe-theme--link-decoration--focus--on-dark, underline);--pfe-broadcasted--link-decoration--visited:var(--pfe-theme--link-decoration--visited--on-dark, none)}:host([on=saturated]){--pfe-broadcasted--text:var(--pfe-theme--color--text--on-saturated, #fff);--pfe-broadcasted--text--muted:var(--pfe-theme--color--text--muted--on-saturated, #d2d2d2);--pfe-broadcasted--link:var(--pfe-theme--color--link--on-saturated, #fff);--pfe-broadcasted--link--hover:var(--pfe-theme--color--link--hover--on-saturated, #fafafa);--pfe-broadcasted--link--focus:var(--pfe-theme--color--link--focus--on-saturated, #fafafa);--pfe-broadcasted--link--visited:var(--pfe-theme--color--link--visited--on-saturated, #d2d2d2);--pfe-broadcasted--link-decoration:var(--pfe-theme--link-decoration--on-saturated, underline);--pfe-broadcasted--link-decoration--hover:var(--pfe-theme--link-decoration--hover--on-saturated, underline);--pfe-broadcasted--link-decoration--focus:var(--pfe-theme--link-decoration--focus--on-saturated, underline);--pfe-broadcasted--link-decoration--visited:var(--pfe-theme--link-decoration--visited--on-saturated, underline)}:host([on=light]){--pfe-broadcasted--text:var(--pfe-theme--color--text, #151515);--pfe-broadcasted--text--muted:var(--pfe-theme--color--text--muted, #6a6e73);--pfe-broadcasted--link:var(--pfe-theme--color--link, #06c);--pfe-broadcasted--link--hover:var(--pfe-theme--color--link--hover, #004080);--pfe-broadcasted--link--focus:var(--pfe-theme--color--link--focus, #004080);--pfe-broadcasted--link--visited:var(--pfe-theme--color--link--visited, #6753ac);--pfe-broadcasted--link-decoration:var(--pfe-theme--link-decoration, none);--pfe-broadcasted--link-decoration--hover:var(--pfe-theme--link-decoration--hover, underline);--pfe-broadcasted--link-decoration--focus:var(--pfe-theme--link-decoration--focus, underline);--pfe-broadcasted--link-decoration--visited:var(--pfe-theme--link-decoration--visited, none)}:host([color=darker]){--pfe-band--BackgroundColor:var(--pfe-theme--color--surface--darker, #3c3f42);--pfe-band--context:var(--pfe-theme--color--surface--darker--context, dark)}:host([color=darkest]){--pfe-band--BackgroundColor:var(--pfe-theme--color--surface--darkest, #151515);--pfe-band--context:var(--pfe-theme--color--surface--darkest--context, dark)}:host([color=base]){--pfe-band--BackgroundColor:var(--pfe-theme--color--surface--base, #f0f0f0);--pfe-band--context:var(--pfe-theme--color--surface--base--context, light)}:host([color=lighter]){--pfe-band--BackgroundColor:var(--pfe-theme--color--surface--lighter, #f0f0f0);--pfe-band--context:var(--pfe-theme--color--surface--lighter--context, light)}:host([color=lightest]){--pfe-band--BackgroundColor:var(--pfe-theme--color--surface--lightest, #fff);--pfe-band--context:var(--pfe-theme--color--surface--lightest--context, light)}:host([color=accent]){--pfe-band--BackgroundColor:var(--pfe-theme--color--surface--accent, #004080);--pfe-band--context:var(--pfe-theme--color--surface--accent--context, saturated)}:host([color=complement]){--pfe-band--BackgroundColor:var(--pfe-theme--color--surface--complement, #002952);--pfe-band--context:var(--pfe-theme--color--surface--complement--context, saturated)}:host([size=small]){padding:calc(calc(1rem * 4)/ 4) calc(1rem * 1);padding:calc(var(--pfe-band--Padding--vertical,calc(var(--pfe-theme--container-spacer,1rem) * 4))/ 4) var(--pfe-band--Padding--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 1))}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host([size=small]){padding:1rem}}.pfe-band__container{margin:0 auto}:host(:not([full-width])) .pfe-band__container{max-width:auto;max-width:var(--pfe-band--Width,auto)}@media screen and (min-width:768px){:host(:not([full-width])) .pfe-band__container{max-width:calc(768px - (calc(1rem * 1) * 4));max-width:var(--pfe-band--Width,calc(768px - (var(--pfe-band--Padding--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 1)) * 4)))}}@media screen and (min-width:992px){:host(:not([full-width])) .pfe-band__container{max-width:calc(992px - (calc(1rem * 1) * 4));max-width:var(--pfe-band--Width,calc(992px - (var(--pfe-band--Padding--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 1)) * 4)))}}@media screen and (min-width:1200px){:host(:not([full-width])) .pfe-band__container{max-width:calc(1200px - (calc(1rem * 1) * 4));max-width:var(--pfe-band--Width,calc(1200px - (var(--pfe-band--Padding--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 1)) * 4)))}}@supports (display:grid){.pfe-band__container{display:-ms-grid;display:grid;-ms-grid-rows:auto;grid-template-rows:auto;-ms-grid-columns:auto;grid-template-columns:auto;grid-template-areas:"body";grid-row-gap:1rem;grid-row-gap:var(--pfe-band--gutter--vertical,var(--pfe-theme--container-spacer,1rem));row-gap:1rem;row-gap:var(--pfe-band--gutter--vertical,var(--pfe-theme--container-spacer,1rem));grid-column-gap:calc(1rem * 3);grid-column-gap:var(--pfe-band--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3));-webkit-column-gap:calc(1rem * 3);-moz-column-gap:calc(1rem * 3);column-gap:calc(1rem * 3);-webkit-column-gap:var(--pfe-band--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3));-moz-column-gap:var(--pfe-band--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3));column-gap:var(--pfe-band--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3))}:host([has_header]) .pfe-band__container{grid-template-areas:"header" "body"}:host([has_aside]) .pfe-band__container{grid-template-areas:"body" "aside"}@media (max-width:767px){:host([has_aside][aside-mobile=top]) .pfe-band__container{grid-template-areas:"aside" "body"}}@media (min-width:768px){:host([has_aside]) .pfe-band__container{grid-template-areas:"body aside"}:host([has_aside][aside-desktop=left]) .pfe-band__container{grid-template-areas:"aside body"}}:host([has_footer]) .pfe-band__container{grid-template-areas:"body" "footer"}:host([has_header][has_aside]) .pfe-band__container{grid-template-areas:"header" "body" "aside"}@media (max-width:767px){:host([has_header][has_aside][aside-mobile=top]) .pfe-band__container{grid-template-areas:"aside" "header" "body"}}@media (min-width:768px){:host([has_header][has_aside]) .pfe-band__container{grid-template-areas:"header header" "body aside"}:host([has_header][has_aside][aside-desktop=left]) .pfe-band__container{grid-template-areas:"header header" "aside body"}:host([has_header][has_aside][aside-height=full]) .pfe-band__container{grid-template-areas:"header aside" "body aside"}:host([has_header][has_aside][aside-desktop=left][aside-height=full]) .pfe-band__container{grid-template-areas:"aside header" "aside body"}}:host([has_header][has_footer]) .pfe-band__container{grid-template-areas:"header" "body" "footer"}:host([has_footer][has_aside]) .pfe-band__container{grid-template-areas:"body" "aside" "footer"}@media (max-width:767px){:host([has_footer][has_aside][aside-mobile=top]) .pfe-band__container{grid-template-areas:"aside" "body" "footer"}}@media (min-width:768px){:host([has_footer][has_aside]) .pfe-band__container{grid-template-areas:"body aside" "footer footer"}:host([has_footer][has_aside][aside-desktop=left]) .pfe-band__container{grid-template-areas:"aside body" "footer footer"}:host([has_footer][has_aside][aside-height=full]) .pfe-band__container{grid-template-areas:"body aside" "footer aside"}:host([has_footer][has_aside][aside-desktop=left][aside-height=full]) .pfe-band__container{grid-template-areas:"aside body" "aside footer"}}:host([has_header][has_aside][has_footer]) .pfe-band__container{grid-template-areas:"header" "body" "footer" "aside"}@media (max-width:767px){:host([has_header][has_aside][has_footer][aside-mobile=top]) .pfe-band__container{grid-template-areas:"aside" "header" "body" "footer"}}@media (min-width:768px){:host([has_header][has_aside][has_footer]) .pfe-band__container{grid-template-areas:"header header" "body aside" "footer footer"}:host([has_header][has_aside][has_footer][aside-desktop=left]) .pfe-band__container{grid-template-areas:"header header" "aside body" "footer footer"}:host([has_header][has_aside][has_footer][aside-height=full]) .pfe-band__container{grid-template-areas:"header aside" "body aside" "footer aside"}:host([has_header][has_aside][has_footer][aside-desktop=left][aside-height=full]) .pfe-band__container{grid-template-areas:"aside header" "aside body" "aside footer"}}@media (min-width:768px){.pfe-band__container{-ms-grid-rows:auto;grid-template-rows:auto;-ms-grid-columns:1fr;grid-template-columns:1fr}.pfe-band__container>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}:host([has_aside]) .pfe-band__container{-ms-grid-rows:auto;grid-template-rows:auto;-ms-grid-columns:1fr 240px;grid-template-columns:1fr 240px;-ms-grid-columns:1fr var(--pfe-band--Width__aside--sm,240px);grid-template-columns:1fr var(--pfe-band--Width__aside--sm,240px)}:host([has_aside]) .pfe-band__container>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}:host([has_aside]) .pfe-band__container>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}:host([has_aside]) .pfe-band__container>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}:host([has_aside]) .pfe-band__container>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}:host([has_aside][aside-desktop=left]) .pfe-band__container{-ms-grid-rows:auto;grid-template-rows:auto;-ms-grid-columns:240px 1fr;grid-template-columns:240px 1fr;-ms-grid-columns:var(--pfe-band--Width__aside--sm,240px) 1fr;grid-template-columns:var(--pfe-band--Width__aside--sm,240px) 1fr}:host([has_aside][aside-desktop=left]) .pfe-band__container>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}:host([has_aside][aside-desktop=left]) .pfe-band__container>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}:host([has_aside][aside-desktop=left]) .pfe-band__container>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}:host([has_aside][aside-desktop=left]) .pfe-band__container>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}}@media (min-width:992px){:host([has_aside]) .pfe-band__container{-ms-grid-rows:auto;grid-template-rows:auto;-ms-grid-columns:1fr 300px;grid-template-columns:1fr 300px;-ms-grid-columns:var(--pfe-band--layout,1fr var(--pfe-band--Width__aside--lg,300px));grid-template-columns:var(--pfe-band--layout,1fr var(--pfe-band--Width__aside--lg,300px))}:host([has_aside]) .pfe-band__container>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}:host([has_aside]) .pfe-band__container>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}:host([has_aside]) .pfe-band__container>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}:host([has_aside][aside-desktop=left]) .pfe-band__container{-ms-grid-rows:auto;grid-template-rows:auto;-ms-grid-columns:300px 1fr;grid-template-columns:300px 1fr;-ms-grid-columns:var(--pfe-band--layout,var(--pfe-band--Width__aside--lg,300px) 1fr);grid-template-columns:var(--pfe-band--layout,var(--pfe-band--Width__aside--lg,300px) 1fr)}:host([has_aside][aside-desktop=left]) .pfe-band__container>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}:host([has_aside][aside-desktop=left]) .pfe-band__container>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}:host([has_aside][aside-desktop=left]) .pfe-band__container>:nth-child(2){-ms-grid-row:1;-ms-grid-column:2}}}:host([full-width]) .pfe-band__container{max-width:100%;max-width:var(--pfe-band--Width,100%)}@media screen and (min-width:768px){:host([full-width]) .pfe-band__container{width:calc(100% - calc(1rem * 1) * 4);width:calc(100% - var(--pfe-band--Padding--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 1)) * 4)}}@media screen and (min-width:992px){:host([full-width]) .pfe-band__container{width:calc(100% - calc(1rem * 1) * 4);width:calc(100% - var(--pfe-band--Padding--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 1)) * 4)}}@media screen and (min-width:1200px){:host([full-width]) .pfe-band__container{width:calc(100% - calc(1rem * 1) * 8);width:calc(100% - var(--pfe-band--Padding--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 1)) * 8)}}.pfe-band__container,.pfe-band__wrapper{width:100%;margin-bottom:calc(-1 * 1rem);margin-bottom:calc(-1 * var(--pfe-band--gutter--vertical,var(--pfe-theme--container-spacer,1rem)));margin-right:calc(-1 * 1rem);margin-right:calc(-1 * var(--pfe-band--gutter--vertical,var(--pfe-theme--container-spacer,1rem)))}@supports (display:grid){.pfe-band__container,.pfe-band__wrapper{margin:0 auto}}:host([full-width]) .pfe-band__wrapper{max-width:100%;max-width:var(--pfe-band--Width,100%)}.pfe-band__aside{height:100%}slot[name=pfe-band--aside]{display:block;height:100%}.pfe-band__header{margin-bottom:1rem;margin-bottom:var(--pfe-band__header--gutter--vertical,var(--pfe-theme--container-spacer,1rem));margin-right:1rem;margin-right:var(--pfe-band__header--gutter--vertical,var(--pfe-theme--container-spacer,1rem))}@supports (display:grid){.pfe-band__header{-ms-grid-row:1;-ms-grid-column:1;grid-area:header;margin-bottom:0;margin-right:0}:host([has_header][has_aside]) .pfe-band__container>.pfe-band__header{-ms-grid-row:1;-ms-grid-column:1}:host([has_header][has_footer]) .pfe-band__container>.pfe-band__header{-ms-grid-row:1;-ms-grid-column:1;-ms-grid-column-span:1}:host([has_header][has_aside][has_footer]) .pfe-band__container>.pfe-band__header{-ms-grid-row:1;-ms-grid-column:1;-ms-grid-column-span:1}:host([use-grid]) .pfe-band__header{display:-ms-grid;display:grid;-ms-grid-rows:auto;grid-template-rows:auto;-ms-grid-columns:1fr;grid-template-columns:1fr;-ms-grid-columns:var(--pfe-band__header--layout,1fr);grid-template-columns:var(--pfe-band__header--layout,1fr);grid-row-gap:1rem;grid-row-gap:var(--pfe-band__header--gutter--vertical,var(--pfe-theme--container-spacer,1rem));row-gap:1rem;row-gap:var(--pfe-band__header--gutter--vertical,var(--pfe-theme--container-spacer,1rem));grid-column-gap:calc(1rem * 3);grid-column-gap:var(--pfe-band__header--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3));-webkit-column-gap:calc(1rem * 3);-moz-column-gap:calc(1rem * 3);column-gap:calc(1rem * 3);-webkit-column-gap:var(--pfe-band__header--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3));-moz-column-gap:var(--pfe-band__header--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3));column-gap:var(--pfe-band__header--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3))}:host([use-grid]) .pfe-band__header>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}:host([use-grid]) .pfe-band__header>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}}.pfe-band__body{margin-bottom:1rem;margin-bottom:var(--pfe-band__body--gutter--vertical,var(--pfe-theme--container-spacer,1rem));margin-right:1rem;margin-right:var(--pfe-band__body--gutter--vertical,var(--pfe-theme--container-spacer,1rem))}@supports (display:grid){.pfe-band__body{-ms-grid-row:1;-ms-grid-column:1;grid-area:body;margin-bottom:0;margin-right:0}:host([has_header]) .pfe-band__container>.pfe-band__body{-ms-grid-row:2;-ms-grid-column:1}:host([has_aside]) .pfe-band__container>.pfe-band__body{-ms-grid-row:1;-ms-grid-column:1}:host([has_footer]) .pfe-band__container>.pfe-band__body{-ms-grid-row:1;-ms-grid-column:1}:host([has_header][has_aside]) .pfe-band__container>.pfe-band__body{-ms-grid-row:2;-ms-grid-column:1}:host([has_header][has_footer]) .pfe-band__container>.pfe-band__body{-ms-grid-row:2;-ms-grid-column:1}:host([has_footer][has_aside]) .pfe-band__container>.pfe-band__body{-ms-grid-row:1;-ms-grid-column:1}:host([has_header][has_aside][has_footer]) .pfe-band__container>.pfe-band__body{-ms-grid-row:2;-ms-grid-column:1}:host([use-grid]) .pfe-band__body{display:-ms-grid;display:grid;-ms-grid-rows:auto;grid-template-rows:auto;-ms-grid-columns:1fr;grid-template-columns:1fr;-ms-grid-columns:var(--pfe-band__body--layout,1fr);grid-template-columns:var(--pfe-band__body--layout,1fr);grid-row-gap:1rem;grid-row-gap:var(--pfe-band__body--gutter--vertical,var(--pfe-theme--container-spacer,1rem));row-gap:1rem;row-gap:var(--pfe-band__body--gutter--vertical,var(--pfe-theme--container-spacer,1rem));grid-column-gap:calc(1rem * 3);grid-column-gap:var(--pfe-band__body--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3));-webkit-column-gap:calc(1rem * 3);-moz-column-gap:calc(1rem * 3);column-gap:calc(1rem * 3);-webkit-column-gap:var(--pfe-band__body--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3));-moz-column-gap:var(--pfe-band__body--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3));column-gap:var(--pfe-band__body--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3))}:host([use-grid]) .pfe-band__body>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}:host([use-grid]) .pfe-band__body>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}}.pfe-band__footer{margin-bottom:1rem;margin-bottom:var(--pfe-band__footer--gutter--vertical,var(--pfe-theme--container-spacer,1rem));margin-right:1rem;margin-right:var(--pfe-band__footer--gutter--vertical,var(--pfe-theme--container-spacer,1rem))}@supports (display:grid){.pfe-band__footer{-ms-grid-row:2;-ms-grid-column:1;grid-area:footer;margin-bottom:0;margin-right:0}:host([has_header][has_footer]) .pfe-band__container>.pfe-band__footer{-ms-grid-row:3;-ms-grid-column:1}:host([has_footer][has_aside]) .pfe-band__container>.pfe-band__footer{-ms-grid-row:3;-ms-grid-column:1}:host([has_header][has_aside][has_footer]) .pfe-band__container>.pfe-band__footer{-ms-grid-row:3;-ms-grid-column:1;-ms-grid-column-span:1}:host([use-grid]) .pfe-band__footer{display:-ms-grid;display:grid;-ms-grid-rows:auto;grid-template-rows:auto;-ms-grid-columns:1fr;grid-template-columns:1fr;-ms-grid-columns:var(--pfe-band__footer--layout,1fr);grid-template-columns:var(--pfe-band__footer--layout,1fr);grid-row-gap:1rem;grid-row-gap:var(--pfe-band__footer--gutter--vertical,var(--pfe-theme--container-spacer,1rem));row-gap:1rem;row-gap:var(--pfe-band__footer--gutter--vertical,var(--pfe-theme--container-spacer,1rem));grid-column-gap:calc(1rem * 3);grid-column-gap:var(--pfe-band__footer--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3));-webkit-column-gap:calc(1rem * 3);-moz-column-gap:calc(1rem * 3);column-gap:calc(1rem * 3);-webkit-column-gap:var(--pfe-band__footer--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3));-moz-column-gap:var(--pfe-band__footer--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3));column-gap:var(--pfe-band__footer--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3))}:host([use-grid]) .pfe-band__footer>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}:host([use-grid]) .pfe-band__footer>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}}.pfe-band__aside{margin-bottom:1rem;margin-bottom:var(--pfe-band__aside--gutter--vertical,var(--pfe-theme--container-spacer,1rem));margin-right:1rem;margin-right:var(--pfe-band__aside--gutter--vertical,var(--pfe-theme--container-spacer,1rem))}@supports (display:grid){.pfe-band__aside{-ms-grid-row:2;-ms-grid-column:1;grid-area:aside;margin-bottom:0;margin-right:0}:host([has_header][has_aside]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:3;-ms-grid-column:1}:host([has_footer][has_aside]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:2;-ms-grid-row-span:1;-ms-grid-column:1}:host([has_header][has_aside][has_footer]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:4;-ms-grid-row-span:1;-ms-grid-column:1}@media (max-width:767px){:host([has_header][has_aside][aside-mobile=top]) .pfe-band__container>.pfe-band__header{-ms-grid-row:2;-ms-grid-column:1}:host([has_header][has_aside][has_footer][aside-mobile=top]) .pfe-band__container>.pfe-band__header{-ms-grid-row:2;-ms-grid-column:1;-ms-grid-column-span:1}:host([has_aside][aside-mobile=top]) .pfe-band__container>.pfe-band__body{-ms-grid-row:2;-ms-grid-column:1}:host([has_header][has_aside][aside-mobile=top]) .pfe-band__container>.pfe-band__body{-ms-grid-row:3;-ms-grid-column:1}:host([has_footer][has_aside][aside-mobile=top]) .pfe-band__container>.pfe-band__body{-ms-grid-row:2;-ms-grid-column:1}:host([has_header][has_aside][has_footer][aside-mobile=top]) .pfe-band__container>.pfe-band__body{-ms-grid-row:3;-ms-grid-column:1}:host([has_footer][has_aside][aside-mobile=top]) .pfe-band__container>.pfe-band__footer{-ms-grid-row:3;-ms-grid-column:1}:host([has_header][has_aside][has_footer][aside-mobile=top]) .pfe-band__container>.pfe-band__footer{-ms-grid-row:4;-ms-grid-column:1;-ms-grid-column-span:1}:host([has_aside][aside-mobile=top]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:1;-ms-grid-column:1}:host([has_header][has_aside][aside-mobile=top]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:1;-ms-grid-column:1}:host([has_footer][has_aside][aside-mobile=top]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:1;-ms-grid-row-span:1;-ms-grid-column:1}:host([has_header][has_aside][has_footer][aside-mobile=top]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:1;-ms-grid-row-span:1;-ms-grid-column:1}}@media (min-width:768px){:host([has_header][has_aside]) .pfe-band__container>.pfe-band__header{-ms-grid-row:1;-ms-grid-column:1;-ms-grid-column-span:2}:host([has_header][has_aside][aside-desktop=left]) .pfe-band__container>.pfe-band__header{-ms-grid-row:1;-ms-grid-column:1;-ms-grid-column-span:2}:host([has_header][has_aside][aside-height=full]) .pfe-band__container>.pfe-band__header{-ms-grid-row:1;-ms-grid-column:1;-ms-grid-column-span:1}:host([has_header][has_aside][aside-desktop=left][aside-height=full]) .pfe-band__container>.pfe-band__header{-ms-grid-row:1;-ms-grid-column:2;-ms-grid-column-span:1}:host([has_header][has_aside][has_footer]) .pfe-band__container>.pfe-band__header{-ms-grid-row:1;-ms-grid-column:1;-ms-grid-column-span:2}:host([has_header][has_aside][has_footer][aside-desktop=left]) .pfe-band__container>.pfe-band__header{-ms-grid-row:1;-ms-grid-column:1;-ms-grid-column-span:2}:host([has_header][has_aside][has_footer][aside-height=full]) .pfe-band__container>.pfe-band__header{-ms-grid-row:1;-ms-grid-column:1;-ms-grid-column-span:1}:host([has_header][has_aside][has_footer][aside-desktop=left][aside-height=full]) .pfe-band__container>.pfe-band__header{-ms-grid-row:1;-ms-grid-column:2;-ms-grid-column-span:1}:host([has_aside]) .pfe-band__container>.pfe-band__body{-ms-grid-row:1;-ms-grid-column:1}:host([has_aside][aside-desktop=left]) .pfe-band__container>.pfe-band__body{-ms-grid-row:1;-ms-grid-column:2}:host([has_header][has_aside]) .pfe-band__container>.pfe-band__body{-ms-grid-row:2;-ms-grid-column:1}:host([has_header][has_aside][aside-desktop=left]) .pfe-band__container>.pfe-band__body{-ms-grid-row:2;-ms-grid-column:2}:host([has_header][has_aside][aside-height=full]) .pfe-band__container>.pfe-band__body{-ms-grid-row:2;-ms-grid-column:1}:host([has_header][has_aside][aside-desktop=left][aside-height=full]) .pfe-band__container>.pfe-band__body{-ms-grid-row:2;-ms-grid-column:2}:host([has_footer][has_aside]) .pfe-band__container>.pfe-band__body{-ms-grid-row:1;-ms-grid-column:1}:host([has_footer][has_aside][aside-desktop=left]) .pfe-band__container>.pfe-band__body{-ms-grid-row:1;-ms-grid-column:2}:host([has_footer][has_aside][aside-height=full]) .pfe-band__container>.pfe-band__body{-ms-grid-row:1;-ms-grid-column:1}:host([has_footer][has_aside][aside-desktop=left][aside-height=full]) .pfe-band__container>.pfe-band__body{-ms-grid-row:1;-ms-grid-column:2}:host([has_header][has_aside][has_footer]) .pfe-band__container>.pfe-band__body{-ms-grid-row:2;-ms-grid-column:1}:host([has_header][has_aside][has_footer][aside-desktop=left]) .pfe-band__container>.pfe-band__body{-ms-grid-row:2;-ms-grid-column:2}:host([has_header][has_aside][has_footer][aside-height=full]) .pfe-band__container>.pfe-band__body{-ms-grid-row:2;-ms-grid-column:1}:host([has_header][has_aside][has_footer][aside-desktop=left][aside-height=full]) .pfe-band__container>.pfe-band__body{-ms-grid-row:2;-ms-grid-column:2}:host([has_footer][has_aside]) .pfe-band__container>.pfe-band__footer{-ms-grid-row:2;-ms-grid-column:1;-ms-grid-column-span:2}:host([has_footer][has_aside][aside-desktop=left]) .pfe-band__container>.pfe-band__footer{-ms-grid-row:2;-ms-grid-column:1;-ms-grid-column-span:2}:host([has_footer][has_aside][aside-height=full]) .pfe-band__container>.pfe-band__footer{-ms-grid-row:2;-ms-grid-column:1;-ms-grid-column-span:1}:host([has_footer][has_aside][aside-desktop=left][aside-height=full]) .pfe-band__container>.pfe-band__footer{-ms-grid-row:2;-ms-grid-column:2;-ms-grid-column-span:1}:host([has_header][has_aside][has_footer]) .pfe-band__container>.pfe-band__footer{-ms-grid-row:3;-ms-grid-column:1;-ms-grid-column-span:2}:host([has_header][has_aside][has_footer][aside-desktop=left]) .pfe-band__container>.pfe-band__footer{-ms-grid-row:3;-ms-grid-column:1;-ms-grid-column-span:2}:host([has_header][has_aside][has_footer][aside-height=full]) .pfe-band__container>.pfe-band__footer{-ms-grid-row:3;-ms-grid-column:1;-ms-grid-column-span:1}:host([has_header][has_aside][has_footer][aside-desktop=left][aside-height=full]) .pfe-band__container>.pfe-band__footer{-ms-grid-row:3;-ms-grid-column:2;-ms-grid-column-span:1}.pfe-band__aside{-ms-grid-row:1;-ms-grid-column:2}:host([has_aside][aside-desktop=left]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:1;-ms-grid-column:1}:host([has_header][has_aside]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:2;-ms-grid-column:2}:host([has_header][has_aside][aside-desktop=left]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:2;-ms-grid-column:1}:host([has_header][has_aside][aside-height=full]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:1;-ms-grid-row-span:2;-ms-grid-column:2}:host([has_header][has_aside][aside-desktop=left][aside-height=full]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:1;-ms-grid-row-span:2;-ms-grid-column:1}:host([has_footer][has_aside]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:1;-ms-grid-row-span:1;-ms-grid-column:2}:host([has_footer][has_aside][aside-desktop=left]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:1;-ms-grid-row-span:1;-ms-grid-column:1}:host([has_footer][has_aside][aside-height=full]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:1;-ms-grid-row-span:2;-ms-grid-column:2}:host([has_footer][has_aside][aside-desktop=left][aside-height=full]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:1;-ms-grid-row-span:2;-ms-grid-column:1}:host([has_header][has_aside][has_footer]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:2;-ms-grid-row-span:1;-ms-grid-column:2}:host([has_header][has_aside][has_footer][aside-desktop=left]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:2;-ms-grid-row-span:1;-ms-grid-column:1}:host([has_header][has_aside][has_footer][aside-height=full]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:1;-ms-grid-row-span:3;-ms-grid-column:2}:host([has_header][has_aside][has_footer][aside-desktop=left][aside-height=full]) .pfe-band__container>.pfe-band__aside{-ms-grid-row:1;-ms-grid-row-span:3;-ms-grid-column:1}}:host([use-grid]) .pfe-band__aside{display:-ms-grid;display:grid;-ms-grid-rows:auto;grid-template-rows:auto;-ms-grid-columns:1fr;grid-template-columns:1fr;-ms-grid-columns:var(--pfe-band__aside--layout,1fr);grid-template-columns:var(--pfe-band__aside--layout,1fr);grid-row-gap:1rem;grid-row-gap:var(--pfe-band__aside--gutter--vertical,var(--pfe-theme--container-spacer,1rem));row-gap:1rem;row-gap:var(--pfe-band__aside--gutter--vertical,var(--pfe-theme--container-spacer,1rem));grid-column-gap:calc(1rem * 3);grid-column-gap:var(--pfe-band__aside--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3));-webkit-column-gap:calc(1rem * 3);-moz-column-gap:calc(1rem * 3);column-gap:calc(1rem * 3);-webkit-column-gap:var(--pfe-band__aside--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3));-moz-column-gap:var(--pfe-band__aside--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3));column-gap:var(--pfe-band__aside--gutter--horizontal,calc(var(--pfe-theme--container-spacer,1rem) * 3))}:host([use-grid]) .pfe-band__aside>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}:host([use-grid]) .pfe-band__aside>:nth-child(1){-ms-grid-row:1;-ms-grid-column:1}}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){.pfe-band__container::after{clear:both;content:"";display:table}.pfe-band__body,.pfe-band__footer,.pfe-band__header{float:left}:host([aside-mobile=top]) .pfe-band__body,:host([aside-mobile=top]) .pfe-band__footer,:host([aside-mobile=top]) .pfe-band__header{float:right}:host(:not([aside-height=full])) .pfe-band__body,:host(:not([aside-height=full])) .pfe-band__footer,:host(:not([aside-height=full])) .pfe-band__header{width:60%}.pfe-band__footer{clear:both}.pfe-band__aside{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;float:right;width:35%;margin:0 1.9%}:host([aside-desktop=left]) .pfe-band__aside{float:left}.pfe-band__wrapper{width:60%;float:left}:host([aside-desktop=left]) .pfe-band__wrapper{float:right}} /*# sourceMappingURL=pfe-band.min.css.map */</style>\n<section class="pfe-band__container">\n ${this.hasSlot("pfe-band--aside")&&"top"===this.asidePosition.mobile?'<aside class="pfe-band__aside">\n <slot name="pfe-band--aside"></slot>\n </aside>':""}\n ${"full"===this.asideHeight?'<div class="pfe-band__wrapper">':""}\n ${this.hasSlot("pfe-band--header")?'<header class="pfe-band__header">\n <slot name="pfe-band--header"></slot>\n </header>':""}\n <article class="pfe-band__body">\n <slot></slot>\n </article>\n ${"full"!==this.asideHeight&&this.hasSlot("pfe-band--aside")&&"top"!==this.asidePosition.mobile?'<aside\n class="pfe-band__aside">\n <slot name="pfe-band--aside"></slot>\n </aside>':""}\n ${this.hasSlot("pfe-band--footer")?'<footer class="pfe-band__footer">\n <slot name="pfe-band--footer"></slot>\n </footer>':""}\n ${"full"===this.asideHeight?"</div>":""}\n ${"full"===this.asideHeight&&this.hasSlot("pfe-band--aside")&&"top"!==this.asidePosition.mobile?'<aside\n class="pfe-band__aside">\n <slot name="pfe-band--aside"></slot>\n </aside>':""}\n</section>`}static get tag(){return"pfe-band"}static get meta(){return{title:"Band",description:"This element creates a header, body, footer, and aside region in which to place content or other components."}}get templateUrl(){return"pfe-band.html"}get styleUrl(){return"pfe-band.scss"}get asidePosition(){return{desktop:this.asideDesktop,mobile:this.asideMobile,height:this.asideHeight}}static get properties(){return{imgSrc:{title:"Background image",type:String,observer:"_imgSrcChanged"},oldImgSrc:{alias:"imgSrc",attr:"pfe-img-src"},color:{title:"Background color",type:String,values:["lightest","base","darker","darkest","complement","accent"],default:"base",observer:"_colorChanged"},oldColor:{alias:"color",attr:"pfe-color"},asideDesktop:{title:"side positioning (desktop)",type:String,values:["right","left"],default:"right"},oldAsideDesktop:{alias:"asideDesktop",attr:"pfe-aside-desktop"},asideMobile:{title:"Aside positioning (mobile)",type:String,values:["top","bottom"],default:"bottom"},oldAsideMobile:{alias:"asideMobile",attr:"pfe-aside-mobile"},asideHeight:{title:"Aside height",type:String,values:["full","body"],default:"body"},oldAsideHeight:{alias:"asideHeight",attr:"pfe-aside-height"},size:{title:"Padding size",type:String,values:["small"]},oldSize:{alias:"size",attr:"pfe-size"},useGrid:{title:"Default grid on for the light DOM regions (header, body, footer, aside)",type:Boolean,default:!1}}}static get slots(){return{header:{title:"Header",type:"array",namedSlot:!0,maxItems:3,items:{$ref:"raw"}},body:{title:"Body",type:"array",namedSlot:!1,items:{oneOf:[{$ref:"pfe-card"},{$ref:"raw"}]}},footer:{title:"Footer",type:"array",namedSlot:!0,maxItems:3,items:{oneOf:[{$ref:"pfe-cta"},{$ref:"raw"}]}},aside:{title:"Aside",type:"array",namedSlot:!0,maxItems:5,items:{oneOf:[{$ref:"pfe-card"},{$ref:"raw"}]}}}}static get PfeType(){return o.PfeTypes.Container}constructor(){super(a,{type:a.PfeType})}_colorChanged(){this.resetContext()}_imgSrcChanged(e,t){this.style.backgroundImage=t?`url('${t}')`:""}}o.create(a),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var o=arguments[1],a=0;a<r;){var i=t[a];if(e.call(o,i,a,t))return a;a++}return-1},configurable:!0,writable:!0}) | |
/*! | |
* PatternFly Elements: PfeTabs 1.12.3 | |
* @license | |
* Copyright 2021 Red Hat, Inc. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in | |
* all copies or substantial portions of the Software. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
* SOFTWARE. | |
* | |
*/;const i={characterData:!0,childList:!0,subtree:!0};class n extends o{static get version(){return"1.12.3"}get html(){return'\n<style>:host{text-align:left;position:relative;display:block;cursor:pointer;margin:0 0 calc(1px * -1);margin:var(--pfe-tabs__tab--Margin,0 0 calc(var(--pfe-theme--ui--border-width,1px) * -1));padding:1rem calc(1rem * 2) 1rem calc(1rem * 2);padding:var(--pfe-tabs__tab--PaddingTop,var(--pfe-theme--container-padding,1rem)) var(--pfe-tabs__tab--PaddingRight,calc(var(--pfe-theme--container-padding,1rem) * 2)) var(--pfe-tabs__tab--PaddingBottom,var(--pfe-theme--container-padding,1rem)) var(--pfe-tabs__tab--PaddingLeft,calc(var(--pfe-theme--container-padding,1rem) * 2));border-style:solid;border-style:var(--pfe-theme--ui--border-style,solid);border-width:1px;border-width:var(--pfe-theme--ui--border-width,1px);border-color:transparent;border-bottom-width:3px;border-bottom-width:var(--pfe-tabs--BorderWidth,var(--pfe-theme--ui--border-width--active,3px));background-color:none;background-color:var(--pfe-tabs--BackgroundColor--inactive,none);text-align:center;text-align:var(--pfe-tabs__tab--TextAlign,center);text-transform:none;text-transform:var(--pfe-tabs__tab--TextTransform,none);color:#6a6e73;color:var(--pfe-tabs--Color,var(--pfe-theme--color--text--muted,#6a6e73));font-size:1rem;font-size:var(--pfe-tabs__tab--FontSize,var(--pf-global--FontSize--md,1rem));font-family:"Red Hat Text",RedHatText,Overpass,Overpass,Arial,sans-serif;font-family:var(--pfe-tabs__tab--LineHeight, var(--pfe-theme--font-family, "Red Hat Text", "RedHatText", "Overpass", Overpass, Arial, sans-serif));line-height:1.5;line-height:var(--pfe-tabs__tab--LineHeight,var(--pfe-theme--line-height,1.5));font-weight:400;font-weight:var(--pfe-tabs__tab--FontWeight,var(--pfe-theme--font-weight--normal,400));--pf-c--FontSize:var(--pfe-tabs--FontSize)}:host #tab{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:100%}:host #tab *{font-size:inherit;font-weight:inherit;color:inherit;margin:0}:host([aria-selected=true]){background-color:transparent;background-color:var(--pfe-tabs--BackgroundColor,transparent);border-bottom-color:#06c;border-bottom-color:var(--pfe-tabs--BorderColor,var(--pfe-tabs--highlight,var(--pfe-theme--color--ui-accent,#06c)))}:host([aria-selected=true]) #tab *{color:#151515;color:var(--pfe-tabs--Color--focus,var(--pfe-tabs--focus,var(--pfe-theme--color--text,#151515)))}:host(:active),:host(:hover){background-color:transparent;background-color:var(--pfe-tabs--BackgroundColor,transparent);border-bottom-color:#b8bbbe;border-bottom-color:var(--pfe-tabs--BorderColor--hover,#b8bbbe)}:host(:active) #tab *,:host(:hover) #tab *{color:#151515;color:var(--pfe-tabs--Color--focus,var(--pfe-tabs--focus,var(--pfe-theme--color--text,#151515)))}@media screen and (min-width:768px){:host([vertical]){border-bottom-color:transparent;border-bottom-width:0;border-left-color:#d2d2d2;border-left-color:var(--pfe-theme--color--surface--border,#d2d2d2);border-left-width:1px;border-left-width:var(--pfe-theme--ui--border-width,1px);padding:1rem;padding:var(--pfe-theme--container-padding,1rem);--pfe-tabs--Margin:0 calc(var(--pfe-theme--ui--border-width, 1px) * -1) 0 0}:host([vertical][aria-selected=true]){border-left-color:#06c;border-left-color:var(--pfe-tabs--BorderColor,var(--pfe-tabs--highlight,var(--pfe-theme--color--ui-accent,#06c)));border-left-width:3px}:host([vertical]:not([variant=earth])){border-left:1px solid #d2d2d2;border-left:var(--pfe-theme--ui--border-width,1px) var(--pfe-theme--ui--border-style,solid) var(--pfe-theme--color--surface--border,#d2d2d2);text-align:left!important}:host([vertical]:not([variant=earth])[aria-selected=true]){border-right:3px solid transparent;border-right:var(--pfe-tabs--BorderWidth,var(--pfe-theme--ui--border-width--active,3px)) var(--pfe-theme--ui--border-style,solid) transparent;border-left:3px solid #06c;border-left:var(--pfe-tabs--BorderWidth,var(--pfe-theme--ui--border-width--active,3px)) var(--pfe-theme--ui--border-style,solid) var(--pfe-tabs--BorderColor,var(--pfe-tabs--highlight,var(--pfe-theme--color--ui-accent,#06c)));padding-left:calc(1rem - 2px);padding-left:calc(var(--pfe-theme--container-padding,1rem) - 2px)}:host([vertical]:not([variant=earth])[aria-selected=false]){border-right:3px solid transparent;border-right:var(--pfe-tabs--BorderWidth,var(--pfe-theme--ui--border-width--active,3px)) var(--pfe-theme--ui--border-style,solid) transparent}:host([vertical]:not([variant=earth])[aria-selected=false]:hover){border-right:3px solid transparent;border-right:var(--pfe-tabs--BorderWidth,var(--pfe-theme--ui--border-width--active,3px)) var(--pfe-theme--ui--border-style,solid) transparent;border-bottom:0;border-left:3px solid #b8bbbe;border-left:var(--pfe-tabs--BorderWidth,var(--pfe-theme--ui--border-width--active,3px)) var(--pfe-theme--ui--border-style,solid) var(--pfe-tabs--BorderColor--hover,#b8bbbe);padding-left:calc(1rem - 2px);padding-left:calc(var(--pfe-theme--container-padding,1rem) - 2px)}}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host([variant=earth]){background-color:#f0f0f0;color:#6a6e73}}:host(:not([vertical])[variant=earth]:not([aria-selected=true]):first-of-type){border-left-color:transparent}:host(:not([vertical])[variant=earth]:not([aria-selected=true]):last-of-type){border-right-color:transparent}:host([variant=earth][aria-selected=false]){background-color:#f0f0f0;background-color:var(--pfe-tabs--BackgroundColor--inactive,var(--pfe-theme--color--surface--lighter,#f0f0f0));border-color:#d2d2d2;border-color:var(--pfe-theme--color--surface--border,#d2d2d2);border-top-width:3px;border-top-width:var(--pfe-tabs--BorderWidth,var(--pfe-theme--ui--border-width--active,3px));border-top-color:transparent;border-bottom-color:#b8bbbe;border-bottom-color:var(--pfe-tabs--BorderColor--hover,#b8bbbe);border-bottom-width:1px;border-bottom-width:var(--pfe-theme--ui--border-width,1px)}:host([variant=earth][aria-selected=false]:hover){border-top-color:#b8bbbe;border-top-color:var(--pfe-tabs--BorderColor--hover,#b8bbbe)}:host([variant=earth][aria-selected=true]){background-color:#fff;background-color:var(--pfe-tabs--BackgroundColor,var(--pfe-theme--color--surface--lightest,#fff));border-bottom:0;border-left-color:#d2d2d2;border-left-color:var(--pfe-theme--color--surface--border,#d2d2d2);border-right-color:#d2d2d2;border-right-color:var(--pfe-theme--color--surface--border,#d2d2d2);border-top:solid #06c 3px;border-top:solid var(--pfe-tabs--BorderColor,var(--pfe-tabs--highlight,var(--pfe-theme--color--ui-accent,#06c))) var(--pfe-tabs--BorderWidth,var(--pfe-theme--ui--border-width--active,3px))}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host([variant=earth][aria-selected=true]){color:#6a6e73;background-color:#fff;border-left:1px solid #d2d2d2;border-top:3px solid #06c;border-top:var(--pfe-tabs--BorderWidth,var(--pfe-theme--ui--border-width--active,3px)) solid var(--pfe-tabs--BorderColor,var(--pfe-tabs--highlight,var(--pfe-theme--color--ui-accent,#06c)));border-bottom:0}}:host([variant=earth][aria-selected=true]:last-of-type){border-right:1px solid #d2d2d2;border-right:var(--pfe-theme--ui--border-width,1px) var(--pfe-theme--ui--border-style,solid) var(--pfe-theme--color--surface--border,#d2d2d2)}@media screen and (min-width:768px){:host([vertical][variant=earth]){border-top:1px solid #d2d2d2;border-top:var(--pfe-theme--ui--border-width,1px) var(--pfe-theme--ui--border-style,solid) var(--pfe-theme--color--surface--border,#d2d2d2);border-bottom:1px solid #d2d2d2;border-bottom:var(--pfe-theme--ui--border-width,1px) var(--pfe-theme--ui--border-style,solid) var(--pfe-theme--color--surface--border,#d2d2d2);border-left-width:3px;border-left-width:var(--pfe-theme--ui--border-width--active,3px);text-align:left}:host([vertical][variant=earth][aria-selected=false]:first-of-type){border-top-color:transparent;border-left:3px solid transparent;border-left:var(--pfe-tabs--BorderWidth,var(--pfe-theme--ui--border-width--active,3px)) var(--pfe-theme--ui--border-style,solid) transparent}:host([vertical][variant=earth][aria-selected=false]:last-of-type){border-bottom-color:transparent}:host([vertical][variant=earth][aria-selected=false]){border-right:0;border-bottom-color:transparent;border-left-color:transparent}:host([vertical][variant=earth][aria-selected=false]:hover){border-left-color:#b8bbbe;border-left-color:var(--pfe-tabs--BorderColor--hover,#b8bbbe);border-top-color:#d2d2d2;border-top-color:var(--pfe-theme--color--surface--border,#d2d2d2)}:host([vertical][variant=earth][aria-selected=false]:first-of-type:hover){border-left-color:#d2d2d2;border-left-color:var(--pfe-theme--color--surface--border,#d2d2d2);border-top-color:transparent}:host([vertical][variant=earth][aria-selected=true]){border-top-color:#d2d2d2;border-top-color:var(--pfe-theme--color--surface--border,#d2d2d2);border-left-color:#06c;border-left-color:var(--pfe-tabs--BorderColor,var(--pfe-tabs--highlight,var(--pfe-theme--color--ui-accent,#06c)));border-right-color:transparent;margin-right:-1px}}:host([on=dark][variant=earth]){--pfe-tabs--Color:var(--pfe-theme--color--text--on-dark, #fff);--pfe-tabs--Color--focus:var(--pfe-theme--color--text--on-dark, #fff);border-right-color:#6a6e73;border-right-color:var(--pfe-theme--color--surface--border--darker,#6a6e73);border-left-color:#6a6e73;border-left-color:var(--pfe-theme--color--surface--border--darker,#6a6e73)}:host([on=dark][variant=earth][aria-selected=false]){--pfe-tabs--Color:var(--pfe-theme--color--text--muted--on-dark, #d2d2d2);--pfe-tabs--BackgroundColor--inactive:var(--pfe-theme--color--surface--darker, #3c3f42)}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host([on=dark][variant=earth][aria-selected=false]){background-color:#fff!important;background-color:var(--pfe-theme--color--surface--lightest,#fff)!important}:host([on=dark][variant=earth][aria-selected=false]) #tab *{color:#151515!important}}:host([on=dark][variant=earth][aria-selected=true]){--pfe-tabs--Color--focus:var(--pfe-theme--color--text--on-dark, #fff);--pfe-tabs--BackgroundColor:var(--pfe-theme--color--surface--darkest, #151515)}:host([variant=earth][on=saturated][aria-selected=false]){--pfe-tabs--BackgroundColor:var(--pfe-theme--color--surface--lighter, #f0f0f0)}:host([variant=earth][on=saturated][aria-selected=true]){--pfe-tabs--BackgroundColor:var(--pfe-theme--color--surface--lightest, #fff)}:host([on=saturated]:not([variant=earth])){--pfe-tabs--Color:var(--pfe-theme--color--text--on-saturated, #fff);--pfe-tabs--Color--focus:var(--pfe-theme--color--text--on-saturated, #fff)}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host([on=saturated]:not([variant=earth])){background-color:transparent}:host([on=saturated]:not([variant=earth])) #tab *{color:#151515!important}}:host([on=saturated]:not([variant=earth])[aria-selected=true]){--pfe-tabs--Color--focus:var(--pfe-theme--color--text--on-saturated, #fff);--pfe-tabs--BorderColor:var(--pfe-theme--color--ui-base--on-saturated, #fff)}:host([on=saturated]:not([variant=earth])[aria-selected=false]){--pfe-tabs--Color:var(--pfe-theme--color--text--muted--on-saturated, #d2d2d2)}:host([on=saturated]:not([variant=earth])[aria-selected=false]:hover){--pfe-tabs--BorderColor:var(--pfe-theme--color--surface--border, #d2d2d2)}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host([on=saturated]:not([variant=earth])[aria-selected=true]:last-of-type){border-left:0!important}}:host([on=dark]:not([variant=earth])){--pfe-tabs--Color:var(--pfe-theme--color--text--on-dark, #fff);--pfe-tabs--Color--focus:var(--pfe-theme--color--text--on-dark, #fff)}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host([on=dark]:not([variant=earth])) #tab *{color:#151515!important}}:host([on=dark]:not([variant=earth])[aria-selected=false]){--pfe-tabs--Color:var(--pfe-theme--color--text--muted--on-saturated, #d2d2d2)}:host([on=dark]:not([variant=earth])[aria-selected=false]:hover){--pfe-tabs--BorderColor:var(--pfe-theme--color--surface--lightest, #fff);border-bottom-color:#f0f0f0;border-bottom-color:var(--pfe-theme--color--surface--base,#f0f0f0);--pfe-tabs__tab--BorderBottom:var(--pfe-tabs--BorderWidth, var(--pfe-theme--ui--border-width--active, 3px)) var(--pfe-theme--ui--border-style, solid) var(--pfe-theme--color--surface--border, #d2d2d2)}:host([on=dark]:not([variant=earth])[vertical][aria-selected=false]:hover){border-bottom-color:transparent} /*# sourceMappingURL=pfe-tab.min.css.map */</style>\n<span id="tab"></span>'}static get tag(){return"pfe-tab"}get styleUrl(){return"pfe-tab.scss"}get templateUrl(){return"pfe-tab.html"}static get properties(){return{selected:{title:"Selected tab",type:String,default:"false",attr:"aria-selected",values:["true","false"],observer:"_selectedHandler"},controls:{title:"Connected panel ID",type:String,attr:"aria-controls"},role:{type:String,default:"tab"},tabindex:{type:Number,default:-1},variant:{title:"Variant",type:String,enum:["wind","earth"]},oldPfeId:{type:String,attr:"pfe-id",observer:"_oldPfeIdChanged"}}}static get PfeType(){return o.PfeTypes.Content}constructor(){super(n,{type:n.PfeType}),this._tabItem,this._init=this._init.bind(this),this._setTabContent=this._setTabContent.bind(this),this._getTabElement=this._getTabElement.bind(this),this._observer=new MutationObserver(this._init)}connectedCallback(){super.connectedCallback(),this._tabItem=this.shadowRoot.querySelector("#tab"),this.hasLightDOM()&&this._init(),this._observer.observe(this,i)}disconnectedCallback(){super.disconnectedCallback(),this._observer.disconnect()}_selectedHandler(){"true"===this.selected?this.tabindex=0:this.tabindex=-1}_oldPfeIdChanged(e,t){this.id||(this.id=t)}_init(){window.ShadyCSS&&this._observer.disconnect(),this.role="tab",this._setTabContent(),this.id||(this.id=this.randomId),window.ShadyCSS&&this._observer.observe(this,i)}_getTabElement(){if(this.firstElementChild||this.firstChild){if(this.firstElementChild&&this.firstElementChild.tagName){if("SLOT"===this.firstElementChild.tagName){const e=this.firstElementChild.assignedNodes();if(0===e.length)return void this.warn("No heading information exists within this slot.");e.length>1&&this.warn("Tab heading currently only supports 1 heading tag.");const t=e.filter((e=>e.tagName.match(/^H[1-6]/)||"P"===e.tagName));return t.length>0?t[0]:void 0}if(this.firstElementChild.tagName.match(/^H[1-6]/)||"P"===this.firstElementChild.tagName)return this.firstElementChild;this.warn("Tab heading should contain at least 1 heading tag for correct semantics.")}}else this.warn("No tab content provided")}_setTabContent(){let e="",t=!1,r=this._getTabElement();if(r&&(e=r.textContent.trim().replace(/\s+/g," "),t=!0),r||this.textContent.trim().replace(/\s+/g," ")&&(e=this.textContent.trim().replace(/\s+/g," ")),!e)return void this.warn("There does not appear to be any content in the tab region.");let o="h3";t&&(o=r.tagName.toLowerCase());let a=document.createElement(o);a.textContent=e,this._tabItem&&(this._tabItem.innerHTML="",this._tabItem.appendChild(a))}} | |
/*! | |
* PatternFly Elements: PfeTabs 1.12.3 | |
* @license | |
* Copyright 2021 Red Hat, Inc. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in | |
* all copies or substantial portions of the Software. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
* SOFTWARE. | |
* | |
*/const s={childList:!0,subtree:!0};class d extends o{static get version(){return"1.12.3"}get html(){return'\n<style>:host{display:block;color:#3c3f42;color:var(--pfe-broadcasted--text,#3c3f42)}:host(:focus){outline:0}:host [tabindex]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:100%}:host .container{margin:0;width:100%;background-color:transparent;background-color:var(--pfe-tabs__panel--BackgroundColor,transparent);border-top:0;border-top:var(--pfe-tabs__panel--BorderTop,0);border-right:0;border-right:var(--pfe-tabs__panel--BorderRight,0);border-bottom:0;border-bottom:var(--pfe-tabs__panel--BorderBottom,0);border-left:0;border-left:var(--pfe-tabs__panel--BorderLeft,0);padding-top:calc(1rem * 3);padding-top:var(--pfe-tabs__panel--PaddingTop,calc(var(--pfe-theme--container-padding,1rem) * 3))}@media screen and (min-width:1200px){:host .container{padding-top:calc(1rem * 3);padding-top:var(--pfe-tabs__panel--PaddingTop,calc(var(--pfe-theme--container-padding,1rem) * 3));padding-right:0;padding-right:var(--pfe-tabs__panel--PaddingRight,0);padding-bottom:0;padding-bottom:var(--pfe-tabs__panel--PaddingBottom,0);padding-left:0;padding-left:var(--pfe-tabs__panel--PaddingLeft,0)}}:host .container::after{clear:both;content:"";display:table}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host .container{padding:1em;background-color:#fff!important;color:#151515!important}}:host([hidden]){display:none}:host([variant=earth]){background-color:#fff;background-color:var(--pfe-tabs__panel--BackgroundColor,var(--pfe-theme--color--surface--lightest,#fff))}:host([variant=earth]) .container{padding-top:calc(1rem * 3);padding-top:var(--pfe-tabs__panel--PaddingTop,calc(var(--pfe-theme--container-padding,1rem) * 3));padding-right:calc(1rem * 3);padding-right:var(--pfe-tabs__panel--PaddingRight,calc(var(--pfe-theme--container-padding,1rem) * 3));padding-bottom:calc(1rem * 3);padding-bottom:var(--pfe-tabs__panel--PaddingBottom,calc(var(--pfe-theme--container-padding,1rem) * 3));padding-left:calc(1rem * 3);padding-left:var(--pfe-tabs__panel--PaddingLeft,calc(var(--pfe-theme--container-padding,1rem) * 3))}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host([variant=earth]) .container{background-color:#fff;padding:1em;border-right:1px solid #d2d2d2;border-bottom:1px solid #d2d2d2;border-left:1px solid #d2d2d2}}@media screen and (min-width:768px){:host([variant=wind][vertical]) .container{padding-top:0;padding-top:var(--pfe-tabs__panel--PaddingTop,0);padding-bottom:0;padding-bottom:var(--pfe-tabs__panel--PaddingBottom,0);padding-right:0;padding-right:var(--pfe-tabs__panel--PaddingRight,0);margin:0 calc(1rem - 2px);margin:0 calc(var(--pfe-theme--container-spacer,1rem) - 2px)}}@media screen and (min-width:768px) and (-ms-high-contrast:active),screen and (min-width:768px) and (-ms-high-contrast:none){:host([variant=wind][vertical]) .container{padding:1em 0 1em 2em}}@media screen and (min-width:768px){:host([variant=earth][vertical]){border-top:0;border-top:var(--pfe-tabs--BorderTop,0);border-left:1px solid #d2d2d2;border-left:var(--pfe-tabs--BorderLeft,var(--pfe-theme--ui--border-width,1px) var(--pfe-theme--ui--border-style,solid) var(--pfe-theme--color--surface--border,#d2d2d2));height:100%;background-color:#fff;background-color:var(--pfe-tabs__panel--BackgroundColor,var(--pfe-theme--color--surface--lightest,#fff))}:host([variant=earth][vertical]) .container{padding-left:calc(1rem * 3);padding-left:var(--pfe-tabs__panel--PaddingLeft,calc(var(--pfe-theme--container-padding,1rem) * 3))}}@media screen and (min-width:768px) and (-ms-high-contrast:active),screen and (min-width:768px) and (-ms-high-contrast:none){:host([variant=earth][vertical]) .container{border-top:1px solid #d2d2d2}}:host([variant=earth]) .container{padding-top:calc(1rem * 3);padding-top:var(--pfe-tabs__panel--PaddingTop,calc(var(--pfe-theme--container-padding,1rem) * 3));padding-right:calc(1rem * 3);padding-right:var(--pfe-tabs__panel--PaddingRight,calc(var(--pfe-theme--container-padding,1rem) * 3));padding-bottom:calc(1rem * 3);padding-bottom:var(--pfe-tabs__panel--PaddingBottom,calc(var(--pfe-theme--container-padding,1rem) * 3));padding-left:calc(1rem * 3);padding-left:var(--pfe-tabs__panel--PaddingLeft,calc(var(--pfe-theme--container-padding,1rem) * 3))}:host([on=dark][variant=earth]){background-color:#151515;background-color:var(--pfe-tabs__panel--BackgroundColor,var(--pfe-theme--color--surface--darkest,#151515));--pfe-broadcasted--text:var(--pfe-theme--color--text--on-dark, #fff);--pfe-broadcasted--text--muted:var(--pfe-theme--color--text--muted--on-dark, #d2d2d2);--pfe-broadcasted--link:var(--pfe-theme--color--link--on-dark, #73bcf7);--pfe-broadcasted--link--hover:var(--pfe-theme--color--link--hover--on-dark, #bee1f4);--pfe-broadcasted--link--focus:var(--pfe-theme--color--link--focus--on-dark, #bee1f4);--pfe-broadcasted--link--visited:var(--pfe-theme--color--link--visited--on-dark, #bee1f4);--pfe-broadcasted--link-decoration:var(--pfe-theme--link-decoration--on-dark, none);--pfe-broadcasted--link-decoration--hover:var(--pfe-theme--link-decoration--hover--on-dark, underline);--pfe-broadcasted--link-decoration--focus:var(--pfe-theme--link-decoration--focus--on-dark, underline);--pfe-broadcasted--link-decoration--visited:var(--pfe-theme--link-decoration--visited--on-dark, none)}:host([on=saturated][variant=earth]){background-color:#fff;background-color:var(--pfe-tabs__panel--BackgroundColor,var(--pfe-theme--color--surface--lightest,#fff));--pfe-broadcasted--text:var(--pfe-theme--color--text, #151515);--pfe-broadcasted--text--muted:var(--pfe-theme--color--text--muted, #6a6e73);--pfe-broadcasted--link:var(--pfe-theme--color--link, #06c);--pfe-broadcasted--link--hover:var(--pfe-theme--color--link--hover, #004080);--pfe-broadcasted--link--focus:var(--pfe-theme--color--link--focus, #004080);--pfe-broadcasted--link--visited:var(--pfe-theme--color--link--visited, #6753ac);--pfe-broadcasted--link-decoration:var(--pfe-theme--link-decoration, none);--pfe-broadcasted--link-decoration--hover:var(--pfe-theme--link-decoration--hover, underline);--pfe-broadcasted--link-decoration--focus:var(--pfe-theme--link-decoration--focus, underline);--pfe-broadcasted--link-decoration--visited:var(--pfe-theme--link-decoration--visited, none)}:host([on=saturated]:not([variant=earth])){--pfe-broadcasted--text:var(--pfe-theme--color--text--on-saturated, #fff);--pfe-broadcasted--text--muted:var(--pfe-theme--color--text--muted--on-saturated, #d2d2d2);--pfe-broadcasted--link:var(--pfe-theme--color--link--on-saturated, #fff);--pfe-broadcasted--link--hover:var(--pfe-theme--color--link--hover--on-saturated, #fafafa);--pfe-broadcasted--link--focus:var(--pfe-theme--color--link--focus--on-saturated, #fafafa);--pfe-broadcasted--link--visited:var(--pfe-theme--color--link--visited--on-saturated, #d2d2d2);--pfe-broadcasted--link-decoration:var(--pfe-theme--link-decoration--on-saturated, underline);--pfe-broadcasted--link-decoration--hover:var(--pfe-theme--link-decoration--hover--on-saturated, underline);--pfe-broadcasted--link-decoration--focus:var(--pfe-theme--link-decoration--focus--on-saturated, underline);--pfe-broadcasted--link-decoration--visited:var(--pfe-theme--link-decoration--visited--on-saturated, underline)}:host([on=dark]:not([variant=earth])){--pfe-broadcasted--text:var(--pfe-theme--color--text--on-dark, #fff);--pfe-broadcasted--text--muted:var(--pfe-theme--color--text--muted--on-dark, #d2d2d2);--pfe-broadcasted--link:var(--pfe-theme--color--link--on-dark, #73bcf7);--pfe-broadcasted--link--hover:var(--pfe-theme--color--link--hover--on-dark, #bee1f4);--pfe-broadcasted--link--focus:var(--pfe-theme--color--link--focus--on-dark, #bee1f4);--pfe-broadcasted--link--visited:var(--pfe-theme--color--link--visited--on-dark, #bee1f4);--pfe-broadcasted--link-decoration:var(--pfe-theme--link-decoration--on-dark, none);--pfe-broadcasted--link-decoration--hover:var(--pfe-theme--link-decoration--hover--on-dark, underline);--pfe-broadcasted--link-decoration--focus:var(--pfe-theme--link-decoration--focus--on-dark, underline);--pfe-broadcasted--link-decoration--visited:var(--pfe-theme--link-decoration--visited--on-dark, none)} /*# sourceMappingURL=pfe-tab-panel.min.css.map */</style>\n<div tabindex="-1" role="tabpanel">\n <div class="container">\n <slot></slot>\n </div>\n</div>'}static get tag(){return"pfe-tab-panel"}get styleUrl(){return"pfe-tab-panel.scss"}get templateUrl(){return"pfe-tab-panel.html"}static get properties(){return{selected:{title:"Selected tab",type:Boolean,default:!1,attr:"aria-selected",observer:"_selectedHandler"},hidden:{title:"Visibility",type:Boolean,default:!1},role:{type:String,default:"tabpanel"},tabindex:{type:Number,default:0},labelledby:{type:String,attr:"aria-labelledby"},variant:{title:"Variant",type:String,enum:["wind","earth"]},oldPfeId:{type:String,attr:"pfe-id",observer:"_oldPfeIdChanged"}}}static get PfeType(){return o.PfeTypes.Container}constructor(){super(d,{type:d.PfeType}),this._init=this._init.bind(this),this._observer=new MutationObserver(this._init)}connectedCallback(){super.connectedCallback(),this.hasLightDOM()&&this._init(),this._observer.observe(this,s)}disconnectedCallback(){super.disconnectedCallback(),this._observer.disconnect()}_init(){window.ShadyCSS&&this._observer.disconnect(),this.id||(this.id=this.randomId),this.role="tabpanel",this.previousElementSibling&&"true"!==this.previousElementSibling.selected&&(this.hidden=!0),window.ShadyCSS&&this._observer.observe(this,s)}_oldPfeIdChanged(e,t){this.id||(this.id=t)}} | |
/*! | |
* PatternFly Elements: PfeTabs 1.12.3 | |
* @license | |
* Copyright 2021 Red Hat, Inc. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in | |
* all copies or substantial portions of the Software. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
* SOFTWARE. | |
* | |
*/const c=40,l=37,h=39,p=38,f=36,m=35,g=!!window.URLSearchParams,b={childList:!0,subtree:!0};class u extends o{static get version(){return"1.12.3"}get html(){return'\n<style>@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host{color:#151515!important}}:host{display:block;display:var(--pfe-tabs--Display,block);padding:0;padding:var(--pfe-tabs--Padding,0)}:host .tabs{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;flex-direction:var(--pfe-tabs__tabs--FlexDirection,row);width:auto;width:var(--pfe-tabs__tabs--Width,auto);border-top:0;border-top:var(--pfe-tabs__tabs--BorderTop,0);border-right:0;border-right:var(--pfe-tabs__tabs--BorderRight,0);border-bottom:1px solid #d2d2d2;border-bottom:var(--pfe-tabs__tabs--BorderBottom,var(--pfe-theme--ui--border-width,1px) var(--pfe-theme--ui--border-style,solid) var(--pfe-tabs__tabs--BorderColor,var(--pfe-theme--color--surface--border,#d2d2d2)));border-left:0;border-left:var(--pfe-tabs__tabs--BorderLeft,0);padding:0;padding:var(--pfe-tabs__tabs--Padding,0)}:host .panels{width:auto;width:var(--pfe-tabs__panels--Width,auto)}:host(:not([vertical])[tab-align=center]) .tabs{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}@media screen and (min-width:768px){:host([vertical]){--pfe-tabs--Display:flex;--pfe-tabs__tabs--FlexDirection:column;--pfe-tabs__tabs--Width:20%;--pfe-tabs__tabs--BorderRight:var(--pfe-theme--ui--border-width, 1px) var(--pfe-theme--ui--border-style, solid) var(--pfe-tabs--BorderColor);--pfe-tabs__tabs--BorderBottom:0;--pfe-tabs__panels--Width:80%;--pfe-tabs__panels--PaddingRight:var(--pfe-theme--container-padding, 1rem)}}@media screen and (min-width:768px) and (-ms-high-contrast:active),screen and (min-width:768px) and (-ms-high-contrast:none){:host([vertical]){display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}:host([vertical]) .tabs{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:22.22%;border-right:1px solid #d2d2d2;border-right:1px solid var(--pfe-theme--color--surface--border,#d2d2d2);border-bottom:0}:host([vertical]) .panels{width:77.8%;padding-right:1em}}@media screen and (min-width:768px) and (-ms-high-contrast:active),screen and (min-width:768px) and (-ms-high-contrast:none){:host([vertical][variant=earth]) .tabs{padding:1em 0 0 0}}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host(:not([variant=earth])){background-color:#fff;background-color:var(--pfe-theme--color--surface--lightest,#fff);color:#151515;color:var(--pfe-theme--color--text,#151515)}}:host([variant=earth]){--pfe-tabs__tabs--PaddingLeft:var(--pfe-theme--container-padding, 1rem)}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host([variant=earth]) .tabs{padding-left:1em}}:host([on=dark]){--pfe-broadcasted--text:var(--pfe-theme--color--text--on-dark, #fff);--pfe-broadcasted--text--muted:var(--pfe-theme--color--text--muted--on-dark, #d2d2d2);--pfe-broadcasted--link:var(--pfe-theme--color--link--on-dark, #73bcf7);--pfe-broadcasted--link--hover:var(--pfe-theme--color--link--hover--on-dark, #bee1f4);--pfe-broadcasted--link--focus:var(--pfe-theme--color--link--focus--on-dark, #bee1f4);--pfe-broadcasted--link--visited:var(--pfe-theme--color--link--visited--on-dark, #bee1f4);--pfe-broadcasted--link-decoration:var(--pfe-theme--link-decoration--on-dark, none);--pfe-broadcasted--link-decoration--hover:var(--pfe-theme--link-decoration--hover--on-dark, underline);--pfe-broadcasted--link-decoration--focus:var(--pfe-theme--link-decoration--focus--on-dark, underline);--pfe-broadcasted--link-decoration--visited:var(--pfe-theme--link-decoration--visited--on-dark, none)}:host([on=saturated]){--pfe-broadcasted--text:var(--pfe-theme--color--text--on-saturated, #fff);--pfe-broadcasted--text--muted:var(--pfe-theme--color--text--muted--on-saturated, #d2d2d2);--pfe-broadcasted--link:var(--pfe-theme--color--link--on-saturated, #fff);--pfe-broadcasted--link--hover:var(--pfe-theme--color--link--hover--on-saturated, #fafafa);--pfe-broadcasted--link--focus:var(--pfe-theme--color--link--focus--on-saturated, #fafafa);--pfe-broadcasted--link--visited:var(--pfe-theme--color--link--visited--on-saturated, #d2d2d2);--pfe-broadcasted--link-decoration:var(--pfe-theme--link-decoration--on-saturated, underline);--pfe-broadcasted--link-decoration--hover:var(--pfe-theme--link-decoration--hover--on-saturated, underline);--pfe-broadcasted--link-decoration--focus:var(--pfe-theme--link-decoration--focus--on-saturated, underline);--pfe-broadcasted--link-decoration--visited:var(--pfe-theme--link-decoration--visited--on-saturated, underline)}:host([on=light]){--pfe-broadcasted--text:var(--pfe-theme--color--text, #151515);--pfe-broadcasted--text--muted:var(--pfe-theme--color--text--muted, #6a6e73);--pfe-broadcasted--link:var(--pfe-theme--color--link, #06c);--pfe-broadcasted--link--hover:var(--pfe-theme--color--link--hover, #004080);--pfe-broadcasted--link--focus:var(--pfe-theme--color--link--focus, #004080);--pfe-broadcasted--link--visited:var(--pfe-theme--color--link--visited, #6753ac);--pfe-broadcasted--link-decoration:var(--pfe-theme--link-decoration, none);--pfe-broadcasted--link-decoration--hover:var(--pfe-theme--link-decoration--hover, underline);--pfe-broadcasted--link-decoration--focus:var(--pfe-theme--link-decoration--focus, underline);--pfe-broadcasted--link-decoration--visited:var(--pfe-theme--link-decoration--visited, none)}:host([vertical]) .tabs-prefix,:host([vertical]) .tabs-suffix{left:0;top:0;content:" ";height:calc(1rem * 2);height:calc(var(--pfe-theme--container-padding,1rem) * 2);width:1px;position:relative}@media screen and (min-width:768px){:host([vertical]:not([variant=earth])) .tabs-prefix,:host([vertical]:not([variant=earth])) .tabs-suffix{background-color:#d2d2d2;background-color:var(--pfe-tabs__tabs--BorderColor,var(--pfe-theme--color--surface--border,#d2d2d2))}}:host(:not([vertical])[variant=earth]) .tabs-prefix{left:0;top:0;content:" ";height:1px;width:1rem;width:var(--pfe-theme--container-padding,1rem);position:relative}@media screen and (min-width:768px){:host(:not([vertical])[variant=earth]) .tabs-prefix{width:calc(1rem * 2);width:calc(var(--pfe-theme--container-padding,1rem) * 2)}}:host([hidden]){display:none} /*# sourceMappingURL=pfe-tabs.min.css.map */</style>\n<div class="tabs">\n <div class="tabs-prefix"></div>\n <slot name="tab"></slot>\n <div class="tabs-suffix"></div>\n</div>\n<div class="panels">\n <slot name="panel"></slot>\n</div>'}static get tag(){return"pfe-tabs"}get styleUrl(){return"pfe-tabs.scss"}static get meta(){return{title:"Tabs",description:"This element creates a tabbed interface."}}get templateUrl(){return"pfe-tabs.html"}static get contentTemplate(){return'\n <pfe-tab content-type="header" slot="tab"></pfe-tab>\n <pfe-tab-panel content-type="panel" slot="panel"></pfe-tab-panel>\n '}static get properties(){return{vertical:{title:"Vertical orientation",type:Boolean,default:!1,cascade:"pfe-tab,pfe-tab-panel",observer:"_verticalHandler"},orientation:{title:"Orientation",type:String,attr:"aria-orientation",default:"horizontal",values:["horizontal","vertical"]},selectedIndex:{title:"Index of the selected tab",type:Number,observer:"_selectedIndexHandler"},tabAlign:{title:"Tab alignment",type:String,enum:["center"]},controls:{type:String,attr:"aria-controls"},variant:{title:"Variant",type:String,enum:["wind","earth"],default:"wind",cascade:"pfe-tab,pfe-tab-panel"},tabHistory:{title:"Tab History",type:Boolean,default:!1,observer:"_tabHistoryHandler"},role:{type:String,default:"tablist"},oldVariant:{type:String,attr:"pfe-variant",alias:"variant"},oldTabHistory:{type:Boolean,alias:"tabHistory",attr:"pfe-tab-history"},oldPfeId:{type:String,attr:"pfe-id",observer:"_oldPfeIdChanged"}}}static get slots(){return{tab:{title:"Tab",type:"array",namedSlot:!0,items:{$ref:"pfe-tab"}},panel:{title:"Panel",type:"array",namedSlot:!0,items:{$ref:"pfe-tab-panel"}}}}static get events(){return{hiddenTab:`${this.tag}:hidden-tab`,shownTab:`${this.tag}:shown-tab`}}static get PfeType(){return o.PfeTypes.Combo}constructor(){super(u,{type:u.PfeType}),this._linked=!1,this._init=this._init.bind(this),this._onClick=this._onClick.bind(this),this._linkPanels=this._linkPanels.bind(this),this._popstateEventHandler=this._popstateEventHandler.bind(this),this._observer=new MutationObserver(this._init),this._updateHistory=!0}connectedCallback(){Promise.all([customElements.whenDefined(n.tag),customElements.whenDefined(d.tag)]).then((()=>{super.connectedCallback(),this.hasLightDOM()&&this._init(),this._observer.observe(this,b),this.addEventListener("keydown",this._onKeyDown),this.addEventListener("click",this._onClick)}))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._onKeyDown),this._allTabs().forEach((e=>e.removeEventListener("click",this._onClick))),this._observer.disconnect(),this.tabHistory&&window.removeEventListener("popstate",this._popstateEventHandler)}_verticalHandler(){this.vertical?this.orientation="vertical":this.orientation="horizontal"}_selectedIndexHandler(e,t){Promise.all([customElements.whenDefined(n.tag),customElements.whenDefined(d.tag)]).then((()=>{this._linkPanels(),this.selectIndex(t),this._updateHistory=!0}))}_tabHistoryHandler(){this.tabHistory?window.addEventListener("popstate",this._popstateEventHandler):window.removeEventListener("popstate",this._popstateEventHandler)}_oldPfeIdChanged(e,t){!this.id&&t&&(this.id=t)}select(e){e&&(e.tagName.toLowerCase()===n.tag?this.selectedIndex=this._getTabIndex(e):this.warn(`the tab must be a ${n.tag} element`))}selectIndex(e){if(null==e)return;const t=parseInt(e,10),r=this._allTabs(),o=r[t];if(r.length>0&&!o)this.warn(`tab ${e} does not exist`);else if(r||o){if(this.selected&&this.tabHistory&&this._updateHistory&&g){const e=window.location.pathname,t=new URLSearchParams(window.location.search),r=window.location.hash;t.set(this.id,o.id),history.pushState({},"",`${e}?${t.toString()}${r}`)}return this._selectTab(o),o}}_init(){const e=this._getTabIndexFromURL();this._linked=!1,this._linkPanels(),window.ShadyCSS&&this._observer.disconnect(),this.role="tablist",e>-1&&(this._setFocus=!0,this.selectedIndex=e),null===this.selectedIndex&&(this.selectedIndex=0),window.ShadyCSS&&this._observer.observe(this,b)}_linkPanels(){this._linked||(window.ShadyCSS&&this._observer.disconnect(),this._allTabs().forEach((e=>{const t=e.nextElementSibling;t.tagName.toLowerCase()===d.tag?(e.controls=t.id,t.labelledby=e.id,e.addEventListener("click",this._onClick)):this.warn(`not a sibling of a <${d.tag}>`)})),this._linked=!0,window.ShadyCSS&&this._observer.observe(this,b))}_allPanels(){return[...this.children].filter((e=>e.matches(d.tag)))}_allTabs(){return[...this.children].filter((e=>e.matches(n.tag)))}_panelForTab(e){if(e&&e.controls)return this.querySelector(`#${e.controls}`)}_prevTab(){const e=this._allTabs();let t=e.findIndex((e=>"true"===e.selected))-1;return e[(t+e.length)%e.length]}_firstTab(){return this._allTabs()[0]}_lastTab(){const e=this._allTabs();return e[e.length-1]}_nextTab(){const e=this._allTabs();let t=e.findIndex((e=>"true"===e.selected))+1;return e[t%e.length]}_getTabIndex(e){if(e){return this._allTabs().findIndex((t=>t.id===e.id))}return this.warn("No tab was provided to _getTabIndex; required to return the index value."),0}reset(){const e=this._allTabs(),t=this._allPanels();e.forEach((e=>e.selected="false")),t.forEach((e=>e.hidden=!0))}_selectTab(e){if(!e)return;this.reset();const t=this._panelForTab(e);let r=!1;t||this.warn("No panel was found for the selected tab"+(e.id?`: pfe-tab#${e.id}`:"")),this.selected&&this.selected!==e&&(r=!0,this.emitEvent(u.events.hiddenTab,{detail:{tab:this.selected}})),e.selected="true",t.hidden=!1,this.selected=e,r&&(this._setFocus&&e.focus(),this.emitEvent(u.events.shownTab,{detail:{tab:this.selected}})),this._setFocus=!1}_onKeyDown(e){if(!this._allTabs().find((t=>t===e.target)))return;if(e.altKey)return;let t;switch(e.keyCode){case l:case p:t=this._prevTab();break;case h:case c:t=this._nextTab();break;case f:t=this._firstTab();break;case m:t=this._lastTab();break;default:return}e.preventDefault(),t?(this.selectedIndex=this._getTabIndex(t),this._setFocus=!0):this.warn("No new tab could be found.")}_onClick(e){this._allTabs().find((t=>t===e.currentTarget))&&(this.selectedIndex=this._getTabIndex(e.currentTarget))}_getTabIndexFromURL(){let e;if(g){e=new URLSearchParams(window.location.search);const t=e.has(`${this.id}`)||e.has(`pfe-${this.id}`);if(e&&t){let t=e.get(`${this.id}`)||e.get(`pfe-${this.id}`);return this._allTabs().findIndex((e=>e.id===t))}}return-1}_popstateEventHandler(){const e=this._getTabIndexFromURL();this._updateHistory=!1,e>-1&&(this.selectedIndex=e)}}o.create(n),o.create(d),o.create(u); | |
/*! | |
* PatternFly Elements: PfeCard 1.12.3 | |
* @license | |
* Copyright 2021 Red Hat, Inc. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in | |
* all copies or substantial portions of the Software. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
* SOFTWARE. | |
* | |
*/ | |
class v extends o{static get version(){return"1.12.3"}get html(){return'\n<style>@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host([color=accent]),:host([color=base]),:host([color=complement]),:host([color=darker]),:host([color=darkest]),:host([color=lighter]),:host([color=lightest]){background-color:#fff!important;color:#151515!important}}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host{color:#151515!important}}:host{--context:var(--pfe-card--context, var(--pfe-theme--color--surface--base--context, light));display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;justify-items:flex-start;-webkit-align-self:stretch;-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch;padding:calc(1rem * 2) calc(1rem * 2) calc(1rem * 2) calc(1rem * 2);padding:var(--pfe-card--Padding,var(--pfe-card--PaddingTop,calc(var(--pfe-theme--container-spacer,1rem) * 2)) var(--pfe-card--PaddingRight,calc(var(--pfe-theme--container-spacer,1rem) * 2)) var(--pfe-card--PaddingBottom,calc(var(--pfe-theme--container-spacer,1rem) * 2)) var(--pfe-card--PaddingLeft,calc(var(--pfe-theme--container-spacer,1rem) * 2)));border:0 solid #d2d2d2;border:var(--pfe-card--Border,var(--pfe-card--BorderWidth,0) var(--pfe-card--BorderStyle,solid) var(--pfe-card--BorderColor,var(--pfe-theme--color--surface--border,#d2d2d2)));border-radius:3px;border-radius:var(--pfe-card--BorderRadius,var(--pfe-theme--surface--border-radius,3px));overflow:hidden;background-color:#f0f0f0;background-color:var(--pfe-card--BackgroundColor,var(--pfe-theme--color--surface--base,#f0f0f0));background-position:center center;background-position:var(--pfe-card--BackgroundPosition,center center);color:#3c3f42;color:var(--pfe-broadcasted--text,#3c3f42)}@media print{:host{background-color:#fff!important;background-image:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}}@media print{:host{border-radius:3px;border:1px solid #d2d2d2}}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){:host{background-color:#fff!important;background-color:var(--pfe-theme--color--surface--lightest,#fff)!important;color:#151515!important;color:var(--pfe-theme--color--text,#151515)!important;background-image:none!important;border-radius:3px;border:1px solid #d2d2d2;padding:1rem;padding:var(--pfe-theme--container-spacer,1rem)}}:host([color=darker]){--pfe-card--BackgroundColor:var(--pfe-theme--color--surface--darker, #3c3f42);--pfe-card--context:var(--pfe-theme--color--surface--darker--context, dark)}:host([color=darkest]){--pfe-card--BackgroundColor:var(--pfe-theme--color--surface--darkest, #151515);--pfe-card--context:var(--pfe-theme--color--surface--darkest--context, dark)}:host([color=base]){--pfe-card--BackgroundColor:var(--pfe-theme--color--surface--base, #f0f0f0);--pfe-card--context:var(--pfe-theme--color--surface--base--context, light)}:host([color=lighter]){--pfe-card--BackgroundColor:var(--pfe-theme--color--surface--lighter, #f0f0f0);--pfe-card--context:var(--pfe-theme--color--surface--lighter--context, light)}:host([color=lightest]){--pfe-card--BackgroundColor:var(--pfe-theme--color--surface--lightest, #fff);--pfe-card--context:var(--pfe-theme--color--surface--lightest--context, light)}:host([color=accent]){--pfe-card--BackgroundColor:var(--pfe-theme--color--surface--accent, #004080);--pfe-card--context:var(--pfe-theme--color--surface--accent--context, saturated)}:host([color=complement]){--pfe-card--BackgroundColor:var(--pfe-theme--color--surface--complement, #002952);--pfe-card--context:var(--pfe-theme--color--surface--complement--context, saturated)}:host([on=dark]){--pfe-broadcasted--text:var(--pfe-theme--color--text--on-dark, #fff);--pfe-broadcasted--text--muted:var(--pfe-theme--color--text--muted--on-dark, #d2d2d2);--pfe-broadcasted--link:var(--pfe-theme--color--link--on-dark, #73bcf7);--pfe-broadcasted--link--hover:var(--pfe-theme--color--link--hover--on-dark, #bee1f4);--pfe-broadcasted--link--focus:var(--pfe-theme--color--link--focus--on-dark, #bee1f4);--pfe-broadcasted--link--visited:var(--pfe-theme--color--link--visited--on-dark, #bee1f4);--pfe-broadcasted--link-decoration:var(--pfe-theme--link-decoration--on-dark, none);--pfe-broadcasted--link-decoration--hover:var(--pfe-theme--link-decoration--hover--on-dark, underline);--pfe-broadcasted--link-decoration--focus:var(--pfe-theme--link-decoration--focus--on-dark, underline);--pfe-broadcasted--link-decoration--visited:var(--pfe-theme--link-decoration--visited--on-dark, none)}:host([on=saturated]){--pfe-broadcasted--text:var(--pfe-theme--color--text--on-saturated, #fff);--pfe-broadcasted--text--muted:var(--pfe-theme--color--text--muted--on-saturated, #d2d2d2);--pfe-broadcasted--link:var(--pfe-theme--color--link--on-saturated, #fff);--pfe-broadcasted--link--hover:var(--pfe-theme--color--link--hover--on-saturated, #fafafa);--pfe-broadcasted--link--focus:var(--pfe-theme--color--link--focus--on-saturated, #fafafa);--pfe-broadcasted--link--visited:var(--pfe-theme--color--link--visited--on-saturated, #d2d2d2);--pfe-broadcasted--link-decoration:var(--pfe-theme--link-decoration--on-saturated, underline);--pfe-broadcasted--link-decoration--hover:var(--pfe-theme--link-decoration--hover--on-saturated, underline);--pfe-broadcasted--link-decoration--focus:var(--pfe-theme--link-decoration--focus--on-saturated, underline);--pfe-broadcasted--link-decoration--visited:var(--pfe-theme--link-decoration--visited--on-saturated, underline)}:host([on=light]){--pfe-broadcasted--text:var(--pfe-theme--color--text, #151515);--pfe-broadcasted--text--muted:var(--pfe-theme--color--text--muted, #6a6e73);--pfe-broadcasted--link:var(--pfe-theme--color--link, #06c);--pfe-broadcasted--link--hover:var(--pfe-theme--color--link--hover, #004080);--pfe-broadcasted--link--focus:var(--pfe-theme--color--link--focus, #004080);--pfe-broadcasted--link--visited:var(--pfe-theme--color--link--visited, #6753ac);--pfe-broadcasted--link-decoration:var(--pfe-theme--link-decoration, none);--pfe-broadcasted--link-decoration--hover:var(--pfe-theme--link-decoration--hover, underline);--pfe-broadcasted--link-decoration--focus:var(--pfe-theme--link-decoration--focus, underline);--pfe-broadcasted--link-decoration--visited:var(--pfe-theme--link-decoration--visited, none)}:host([size=small]){--pfe-card--PaddingTop:var(--pfe-theme--container-spacer, 1rem);--pfe-card--PaddingRight:var(--pfe-theme--container-spacer, 1rem);--pfe-card--PaddingBottom:var(--pfe-theme--container-spacer, 1rem);--pfe-card--PaddingLeft:var(--pfe-theme--container-spacer, 1rem)}:host([border]:not([border=false])){--pfe-card--BorderWidth:1px}.pfe-card__body ::slotted([overflow~=top]),.pfe-card__body ::slotted([pfe-overflow~=top]),.pfe-card__footer ::slotted([overflow~=top]),.pfe-card__footer ::slotted([pfe-overflow~=top]),.pfe-card__header ::slotted([overflow~=top]),.pfe-card__header ::slotted([pfe-overflow~=top]){z-index:1;margin-top:-2rem;margin-top:calc(-1 * calc(1rem * 2))!important;margin-top:calc(-1 * var(--pfe-card--PaddingTop,calc(var(--pfe-theme--container-spacer,1rem) * 2)))!important}:host([has_header]) .pfe-card__body ::slotted([overflow~=top]),:host([has_header]) .pfe-card__body ::slotted([pfe-overflow~=top]),:host([has_header]) .pfe-card__footer ::slotted([overflow~=top]),:host([has_header]) .pfe-card__footer ::slotted([pfe-overflow~=top]),:host([has_header]) .pfe-card__header ::slotted([overflow~=top]),:host([has_header]) .pfe-card__header ::slotted([pfe-overflow~=top]){padding-top:1rem;padding-top:var(--pfe-card--spacing,var(--pfe-theme--container-spacer,1rem))}.pfe-card__body ::slotted([overflow~=right]),.pfe-card__body ::slotted([pfe-overflow~=right]),.pfe-card__footer ::slotted([overflow~=right]),.pfe-card__footer ::slotted([pfe-overflow~=right]),.pfe-card__header ::slotted([overflow~=right]),.pfe-card__header ::slotted([pfe-overflow~=right]){margin-right:-2rem;margin-right:calc(-1 * calc(1rem * 2));margin-right:calc(-1 * var(--pfe-card--PaddingRight,calc(var(--pfe-theme--container-spacer,1rem) * 2)))}.pfe-card__body ::slotted([overflow~=bottom]),.pfe-card__body ::slotted([pfe-overflow~=bottom]),.pfe-card__footer ::slotted([overflow~=bottom]),.pfe-card__footer ::slotted([pfe-overflow~=bottom]),.pfe-card__header ::slotted([overflow~=bottom]),.pfe-card__header ::slotted([pfe-overflow~=bottom]){margin-bottom:-2rem;margin-bottom:calc(-1 * calc(calc(1rem * 2) + 3px));margin-bottom:calc(-1 * calc(var(--pfe-card--PaddingBottom,calc(var(--pfe-theme--container-spacer,1rem) * 2)) + var(--pfe-card--BorderRadius,var(--pfe-theme--surface--border-radius,3px))));-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end}.pfe-card__body ::slotted([overflow~=left]),.pfe-card__body ::slotted([pfe-overflow~=left]),.pfe-card__footer ::slotted([overflow~=left]),.pfe-card__footer ::slotted([pfe-overflow~=left]),.pfe-card__header ::slotted([overflow~=left]),.pfe-card__header ::slotted([pfe-overflow~=left]){margin-left:-2rem;margin-left:calc(-1 * calc(1rem * 2));margin-left:calc(-1 * var(--pfe-card--PaddingLeft,calc(var(--pfe-theme--container-spacer,1rem) * 2)))}.pfe-card__body ::slotted(img),.pfe-card__footer ::slotted(img),.pfe-card__header ::slotted(img){max-width:100%!important;-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;-o-object-fit:cover;object-fit:cover}.pfe-card__body ::slotted(img:not[overflow]),.pfe-card__body ::slotted(img:not[pfe-overflow]),.pfe-card__footer ::slotted(img:not[overflow]),.pfe-card__footer ::slotted(img:not[pfe-overflow]),.pfe-card__header ::slotted(img:not[overflow]),.pfe-card__header ::slotted(img:not[pfe-overflow]){-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start}.pfe-card__body ::slotted(img[overflow]),.pfe-card__body ::slotted(img[pfe-overflow]),.pfe-card__footer ::slotted(img[overflow]),.pfe-card__footer ::slotted(img[pfe-overflow]),.pfe-card__header ::slotted(img[overflow]),.pfe-card__header ::slotted(img[pfe-overflow]){max-width:unset!important}.pfe-card__body ::slotted(img[overflow~=right]),.pfe-card__body ::slotted(img[pfe-overflow~=right]),.pfe-card__footer ::slotted(img[overflow~=right]),.pfe-card__footer ::slotted(img[pfe-overflow~=right]),.pfe-card__header ::slotted(img[overflow~=right]),.pfe-card__header ::slotted(img[pfe-overflow~=right]){width:calc(100% + 2rem)!important;width:calc(100% + calc(1rem * 2))!important;width:calc(100% + var(--pfe-card--PaddingRight,calc(var(--pfe-theme--container-spacer,1rem) * 2)))!important}.pfe-card__body ::slotted(img[overflow~=left]),.pfe-card__body ::slotted(img[pfe-overflow~=left]),.pfe-card__footer ::slotted(img[overflow~=left]),.pfe-card__footer ::slotted(img[pfe-overflow~=left]),.pfe-card__header ::slotted(img[overflow~=left]),.pfe-card__header ::slotted(img[pfe-overflow~=left]){width:calc(100% + 2rem)!important;width:calc(100% + calc(1rem * 2))!important;width:calc(100% + var(--pfe-card--PaddingLeft,calc(var(--pfe-theme--container-spacer,1rem) * 2)))!important}.pfe-card__body ::slotted(img[overflow~=right][overflow~=left]),.pfe-card__body ::slotted(img[pfe-overflow~=right][pfe-overflow~=left]),.pfe-card__footer ::slotted(img[overflow~=right][overflow~=left]),.pfe-card__footer ::slotted(img[pfe-overflow~=right][pfe-overflow~=left]),.pfe-card__header ::slotted(img[overflow~=right][overflow~=left]),.pfe-card__header ::slotted(img[pfe-overflow~=right][pfe-overflow~=left]){width:calc(100% + 4rem)!important;width:calc(100% + calc(1rem * 2) + calc(1rem * 2))!important;width:calc(100% + var(--pfe-card--PaddingRight,calc(var(--pfe-theme--container-spacer,1rem) * 2)) + var(--pfe-card--PaddingLeft,calc(var(--pfe-theme--container-spacer,1rem) * 2)))!important}.pfe-card__header{z-index:2;background-color:rgba(0,0,0,.09);background-color:var(--pfe-card__header--BackgroundColor,rgba(0,0,0,var(--pfe-theme--opacity,.09)));color:#3c3f42;color:var(--pfe-card__header--Color,var(--pfe-broadcasted--text,#3c3f42));margin-top:calc(calc(1rem * 2) * -1)!important;margin-top:calc(var(--pfe-card--PaddingTop,calc(var(--pfe-theme--container-spacer,1rem) * 2)) * -1)!important;margin-right:calc(calc(1rem * 2) * -1);margin-right:calc(var(--pfe-card--PaddingRight,calc(var(--pfe-theme--container-spacer,1rem) * 2)) * -1);margin-bottom:1rem;margin-bottom:var(--pfe-card--spacing--vertical,var(--pfe-card--spacing,var(--pfe-theme--container-spacer,1rem)));margin-left:calc(calc(1rem * 2) * -1);margin-left:calc(var(--pfe-card--PaddingLeft,calc(var(--pfe-theme--container-spacer,1rem) * 2)) * -1);padding-top:1rem;padding-top:var(--pfe-card--spacing--vertical,var(--pfe-card--spacing,var(--pfe-theme--container-spacer,1rem)));padding-right:calc(1rem * 2);padding-right:var(--pfe-card--PaddingRight,calc(var(--pfe-theme--container-spacer,1rem) * 2));padding-left:calc(1rem * 2);padding-left:var(--pfe-card--PaddingLeft,calc(var(--pfe-theme--container-spacer,1rem) * 2));padding-bottom:1rem;padding-bottom:var(--pfe-card--spacing--vertical,var(--pfe-card--spacing,var(--pfe-theme--container-spacer,1rem)))}:host([on=dark]) .pfe-card__header{background-color:rgba(255,255,255,.09);background-color:var(--pfe-card__header--BackgroundColor--dark,rgba(255,255,255,var(--pfe-theme--opacity,.09)))}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){.pfe-card__header{background-color:#fff!important;color:#151515!important}}:host(:not([has_body]):not([has_footer])) .pfe-card__header{margin-bottom:calc(1rem * 2);margin-bottom:var(--pfe-card--PaddingBottom,calc(var(--pfe-theme--container-spacer,1rem) * 2))}.pfe-card__header ::slotted([overflow~=top]),.pfe-card__header ::slotted([pfe-overflow~=top]){--pfe-card__overflow--MarginTop:calc(var(--pfe-card--PaddingTop, calc(var(--pfe-theme--container-spacer, 1rem) * 2)) * -1)}:host(:not([has_header])) .pfe-card__header{display:none}:host([has_body],[has_footer]) .pfe-card__header ::slotted([overflow~=bottom]),:host([has_body],[has_footer]) .pfe-card__header ::slotted([pfe-overflow~=bottom]){--pfe-card__overflow--MarginBottom:calc(var(--pfe-card--spacing--vertical, var(--pfe-card--spacing, var(--pfe-theme--container-spacer, 1rem))) * -1)}.pfe-card__header ::slotted([overflow~=bottom]),.pfe-card__header ::slotted([pfe-overflow~=bottom]){--pfe-card__overflow--MarginBottom:calc(var(--pfe-card--PaddingBottom, calc(var(--pfe-theme--container-spacer, 1rem) * 2)) * -1)}.pfe-card__header ::slotted(h1){margin-bottom:0}.pfe-card__header ::slotted(h2){margin-bottom:0}.pfe-card__header ::slotted(h3){margin-bottom:0}.pfe-card__header ::slotted(h4){margin-bottom:0}.pfe-card__header ::slotted(h5){margin-bottom:0}.pfe-card__header ::slotted(h6){margin-bottom:0}:host(:not([has_header])) .pfe-card__body ::slotted([overflow~=top]),:host(:not([has_header])) .pfe-card__body ::slotted([pfe-overflow~=top]){--pfe-card__overflow--MarginTop:calc(var(--pfe-card--PaddingTop, calc(var(--pfe-theme--container-spacer, 1rem) * 2)) * -1)}.pfe-card__body ::slotted([overflow~=top]),.pfe-card__body ::slotted([pfe-overflow~=top]){z-index:1;--pfe-card__overflow--MarginTop:calc(var(--pfe-card--spacing--vertical, var(--pfe-card--spacing, var(--pfe-theme--container-spacer, 1rem))) * -1)}.pfe-card__body ::slotted([overflow~=bottom]),.pfe-card__body ::slotted([pfe-overflow~=bottom]){--pfe-card__overflow--MarginBottom:calc(var(--pfe-card--PaddingBottom, calc(var(--pfe-theme--container-spacer, 1rem) * 2)) * -1)}:host([has_footer]) .pfe-card__body ::slotted([overflow~=bottom]),:host([has_footer]) .pfe-card__body ::slotted([pfe-overflow~=bottom]){--pfe-card__overflow--MarginBottom:calc(var(--pfe-card--spacing--vertical, var(--pfe-card--spacing, var(--pfe-theme--container-spacer, 1rem))) * -1)}:host(:not([has_footer])) .pfe-card__body{margin-bottom:0}.pfe-card__footer{margin-top:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;flex-direction:var(--pfe-card__footer--Row,row);-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-flex-wrap:var(--pfe-card__footer--Wrap,wrap);-ms-flex-wrap:var(--pfe-card__footer--Wrap,wrap);flex-wrap:var(--pfe-card__footer--Wrap,wrap);-webkit-box-align:baseline;-webkit-align-items:baseline;-ms-flex-align:baseline;align-items:baseline;-webkit-box-align:var(--pfe-card__footer--AlignItems,baseline);-webkit-align-items:var(--pfe-card__footer--AlignItems,baseline);-ms-flex-align:var(--pfe-card__footer--AlignItems,baseline);align-items:var(--pfe-card__footer--AlignItems,baseline)}.pfe-card__footer ::slotted([overflow~=bottom]),.pfe-card__footer ::slotted([pfe-overflow~=bottom]){--pfe-card__overflow--MarginBottom:calc(var(--pfe-card--PaddingBottom, calc(var(--pfe-theme--container-spacer, 1rem) * 2)) * -1)}:host(:not([has_footer])) .pfe-card__footer{display:none}.pfe-card__body,.pfe-card__header{margin-bottom:1rem;margin-bottom:var(--pfe-card--spacing--vertical,var(--pfe-card--spacing,var(--pfe-theme--container-spacer,1rem)))}.pfe-card__body ::slotted(p:first-child),.pfe-card__header ::slotted(p:first-child){margin-top:0}.pfe-card__body ::slotted(h1:first-child),.pfe-card__header ::slotted(h1:first-child){margin-top:0}.pfe-card__body ::slotted(h2:first-child),.pfe-card__header ::slotted(h2:first-child){margin-top:0}.pfe-card__body ::slotted(h3:first-child),.pfe-card__header ::slotted(h3:first-child){margin-top:0}.pfe-card__body ::slotted(h4:first-child),.pfe-card__header ::slotted(h4:first-child){margin-top:0}.pfe-card__body ::slotted(h5:first-child),.pfe-card__header ::slotted(h5:first-child){margin-top:0}.pfe-card__body ::slotted(h6:first-child),.pfe-card__header ::slotted(h6:first-child){margin-top:0} /*# sourceMappingURL=pfe-card.min.css.map */</style>\n\x3c!-- pfe-card --\x3e\n<div class="pfe-card__header">\n <slot name="pfe-card--header"></slot>\n</div>\n<div class="pfe-card__body">\n <slot></slot>\n</div>\n<div class="pfe-card__footer">\n <slot name="pfe-card--footer"></slot>\n</div>'}static get tag(){return"pfe-card"}static get meta(){return{title:"Card",description:"This element creates a header, body, and footer region in which to place content or other components."}}get templateUrl(){return"pfe-card.html"}get styleUrl(){return"pfe-card.scss"}static get properties(){return{color:{title:"Background color",type:String,values:["lightest","base","darker","darkest","complement","accent"],default:"base",observer:"_colorChanged"},oldColor:{type:String,prefix:!1,alias:"color",attr:"pfe-color"},imgSrc:{title:"Background image",type:String,observer:"_imageSrcChanged"},pfeImgSrc:{type:String,prefix:!1,alias:"imgSrc"},size:{title:"Padding size",type:String,values:["small"]},pfeSize:{type:String,values:["small"],prefix:!1,alias:"size"},border:{title:"Border",type:Boolean},oldBorder:{alias:"border",attr:"pfe-border"}}}static get slots(){return{header:{title:"Header",type:"array",namedSlot:!0,maxItems:3,items:{$ref:"raw"}},body:{title:"Body",type:"array",namedSlot:!1,items:{$ref:"raw"}},footer:{title:"Footer",type:"array",namedSlot:!0,maxItems:3,items:{oneOf:[{$ref:"pfe-cta"},{$ref:"raw"}]}}}}static get PfeType(){return o.PfeTypes.Container}constructor(){super(v,{type:v.PfeType})}_colorChanged(){this.resetContext()}_imageSrcChanged(e,t){this.style.backgroundImage=t?`url('${t}')`:""}}function _(e,t,r,o){var a,i=arguments.length,n=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(i<3?a(n):i>3?a(t,r,n):a(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n}function x(e,t,r,o){if("a"===r&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?o:"a"===r?o.call(e):o?o.value:t.get(e)}function k(e,t,r,o,a){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?a.call(e,r):a?a.value=r:t.set(e,r),r | |
/** | |
* @license | |
* Copyright 2019 Google LLC | |
* SPDX-License-Identifier: BSD-3-Clause | |
*/}o.create(v);const y=window,w=y.ShadowRoot&&(void 0===y.ShadyCSS||y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,C=Symbol(),S=new WeakMap;class ${constructor(e,t,r){if(this._$cssResult$=!0,r!==C)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(w&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=S.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&S.set(t,e))}return e}toString(){return this.cssText}}const P=e=>new $("string"==typeof e?e:e+"",void 0,C),A=(e,...t)=>{const r=1===e.length?e[0]:t.reduce(((t,r,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[o+1]),e[0]);return new $(r,e,C)},E=w?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return P(t)})(e):e | |
/** | |
* @license | |
* Copyright 2017 Google LLC | |
* SPDX-License-Identifier: BSD-3-Clause | |
*/;var B;const z=window,T=z.trustedTypes,H=T?T.emptyScript:"",L=z.reactiveElementPolyfillSupport,O={toAttribute(e,t){switch(t){case Boolean:e=e?H:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},I=(e,t)=>t!==e&&(t==t||e==e),M={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:I};class N extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;null!==(t=this.h)&&void 0!==t||(this.h=[]),this.h.push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,r)=>{const o=this._$Ep(r,t);void 0!==o&&(this._$Ev.set(o,r),e.push(o))})),e}static createProperty(e,t=M){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const r="symbol"==typeof e?Symbol():"__"+e,o=this.getPropertyDescriptor(e,r,t);void 0!==o&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(o){const a=this[e];this[t]=o,this.requestUpdate(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||M}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const r of t)this.createProperty(r,e[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(E(e))}else void 0!==e&&t.push(E(e));return t}static _$Ep(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(e=this.constructor.h)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,r;(null!==(t=this._$ES)&&void 0!==t?t:this._$ES=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(r=e.hostConnected)||void 0===r||r.call(e))}removeController(e){var t;null===(t=this._$ES)||void 0===t||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{w?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const r=document.createElement("style"),o=y.litNonce;void 0!==o&&r.setAttribute("nonce",o),r.textContent=t.cssText,e.appendChild(r)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=M){var o;const a=this.constructor._$Ep(e,r);if(void 0!==a&&!0===r.reflect){const i=(void 0!==(null===(o=r.converter)||void 0===o?void 0:o.toAttribute)?r.converter:O).toAttribute(t,r.type);this._$El=e,null==i?this.removeAttribute(a):this.setAttribute(a,i),this._$El=null}}_$AK(e,t){var r;const o=this.constructor,a=o._$Ev.get(e);if(void 0!==a&&this._$El!==a){const e=o.getPropertyOptions(a),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(r=e.converter)||void 0===r?void 0:r.fromAttribute)?e.converter:O;this._$El=a,this[a]=i.fromAttribute(t,e.type),this._$El=null}}requestUpdate(e,t,r){let o=!0;void 0!==e&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||I)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$El!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,r))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((e,t)=>this[t]=e)),this._$Ei=void 0);let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),null===(e=this._$ES)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(r)):this._$Ek()}catch(e){throw t=!1,this._$Ek(),e}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;null===(t=this._$ES)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$EO(t,this[t],e))),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}} | |
/** | |
* @license | |
* Copyright 2017 Google LLC | |
* SPDX-License-Identifier: BSD-3-Clause | |
*/ | |
var R;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==L||L({ReactiveElement:N}),(null!==(B=z.reactiveElementVersions)&&void 0!==B?B:z.reactiveElementVersions=[]).push("1.4.1");const U=window,D=U.trustedTypes,j=D?D.createPolicy("lit-html",{createHTML:e=>e}):void 0,F=`lit$${(Math.random()+"").slice(9)}$`,W="?"+F,V=`<${W}>`,q=document,K=(e="")=>q.createComment(e),Z=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Q=Array.isArray,J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X=/-->/g,Y=/>/g,G=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),ee=/'/g,te=/"/g,re=/^(?:script|style|textarea|title)$/i,oe=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),ae=oe(1),ie=oe(2),ne=Symbol.for("lit-noChange"),se=Symbol.for("lit-nothing"),de=new WeakMap,ce=q.createTreeWalker(q,129,null,!1);class le{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let a=0,i=0;const n=e.length-1,s=this.parts,[d,c]=((e,t)=>{const r=e.length-1,o=[];let a,i=2===t?"<svg>":"",n=J;for(let t=0;t<r;t++){const r=e[t];let s,d,c=-1,l=0;for(;l<r.length&&(n.lastIndex=l,d=n.exec(r),null!==d);)l=n.lastIndex,n===J?"!--"===d[1]?n=X:void 0!==d[1]?n=Y:void 0!==d[2]?(re.test(d[2])&&(a=RegExp("</"+d[2],"g")),n=G):void 0!==d[3]&&(n=G):n===G?">"===d[0]?(n=null!=a?a:J,c=-1):void 0===d[1]?c=-2:(c=n.lastIndex-d[2].length,s=d[1],n=void 0===d[3]?G:'"'===d[3]?te:ee):n===te||n===ee?n=G:n===X||n===Y?n=J:(n=G,a=void 0);const h=n===G&&e[t+1].startsWith("/>")?" ":"";i+=n===J?r+V:c>=0?(o.push(s),r.slice(0,c)+"$lit$"+r.slice(c)+F+h):r+F+(-2===c?(o.push(void 0),t):h)}const s=i+(e[r]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==j?j.createHTML(s):s,o]})(e,t);if(this.el=le.createElement(d,r),ce.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(o=ce.nextNode())&&s.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const e=[];for(const t of o.getAttributeNames())if(t.endsWith("$lit$")||t.startsWith(F)){const r=c[i++];if(e.push(t),void 0!==r){const e=o.getAttribute(r.toLowerCase()+"$lit$").split(F),t=/([.?@])?(.*)/.exec(r);s.push({type:1,index:a,name:t[2],strings:e,ctor:"."===t[1]?ge:"?"===t[1]?ue:"@"===t[1]?ve:me})}else s.push({type:6,index:a})}for(const t of e)o.removeAttribute(t)}if(re.test(o.tagName)){const e=o.textContent.split(F),t=e.length-1;if(t>0){o.textContent=D?D.emptyScript:"";for(let r=0;r<t;r++)o.append(e[r],K()),ce.nextNode(),s.push({type:2,index:++a});o.append(e[t],K())}}}else if(8===o.nodeType)if(o.data===W)s.push({type:2,index:a});else{let e=-1;for(;-1!==(e=o.data.indexOf(F,e+1));)s.push({type:7,index:a}),e+=F.length-1}a++}}static createElement(e,t){const r=q.createElement("template");return r.innerHTML=e,r}}function he(e,t,r=e,o){var a,i,n,s;if(t===ne)return t;let d=void 0!==o?null===(a=r._$Co)||void 0===a?void 0:a[o]:r._$Cl;const c=Z(t)?void 0:t._$litDirective$;return(null==d?void 0:d.constructor)!==c&&(null===(i=null==d?void 0:d._$AO)||void 0===i||i.call(d,!1),void 0===c?d=void 0:(d=new c(e),d._$AT(e,r,o)),void 0!==o?(null!==(n=(s=r)._$Co)&&void 0!==n?n:s._$Co=[])[o]=d:r._$Cl=d),void 0!==d&&(t=he(e,d._$AS(e,t.values),d,o)),t}class pe{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;const{el:{content:r},parts:o}=this._$AD,a=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:q).importNode(r,!0);ce.currentNode=a;let i=ce.nextNode(),n=0,s=0,d=o[0];for(;void 0!==d;){if(n===d.index){let t;2===d.type?t=new fe(i,i.nextSibling,this,e):1===d.type?t=new d.ctor(i,d.name,d.strings,this,e):6===d.type&&(t=new _e(i,this,e)),this.u.push(t),d=o[++s]}n!==(null==d?void 0:d.index)&&(i=ce.nextNode(),n++)}return a}p(e){let t=0;for(const r of this.u)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class fe{constructor(e,t,r,o){var a;this.type=2,this._$AH=se,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cm=null===(a=null==o?void 0:o.isConnected)||void 0===a||a}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=he(this,e,t),Z(e)?e===se||null==e||""===e?(this._$AH!==se&&this._$AR(),this._$AH=se):e!==this._$AH&&e!==ne&&this.g(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>Q(e)||"function"==typeof(null==e?void 0:e[Symbol.iterator]))(e)?this.k(e):this.g(e)}O(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==se&&Z(this._$AH)?this._$AA.nextSibling.data=e:this.T(q.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:o}=e,a="number"==typeof o?this._$AC(e):(void 0===o.el&&(o.el=le.createElement(o.h,this.options)),o);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===a)this._$AH.p(r);else{const e=new pe(a,this),t=e.v(this.options);e.p(r),this.T(t),this._$AH=e}}_$AC(e){let t=de.get(e.strings);return void 0===t&&de.set(e.strings,t=new le(e)),t}k(e){Q(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const a of e)o===t.length?t.push(r=new fe(this.O(K()),this.O(K()),this,this.options)):r=t[o],r._$AI(a),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var r;for(null===(r=this._$AP)||void 0===r||r.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cm=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class me{constructor(e,t,r,o,a){this.type=1,this._$AH=se,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=a,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=se}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,o){const a=this.strings;let i=!1;if(void 0===a)e=he(this,e,t,0),i=!Z(e)||e!==this._$AH&&e!==ne,i&&(this._$AH=e);else{const o=e;let n,s;for(e=a[0],n=0;n<a.length-1;n++)s=he(this,o[r+n],t,n),s===ne&&(s=this._$AH[n]),i||(i=!Z(s)||s!==this._$AH[n]),s===se?e=se:e!==se&&(e+=(null!=s?s:"")+a[n+1]),this._$AH[n]=s}i&&!o&&this.j(e)}j(e){e===se?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class ge extends me{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===se?void 0:e}}const be=D?D.emptyScript:"";class ue extends me{constructor(){super(...arguments),this.type=4}j(e){e&&e!==se?this.element.setAttribute(this.name,be):this.element.removeAttribute(this.name)}}class ve extends me{constructor(e,t,r,o,a){super(e,t,r,o,a),this.type=5}_$AI(e,t=this){var r;if((e=null!==(r=he(this,e,t,0))&&void 0!==r?r:se)===ne)return;const o=this._$AH,a=e===se&&o!==se||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,i=e!==se&&(o===se||a);a&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==r?r:this.element,e):this._$AH.handleEvent(e)}}class _e{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){he(this,e)}}const xe=U.litHtmlPolyfillSupport;null==xe||xe(le,fe),(null!==(R=U.litHtmlVersions)&&void 0!==R?R:U.litHtmlVersions=[]).push("2.4.0"); | |
/** | |
* @license | |
* Copyright 2017 Google LLC | |
* SPDX-License-Identifier: BSD-3-Clause | |
*/ | |
var ke,ye;class we extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const r=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=r.firstChild),r}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,r)=>{var o,a;const i=null!==(o=null==r?void 0:r.renderBefore)&&void 0!==o?o:t;let n=i._$litPart$;if(void 0===n){const e=null!==(a=null==r?void 0:r.renderBefore)&&void 0!==a?a:null;i._$litPart$=n=new fe(t.insertBefore(K(),e),e,void 0,null!=r?r:{})}return n._$AI(e),n})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return ne}}we.finalized=!0,we._$litElement$=!0,null===(ke=globalThis.litElementHydrateSupport)||void 0===ke||ke.call(globalThis,{LitElement:we});const Ce=globalThis.litElementPolyfillSupport;null==Ce||Ce({LitElement:we}),(null!==(ye=globalThis.litElementVersions)&&void 0!==ye?ye:globalThis.litElementVersions=[]).push("3.2.2"); | |
/** | |
* @license | |
* Copyright 2020 Google LLC | |
* SPDX-License-Identifier: BSD-3-Clause | |
*/ | |
const Se=Symbol.for(""),$e=e=>{if((null==e?void 0:e.r)===Se)return null==e?void 0:e._$litStatic$},Pe=e=>({_$litStatic$:e,r:Se}),Ae=new Map,Ee=(e=>(t,...r)=>{const o=r.length;let a,i;const n=[],s=[];let d,c=0,l=!1;for(;c<o;){for(d=t[c];c<o&&void 0!==(i=r[c],a=$e(i));)d+=a+t[++c],l=!0;s.push(i),n.push(d),c++}if(c===o&&n.push(t[o]),l){const e=n.join("$$lit$$");void 0===(t=Ae.get(e))&&(n.raw=n,Ae.set(e,t=n)),r=s}return e(t,...r)})(ae),Be=e=>t=>"function"==typeof t?((e,t)=>(customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:r,elements:o}=t;return{kind:r,elements:o,finisher(t){customElements.define(e,t)}}})(e,t) | |
/** | |
* @license | |
* Copyright 2017 Google LLC | |
* SPDX-License-Identifier: BSD-3-Clause | |
*/,ze=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(r){r.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(r){r.createProperty(t.key,e)}}; | |
/** | |
* @license | |
* Copyright 2017 Google LLC | |
* SPDX-License-Identifier: BSD-3-Clause | |
*/function Te(e){return(t,r)=>void 0!==r?((e,t,r)=>{t.constructor.createProperty(r,e)})(e,t,r):ze(e,t) | |
/** | |
* @license | |
* Copyright 2017 Google LLC | |
* SPDX-License-Identifier: BSD-3-Clause | |
*/}function He(e){return Te({...e,state:!0})} | |
/** | |
* @license | |
* Copyright 2017 Google LLC | |
* SPDX-License-Identifier: BSD-3-Clause | |
*/ | |
/** | |
* @license | |
* Copyright 2017 Google LLC | |
* SPDX-License-Identifier: BSD-3-Clause | |
*/ | |
function Le(e,t){return(({finisher:e,descriptor:t})=>(r,o)=>{var a;if(void 0===o){const o=null!==(a=r.originalKey)&&void 0!==a?a:r.key,i=null!=t?{kind:"method",placement:"prototype",key:o,descriptor:t(r.key)}:{...r,key:o};return null!=e&&(i.finisher=function(t){e(t,o)}),i}{const a=r.constructor;void 0!==t&&Object.defineProperty(r,o,t(o)),null==e||e(a,o)}})({descriptor:r=>{const o={get(){var t,r;return null!==(r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==r?r:null},enumerable:!0,configurable:!0};if(t){const t="symbol"==typeof r?Symbol():"__"+r;o.get=function(){var r,o;return void 0===this[t]&&(this[t]=null!==(o=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(e))&&void 0!==o?o:null),this[t]}}return o}})} | |
/** | |
* @license | |
* Copyright 2021 Google LLC | |
* SPDX-License-Identifier: BSD-3-Clause | |
*/var Oe;null===(Oe=window.HTMLSlotElement)||void 0===Oe||Oe.prototype.assignedElements; | |
/** | |
* @license | |
* Copyright 2017 Google LLC | |
* SPDX-License-Identifier: BSD-3-Clause | |
*/ | |
const Ie=1,Me=e=>(...t)=>({_$litDirective$:e,values:t});class Ne{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}} | |
/** | |
* @license | |
* Copyright 2018 Google LLC | |
* SPDX-License-Identifier: BSD-3-Clause | |
*/const Re=Me(class extends Ne{constructor(e){var t;if(super(e),e.type!==Ie||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var r,o;if(void 0===this.nt){this.nt=new Set,void 0!==e.strings&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(r=this.st)||void 0===r?void 0:r.has(e))&&this.nt.add(e);return this.render(t)}const a=e.element.classList;this.nt.forEach((e=>{e in t||(a.remove(e),this.nt.delete(e))}));for(const e in t){const r=!!t[e];r===this.nt.has(e)||(null===(o=this.st)||void 0===o?void 0:o.has(e))||(r?(a.add(e),this.nt.add(e)):(a.remove(e),this.nt.delete(e)))}return ne}});function Ue(e="pfe"){return`${e}-${Math.random().toString(36).substr(2,9)}`}var De=class{constructor(e){if(this.host=e,De.instances.get(e))return De.instances.get(e);e.addController(this),De.instances.set(e,this)}get prefix(){return`[${this.host.localName}${this.host.id?`#${this.host.id}`:""}]`}static debugLog(e=null){try{return null!==e&&(De.logDebug=!!e,localStorage.pfeLog=!!e),"true"===localStorage.pfeLog}catch{return De.logDebug}}static log(...e){De.debugLog()&&console.log(...e)}static warn(...e){console.warn(...e)}static error(...e){console.error([...e].join(" "))}log(...e){De.log(this.prefix,...e)}warn(...e){De.warn(this.prefix,...e)}error(...e){De.error(this.prefix,...e)}hostConnected(){this.log("connected")}},je=De;je.instances=new WeakMap;const Fe=A`:host { | |
/* apply sensible defaults based on redhat standards. */ | |
color: var(--rh-color-white, #ffffff); | |
font-family: var(--rh-font-family-body-text, RedHatText, "Red Hat Text", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", "Noto Sans KR", "Noto Sans Malayalam", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", Overpass, Helvetica, Arial, sans-serif) !important; | |
line-height: var(--rh-line-height-body-text, 1.5); | |
font-weight: var(--_font-weight); | |
font-size: initial; | |
display: flex; | |
flex-direction: column; | |
} | |
footer, | |
.global-base { | |
--_icon-color: var(--rh-footer-icon-color, var(--rh-color-black-500, #8a8d90)); | |
--_icon-color-hover: var(--rh-footer-icon-color-hover, var(--rh-color-black-400, #b8bbbe)); | |
--_border-color: var(--rh-footer-border-color, var(--rh-color-black-600, #6a6e73)); | |
--_accent-color: var(--rh-footer-accent-color, var(--rh-color-brand-red-on-light, #ee0000)); | |
--_section-side-gap: var(--rh-footer-section-side-gap, var(--rh-space-2xl, 32px)); | |
--_accordion-background: var(--rh-color-white, #ffffff); | |
--_logo-width: var(--rh-size-icon-04, 40px); | |
--_font-weight: var(--rh-font-weight-body-text-regular, 400); | |
/* Style Accordions */ | |
--pfe-accordion--Color: var(--_accordion-background); | |
--pfe-accordion--Color--expanded: var(--_accordion-background); | |
--pfe-accordion--Color--active: var(--_accordion-background); | |
--pfe-accordion--BackgroundColor: transparent; | |
--pfe-accordion--BackgroundColor--active: transparent; | |
--pfe-accordion--BackgroundColor--expanded: var(--rh-color-surface-darkest, #151515); | |
--pfe-accordion--BorderColor: var(--_border-color); | |
--pfe-accordion--FontSize--header: initial; | |
--pfe-accordion--FontWeight--header: var(--_font-weight); | |
--pfe-accordion--accent--expanded: var(--_accent-color); | |
--pfe-accordion--accent--active: var(--_accent-color); | |
} | |
pfe-accordion { | |
--pfe-context-background-color: transparent; | |
} | |
* { | |
box-sizing: border-box; | |
} | |
::slotted(:is(h1,h2,h3,h4,h5,h6)) { | |
font-family: var(--rh-font-family-heading, RedHatDisplay, "Red Hat Display", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", "Noto Sans KR", "Noto Sans Malayalam", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", Overpass, Helvetica, Arial, sans-serif) !important; | |
} | |
/** | |
* Debugging | |
*/ | |
:host([debug]) *:not(.spacer, .base, a, svg) { | |
/* make sure we have some */ | |
min-height: var(--rh-length-xl, 24px); | |
position: relative; | |
outline: var(--rh-length-3xs, 2px) dotted red; | |
} | |
:host([debug]) *:not(.spacer, .base, a, svg):after { | |
content: attr(part); | |
display: block; | |
position: absolute; | |
color: white; | |
background-color: darkslategray; | |
padding: var(--rh-space-xs, 4px); | |
top: 0; | |
right: 0; | |
font-family: var(--rh-font-family-code, RedHatMono, "Red Hat Mono", "Courier New", Courier, monospace); | |
font-size: var(--rh-font-size-code-xs, 0.75rem); | |
} | |
/** | |
* Regions | |
*/ | |
.section { | |
padding: var(--rh-space-2xl, 32px) var(--_section-side-gap); | |
} | |
.header { | |
background-color: var(--rh-color-surface-darker, #212427); | |
/* children should flex wrap on mobile */ | |
display: flex; | |
flex-wrap: wrap; | |
gap: var(--rh-space-2xl, 32px); | |
align-items: center; | |
position: relative; | |
} | |
.header:after { | |
display: block; | |
content: ""; | |
background-color: var(--_border-color); | |
height: var(--rh-length-4xs, 1px); | |
position: absolute; | |
bottom: 0; | |
width: calc(100% - var(--_section-side-gap) * 2); | |
left: var(--_section-side-gap); | |
} | |
.header-primary { | |
flex: 1 1 auto; | |
} | |
.header-secondary { | |
/* secondary should be push to the end */ | |
/* of the line on mobile */ | |
flex: 0 1 auto; | |
} | |
.main { | |
background-color: var(--rh-color-surface-darker, #212427); | |
display: grid; | |
gap: var(--rh-space-2xl, 32px); | |
} | |
.main-secondary { | |
display: grid; | |
gap: var(--pf-global--spacer--xl, 32px); | |
place-items: baseline; | |
place-content: start; | |
} | |
.global-base { | |
--rh-footer-link-font-size: var(--rh-font-size-body-text-xs, 0.75rem); | |
/* reduce the line-height for global links */ | |
line-height: 100%; | |
background-color: var(--rh-color-surface-darkest, #151515); | |
display: grid; | |
grid-template-columns: 1fr; | |
grid-template-areas: | |
"logo" | |
"primary" | |
"spacer" | |
"secondary" | |
"tertiary"; | |
gap: var(--rh-space-2xl, 32px) var(--rh-space-xl, 24px); | |
} | |
.global-logo { | |
grid-area: logo; | |
width: var(--_logo-width); | |
} | |
.global-logo-image { | |
fill: var(--_icon-color); | |
} | |
.global-logo-image:is(:hover, :focus-within) { | |
fill: var(--_icon-color-hover); | |
} | |
.global-primary { | |
grid-area: primary; | |
} | |
.global-secondary { | |
grid-area: secondary; | |
color: var(--rh-color-text-secondary-on-dark, #d2d2d2); | |
display: flex; | |
flex-direction: column; | |
gap: var(--rh-space-lg, 16px); | |
justify-content: space-between; | |
} | |
.global-tertiary { | |
grid-area: tertiary; | |
display: grid; | |
justify-content: start; | |
align-items: start; | |
} | |
.global-links-primary { | |
display: flex; | |
flex-direction: column; | |
gap: var(--rh-space-md, 8px) var(--rh-space-xl, 24px); | |
} | |
.global-links-secondary { | |
display: flex; | |
flex-direction: column; | |
gap: var(--rh-space-md, 8px) var(--rh-space-xl, 24px); | |
} | |
/* reduce the font size of the content in these regions */ | |
:is(.global-primary, .global-secondary, .global-tertiary) ::slotted(*) { | |
font-size: var(--rh-font-size-body-text-xs, 0.75rem); | |
} | |
.logo { | |
/* fix wierd problem where there is extra space below logo */ | |
line-height: 0px; | |
} | |
.social-links { | |
display: flex; | |
margin-inline-start: 0; | |
padding-inline-start: 0; | |
} | |
.social-links rh-footer-links, | |
.social-links slot::slotted(rh-footer-links) { | |
display: flex; | |
flex-direction: row; | |
gap: var(--rh-space-xl, 24px); | |
} | |
:is(.links, .global-links-primary, .global-links-secondary) ::slotted(ul) { | |
padding: 0; | |
margin: 0; | |
display: contents; | |
} | |
.isMobile .links { | |
--rh-footer-link-header-font-size: var(--rh-font-size-body-text-lg, 1.125rem); | |
} | |
.isMobile .links ::slotted(ul) { | |
--rh-footer-link-font-size: 1em; | |
display: grid; | |
grid-template-columns: 1fr; | |
gap: calc(var(--rh-space-2xl, 32px) / 2); | |
} | |
[part="base"]:not(.isMobile) .links { | |
display: grid; | |
grid-template-columns: repeat(1fr, 25%); | |
grid-template-rows: repeat(2, min-content auto); | |
grid-auto-columns: minmax(0, 1fr); | |
row-gap: var(--rh-space-lg, 16px); | |
column-gap: var(--rh-space-2xl, 32px); | |
grid-auto-flow: column; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(:is(h2, h3, h4, h5, h6):nth-of-type(1)) { | |
grid-column: 1/2; | |
grid-row: 1/2; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(:is(h2, h3, h4, h5, h6):nth-of-type(2)) { | |
grid-column: 2/3; | |
grid-row: 1/2; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(:is(h2, h3, h4, h5, h6):nth-of-type(3)) { | |
grid-column: 3/4; | |
grid-row: 1/2; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(:is(h2, h3, h4, h5, h6):nth-of-type(4)) { | |
grid-column: 4/5; | |
grid-row: 1/2; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(:is(h2, h3, h4, h5, h6):nth-of-type(5)) { | |
grid-column: 1/2; | |
grid-row: 3/4; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(:is(h2, h3, h4, h5, h6):nth-of-type(6)) { | |
grid-column: 2/3; | |
grid-row: 3/4; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(:is(h2, h3, h4, h5, h6):nth-of-type(7)) { | |
grid-column: 3/4; | |
grid-row: 3/4; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(:is(h2, h3, h4, h5, h6):nth-of-type(8)) { | |
grid-column: 4/5; | |
grid-row: 3/4; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(:is(ul:nth-of-type(1))) { | |
grid-column: 1/2; | |
grid-row: 2/3; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(:is(ul:nth-of-type(2))) { | |
grid-column: 2/3; | |
grid-row: 2/3; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(:is(ul:nth-of-type(3))) { | |
grid-column: 3/4; | |
grid-row: 2/3; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(:is(ul:nth-of-type(4))) { | |
grid-column: 4/5; | |
grid-row: 2/3; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(:is(ul:nth-of-type(5))) { | |
grid-column: 1/2; | |
grid-row: 4/5; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(:is(ul:nth-of-type(6))) { | |
grid-column: 2/3; | |
grid-row: 4/5; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(:is(ul:nth-of-type(7))) { | |
grid-column: 3/4; | |
grid-row: 4/5; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(:is(ul:nth-of-type(8))) { | |
grid-column: 4/5; | |
grid-row: 4/5; | |
} | |
[part="base"]:not(.isMobile) .links ::slotted(ul) { | |
gap: var(--rh-footer-links-gap, var(--rh-space-lg, 16px)); | |
display: flex; | |
flex-direction: column; | |
} | |
#footer-logo { | |
width: var(--_logo-width); | |
} | |
:is(.links, .global-links-primary, .global-links-secondary) ::slotted(:is(h1, h2, h3, h4, h5)) { | |
font-weight: var(--rh-font-weight-heading-medium, 500) !important; | |
margin-block: 0 !important; | |
font-size: | |
var( | |
--rh-footer-link-header-font-size, | |
var(--rh-font-size-body-text-sm, 0.875rem) | |
) !important; | |
color: var(--rh-color-white, #ffffff) !important; | |
} | |
`,We=P`320px`;P`576px`;const Ve=P`768px`,qe=P`992px`;P`1200px`;const Ke=P`1368px`,Ze=A` | |
@media screen and (min-width: ${Ve}) { | |
.global-base { | |
grid-template-columns: 4fr 4fr 4fr; | |
grid-template-areas: | |
'logo logo logo' | |
'primary primary primary' | |
'spacer spacer spacer' | |
'secondary secondary secondary'; | |
} | |
.global-base:is(.hasTertiary) { | |
grid-template-columns: 4fr 4fr 4fr; | |
grid-template-areas: | |
'logo logo logo' | |
'primary primary primary' | |
'spacer spacer spacer' | |
'secondary secondary tertiary'; | |
} | |
} | |
@media screen and (min-width: ${qe}) { | |
/* :not(.nothing) is a hack to match CSS specificity with :is(.hasTertiary) */ | |
.global-base:not(.nothing) { | |
grid-template-columns: auto 10fr 2fr; | |
grid-template-rows: max-content max-content; | |
grid-template-areas: | |
'logo primary tertiary' | |
'logo secondary tertiary'; | |
gap: 24px 32px; | |
} | |
.global-primary { | |
display: flex; | |
} | |
.main { | |
padding-bottom: 64px; | |
} | |
} | |
.spacer { | |
grid-area: spacer; | |
border-bottom: 1px solid var(--_border-color); | |
} | |
@media screen and (min-width: ${qe}) { | |
.spacer { | |
display: none; | |
} | |
} | |
@media screen and (min-width: ${qe}) { | |
.global-tertiary { | |
display: grid; | |
justify-content: flex-end; | |
align-items: center; | |
} | |
} | |
@media screen and (min-width: ${We}) { | |
.global-links-primary { | |
display: grid; | |
grid-template-columns: 1fr 1fr; | |
} | |
.global-links-secondary { | |
display: grid; | |
grid-template-columns: 1fr 1fr; | |
} | |
} | |
@media screen and (min-width: ${Ve}) { | |
.global-links-primary { | |
display: grid; | |
grid-template-columns: 1fr 1fr 1fr; | |
} | |
.global-links-secondary { | |
display: grid; | |
grid-template-columns: 1fr 1fr 1fr; | |
} | |
.hasTertiary .global-links-secondary { | |
display: grid; | |
grid-template-columns: 1fr 1fr; | |
} | |
} | |
@media screen and (min-width: ${qe}) { | |
.global-links-primary { | |
display: flex; | |
flex-flow: row wrap; | |
align-items: center; | |
} | |
} | |
@media screen and (min-width: ${qe}) { | |
:not(.hasTertiary) .global-links-secondary { | |
display: flex; | |
flex-direction: row; | |
flex-wrap: wrap; | |
gap: 8px 24px; | |
} | |
} | |
@media screen and (max-width: ${qe}) { | |
.global-logo { | |
grid-area: logo; | |
} | |
.global-primary { | |
grid-area: primary; | |
} | |
} | |
@media screen and (max-width: ${qe}) { | |
/* Equalize padding on mobile */ | |
.section { | |
--_section-side-gap: var(--rh-footer-section-side-gap, var(--rh-space-2xl, 32px)); | |
} | |
/* hide the header border on mobile */ | |
.header:after { | |
display: none; | |
} | |
/* force the mobile links menu to go flush against the header */ | |
.main { | |
padding-top: 0; | |
} | |
} | |
@media screen and (min-width: ${qe}) and (max-width: ${Ke}) { | |
/* Equalize padding on mobile */ | |
.section { | |
--_section-side-gap: var(--rh-footer-section-side-gap, var(--rh-space-2xl, 32px)); | |
} | |
.header, | |
.main { | |
/* switch header to use grid instead */ | |
display: grid; | |
grid-template-columns: 8fr 4fr; | |
} | |
} | |
@media screen and (min-width: ${Ke}) { | |
.section { | |
--_section-side-gap: var(--rh-footer-section-side-gap, var(--rh-space-2xl, 32px)); | |
} | |
.header, | |
.main { | |
/* switch header to use grid instead */ | |
display: grid; | |
grid-template-columns: 8fr 4fr; | |
} | |
} | |
@media screen and (min-width: ${Ve}) { | |
.isMobile .links ::slotted(ul) { | |
grid-template-columns: 1fr 1fr; | |
} | |
} | |
`;var Qe=class{constructor(e,t){this.host=e,this.styles=t,this.stylesAdopted=!1,e.addController(this)}hostConnected(){if(this.stylesAdopted||!(this.host.renderRoot instanceof ShadowRoot))return;let e=[this.styles].flatMap((e=>E(e))).filter((e=>!!e));w?this.host.renderRoot.adoptedStyleSheets=[...e.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)),...this.host.renderRoot.adoptedStyleSheets??[]]:e.forEach((e=>{let t=document.createElement("style"),r=window.litNonce;void 0!==r&&t.setAttribute("nonce",r),t.textContent=e.cssText,this.host.renderRoot.appendChild(t)})),this.stylesAdopted=!0}};class Je extends Event{constructor(e,t,r){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.callback=t,this.multiple=r}}const Xe=A`:host(:is([on=dark])) { --context: dark; } | |
:host(:is([on=light])) { --context: light; } | |
:host(:is([on=saturated])) { --context: saturated; } | |
/** | |
* It's important for \`color-palette\` to take precedence over \`on\` | |
* when setting \`--context\`, because a \`dark\` card that's on a \`light\` | |
* background must create a new \`dark\` context for its descendents | |
*/ | |
:host(:is([color-palette=darker],[color-palette=darkest])) { | |
--context: dark; | |
--rh-context-text: var(--rh-context-dark-color-text, #fff); | |
--rh-context-text-muted: var(--rh-context-dark-color-text-muted, #d2d2d2); | |
--rh-context-link: var(--rh-context-dark-color-text-link, #73bcf7); | |
--rh-context-link-hover: var(--rh-context-dark-color-text-link-hover, #bee1f4); | |
--rh-context-link-focus: var(--rh-context-dark-color-text-link-focus, #bee1f4); | |
--rh-context-link-visited: var(--rh-context-dark-color-text-link-visited, #a18fff); | |
--rh-context-link-visited-hover: var(--rh-context-dark-color-text-link-visited-hover, #cbc1ff); | |
/* --rh-context-link-decoration: var(--rh-theme--link-decoration--on-dark, none); */ | |
/* --rh-context-link-decoration-hover: var(--rh-theme--link-decoration-hover--on-dark, underline); */ | |
/* --rh-context-link-decoration-focus: var(--rh-theme--link-decoration-focus--on-dark, underline); */ | |
/* --rh-context-link-decoration--visited: var(--rh-theme--link-decoration--visited--on-dark, none); */ | |
} | |
:host(:is([color-palette=lighter],[color-palette=lightest],[color-palette=base])) { | |
--context: light; | |
--rh-context-text: var(--rh-context-light-color-text, #151515); | |
--rh-context-text-muted: var(--rh-context-light-color-text-muted, #6a6e73); | |
--rh-context-link: var(--rh-context-light-color-text-link, #06c); | |
--rh-context-link-hover: var(--rh-context-light-color-text-link-hover, #004080); | |
--rh-context-link-focus: var(--rh-context-light-color-text-link-focus, #004080); | |
--rh-context-link-visited: var(--rh-context-light-color-text-link-visited, #6753ac); | |
--rh-context-link-visited-hover: var(--rh-context-light-color-text-link-visited-hover, #1f0066); | |
/* --rh-context-link-decoration: var(--rh-theme--link-decoration, none); */ | |
/* --rh-context-link-decoration-hover: var(--rh-theme--link-decoration-hover, underline); */ | |
/* --rh-context-link-decoration-focus: var(--rh-theme--link-decoration-focus, underline); */ | |
/* --rh-context-link-decoration--visited: var(--rh-theme--link-decoration--visited, none); */ | |
} | |
/* FIXME: Saturated colours TBD */ | |
/* :host(:is([color-palette=accent],[color-palette=complement],[color-palette=saturated])) { */ | |
/* --context: saturated; */ | |
/* --rh-context-text: var(--rh-theme--color--text--on-saturated, #fff); */ | |
/* --rh-context-text-muted: var(--rh-theme--color--text-muted--on-saturated, #d2d2d2); */ | |
/* --rh-context-link: var(--rh-theme--color--link-on-saturated, #fff); */ | |
/* --rh-context-link-hover: var(--rh-theme--color--link-hover--on-saturated, #fafafa); */ | |
/* --rh-context-link-focus: var(--rh-theme--color--link-focus--on-saturated, #fafafa); */ | |
/* --rh-context-link-visited: var(--rh-theme--color--link-visited--on-saturated, #d2d2d2); */ | |
/* --rh-context-link-decoration: var(--rh-theme--link-decoration--on-saturated, underline); */ | |
/* --rh-context-link-decoration-hover: var(--rh-theme--link-decoration-hover--on-saturated, underline); */ | |
/* --rh-context-link-decoration-focus: var(--rh-theme--link-decoration-focus--on-saturated, underline); */ | |
/* --rh-context-link-decoration--visited: var(--rh-theme--link-decoration--visited--on-saturated, underline); */ | |
/* } */ | |
:host(:is([color-palette=lightest])) { | |
--rh-context-background-color: var(--rh-color-surface-lighest, #fff); | |
} | |
:host(:is([color-palette=lighter])) { | |
--rh-context-background-color: var(--rh-color-surface-lighter, #f5f5f5); | |
} | |
:host(:is([color-palette=base])) { | |
--rh-context-background-color: var(--rh-color-surface-lighest, #fff); | |
} | |
:host(:is([color-palette=darker])) { | |
--rh-context-background-color: var(--rh-color-surface-darker, #212427); | |
} | |
:host(:is([color-palette=darkest])) { | |
--rh-context-background-color: var(--rh-color-surface-darkest, #151515); | |
} | |
/* FIXME: Saturated colors TBD */ | |
/* :host(:is([color-palette=complement])) { */ | |
/* --rh-context-background-color: var(--rh-color-surface-complement, #004368); */ | |
/* } */ | |
/**/ | |
/* :host(:is([color-palette=accent])) { */ | |
/* --rh-context-background-color: var(--rh-color-surface-accent, #00659c); */ | |
/* } */ | |
/* QUESTION: should be specified per component? */ | |
/* :host(:is([color-palette])) { */ | |
/* background-color: var(--rh-context-background-color, var(--rh-color-surface-base)); */ | |
/* } */ | |
`;var Ye,Ge;const et=new Map;class tt{constructor(e,t){var r;this.host=e,this.prefix="rh-",this.last=null,this.prefix=t?.prefix??"rh-",this.context={name:`${this.prefix}-color-context`,initialValue:r},this.logger=new je(e),this.styleController=new Qe(e,Xe),e.addController(this)}}class rt extends tt{constructor(e,t){super(e,t),Ye.add(this),this.callbacks=new Set,this.mo=new MutationObserver((()=>this.update(this.contextVariable))),this.style=window.getComputedStyle(e),this.attribute=t?.attribute??"color-palette"}get contextVariable(){return this.style.getPropertyValue("--context").trim()||null}hostConnected(){this.host.addEventListener("context-request",(e=>x(this,Ye,"m",Ge).call(this,e))),this.mo.observe(this.host,{attributes:!0,attributeFilter:[this.attribute,"on"]}),this.update(this.contextVariable);for(const[e,t]of et)e.dispatchEvent(t)}hostDisconnected(){this.callbacks.forEach((e=>this.callbacks.delete(e))),this.mo.disconnect()}isColorContextEvent(e){return e.target!==this.host&&e.context.name===`${this.prefix}-color-context`}update(e){for(const t of this.callbacks)t(e)}}Ye=new WeakSet,Ge=function(e){this.isColorContextEvent(e)&&(e.stopPropagation(),e.callback(this.contextVariable),e.multiple&&this.callbacks.add(e.callback))};class ot extends tt{constructor(e,t){super(e,t),this.override=null,this.attribute??(this.attribute="on")}hostConnected(){const e=new Je(this.context,(e=>this.contextCallback(e)),!0);this.override=this.host.getAttribute(this.attribute),this.host.dispatchEvent(e),et.set(this.host,e)}hostDisconnected(){this.dispose?.(),this.dispose=void 0,et.delete(this.host)}contextCallback(e,t){t&&t!==this.dispose&&(this.dispose?.(),this.dispose=t),this.update(e)}update(e){this.override||e===this.last||(this.last=e,this.logger.log(`setting context from ${this.host.getAttribute(this.attribute)} to ${e}`),null==e?this.host.removeAttribute(this.attribute):this.host.setAttribute(this.attribute,e))}}function at(e){return function(t,r){t.constructor.addInitializer((t=>{t.__colorContextProvider=new rt(t,e)}))}}function it(e,t,r){if("function"!=typeof r?.value)throw new TypeError(`Only methods can be decorated with @bound. <${t??e.name}> is not a method!`);return{configurable:!0,get(){let e=r.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}class nt{constructor(e,t="",r){this.host=e,this.mediaQuery=t,this.mediaQueryList=null,this.host.addController(this),this.mediaQueryList=matchMedia(t),this.onChange=r?.onChange}hostConnected(){this.evaluate(),this.mediaQueryList?.addEventListener("change",this.evaluate)}hostDisconnected(){this.mediaQueryList?.removeEventListener("change",this.evaluate)}evaluate(){this.host.requestUpdate(),this.onChange?.(this.mediaQueryList??matchMedia(this.mediaQuery))}}_([it],nt.prototype,"evaluate",null);const st=A`:host { | |
display: block; | |
--pfe-icon--color: var(--_icon-color); | |
--pfe-icon--size: var(--rh-footer--social-icon--size, var(--rh-size-icon-02, 24px)); | |
} | |
:host(:is(:hover, :focus-within)) { | |
--pfe-icon--color: var(--_icon-color-hover); | |
} | |
`;let dt=class extends we{constructor(){super(),this.logger=new je(this),this.icon=null,this.setAttribute("role","listitem")}render(){return ae`<slot></slot>`}updated(){this.updateLightdom()}updateLightdom(){const e=this.querySelector("a");if(e){const t=e.cloneNode(!0);t.querySelectorAll("[_rendered]").forEach((e=>e.remove())),t.innerHTML=`<pfe-icon icon="${this.icon}">${t.innerHTML}</pfe-icon>`,t.setAttribute("aria-label",t.textContent||""),t.getAttribute("aria-label")||this.logger.warn("Must add aria-label to links"),e.parentNode&&e.parentNode.replaceChild(t,e)}}};dt.styles=st,_([Te()],dt.prototype,"icon",void 0),dt=_([Be("rh-footer-social-link")],dt);var ct=Object.defineProperty,lt=Object.getOwnPropertyDescriptor,ht=(e,t,r,o)=>{for(var a,i=o>1?void 0:o?lt(t,r):t,n=e.length-1;n>=0;n--)(a=e[n])&&(i=(o?a(t,r,i):a(i))||i);return o&&i&&ct(t,r,i),i};var pt=class{constructor(e,...t){if(this.host=e,this.nodes=new Map,this.firstUpdated=!1,this.mo=new MutationObserver(this.onMutation),this.deprecations={},this.logger=new je(this.host),function(e){return 1===e.length&&"object"==typeof e[0]&&null!==e[0]}(t)){let[{slots:e,deprecations:r}]=t;this.slotNames=e,this.deprecations=r??{}}else t.length>=1?(this.slotNames=t,this.deprecations={}):this.slotNames=[null];e.addController(this)}hostConnected(){this.host.addEventListener("slotchange",this.onSlotChange),this.firstUpdated=!1,this.mo.observe(this.host,{childList:!0}),this.init()}hostUpdated(){this.firstUpdated||(this.slotNames.forEach(this.initSlot),this.firstUpdated=!0)}hostDisconnected(){this.mo.disconnect()}hasSlotted(...e){return e.length?e.some((e=>this.nodes.get(e)?.hasContent??!1)):(this.logger.warn("Please provide at least one slot name for which to search."),!1)}getSlotted(...e){return e.length?e.flatMap((e=>this.nodes.get(e)?.elements??[])):this.nodes.get(pt.anonymous)?.elements??[]}onSlotChange(e){let t=e.target.name;this.initSlot(t),this.host.requestUpdate()}async onMutation(e){let t=[];for(let{addedNodes:r,removedNodes:o}of e)for(let e of[...r,...o])e instanceof HTMLElement&&e.slot&&(this.initSlot(e.slot),t.push(e.slot));t.length&&this.host.requestUpdate()}getChildrenForSlot(e){return Array.from(this.host.children).filter((e=>t=>e===ft.anonymous?!t.hasAttribute("slot"):t.getAttribute("slot")===e)(e))}initSlot(e){let t=e||pt.anonymous,r=this.nodes.get(t)?.slot?.assignedElements?.()??this.getChildrenForSlot(t),o=e?`slot[name="${e}"]`:"slot:not([name])",a=this.host.shadowRoot?.querySelector?.(o)??null,i=!!r.length;this.nodes.set(t,{elements:r,name:e??"",hasContent:i,slot:a}),this.logger.log(e,i)}init(){this.nodes.clear(),this.slotNames.forEach(this.initSlot),Object.values(this.deprecations).forEach(this.initSlot),this.host.requestUpdate()}},ft=pt;ft.anonymous=Symbol("anonymous slot"),ht([it],ft.prototype,"onSlotChange",1),ht([it],ft.prototype,"onMutation",1),ht([it],ft.prototype,"initSlot",1),ht([it],ft.prototype,"init",1);var mt=Object.defineProperty,gt=Object.getOwnPropertyDescriptor,bt=class{constructor(e,t){this.host=e,this.options=t,this.mo=new MutationObserver(this.parse),this.cache=new Map,this.class=e.constructor,this.logger=new je(this.host),bt.instances.set(e,this);let r=this.options?.properties??{};for(let[e,t]of Object.entries(r))this.initProp(e,t);e.addController(this),this.cascadeProperties=function(e,t,r=!1){let o;return function(...a){let i=this,n=r&&!o;clearTimeout(o),o=window.setTimeout((function(){o=null,r||e.apply(i,a)}),t),n&&e.apply(i,a)}}(this.cascadeProperties,1)}hostUpdated(){this.cascadeProperties()}hostConnected(){this.mo.observe(this.host,{attributes:!0,childList:!0}),this.cascadeProperties()}hostDisconnected(){this.mo.disconnect()}cascadeProperties(e=this.host.children){if(this.host.isConnected){let t=this.cache.keys();if(!e)return this._cascadeAttributes(t,this.cache);for(let r of e)if(r instanceof Element)for(let e of t)if(r.matches(e)){let t=this.cache.get(e);for(let e of t??[])this._copyAttribute(e,r)}}}initProp(e,t){for(let r of[t].flat(1/0).filter(Boolean)){let{attribute:t}=this.class.getPropertyOptions(e),o="string"==typeof t?t:e.toLowerCase();this.cache.get(r)?this.cache.get(r)?.push(o):this.cache.set(r,[o])}}parse(e){for(let t of e??[])"childList"===t.type&&t.addedNodes.length?this.cascadeProperties(t.addedNodes):"attributes"===t.type&&this._cascadeAttributes(this.cache.keys(),this.cache)}async _copyAttribute(e,t){this.logger.log(`copying ${e} to ${t}`);let r=this.host.getAttribute(e);t.isConnected&&(null==r?t.removeAttribute(e):t.setAttribute(e,r))}_cascadeAttributes(e,t){for(let r of e)for(let e of t.get(r)??[])this._cascadeAttribute(e,r)}_cascadeAttribute(e,t){let r=[...this.host.querySelectorAll(t),...this.host.shadowRoot?.querySelectorAll(t)??[]];for(let t of r)this._copyAttribute(e,t)}},ut=bt;ut.instances=new WeakMap,((e,t,r,o)=>{for(var a,i=o>1?void 0:o?gt(t,r):t,n=e.length-1;n>=0;n--)(a=e[n])&&(i=(o?a(t,r,i):a(i))||i);o&&i&&mt(t,r,i)})([it],ut.prototype,"parse",1);var vt=class extends Event{constructor(e,t,r){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.callback=t,this.multiple=r}},_t=Object.defineProperty,xt=Object.getOwnPropertyDescriptor,kt=(e,t,r,o)=>{for(var a,i=o>1?void 0:o?xt(t,r):t,n=e.length-1;n>=0;n--)(a=e[n])&&(i=(o?a(t,r,i):a(i))||i);return o&&i&&_t(t,r,i),i},yt=A`:host(:is([on=dark])){--context:dark}:host(:is([on=light])){--context:light}:host(:is([on=saturated])){--context:saturated}:host(:is([color-palette=darker],[color-palette=darkest])){--context:dark;--pfe-broadcasted--text:var(--pfe-theme--color--text--on-dark, #fff);--pfe-broadcasted--text--muted:var(--pfe-theme--color--text--muted--on-dark, #d2d2d2);--pfe-broadcasted--link:var(--pfe-theme--color--link--on-dark, #73bcf7);--pfe-broadcasted--link--hover:var(--pfe-theme--color--link--hover--on-dark, #bee1f4);--pfe-broadcasted--link--focus:var(--pfe-theme--color--link--focus--on-dark, #bee1f4);--pfe-broadcasted--link--visited:var(--pfe-theme--color--link--visited--on-dark, #bee1f4);--pfe-broadcasted--link-decoration:var(--pfe-theme--link-decoration--on-dark, none);--pfe-broadcasted--link-decoration--hover:var(--pfe-theme--link-decoration--hover--on-dark, underline);--pfe-broadcasted--link-decoration--focus:var(--pfe-theme--link-decoration--focus--on-dark, underline);--pfe-broadcasted--link-decoration--visited:var(--pfe-theme--link-decoration--visited--on-dark, none)}:host(:is([color-palette=lighter],[color-palette=lightest],[color-palette=base])){--context:light;--pfe-broadcasted--text:var(--pfe-theme--color--text, #151515);--pfe-broadcasted--text--muted:var(--pfe-theme--color--text--muted, #6a6e73);--pfe-broadcasted--link:var(--pfe-theme--color--link, #06c);--pfe-broadcasted--link--hover:var(--pfe-theme--color--link--hover, #004080);--pfe-broadcasted--link--focus:var(--pfe-theme--color--link--focus, #004080);--pfe-broadcasted--link--visited:var(--pfe-theme--color--link--visited, #6753ac);--pfe-broadcasted--link-decoration:var(--pfe-theme--link-decoration, none);--pfe-broadcasted--link-decoration--hover:var(--pfe-theme--link-decoration--hover, underline);--pfe-broadcasted--link-decoration--focus:var(--pfe-theme--link-decoration--focus, underline);--pfe-broadcasted--link-decoration--visited:var(--pfe-theme--link-decoration--visited, none)}:host(:is([color-palette=accent],[color-palette=complement],[color-palette=saturated])){--context:saturated;--pfe-broadcasted--text:var(--pfe-theme--color--text--on-saturated, #fff);--pfe-broadcasted--text--muted:var(--pfe-theme--color--text--muted--on-saturated, #d2d2d2);--pfe-broadcasted--link:var(--pfe-theme--color--link--on-saturated, #fff);--pfe-broadcasted--link--hover:var(--pfe-theme--color--link--hover--on-saturated, #fafafa);--pfe-broadcasted--link--focus:var(--pfe-theme--color--link--focus--on-saturated, #fafafa);--pfe-broadcasted--link--visited:var(--pfe-theme--color--link--visited--on-saturated, #d2d2d2);--pfe-broadcasted--link-decoration:var(--pfe-theme--link-decoration--on-saturated, underline);--pfe-broadcasted--link-decoration--hover:var(--pfe-theme--link-decoration--hover--on-saturated, underline);--pfe-broadcasted--link-decoration--focus:var(--pfe-theme--link-decoration--focus--on-saturated, underline);--pfe-broadcasted--link-decoration--visited:var(--pfe-theme--link-decoration--visited--on-saturated, underline)}:host(:is([color-palette=lightest])){--pfe-context-background-color:var(--pfe-theme--color--surface--lightest, #fff)}:host(:is([color-palette=lighter])){--pfe-context-background-color:var(--pfe-theme--color--surface--lighter, #ededed)}:host(:is([color-palette=base])){--pfe-context-background-color:var(--pfe-theme--color--surface--base, #ededed)}:host(:is([color-palette=darker])){--pfe-context-background-color:var(--pfe-theme--color--surface--darker, #393f44)}:host(:is([color-palette=darkest])){--pfe-context-background-color:var(--pfe-theme--color--surface--darkest, #292e34)}:host(:is([color-palette=complement])){--pfe-context-background-color:var(--pfe-theme--color--surface--complement, #004368)}:host(:is([color-palette=accent])){--pfe-context-background-color:var(--pfe-theme--color--surface--accent, #00659c)}:host(:is([color-palette])){background-color:var(--pfe-context-background-color,var(--pfe-theme--color--surface--base))}`,wt=new Map,Ct=class{constructor(e,t){this.host=e,this.prefix="pfe-",this.last=null,this.prefix=t?.prefix??"pfe-",this.context=function(e,t){return{name:e,initialValue:t}}(`${this.prefix}-color-context`),this.logger=new je(e),this.styleController=new Qe(e,yt),e.addController(this)}},St=class extends Ct{constructor(e,t){super(e,t),this.callbacks=new Set,this.mo=new MutationObserver((()=>this.update(this.contextVariable))),this.style=window.getComputedStyle(e),this.attribute=t?.attribute??"color-palette"}get contextVariable(){return this.style.getPropertyValue("--context").trim()||null}hostConnected(){this.host.addEventListener("context-request",this.onChildContextEvent),this.mo.observe(this.host,{attributes:!0,attributeFilter:[this.attribute,"on"]}),this.update(this.contextVariable);for(let[e,t]of wt)e.dispatchEvent(t)}hostDisconnected(){this.callbacks.forEach((e=>this.callbacks.delete(e))),this.mo.disconnect()}isColorContextEvent(e){return e.target!==this.host&&e.context.name===`${this.prefix}-color-context`}onChildContextEvent(e){this.isColorContextEvent(e)&&(e.stopPropagation(),e.callback(this.contextVariable),e.multiple&&this.callbacks.add(e.callback))}update(e){for(let t of this.callbacks)t(e)}};kt([it],St.prototype,"onChildContextEvent",1),kt([it],St.prototype,"update",1);var $t=class extends Ct{constructor(e,t){super(e,t),this.override=null,this.attribute??(this.attribute="on")}hostConnected(){let e=new vt(this.context,this.contextCallback,!0);this.override=this.host.getAttribute(this.attribute),this.host.dispatchEvent(e),wt.set(this.host,e)}hostDisconnected(){this.dispose?.(),this.dispose=void 0,wt.delete(this.host)}contextCallback(e,t){t&&t!==this.dispose&&(this.dispose?.(),this.dispose=t),this.update(e)}update(e){!this.override&&e!==this.last&&(this.last=e,this.logger.log(`setting context from ${this.host.getAttribute(this.attribute)} to ${e}`),null==e?this.host.removeAttribute(this.attribute):this.host.setAttribute(this.attribute,e))}};function Pt(e){return function(t,r){t.constructor.addInitializer((t=>{t.__colorContextConsumer=new $t(t,e)}))}}kt([it],$t.prototype,"contextCallback",1),kt([it],$t.prototype,"update",1);var At=class{constructor(e,t,r){this.host=e,this.options=t,this.deprecatedKey=r,this.logged=!1,this.logger=new je(e)}hostUpdate(){let{deprecatedKey:e,options:{alias:t}}=this;this.host[e]&&this.host[t]!==this.host[e]&&(this.logged||(this.logger.warn(`${e} is deprecated, use ${t} instead`),this.logged=!0),this.host[t]=this.host[e])}};function Et(e){return function(t,r){t.constructor.addInitializer((o=>{let a=t[r],i=new class{constructor(e,t,r){this.host=e,this.options=r,this.initializer=t.bind(e),this.mo=new MutationObserver(this.initializer),this.logger=new je(this.host),e.addController(this)}hostConnected(){this.hasLightDOM()?this.initializer():this.options?.emptyWarning&&this.logger.warn(this.options?.emptyWarning),this.initObserver()}hostDisconnected(){this.mo.disconnect()}initObserver(){(this.options?.observe??1)&&this.mo.observe(this.host,"object"!=typeof this.options?.observe?{childList:!0}:this.options?.observe)}hasLightDOM(){return this.host.children.length>0||(this.host.textContent??"").trim().length>0}}(o,a,e);o.isConnected&&i.hostConnected()}))}}var Bt=Symbol("observed properties controller"),zt=class{constructor(e){if(this.host=e,this.values=new Map,zt.hosts.get(e))return zt.hosts.get(e);e.addController(this),e[Bt]=this}delete(e){this.values.delete(e)}hostUpdate(){for(let[e,[t,[r,o]]]of this.values)this.host[t]?.(r,o),this.delete(e)}hostUpdated(){this.host.removeController(this)}cache(e,t,...r){this.values.set(e,[t,r])}},Tt=zt;function Ht(...e){if(1===e.length){let[t]=e;return function(e,r){e.constructor.addInitializer((e=>new Tt(e))),Lt(e,r,t)}}{let[t,r]=e;t.constructor.addInitializer((e=>new Tt(e))),Lt(t,r)}}function Lt(e,t,r){let o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(e,t,{...o,configurable:!0,set(e){let a=this[t];if(o?.set?.call(this,e),"function"==typeof r)r.call(this,a,e);else{let o=r||`_${t}Changed`;this.hasUpdated?this[o]?.(a,e):this[Bt].cache(t,o,a,e)}}})}Tt.hosts=new WeakMap;var Ot=Symbol();function It(e){return document.head.querySelector(`meta[name="${e}"]`)?.content}var Mt={fromAttribute:e=>"string"!=typeof e?null:e.split(",").map((e=>e.trim())).map((e=>parseInt(e,10))),toAttribute:e=>e.join(",")},Nt=class extends Event{constructor(e,t){super(e,{bubbles:!0,composed:!0,...t})}},Rt=document.body.hasAttribute("no-auto-reveal");window.PfeConfig=Object.assign(window.PfeConfig??{},{trackPerformance:window.PfeConfig?.trackPerformance??"true"===It("pfe-track-performance"),autoReveal:window.PfeConfig?.autoReveal??(Rt?!Rt:"true"===It("pfe-auto-reveal")),get log(){return!!localStorage.pfeLog},set log(e){e?localStorage.setItem("pfeLog","true"):localStorage.removeItem("pfeLog")}});var Ut=!1,Dt=new Set;function jt(e){let t=e?.attribute??"pfelement",r=e?.className??"PFElement";return function(e){if(!function(e){return"function"==typeof e.addInitializer}(e))throw new Error(`@pfelement may only decorate ReactiveElements. ${e.name} is does not implement ReactiveElement.`);e.addInitializer((e=>{window.PfeConfig.autoReveal&&async function(e){if(Dt.add(e),!Ut){for(Ut=!0;Dt.size;){let e=[];for(let t of Dt)e.push(t.updateComplete),Dt.delete(t);await Promise.all(e)}document.body.removeAttribute("unresolved")}}(e),e.addController({hostConnected(){e.setAttribute(t,""),e.classList.add(r)}}),function(e=Ot){return e!==Ot&&(window.PfeConfig.trackPerformance=!!e),window.PfeConfig.trackPerformance}()&&new class{constructor(e){this.host=e,this.hasMeasured=!1,e.addController(this),e.id?e.id.startsWith("pfe-")&&!e.id.startsWith(e.localName)?this.markId=e.id.replace("pfe",e.localName):this.markId=`${e.localName}-${e.id}`:this.markId=Ue(e.localName),performance.mark(`${this.markId}-defined`)}hostUpdate(){this.hasMeasured||this.measure()}measure(){this.hasMeasured=!0,performance.mark(`${this.markId}-rendered`),performance.measure(`${this.markId}-from-navigation-to-first-render`,void 0,`${this.markId}-rendered`),performance.measure(`${this.markId}-from-defined-to-first-render`,`${this.markId}-defined`,`${this.markId}-rendered`),this.host.removeController(this)}}(e)}))}}const Ft=A`:host { | |
display: flex; | |
flex-direction: column; | |
gap: 0.625em; | |
} | |
[part] { | |
display: contents; | |
} | |
::slotted(:is(h1, h2, h3, h4, h5)) { | |
font-weight: 500; | |
font-size: 0.875em; | |
margin-top: 0; | |
margin-bottom: 0; | |
} | |
:host([header-hidden]) .header ::slotted(*) { | |
position: absolute; | |
width: 1px; | |
height: 1px; | |
padding: 0; | |
margin: -1px; | |
overflow: hidden; | |
clip: rect(0, 0, 0, 0); | |
white-space: nowrap; | |
border: 0; | |
} | |
`;let Wt=class extends we{constructor(){super(...arguments),this.headerHidden=!1,this.logger=new je(this),this.slots=new ft(this,{slots:["header"]})}updateAccessibility(){const e=this.querySelector('[slot="header"]'),t=this.querySelector("ul");e&&t?(e.id||(e.id=Ue("rh-footer-links")),t.setAttribute("aria-labelledby",e.id)):this.logger.warn("This links set doesn't have a valid header associated with it.")}render(){return ae` | |
<div part="header" class="header"> | |
<slot name="header"></slot> | |
</div> | |
<div part="default" class="default"> | |
<slot name="panel"></slot> | |
<slot></slot> | |
</div> | |
`}};Wt.styles=Ft,_([Te({type:Boolean,attribute:"header-hidden",reflect:!0})],Wt.prototype,"headerHidden",void 0),_([Et()],Wt.prototype,"updateAccessibility",null),Wt=_([Be("rh-footer-links")],Wt);const Vt=A`:host { | |
display: block; | |
position: relative; | |
} | |
/** Add margin to blocks that aren't first in the sidebar. */ | |
/** Add the separator to blocks in the middle */ | |
:host(:not(:last-of-type, :first-of-type)):after { | |
content: ""; | |
display: block; | |
height: 1px; | |
width: 100%; | |
margin-block-start: var(--rh-space-2xl, 32px); | |
background: var(--_border-color); | |
} | |
::slotted(*) { | |
color: var(--rh-color-text-primary-on-dark, #ffffff); | |
font-size: var(--rh-font-size-body-text-sm, 0.875rem); | |
text-decoration: none; | |
max-width: 650px; | |
} | |
::slotted(:is(h1, h2, h3, h4, h5)) { | |
font-weight: var(--rh-font-weight-heading-medium, 500) !important; | |
font-size: var(--rh-font-size-body-text-sm, 0.875rem) !important; | |
margin-block: 0 var(--rh-space-lg, 16px) !important; | |
color: var(--rh-color-white, #ffffff) !important; | |
} | |
::slotted(:last-child) { | |
margin-block-end: 0 !important; | |
} | |
.content ::slotted(*) { | |
color: var(--rh-color-text-secondary-on-dark, #d2d2d2); | |
font-family: var(--rh-font-family-body-text, RedHatText, "Red Hat Text", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", "Noto Sans KR", "Noto Sans Malayalam", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", Overpass, Helvetica, Arial, sans-serif); | |
font-weight: var(--rh-font-weight-body-text-regular, 400); | |
} | |
`;let qt=class extends we{render(){return ae` | |
<div class="base" part="base"> | |
<div class="header" part="header"> | |
<slot name="header"></slot> | |
</div> | |
<div class="content" part="content"> | |
<slot></slot> | |
</div> | |
</div> | |
`}};qt.styles=Vt,qt=_([Be("rh-footer-block")],qt);const Kt=A`:host { | |
flex: 1 1 auto; | |
display: block; | |
width: 100%; | |
} | |
`,Zt=(new Date).getFullYear();let Qt=class extends we{render(){return ae`<slot>© ${Zt} Red Hat, Inc.</slot>`}};var Jt;Qt.styles=Kt,Qt=_([Be("rh-footer-copyright")],Qt);let Xt=class extends we{constructor(){super(...arguments),this.colorPalette="darker",Jt.set(this,new ft(this,{slots:["primary-start","primary-end","secondary-start","secondary-end","links-primary","links-secondary","tertiary"]}))}render(){const e=x(this,Jt,"f").hasSlotted("tertiary");return ae` | |
<div class="section global-base ${Re({hasTertiary:e})}" part="section base"> | |
<slot name="base"> | |
<div class="global-logo" part="logo"> | |
<slot name="logo"> | |
<a class="global-logo-anchor" | |
part="logo-anchor" | |
href="https://www.redhat.com" | |
alt="Visit Red Hat"> | |
<svg title="Red Hat logo" | |
class="global-logo-image" | |
part="logo-image" | |
data-name="Layer 1" | |
xmlns="http://www.w3.org/2000/svg" | |
viewBox="0 0 192 145"> | |
<defs> | |
<style> | |
.band { | |
fill: transparent; | |
} | |
</style> | |
</defs> | |
<path class="band" d="M157.77,62.61a14,14,0,0,1,.31,3.42c0,14.88-18.1,17.46-30.61,17.46C78.83,83.49,42.53,53.26,42.53,44a6.43,6.43,0,0,1,.22-1.94l-3.66,9.06a18.45,18.45,0,0,0-1.51,7.33c0,18.11,41,45.48,87.74,45.48,20.69,0,36.43-7.76,36.43-21.77,0-1.08,0-1.94-1.73-10.13Z" /> | |
<path class="cls-1" d="M127.47,83.49c12.51,0,30.61-2.58,30.61-17.46a14,14,0,0,0-.31-3.42l-7.45-32.36c-1.72-7.12-3.23-10.35-15.73-16.6C124.89,8.69,103.76.5,97.51.5,91.69.5,90,8,83.06,8c-6.68,0-11.64-5.6-17.89-5.6-6,0-9.91,4.09-12.93,12.5,0,0-8.41,23.72-9.49,27.16A6.43,6.43,0,0,0,42.53,44c0,9.22,36.3,39.45,84.94,39.45M160,72.07c1.73,8.19,1.73,9.05,1.73,10.13,0,14-15.74,21.77-36.43,21.77C78.54,104,37.58,76.6,37.58,58.49a18.45,18.45,0,0,1,1.51-7.33C22.27,52,.5,55,.5,74.22c0,31.48,74.59,70.28,133.65,70.28,45.28,0,56.7-20.48,56.7-36.65,0-12.72-11-27.16-30.83-35.78" /> | |
</svg> | |
</a> | |
</slot> | |
</div> | |
<div class="global-primary" part="primary"> | |
<slot name="primary"> | |
<div class="global-primary-start" part="primary-start" ?hidden=${!x(this,Jt,"f").hasSlotted("primary-start")}> | |
<slot name="primary-start"></slot> | |
</div> | |
<div class="global-links-primary" part="links-primary" ?hidden=${!x(this,Jt,"f").hasSlotted("links-primary")}> | |
<slot name="links-primary"></slot> | |
</div> | |
<div class="global-primary-end" part="primary-end" ?hidden=${!x(this,Jt,"f").hasSlotted("primary-end")}> | |
<slot name="primary-end"></slot> | |
</div> | |
</slot> | |
</div> | |
<div class="spacer" part="spacer"></div> | |
<div class="global-secondary" part="secondary"> | |
<slot name="secondary"> | |
<div class="global-secondary-start" part="secondary-start" ?hidden=${!x(this,Jt,"f").hasSlotted("secondary-start")}> | |
<slot name="secondary-start"></slot> | |
</div> | |
<div class="global-links-secondary" part="links-secondary" ?hidden=${!x(this,Jt,"f").hasSlotted("links-secondary")}> | |
<slot name="links-secondary"></slot> | |
</div> | |
<div class="global-secondary-end" part="secondary-end" ?hidden=${!x(this,Jt,"f").hasSlotted("secondary-end")}> | |
<slot name="secondary-end"></slot> | |
</div> | |
</slot> | |
</div> | |
<div class="global-tertiary" part="tertiary" ?hidden=${!x(this,Jt,"f").hasSlotted("tertiary")}> | |
<slot name="tertiary"></slot> | |
</div> | |
</slot> | |
</div> | |
`}};function Yt(e,t){return new CustomEvent(e,{bubbles:!0,composed:!0,detail:t})} | |
/** | |
* @license | |
* Copyright 2018 Google LLC | |
* SPDX-License-Identifier: BSD-3-Clause | |
*/Jt=new WeakMap,Xt.styles=[Fe,Ze],_([at(),Te({reflect:!0,attribute:"color-palette"})],Xt.prototype,"colorPalette",void 0),Xt=_([Be("rh-global-footer")],Xt);const Gt=Me(class extends Ne{constructor(e){var t;if(super(e),e.type!==Ie||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,r)=>{const o=e[r];return null==o?t:t+`${r=r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(e,[t]){const{style:r}=e.element;if(void 0===this.vt){this.vt=new Set;for(const e in t)this.vt.add(e);return this.render(t)}this.vt.forEach((e=>{null==t[e]&&(this.vt.delete(e),e.includes("-")?r.removeProperty(e):r[e]="")}));for(const e in t){const o=t[e];null!=o&&(this.vt.add(e),e.includes("-")?r.setProperty(e,o):r[e]=o)}return ne}});var er=[{name:"web",path:"https://access.redhat.com/webassets/avalon/j/lib/rh-iconfont-svgs"},{name:"rh",path:"https://access.redhat.com/webassets/avalon/j/lib/rh-iconfont-svgs"}],tr=(e,t,r)=>{let o=new RegExp(`^${t}(-icon)?-(.*)`),[,,a]=o.exec(e)??[];return`${r}/${`${t}-icon-${a}`}.svg`};var rr=Object.defineProperty,or=Object.getOwnPropertyDescriptor,ar=(e,t,r,o)=>{for(var a,i=o>1?void 0:o?or(t,r):t,n=e.length-1;n>=0;n--)(a=e[n])&&(i=(o?a(t,r,i):a(i))||i);return o&&i&&rr(t,r,i),i},ir=A`:host{--context:var(--pfe-icon--context, light);position:relative;display:inline-block;box-sizing:content-box!important;width:fit-content!important;height:fit-content!important;line-height:0;max-width:var(--pfe-icon--size,var(--pfe-theme--icon-size,1em));max-height:var(--pfe-icon--size,var(--pfe-theme--icon-size,1em))}:host svg{width:var(--pfe-icon--size,var(--pfe-theme--icon-size,1em));height:var(--pfe-icon--size,var(--pfe-theme--icon-size,1em))}:host([block]){display:block;margin-bottom:var(--pfe-icon--spacing,var(--pfe-theme--container-spacer,1rem));margin-top:var(--pfe-icon--spacing,var(--pfe-theme--container-spacer,1rem))}:host([block]):first-child{margin-top:0}:host(:not(.load-failed)){vertical-align:middle;border-radius:50%;background-color:var(--pfe-icon--BackgroundColor,transparent);border:var(--pfe-icon--BorderWidth,var(--pfe-theme--ui--border-width,1px)) var(--pfe-theme--ui--border-style,solid) var(--pfe-icon--BorderColor,var(--pfe-icon--BackgroundColor,transparent));padding:var(--pfe-icon--Padding,0)}:host(:not(.load-failed)) filter feFlood{flood-color:var(--pfe-icon--color,var(--pfe-icon--Color,var(--pfe-broadcasted--text,#3c3f42)))}:host(:not(.load-failed)) .pfe-icon--fallback{display:none}:host([size="2x"]){max-width:var(--pfe-icon--size,2em);max-height:var(--pfe-icon--size,2em)}:host([size="2x"]) svg{width:var(--pfe-icon--size,2em);height:var(--pfe-icon--size,2em)}:host([size="3x"]){max-width:var(--pfe-icon--size,3em);max-height:var(--pfe-icon--size,3em)}:host([size="3x"]) svg{width:var(--pfe-icon--size,3em);height:var(--pfe-icon--size,3em)}:host([size="4x"]){max-width:var(--pfe-icon--size,4em);max-height:var(--pfe-icon--size,4em)}:host([size="4x"]) svg{width:var(--pfe-icon--size,4em);height:var(--pfe-icon--size,4em)}:host([size=xl]){max-width:var(--pfe-icon--size,100px);max-height:var(--pfe-icon--size,100px)}:host([size=xl]) svg{width:var(--pfe-icon--size,100px);height:var(--pfe-icon--size,100px)}:host([size=lg]){max-width:var(--pfe-icon--size,64px);max-height:var(--pfe-icon--size,64px)}:host([size=lg]) svg{width:var(--pfe-icon--size,64px);height:var(--pfe-icon--size,64px)}:host([size=md]){max-width:var(--pfe-icon--size,32px);max-height:var(--pfe-icon--size,32px)}:host([size=md]) svg{width:var(--pfe-icon--size,32px);height:var(--pfe-icon--size,32px)}:host([size=sm]){max-width:var(--pfe-icon--size,14px);max-height:var(--pfe-icon--size,14px)}:host([size=sm]) svg{width:var(--pfe-icon--size,14px);height:var(--pfe-icon--size,14px)}:host([circled]:not([circled=false])){padding:var(--pfe-icon--Padding,.5em);background-color:var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--surface--lightest,#fff));border-color:var(--pfe-icon--BorderColor,var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--surface--border,#d2d2d2)))}:host([color=critical]:not([circled])) filter feFlood,:host([color=critical][circled=false]) filter feFlood{flood-color:var(--pfe-icon--color,var(--pfe-icon--Color,var(--pfe-theme--color--feedback--critical,#a30000)))}:host([color=critical][circled]:not([circled=false])){background-color:var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--feedback--critical,#a30000));border-color:var(--pfe-icon--BorderColor,var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--feedback--critical,#a30000)));--pfe-icon--context:dark}:host([color=important]:not([circled])) filter feFlood,:host([color=important][circled=false]) filter feFlood{flood-color:var(--pfe-icon--color,var(--pfe-icon--Color,var(--pfe-theme--color--feedback--important,#c9190b)))}:host([color=important][circled]:not([circled=false])){background-color:var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--feedback--important,#c9190b));border-color:var(--pfe-icon--BorderColor,var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--feedback--important,#c9190b)));--pfe-icon--context:dark}:host([color=moderate]:not([circled])) filter feFlood,:host([color=moderate][circled=false]) filter feFlood{flood-color:var(--pfe-icon--color,var(--pfe-icon--Color,var(--pfe-theme--color--feedback--moderate,#f0ab00)))}:host([color=moderate][circled]:not([circled=false])){background-color:var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--feedback--moderate,#f0ab00));border-color:var(--pfe-icon--BorderColor,var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--feedback--moderate,#f0ab00)))}:host([color=success]:not([circled])) filter feFlood,:host([color=success][circled=false]) filter feFlood{flood-color:var(--pfe-icon--color,var(--pfe-icon--Color,var(--pfe-theme--color--feedback--success,#3e8635)))}:host([color=success][circled]:not([circled=false])){background-color:var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--feedback--success,#3e8635));border-color:var(--pfe-icon--BorderColor,var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--feedback--success,#3e8635)));--pfe-icon--context:dark}:host([color=info]:not([circled])) filter feFlood,:host([color=info][circled=false]) filter feFlood{flood-color:var(--pfe-icon--color,var(--pfe-icon--Color,var(--pfe-theme--color--feedback--info,#06c)))}:host([color=info][circled]:not([circled=false])){background-color:var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--feedback--info,#06c));border-color:var(--pfe-icon--BorderColor,var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--feedback--info,#06c)));--pfe-icon--context:dark}:host([color=default]:not([circled])) filter feFlood,:host([color=default][circled=false]) filter feFlood{flood-color:var(--pfe-icon--color,var(--pfe-icon--Color,var(--pfe-theme--color--feedback--default,#4f5255)))}:host([color=default][circled]:not([circled=false])){background-color:var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--feedback--default,#4f5255));border-color:var(--pfe-icon--BorderColor,var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--feedback--default,#4f5255)));--pfe-icon--context:dark}:host([color=lightest]:not([circled])) filter feFlood,:host([color=lightest][circled=false]) filter feFlood{flood-color:var(--pfe-icon--color,var(--pfe-icon--Color,var(--pfe-theme--color--surface--lightest,#fff)))}:host([color=lightest][circled]){--pfe-icon--color:white}:host([color=lightest][circled]:not([circled=false])){--pfe-icon--context:var(--pfe-theme--color--surface--lightest--context, light);background-color:var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--surface--lightest,#fff));border-color:var(--pfe-icon--BorderColor,var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--surface--lightest,#fff)))}:host([color=base]:not([circled])) filter feFlood,:host([color=base][circled=false]) filter feFlood{flood-color:var(--pfe-icon--color,var(--pfe-icon--Color,var(--pfe-theme--color--surface--base,#f0f0f0)))}:host([color=base][circled]){--pfe-icon--color:white}:host([color=base][circled]:not([circled=false])){--pfe-icon--context:var(--pfe-theme--color--surface--base--context, light);background-color:var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--surface--base,#f0f0f0));border-color:var(--pfe-icon--BorderColor,var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--surface--base,#f0f0f0)))}:host([color=darker]:not([circled])) filter feFlood,:host([color=darker][circled=false]) filter feFlood{flood-color:var(--pfe-icon--color,var(--pfe-icon--Color,var(--pfe-theme--color--surface--darker,#3c3f42)))}:host([color=darker][circled]){--pfe-icon--color:white}:host([color=darker][circled]:not([circled=false])){--pfe-icon--context:var(--pfe-theme--color--surface--darker--context, dark);background-color:var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--surface--darker,#3c3f42));border-color:var(--pfe-icon--BorderColor,var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--surface--darker,#3c3f42)))}:host([color=darkest]:not([circled])) filter feFlood,:host([color=darkest][circled=false]) filter feFlood{flood-color:var(--pfe-icon--color,var(--pfe-icon--Color,var(--pfe-theme--color--surface--darkest,#151515)))}:host([color=darkest][circled]){--pfe-icon--color:white}:host([color=darkest][circled]:not([circled=false])){--pfe-icon--context:var(--pfe-theme--color--surface--darkest--context, dark);background-color:var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--surface--darkest,#151515));border-color:var(--pfe-icon--BorderColor,var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--surface--darkest,#151515)))}:host([color=complement]:not([circled])) filter feFlood,:host([color=complement][circled=false]) filter feFlood{flood-color:var(--pfe-icon--color,var(--pfe-icon--Color,var(--pfe-theme--color--surface--complement,#002952)))}:host([color=complement][circled]){--pfe-icon--color:white}:host([color=complement][circled]:not([circled=false])){--pfe-icon--context:var(--pfe-theme--color--surface--complement--context, saturated);background-color:var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--surface--complement,#002952));border-color:var(--pfe-icon--BorderColor,var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--surface--complement,#002952)))}:host([color=accent]:not([circled])) filter feFlood,:host([color=accent][circled=false]) filter feFlood{flood-color:var(--pfe-icon--color,var(--pfe-icon--Color,var(--pfe-theme--color--surface--accent,#004080)))}:host([color=accent][circled]){--pfe-icon--color:white}:host([color=accent][circled]:not([circled=false])){--pfe-icon--context:var(--pfe-theme--color--surface--accent--context, saturated);background-color:var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--surface--accent,#004080));border-color:var(--pfe-icon--BorderColor,var(--pfe-icon--BackgroundColor,var(--pfe-theme--color--surface--accent,#004080)))}:host(.load-failed) svg image,:host(.load-failed.has-fallback) svg,:host(.load-failed[on-fail=collapse]) svg{display:none}:host(.load-failed[on-fail=collapse]){max-width:var(--pfe-icon--size,0);max-height:var(--pfe-icon--size,0)}:host(.load-failed[on-fail=collapse]) svg{width:var(--pfe-icon--size,0);height:var(--pfe-icon--size,0)}`,nr=new Set;var sr=class extends we{constructor(){super(...arguments),this.icon="",this.size="xl",this.circled=!1,this.block=!1,this._iconHref=""}static getIconSet(e){e??(e="");let[t]=e.split("-");return{set:this._iconSets.get(t)}}static addIconSet(e,t,r){let o=r,a=this._iconSets.get(e);if(!o&&a&&"function"==typeof a?.resolver)o=a.resolver;else{if(o&&"function"!=typeof o)return je.warn("[pfe-icon]: The third input to addIconSet should be a function that parses and returns the icon's filename.");if(!o)return je.warn(`[pfe-icon]: The set ${e} needs a resolve function for the icon names.`)}this._iconSets.set(e,new class{constructor(e,t,r){this.name=e,this.path=t,this._resolveIconName=r}resolveIconName(e){return this._resolveIconName(e,this.name,this.path)}get resolver(){return this._resolveIconName}}(e,t,o)),document.body.dispatchEvent(new CustomEvent("pfe-icon:add-icon-set",{bubbles:!1,detail:{set:this._iconSets.get(e)}}))}get upgraded(){return this.image?.hasAttribute("href")??!1}connectedCallback(){super.connectedCallback(),nr.add(this)}render(){return ae`<div class="pfe-icon--fallback"><slot></slot></div>${ie`<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20"><filter id="${this._filterId}" color-interpolation-filters="sRGB" x="0" y="0" height="100%" width="100%"><feFlood result="COLOR"/><feComposite operator="in" in="COLOR" in2="SourceAlpha"/></filter><image href="${this._iconHref}" width="100%" height="100%" @load="${this._iconLoad}" @error="${this._iconLoadError}" style="${Gt({filter:this._filterId&&`url(#${this._filterId})`})}"></image></svg>`}`}disconnectedCallback(){super.disconnectedCallback(),nr.delete(this)}_iconLoad(){this.classList.remove("load-failed")}_iconLoadError(){this.classList.add("load-failed"),this.classList.toggle("has-fallback",!(!this.children.length&&!this.textContent?.trim().length))}_iconChanged(){this.updateIcon()}updateIcon(){let{set:e}=sr.getIconSet(this.icon);e&&(this._iconHref=e.resolveIconName(this.icon),this._filterId=Ue("filter"))}};sr.version="{{version}}",sr.styles=[ir],sr._iconSets=new Map,ar([Ht,Te({type:String,reflect:!0})],sr.prototype,"icon",2),ar([Te({type:String,reflect:!0})],sr.prototype,"size",2),ar([Te({type:String,reflect:!0})],sr.prototype,"color",2),ar([Te({type:String,reflect:!0,attribute:"on-fail"})],sr.prototype,"onFail",2),ar([Te({type:Boolean,reflect:!0})],sr.prototype,"circled",2),ar([Te({type:Boolean,reflect:!0})],sr.prototype,"block",2),ar([Pt(),Te({reflect:!0})],sr.prototype,"on",2),ar([He()],sr.prototype,"_iconHref",2),ar([He()],sr.prototype,"_filterId",2),ar([Le("svg image")],sr.prototype,"image",2),ar([it],sr.prototype,"_iconLoad",1),ar([it],sr.prototype,"_iconLoadError",1),ar([it],sr.prototype,"updateIcon",1),sr=ar([Be("pfe-icon"),function(e){window.PfeConfig??(window.PfeConfig={}),function({PfeIcon:e,config:t=window.PfeConfig}){if(t.IconSets??(t.IconSets=er),t.IconSets?.length)for(let{name:r,path:o,resolveIconName:a}of t.IconSets){let t="function"==typeof a?a:tr;e.addIconSet(r,o,t)}}({PfeIcon:e,config:window.PfeConfig}),document.body.addEventListener("pfe-icon:add-icon-set",(()=>{for(let e of nr)e.updateIcon()}))},jt()],sr);var dr=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,lr=(e,t,r,o)=>{for(var a,i=o>1?void 0:o?cr(t,r):t,n=e.length-1;n>=0;n--)(a=e[n])&&(i=(o?a(t,r,i):a(i))||i);return o&&i&&dr(t,r,i),i},hr=A`:host{transition-property:box-shadow,border;transition-timing-function:var(--pfe-theme--animation-timing,cubic-bezier(0.465,0.183,0.153,0.946));transition-duration:calc(var(--pfe-theme--animation-speed, .3s) / 2)}:host(.animating),:host([expanded]){background-color:var(--pfe-accordion--BackgroundColor--expanded,var(--pfe-theme--color--surface--lightest,#fff));--pfe-accordion--Color:var(--pfe-accordion--Color--expanded, var(--pfe-broadcasted--text, #3c3f42));--pfe-accordion--accent:var(--pfe-accordion--accent--expanded, var(--pfe-theme--color--ui-accent, #06c))}:host([expanded]:not(.animating)){--pfe-accordion--BoxShadow:var(--pfe-accordion--BoxShadow--expanded, 0 5px 4px rgba(140, 140, 140, 0.35))}:host([on=dark].animating),:host([on=dark][expanded]){background-color:var(--pfe-accordion--BackgroundColor--expanded,rgba(247,247,249,.1));--pfe-accordion--Color:var(--pfe-accordion--Color--expanded, var(--pfe-broadcasted--text--on-dark, #fff));--pfe-accordion--accent:var(--pfe-accordion--accent--expanded, var(--pfe-theme--color--ui-accent--on-dark, #73bcf7))}:host([expanded]:not(.animating)){--pfe-accordion--BoxShadow:var(--pfe-accordion--BoxShadow--expanded, none)}:host([on=saturated].animating),:host([on=saturated][expanded]){background-color:var(--pfe-accordion--BackgroundColor--expanded,rgba(0,0,0,.2));--pfe-accordion--Color:var(--pfe-accordion--Color--expanded, var(--pfe-broadcasted--text--on-saturated, #fff));--pfe-accordion--accent:var(--pfe-accordion--accent--expanded, var(--pfe-theme--color--ui-accent--on-saturated, #fff))}:host([expanded]:not(.animating)){--pfe-accordion--BoxShadow:var(--pfe-accordion--BoxShadow--expanded, none)}:host{position:relative;display:block;outline:0;box-sizing:border-box;color:var(--pfe-accordion--Color,var(--pfe-broadcasted--text,#3c3f42));box-shadow:var(--pfe-accordion--BoxShadow,0 5px 4px transparent);--pfe-icon--color:var(--pfe-accordion--Color, var(--pfe-broadcasted--text, #3c3f42));--pfe-icon--size:14px}:host([hidden]){display:none}:host *,:host ::after,:host ::before{box-sizing:border-box}#heading{margin:0}.pf-c-accordion__toggle{cursor:pointer;outline:0;position:relative;width:100%;margin:0;display:flex;align-items:center;justify-content:flex-start;gap:calc(var(--pfe-theme--container-padding,1rem) * 1.5);padding:var(--pfe-accordion--Padding,var(--pfe-theme--container-padding,1rem) calc(var(--pfe-theme--container-padding,1rem) * 1.5));background-color:transparent;color:var(--pfe-accordion--Color,var(--pfe-broadcasted--text,#3c3f42));text-align:left;font-family:var(--pfe-theme--font-family--heading, "Red Hat Display", "RedHatDisplay", "Overpass", Overpass, Arial, sans-serif);font-size:var(--pfe-accordion--FontSize--header, var(--pf-global--FontSize--xl, 1.25rem));font-weight:var(--pfe-accordion--FontWeight--header,var(--pfe-theme--font-weight--normal,400));text-align:var(--pfe-accordion--TextAlign,left);line-height:var(--pfe-theme--line-height, 1.5);--_typography-offset:calc((1em * var(--pfe-theme--line-height, 1.5) - 1em) / 2);border-style:var(--pfe-theme--surface--border-style,solid);border-width:var(--pfe-accordion--BorderWidth,var(--pfe-theme--surface--border-width,1px));border-color:var(--pfe-accordion--BorderColor,var(--pfe-theme--color--surface--border,#d2d2d2));border-right-color:transparent;border-left-color:transparent}.pf-c-accordion__toggle::before{position:absolute;content:"";top:-2px;left:-2px;width:calc(100% + var(--pfe-theme--ui--border-width--active,3px));height:calc(100% + var(--pfe-theme--ui--border-width--active,3px));border-radius:var(--pfe-theme--ui--border-radius,2px);border:var(--pfe-theme--ui--border-width--md,2px) var(--pfe-theme--ui--border-style,solid) transparent}.pf-c-accordion__toggle:focus::before{border-color:#6b9ff0}.pf-c-accordion__toggle:focus:not(:focus-visible)::before{border:unset}.pf-c-accordion__toggle .pf-c-accordion__toggle-icon{--_typography-offset:calc((1em * var(--pfe-theme--line-height, 1.5) - var(--pfe-icon--size, 14px)) / 2)}.pf-c-accordion__toggle .pf-c-accordion__toggle-text{margin-top:calc(-1 * var(--_typography-offset,5px));margin-bottom:calc(-1 * var(--_typography-offset,5px))}.pf-c-accordion__toggle .pf-c-accordion__toggle-icon{margin-top:calc(var(--_typography-offset,5px)/ 4)}:host(:not(:first-of-type)) .pf-c-accordion__toggle{border-top-width:0}.pf-c-accordion__toggle::after{position:absolute;content:"";top:-1px;left:-1px;bottom:-1px;background-color:var(--pfe-accordion--accent,transparent);width:calc(var(--pfe-accordion--accent--width,var(--pfe-theme--surface--border-width--active,3px)) - -1px);height:calc(100% - -1px - -1px);z-index:4;z-index:calc(var(--pfe-accordion--ZIndex,3) + 1)}.pf-c-accordion__toggle:active,.pf-c-accordion__toggle:hover,:host(:not([expanded])) .pf-c-accordion__toggle:focus{background-color:var(--pfe-accordion--BackgroundColor--active,var(--pfe-theme--color--surface--lighter,#f0f0f0));--pfe-accordion--Color:var(--pfe-accordion--Color--active, var(--pfe-broadcasted--text, #3c3f42))}:host(:not([expanded])) .pf-c-accordion__toggle:active,:host(:not([expanded])) .pf-c-accordion__toggle:focus,:host(:not([expanded])) .pf-c-accordion__toggle:hover{--pfe-accordion--accent:var(--pfe-accordion--accent--active, var(--pfe-theme--color--ui-accent, #06c))}:host([on=dark]) .pf-c-accordion__toggle:active,:host([on=dark]) .pf-c-accordion__toggle:hover,:host([on=dark]:not([expanded])) .pf-c-accordion__toggle:focus{background-color:var(--pfe-accordion--BackgroundColor--active,rgba(247,247,249,.1));--pfe-accordion--Color:var(--pfe-accordion--Color--active, var(--pfe-broadcasted--text, #3c3f42))}:host([on=dark]:not([expanded])) .pf-c-accordion__toggle:active,:host([on=dark]:not([expanded])) .pf-c-accordion__toggle:focus,:host([on=dark]:not([expanded])) .pf-c-accordion__toggle:hover{--pfe-accordion--accent:var(--pfe-accordion--accent--active, var(--pfe-theme--color--ui-accent--on-dark, #73bcf7))}:host([on=saturated]) .pf-c-accordion__toggle:active,:host([on=saturated]) .pf-c-accordion__toggle:hover,:host([on=saturated]:not([expanded])) .pf-c-accordion__toggle:focus{background-color:var(--pfe-accordion--BackgroundColor--active,rgba(0,0,0,.2));--pfe-accordion--Color:var(--pfe-accordion--Color--active, var(--pfe-broadcasted--text, #3c3f42))}:host([on=saturated]:not([expanded])) .pf-c-accordion__toggle:active,:host([on=saturated]:not([expanded])) .pf-c-accordion__toggle:focus,:host([on=saturated]:not([expanded])) .pf-c-accordion__toggle:hover{--pfe-accordion--accent:var(--pfe-accordion--accent--active, var(--pfe-theme--color--ui-accent--on-saturated, #fff))}:host(.animating) .pf-c-accordion__toggle,:host([expanded]) .pf-c-accordion__toggle{border-bottom-width:0}:host(.animating) .pf-c-accordion__toggle,:host([disclosure]:not([disclosure=false])) .pf-c-accordion__toggle,:host([expanded]) .pf-c-accordion__toggle{border-right-color:var(--pfe-accordion--BorderColor,var(--pfe-theme--color--surface--border,#d2d2d2));border-left-color:var(--pfe-accordion--BorderColor,var(--pfe-theme--color--surface--border,#d2d2d2))}:host([disclosure]:not([disclosure=false])) .pf-c-accordion__toggle{gap:calc(var(--pfe-theme--container-padding,1rem)/ 2);font-family:var(--pfe-theme--font-family, "Red Hat Text", "RedHatText", "Overpass", Overpass, Arial, sans-serif);font-size:var(--pfe-accordion--FontSize--header, var(--pf-global--FontSize--md, 1rem));font-weight:var(--pfe-accordion--FontWeight--header,var(--pfe-theme--font-weight--semi-bold,600))}.pf-c-accordion__toggle-wrapper{flex-grow:1;display:flex;align-items:center;justify-content:flex-start;gap:calc(var(--pfe-theme--container-padding,1rem) * 1.5)}.pf-c-accordion__toggle-text{max-width:var(--pfe-accordion--MaxWidth--content,80ch)}.pf-c-accordion__toggle-icon{align-self:flex-start;transition-property:transform;transition-duration:var(--pfe-theme--animation-speed, .3s);transition-timing-function:var(--pfe-theme--animation-timing,cubic-bezier(0.465,0.183,0.153,0.946))}:host([expanded]) .pf-c-accordion__toggle-icon{transform:rotate(90deg)}:host([disclosure]:not([disclosure=false])) .pf-c-accordion__toggle-icon{order:-1}.pf-c-accordion__toggle-accents{flex-grow:1}`,pr=e=>e instanceof HTMLElement&&!!e.tagName.match(/P|^H[1-6]/),fr=class extends Nt{constructor(e,t){super("change"),this.expanded=e,this.toggle=t}},mr=class extends we{constructor(){super(),this.expanded=!1,this.headingText="",this.headingTag="h3",this.slots=new ft(this,"accents",null),this.logger=new je(this),this.addEventListener("click",this._clickHandler)}get ariaExpandedState(){return String(!!this.expanded)}connectedCallback(){super.connectedCallback(),this.hidden=!0,this.id||(this.id=Ue("pfe-accordion"))}async _init(){let e=await this._getHeaderElement();e!==this._generatedHtag&&(this._generatedHtag=void 0),this.headingTag=e?.tagName.toLowerCase()??"h3",this.headingText=e?.textContent?.trim()??"",this.hidden=!1}render(){let e=Pe(this.headingTag);return Ee` | |
<${e} id="heading">${ae`<button id="button" aria-expanded="${this.ariaExpandedState}" class="pf-c-accordion__toggle"><span class="pf-c-accordion__toggle-wrapper"><span class="pf-c-accordion__toggle-text" part="text">${this.headingText||ae`<slot></slot>`} </span>${this.slots.hasSlotted("accents")?ae`<span class="pf-c-accordion__toggle-accents" part="accents"><slot name="accents"></slot></span>`:""}</span><pfe-icon icon="web-icon-caret-thin-right" on-fail="collapse" part="icon" class="pf-c-accordion__toggle-icon"></pfe-icon></button>`} | |
</${e}> | |
`}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._clickHandler)}async _getHeaderElement(){if(await this.updateComplete,this.firstElementChild||this.firstChild){if(this.firstElementChild){let[e,...t]=this.slots.getSlotted().filter(pr);return e?(t.length&&this.logger.warn("Heading currently only supports 1 tag; extra tags will be ignored."),e):void this.logger.warn("No heading information was provided.")}return this._generatedHtag||this.logger.warn("Header should contain at least 1 heading tag for correct semantics."),this._generatedHtag=document.createElement("h3"),this.firstChild?.nodeType===Node.TEXT_NODE?this._generatedHtag.textContent=this.firstChild.textContent:this._generatedHtag.textContent=this.textContent,this._generatedHtag}this.logger.warn("No header content provided")}_clickHandler(){let e=!this.expanded;this.dispatchEvent(new fr(e,this)),this.dispatchEvent(Yt("pfe-accordion:change",{expanded:e,toggle:this}))}_expandedChanged(){this.button?.setAttribute("aria-expanded",this.ariaExpandedState)}};mr.version="{{version}}",mr.styles=[hr],mr.shadowRootOptions={...we.shadowRootOptions,delegatesFocus:!0},lr([Te({attribute:"aria-controls",reflect:!0})],mr.prototype,"ariaControls",2),lr([Te({type:String,reflect:!0})],mr.prototype,"disclosure",2),lr([Ht,Te({type:Boolean,reflect:!0})],mr.prototype,"expanded",2),lr([Te({reflect:!0,attribute:"heading-text"})],mr.prototype,"headingText",2),lr([Te({reflect:!0,attribute:"heading-tag"})],mr.prototype,"headingTag",2),lr([Pt(),Te({reflect:!0})],mr.prototype,"on",2),lr([Le(".pf-c-accordion__toggle")],mr.prototype,"button",2),lr([Et()],mr.prototype,"_init",1),lr([it],mr.prototype,"_getHeaderElement",1),lr([it],mr.prototype,"_clickHandler",1),mr=lr([Be("pfe-accordion-header"),jt()],mr);var gr=Object.defineProperty,br=Object.getOwnPropertyDescriptor,ur=(e,t,r,o)=>{for(var a,i=o>1?void 0:o?br(t,r):t,n=e.length-1;n>=0;n--)(a=e[n])&&(i=(o?a(t,r,i):a(i))||i);return o&&i&&gr(t,r,i),i},vr=A`:host{display:none;overflow:hidden;will-change:height}:host([expanded]){display:block;position:relative}:host(.animating){display:block;transition:height .3s ease-in-out}`,_r=class extends Nt{constructor(e,t){super("animation-start"),this.panel=e,this.state=t}},xr=class extends Nt{constructor(e,t){super("animation-end"),this.panel=e,this.expanded=t}},kr=class extends we{constructor(){super(...arguments),this.expanded=!1}get animates(){return"false"!==this.animation}connectedCallback(){super.connectedCallback(),this.expanded=!1,this.id||(this.id=Ue("pfe-collapse-panel"))}render(){return ae`<slot></slot>`}_expandedChanged(e,t){t?this._maybeAnimate("opening"):e&&this._maybeAnimate("closing")}async _maybeAnimate(e){if(this.animates){"opening"===e&&await this.updateComplete;let{height:t}=this.getBoundingClientRect();this._fireAnimationEvent(e);let r=[0,t];"closing"===e&&r.reverse(),this._animate(...r)}}_animate(e,t){this.classList.add("animating"),this.style.height=`${e}px`,requestAnimationFrame((()=>{requestAnimationFrame((()=>{this.style.height=`${t}px`,this.classList.add("animating"),this.addEventListener("transitionend",this._transitionEndHandler,{once:!0})}))}))}_transitionEndHandler(e){let t=e.target;t.style.height="",t.classList.remove("animating");let{expanded:r}=this;this.dispatchEvent(Yt("pfe-collapse-panel:animation-end",{expanded:r,panel:this})),this.dispatchEvent(new xr(this,r))}_fireAnimationEvent(e){this.dispatchEvent(Yt("pfe-collapse-panel:animation-start",{state:e,panel:this})),this.dispatchEvent(new _r(this,e))}};kr.version="{{version}}",kr.styles=[vr],ur([Ht,Te({type:Boolean,reflect:!0})],kr.prototype,"expanded",2),ur([Te({reflect:!0})],kr.prototype,"animation",2),kr=ur([Be("pfe-collapse-panel"),jt()],kr);var yr=Object.defineProperty,wr=Object.getOwnPropertyDescriptor,Cr=(e,t,r,o)=>{for(var a,i=o>1?void 0:o?wr(t,r):t,n=e.length-1;n>=0;n--)(a=e[n])&&(i=(o?a(t,r,i):a(i))||i);return o&&i&&yr(t,r,i),i},Sr=A`:host{transition-property:box-shadow,border;transition-timing-function:var(--pfe-theme--animation-timing,cubic-bezier(0.465,0.183,0.153,0.946));transition-duration:calc(var(--pfe-theme--animation-speed, .3s) / 2)}:host(.animating),:host([expanded]){background-color:var(--pfe-accordion--BackgroundColor--expanded,var(--pfe-theme--color--surface--lightest,#fff));--pfe-accordion--Color:var(--pfe-accordion--Color--expanded, var(--pfe-broadcasted--text, #3c3f42));--pfe-accordion--accent:var(--pfe-accordion--accent--expanded, var(--pfe-theme--color--ui-accent, #06c))}:host([expanded]:not(.animating)){--pfe-accordion--BoxShadow:var(--pfe-accordion--BoxShadow--expanded, 0 5px 4px rgba(140, 140, 140, 0.35))}:host([on=dark].animating),:host([on=dark][expanded]){background-color:var(--pfe-accordion--BackgroundColor--expanded,rgba(247,247,249,.1));--pfe-accordion--Color:var(--pfe-accordion--Color--expanded, var(--pfe-broadcasted--text--on-dark, #fff));--pfe-accordion--accent:var(--pfe-accordion--accent--expanded, var(--pfe-theme--color--ui-accent--on-dark, #73bcf7))}:host([expanded]:not(.animating)){--pfe-accordion--BoxShadow:var(--pfe-accordion--BoxShadow--expanded, none)}:host([on=saturated].animating),:host([on=saturated][expanded]){background-color:var(--pfe-accordion--BackgroundColor--expanded,rgba(0,0,0,.2));--pfe-accordion--Color:var(--pfe-accordion--Color--expanded, var(--pfe-broadcasted--text--on-saturated, #fff));--pfe-accordion--accent:var(--pfe-accordion--accent--expanded, var(--pfe-theme--color--ui-accent--on-saturated, #fff))}:host([expanded]:not(.animating)){--pfe-accordion--BoxShadow:var(--pfe-accordion--BoxShadow--expanded, none)}:host{display:none;overflow:hidden;will-change:height;border-color:transparent;opacity:0;position:relative;box-sizing:border-box;width:100%;z-index:0;margin:0;padding:0;color:var(--pfe-accordion--Color,var(--pfe-broadcasted--text,#3c3f42));box-shadow:var(--pfe-accordion--BoxShadow,0 5px 4px transparent);box-sizing:border-box;border-style:var(--pfe-theme--surface--border-style,solid);border-color:var(--pfe-accordion--BorderColor,var(--pfe-theme--color--surface--border,#d2d2d2));border-width:var(--pfe-accordion--BorderWidth,var(--pfe-theme--surface--border-width,1px));border-top-width:0;border-bottom-width:0}:host *,:host ::after,:host ::before{box-sizing:border-box}:host ::slotted(*){--pfe-accordion--BoxShadow:none}:host::after{position:absolute;content:"";bottom:calc(-1 * var(--pfe-accordion--BorderWidth,var(--pfe-theme--surface--border-width,1px)));left:calc(-1 * var(--pfe-accordion--BorderWidth,var(--pfe-theme--surface--border-width,1px)));background-color:var(--pfe-accordion--accent,transparent);width:calc(var(--pfe-accordion--accent--width,var(--pfe-theme--surface--border-width--active,3px)) - calc(-1 * var(--pfe-accordion--BorderWidth,var(--pfe-theme--surface--border-width,1px))));height:calc(100% - calc(-1 * var(--pfe-accordion--BorderWidth,var(--pfe-theme--surface--border-width,1px))));z-index:calc(var(--pfe-accordion--ZIndex,3) + 1)}.pf-c-accordion__expanded-content{position:relative;display:block;width:100%;padding:var(--pfe-theme--container-spacer,1rem);display:inline-block;padding:var(--pfe-accordion--Padding,var(--pfe-theme--container-padding,1rem) calc(var(--pfe-theme--container-padding,1rem) * 1.5))}.pf-c-accordion__expanded-content::after{clear:both;content:"";display:table}:host([disclosure=true]) .pf-c-accordion__expanded-content{padding:var(--pfe-accordion__panel-container--Padding,0 calc(var(--pfe-theme--container-padding,1rem) * 3) calc(var(--pfe-theme--container-padding,1rem)) calc(var(--pfe-theme--container-padding,1rem) * 1.5))}:host(:not([full-width])) .pf-c-accordion__expanded-content{max-width:var(--pfe-accordion--MaxWidth--content,80ch)}:host(.animating){border-left-color:var(--pfe-accordion--accent,transparent);opacity:1}:host(.animating[hidden]),:host([expanded]:not(.animating)){margin-bottom:0;border-bottom-width:var(--pfe-accordion--BorderWidth,var(--pfe-theme--surface--border-width,1px));display:block!important;position:relative;opacity:1}:host([expanded]:not(.animating)){overflow:visible}:host{transition-property:box-shadow,border;transition-timing-function:var(--pfe-theme--animation-timing,cubic-bezier(0.465,0.183,0.153,0.946));transition-duration:calc(var(--pfe-theme--animation-speed, .3s) / 2)}:host(.animating),:host([expanded]){--pfe-accordion--BackgroundColor:var(--pfe-accordion--BackgroundColor--expanded, var(--pfe-theme--color--surface--lightest, #fff));--pfe-accordion--Color:var(--pfe-accordion--Color--expanded, var(--pfe-broadcasted--text, #3c3f42));--pfe-accordion--accent:var(--pfe-accordion--accent--expanded, var(--pfe-theme--color--ui-accent, #06c))}:host([expanded]:not(.animating)){--pfe-accordion--BoxShadow:var(--pfe-accordion--BoxShadow--expanded, 0 5px 4px rgba(140, 140, 140, 0.35))}:host([on=dark].animating),:host([on=dark][expanded]){--pfe-accordion--BackgroundColor:var(--pfe-accordion--BackgroundColor--expanded, rgba(247, 247, 249, 0.1));--pfe-accordion--Color:var(--pfe-accordion--Color--expanded, var(--pfe-broadcasted--text--on-dark, #fff));--pfe-accordion--accent:var(--pfe-accordion--accent--expanded, var(--pfe-theme--color--ui-accent--on-dark, #73bcf7))}:host([expanded]:not(.animating)){--pfe-accordion--BoxShadow:var(--pfe-accordion--BoxShadow--expanded, none)}:host([on=saturated].animating),:host([on=saturated][expanded]){--pfe-accordion--BackgroundColor:var(--pfe-accordion--BackgroundColor--expanded, rgba(0, 0, 0, 0.2));--pfe-accordion--Color:var(--pfe-accordion--Color--expanded, var(--pfe-broadcasted--text--on-saturated, #fff));--pfe-accordion--accent:var(--pfe-accordion--accent--expanded, var(--pfe-theme--color--ui-accent--on-saturated, #fff))}:host([expanded]:not(.animating)){--pfe-accordion--BoxShadow:var(--pfe-accordion--BoxShadow--expanded, none)}`,$r=class extends we{constructor(){super(...arguments),this.expanded=!1}connectedCallback(){super.connectedCallback(),this.id||(this.id=Ue("pfe-accordion-panel")),this.setAttribute("role","region")}render(){return ae`<div tabindex="-1"><div id="container" class="pf-c-accordion__expanded-content" part="container"><slot></slot></div></div>`}};$r.version="{{version}}",$r.styles=[...kr.styles,Sr],Cr([Te({type:String,reflect:!0})],$r.prototype,"disclosure",2),Cr([Te({type:Boolean,reflect:!0})],$r.prototype,"expanded",2),Cr([Te({attribute:"aria-labelledby",reflect:!0})],$r.prototype,"ariaLabelledby",2),Cr([Pt(),Te({reflect:!0})],$r.prototype,"on",2),$r=Cr([Be("pfe-accordion-panel"),jt()],$r);var Pr=Object.defineProperty,Ar=Object.getOwnPropertyDescriptor,Er=(e,t,r,o)=>{for(var a,i=o>1?void 0:o?Ar(t,r):t,n=e.length-1;n>=0;n--)(a=e[n])&&(i=(o?a(t,r,i):a(i))||i);return o&&i&&Pr(t,r,i),i},Br=A`:host{transition-property:box-shadow,border;transition-timing-function:var(--pfe-theme--animation-timing,cubic-bezier(0.465,0.183,0.153,0.946));transition-duration:calc(var(--pfe-theme--animation-speed, .3s) / 2)}:host(.animating),:host([expanded]){background-color:var(--pfe-accordion--BackgroundColor--expanded,var(--pfe-theme--color--surface--lightest,#fff));--pfe-accordion--Color:var(--pfe-accordion--Color--expanded, var(--pfe-broadcasted--text, #3c3f42));--pfe-accordion--accent:var(--pfe-accordion--accent--expanded, var(--pfe-theme--color--ui-accent, #06c))}:host([expanded]:not(.animating)){--pfe-accordion--BoxShadow:var(--pfe-accordion--BoxShadow--expanded, 0 5px 4px rgba(140, 140, 140, 0.35))}:host([on=dark].animating),:host([on=dark][expanded]){background-color:var(--pfe-accordion--BackgroundColor--expanded,rgba(247,247,249,.1));--pfe-accordion--Color:var(--pfe-accordion--Color--expanded, var(--pfe-broadcasted--text--on-dark, #fff));--pfe-accordion--accent:var(--pfe-accordion--accent--expanded, var(--pfe-theme--color--ui-accent--on-dark, #73bcf7))}:host([expanded]:not(.animating)){--pfe-accordion--BoxShadow:var(--pfe-accordion--BoxShadow--expanded, none)}:host([on=saturated].animating),:host([on=saturated][expanded]){background-color:var(--pfe-accordion--BackgroundColor--expanded,rgba(0,0,0,.2));--pfe-accordion--Color:var(--pfe-accordion--Color--expanded, var(--pfe-broadcasted--text--on-saturated, #fff));--pfe-accordion--accent:var(--pfe-accordion--accent--expanded, var(--pfe-theme--color--ui-accent--on-saturated, #fff))}:host([expanded]:not(.animating)){--pfe-accordion--BoxShadow:var(--pfe-accordion--BoxShadow--expanded, none)}:host{display:block;position:relative;overflow:hidden;margin:0;width:var(--pfe-accordion--Width,100%)}:host{overflow:visible}:host([hidden]),[hidden]{display:none!important}`;var zr,Tr,Hr,Lr,Or,Ir,Mr=class extends Nt{constructor(e,t){super("expand"),this.toggle=e,this.panel=t}},Nr=class extends Nt{constructor(e,t){super("collapse"),this.toggle=e,this.panel=t}},Rr=/^[0-9.]+(?<unit>[a-zA-Z]+)/g,Ur=class extends we{constructor(){super(...arguments),this.on="light",this.history=!1,this.expandedIndex=[],this._updateHistory=!0,this.expandedSets=new Set,this.initialized=!1,this.logger=new je(this),this.styles=getComputedStyle(this),this.transitionDuration=this.getAnimationDuration()}static isHeader(e){return e instanceof mr}static isPanel(e){return e instanceof $r}connectedCallback(){super.connectedCallback(),this.addEventListener("change",this._changeHandler),this.addEventListener("keydown",this._keydownHandler)}render(){return ae`<slot></slot>`}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("popstate",this._updateStateFromURL)}async _init(){this.initialized||(this._manualDisclosure=this.getAttribute("disclosure"),await this.updateComplete,this.initialized=!0),this.updateAccessibility(),this._updateStateFromURL()}_changeHandler(e){if(this.classList.contains("animating"))return;let t=this._getIndex(e.target);e.expanded?this.expand(t):this.collapse(t),this._updateURLHistory()}_expandHeader(e){let t=this._getIndex(e);this.expandedSets.add(t),e.expanded=!0}async _expandPanel(e){if(!e)return void this.logger.error("Trying to expand a panel that doesn't exist.");if(e.expanded)return;e.expanded=!0,e.hidden=!1,await e.updateComplete;let t=e.getBoundingClientRect();this._animate(e,0,t.height)}_collapseHeader(e){let t=this._getIndex(e);this.expandedSets.delete(t),e.expanded=!1}async _collapsePanel(e){if(!e)return void this.logger.error("Trying to collapse a panel that doesn't exist");if(await e.updateComplete,!e.expanded)return;let t=e.getBoundingClientRect();e.expanded=!1,e.hidden=!0,this._animate(e,t.height,0)}getAnimationDuration(){if("computedStyleMap"in this)return this.computedStyleMap().get("transition-duration")?.to("ms").value;{let{transitionDuration:e}=this.styles,t=Rr.exec(e)?.groups;if(!t)return 0;let r=parseFloat(e);return"s"===t.unit?1e3*r:r}}async _animate(e,t,r){if(e){let o=e.previousElementSibling,a=this.getAnimationDuration();a&&(this.transitionDuration=a);let i=this.transitionDuration??0;o?.classList.add("animating"),e.classList.add("animating");let n=e.animate({height:[`${t}px`,`${r}px`]},{duration:i});n.play(),await n.finished,o?.classList.remove("animating"),e.classList.remove("animating"),e.style.removeProperty("height"),e.hidden=!e.expanded}}async _keydownHandler(e){let t,r=e.target;if(Ur.isHeader(r)){switch(e.key){case"ArrowDown":e.preventDefault(),t=this._nextHeader();break;case"ArrowUp":e.preventDefault(),t=this._previousHeader();break;case"Home":e.preventDefault(),t=this._firstHeader();break;case"End":e.preventDefault(),t=this._lastHeader();break;default:return}t?.focus?.()}}_allHeaders(){return Array.from(this.children).filter(Ur.isHeader)}_allPanels(){return Array.from(this.children).filter(Ur.isPanel)}_panelForHeader(e){let t=e.nextElementSibling;if(t)return function(e){return e instanceof Element&&"pfe-accordion-panel"===e.tagName.toLowerCase()}(t)?t:void this.logger.error("Sibling element to a header needs to be a panel")}_previousHeader(){let e=this._allHeaders(),t=e.findIndex((e=>e.matches(":focus,:focus-within")))-1;return e[(t+e.length)%e.length]}_nextHeader(){let e=this._allHeaders(),t=e.findIndex((e=>e.matches(":focus,:focus-within")))+1;return e[t%e.length]}_firstHeader(){return this._allHeaders()[0]}_lastHeader(){let e=this._allHeaders();return e[e.length-1]}async _expandedIndexChanged(e,t){await this.updateComplete,e!==t&&Array.isArray(t)&&[...t].reverse().forEach((e=>this.expand(e-1)))}_getIndex(e){return Ur.isHeader(e)?this._allHeaders().findIndex((t=>t.id===e.id)):Ur.isPanel(e)?this._allPanels().findIndex((t=>t.id===e.id)):(this.logger.warn("The _getIndex method expects to receive a header or panel element."),-1)}_getIndexesFromURL(){let e=new URLSearchParams(window.location.search);if(e.has(this.id)){let t=(e.get(this.id)??"").split("-");return t.length<0?[]:t.map((e=>parseInt(e.trim(),10)-1))}}_updateURLHistory(){if(!this.history||!this._updateHistory)return;if(!this.id)return void this.logger.error("The history feature cannot update the URL without an ID added to the pfe-accordion tag.");let e=Array.from(this.expandedSets,(e=>e+1)).sort(((e,t)=>e-t)).join("-"),t=new URL(window.location.href);this.expandedSets.size>0?t.searchParams.set(this.id,e):t.searchParams.delete(this.id),history.replaceState({},"",t.toString())}_updateStateFromURL(){let e=this._getIndexesFromURL()??[];this._updateHistory=!1,e.forEach((e=>this.expand(e))),this._updateHistory=!0}updateAccessibility(){let e=this._allHeaders();e.forEach((e=>{let t=this._panelForHeader(e);t&&(e.setAttribute("aria-controls",t.id),t.setAttribute("aria-labelledby",e.id),t.hidden=!t.expanded)})),1===e.length?this.disclosure=this._manualDisclosure??"true":e.length>1&&(this.disclosure="false")}toggle(e){this._allHeaders()[e].expanded?this.collapse(e):this.expand(e)}expand(e){if(null==e)return;e=parseInt(`${e}`,10);let t=this._allHeaders()[e];if(!t)return;let r=this._panelForHeader(t);!t||!r||(this._expandHeader(t),this._expandPanel(r),t.focus(),this.dispatchEvent(new Mr(t,r)),this.dispatchEvent(Yt("pfe-accordion:expand",{toggle:t,panel:r})))}expandAll(){let e=this._allHeaders(),t=this._allPanels();e.forEach((e=>this._expandHeader(e))),t.forEach((e=>this._expandPanel(e)))}collapse(e){let t=this._allHeaders(),r=this._allPanels(),o=t[e],a=r[e];!o||!a||(this._collapseHeader(o),this._collapsePanel(a),this.dispatchEvent(new Nr(o,a)),this.dispatchEvent(Yt("pfe-accordion:collapse",{toggle:o,panel:a})))}collapseAll(){let e=this._allHeaders(),t=this._allPanels();e.forEach((e=>this._collapseHeader(e))),t.forEach((e=>this._collapsePanel(e)))}};function Dr(e){return!!e.match(/^H[1-6]$/i)}Ur.version="{{version}}",Ur.styles=[Br],Er([function(e){return function(t,r){t.constructor.addInitializer((t=>{t.__colorContextProvider=new St(t,e)}))}}(),Te({reflect:!0,attribute:"color-palette"})],Ur.prototype,"colorPalette",2),Er([function(e){return function(t,r){let{alias:o,...a}=e,i=t.constructor,n=i.getPropertyOptions(o);i.createProperty(r,{...n,...a}),i.addInitializer((t=>{t.addController(new At(t,e,r))}))}}({alias:"colorPalette",attribute:"color"})],Ur.prototype,"color",2),Er([Pt(),Te({reflect:!0})],Ur.prototype,"on",2),Er([function(...e){return function(t,r){t.constructor.addInitializer((t=>{let o=t;ut.instances.has(o)||ut.instances.set(o,new ut(o)),ut.instances.get(o)?.initProp(r,e)}))}}("pfe-accordion-header","pfe-accordion-panel"),Te({type:String,reflect:!0})],Ur.prototype,"disclosure",2),Er([Ht,Te({type:Boolean})],Ur.prototype,"history",2),Er([Ht,Te({attribute:"expanded-index",converter:Mt})],Ur.prototype,"expandedIndex",2),Er([He()],Ur.prototype,"_updateHistory",2),Er([Et()],Ur.prototype,"_init",1),Er([it],Ur.prototype,"_changeHandler",1),Er([it],Ur.prototype,"_getIndexesFromURL",1),Er([it],Ur.prototype,"_updateURLHistory",1),Er([it],Ur.prototype,"_updateStateFromURL",1),Ur=Er([Be("pfe-accordion"),jt()],Ur);class jr extends we{constructor(){super(...arguments),zr.add(this),Tr.set(this,new nt(this,`(min-width: ${qe})`)),Hr.set(this,new je(this)),this.colorPalette="darker"}static getImportURL(e){const t=new URL(e,import.meta.url);return"file:"===t.protocol?new URL(e,window.location.href):t}connectedCallback(){super.connectedCallback(),this.updateAccessibility()}render(){const e=!x(this,Tr,"f").mediaQueryList?.matches;return ae` | |
<footer class="base ${Re({isMobile:e})}" part="base"> | |
<slot name="base"> | |
<div class="section header" part="section header"> | |
<slot name="header"> | |
<div class="header-primary" part="header-primary"> | |
<slot name="header-primary"> | |
<div class="logo" part="logo"> | |
<slot name="logo"> | |
<a href="/en"> | |
<img alt="Red Hat" src="https://static.redhat.com/libs/redhat/brand-assets/2/corp/logo--on-dark.svg"/> | |
</a> | |
</slot> | |
</div> | |
</slot> | |
</div> | |
<div class="header-secondary" part="header-secondary"> | |
<slot name="header-secondary"> | |
<div class="social-links"> | |
<rh-footer-links class="social-links-item" | |
part="social-links" | |
aria-label="Red Hat social media links"> | |
<slot name="social-links"></slot> | |
</rh-footer-links> | |
</div> | |
</slot> | |
</div> | |
</slot> | |
</div> | |
<div class="section main" part="section main"> | |
<slot name="main"> | |
<div class="main-primary" part="main-primary"> | |
<slot name="main-primary"> | |
<div class="links" part="links"> | |
${x(this,zr,"m",Lr).call(this,e)} | |
</div> | |
</slot> | |
</div> | |
<div class="main-secondary" part="main-secondary"> | |
<slot name="main-secondary"></slot> | |
</div> | |
</slot> | |
</div> | |
<slot name="global"></slot> | |
</slot> | |
</footer> | |
`}updateAccessibility(){for(const e of this.querySelectorAll(":is([slot^=links],[slot=footer-links-primary],[slot=footer-links-secondary]):is(ul)"))if(!e.hasAttribute("aria-labelledby")){const t=Dr(e.previousElementSibling?.tagName??"")?e.previousElementSibling:null;if(!t)return x(this,Hr,"f").warn("This links set doesn't have a valid header associated with it.");t.id||(t.id=Ue("rh-footer")),e.setAttribute("aria-labelledby",t.id)}}}Tr=new WeakMap,Hr=new WeakMap,zr=new WeakSet,Lr=function(e=!1){const t=Array.from(this.querySelectorAll(":scope > [slot^=links]"),(e=>({type:Dr(e.tagName)?"header":"panel",ref:e})));return t.forEach((({ref:t},r)=>t.setAttribute("slot",e?`links-${r}`:"links"))),e&&t?ae` | |
<pfe-accordion on="dark" color-palette="darkest">${t.map(((e,t)=>Ee` | |
<pfe-accordion-${Pe(e.type)} part="links-accordion-${e.type}"> | |
<slot name="links-${t}"></slot> | |
</pfe-accordion-${Pe(e.type)}>`))} | |
</pfe-accordion> | |
`:ae` | |
<slot name="links"></slot> | |
`},jr.version="{{version}}",jr.styles=[Fe,Ze],_([at(),Te({reflect:!0,attribute:"color-palette"})],jr.prototype,"colorPalette",void 0),customElements.define("rh-footer",jr);class Fr{constructor(e){this.host=e,Or.add(this),this.dir=x(this,Or,"m",Ir).call(this)}hostConnected(){this.dir=x(this,Or,"m",Ir).call(this)}}Or=new WeakSet,Ir=function(){let e=this.host;for(;e;){const t=e.closest("[dir]");if(t?.hasAttribute("dir"))return t?.getAttribute("dir")||"ltr";({host:e}=e?.getRootNode()??{})}return"ltr"};const Wr=A`:host { | |
display: inline-flex; | |
position: relative; | |
z-index: 0; | |
align-items: center; | |
max-width: max-content; | |
background-color: var(--rh-cta-background-color); | |
border-radius: var(--rh-border-radius-default, 3px); | |
border: var(--rh-border-width-sm, 1px); | |
cursor: pointer; | |
--rh-context-background-color: var(--rh-cta-background-color) !important; | |
} | |
::slotted(*) { | |
white-space: normal; | |
display: inline; | |
padding: var(--rh-space-md, 8px) 0 !important; | |
color: inherit !important; | |
font-family: inherit !important; | |
font-size: inherit !important; | |
font-weight: inherit !important; | |
line-height: inherit !important; | |
text-decoration: inherit !important; | |
} | |
::slotted(button), | |
::slotted(input) { | |
background-color: transparent; | |
border: medium none; | |
margin: 0; | |
padding: 0; | |
text-align: left; | |
} | |
#container { | |
display: block; | |
white-space: nowrap; | |
min-width: 100%; | |
color: var(--rh-cta-color); | |
font-family: var(--rh-font-family-heading, RedHatDisplay, "Red Hat Display", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", "Noto Sans KR", "Noto Sans Malayalam", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", Overpass, Helvetica, Arial, sans-serif); | |
font-size: var(--rh-font-size-text-xl, 1.125rem); | |
font-weight: var(--rh-font-weight-bold, 600); | |
line-height: var(--rh-line-height-lg, 1.5); | |
text-decoration: var(--rh-cta-text-decoration); | |
--_arrow-size: 13px; | |
} | |
/** Inner border */ | |
#container:after { | |
--_offset: 1px; | |
content: ""; | |
display: block; | |
height: calc(100% - var(--_offset) * 2); | |
width: calc(100% - var(--_offset) * 2); | |
box-sizing: border-box; | |
position: absolute; | |
top: var(--_offset); | |
left: var(--_offset); | |
z-index: -1; | |
border: var(--rh-border-width-sm, 1px); | |
border-radius: 2px; | |
outline: none; | |
} | |
/** Default variant arrow icon */ | |
svg { | |
display: inline; | |
fill: currentcolor; | |
width: var(--_arrow-size); | |
height: var(--_arrow-size); | |
margin-bottom: -1px; | |
padding-inline: 3px; | |
translate: 0 0; | |
transition: translate var(--_trans); | |
--_trans: | |
var(--rh-animation-speed, 0.3s) | |
var(--rh-animation-timing, cubic-bezier(0.465, 0.183, 0.153, 0.946)); | |
} | |
#container.rtl svg { | |
rotate: 180deg; | |
} | |
/***************************************************************************** | |
* FOCUS STATE * | |
*****************************************************************************/ | |
:host(:is(:focus, :focus-within)), | |
:host(:is(:focus, :focus-within)) ::slotted(*), | |
::slotted(:focus) { | |
outline: none !important; | |
} | |
:host(:is(:focus, :focus-within)) { | |
border-color: var(--rh-cta-focus-border-color); | |
--rh-cta-inner-border-color: var(--rh-cta-focus-inner-border-color); | |
--rh-cta-background-color: var(--rh-cta-focus-background-color) !important; | |
} | |
:host(:is(:focus, :focus-within)) #container { | |
--rh-cta-color: var(--rh-cta-focus-color); | |
--rh-cta-text-decoration: var(--rh-cta-focus-text-decoration); | |
background-color: | |
var( | |
--rh-cta-focus-container-background-color, | |
var(--rh-cta-focus-background-color) | |
); | |
} | |
/***************************************************************************** | |
* HOVER STATE * | |
*****************************************************************************/ | |
:host(:hover) { | |
background-color: var(--rh-cta-hover-background-color); | |
border-color: var(--rh-cta-hover-border-color); | |
--rh-cta-inner-border-color: var(--rh-cta-hover-inner-border-color); | |
} | |
:host(:hover) #container { | |
color: var(--rh-cta-hover-color); | |
--rh-cta-text-decoration: var(--rh-cta-hover-text-decoration); | |
} | |
:host(:hover) #container svg { | |
translate: 3px 0; | |
} | |
:host(:hover) #container.rtl svg { | |
translate: -3px 0; | |
} | |
/***************************************************************************** | |
* ACTIVE STATE * | |
*****************************************************************************/ | |
:host(:active) { | |
background-color: var(--rh-cta-active-background-color); | |
--rh-cta-inner-border-color: var(--rh-cta-active-inner-border-color) !important; | |
} | |
:host(:active) #container { | |
--rh-cta-background-color: | |
var( | |
--rh-cta-active-container-background-color, | |
var(--rh-cta-active-background-color) | |
); | |
} | |
/***************************************************************************** | |
* VARIANTS * | |
*****************************************************************************/ | |
:host([variant]) #container { | |
display: flex; | |
flex-flow: row nowrap; | |
align-items: center; | |
height: 100%; | |
background-color: transparent; | |
} | |
:host([variant\$="ary"]) ::slotted(*) { | |
font-size: var(--rh-cta-font-size-priority, var(--rh-font-size-text-lg, 1rem)); | |
text-align: center; | |
} | |
:host([variant]) ::slotted(*) { | |
padding: var(--rh-space-lg, 16px) var(--rh-space-xl, 24px) !important; | |
} | |
/* prefer to group state-bound styles */ | |
/* stylelint-disable-next-line no-descending-specificity */ | |
:host([variant]) #container svg { | |
display: none; | |
} | |
/***************************************************************************** | |
* DEFAULT | |
*****************************************************************************/ | |
:host(:not([variant])) { | |
--rh-cta-background-color: transparent; | |
--rh-cta-border-color: transparent; | |
--rh-cta-color: var(--rh-color-interactive-blue, #0066cc); | |
--rh-cta-hover-background-color: transparent; | |
--rh-cta-hover-border-color: transparent; | |
--rh-cta-hover-inner-border-color: transparent; | |
--rh-cta-hover-color: var(--rh-context-color-link-hover, #004080); | |
--rh-cta-hover-text-decoration: none; | |
--rh-cta-focus-background-color: transparent; | |
/* --rh-color-border-interactive-on-light with 10% opacity */ | |
--rh-cta-focus-container-background-color: #0066cc1a; | |
--rh-cta-focus-border-color: transparent; | |
--rh-cta-focus-color: var(--rh-context-light-color-focus, #0066cc); | |
--rh-cta-focus-inner-border-color: transparent; | |
--rh-cta-focus-text-decoration: none; | |
/* --rh-color-border-interactive-on-light with 10% opacity */ | |
--rh-cta-active-container-background-color: #0066cc1a; | |
--rh-cta-active-inner-border-color: transparent; | |
--rh-cta-active-text-decoration: none; | |
} | |
:host(:not([variant])[on="dark"]) { | |
--rh-cta-color: var(--rh-color-interactive-blue-lighter, #73bcf7); | |
--rh-cta-hover-color: var(--rh-color-interactive-blue-lightest, #bee1f4); | |
/* --rh-color-interactive-blue-lighter with 25% opacity */ | |
--rh-cta-focus-container-background-color: #73bcf740; | |
--rh-cta-focus-border-color: transparent; | |
--rh-cta-focus-color: var(--rh-color-interactive-blue-lighter, #73bcf7); | |
--rh-cta-focus-inner-border-color: transparent; | |
--rh-cta-focus-text-decoration: none; | |
/* --rh-color-interactive-blue-lighter with 25% opacity */ | |
--rh-cta-active-container-background-color: #73bcf740; | |
--rh-cta-active-text-decoration: none; | |
} | |
/***************************************************************************** | |
* PRIMARY | |
*****************************************************************************/ | |
:host([variant="primary"]) { | |
--rh-cta-background-color: var(--rh-color-brand-red-on-light, #ee0000); | |
--rh-cta-border-color: var(--rh-color-brand-red-on-light, #ee0000); | |
--rh-cta-color: var(--rh-color-text-primary-on-dark, #ffffff); | |
--rh-cta-hover-background-color: var(--rh-color-brand-red-dark, #be0000); | |
--rh-cta-hover-border-color: var(--rh-color-brand-red-dark, #be0000); | |
--rh-cta-hover-color: var(--rh-color-text-primary-on-dark, #ffffff); | |
--rh-cta-focus-background-color: var(--rh-color-brand-red-on-light, #ee0000); | |
--rh-cta-focus-border-color: var(--rh-color-brand-red-on-light, #ee0000); | |
--rh-cta-focus-color: var(--rh-color-text-primary-on-dark, #ffffff); | |
--rh-cta-focus-inner-border-color: var(--rh-color-text-primary-on-dark, #ffffff); | |
--rh-cta-active-background-color: var(--rh-color-brand-red-dark, #be0000); | |
--rh-cta-active-inner-border-color: var(--rh-color-text-primary-on-dark, #ffffff); | |
} | |
/***************************************************************************** | |
* SECONDARY | |
*****************************************************************************/ | |
:host([variant="secondary"]) { | |
--rh-cta-background-color: transparent; | |
--rh-cta-border-color: var(--rh-color-surface-darkest, #151515); | |
--rh-cta-color: var(--rh-color-text-primary-on-light, #151515); | |
--rh-cta-hover-background-color: var(--rh-color-surface-darkest, #151515); | |
--rh-cta-hover-border-color: var(--rh-color-surface-darkest, #151515); | |
--rh-cta-hover-color: var(--rh-color-primary-on-dark, #ffffff); | |
--rh-cta-focus-background-color: var(--rh-color-surface-light, #f0f0f0); | |
--rh-cta-focus-border-color: var(--rh-color-surface-darkest, #151515); | |
--rh-cta-focus-color: var(--rh-color-surface-darkest, #151515); | |
--rh-cta-focus-inner-border-color: var(--rh-color-surface-darkest, #151515); | |
--rh-cta-active-color: var(--rh-color-surface-lightest, #ffffff); | |
--rh-cta-active-background-color: var(--rh-color-surface-darkest, #151515); | |
--rh-cta-active-inner-border-color: var(--rh-color-surface-light, #f0f0f0); | |
} | |
:host([variant="secondary"][on="dark"]) { | |
--rh-cta-border-color: var(--rh-color-border-strong-on-dark, #ffffff); | |
--rh-cta-color: var(--rh-color-text-primary-on-dark, #ffffff); | |
--rh-cta-hover-background-color: var(--rh-color-surface-lightest, #ffffff); | |
--rh-cta-hover-border-color: var(--rh-color-surface-lightest, #ffffff); | |
--rh-cta-hover-color: var(--rh-color-text-primary-on-light, #151515); | |
--rh-cta-focus-background-color: var(--rh-color-surface-dark, #3c3f42); | |
--rh-cta-focus-border-color: var(--rh-color-border-strong-on-dark, #ffffff); | |
--rh-cta-focus-inner-border-color: var(--rh-color-border-strong-on-dark, #ffffff); | |
--rh-cta-focus-color: var(--rh-color-text-primary-on-dark, #ffffff); | |
--rh-cta-active-color: var(--rh-color-text-primary-on-light, #151515); | |
--rh-cta-active-background-color: var(--rh-color-surface-lightest, #ffffff); | |
--rh-cta-active-inner-border-color: var(--rh-color-border-strong-on-light, #151515); | |
} | |
/***************************************************************************** | |
* BRICK | |
*****************************************************************************/ | |
:host([variant="brick"]) #container { | |
font-weight: var(--rh-font-weight-body-text-regular, 400); | |
} | |
:host([variant="brick"]) { | |
--rh-cta-background-color: transparent; | |
--rh-cta-border-color: var(--rh-color-border-subtle-on-light, #d2d2d2); | |
--rh-cta-color: var(--rh-color-interactive-blue-darker, #0066cc); | |
--rh-cta-hover-background-color: var(--rh-color-surface-lighter, #f5f5f5); | |
--rh-cta-hover-border-color: var(--rh-color-border-subtle-on-light, #d2d2d2); | |
--rh-cta-hover-color: var(--rh-color-interactive-blue-darkest, #004080); | |
--rh-cta-hover-text-decoration: underline; | |
--rh-cta-focus-color: var(--rh-color-interactive-blue-darker, #0066cc); | |
--rh-cta-focus-border-color: var(--rh-color-border-subtle-on-light, #d2d2d2); | |
--rh-cta-focus-inner-border-color: var(--rh-color-border-subtle-on-light, #d2d2d2); | |
--rh-cta-focus-text-decoration: none; | |
--rh-cta-active-background-color: var(--rh-color-surface-lighter, #f5f5f5); | |
--rh-cta-active-inner-border-color: var(--rh-color-border-subtle-on-light, #d2d2d2); | |
--rh-cta-active-text-decoration: underline; | |
} | |
:host([variant="brick"][on="dark"]) { | |
--rh-cta-border-color: var(--rh-color-border-subtle-on-dark, #6a6e73); | |
--rh-cta-color: var(--rh-color-interactive-blue-lighter, #73bcf7); | |
--rh-cta-hover-background-color: var(--rh-color-surface-darker, #212427); | |
--rh-cta-hover-border-color: var(--rh-color-border-subtle-on-dark, #6a6e73); | |
--rh-cta-hover-color: var(--rh-color-interactive-blue-lightest, #bee1f4); | |
--rh-cta-hover-text-decoration: underline; | |
--rh-cta-focus-color: var(--rh-color-interactive-blue-lighter, #73bcf7); | |
--rh-cta-focus-border-color: var(--rh-color-border-subtle-on-dark, #6a6e73); | |
--rh-cta-focus-inner-border-color: var(--rh-color-border-subtle-on-dark, #6a6e73); | |
--rh-cta-focus-text-decoration: none; | |
--rh-cta-active-background-color: var(--rh-color-surface-darker, #212427); | |
--rh-cta-active-inner-border-color: var(--rh-color-border-subtle-on-dark, #6a6e73); | |
--rh-cta-active-text-decoration: underline; | |
} | |
/* chrome <= 103 */ | |
@supports not (translate: 0 0) { | |
svg { | |
transform: translate(0, 0); | |
transition: transform var(--_trans); | |
} | |
#container.rtl svg { transform: translate(0, 0) rotate(180deg); } | |
:host(:hover) #container svg { transform: translate(3px, 0); } | |
:host(:hover) #container.rtl svg { transform: translate(-3px, 0) rotate(180deg); } | |
} | |
`;var Vr,qr,Kr,Zr,Qr;const Jr=["a","button"];const Xr=new WeakMap;let Yr=class extends we{constructor(){super(...arguments),Vr.add(this),this.cta=null,qr.set(this,!1),Kr.set(this,new Fr(this)),Zr.set(this,new je(this))}render(){const e="rtl"===x(this,Kr,"f").dir;return ae` | |
<span id="container" part="container" class="${Re({rtl:e})}"> | |
<slot @slotchange=${this.firstUpdated}></slot>${x(this,Vr,"a",Qr)||this.icon?this.icon?ae` | |
<pfe-icon icon=${this.icon} size="sm"></pfe-icon>`:ae` <svg xmlns="http://www.w3.org/2000/svg" | |
viewBox="0 0 31.56 31.56" focusable="false" width="1em"> | |
<path d="M15.78 0l-3.1 3.1 10.5 10.49H0v4.38h23.18l-10.5 10.49 3.1 3.1 15.78-15.78L15.78 0z" /> | |
</svg>`:""} | |
</span> | |
`}firstUpdated(){let[e]=this.shadowRoot?.querySelector("slot")?.assignedElements()??[];for(;e instanceof HTMLSlotElement;)[e]=e.assignedElements();var t;if(!((t=e)&&Xr.get(t)||x(this,qr,"f")))return k(this,qr,!0,"f"),function(e){return!!e&&Jr.includes(e.localName)}(e)?"button"!==e.tagName.toLowerCase()||this.variant?(this.cta=e,Xr.set(this.cta,!0),void k(this,qr,!1,"f")):x(this,Zr,"f").warn("Button tag is not supported semantically by the default link styles"):x(this,Zr,"f").warn("The first child in the light DOM must be a supported call-to-action tag (<a>, <button>)")}};var Gr;qr=new WeakMap,Kr=new WeakMap,Zr=new WeakMap,Vr=new WeakSet,Qr=function(){return!this.hasAttribute("variant")},Yr.version="{{version}}",Yr.styles=[Wr],_([Te({reflect:!0})],Yr.prototype,"variant",void 0),_([at(),Te({reflect:!0,attribute:"color-palette"})],Yr.prototype,"colorPalette",void 0),_([function(e,t){e.constructor.addInitializer((e=>{e.__colorContextConsumer=new ot(e,Gr)}))},Te({reflect:!0})],Yr.prototype,"on",void 0),_([Te({reflect:!0})],Yr.prototype,"icon",void 0),Yr=_([Be("rh-cta")],Yr); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment