@aurodesignsystem-dev/auro-tail 0.0.0-pr6.2 → 0.0.0-pr6.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +1 -1
- package/README.md +54 -88
- package/custom-elements.json +148 -780
- package/demo/api.html +1 -4
- package/demo/api.md +257 -469
- package/demo/auro-tail-group.min.js +189 -288
- package/demo/index.html +1 -4
- package/demo/index.js +2 -1
- package/demo/index.md +25 -13
- package/demo/index.min.js +2 -1
- package/dist/{auro-tail-group-7TRu6-ht.js → auro-tail-group-DPP1Aw94.js} +83 -83
- package/dist/index.d.ts +205 -196
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +8 -4
|
@@ -86,7 +86,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
86
86
|
* Copyright 2017 Google LLC
|
|
87
87
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
88
88
|
*/
|
|
89
|
-
const t$2=globalThis,i$5=t$2.trustedTypes,s$4=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$5="$lit$",h$4=`lit$${Math.random().toFixed(9).slice(2)}$`,o$7="?"+h$4,n$5=`<${o$7}>`,r$3=document,l$2=()=>r$3.createComment(""),c$3=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2=Array.isArray,u$4=t=>a$2(t)||"function"==typeof t?.[Symbol.iterator],d$2="[ \t\n\f\r]",f$5=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_$1=/>/g,m$2=RegExp(`>|${d$2}(?:([^\\s"'>=/]+)(${d$2}*=${d$2}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$3=/'/g,g$2=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y$3=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$2=y$3(1),T$1=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),A$1=new WeakMap,C$1=r$3.createTreeWalker(r$3,129);function P$1(t,i){if(!a$2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$4?s$4.createHTML(i):i}const V$1=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$5;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$5?"!--"===u[1]?c=v$1:void 0!==u[1]?c=_$1:void 0!==u[2]?($$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$2):void 0!==u[3]&&(c=m$2):c===m$2?">"===u[0]?(c=r??f$5,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$2:'"'===u[3]?g$2:p$3):c===g$2||c===p$3?c=m$2:c===v$1||c===_$1?c=f$5:(c=m$2,r=void 0);const x=c===m$2&&t[i+1].startsWith("/>")?" ":"";l+=c===f$5?s+n$5:d>=0?(o.push(a),s.slice(0,d)+e$5+s.slice(d)+h$4+x):s+h$4+(-2===d?i:x);}return [P$1(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$1 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$1(t,s);if(this.el=N.createElement(f,n),C$1.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$1.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$5)){const i=v[a++],s=r.getAttribute(t).split(h$4),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$1:"?"===e[1]?I$1:"@"===e[1]?L$1:k$2}),r.removeAttribute(t);}else t.startsWith(h$4)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1.test(r.tagName)){const t=r.textContent.split(h$4),s=t.length-1;if(s>0){r.textContent=i$5?i$5.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$2()),C$1.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$2());}}}else if(8===r.nodeType)if(r.data===o$7)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$4,t+1));)d.push({type:7,index:c}),t+=h$4.length-1;}c++;}}static createElement(t,i){const s=r$3.createElement("template");return s.innerHTML=t,s}};function S$2(t,i,s=t,e){if(i===T$1)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$3(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$2(t,h._$AS(t,i.values),h,e)),i}let M$1 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$3).importNode(i,true);C$1.currentNode=e;let h=C$1.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$1(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$2(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$1.nextNode(),o++);}return C$1.currentNode=r$3,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$1 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$1,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$2(this,t,i),c$3(t)?t===E$1||null==t||""===t?(this._$AH!==E$1&&this._$AR(),this._$AH=E$1):t!==this._$AH&&t!==T$1&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$4(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$1&&c$3(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$3.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$1.createElement(P$1(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$1(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$1.get(t.strings);return void 0===i&&A$1.set(t.strings,i=new N$1(t)),i}k(t){a$2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$2()),this.O(l$2()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t
|
|
89
|
+
const t$2=globalThis,i$5=t$2.trustedTypes,s$4=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$5="$lit$",h$4=`lit$${Math.random().toFixed(9).slice(2)}$`,o$7="?"+h$4,n$5=`<${o$7}>`,r$3=document,l$2=()=>r$3.createComment(""),c$3=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2=Array.isArray,u$4=t=>a$2(t)||"function"==typeof t?.[Symbol.iterator],d$2="[ \t\n\f\r]",f$5=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$1=/-->/g,_$1=/>/g,m$2=RegExp(`>|${d$2}(?:([^\\s"'>=/]+)(${d$2}*=${d$2}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$3=/'/g,g$2=/"/g,$$1=/^(?:script|style|textarea|title)$/i,y$3=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x$2=y$3(1),T$1=Symbol.for("lit-noChange"),E$1=Symbol.for("lit-nothing"),A$1=new WeakMap,C$1=r$3.createTreeWalker(r$3,129);function P$1(t,i){if(!a$2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$4?s$4.createHTML(i):i}const V$1=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$5;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$5?"!--"===u[1]?c=v$1:void 0!==u[1]?c=_$1:void 0!==u[2]?($$1.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m$2):void 0!==u[3]&&(c=m$2):c===m$2?">"===u[0]?(c=r??f$5,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m$2:'"'===u[3]?g$2:p$3):c===g$2||c===p$3?c=m$2:c===v$1||c===_$1?c=f$5:(c=m$2,r=void 0);const x=c===m$2&&t[i+1].startsWith("/>")?" ":"";l+=c===f$5?s+n$5:d>=0?(o.push(a),s.slice(0,d)+e$5+s.slice(d)+h$4+x):s+h$4+(-2===d?i:x);}return [P$1(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};let N$1 = class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V$1(t,s);if(this.el=N.createElement(f,n),C$1.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C$1.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$5)){const i=v[a++],s=r.getAttribute(t).split(h$4),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H$1:"?"===e[1]?I$1:"@"===e[1]?L$1:k$2}),r.removeAttribute(t);}else t.startsWith(h$4)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($$1.test(r.tagName)){const t=r.textContent.split(h$4),s=t.length-1;if(s>0){r.textContent=i$5?i$5.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$2()),C$1.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$2());}}}else if(8===r.nodeType)if(r.data===o$7)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$4,t+1));)d.push({type:7,index:c}),t+=h$4.length-1;}c++;}}static createElement(t,i){const s=r$3.createElement("template");return s.innerHTML=t,s}};function S$2(t,i,s=t,e){if(i===T$1)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$3(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$2(t,h._$AS(t,i.values),h,e)),i}let M$1 = class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$3).importNode(i,true);C$1.currentNode=e;let h=C$1.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R$1(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z$2(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C$1.nextNode(),o++);}return C$1.currentNode=r$3,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}};let R$1 = class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E$1,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$2(this,t,i),c$3(t)?t===E$1||null==t||""===t?(this._$AH!==E$1&&this._$AR(),this._$AH=E$1):t!==this._$AH&&t!==T$1&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$4(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E$1&&c$3(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$3.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N$1.createElement(P$1(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M$1(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A$1.get(t.strings);return void 0===i&&A$1.set(t.strings,i=new N$1(t)),i}k(t){a$2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$2()),this.O(l$2()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}};let k$2 = class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E$1,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E$1;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$2(this,t,i,0),o=!c$3(t)||t!==this._$AH&&t!==T$1,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$2(this,e[s+n],i,n),r===T$1&&(r=this._$AH[n]),o||=!c$3(r)||r!==this._$AH[n],r===E$1?t=E$1:t!==E$1&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}};let H$1 = class H extends k$2{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E$1?void 0:t;}};let I$1 = class I extends k$2{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E$1);}};let L$1 = class L extends k$2{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$2(this,t,i,0)??E$1)===T$1)return;const s=this._$AH,e=t===E$1&&s!==E$1||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E$1&&(s===E$1||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}};let z$2 = class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$2(this,t);}};const j$1=t$2.litHtmlPolyfillSupport;j$1?.(N$1,R$1),(t$2.litHtmlVersions??=[]).push("3.3.1");const B$1=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R$1(i.insertBefore(l$2(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* @license
|
|
@@ -146,13 +146,13 @@ const t$1=globalThis,e$4=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.na
|
|
|
146
146
|
* @license
|
|
147
147
|
* Copyright 2017 Google LLC
|
|
148
148
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
149
|
-
*/const{is:i$2,defineProperty:e$3,getOwnPropertyDescriptor:h$3,getOwnPropertyNames:r$1,getOwnPropertySymbols:o$4,getPrototypeOf:n$2}=Object,a=globalThis,c$1=a.trustedTypes,l=c$1?c$1.emptyScript:"",p$2=a.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$4=(t,s)=>!i$2(t,s),b$1={attribute:true,type:String,converter:u$2,reflect:false,useDefault:false,hasChanged:f$4};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;let y$2 = class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b$1){if(s.state&&(s.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=true),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e$3(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h$3(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??b$1}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...r$1(t),...o$4(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e
|
|
149
|
+
*/const{is:i$2,defineProperty:e$3,getOwnPropertyDescriptor:h$3,getOwnPropertyNames:r$1,getOwnPropertySymbols:o$4,getPrototypeOf:n$2}=Object,a=globalThis,c$1=a.trustedTypes,l=c$1?c$1.emptyScript:"",p$2=a.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$4=(t,s)=>!i$2(t,s),b$1={attribute:true,type:String,converter:u$2,reflect:false,useDefault:false,hasChanged:f$4};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;let y$2 = class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b$1){if(s.state&&(s.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=true),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e$3(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h$3(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??b$1}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...r$1(t),...o$4(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f$4)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$EP());}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),true!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),true===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t));}async _$EP(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];true!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e);}}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM();}catch(s){throw t=false,this._$EM(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EM(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM();}updated(t){}firstUpdated(t){}};y$2.elementStyles=[],y$2.shadowRootOptions={mode:"open"},y$2[d$1("elementProperties")]=new Map,y$2[d$1("finalized")]=new Map,p$2?.({ReactiveElement:y$2}),(a.reactiveElementVersions??=[]).push("2.1.1");
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* @license
|
|
153
153
|
* Copyright 2017 Google LLC
|
|
154
154
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
155
|
-
*/const s$1=globalThis;let i$1 = class i extends y$2{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$1(r,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$1}};i$1._$litElement$=true,i$1["finalized"]=true,s$1.litElementHydrateSupport?.({LitElement:i$1});const o$3=s$1.litElementPolyfillSupport;o$3?.({LitElement:i$1});(s$1.litElementVersions??=[]).push("4.2.
|
|
155
|
+
*/const s$1=globalThis;let i$1 = class i extends y$2{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B$1(r,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T$1}};i$1._$litElement$=true,i$1["finalized"]=true,s$1.litElementHydrateSupport?.({LitElement:i$1});const o$3=s$1.litElementPolyfillSupport;o$3?.({LitElement:i$1});(s$1.litElementVersions??=[]).push("4.2.1");
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* @license
|
|
@@ -191,7 +191,7 @@ const t={ATTRIBUTE:1,CHILD:2},e$2=t=>(...e)=>({_$litDirective$:t,values:e});clas
|
|
|
191
191
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
192
192
|
*/const e=()=>new h$1;let h$1 = class h{};const o=new WeakMap,n=e$2(class extends f$2{render(i){return E$1}update(i,[s]){const e=s!==this.G;return e&&void 0!==this.G&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=s,this.ht=i.options?.host,this.rt(this.ct=i.element)),E$1}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const i=this.ht??globalThis;let s=o.get(i);void 0===s&&(s=new WeakMap,o.set(i,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t);}else this.G.value=t;}get lt(){return "function"==typeof this.G?o.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0);}reconnected(){this.rt(this.ct);}});
|
|
193
193
|
|
|
194
|
-
let d=class{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,o=(t,r=t&&t.closest(e))=>t&&t!==document&&t!==window?r||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,true);}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}};let h=class extends i$1{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(e){return e?"true":"false"}};const u$1=new Map,p$1=(e,t={})=>{const o=t.responseParser||(e=>e.text());return u$1.has(e)||u$1.set(e,fetch(e).then(o)),u$1.get(e)};var v=i$3`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;
|
|
194
|
+
let d=class{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,o=(t,r=t&&t.closest(e))=>t&&t!==document&&t!==window?r||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,true);}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}};let h=class extends i$1{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(e){return e?"true":"false"}};const u$1=new Map,p$1=(e,t={})=>{const o=t.responseParser||(e=>e.text());return u$1.has(e)||u$1.set(e,fetch(e).then(o)),u$1.get(e)};var v=i$3`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem)!important;width:var(--ds-auro-icon-size, 1.5rem)!important;height:var(--ds-auro-icon-size, 1.5rem)!important}.componentWrapper{display:flex;line-height:var(--ds-auro-icon-size)}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.svgWrapper [part=svg]{display:flex}.labelWrapper{margin-left:var(--ds-size-50, .25rem)}.labelWrapper ::slotted(*){line-height:inherit!important}
|
|
195
195
|
`;let b=class extends h{constructor(){super(),this.onDark=false,this.appearance="default";}static get properties(){return {...h.properties,onDark:{type:Boolean,reflect:true},appearance:{type:String,reflect:true},svg:{attribute:false,reflect:true}}}static get styles(){return v}async fetchIcon(e,t){let o="";return o="logos"===e?await p$1(`${this.uri}/${e}/${t}.svg`):await p$1(`${this.uri}/icons/${e}/${t}.svg`),(new DOMParser).parseFromString(o,"text/html").body.querySelector("svg")}async firstUpdated(){try{if(!this.customSvg){const e=await this.fetchIcon(this.category,this.name);if(e)this.svg=e;else if(!e){const e=(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>',"text/html");this.svg=e.body.firstChild;}}}catch(e){this.svg=void 0;}}};i$3`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}:host{display:inline-block;--ds-auro-icon-size: 100%;width:100%;height:100%}:host .logo{color:var(--ds-auro-alaska-color)}:host([onDark]),:host([appearance=inverse]){--ds-auro-alaska-color: #FFF}
|
|
196
196
|
`;var f$1=i$3`:host{--ds-auro-icon-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color: #02426D;--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}
|
|
197
197
|
`,m$1=i$3`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]),:host(:not([appearance=inverse])[variant=accent1]){--ds-auro-icon-color: var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]),:host(:not([appearance=inverse])[variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]),:host(:not([appearance=inverse])[variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]),:host(:not([appearance=inverse])[variant=statusDefault]){--ds-auro-icon-color: var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]),:host(:not([appearance=inverse])[variant=statusInfo]){--ds-auro-icon-color: var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]),:host(:not([appearance=inverse])[variant=statusSuccess]){--ds-auro-icon-color: var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]),:host(:not([appearance=inverse])[variant=statusWarning]){--ds-auro-icon-color: var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]),:host(:not([appearance=inverse])[variant=statusError]){--ds-auro-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]),:host(:not([appearance=inverse])[variant=statusInfoSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]),:host(:not([appearance=inverse])[variant=statusSuccessSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]),:host(:not([appearance=inverse])[variant=statusWarningSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]),:host(:not([appearance=inverse])[variant=statusErrorSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]),:host(:not([appearance=inverse])[variant=fareBasicEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]),:host(:not([appearance=inverse])[variant=fareBusiness]){--ds-auro-icon-color: var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]),:host(:not([appearance=inverse])[variant=fareEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]),:host(:not([appearance=inverse])[variant=fareFirst]){--ds-auro-icon-color: var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]),:host(:not([appearance=inverse])[variant=farePremiumEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]),:host(:not([appearance=inverse])[variant=tierOneWorldEmerald]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]),:host(:not([appearance=inverse])[variant=tierOneWorldSapphire]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]),:host(:not([appearance=inverse])[variant=tierOneWorldRuby]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]),:host([appearance=inverse]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]),:host([appearance=inverse][variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]),:host([appearance=inverse][variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]),:host([appearance=inverse][variant=statusError]){--ds-auro-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}
|
|
@@ -213,10 +213,10 @@ let d=class{registerComponent(e,t){customElements.get(e)||customElements.define(
|
|
|
213
213
|
<slot></slot>
|
|
214
214
|
</div>
|
|
215
215
|
</div>
|
|
216
|
-
`}};const x$1=new WeakMap,y$1=new WeakMap,w$1=({host:e,target:t,matcher:o,removeOriginal:r=true})=>{y$1.has(e)||y$1.set(e,{matchers:new Set,targets:new Map});const a=y$1.get(e);return a.matchers.add(o),a.targets.has(t)||a.targets.set(t,new Map),a.targets.get(t).set(o,{removeOriginal:r,currentAttributes:new Map}),k$1({host:e,target:t,matcher:o,removeOriginal:r}),S(e),{cleanup:()=>z$1(e,t,o),getObservedAttributes:()=>U(e,t,o),getObservedAttribute:r=>q(e,t,o,r)}},z$1=(e,t,o)=>{const r=y$1.get(e);if(!r)return;const a=r.targets.get(t);a&&(a.delete(o),0===a.size&&r.targets.delete(t));let s=false;for(const e of r.targets.values())if(e.has(o)){s=true;break}s||r.matchers.delete(o),0!==r.targets.size&&0!==r.matchers.size||A(e);},k$1=({host:e,target:t,matcher:o,removeOriginal:r=true})=>{const a=e.getAttributeNames().filter(e=>o(e)).reduce((t,o)=>(t[o]=e.getAttribute(o),t),{});Object.entries(a).forEach(([a,s])=>{C(e,t,o,a,s),t.setAttribute(a,s),r&&e.removeAttribute(a);});},S=e=>{if(x$1.has(e))return x$1.get(e);const t=new MutationObserver(t=>{const o=y$1.get(e);o&&t.filter(e=>"attributes"===e.type).forEach(t=>{const r=t.attributeName;for(const t of o.matchers)if(t(r))for(const[r,a]of o.targets.entries())if(a.has(t)){const{removeOriginal:o}=a.get(t);k$1({host:e,target:r,matcher:t,removeOriginal:o});}});});return t.observe(e,{attributes:true}),x$1.set(e,t),t},A=e=>{if(x$1.has(e)){x$1.get(e).disconnect(),x$1.delete(e);}y$1.has(e)&&y$1.delete(e);},B=(e,t,o)=>{const r=y$1.get(e);if(!r)return;const a=r.targets.get(t);return a?a.get(o):void 0},C=(e,t,o,r,a)=>{const s=B(e,t,o);s&&s.currentAttributes.set(r,a);},q=(e,t,o,r)=>{const a=B(e,t,o);if(a)return a.currentAttributes.get(r)},U=(e,t,o)=>{const r=B(e,t,o);return r?Array.from(r.currentAttributes.entries()):[]},R={"aria-":e=>e.startsWith("aria-"),role:e=>e.match(/^role$/),tabindex:e=>e.match(/^tabindex$/)},H=({host:e,target:t,removeOriginal:o=true,ignore:r})=>(({host:e,target:t,match:o,removeOriginal:r=true})=>{if("object"!=typeof e||!(e instanceof HTMLElement))throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');if("object"!=typeof t||!(t instanceof HTMLElement))throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');if("function"!=typeof o)throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');if("boolean"!=typeof r)throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');return w$1({host:e,target:t,matcher:o,removeOriginal:r})})({host:e,target:t,match:e=>{if(r&&r.includes(e))return false;for(const t in R)if(R[t](e))return true;return false},removeOriginal:o});class M{generateElementName(e,t){let o=e;return o+="-",o+=t.replace(/[.]/g,"_"),o}generateTag(e,t,o){const r=this.generateElementName(e,t),a=i$4`${s$3(r)}`;return customElements.get(r)||customElements.define(r,class extends o{}),a}}class T{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,o=(t,r=t&&t.closest(e))=>t&&t!==document&&t!==window?r||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,true);}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}getSlotText(e,t){const o=e.shadowRoot?.querySelector(`slot[name="${t}"]`);return (o?.assignedNodes({flatten:true})||[]).map(e=>e.textContent?.trim()).join(" ").trim()||null}}var I='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="external-link-stroke__title external-link-stroke__desc" class="ico_squareLarge" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title id="external-link-stroke__title">Link to external site.</title><desc id="external-link-stroke__desc">This indicates a link to an external site that may not follow the same accessibility or privacy policies as Alaska Airlines. By selecting a partner link you agree to share your data with these sites.</desc><path d="M7 6.25h5a.75.75 0 0 1 .102 1.494L12 7.75H7a1.25 1.25 0 0 0-1.244 1.123L5.75 9v8c0 .648.492 1.18 1.122 1.244L7 18.25h8a1.25 1.25 0 0 0 1.244-1.122L16.25 17v-5a.75.75 0 0 1 1.493-.101l.007.101v5a2.75 2.75 0 0 1-2.582 2.745L15 19.75H7a2.75 2.75 0 0 1-2.745-2.582L4.25 17V9a2.75 2.75 0 0 1 2.582-2.745zh5zm12.025-2 .125.015.11.032.128.061c.18.108.317.29.353.522l.009.12v5a.75.75 0 0 1-1.493.102L18.25 10V6.811l-6.72 6.72a.75.75 0 0 1-1.133-.977l.073-.084 6.718-6.72H14a.75.75 0 0 1-.743-.648L13.25 5a.75.75 0 0 1 .648-.743L14 4.25z"/></svg>',N='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="new-window-stroke__title new-window-stroke__desc" class="ico_squareLarge" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title id="new-window-stroke__title">Link will open a new tab or window.</title><desc id="new-window-stroke__desc">Notice indicator to alert users that action will result in the browser opening a new tab or window.</desc><path fill-rule="evenodd" d="M20.246 5.687a2.063 2.063 0 0 0-2.058-1.937H8.813l-.126.004A2.063 2.063 0 0 0 6.75 5.813v.937H6.5l-.168.005A2.75 2.75 0 0 0 3.75 9.5v8l.005.168A2.75 2.75 0 0 0 6.5 20.25h8l.168-.005A2.75 2.75 0 0 0 17.25 17.5v-.25h.938l.125-.004a2.063 2.063 0 0 0 1.937-2.058V5.813zM15.75 17.25H8.813a2.063 2.063 0 0 1-2.06-1.937l-.003-.126V8.25H6.5a1.25 1.25 0 0 0-1.244 1.123L5.25 9.5v8c0 .648.492 1.18 1.122 1.244l.128.006h8a1.25 1.25 0 0 0 1.243-1.122l.007-.128zm-6.625-12h8.75l.09.005a.875.875 0 0 1 .785.87v8.75l-.005.09a.875.875 0 0 1-.87.785h-8.75l-.09-.005a.875.875 0 0 1-.785-.87v-8.75l.005-.09a.875.875 0 0 1 .87-.785m4.28 1.757L13.507 7c.38 0 .693.3.743.69l.007.11-.007 1.938h2c.38 0 .694.301.743.691l.007.108c0 .405-.282.74-.648.792l-.102.007h-2.001l.001 1.865c0 .404-.282.739-.648.792L13.5 14c-.38 0-.694-.3-.743-.69l-.007-.11-.001-1.864H10.75c-.38 0-.694-.3-.743-.69L10 10.537c0-.404.282-.738.648-.791l.102-.008h2l.007-1.939c0-.404.282-.739.648-.792"/></svg>';class L extends i$1{static get properties(){return {appearance:{type:String,reflect:true},layout:{type:String,attribute:"layout",reflect:true},shape:{type:String,attribute:"shape",reflect:true},size:{type:String,attribute:"size",reflect:true},onDark:{type:Boolean,attribute:"ondark",reflect:true}}}}class _ extends L{constructor(){super(),this.appearance="default",this.download=false,this.relative=false,this.ondark=false,this.variant="primary",this.layout="cta"===this.type?"block":null,this.shape="cta"===this.type?"rounded":null,this.size="cta"===this.type?"md":null,this.defaultReferrerPolicy="strict-origin-when-cross-origin",this.ariapressed="false",this.tabIsActive="false",this.runtimeUtils=new T,this.addEventListener("touchstart",function(){this.classList.add("is-touching");});}static get properties(){return {...L.properties,appearance:{type:String,reflect:true},href:{type:String,reflect:true},rel:{type:String,reflect:true},target:{type:String,reflect:true},download:{type:Boolean,reflect:true},relative:{type:Boolean,reflect:true},ondark:{type:Boolean},type:{type:String,reflect:true},fluid:{type:Boolean},referrerpolicy:{type:Boolean,reflect:true},variant:{type:String,reflect:true}}}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-hyperlink");}get safeUri(){return this.href?this.safeUrl(this.href,this.relative):""}get includesDomain(){return !!this.href&&this.safeUri.includes("http")}safeUrl(e,t){if(!e)return;const o=new URL(e,"https://www.alaskaair.com");switch(o.protocol){case "tel:":case "sms:":case "mailto:":return e;case "javascript:":case "data:":case "vbscript:":return;default:return t?e.replace(/^[^:]+:/,""):(o.protocol="https:",o.href)}}generateIconHtml(e){const t=(new DOMParser).parseFromString(e,"text/html").body.firstChild;return t.setAttribute("slot","svg"),u$3`<${this.iconTag} customColor customSvg part="targetIcon">${t}</${this.iconTag}>`}targetIcon(e){const t=e=>new URL(e).hostname.endsWith(".alaskaair.com");return "_blank"===e&&t(this.safeUri)?this.generateIconHtml(N):"_blank"===e&&!t(this.safeUri)&&this.includesDomain?this.generateIconHtml(I):void 0}getTabState(e){return true===e?"is-active":""}getRelType(e,t){return t||("_blank"===e&&this.safeUri.includes("alaskaair.com")?t:"_blank"!==e||!this.includesDomain||this.rel||this.referrerpolicy?"_blank"===e&&this.referrerpolicy?"external":void 0:"noOpener noReferrer")}ariaPressedState(e){const t=function(e){const t=this.shadowRoot.querySelector("[aria-pressed]");t.setAttribute("aria-pressed","false"),"mousedown"===e.type?t.ariaPressed=true:t.ariaPressed=false,"keydown"===e.type&&("Enter"===e.code?(t.ariaPressed=true,this.hyperlinkRef?.value&&"button"===this.hyperlinkRef.value.role&&this.click()):t.ariaPressed=false);};return this.addEventListener("mousedown",t),this.addEventListener("mouseup",t),this.addEventListener("keydown",t),this.addEventListener("keyup",t),e}render(){return this.getMarkup()}}class ${generateElementName(e,t){let o=e;return o+="-",o+=t.replace(/[.]/g,"_"),o}generateTag(e,t,o){const r=this.generateElementName(e,t),a=i$4`${s$3(r)}`;return customElements.get(r)||customElements.define(r,class extends o{}),a}}class F{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,o=(t,r=t&&t.closest(e))=>t&&t!==document&&t!==window?r||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,true);}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}getSlotText(e,t){const o=e.shadowRoot?.querySelector(`slot[name="${t}"]`);return (o?.assignedNodes({flatten:true})||[]).map(e=>e.textContent?.trim()).join(" ").trim()||null}}class E{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,o=(t,r=t&&t.closest(e))=>t&&t!==document&&t!==window?r||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,true);}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}}var O=i$3`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
217
|
-
`,D=i$3`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs) * 6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
|
|
218
|
-
`,
|
|
219
|
-
`;class j extends i$1{constructor(){super(),this.keys=[0,1,2,3,4,5,6,7,8,9],this.mdCount=3,this.smCount=2,this.runtimeUtils=new E,this.orbit=false,this.ringworm=false,this.laser=false,this.pulse=false;}static get properties(){return {laser:{type:Boolean,reflect:true},orbit:{type:Boolean,reflect:true},pulse:{type:Boolean,reflect:true},ringworm:{type:Boolean,reflect:true}}}static get styles(){return [
|
|
216
|
+
`}};const x$1=new WeakMap,y$1=new WeakMap,w$1=({host:e,target:t,matcher:o,removeOriginal:r=true})=>{y$1.has(e)||y$1.set(e,{matchers:new Set,targets:new Map});const a=y$1.get(e);return a.matchers.add(o),a.targets.has(t)||a.targets.set(t,new Map),a.targets.get(t).set(o,{removeOriginal:r,currentAttributes:new Map}),k$1({host:e,target:t,matcher:o,removeOriginal:r}),S(e),{cleanup:()=>z$1(e,t,o),getObservedAttributes:()=>R(e,t,o),getObservedAttribute:r=>q(e,t,o,r)}},z$1=(e,t,o)=>{const r=y$1.get(e);if(!r)return;const a=r.targets.get(t);a&&(a.delete(o),0===a.size&&r.targets.delete(t));let s=false;for(const e of r.targets.values())if(e.has(o)){s=true;break}s||r.matchers.delete(o),0!==r.targets.size&&0!==r.matchers.size||A(e);},k$1=({host:e,target:t,matcher:o,removeOriginal:r=true})=>{const a=e.getAttributeNames().filter(e=>o(e)).reduce((t,o)=>(t[o]=e.getAttribute(o),t),{});Object.entries(a).forEach(([a,s])=>{C(e,t,o,a,s),t.setAttribute(a,s),r&&e.removeAttribute(a);});},S=e=>{if(x$1.has(e))return x$1.get(e);const t=new MutationObserver(t=>{const o=y$1.get(e);o&&t.filter(e=>"attributes"===e.type).forEach(t=>{const r=t.attributeName;for(const t of o.matchers)if(t(r))for(const[r,a]of o.targets.entries())if(a.has(t)){const{removeOriginal:o}=a.get(t);k$1({host:e,target:r,matcher:t,removeOriginal:o});}});});return t.observe(e,{attributes:true}),x$1.set(e,t),t},A=e=>{if(x$1.has(e)){x$1.get(e).disconnect(),x$1.delete(e);}y$1.has(e)&&y$1.delete(e);},B=(e,t,o)=>{const r=y$1.get(e);if(!r)return;const a=r.targets.get(t);return a?a.get(o):void 0},C=(e,t,o,r,a)=>{const s=B(e,t,o);s&&s.currentAttributes.set(r,a);},q=(e,t,o,r)=>{const a=B(e,t,o);if(a)return a.currentAttributes.get(r)},R=(e,t,o)=>{const r=B(e,t,o);return r?Array.from(r.currentAttributes.entries()):[]},U={"aria-":e=>e.startsWith("aria-"),role:e=>e.match(/^role$/),tabindex:e=>e.match(/^tabindex$/)},H=({host:e,target:t,removeOriginal:o=true,ignore:r})=>(({host:e,target:t,match:o,removeOriginal:r=true})=>{if("object"!=typeof e||!(e instanceof HTMLElement))throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');if("object"!=typeof t||!(t instanceof HTMLElement))throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');if("function"!=typeof o)throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');if("boolean"!=typeof r)throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');return w$1({host:e,target:t,matcher:o,removeOriginal:r})})({host:e,target:t,match:e=>{if(r&&r.includes(e))return false;for(const t in U)if(U[t](e))return true;return false},removeOriginal:o});class M{generateElementName(e,t){let o=e;return o+="-",o+=t.replace(/[.]/g,"_"),o}generateTag(e,t,o){const r=this.generateElementName(e,t),a=i$4`${s$3(r)}`;return customElements.get(r)||customElements.define(r,class extends o{}),a}}class T{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,o=(t,r=t&&t.closest(e))=>t&&t!==document&&t!==window?r||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,true);}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}getSlotText(e,t){const o=e.shadowRoot?.querySelector(`slot[name="${t}"]`);return (o?.assignedNodes({flatten:true})||[]).map(e=>e.textContent?.trim()).join(" ").trim()||null}}var I='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="external-link-stroke__title external-link-stroke__desc" class="ico_squareLarge" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title id="external-link-stroke__title">Link to external site.</title><desc id="external-link-stroke__desc">This indicates a link to an external site that may not follow the same accessibility or privacy policies as Alaska Airlines. By selecting a partner link you agree to share your data with these sites.</desc><path d="M7 6.25h5a.75.75 0 0 1 .102 1.494L12 7.75H7a1.25 1.25 0 0 0-1.244 1.123L5.75 9v8c0 .648.492 1.18 1.122 1.244L7 18.25h8a1.25 1.25 0 0 0 1.244-1.122L16.25 17v-5a.75.75 0 0 1 1.493-.101l.007.101v5a2.75 2.75 0 0 1-2.582 2.745L15 19.75H7a2.75 2.75 0 0 1-2.745-2.582L4.25 17V9a2.75 2.75 0 0 1 2.582-2.745zh5zm12.025-2 .125.015.11.032.128.061c.18.108.317.29.353.522l.009.12v5a.75.75 0 0 1-1.493.102L18.25 10V6.811l-6.72 6.72a.75.75 0 0 1-1.133-.977l.073-.084 6.718-6.72H14a.75.75 0 0 1-.743-.648L13.25 5a.75.75 0 0 1 .648-.743L14 4.25z"/></svg>',N='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="new-window-stroke__title new-window-stroke__desc" class="ico_squareLarge" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title id="new-window-stroke__title">Link will open a new tab or window.</title><desc id="new-window-stroke__desc">Notice indicator to alert users that action will result in the browser opening a new tab or window.</desc><path fill-rule="evenodd" d="M20.246 5.687a2.063 2.063 0 0 0-2.058-1.937H8.813l-.126.004A2.063 2.063 0 0 0 6.75 5.813v.937H6.5l-.168.005A2.75 2.75 0 0 0 3.75 9.5v8l.005.168A2.75 2.75 0 0 0 6.5 20.25h8l.168-.005A2.75 2.75 0 0 0 17.25 17.5v-.25h.938l.125-.004a2.063 2.063 0 0 0 1.937-2.058V5.813zM15.75 17.25H8.813a2.063 2.063 0 0 1-2.06-1.937l-.003-.126V8.25H6.5a1.25 1.25 0 0 0-1.244 1.123L5.25 9.5v8c0 .648.492 1.18 1.122 1.244l.128.006h8a1.25 1.25 0 0 0 1.243-1.122l.007-.128zm-6.625-12h8.75l.09.005a.875.875 0 0 1 .785.87v8.75l-.005.09a.875.875 0 0 1-.87.785h-8.75l-.09-.005a.875.875 0 0 1-.785-.87v-8.75l.005-.09a.875.875 0 0 1 .87-.785m4.28 1.757L13.507 7c.38 0 .693.3.743.69l.007.11-.007 1.938h2c.38 0 .694.301.743.691l.007.108c0 .405-.282.74-.648.792l-.102.007h-2.001l.001 1.865c0 .404-.282.739-.648.792L13.5 14c-.38 0-.694-.3-.743-.69l-.007-.11-.001-1.864H10.75c-.38 0-.694-.3-.743-.69L10 10.537c0-.404.282-.738.648-.791l.102-.008h2l.007-1.939c0-.404.282-.739.648-.792"/></svg>';class L extends i$1{static get properties(){return {appearance:{type:String,reflect:true},layout:{type:String,attribute:"layout",reflect:true},shape:{type:String,attribute:"shape",reflect:true},size:{type:String,attribute:"size",reflect:true},onDark:{type:Boolean,attribute:"ondark",reflect:true}}}}class _ extends L{constructor(){super(),this.appearance="default",this.download=false,this.ondark=false,this.variant="primary",this.layout="cta"===this.type?"block":null,this.shape="cta"===this.type?"rounded":null,this.size="cta"===this.type?"md":null,this.defaultReferrerPolicy="strict-origin-when-cross-origin",this.ariapressed="false",this.tabIsActive="false",this.runtimeUtils=new T,this.addEventListener("touchstart",function(){this.classList.add("is-touching");});}static get properties(){return {...L.properties,appearance:{type:String,reflect:true},href:{type:String,reflect:true},rel:{type:String,reflect:true},target:{type:String,reflect:true},download:{type:Boolean,reflect:true},ondark:{type:Boolean},type:{type:String,reflect:true},fluid:{type:Boolean},referrerpolicy:{type:Boolean,reflect:true},variant:{type:String,reflect:true}}}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-hyperlink");}get safeUri(){return this.href?this.safeUrl(this.href):""}get includesDomain(){return !!this.href&&this.safeUri.includes("http")}safeUrl(e){let t;if(!e)return;const o=new URL(e,window?.location?.href);switch(o.protocol){case "tel:":case "sms:":case "mailto:":t=e;break;case "javascript:":case "data:":case "vbscript:":t=void 0;break;default:window?.location?.href.includes("localhost")||(o.protocol="https:"),t=o.href;}return t}generateIconHtml(e){const t=(new DOMParser).parseFromString(e,"text/html").body.firstChild;return t.setAttribute("slot","svg"),u$3`<${this.iconTag} customColor customSvg part="targetIcon">${t}</${this.iconTag}>`}targetIcon(e){if("_blank"===e)return t=this.safeUri,new URL(t).hostname===window.location.hostname?this.generateIconHtml(N):this.generateIconHtml(I);var t;}getTabState(e){return true===e?"is-active":""}getRelType(e,t){return t||("_blank"===e&&this.safeUri.includes(window?.location?.hostname)?void 0:"_blank"!==e||!this.includesDomain||this.rel||this.referrerpolicy?"_blank"===e&&this.referrerpolicy?"external":void 0:"noOpener noReferrer")}ariaPressedState(e){const t=function(e){const t=this.shadowRoot.querySelector("[aria-pressed]");t.setAttribute("aria-pressed","false"),"mousedown"===e.type?t.ariaPressed=true:t.ariaPressed=false,"keydown"===e.type&&("Enter"===e.code?(t.ariaPressed=true,this.hyperlinkRef?.value&&"button"===this.hyperlinkRef.value.role&&this.click()):t.ariaPressed=false);};return this.addEventListener("mousedown",t),this.addEventListener("mouseup",t),this.addEventListener("keydown",t),this.addEventListener("keyup",t),e}render(){return this.getMarkup()}}class ${generateElementName(e,t){let o=e;return o+="-",o+=t.replace(/[.]/g,"_"),o}generateTag(e,t,o){const r=this.generateElementName(e,t),a=i$4`${s$3(r)}`;return customElements.get(r)||customElements.define(r,class extends o{}),a}}class F{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,o=(t,r=t&&t.closest(e))=>t&&t!==document&&t!==window?r||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,true);}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}getSlotText(e,t){const o=e.shadowRoot?.querySelector(`slot[name="${t}"]`);return (o?.assignedNodes({flatten:true})||[]).map(e=>e.textContent?.trim()).join(" ").trim()||null}}class E{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,o=(t,r=t&&t.closest(e))=>t&&t!==document&&t!==window?r||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,true);}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}}var O=i$3`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
217
|
+
`,W=i$3`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs) * 6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
|
|
218
|
+
`,D=i$3`:host{--ds-auro-loader-background-color: currentcolor;--ds-auro-loader-border-color: currentcolor;--ds-auro-loader-color: currentcolor}
|
|
219
|
+
`;class j extends i$1{constructor(){super(),this.keys=[0,1,2,3,4,5,6,7,8,9],this.mdCount=3,this.smCount=2,this.runtimeUtils=new E,this.orbit=false,this.ringworm=false,this.laser=false,this.pulse=false;}static get properties(){return {laser:{type:Boolean,reflect:true},orbit:{type:Boolean,reflect:true},pulse:{type:Boolean,reflect:true},ringworm:{type:Boolean,reflect:true}}}static get styles(){return [W,O,D]}static register(e="auro-loader"){E.prototype.registerComponent(e,j);}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-loader");}connectedCallback(){super.connectedCallback();}defineTemplate(){let e=Array.from(Array(this.mdCount).keys());return this.orbit||this.laser?e=Array.from(Array(this.smCount).keys()):this.ringworm&&(e=Array.from(Array(0).keys())),e}render(){return x$2`
|
|
220
220
|
${this.defineTemplate().map(e=>x$2`
|
|
221
221
|
<span part="element" class="loader node-${e}"></span>
|
|
222
222
|
`)}
|
|
@@ -272,7 +272,7 @@ let d=class{registerComponent(e,t){customElements.get(e)||customElements.define(
|
|
|
272
272
|
`;class he extends ce{static register(e="auro-hyperlink-button"){T.prototype.registerComponent(e,he);}static get styles(){return [...ce.styles,de]}}customElements.get("auro-hyperlink-button")||customElements.define("auro-hyperlink-button",he);var ue=i$3`:host([type=nav]:not([ondark])) a,:host([type=nav]:not([appearance=inverse])) a{color:var(--ds-auro-hyperlink-nav-default-color-default);background-color:var(--ds-auro-hyperlink-nav-default-container-color-default);outline-color:var(--ds-auro-hyperlink-nav-default-outline-color-default);border-color:var(--ds-auro-hyperlink-nav-default-border-color-default)}:host([type=nav]:not([ondark])) a:visited,:host([type=nav]:not([appearance=inverse])) a:visited{color:var(--ds-auro-hyperlink-nav-visited-color-default);background-color:var(--ds-auro-hyperlink-nav-visited-container-color-default);outline-color:var(--ds-auro-hyperlink-nav-visited-outline-color-default);border-color:var(--ds-auro-hyperlink-nav-visited-border-color-default)}:host([type=nav]:not([ondark])) a:focus-visible,:host([type=nav]:not([appearance=inverse])) a:focus-visible{color:var(--ds-auro-hyperlink-nav-focus-color-default);background-color:var(--ds-auro-hyperlink-nav-focus-container-color-default);outline-color:var(--ds-auro-hyperlink-nav-focus-outline-color-default);border-color:var(--ds-auro-hyperlink-nav-focus-border-color-default)}:host([type=nav]:not([ondark])) a:hover,:host([type=nav]:not([appearance=inverse])) a:hover{color:var(--ds-auro-hyperlink-nav-hover-color-default);background-color:var(--ds-auro-hyperlink-nav-hover-container-color-default);outline-color:var(--ds-auro-hyperlink-nav-hover-outline-color-default);border-color:var(--ds-auro-hyperlink-nav-hover-border-color-default)}:host([type=nav]:not([ondark])) a:hover:focus-visible,:host([type=nav]:not([appearance=inverse])) a:hover:focus-visible{outline-color:var(--ds-auro-hyperlink-nav-focus-outline-color-default);border-color:var(--ds-auro-hyperlink-nav-focus-border-color-default)}:host([type=nav][ondark]) a,:host([type=nav][appearance=inverse]) a{color:var(--ds-auro-hyperlink-nav-default-color-inverse);background-color:var(--ds-auro-hyperlink-nav-default-container-color-inverse);outline-color:var(--ds-auro-hyperlink-nav-default-outline-color-inverse);border-color:var(--ds-auro-hyperlink-nav-default-border-color-inverse)}:host([type=nav][ondark]) a:visited,:host([type=nav][appearance=inverse]) a:visited{color:var(--ds-auro-hyperlink-nav-visited-color-inverse);background-color:var(--ds-auro-hyperlink-nav-visited-container-color-inverse);outline-color:var(--ds-auro-hyperlink-nav-visited-outline-color-inverse);border-color:var(--ds-auro-hyperlink-nav-visited-border-color-inverse)}:host([type=nav][ondark]) a:focus-visible,:host([type=nav][appearance=inverse]) a:focus-visible{color:var(--ds-auro-hyperlink-nav-focus-color-inverse);background-color:var(--ds-auro-hyperlink-nav-focus-container-color-inverse);outline-color:var(--ds-auro-hyperlink-nav-focus-outline-color-inverse);border-color:var(--ds-auro-hyperlink-nav-focus-border-color-inverse)}:host([type=nav][ondark]) a:hover,:host([type=nav][appearance=inverse]) a:hover{color:var(--ds-auro-hyperlink-nav-hover-color-inverse);background-color:var(--ds-auro-hyperlink-nav-hover-container-color-inverse);outline-color:var(--ds-auro-hyperlink-nav-hover-outline-color-inverse);border-color:var(--ds-auro-hyperlink-nav-hover-border-color-inverse)}:host([type=nav][ondark]) a:hover:focus-visible,:host([type=nav][appearance=inverse]) a:hover:focus-visible{outline-color:var(--ds-auro-hyperlink-nav-focus-outline-color-inverse);border-color:var(--ds-auro-hyperlink-nav-focus-border-color-inverse)}:host(:not([type=nav]):not([ondark])) a,:host(:not([type=nav]):not([appearance=inverse])) a{color:var(--ds-auro-hyperlink-default-color-default);background-color:var(--ds-auro-hyperlink-default-container-color-default);outline-color:var(--ds-auro-hyperlink-default-outline-color-default);border-color:var(--ds-auro-hyperlink-default-border-color-default)}:host(:not([type=nav]):not([ondark])) a:visited,:host(:not([type=nav]):not([appearance=inverse])) a:visited{color:var(--ds-auro-hyperlink-visited-color-default);background-color:var(--ds-auro-hyperlink-visited-container-color-default);outline-color:var(--ds-auro-hyperlink-visited-outline-color-default);border-color:var(--ds-auro-hyperlink-visited-border-color-default)}:host(:not([type=nav]):not([ondark])) a:focus-visible,:host(:not([type=nav]):not([appearance=inverse])) a:focus-visible{color:var(--ds-auro-hyperlink-focus-color-default);background-color:var(--ds-auro-hyperlink-focus-container-color-default);outline-color:var(--ds-auro-hyperlink-focus-outline-color-default);border-color:var(--ds-auro-hyperlink-focus-border-color-default)}:host(:not([type=nav]):not([ondark])) a:hover,:host(:not([type=nav]):not([appearance=inverse])) a:hover{color:var(--ds-auro-hyperlink-hover-color-default);background-color:var(--ds-auro-hyperlink-hover-container-color-default);outline-color:var(--ds-auro-hyperlink-hover-outline-color-default);border-color:var(--ds-auro-hyperlink-hover-border-color-default)}:host(:not([type=nav]):not([ondark])) a:hover:focus-visible,:host(:not([type=nav]):not([appearance=inverse])) a:hover:focus-visible{outline-color:var(--ds-auro-hyperlink-focus-outline-color-default);border-color:var(--ds-auro-hyperlink-focus-border-color-default)}:host(:not([type=nav])[ondark]) a,:host(:not([type=nav])[appearance=inverse]) a{color:var(--ds-auro-hyperlink-default-color-inverse);background-color:var(--ds-auro-hyperlink-default-container-color-inverse);outline-color:var(--ds-auro-hyperlink-default-outline-color-inverse);border-color:var(--ds-auro-hyperlink-default-border-color-inverse)}:host(:not([type=nav])[ondark]) a:visited,:host(:not([type=nav])[appearance=inverse]) a:visited{color:var(--ds-auro-hyperlink-visited-color-inverse);background-color:var(--ds-auro-hyperlink-visited-container-color-inverse);outline-color:var(--ds-auro-hyperlink-visited-outline-color-inverse);border-color:var(--ds-auro-hyperlink-visited-border-color-inverse)}:host(:not([type=nav])[ondark]) a:focus-visible,:host(:not([type=nav])[appearance=inverse]) a:focus-visible{color:var(--ds-auro-hyperlink-focus-color-inverse);background-color:var(--ds-auro-hyperlink-focus-container-color-inverse);outline-color:var(--ds-auro-hyperlink-focus-outline-color-inverse);border-color:var(--ds-auro-hyperlink-focus-border-color-inverse)}:host(:not([type=nav])[ondark]) a:hover,:host(:not([type=nav])[appearance=inverse]) a:hover{color:var(--ds-auro-hyperlink-hover-color-inverse);background-color:var(--ds-auro-hyperlink-hover-container-color-inverse);outline-color:var(--ds-auro-hyperlink-hover-outline-color-inverse);border-color:var(--ds-auro-hyperlink-hover-border-color-inverse)}:host(:not([type=nav])[ondark]) a:hover:focus-visible,:host(:not([type=nav])[appearance=inverse]) a:hover:focus-visible{outline-color:var(--ds-auro-hyperlink-focus-outline-color-inverse);border-color:var(--ds-auro-hyperlink-focus-border-color-inverse)}
|
|
273
273
|
`,pe=i$3`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host(:not([fluid])){display:inline-block}:host([type=nav]) .hyperlink:focus{text-decoration:underline}:host([type=cta]){line-height:0}:host(:not([type=cta]):not([type=nav])) .hyperlink{display:inline-block;border-radius:3px;outline-offset:unset;outline-style:solid;outline-width:1px}:host(:not([type=cta]):not([type=nav])) .hyperlink:focus-visible{outline-offset:var(--ds-size-25, .125rem)}.hyperlink{transition:all .15s ease;text-decoration:underline}@media (hover: hover){.hyperlink:hover{text-decoration:none}.hyperlink--nav:hover{text-decoration:underline}}.hyperlink--nav{display:block;text-decoration:none}.hyperlink--nav:focus-visible{outline-style:solid;outline-width:var(--ds-size-50, .25rem);outline-offset:unset}.hyperlink--button{cursor:pointer}[auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-left:var(--ds-size-25, .125rem)}[fluid]{display:flex}
|
|
274
274
|
`,ve=i$3`:host(:not([type=cta])){--ds-auro-hyperlink-default-color-default: var(--ds-advanced-color-hyperlink-text, #2875b5);--ds-auro-hyperlink-default-container-color-default: transparent;--ds-auro-hyperlink-default-outline-color-default: transparent;--ds-auro-hyperlink-default-border-color-default: transparent;--ds-auro-hyperlink-visited-color-default: var(--ds-advanced-color-hyperlink-text, #2875b5);--ds-auro-hyperlink-visited-container-color-default: transparent;--ds-auro-hyperlink-visited-outline-color-default: transparent;--ds-auro-hyperlink-visited-border-color-default: transparent;--ds-auro-hyperlink-focus-color-default: var(--ds-advanced-color-hyperlink-text, #2875b5);--ds-auro-hyperlink-focus-container-color-default: transparent;--ds-auro-hyperlink-focus-outline-color-default: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-hyperlink-focus-border-color-default: transparent;--ds-auro-hyperlink-hover-color-default: var(--ds-advanced-color-hyperlink-text-hover, #01426a);--ds-auro-hyperlink-hover-container-color-default: transparent;--ds-auro-hyperlink-hover-outline-color-default: transparent;--ds-auro-hyperlink-hover-border-color-default: transparent;--ds-auro-hyperlink-default-color-inverse: var(--ds-advanced-color-hyperlink-text-inverse, #ffffff);--ds-auro-hyperlink-default-container-color-inverse: transparent;--ds-auro-hyperlink-default-outline-color-inverse: transparent;--ds-auro-hyperlink-default-border-color-inverse: transparent;--ds-auro-hyperlink-visited-color-inverse: var(--ds-advanced-color-hyperlink-text-inverse, #ffffff);--ds-auro-hyperlink-visited-container-color-inverse: transparent;--ds-auro-hyperlink-visited-outline-color-inverse: transparent;--ds-auro-hyperlink-visited-border-color-inverse: transparent;--ds-auro-hyperlink-focus-color-inverse: var(--ds-advanced-color-hyperlink-text-inverse, #ffffff);--ds-auro-hyperlink-focus-container-color-inverse: transparent;--ds-auro-hyperlink-focus-outline-color-inverse: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-hyperlink-focus-border-color-inverse: transparent;--ds-auro-hyperlink-hover-color-inverse: var(--ds-advanced-color-hyperlink-text-inverse, #ffffff);--ds-auro-hyperlink-hover-container-color-inverse: transparent;--ds-auro-hyperlink-hover-outline-color-inverse: transparent;--ds-auro-hyperlink-hover-border-color-inverse: transparent;--ds-auro-hyperlink-nav-default-color-default: var(--ds-advanced-color-hyperlink-text, #2875b5);--ds-auro-hyperlink-nav-default-container-color-default: transparent;--ds-auro-hyperlink-nav-default-outline-color-default: transparent;--ds-auro-hyperlink-nav-default-border-color-default: transparent;--ds-auro-hyperlink-nav-visited-color-default: var(--ds-advanced-color-hyperlink-text, #2875b5);--ds-auro-hyperlink-nav-visited-container-color-default: transparent;--ds-auro-hyperlink-nav-visited-outline-color-default: transparent;--ds-auro-hyperlink-nav-visited-border-color-default: transparent;--ds-auro-hyperlink-nav-focus-color-default: var(--ds-advanced-color-hyperlink-text-inverse, #ffffff);--ds-auro-hyperlink-nav-focus-container-color-default: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-hyperlink-nav-focus-outline-color-default: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-hyperlink-nav-focus-border-color-default: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-hyperlink-nav-hover-color-default: var(--ds-advanced-color-hyperlink-text-hover, #01426a);--ds-auro-hyperlink-nav-hover-container-color-default: transparent;--ds-auro-hyperlink-nav-hover-outline-color-default: transparent;--ds-auro-hyperlink-nav-hover-border-color-default: transparent;--ds-auro-hyperlink-nav-default-color-inverse: var(--ds-advanced-color-hyperlink-text-inverse, #ffffff);--ds-auro-hyperlink-nav-default-container-color-inverse: transparent;--ds-auro-hyperlink-nav-default-outline-color-inverse: transparent;--ds-auro-hyperlink-nav-default-border-color-inverse: transparent;--ds-auro-hyperlink-nav-visited-color-inverse: var(--ds-advanced-color-hyperlink-text-inverse, #ffffff);--ds-auro-hyperlink-nav-visited-container-color-inverse: transparent;--ds-auro-hyperlink-nav-visited-outline-color-inverse: transparent;--ds-auro-hyperlink-nav-visited-border-color-inverse: transparent;--ds-auro-hyperlink-nav-focus-color-inverse: var(--ds-advanced-color-hyperlink-text, #2875b5);--ds-auro-hyperlink-nav-focus-container-color-inverse: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-hyperlink-nav-focus-outline-color-inverse: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-hyperlink-nav-focus-border-color-inverse: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-hyperlink-nav-hover-color-inverse: var(--ds-advanced-color-hyperlink-text-inverse, #ffffff);--ds-auro-hyperlink-nav-hover-container-color-inverse: transparent;--ds-auro-hyperlink-nav-hover-outline-color-inverse: transparent;--ds-auro-hyperlink-nav-hover-border-color-inverse: transparent}
|
|
275
|
-
`;class be extends _{constructor(){super(),this._createRefs();const e=new M;this.iconTag=e.generateTag("auro-icon","9.1.
|
|
275
|
+
`;class be extends _{constructor(){super(),this._createRefs();const e=new M;this.iconTag=e.generateTag("auro-icon","9.1.1",g$1);}static get properties(){return {..._.properties}}static get styles(){return [pe,ue,ve]}static get shadowRootOptions(){return {...i$1.shadowRootOptions,delegatesFocus:true}}_createRefs(){this.hyperlinkRef=e();}connectedCallback(){super.connectedCallback(),this.runtimeUtils.handleComponentTagRename(this,"auro-hyperlink");}firstUpdated(){this.hyperlinkRef.value&&(this.attributeWatcher=H({host:this,target:this.hyperlinkRef.value}));}disconnectedCallback(){this.attributeWatcher&&(this.attributeWatcher.cleanup(),this.attributeWatcher=null);}static register(e="auro-hyperlink"){T.prototype.registerComponent(e,be);}renderLayoutDefault(){const e={hyperlink:this.safeUri||this.role,"hyperlink--nav":"nav"===this.type,"hyperlink--ondark":"inverse"===this.appearance||this.ondark,"hyperlink--button":this.role,"hyperlink--secondary":"secondary"===this.variant,"hyperlink--tertiary":"tertiary"===this.variant};return u$3`
|
|
276
276
|
${this.safeUri||this.role?u$3`
|
|
277
277
|
<a
|
|
278
278
|
${n(this.hyperlinkRef)}
|
|
@@ -280,11 +280,11 @@ let d=class{registerComponent(e,t){customElements.get(e)||customElements.define(
|
|
|
280
280
|
aria-pressed="${o$2("button"===this.role?this.ariaPressedState(this.ariapressed):void 0)}"
|
|
281
281
|
class="${e$1(e)}"
|
|
282
282
|
href="${o$2(this.role?void 0:this.safeUri)}"
|
|
283
|
-
rel="${o$2(this.target||this.rel?this.getRelType(this.target,this.rel):void 0)}"
|
|
283
|
+
.rel="${o$2(this.target||this.rel?this.getRelType(this.target,this.rel):void 0)}"
|
|
284
284
|
referrerpolicy="${o$2(this.referrerpolicy?this.defaultReferrerPolicy:void 0)}"
|
|
285
285
|
role="${o$2("button"===this.role?this.role:void 0)}"
|
|
286
286
|
?download="${this.download}"
|
|
287
|
-
target="${o$2(this.target
|
|
287
|
+
.target="${o$2(this.target?this.target:void 0)}"
|
|
288
288
|
tabindex="${o$2("button"===this.role?"0":void 0)}"
|
|
289
289
|
>
|
|
290
290
|
<slot></slot>
|
|
@@ -308,8 +308,6 @@ let d=class{registerComponent(e,t){customElements.get(e)||customElements.define(
|
|
|
308
308
|
</auro-hyperlink-button>
|
|
309
309
|
`}getMarkup(){return "cta"===this.type?this.renderLayoutCTA():this.renderLayoutDefault()}}
|
|
310
310
|
|
|
311
|
-
be.register();
|
|
312
|
-
|
|
313
311
|
class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}}var u='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';class m extends i$1{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}}const g=new Map,f=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g.has(t)||g.set(t,fetch(t).then(e)),g.get(t)};var w=i$3`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem)!important;width:var(--ds-auro-icon-size, 1.5rem)!important;height:var(--ds-auro-icon-size, 1.5rem)!important}.componentWrapper{display:flex;line-height:var(--ds-auro-icon-size)}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.svgWrapper [part=svg]{display:flex}.labelWrapper{margin-left:var(--ds-size-50, .25rem)}.labelWrapper ::slotted(*){line-height:inherit!important}
|
|
314
312
|
`;class z extends m{constructor(){super(),this.onDark=false,this.appearance="default";}static get properties(){return {...m.properties,onDark:{type:Boolean,reflect:true},appearance:{type:String,reflect:true},svg:{attribute:false,reflect:true}}}static get styles(){return w}async fetchIcon(t,a){let e="";e="logos"===t?await f(`${this.uri}/${t}/${a}.svg`):await f(`${this.uri}/icons/${t}/${a}.svg`);return (new DOMParser).parseFromString(e,"text/html").body.querySelector("svg")}async firstUpdated(){try{if(!this.customSvg){const t=await this.fetchIcon(this.category,this.name);if(t)this.svg=t;else if(!t){const t=(new DOMParser).parseFromString(u,"text/html");this.svg=t.body.firstChild;}}}catch(t){this.svg=void 0;}}}i$3`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}:host{display:inline-block;--ds-auro-icon-size: 100%;width:100%;height:100%}:host .logo{color:var(--ds-auro-alaska-color)}:host([onDark]),:host([appearance=inverse]){--ds-auro-alaska-color: #FFF}
|
|
315
313
|
`;var y=i$3`:host{--ds-auro-icon-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color: #02426D;--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}
|
|
@@ -334,6 +332,8 @@ class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,cl
|
|
|
334
332
|
</div>
|
|
335
333
|
`}}
|
|
336
334
|
|
|
335
|
+
var hyperlinkVersion = '7.1.0';
|
|
336
|
+
|
|
337
337
|
var iconVersion = '9.1.1';
|
|
338
338
|
|
|
339
339
|
const OneWorld = () => x$2`<svg width="100%" height="100%" viewBox="0 0 55 55" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
@@ -377,9 +377,6 @@ const BADGES_SIZES = ['md', 'lg', 'xl', '2xl'];
|
|
|
377
377
|
// Sizes that should be used in groups
|
|
378
378
|
const GROUPS_SIZES = ['xs', 'sm', 'md', 'lg'];
|
|
379
379
|
|
|
380
|
-
// Maximum number of tails allowed in a group
|
|
381
|
-
const MAX_TAILS_IN_GROUP = 2;
|
|
382
|
-
|
|
383
380
|
// Default airline name (EN/i18n)
|
|
384
381
|
const DEFAULT_AIRLINE_NAME = 'Airline';
|
|
385
382
|
|
|
@@ -389,62 +386,6 @@ const ARIA_LABELS = {
|
|
|
389
386
|
tailLiveryWithBadge: 'Tail livery, {badgeAlt} member'
|
|
390
387
|
};
|
|
391
388
|
|
|
392
|
-
/**
|
|
393
|
-
* Normalizes border width to a px length.
|
|
394
|
-
* Accepts:
|
|
395
|
-
* - number => "<n>px"
|
|
396
|
-
* - "<number>" => "<number>px"
|
|
397
|
-
* - "<number>px" => passthrough
|
|
398
|
-
* Ignores any other units or tokens and returns undefined.
|
|
399
|
-
* @param {number|string|undefined|null} value - The border width value to normalize
|
|
400
|
-
* @returns {string|undefined} The normalized border width or undefined
|
|
401
|
-
*/
|
|
402
|
-
function normalizeBorderWidth(value) {
|
|
403
|
-
if (value === undefined || value === null) return undefined;
|
|
404
|
-
if (typeof value === 'number') return value === 0 ? '0' : `${value}px`;
|
|
405
|
-
const v = String(value).trim();
|
|
406
|
-
if (!v) return undefined;
|
|
407
|
-
// Numeric string -> px
|
|
408
|
-
if (/^-?\d*\.?\d+$/.test(v)) return v === '0' ? '0' : `${v}px`;
|
|
409
|
-
// px unit only
|
|
410
|
-
if (/^-?\d*\.?\d+px$/.test(v)) return v;
|
|
411
|
-
// Non-px inputs are ignored
|
|
412
|
-
return undefined;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* Pass through border-related overrides while enforcing px-only widths.
|
|
417
|
-
*
|
|
418
|
-
* Behavior:
|
|
419
|
-
* - `borderColor` is returned as-is when provided.
|
|
420
|
-
* - `borderWidth` accepts only numbers, numeric strings, or px strings and normalizes via `normalizeBorderWidth`.
|
|
421
|
-
* • number -> "<n>px" (e.g., 2 -> "2px").
|
|
422
|
-
* • "<number>" -> "<number>px" (e.g., "2" -> "2px").
|
|
423
|
-
* • "<number>px" -> passthrough.
|
|
424
|
-
* • Zero is returned as "0px".
|
|
425
|
-
* • Any other units/tokens (e.g., "0.125rem", "var(--w)") are ignored (treated as undefined).
|
|
426
|
-
*
|
|
427
|
-
* @param {object} props - The props object
|
|
428
|
-
* @param {string|undefined} props.borderColor - Optional CSS color value for the border.
|
|
429
|
-
* @param {number|string|undefined} props.borderWidth - Optional border width as a number, numeric string, or px string. Other units are ignored.
|
|
430
|
-
* @returns {{borderColor: string|undefined, borderWidth: string|undefined}} Object with optional `borderColor` and px-only `borderWidth`.
|
|
431
|
-
*/
|
|
432
|
-
function resolveBorderProps(props) {
|
|
433
|
-
const { borderColor, borderWidth } = props;
|
|
434
|
-
// Prefer centralized normalization and enforce px-only outputs.
|
|
435
|
-
const normalized = normalizeBorderWidth(borderWidth);
|
|
436
|
-
let resolvedBorderWidth;
|
|
437
|
-
|
|
438
|
-
if (normalized !== undefined) {
|
|
439
|
-
resolvedBorderWidth = normalized === '0' ? '0px' : normalized;
|
|
440
|
-
} else {
|
|
441
|
-
// Non-px inputs or empty strings are ignored
|
|
442
|
-
resolvedBorderWidth = undefined;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
return { borderColor, borderWidth: resolvedBorderWidth };
|
|
446
|
-
}
|
|
447
|
-
|
|
448
389
|
/**
|
|
449
390
|
* Template for internationalization (i18n).
|
|
450
391
|
* Replaces placeholders in the format {key} with provided values.
|
|
@@ -458,7 +399,25 @@ function i18nTemplate(template, values = {}) {
|
|
|
458
399
|
});
|
|
459
400
|
}
|
|
460
401
|
|
|
461
|
-
var styleCss = i$3`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{width:var(--avatar-width);height:var(--avatar-width);min-width:var(--avatar-width);--avatar-width: var(--avatar-width-lg);--avatar-gradient: var(--gradient-oa);--tail-width: var(--tail-width-lg);--tail-offset-y: var(--tail-offset-y-lg);--href-label-gap: var(--href-label-gap-lg);--badge-width: var(--badge-width-lg);--border-color-default: rgba(88, 94, 103, 1);--border-color-white: #ffffff;--border-width-default: 4px;--border-display: none;--border-padding: 0;--border-radius-full: 999px;--tail-outline-color: var(--border-color-default);--tail-outline-width: 1px;--gradient-as: linear-gradient(180deg, #6899C6 0%, #CFE0EF 100%);--gradient-ha: linear-gradient(181deg, #CCB7ED -6.38%, #F9C2E7 99.46%);--gradient-oa: linear-gradient(181deg, #C5D0D9 -6.38%, #E8F1F8 99.46%);--tail-drop-shadow: drop-shadow(0 3px 3px rgba(0,0,0,.24)) drop-shadow(0 6px 14px rgba(0,0,0,.24));--z-index-border: 1;--z-index-badge: 2;--z-index-group-back: 1;--z-index-group-front: 2;--badge-translate-x: 0;--badge-translate-y: 0;--avatar-width-xs: 24px;--avatar-width-sm: 32px;--avatar-width-md: 48px;--avatar-width-lg: 60px;--avatar-width-xl: 96px;--avatar-width-2xl: 134px;--tail-width-xs: 19px;--tail-width-sm: 26px;--tail-width-md: 39px;--tail-width-lg: 48px;--tail-width-xl: 77px;--tail-width-2xl: 107px;--tail-offset-y-xs: 3px;--tail-offset-y-sm: 4px;--tail-offset-y-md: 6px;--tail-offset-y-lg: 7px;--tail-offset-y-xl: 13px;--tail-offset-y-2xl: 17px;--href-label-gap-md: 2px;--href-label-gap-lg: 4px;--href-label-gap-xl: 6px;--href-label-gap-2xl: 8px;--badge-width-md: 11px;--badge-width-lg: 14px;--badge-width-xl: 22px;--badge-width-2xl: 31px;--group-diagonal-width-xs: 42px;--group-diagonal-width-sm: 56px;--group-diagonal-width-md: 84px;--group-diagonal-width-lg: 105px;--group-horizontal-border-width-xs: 3px;--group-horizontal-overlap-xs: -2px;--group-horizontal-border-width-sm: 3px;--group-horizontal-overlap-sm: -2px;--group-horizontal-border-width-md: 4px;--group-horizontal-overlap-md: -6px;--group-horizontal-border-width-lg: 4px;--group-horizontal-overlap-lg: -10px}:host([size=xs]){--avatar-width: var(--avatar-width-xs);--tail-width: var(--tail-width-xs);--tail-offset-y: var(--tail-offset-y-xs)}:host([size=sm]){--avatar-width: var(--avatar-width-sm);--tail-width: var(--tail-width-sm);--tail-offset-y: var(--tail-offset-y-sm)}:host([size=md]){--avatar-width: var(--avatar-width-md);--tail-width: var(--tail-width-md);--tail-offset-y: var(--tail-offset-y-md);--badge-width: var(--badge-width-md);--href-label-gap: var(--href-label-gap-md);--badge-translate-x: 2px;--badge-translate-y: -7px}:host([size=lg]){--avatar-width: var(--avatar-width-lg);--tail-width: var(--tail-width-lg);--tail-offset-y: var(--tail-offset-y-lg);--badge-width: var(--badge-width-lg);--href-label-gap: var(--href-label-gap-lg);--badge-translate-x: 2px;--badge-translate-y: -4px}:host([size=xl]){--avatar-width: var(--avatar-width-xl);--tail-width: var(--tail-width-xl);--tail-offset-y: var(--tail-offset-y-xl);--badge-width: var(--badge-width-xl);--href-label-gap: var(--href-label-gap-xl)}:host([size="2xl"]){--avatar-width: var(--avatar-width-2xl);--tail-width: var(--tail-width-2xl);--tail-offset-y: var(--tail-offset-y-2xl);--badge-width: var(--badge-width-2xl);--href-label-gap: var(--href-label-gap-2xl)}:host([tail=as]),:host([tail=AS]){--avatar-gradient: var(--gradient-as)}:host([tail=ha]),:host([tail=HA]){--avatar-gradient: var(--gradient-ha)}:host([tail=oa]),:host([tail=OA]){--avatar-gradient: var(--gradient-oa)}.tail{display:inline-flex;flex-direction:column;align-items:center;vertical-align:middle;min-width:var(--avatar-width)}.tail>auro-hyperlink{display:flex;flex-direction:column;align-items:center;text-decoration:none;min-width:var(--avatar-width)}.tail>auro-hyperlink .label{display:block;margin-top:var(--href-label-gap);text-align:center;min-width:var(--avatar-width);white-space:nowrap;overflow:visible;text-overflow:clip}.border{position:relative;width:var(--avatar-width);height:var(--avatar-width);padding:var(--border-padding);border-radius:var(--border-radius-full);display:grid;place-items:center;margin:0 auto}.border.has-border{--border-padding: var(--border-width, var(--border-width-default))}.border.has-border:before{content:"";position:absolute;inset:0;border-radius:inherit;box-sizing:border-box;border:var(--border-width, var(--border-width-default)) solid var(--border-color, var(--border-color-default));z-index:var(--z-index-border);pointer-events:none;display:block}.container{position:relative;width:100%;height:100%;border-radius:var(--border-radius-full);background:var(--avatar-gradient);display:grid;place-items:center;overflow:hidden}.container [auro-icon]{--ds-auro-icon-size: var(--tail-width);position:absolute;top:50%;left:50%;transform:translate(-50%,calc(-50% + var(--tail-offset-y))) scale(1.26);transform-origin:center;pointer-events:none}.badge{position:absolute;right:0;bottom:0;transform:translate(var(--badge-translate-x),var(--badge-translate-y));width:var(--badge-width);height:var(--badge-width);object-fit:contain;border-radius:var(--border-radius-full);z-index:var(--z-index-badge)}:host([data-variant=aag]) [auro-icon]{filter:var(--tail-drop-shadow)}:host([data-variant=oa][outline]) [auro-icon]{filter:drop-shadow(var(--tail-outline-width) 0 0 var(--tail-outline-color)) drop-shadow(calc(-1 * var(--tail-outline-width)) 0 0 var(--tail-outline-color)) drop-shadow(0 var(--tail-outline-width) 0 var(--tail-outline-color)) drop-shadow(0 calc(-1 * var(--tail-outline-width)) 0 var(--tail-outline-color))}:host([href]){width:max-content}
|
|
402
|
+
/**
|
|
403
|
+
* Checks if an element is an AuroTail
|
|
404
|
+
* @param {Element} element - The element to check
|
|
405
|
+
* @returns {boolean}
|
|
406
|
+
*/
|
|
407
|
+
function isAuroTailElement(element) {
|
|
408
|
+
return element.constructor?.isAuroTail === true;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Checks if an element is an AuroTailGroup
|
|
413
|
+
* @param {HTMLElement} element - The element to check
|
|
414
|
+
* @returns {boolean}
|
|
415
|
+
*/
|
|
416
|
+
function isAuroTailGroupElement(element) {
|
|
417
|
+
return element.constructor?.isAuroTailGroup === true;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
var styleCss = i$3`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{--ds-auro-tail-border-color: var(--ds-auro-tail-border-color-default);--ds-auro-tail-border-width: var(--ds-auro-tail-border-w-default)}:host{display:inline-block;width:var(--ds-auro-tail-container-w);height:var(--ds-auro-tail-container-w);min-width:var(--ds-auro-tail-container-w);min-height:var(--ds-auro-tail-container-w);--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-lg);--ds-auro-tail-container-gradient: var(--ds-auro-tail-gradient-oa);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-lg);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-lg);--ds-auro-tail-href-label-gap: var(--ds-auro-tail-href-label-gap-lg);--ds-auro-tail-badge-w: var(--ds-auro-tail-badge-w-lg);--ds-auro-tail-border-color-default: rgba(88, 94, 103, 1);--ds-auro-tail-border-color-white: #ffffff;--ds-auro-tail-border-w-default: 0;--ds-auro-tail-border-display: none;--ds-auro-tail-border-padding: 0;--ds-auro-tail-border-radius-full: 999px;--ds-auro-tail-tail-outline-color: var(--ds-auro-tail-border-color-default);--ds-auro-tail-tail-outline-w: 1px;--ds-auro-tail-tail-drop-shadow: drop-shadow(0 3px 3px rgba(0,0,0,.24)) drop-shadow(0 6px 14px rgba(0,0,0,.24));--ds-auro-tail-z-index-border: 1;--ds-auro-tail-z-index-badge: 2;--ds-auro-tail-z-index-group-back: 1;--ds-auro-tail-z-index-group-front: 2;--ds-auro-tail-badge-offset-x: 0;--ds-auro-tail-badge-offset-y: 0;--ds-auro-tail-container-w-xs: 24px;--ds-auro-tail-tail-w-xs: 19px;--ds-auro-tail-tail-offset-y-xs: 3px;--ds-auro-tail-container-w-sm: 32px;--ds-auro-tail-tail-w-sm: 26px;--ds-auro-tail-tail-offset-y-sm: 4px;--ds-auro-tail-container-w-md: 48px;--ds-auro-tail-tail-w-md: 39px;--ds-auro-tail-tail-offset-y-md: 6px;--ds-auro-tail-href-label-gap-md: 2px;--ds-auro-tail-badge-w-md: 11px;--ds-auro-tail-badge-offset-x-md: 2px;--ds-auro-tail-badge-offset-y-md: -7px;--ds-auro-tail-container-w-lg: 60px;--ds-auro-tail-tail-w-lg: 48px;--ds-auro-tail-tail-offset-y-lg: 7px;--ds-auro-tail-href-label-gap-lg: 4px;--ds-auro-tail-badge-w-lg: 14px;--ds-auro-tail-badge-offset-x-lg: 2px;--ds-auro-tail-badge-offset-y-lg: -4px;--ds-auro-tail-container-w-xl: 96px;--ds-auro-tail-tail-w-xl: 77px;--ds-auro-tail-tail-offset-y-xl: 13px;--ds-auro-tail-href-label-gap-xl: 6px;--ds-auro-tail-badge-w-xl: 22px;--ds-auro-tail-container-w-2xl: 134px;--ds-auro-tail-tail-w-2xl: 107px;--ds-auro-tail-tail-offset-y-2xl: 17px;--ds-auro-tail-href-label-gap-2xl: 8px;--ds-auro-tail-badge-w-2xl: 31px;--ds-auro-tail-group-diag-w-xs: 42px;--ds-auro-tail-group-horiz-border-w-xs: 3px;--ds-auro-tail-group-horiz-overlap-xs: -2px;--ds-auro-tail-group-diag-w-sm: 56px;--ds-auro-tail-group-horiz-border-w-sm: 3px;--ds-auro-tail-group-horiz-overlap-sm: -2px;--ds-auro-tail-group-diag-w-md: 84px;--ds-auro-tail-group-horiz-border-w-md: 4px;--ds-auro-tail-group-horiz-overlap-md: -6px;--ds-auro-tail-group-diag-w-lg: 105px;--ds-auro-tail-group-horiz-border-w-lg: 4px;--ds-auro-tail-group-horiz-overlap-lg: -10px;--ds-auro-tail-gradient-as: linear-gradient(180deg, #6899C6 0%, #CFE0EF 100%);--ds-auro-tail-gradient-ha: linear-gradient(181deg, #CCB7ED -6.38%, #F9C2E7 99.46%);--ds-auro-tail-gradient-oa: linear-gradient(181deg, #C5D0D9 -6.38%, #E8F1F8 99.46%)}:host([size=xs]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-xs);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-xs);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-xs)}:host([size=sm]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-sm);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-sm);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-sm)}:host([size=md]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-md);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-md);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-md);--ds-auro-tail-badge-w: var(--ds-auro-tail-badge-w-md);--ds-auro-tail-badge-offset-x: var(--ds-auro-tail-badge-offset-x-md, 0);--ds-auro-tail-badge-offset-y: var(--ds-auro-tail-badge-offset-y-md, 0);--ds-auro-tail-href-label-gap: var(--ds-auro-tail-href-label-gap-md)}:host([size=lg]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-lg);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-lg);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-lg);--ds-auro-tail-badge-w: var(--ds-auro-tail-badge-w-lg);--ds-auro-tail-badge-offset-x: var(--ds-auro-tail-badge-offset-x-lg, 0);--ds-auro-tail-badge-offset-y: var(--ds-auro-tail-badge-offset-y-lg, 0);--ds-auro-tail-href-label-gap: var(--ds-auro-tail-href-label-gap-lg)}:host([size=xl]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-xl);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-xl);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-xl);--ds-auro-tail-badge-w: var(--ds-auro-tail-badge-w-xl);--ds-auro-tail-badge-offset-x: var(--ds-auro-tail-badge-offset-x-xl, 0);--ds-auro-tail-badge-offset-y: var(--ds-auro-tail-badge-offset-y-xl, 0);--ds-auro-tail-href-label-gap: var(--ds-auro-tail-href-label-gap-xl)}:host([size="2xl"]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-2xl);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-2xl);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-2xl);--ds-auro-tail-badge-w: var(--ds-auro-tail-badge-w-2xl);--ds-auro-tail-badge-offset-x: var(--ds-auro-tail-badge-offset-x-2xl, 0);--ds-auro-tail-badge-offset-y: var(--ds-auro-tail-badge-offset-y-2xl, 0);--ds-auro-tail-href-label-gap: var(--ds-auro-tail-href-label-gap-2xl)}:host([tail=as i]){--ds-auro-tail-container-gradient: var(--ds-auro-tail-gradient-as)}:host([tail=ha i]){--ds-auro-tail-container-gradient: var(--ds-auro-tail-gradient-ha)}:host([tail=oa i]){--ds-auro-tail-container-gradient: var(--ds-auro-tail-gradient-oa)}.tail{display:flex;flex-direction:column;align-items:center;vertical-align:middle;min-width:var(--ds-auro-tail-container-w);min-height:var(--ds-auro-tail-container-w)}.tail>.tail-hyperlink{display:flex;flex-direction:column;align-items:center;text-decoration:none;min-width:var(--ds-auro-tail-container-w);min-height:var(--ds-auro-tail-container-w)}.tail>.tail-hyperlink .label{display:block;margin-top:var(--ds-auro-tail-href-label-gap);text-align:center;min-width:var(--ds-auro-tail-container-w);white-space:nowrap;overflow:visible;text-overflow:clip}.border{position:relative;width:var(--ds-auro-tail-container-w);height:var(--ds-auro-tail-container-w);border-radius:var(--ds-auro-tail-border-radius-full);display:grid;place-items:center;margin:0 auto;box-sizing:content-box;border:var(--ds-auro-tail-border-width, 0) solid var(--ds-auro-tail-border-color, var(--ds-auro-tail-border-color-default))}:host{width:calc(var(--ds-auro-tail-container-w) + 2 * var(--ds-auro-tail-border-width, 0px));height:calc(var(--ds-auro-tail-container-w) + 2 * var(--ds-auro-tail-border-width, 0px));min-width:calc(var(--ds-auro-tail-container-w) + 2 * var(--ds-auro-tail-border-width, 0px));min-height:calc(var(--ds-auro-tail-container-w) + 2 * var(--ds-auro-tail-border-width, 0px))}.container{position:relative;width:100%;height:100%;border-radius:var(--ds-auro-tail-border-radius-full);background:var(--ds-auro-tail-container-gradient);display:grid;place-items:center;overflow:hidden}.container [auro-icon]{--ds-auro-icon-size: var(--ds-auro-tail-tail-w);position:absolute;top:50%;left:50%;transform:translate(-50%,calc(-50% + var(--ds-auro-tail-tail-offset-y))) scale(1.26);transform-origin:center;pointer-events:none}.badge{position:absolute;right:0;bottom:0;transform:translate(var(--ds-auro-tail-badge-offset-x),var(--ds-auro-tail-badge-offset-y));width:var(--ds-auro-tail-badge-w);height:var(--ds-auro-tail-badge-w);object-fit:contain;border-radius:var(--ds-auro-tail-border-radius-full);z-index:var(--ds-auro-tail-z-index-badge)}:host([data-carrier-type=aag]) [auro-icon]{filter:var(--ds-auro-tail-tail-drop-shadow)}:host([data-carrier-type=oa][variant=outline]) [auro-icon]{margin-left:calc(-1 * var(--ds-auro-tail-tail-outline-w) * 2);margin-top:calc(var(--ds-auro-tail-tail-outline-w) * 2);filter:drop-shadow(var(--ds-auro-tail-tail-outline-w) 0 0 var(--ds-auro-tail-tail-outline-color)) drop-shadow(calc(-1 * var(--ds-auro-tail-tail-outline-w)) 0 0 var(--ds-auro-tail-tail-outline-color)) drop-shadow(0 var(--ds-auro-tail-tail-outline-w) 0 var(--ds-auro-tail-tail-outline-color)) drop-shadow(0 calc(-1 * var(--ds-auro-tail-tail-outline-w)) 0 var(--ds-auro-tail-tail-outline-color))}:host([href]){width:max-content;height:max-content;min-height:max-content;vertical-align:bottom}
|
|
462
421
|
`;
|
|
463
422
|
|
|
464
423
|
/**
|
|
@@ -468,25 +427,51 @@ var styleCss = i$3`.body-default{font-size:var(--wcss-body-default-font-size, 1r
|
|
|
468
427
|
*/
|
|
469
428
|
|
|
470
429
|
/**
|
|
471
|
-
* @
|
|
472
|
-
*
|
|
473
|
-
* @returns {void}
|
|
474
|
-
*/
|
|
475
|
-
|
|
476
|
-
/**
|
|
477
|
-
* The auro-tail element displays Alaska, Hawaiian, and partner airline tail graphics for consistent visual representation across Auro applications.
|
|
478
|
-
*
|
|
479
|
-
* @fires {CustomEvent<{ href: string }>} href-click - Fired when the auro-hyperlink is clicked.
|
|
430
|
+
* @customElement auro-tail
|
|
431
|
+
* The `<auro-tail>` custom element displays Alaska, Hawaiian, and partner airline tail graphics for consistent visual representation across Alaska applications.
|
|
480
432
|
*/
|
|
481
433
|
class AuroTail extends i$1 {
|
|
434
|
+
/**
|
|
435
|
+
* Identifies this element as an auro-tail.
|
|
436
|
+
* Used by auro-tail-group to identify valid child elements.
|
|
437
|
+
* @private
|
|
438
|
+
* @type {boolean}
|
|
439
|
+
*/
|
|
440
|
+
static isAuroTail = true;
|
|
441
|
+
|
|
442
|
+
static get styles() {
|
|
443
|
+
return [styleCss];
|
|
444
|
+
}
|
|
445
|
+
|
|
482
446
|
static get properties() {
|
|
483
447
|
return {
|
|
448
|
+
/**
|
|
449
|
+
* Sets the airline tail based on the tail codes used in auro-icon (e.g., `AS`, `HA`, `PR`).
|
|
450
|
+
* @default 'AS'
|
|
451
|
+
*/
|
|
484
452
|
tail: { type: String },
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Sets the badge type to display (e.g., `oneworld`).
|
|
456
|
+
*/
|
|
485
457
|
badge: { type: String },
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Sets the size of the tail.
|
|
461
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'}
|
|
462
|
+
* @default 'lg'
|
|
463
|
+
*/
|
|
486
464
|
size: { type: String, reflect: true },
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Sets the visual variant of the tail.
|
|
468
|
+
* @type {'outline'}
|
|
469
|
+
*/
|
|
470
|
+
variant: { type: String, reflect: true },
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Sets the href for the tail.
|
|
474
|
+
*/
|
|
490
475
|
href: { type: String, attribute: 'href' }
|
|
491
476
|
};
|
|
492
477
|
}
|
|
@@ -503,59 +488,24 @@ class AuroTail extends i$1 {
|
|
|
503
488
|
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroTail);
|
|
504
489
|
}
|
|
505
490
|
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
* Sets the airline tail based on the tail codes used in auro-icon (e.g., AS, HA, PR).
|
|
510
|
-
* @type {string}
|
|
511
|
-
*/
|
|
491
|
+
// Initialize default property values
|
|
492
|
+
// Necessary to avoid type errors
|
|
493
|
+
#setDefaults() {
|
|
512
494
|
this.tail = 'AS';
|
|
513
|
-
/**
|
|
514
|
-
* Sets the badge type to display (e.g., 'oneworld').
|
|
515
|
-
* @type {string | undefined}
|
|
516
|
-
*/
|
|
517
|
-
this.badge = undefined;
|
|
518
|
-
/**
|
|
519
|
-
* Sets the size of the tail.
|
|
520
|
-
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'}
|
|
521
|
-
*/
|
|
522
495
|
this.size = 'lg';
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
constructor() {
|
|
499
|
+
super();
|
|
500
|
+
this.#setDefaults();
|
|
501
|
+
|
|
523
502
|
/**
|
|
524
|
-
*
|
|
525
|
-
* @type {boolean}
|
|
526
|
-
*/
|
|
527
|
-
this.outline = false;
|
|
528
|
-
/**
|
|
529
|
-
* Sets the border width around the tail.
|
|
530
|
-
* @type {string | undefined}
|
|
531
|
-
*/
|
|
532
|
-
this.borderWidth = undefined;
|
|
533
|
-
/**
|
|
534
|
-
* Sets the border color around the tail.
|
|
535
|
-
* @type {string | undefined}
|
|
536
|
-
*/
|
|
537
|
-
this.borderColor = undefined;
|
|
538
|
-
/**
|
|
539
|
-
* Sets the href for the tail.
|
|
540
|
-
* @type {string | undefined}
|
|
541
|
-
*/
|
|
542
|
-
this.href = undefined;
|
|
543
|
-
|
|
544
|
-
/**
|
|
545
|
-
* Determines the carrier variant based on tail code.
|
|
503
|
+
* Determines the carrier type based on tail code. Valid values: `aag`, `oa`
|
|
546
504
|
* Used internally for styling.
|
|
547
505
|
* @private
|
|
548
|
-
* @type {
|
|
549
|
-
*/
|
|
550
|
-
this._variant = 'oa';
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
* Optional internal callback invoked on hyperlink click before the custom
|
|
554
|
-
* event is dispatched.
|
|
555
|
-
* @private
|
|
556
|
-
* @type {HrefClickCallback | undefined}
|
|
506
|
+
* @type {string}
|
|
557
507
|
*/
|
|
558
|
-
this.
|
|
508
|
+
this._carrierType = 'oa';
|
|
559
509
|
|
|
560
510
|
const versioning = new AuroDependencyVersioning();
|
|
561
511
|
|
|
@@ -564,61 +514,37 @@ class AuroTail extends i$1 {
|
|
|
564
514
|
*/
|
|
565
515
|
this.iconTag = versioning.generateTag("auro-icon", iconVersion, x);
|
|
566
516
|
|
|
517
|
+
/**
|
|
518
|
+
* @private
|
|
519
|
+
*/
|
|
520
|
+
this.hyperlinkTag = versioning.generateTag("auro-hyperlink", hyperlinkVersion, be);
|
|
521
|
+
|
|
567
522
|
/**
|
|
568
523
|
* @private
|
|
569
524
|
*/
|
|
570
525
|
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
571
526
|
}
|
|
572
527
|
|
|
573
|
-
/**
|
|
574
|
-
* Handles clicks on the href prop, invokes optional callback, and
|
|
575
|
-
* dispatches a cancelable custom event `href-click`.
|
|
576
|
-
*
|
|
577
|
-
* If the event is canceled by a consumer, navigation is prevented.
|
|
578
|
-
*
|
|
579
|
-
* @private
|
|
580
|
-
* @param {Event} ev - The click event
|
|
581
|
-
*/
|
|
582
|
-
_handleLinkClick(ev) {
|
|
583
|
-
// Invoke optional internal callback first
|
|
584
|
-
if (this.onHrefClick) {
|
|
585
|
-
this.onHrefClick(ev);
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
const proceed = this.dispatchEvent(
|
|
589
|
-
new CustomEvent('href-click', {
|
|
590
|
-
detail: { href: this.href },
|
|
591
|
-
bubbles: true,
|
|
592
|
-
composed: true,
|
|
593
|
-
cancelable: true,
|
|
594
|
-
})
|
|
595
|
-
);
|
|
596
|
-
|
|
597
|
-
// If any listener called event.preventDefault() on the custom event,
|
|
598
|
-
// prevent the anchor's default navigation.
|
|
599
|
-
if (!proceed) {
|
|
600
|
-
ev.preventDefault();
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
528
|
|
|
604
529
|
/**
|
|
605
|
-
* Gets the carrier
|
|
606
|
-
* @
|
|
607
|
-
* @returns {
|
|
530
|
+
* Gets the carrier type based on the current tail code. Returns `aag` or `oa`
|
|
531
|
+
* @private
|
|
532
|
+
* @returns {string} The carrier type
|
|
608
533
|
*/
|
|
609
|
-
get
|
|
534
|
+
get carrierType() {
|
|
610
535
|
// Carrier mappings
|
|
611
536
|
const carriers = {
|
|
612
537
|
'aag': ['as', 'ha'],
|
|
613
538
|
'oa': ['oa']
|
|
614
539
|
};
|
|
615
|
-
|
|
540
|
+
|
|
541
|
+
// Auro Icon uses capitalized tail codes, convert to lowercase for matching
|
|
616
542
|
const tailCode = this.tail.toLowerCase();
|
|
617
|
-
|
|
543
|
+
|
|
618
544
|
// Find which carrier group contains this tail code
|
|
619
545
|
for (const [variant, codes] of Object.entries(carriers)) {
|
|
620
546
|
if (codes.includes(tailCode)) {
|
|
621
|
-
return
|
|
547
|
+
return variant;
|
|
622
548
|
}
|
|
623
549
|
}
|
|
624
550
|
|
|
@@ -626,48 +552,66 @@ class AuroTail extends i$1 {
|
|
|
626
552
|
return 'oa';
|
|
627
553
|
}
|
|
628
554
|
|
|
555
|
+
/**
|
|
556
|
+
* Finds the parent tail group element.
|
|
557
|
+
* @private
|
|
558
|
+
* @returns {HTMLElement|null}
|
|
559
|
+
*/
|
|
560
|
+
_findParentGroup() {
|
|
561
|
+
let parent = this.parentElement;
|
|
562
|
+
while (parent) {
|
|
563
|
+
// Check if parent is a tail group
|
|
564
|
+
if (isAuroTailGroupElement(parent)) {
|
|
565
|
+
return parent;
|
|
566
|
+
}
|
|
567
|
+
parent = parent.parentElement;
|
|
568
|
+
}
|
|
569
|
+
return null;
|
|
570
|
+
}
|
|
571
|
+
|
|
629
572
|
/**
|
|
630
573
|
* Checks if this tail is inside an auro-tail-group element.
|
|
631
|
-
* @
|
|
574
|
+
* @private
|
|
632
575
|
* @returns {boolean}
|
|
633
576
|
*/
|
|
634
577
|
get isInGroup() {
|
|
635
|
-
return !!this.
|
|
578
|
+
return !!this._findParentGroup();
|
|
636
579
|
}
|
|
637
580
|
|
|
638
581
|
/**
|
|
639
582
|
* Checks if this tail is in a horizontal group layout.
|
|
640
|
-
* @
|
|
583
|
+
* @private
|
|
641
584
|
* @returns {boolean}
|
|
642
585
|
*/
|
|
643
586
|
get isInHorizontalGroup() {
|
|
644
|
-
const group =
|
|
587
|
+
const group = this._findParentGroup();
|
|
645
588
|
return !!group && group.getAttribute('layout') === 'horizontal';
|
|
646
589
|
}
|
|
647
590
|
|
|
648
591
|
/**
|
|
649
|
-
*
|
|
650
|
-
* @
|
|
651
|
-
* @returns {
|
|
592
|
+
* Checks if this tail is in a diagonal group layout.
|
|
593
|
+
* @private
|
|
594
|
+
* @returns {boolean}
|
|
652
595
|
*/
|
|
653
|
-
get
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
: undefined;
|
|
596
|
+
get isInDiagonalGroup() {
|
|
597
|
+
const group = this._findParentGroup();
|
|
598
|
+
return !!group && group.getAttribute('layout') === 'diagonal';
|
|
657
599
|
}
|
|
658
600
|
|
|
659
601
|
/**
|
|
660
|
-
*
|
|
661
|
-
* @
|
|
662
|
-
* @returns {
|
|
602
|
+
* Returns badge config when eligible.
|
|
603
|
+
* @private
|
|
604
|
+
* @returns {BadgeConfig | undefined}
|
|
663
605
|
*/
|
|
664
|
-
get
|
|
665
|
-
return this.
|
|
606
|
+
get badgeConfig() {
|
|
607
|
+
return this.badge && !this.isInGroup && BADGES_SIZES.includes(this.size)
|
|
608
|
+
? BADGE_LOGOS[this.badge]
|
|
609
|
+
: undefined;
|
|
666
610
|
}
|
|
667
611
|
|
|
668
612
|
/**
|
|
669
613
|
* Checks if the tail should display as a clickable link.
|
|
670
|
-
* @
|
|
614
|
+
* @private
|
|
671
615
|
* @returns {boolean}
|
|
672
616
|
*/
|
|
673
617
|
get shouldShowLink() {
|
|
@@ -676,7 +620,7 @@ class AuroTail extends i$1 {
|
|
|
676
620
|
|
|
677
621
|
/**
|
|
678
622
|
* Gets the appropriate CSS type class based on tail size.
|
|
679
|
-
* @
|
|
623
|
+
* @private
|
|
680
624
|
* @returns {string}
|
|
681
625
|
*/
|
|
682
626
|
get labelTypeClass() {
|
|
@@ -687,7 +631,7 @@ class AuroTail extends i$1 {
|
|
|
687
631
|
'2xl': 'body-lg'
|
|
688
632
|
};
|
|
689
633
|
|
|
690
|
-
return sizeToTypeClassMap[
|
|
634
|
+
return sizeToTypeClassMap[this.size] || 'body-sm';
|
|
691
635
|
}
|
|
692
636
|
|
|
693
637
|
connectedCallback() {
|
|
@@ -703,44 +647,15 @@ class AuroTail extends i$1 {
|
|
|
703
647
|
* @param {Map<string, any>} changedProperties - Changed properties
|
|
704
648
|
*/
|
|
705
649
|
updated(changedProperties) {
|
|
706
|
-
// Update internal
|
|
650
|
+
// Update internal carrier type when tail changes
|
|
707
651
|
if (changedProperties.has('tail')) {
|
|
708
|
-
this.
|
|
652
|
+
this._carrierType = this.carrierType;
|
|
653
|
+
// Set carrier type as data attribute for CSS targeting.
|
|
654
|
+
this.dataset.carrierType = this.carrierType;
|
|
709
655
|
}
|
|
710
|
-
|
|
711
|
-
// Reflect props to CSS custom properties on host.
|
|
712
|
-
this.applyCSSProperties();
|
|
713
656
|
super.updated(changedProperties);
|
|
714
657
|
}
|
|
715
658
|
|
|
716
|
-
/**
|
|
717
|
-
* Applies border styles and variant from props to CSS custom properties.
|
|
718
|
-
* @private
|
|
719
|
-
*/
|
|
720
|
-
applyCSSProperties() {
|
|
721
|
-
const normalizedWidth = normalizeBorderWidth(this.borderWidth);
|
|
722
|
-
const { borderColor, borderWidth } = resolveBorderProps({
|
|
723
|
-
borderColor: this.borderColor,
|
|
724
|
-
borderWidth: normalizedWidth,
|
|
725
|
-
});
|
|
726
|
-
|
|
727
|
-
// Set CSS custom properties when they exist.
|
|
728
|
-
if (borderColor) {
|
|
729
|
-
this.style.setProperty('--border-color', borderColor);
|
|
730
|
-
} else {
|
|
731
|
-
this.style.removeProperty('--border-color');
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
if (borderWidth) {
|
|
735
|
-
this.style.setProperty('--border-width', borderWidth);
|
|
736
|
-
} else {
|
|
737
|
-
this.style.removeProperty('--border-width');
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
// Set variant as data attribute for CSS targeting.
|
|
741
|
-
this.dataset.variant = this.variant;
|
|
742
|
-
}
|
|
743
|
-
|
|
744
659
|
render() {
|
|
745
660
|
const badge = this.badgeConfig;
|
|
746
661
|
|
|
@@ -751,11 +666,11 @@ class AuroTail extends i$1 {
|
|
|
751
666
|
|
|
752
667
|
// Tail content
|
|
753
668
|
const tailContent = u$3`
|
|
754
|
-
<div class="border
|
|
669
|
+
<div class="border">
|
|
755
670
|
<div class="container" part="container" role="img" aria-label=${ariaLabel}>
|
|
756
671
|
<${this.iconTag} category="logos" name="tail-${this.tail.toUpperCase()}"></${this.iconTag}>
|
|
757
672
|
</div>
|
|
758
|
-
${badge
|
|
673
|
+
${badge?.icon ? u$3`<div class="badge">${badge.icon()}</div>` : null}
|
|
759
674
|
</div>
|
|
760
675
|
`;
|
|
761
676
|
|
|
@@ -763,13 +678,13 @@ class AuroTail extends i$1 {
|
|
|
763
678
|
if (this.shouldShowLink) {
|
|
764
679
|
return u$3`
|
|
765
680
|
<div class="tail">
|
|
766
|
-
|
|
681
|
+
<${this.hyperlinkTag}
|
|
682
|
+
class="tail-hyperlink"
|
|
767
683
|
href=${o$2(this.href)}
|
|
768
|
-
@click=${this._handleLinkClick}
|
|
769
684
|
>
|
|
770
685
|
${tailContent}
|
|
771
|
-
<slot
|
|
772
|
-
|
|
686
|
+
<slot class="label ${this.labelTypeClass}">${DEFAULT_AIRLINE_NAME}</slot>
|
|
687
|
+
</${this.hyperlinkTag}>
|
|
773
688
|
</div>
|
|
774
689
|
`;
|
|
775
690
|
}
|
|
@@ -781,24 +696,47 @@ class AuroTail extends i$1 {
|
|
|
781
696
|
</div>
|
|
782
697
|
`;
|
|
783
698
|
}
|
|
784
|
-
|
|
785
|
-
static get styles() {
|
|
786
|
-
return [styleCss];
|
|
787
|
-
}
|
|
788
699
|
}
|
|
789
700
|
|
|
790
|
-
var groupStyleCss = i$3`:host{width:var(--avatar-width);height:var(--avatar-width);min-width:var(--avatar-width);--avatar-width: var(--avatar-width-lg);--avatar-gradient: var(--gradient-oa);--tail-width: var(--tail-width-lg);--tail-offset-y: var(--tail-offset-y-lg);--href-label-gap: var(--href-label-gap-lg);--badge-width: var(--badge-width-lg);--border-color-default: rgba(88, 94, 103, 1);--border-color-white: #ffffff;--border-width-default: 4px;--border-display: none;--border-padding: 0;--border-radius-full: 999px;--tail-outline-color: var(--border-color-default);--tail-outline-width: 1px;--gradient-as: linear-gradient(180deg, #6899C6 0%, #CFE0EF 100%);--gradient-ha: linear-gradient(181deg, #CCB7ED -6.38%, #F9C2E7 99.46%);--gradient-oa: linear-gradient(181deg, #C5D0D9 -6.38%, #E8F1F8 99.46%);--tail-drop-shadow: drop-shadow(0 3px 3px rgba(0,0,0,.24)) drop-shadow(0 6px 14px rgba(0,0,0,.24));--z-index-border: 1;--z-index-badge: 2;--z-index-group-back: 1;--z-index-group-front: 2;--badge-translate-x: 0;--badge-translate-y: 0;--avatar-width-xs: 24px;--avatar-width-sm: 32px;--avatar-width-md: 48px;--avatar-width-lg: 60px;--avatar-width-xl: 96px;--avatar-width-2xl: 134px;--tail-width-xs: 19px;--tail-width-sm: 26px;--tail-width-md: 39px;--tail-width-lg: 48px;--tail-width-xl: 77px;--tail-width-2xl: 107px;--tail-offset-y-xs: 3px;--tail-offset-y-sm: 4px;--tail-offset-y-md: 6px;--tail-offset-y-lg: 7px;--tail-offset-y-xl: 13px;--tail-offset-y-2xl: 17px;--href-label-gap-md: 2px;--href-label-gap-lg: 4px;--href-label-gap-xl: 6px;--href-label-gap-2xl: 8px;--badge-width-md: 11px;--badge-width-lg: 14px;--badge-width-xl: 22px;--badge-width-2xl: 31px;--group-diagonal-width-xs: 42px;--group-diagonal-width-sm: 56px;--group-diagonal-width-md: 84px;--group-diagonal-width-lg: 105px;--group-horizontal-border-width-xs: 3px;--group-horizontal-overlap-xs: -2px;--group-horizontal-border-width-sm: 3px;--group-horizontal-overlap-sm: -2px;--group-horizontal-border-width-md: 4px;--group-horizontal-overlap-md: -6px;--group-horizontal-border-width-lg: 4px;--group-horizontal-overlap-lg: -10px}:host([size=xs]){--avatar-width: var(--avatar-width-xs);--tail-width: var(--tail-width-xs);--tail-offset-y: var(--tail-offset-y-xs)}:host([size=sm]){--avatar-width: var(--avatar-width-sm);--tail-width: var(--tail-width-sm);--tail-offset-y: var(--tail-offset-y-sm)}:host([size=md]){--avatar-width: var(--avatar-width-md);--tail-width: var(--tail-width-md);--tail-offset-y: var(--tail-offset-y-md);--badge-width: var(--badge-width-md);--href-label-gap: var(--href-label-gap-md);--badge-translate-x: 2px;--badge-translate-y: -7px}:host([size=lg]){--avatar-width: var(--avatar-width-lg);--tail-width: var(--tail-width-lg);--tail-offset-y: var(--tail-offset-y-lg);--badge-width: var(--badge-width-lg);--href-label-gap: var(--href-label-gap-lg);--badge-translate-x: 2px;--badge-translate-y: -4px}:host([size=xl]){--avatar-width: var(--avatar-width-xl);--tail-width: var(--tail-width-xl);--tail-offset-y: var(--tail-offset-y-xl);--badge-width: var(--badge-width-xl);--href-label-gap: var(--href-label-gap-xl)}:host([size="2xl"]){--avatar-width: var(--avatar-width-2xl);--tail-width: var(--tail-width-2xl);--tail-offset-y: var(--tail-offset-y-2xl);--badge-width: var(--badge-width-2xl);--href-label-gap: var(--href-label-gap-2xl)}:host([tail=as]),:host([tail=AS]){--avatar-gradient: var(--gradient-as)}:host([tail=ha]),:host([tail=HA]){--avatar-gradient: var(--gradient-ha)}:host([tail=oa]),:host([tail=OA]){--avatar-gradient: var(--gradient-oa)}:host([layout=horizontal][size=xs]){width:calc(2 * var(--avatar-width-xs) + var(--group-horizontal-overlap-xs));height:var(--avatar-width-xs)}:host([layout=horizontal][size=sm]){width:calc(2 * var(--avatar-width-sm) + var(--group-horizontal-overlap-sm));height:var(--avatar-width-sm)}:host([layout=horizontal][size=md]){width:calc(2 * var(--avatar-width-md) + var(--group-horizontal-overlap-md));height:var(--avatar-width-md)}:host([layout=horizontal][size=lg]){width:calc(2 * var(--avatar-width-lg) + var(--group-horizontal-overlap-lg));height:var(--avatar-width-lg)}.group{display:inline-flex;position:relative}.group.horizontal{gap:0}:host([layout=horizontal]) .group.horizontal ::slotted(auro-tail){position:relative;--border-color: var(--border-color-white);--border-padding: var(--border-width, var(--border-width-default))}:host([layout=horizontal][size=xs]) .group.horizontal ::slotted(auro-tail){--border-width: var(--group-horizontal-border-width-xs)}:host([layout=horizontal][size=xs]) .group.horizontal ::slotted(auro-tail:first-child){margin-right:var(--group-horizontal-overlap-xs);z-index:var(--z-index-group-front)}:host([layout=horizontal][size=sm]) .group.horizontal ::slotted(auro-tail){--border-width: var(--group-horizontal-border-width-sm)}:host([layout=horizontal][size=sm]) .group.horizontal ::slotted(auro-tail:first-child){margin-right:var(--group-horizontal-overlap-sm);z-index:var(--z-index-group-front)}:host([layout=horizontal][size=md]) .group.horizontal ::slotted(auro-tail){--border-width: var(--group-horizontal-border-width-md)}:host([layout=horizontal][size=md]) .group.horizontal ::slotted(auro-tail:first-child){margin-right:var(--group-horizontal-overlap-md);z-index:var(--z-index-group-front)}:host([layout=horizontal][size=lg]) .group.horizontal ::slotted(auro-tail){--border-width: var(--group-horizontal-border-width-lg)}:host([layout=horizontal][size=lg]) .group.horizontal ::slotted(auro-tail:first-child){margin-right:var(--group-horizontal-overlap-lg);z-index:var(--z-index-group-front)}:host([layout=horizontal]) .group.horizontal ::slotted(auro-tail:last-child){z-index:var(--z-index-group-back)}:host([layout=diagonal][size=xs]){width:var(--group-diagonal-width-xs);height:var(--group-diagonal-width-xs)}:host([layout=diagonal][size=xs]) .group.diagonal{width:var(--group-diagonal-width-xs);height:var(--group-diagonal-width-xs)}:host([layout=diagonal][size=sm]){width:var(--group-diagonal-width-sm);height:var(--group-diagonal-width-sm)}:host([layout=diagonal][size=sm]) .group.diagonal{width:var(--group-diagonal-width-sm);height:var(--group-diagonal-width-sm)}:host([layout=diagonal][size=md]){width:var(--group-diagonal-width-md);height:var(--group-diagonal-width-md)}:host([layout=diagonal][size=md]) .group.diagonal{width:var(--group-diagonal-width-md);height:var(--group-diagonal-width-md)}:host([layout=diagonal][size=lg]){width:var(--group-diagonal-width-lg);height:var(--group-diagonal-width-lg)}:host([layout=diagonal][size=lg]) .group.diagonal{width:var(--group-diagonal-width-lg);height:var(--group-diagonal-width-lg)}:host([layout=diagonal]) .group.diagonal ::slotted(auro-tail){position:absolute;--border-color: transparent;--border-width: 0;--border-padding: 0}.group.diagonal ::slotted(auro-tail:first-child){top:0;left:0;z-index:var(--z-index-group-front)}.group.diagonal ::slotted(auro-tail:nth-child(2)){bottom:0;right:0;z-index:var(--z-index-group-back)}
|
|
701
|
+
var groupStyleCss = i$3`:host{--ds-auro-tail-border-color: var(--ds-auro-tail-border-color-default);--ds-auro-tail-border-width: var(--ds-auro-tail-border-w-default)}:host{display:inline-block;width:var(--ds-auro-tail-container-w);height:var(--ds-auro-tail-container-w);min-width:var(--ds-auro-tail-container-w);min-height:var(--ds-auro-tail-container-w);--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-lg);--ds-auro-tail-container-gradient: var(--ds-auro-tail-gradient-oa);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-lg);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-lg);--ds-auro-tail-href-label-gap: var(--ds-auro-tail-href-label-gap-lg);--ds-auro-tail-badge-w: var(--ds-auro-tail-badge-w-lg);--ds-auro-tail-border-color-default: rgba(88, 94, 103, 1);--ds-auro-tail-border-color-white: #ffffff;--ds-auro-tail-border-w-default: 0;--ds-auro-tail-border-display: none;--ds-auro-tail-border-padding: 0;--ds-auro-tail-border-radius-full: 999px;--ds-auro-tail-tail-outline-color: var(--ds-auro-tail-border-color-default);--ds-auro-tail-tail-outline-w: 1px;--ds-auro-tail-tail-drop-shadow: drop-shadow(0 3px 3px rgba(0,0,0,.24)) drop-shadow(0 6px 14px rgba(0,0,0,.24));--ds-auro-tail-z-index-border: 1;--ds-auro-tail-z-index-badge: 2;--ds-auro-tail-z-index-group-back: 1;--ds-auro-tail-z-index-group-front: 2;--ds-auro-tail-badge-offset-x: 0;--ds-auro-tail-badge-offset-y: 0;--ds-auro-tail-container-w-xs: 24px;--ds-auro-tail-tail-w-xs: 19px;--ds-auro-tail-tail-offset-y-xs: 3px;--ds-auro-tail-container-w-sm: 32px;--ds-auro-tail-tail-w-sm: 26px;--ds-auro-tail-tail-offset-y-sm: 4px;--ds-auro-tail-container-w-md: 48px;--ds-auro-tail-tail-w-md: 39px;--ds-auro-tail-tail-offset-y-md: 6px;--ds-auro-tail-href-label-gap-md: 2px;--ds-auro-tail-badge-w-md: 11px;--ds-auro-tail-badge-offset-x-md: 2px;--ds-auro-tail-badge-offset-y-md: -7px;--ds-auro-tail-container-w-lg: 60px;--ds-auro-tail-tail-w-lg: 48px;--ds-auro-tail-tail-offset-y-lg: 7px;--ds-auro-tail-href-label-gap-lg: 4px;--ds-auro-tail-badge-w-lg: 14px;--ds-auro-tail-badge-offset-x-lg: 2px;--ds-auro-tail-badge-offset-y-lg: -4px;--ds-auro-tail-container-w-xl: 96px;--ds-auro-tail-tail-w-xl: 77px;--ds-auro-tail-tail-offset-y-xl: 13px;--ds-auro-tail-href-label-gap-xl: 6px;--ds-auro-tail-badge-w-xl: 22px;--ds-auro-tail-container-w-2xl: 134px;--ds-auro-tail-tail-w-2xl: 107px;--ds-auro-tail-tail-offset-y-2xl: 17px;--ds-auro-tail-href-label-gap-2xl: 8px;--ds-auro-tail-badge-w-2xl: 31px;--ds-auro-tail-group-diag-w-xs: 42px;--ds-auro-tail-group-horiz-border-w-xs: 3px;--ds-auro-tail-group-horiz-overlap-xs: -2px;--ds-auro-tail-group-diag-w-sm: 56px;--ds-auro-tail-group-horiz-border-w-sm: 3px;--ds-auro-tail-group-horiz-overlap-sm: -2px;--ds-auro-tail-group-diag-w-md: 84px;--ds-auro-tail-group-horiz-border-w-md: 4px;--ds-auro-tail-group-horiz-overlap-md: -6px;--ds-auro-tail-group-diag-w-lg: 105px;--ds-auro-tail-group-horiz-border-w-lg: 4px;--ds-auro-tail-group-horiz-overlap-lg: -10px;--ds-auro-tail-gradient-as: linear-gradient(180deg, #6899C6 0%, #CFE0EF 100%);--ds-auro-tail-gradient-ha: linear-gradient(181deg, #CCB7ED -6.38%, #F9C2E7 99.46%);--ds-auro-tail-gradient-oa: linear-gradient(181deg, #C5D0D9 -6.38%, #E8F1F8 99.46%)}:host([size=xs]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-xs);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-xs);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-xs)}:host([size=sm]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-sm);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-sm);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-sm)}:host([size=md]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-md);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-md);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-md);--ds-auro-tail-badge-w: var(--ds-auro-tail-badge-w-md);--ds-auro-tail-badge-offset-x: var(--ds-auro-tail-badge-offset-x-md, 0);--ds-auro-tail-badge-offset-y: var(--ds-auro-tail-badge-offset-y-md, 0);--ds-auro-tail-href-label-gap: var(--ds-auro-tail-href-label-gap-md)}:host([size=lg]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-lg);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-lg);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-lg);--ds-auro-tail-badge-w: var(--ds-auro-tail-badge-w-lg);--ds-auro-tail-badge-offset-x: var(--ds-auro-tail-badge-offset-x-lg, 0);--ds-auro-tail-badge-offset-y: var(--ds-auro-tail-badge-offset-y-lg, 0);--ds-auro-tail-href-label-gap: var(--ds-auro-tail-href-label-gap-lg)}:host([size=xl]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-xl);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-xl);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-xl);--ds-auro-tail-badge-w: var(--ds-auro-tail-badge-w-xl);--ds-auro-tail-badge-offset-x: var(--ds-auro-tail-badge-offset-x-xl, 0);--ds-auro-tail-badge-offset-y: var(--ds-auro-tail-badge-offset-y-xl, 0);--ds-auro-tail-href-label-gap: var(--ds-auro-tail-href-label-gap-xl)}:host([size="2xl"]){--ds-auro-tail-container-w: var(--ds-auro-tail-container-w-2xl);--ds-auro-tail-tail-w: var(--ds-auro-tail-tail-w-2xl);--ds-auro-tail-tail-offset-y: var(--ds-auro-tail-tail-offset-y-2xl);--ds-auro-tail-badge-w: var(--ds-auro-tail-badge-w-2xl);--ds-auro-tail-badge-offset-x: var(--ds-auro-tail-badge-offset-x-2xl, 0);--ds-auro-tail-badge-offset-y: var(--ds-auro-tail-badge-offset-y-2xl, 0);--ds-auro-tail-href-label-gap: var(--ds-auro-tail-href-label-gap-2xl)}:host([tail=as i]){--ds-auro-tail-container-gradient: var(--ds-auro-tail-gradient-as)}:host([tail=ha i]){--ds-auro-tail-container-gradient: var(--ds-auro-tail-gradient-ha)}:host([tail=oa i]){--ds-auro-tail-container-gradient: var(--ds-auro-tail-gradient-oa)}:host([layout=horizontal][size=xs]){width:calc(2 * var(--ds-auro-tail-container-w-xs) + 2 * var(--ds-auro-tail-group-horiz-border-w-xs) + var(--ds-auro-tail-group-horiz-overlap-xs));height:calc(var(--ds-auro-tail-container-w-xs) + 2 * var(--ds-auro-tail-group-horiz-border-w-xs));min-height:calc(var(--ds-auro-tail-container-w-xs) + 2 * var(--ds-auro-tail-group-horiz-border-w-xs))}:host([layout=horizontal][size=sm]){width:calc(2 * var(--ds-auro-tail-container-w-sm) + 2 * var(--ds-auro-tail-group-horiz-border-w-sm) + var(--ds-auro-tail-group-horiz-overlap-sm));height:calc(var(--ds-auro-tail-container-w-sm) + 2 * var(--ds-auro-tail-group-horiz-border-w-sm));min-height:calc(var(--ds-auro-tail-container-w-sm) + 2 * var(--ds-auro-tail-group-horiz-border-w-sm))}:host([layout=horizontal][size=md]){width:calc(2 * var(--ds-auro-tail-container-w-md) + 2 * var(--ds-auro-tail-group-horiz-border-w-md) + var(--ds-auro-tail-group-horiz-overlap-md));height:calc(var(--ds-auro-tail-container-w-md) + 2 * var(--ds-auro-tail-group-horiz-border-w-md));min-height:calc(var(--ds-auro-tail-container-w-md) + 2 * var(--ds-auro-tail-group-horiz-border-w-md))}:host([layout=horizontal][size=lg]){width:calc(2 * var(--ds-auro-tail-container-w-lg) + 2 * var(--ds-auro-tail-group-horiz-border-w-lg) + var(--ds-auro-tail-group-horiz-overlap-lg));height:calc(var(--ds-auro-tail-container-w-lg) + 2 * var(--ds-auro-tail-group-horiz-border-w-lg));min-height:calc(var(--ds-auro-tail-container-w-lg) + 2 * var(--ds-auro-tail-group-horiz-border-w-lg))}:host{--ds-auro-tail-group-border-color: var(--ds-auro-tail-border-color)}:host([layout=horizontal]){--ds-auro-tail-border-color: var(--ds-auro-tail-border-color-white);--ds-auro-tail-group-border-color: var(--ds-auro-tail-border-color)}.group{display:inline-flex;position:relative}.group.horizontal{gap:0}:host([layout=horizontal]) .group.horizontal ::slotted(auro-tail),:host([layout=horizontal]) .group.horizontal ::slotted([auro-tail]){position:relative;--ds-auro-tail-border-color: var(--ds-auro-tail-group-border-color, var(--ds-auro-tail-border-color-white))}:host([layout=horizontal][size=xs]) .group.horizontal ::slotted(auro-tail),:host([layout=horizontal][size=xs]) .group.horizontal ::slotted([auro-tail]){--ds-auro-tail-border-width: var(--ds-auro-tail-group-horiz-border-w-xs);width:calc(var(--ds-auro-tail-container-w-xs) + 2 * var(--ds-auro-tail-group-horiz-border-w-xs));min-width:calc(var(--ds-auro-tail-container-w-xs) + 2 * var(--ds-auro-tail-group-horiz-border-w-xs))}:host([layout=horizontal][size=xs]) .group.horizontal ::slotted(auro-tail:first-child),:host([layout=horizontal][size=xs]) .group.horizontal ::slotted([auro-tail]:first-child){margin-right:calc(var(--ds-auro-tail-group-horiz-overlap-xs) - 2 * var(--ds-auro-tail-group-horiz-border-w-xs));z-index:var(--ds-auro-tail-z-index-group-front)}:host([layout=horizontal][size=sm]) .group.horizontal ::slotted(auro-tail),:host([layout=horizontal][size=sm]) .group.horizontal ::slotted([auro-tail]){--ds-auro-tail-border-width: var(--ds-auro-tail-group-horiz-border-w-sm);width:calc(var(--ds-auro-tail-container-w-sm) + 2 * var(--ds-auro-tail-group-horiz-border-w-sm));min-width:calc(var(--ds-auro-tail-container-w-sm) + 2 * var(--ds-auro-tail-group-horiz-border-w-sm))}:host([layout=horizontal][size=sm]) .group.horizontal ::slotted(auro-tail:first-child),:host([layout=horizontal][size=sm]) .group.horizontal ::slotted([auro-tail]:first-child){margin-right:calc(var(--ds-auro-tail-group-horiz-overlap-sm) - 2 * var(--ds-auro-tail-group-horiz-border-w-sm));z-index:var(--ds-auro-tail-z-index-group-front)}:host([layout=horizontal][size=md]) .group.horizontal ::slotted(auro-tail),:host([layout=horizontal][size=md]) .group.horizontal ::slotted([auro-tail]){--ds-auro-tail-border-width: var(--ds-auro-tail-group-horiz-border-w-md);width:calc(var(--ds-auro-tail-container-w-md) + 2 * var(--ds-auro-tail-group-horiz-border-w-md));min-width:calc(var(--ds-auro-tail-container-w-md) + 2 * var(--ds-auro-tail-group-horiz-border-w-md))}:host([layout=horizontal][size=md]) .group.horizontal ::slotted(auro-tail:first-child),:host([layout=horizontal][size=md]) .group.horizontal ::slotted([auro-tail]:first-child){margin-right:calc(var(--ds-auro-tail-group-horiz-overlap-md) - 2 * var(--ds-auro-tail-group-horiz-border-w-md));z-index:var(--ds-auro-tail-z-index-group-front)}:host([layout=horizontal][size=lg]) .group.horizontal ::slotted(auro-tail),:host([layout=horizontal][size=lg]) .group.horizontal ::slotted([auro-tail]){--ds-auro-tail-border-width: var(--ds-auro-tail-group-horiz-border-w-lg);width:calc(var(--ds-auro-tail-container-w-lg) + 2 * var(--ds-auro-tail-group-horiz-border-w-lg));min-width:calc(var(--ds-auro-tail-container-w-lg) + 2 * var(--ds-auro-tail-group-horiz-border-w-lg))}:host([layout=horizontal][size=lg]) .group.horizontal ::slotted(auro-tail:first-child),:host([layout=horizontal][size=lg]) .group.horizontal ::slotted([auro-tail]:first-child){margin-right:calc(var(--ds-auro-tail-group-horiz-overlap-lg) - 2 * var(--ds-auro-tail-group-horiz-border-w-lg));z-index:var(--ds-auro-tail-z-index-group-front)}:host([layout=horizontal]) .group.horizontal ::slotted(auro-tail:last-child),:host([layout=horizontal]) .group.horizontal ::slotted([auro-tail]:last-child){z-index:var(--ds-auro-tail-z-index-group-back)}:host([layout=diagonal][size=xs]){width:var(--ds-auro-tail-group-diag-w-xs);height:var(--ds-auro-tail-group-diag-w-xs)}:host([layout=diagonal][size=xs]) .group.diagonal{width:var(--ds-auro-tail-group-diag-w-xs);height:var(--ds-auro-tail-group-diag-w-xs)}:host([layout=diagonal][size=sm]){width:var(--ds-auro-tail-group-diag-w-sm);height:var(--ds-auro-tail-group-diag-w-sm)}:host([layout=diagonal][size=sm]) .group.diagonal{width:var(--ds-auro-tail-group-diag-w-sm);height:var(--ds-auro-tail-group-diag-w-sm)}:host([layout=diagonal][size=md]){width:var(--ds-auro-tail-group-diag-w-md);height:var(--ds-auro-tail-group-diag-w-md)}:host([layout=diagonal][size=md]) .group.diagonal{width:var(--ds-auro-tail-group-diag-w-md);height:var(--ds-auro-tail-group-diag-w-md)}:host([layout=diagonal][size=lg]){width:var(--ds-auro-tail-group-diag-w-lg);height:var(--ds-auro-tail-group-diag-w-lg)}:host([layout=diagonal][size=lg]) .group.diagonal{width:var(--ds-auro-tail-group-diag-w-lg);height:var(--ds-auro-tail-group-diag-w-lg)}:host([layout=diagonal]) .group.diagonal ::slotted(auro-tail),:host([layout=diagonal]) .group.diagonal ::slotted([auro-tail]){position:absolute;--ds-auro-tail-border-color: transparent;--ds-auro-tail-border-width: 0;--ds-auro-tail-border-padding: 0}.group.diagonal ::slotted(auro-tail:first-child),.group.diagonal ::slotted([auro-tail]:first-child){top:0;left:0;z-index:var(--ds-auro-tail-z-index-group-front)}.group.diagonal ::slotted(auro-tail:nth-child(2)),.group.diagonal ::slotted([auro-tail]:nth-child(2)){bottom:0;right:0;z-index:var(--ds-auro-tail-z-index-group-back)}
|
|
791
702
|
`;
|
|
792
703
|
|
|
793
704
|
/**
|
|
794
|
-
*
|
|
705
|
+
* @typedef {Element & {size: string}} AuroTailElement
|
|
706
|
+
*/
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* @customElement auro-tail-group
|
|
710
|
+
* The `<auro-tail-group>` element displays multiple `<auro-tail>` elements in a grouped layout.
|
|
795
711
|
*/
|
|
796
712
|
class AuroTailGroup extends i$1 {
|
|
713
|
+
/**
|
|
714
|
+
* Identifies this element as an auro-tail-group.
|
|
715
|
+
* Used by auro-tail to identify when it's inside an auro-tail-group.
|
|
716
|
+
* @private
|
|
717
|
+
* @type {boolean}
|
|
718
|
+
*/
|
|
719
|
+
static isAuroTailGroup = true;
|
|
720
|
+
|
|
721
|
+
static get styles() {
|
|
722
|
+
return [groupStyleCss];
|
|
723
|
+
}
|
|
724
|
+
|
|
797
725
|
static get properties() {
|
|
798
726
|
return {
|
|
727
|
+
/**
|
|
728
|
+
* Sets the layout direction for the group.
|
|
729
|
+
* @type {'horizontal' | 'diagonal'}
|
|
730
|
+
* @default 'horizontal'
|
|
731
|
+
*/
|
|
799
732
|
layout: { type: String, attribute: 'layout', reflect: true },
|
|
800
|
-
|
|
801
|
-
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* Sets the size for all child tails in the group.
|
|
736
|
+
* @type {'xs' | 'sm' | 'md' | 'lg'}
|
|
737
|
+
* @default 'lg'
|
|
738
|
+
*/
|
|
739
|
+
size: { type: String, attribute: 'size', reflect: true }
|
|
802
740
|
};
|
|
803
741
|
}
|
|
804
742
|
|
|
@@ -814,23 +752,16 @@ class AuroTailGroup extends i$1 {
|
|
|
814
752
|
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroTailGroup);
|
|
815
753
|
}
|
|
816
754
|
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
* Sets the layout direction for the group.
|
|
821
|
-
* @type {'horizontal' | 'diagonal'}
|
|
822
|
-
*/
|
|
755
|
+
// Initialize default property values
|
|
756
|
+
// Necessary to avoid type errors
|
|
757
|
+
#setDefaults() {
|
|
823
758
|
this.layout = 'horizontal';
|
|
824
|
-
/**
|
|
825
|
-
* Sets the size for all child tails in the group.
|
|
826
|
-
* @type {'xs' | 'sm' | 'md' | 'lg'}
|
|
827
|
-
*/
|
|
828
759
|
this.size = 'lg';
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
this
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
constructor() {
|
|
763
|
+
super();
|
|
764
|
+
this.#setDefaults();
|
|
834
765
|
|
|
835
766
|
/**
|
|
836
767
|
* @private
|
|
@@ -838,18 +769,6 @@ class AuroTailGroup extends i$1 {
|
|
|
838
769
|
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
839
770
|
}
|
|
840
771
|
|
|
841
|
-
/**
|
|
842
|
-
* Prevent shadow DOM creation for unsupported sizes.
|
|
843
|
-
* @protected
|
|
844
|
-
*/
|
|
845
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
846
|
-
createRenderRoot() {
|
|
847
|
-
if (!GROUPS_SIZES.includes(this.size)) {
|
|
848
|
-
return this;
|
|
849
|
-
}
|
|
850
|
-
return super.createRenderRoot();
|
|
851
|
-
}
|
|
852
|
-
|
|
853
772
|
connectedCallback() {
|
|
854
773
|
super.connectedCallback();
|
|
855
774
|
this.updateChildTails();
|
|
@@ -865,41 +784,27 @@ class AuroTailGroup extends i$1 {
|
|
|
865
784
|
*/
|
|
866
785
|
updated(changedProperties) {
|
|
867
786
|
super.updated(changedProperties);
|
|
868
|
-
if (changedProperties.has('size')
|
|
787
|
+
if (changedProperties.has('size')) {
|
|
869
788
|
this.updateChildTails();
|
|
870
789
|
}
|
|
871
790
|
}
|
|
872
791
|
|
|
873
792
|
/**
|
|
874
|
-
*
|
|
793
|
+
* Updates the size of child tails to match the group size.
|
|
875
794
|
* @private
|
|
876
795
|
*/
|
|
877
796
|
updateChildTails() {
|
|
878
797
|
// Small delay to ensure slotted content is available
|
|
879
798
|
setTimeout(() => {
|
|
880
|
-
const tails = this.querySelectorAll('auro-tail');
|
|
881
|
-
|
|
882
|
-
// If size is not supported, remove all child tails from light DOM.
|
|
883
799
|
if (!GROUPS_SIZES.includes(this.size)) {
|
|
884
|
-
tails.forEach((tail) => {
|
|
885
|
-
tail.remove();
|
|
886
|
-
});
|
|
887
800
|
return;
|
|
888
801
|
}
|
|
889
802
|
|
|
890
|
-
|
|
891
|
-
tails.
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
// Update size for allowed tails
|
|
896
|
-
/** @type {any} */ (tail).size = this.size;
|
|
897
|
-
|
|
898
|
-
// Update border-color for allowed tails
|
|
899
|
-
if (this.borderColor !== undefined) {
|
|
900
|
-
/** @type {any} */ (tail).borderColor = this.borderColor;
|
|
901
|
-
}
|
|
902
|
-
}
|
|
803
|
+
const allChildren = Array.from(this.children);
|
|
804
|
+
const tails = allChildren.filter(isAuroTailElement);
|
|
805
|
+
|
|
806
|
+
tails.forEach((tail) => {
|
|
807
|
+
tail.size = this.size;
|
|
903
808
|
});
|
|
904
809
|
}, 0);
|
|
905
810
|
}
|
|
@@ -915,7 +820,7 @@ class AuroTailGroup extends i$1 {
|
|
|
915
820
|
render() {
|
|
916
821
|
// Don't render unsupported sizes.
|
|
917
822
|
if (!GROUPS_SIZES.includes(this.size)) {
|
|
918
|
-
return
|
|
823
|
+
return E$1;
|
|
919
824
|
}
|
|
920
825
|
|
|
921
826
|
return x$2`
|
|
@@ -924,10 +829,6 @@ class AuroTailGroup extends i$1 {
|
|
|
924
829
|
</div>
|
|
925
830
|
`;
|
|
926
831
|
}
|
|
927
|
-
|
|
928
|
-
static get styles() {
|
|
929
|
-
return [groupStyleCss];
|
|
930
|
-
}
|
|
931
832
|
}
|
|
932
833
|
|
|
933
834
|
export { AuroTail as A, AuroTailGroup as a };
|