@axa-ch/button
Advanced tools
Comparing version 8.0.0 to 8.0.1
@@ -17,3 +17,3 @@ var window=function(){"use strict"; | ||
*/ | ||
var g;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:v}),(null!==(l=globalThis.reactiveElementVersions)&&void 0!==l?l:globalThis.reactiveElementVersions=[]).push("1.3.2");const f=globalThis.trustedTypes,b=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,m="?"+w,$=`<${m}>`,_=document,y=(t="")=>_.createComment(t),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,x=Array.isArray,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,S=/>/g,M=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,k=/'/g,z=/"/g,L=/^(?:script|style|textarea|title)$/i,H=(t=>(e,...n)=>({_$litType$:t,strings:e,values:n}))(1),N=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),O=new WeakMap,U=_.createTreeWalker(_,129,null,!1);class B{constructor({strings:t,_$litType$:e},n){let o;this.parts=[];let s=0,i=0;const r=t.length-1,l=this.parts,[a,c]=((t,e)=>{const n=t.length-1,o=[];let s,i=2===e?"<svg>":"",r=C;for(let e=0;e<n;e++){const n=t[e];let l,a,c=-1,h=0;for(;h<n.length&&(r.lastIndex=h,a=r.exec(n),null!==a);)h=r.lastIndex,r===C?"!--"===a[1]?r=E:void 0!==a[1]?r=S:void 0!==a[2]?(L.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=M):void 0!==a[3]&&(r=M):r===M?">"===a[0]?(r=null!=s?s:C,c=-1):void 0===a[1]?c=-2:(c=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?M:'"'===a[3]?z:k):r===z||r===k?r=M:r===E||r===S?r=C:(r=M,s=void 0);const d=r===M&&t[e+1].startsWith("/>")?" ":"";i+=r===C?n+$:c>=0?(o.push(l),n.slice(0,c)+"$lit$"+n.slice(c)+w+d):n+w+(-2===c?(o.push(void 0),e):d)}const l=i+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==b?b.createHTML(l):l,o]})(t,e);if(this.el=B.createElement(a,n),U.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=U.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(w)){const n=c[i++];if(t.push(e),void 0!==n){const t=o.getAttribute(n.toLowerCase()+"$lit$").split(w),e=/([.?@])?(.*)/.exec(n);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?D:"?"===e[1]?Z:"@"===e[1]?F:j})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(L.test(o.tagName)){const t=o.textContent.split(w),e=t.length-1;if(e>0){o.textContent=f?f.emptyScript:"";for(let n=0;n<e;n++)o.append(t[n],y()),U.nextNode(),l.push({type:2,index:++s});o.append(t[e],y())}}}else if(8===o.nodeType)if(o.data===m)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(w,t+1));)l.push({type:7,index:s}),t+=w.length-1}s++}}static createElement(t,e){const n=_.createElement("template");return n.innerHTML=t,n}}function P(t,e,n=t,o){var s,i,r,l;if(e===N)return e;let a=void 0!==o?null===(s=n._$Cl)||void 0===s?void 0:s[o]:n._$Cu;const c=A(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(i=null==a?void 0:a._$AO)||void 0===i||i.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,n,o)),void 0!==o?(null!==(r=(l=n)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:n._$Cu=a),void 0!==a&&(e=P(t,a._$AS(t,e.values),a,o)),e}class R{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:n},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:_).importNode(n,!0);U.currentNode=s;let i=U.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new V(i,i.nextSibling,this,t):1===a.type?e=new a.ctor(i,a.name,a.strings,this,t):6===a.type&&(e=new W(i,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(i=U.nextNode(),r++)}return s}m(t){let e=0;for(const n of this.v)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class V{constructor(t,e,n,o){var s;this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=P(this,t,e),A(t)?t===T||null==t||""===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==N&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return x(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==T&&A(this._$AH)?this._$AA.nextSibling.data=t:this.k(_.createTextNode(t)),this._$AH=t}T(t){var e;const{values:n,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=B.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(n);else{const t=new R(s,this),e=t.p(this.options);t.m(n),this.k(e),this._$AH=t}}_$AC(t){let e=O.get(t.strings);return void 0===e&&O.set(t.strings,e=new B(t)),e}S(t){x(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,o=0;for(const s of t)o===e.length?e.push(n=new V(this.M(y()),this.M(y()),this,this.options)):n=e[o],n._$AI(s),o++;o<e.length&&(this._$AR(n&&n._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class j{constructor(t,e,n,o,s){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=T}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,o){const s=this.strings;let i=!1;if(void 0===s)t=P(this,t,e,0),i=!A(t)||t!==this._$AH&&t!==N,i&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=P(this,o[n+r],e,r),l===N&&(l=this._$AH[r]),i||(i=!A(l)||l!==this._$AH[r]),l===T?t=T:t!==T&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}i&&!o&&this.C(t)}C(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class D extends j{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===T?void 0:t}}const I=f?f.emptyScript:"";class Z extends j{constructor(){super(...arguments),this.type=4}C(t){t&&t!==T?this.element.setAttribute(this.name,I):this.element.removeAttribute(this.name)}}class F extends j{constructor(t,e,n,o,s){super(t,e,n,o,s),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=P(this,t,e,0))&&void 0!==n?n:T)===N)return;const o=this._$AH,s=t===T&&o!==T||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==T&&(o===T||s);s&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class W{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}}const q=window.litHtmlPolyfillSupport; | ||
var g;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:v}),(null!==(l=globalThis.reactiveElementVersions)&&void 0!==l?l:globalThis.reactiveElementVersions=[]).push("1.3.2");const f=globalThis.trustedTypes,b=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,m="?"+w,$=`<${m}>`,_=document,y=(t="")=>_.createComment(t),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,x=Array.isArray,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,S=/>/g,M=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,z=/'/g,k=/"/g,L=/^(?:script|style|textarea|title)$/i,H=(t=>(e,...n)=>({_$litType$:t,strings:e,values:n}))(1),N=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),O=new WeakMap,U=_.createTreeWalker(_,129,null,!1);class B{constructor({strings:t,_$litType$:e},n){let o;this.parts=[];let s=0,i=0;const r=t.length-1,l=this.parts,[a,c]=((t,e)=>{const n=t.length-1,o=[];let s,i=2===e?"<svg>":"",r=C;for(let e=0;e<n;e++){const n=t[e];let l,a,c=-1,h=0;for(;h<n.length&&(r.lastIndex=h,a=r.exec(n),null!==a);)h=r.lastIndex,r===C?"!--"===a[1]?r=E:void 0!==a[1]?r=S:void 0!==a[2]?(L.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=M):void 0!==a[3]&&(r=M):r===M?">"===a[0]?(r=null!=s?s:C,c=-1):void 0===a[1]?c=-2:(c=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?M:'"'===a[3]?k:z):r===k||r===z?r=M:r===E||r===S?r=C:(r=M,s=void 0);const d=r===M&&t[e+1].startsWith("/>")?" ":"";i+=r===C?n+$:c>=0?(o.push(l),n.slice(0,c)+"$lit$"+n.slice(c)+w+d):n+w+(-2===c?(o.push(void 0),e):d)}const l=i+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==b?b.createHTML(l):l,o]})(t,e);if(this.el=B.createElement(a,n),U.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=U.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(w)){const n=c[i++];if(t.push(e),void 0!==n){const t=o.getAttribute(n.toLowerCase()+"$lit$").split(w),e=/([.?@])?(.*)/.exec(n);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?D:"?"===e[1]?Z:"@"===e[1]?F:j})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(L.test(o.tagName)){const t=o.textContent.split(w),e=t.length-1;if(e>0){o.textContent=f?f.emptyScript:"";for(let n=0;n<e;n++)o.append(t[n],y()),U.nextNode(),l.push({type:2,index:++s});o.append(t[e],y())}}}else if(8===o.nodeType)if(o.data===m)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(w,t+1));)l.push({type:7,index:s}),t+=w.length-1}s++}}static createElement(t,e){const n=_.createElement("template");return n.innerHTML=t,n}}function P(t,e,n=t,o){var s,i,r,l;if(e===N)return e;let a=void 0!==o?null===(s=n._$Cl)||void 0===s?void 0:s[o]:n._$Cu;const c=A(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(i=null==a?void 0:a._$AO)||void 0===i||i.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,n,o)),void 0!==o?(null!==(r=(l=n)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:n._$Cu=a),void 0!==a&&(e=P(t,a._$AS(t,e.values),a,o)),e}class R{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:n},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:_).importNode(n,!0);U.currentNode=s;let i=U.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new V(i,i.nextSibling,this,t):1===a.type?e=new a.ctor(i,a.name,a.strings,this,t):6===a.type&&(e=new W(i,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(i=U.nextNode(),r++)}return s}m(t){let e=0;for(const n of this.v)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class V{constructor(t,e,n,o){var s;this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=P(this,t,e),A(t)?t===T||null==t||""===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==N&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return x(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==T&&A(this._$AH)?this._$AA.nextSibling.data=t:this.k(_.createTextNode(t)),this._$AH=t}T(t){var e;const{values:n,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=B.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(n);else{const t=new R(s,this),e=t.p(this.options);t.m(n),this.k(e),this._$AH=t}}_$AC(t){let e=O.get(t.strings);return void 0===e&&O.set(t.strings,e=new B(t)),e}S(t){x(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,o=0;for(const s of t)o===e.length?e.push(n=new V(this.M(y()),this.M(y()),this,this.options)):n=e[o],n._$AI(s),o++;o<e.length&&(this._$AR(n&&n._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class j{constructor(t,e,n,o,s){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=T}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,o){const s=this.strings;let i=!1;if(void 0===s)t=P(this,t,e,0),i=!A(t)||t!==this._$AH&&t!==N,i&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=P(this,o[n+r],e,r),l===N&&(l=this._$AH[r]),i||(i=!A(l)||l!==this._$AH[r]),l===T?t=T:t!==T&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}i&&!o&&this.C(t)}C(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class D extends j{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===T?void 0:t}}const I=f?f.emptyScript:"";class Z extends j{constructor(){super(...arguments),this.type=4}C(t){t&&t!==T?this.element.setAttribute(this.name,I):this.element.removeAttribute(this.name)}}class F extends j{constructor(t,e,n,o,s){super(t,e,n,o,s),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=P(this,t,e,0))&&void 0!==n?n:T)===N)return;const o=this._$AH,s=t===T&&o!==T||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==T&&(o===T||s);s&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class W{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}}const q=window.litHtmlPolyfillSupport; | ||
/** | ||
@@ -42,5 +42,5 @@ * @license | ||
${s(":host(:not([size=original])) svg {\n width: 24px;\n height: 24px;\n}\n\n:host([size=small]) svg {\n width: 20px;\n height: 20px;\n}\n\n:host([size=large]) svg {\n width: 32px;\n height: 32px;\n}")} | ||
`}static get iconsMapping(){return{"arrow-left":'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M19.078 12.5a1 1 0 01-1 1h-10.5a1 1 0 110-2h10.5a1 1 0 011 1z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.202 8.219a1 1 0 01.157 1.405L8.06 12.5l2.3 2.876a1 1 0 01-1.563 1.248L5.5 12.5l3.297-4.124a1 1 0 011.405-.157z" fill="currentColor"/></svg>',"arrow-right":'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.922 11.5a1 1 0 011-1h10.5a1 1 0 110 2h-10.5a1 1 0 01-1-1z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.798 15.781a1 1 0 01-.157-1.405L15.94 11.5l-2.3-2.876a1 1 0 011.563-1.248L18.5 11.5l-3.297 4.124a1 1 0 01-1.405.157z" fill="currentColor"/></svg>',collapse:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"/></svg>',document:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"/></svg>',download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>',email:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',expand:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>',mobile:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"/></svg>',phone:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>',add:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>',search:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>',upload:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"/></svg>',"cloud-upload":'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"/></svg>',"axa-logo":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 283.467 283.467"><path fill="#00008f" d="M.003.003h283.464v283.464H.003z"/><path fill="#ff1721" d="M175.659 139.99L283.467 0h-15.923L159.38 139.99h16.279z"/><path fill="#fff" d="M216.597 202.461c4.941 13.823 15.122 49.795 19.17 52.661h-26.729a44.571 44.571 0 00-1.254-9.434c-1.153-4.111-10.821-35.214-10.821-35.214h-42.456l-6.675 9.463s8.018 25.097 8.515 26.327c.865 2.217 4.693 8.858 4.693 8.858h-25.615s-.664-3.833-.913-5.43c-.2-1.289-2.427-8.349-2.427-8.349s-5.806 6.362-7.388 9.312c-1.596 2.943-2.304 4.467-2.304 4.467h-20.04s-.668-3.833-.917-5.43c-.196-1.289-2.647-8.916-2.647-8.916s-5.61 6.812-7.207 9.756c-1.587 2.95-2.27 4.59-2.27 4.59h-19.82s5.601-5.332 7.559-7.622c3.3-3.882 15.6-19.956 15.6-19.956l-4.931-17.07H45.586s-24.023 31.567-24.97 32.543c-.957.962-7.96 11.011-8.116 12.105H0v-7.949a5.987 5.987 0 01.493-.479c.386-.283 18.213-22.412 34.59-44.233 14.717-19.029 28.526-37.535 29.737-39.297 2.934-4.263 7.163-13.467 7.163-13.467h21.781s.675 8.467 1.31 10.522c.565 1.817 13.837 45.362 14.15 45.831l7.338-9.385-12.543-38.614s-2.94-7.265-3.897-8.354h25.445a22.166 22.166 0 00.83 6.919c1.034 3.184 6.489 22.866 6.489 22.866s17.354-21.753 18.369-23.315a14.1 14.1 0 002.143-6.47H174.6s-3.881 2.837-10.683 11.44c-2.285 2.896-24.673 31.348-24.673 31.348s1.953 6.66 2.905 9.976c.26.952.44 1.597.44 1.665 0 .03.493-.576 1.343-1.665 5.776-7.32 32.05-41.772 33.643-44.722 1.284-2.382 3.173-5.092 4.282-8.041h20.683s.478 6.176 1.109 7.885zm-31.475-32.612c-3.037 6.533-20.913 28.296-20.913 28.296h28.31s-5.488-16.9-6.445-20.709a30.233 30.233 0 01-.557-7.402c0-.346-.063-.908-.395-.185zm-108.775 0c-3.036 6.533-20.912 28.296-20.912 28.296h28.31s-5.483-16.9-6.44-20.709a30.233 30.233 0 01-.557-7.402c0-.346-.068-.908-.4-.185zm42.623 65.986l7.793-10.703c-.718-.772-5.107-14.082-5.107-14.082l-7.535 9.775z"/></svg>',"axa-logo-open":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><path fill="#FF1721" d="M49.026 39.457L77.948 1.9h-4.272L44.658 39.457z"/><path d="M0 0v79.85h79.85V0H0zm77.948 77.948H1.901v-7.604h3.353c.042-.293 1.92-2.99 2.177-3.247.254-.262 6.7-8.731 6.7-8.731h11.303l1.323 4.58s-3.3 4.312-4.186 5.353c-.525.615-2.027 2.045-2.027 2.045h5.317s.183-.44.609-1.231c.428-.79 1.933-2.618 1.933-2.618s.658 2.047.71 2.392c.067.429.247 1.457.247 1.457h5.376s.19-.409.618-1.199c.424-.79 1.982-2.498 1.982-2.498s.597 1.895.65 2.24c.068.429.246 1.457.246 1.457h6.872s-1.027-1.781-1.26-2.376c-.133-.33-2.284-7.063-2.284-7.063l1.791-2.54h11.39s2.594 8.345 2.903 9.448c.202.83.315 1.678.336 2.531h7.171c-1.086-.769-3.817-10.42-5.143-14.128l-3.474-12.04c-.169-.458-.297-2.115-.297-2.115h-5.549c-.297.791-.804 1.518-1.149 2.157-.427.792-7.476 10.035-9.025 11.998-.228.292-.36.455-.36.447 0-.018-.049-.191-.118-.447-.256-.89-.78-2.676-.78-2.676s6.006-7.633 6.62-8.41c1.824-2.308 2.865-3.069 2.865-3.069h-5.687a3.783 3.783 0 01-.575 1.736c-.273.419-4.928 6.255-4.928 6.255s-1.464-5.28-1.741-6.135a5.947 5.947 0 01-.223-1.856h-6.826c.257.292 1.045 2.241 1.045 2.241l3.365 10.36-1.968 2.517c-.084-.126-3.645-11.808-3.797-12.295-.17-.551-.35-2.823-.35-2.823h-5.844s-1.135 2.47-1.922 3.613c-.325.473-4.03 5.437-7.978 10.542-4.393 5.854-9.176 11.791-9.28 11.867a1.6 1.6 0 00-.13.128V1.9h76.046v76.047zM22.64 49.503c.256 1.022 1.727 5.555 1.727 5.555h-7.595s4.796-5.838 5.61-7.59c.09-.195.108-.044.108.049a8.11 8.11 0 00.15 1.986zm9.876 11.64l2.022-2.622s1.177 3.57 1.37 3.777l-2.09 2.872-1.302-4.027zm19.304-11.64c.257 1.022 1.729 5.555 1.729 5.555h-7.595s4.796-5.838 5.61-7.59c.09-.195.106-.044.106.049a8.111 8.111 0 00.15 1.986z" fill="#00008F"/></svg>',"check-circle":'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',check:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>',"info-outline":'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h-2v2z"/></svg>',"warning-amber":'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M1 21.5L12 2.5L23 21.5H1ZM19.53 19.5L12 6.49L4.47 19.5H19.53ZM11 16.5V18.5H13V16.5H11ZM11 10.5H13V14.5H11V10.5Z" fill="currentColor"/></svg>',cloudy:'<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.34278 4.04C6.59226 1.64 9.11121 0 12 0C15.6385 0 18.6672 2.59 19.3569 6.04C21.9459 6.22 23.995 8.36 23.995 11C23.995 13.76 21.7559 16 18.9971 16H6.00251C2.69388 16 0.00500488 13.31 0.00500488 10C0.00500488 6.91 2.34403 4.36 5.34278 4.04ZM17.3978 6.43C16.888 3.86 14.6089 2 12 2C9.94086 2 8.07164 3.14 7.13204 4.97L6.63224 5.92L5.56269 6.03C3.53353 6.24 2.00417 7.95 2.00417 10C2.00417 12.21 3.79343 14 6.00251 14H18.9971C20.6464 14 21.9958 12.65 21.9958 11C21.9958 9.45 20.7764 8.15 19.217 8.04L17.6976 7.93L17.3978 6.43Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7.70521 22.7053L3.99997 19L5.41418 17.5858L9.11942 21.2911L7.70521 22.7053Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.7052 22.7053L14 19L15.4142 17.5858L19.1194 21.2911L17.7052 22.7053Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.7052 22.7053L8.99997 19L10.4142 17.5858L14.1194 21.2911L12.7052 22.7053Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M22.7052 22.7053L19 19L20.4142 17.5858L24.1194 21.2911L22.7052 22.7053Z" fill="currentColor"/></svg>',close:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>'}}static get properties(){return{icon:{type:String},size:{type:String,reflect:!0,defaultValue:"medium"},_loadedSvg:{type:String}}}constructor(){super(),(t=>{const{constructor:{properties:e}}=t;Object.keys(e).forEach((n=>{const o=e[n],{type:s,converter:i,defaultValue:r}=o;if(!s){if(!i)throw new Error(`<${t.nodeName}> property "${n}" is missing a type!`);return}let l=t[n];rt(l)||(l=s===Boolean?t.hasAttribute(n):t.getAttribute(n),rt(l)?t[n]=((t,e)=>e===Number?parseFloat(t):e===Function?at:e===Array||e===Object?JSON.parse(t):t)(l,s):void 0===r&&"defaultValue"in o||(t[n]="defaultValue"in o?r:lt.get(s)))}))})(this)}updated(){const{icon:t}=this;var e;/\.svg/.test(t)?(e=t,new Promise(((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e),o.onload=()=>t(o.responseText),o.onerror=()=>n(o.statusText),o.send()}))).then((t=>{this._loadedSvg=t})):/<svg/.test(t)?this._loadedSvg=t:this._loadedSvg=ct.iconsMapping[t]||""}render(){return this._loadedSvg&&st((t=>{const e=document.createElement("div");e.innerHTML=t;const n=e.firstElementChild;if(!n||"svg"!==n.tagName.toLowerCase())return"";if(n.getElementsByTagName("script").length)return"";for(let t=0,e=n.attributes,o=e.length;t<o;t++)if(e[t].name.startsWith("on"))return"";return t})(this._loadedSvg))}}((t,e,n)=>{const o="string"==typeof e&&e;let s="";t.forEach((t=>{const n=t instanceof HTMLElement?t.constructor:t,{tagName:i}=n,r=!o&&e[i];if(r){if(!window.customElements.get(i)&&n.versions)throw Error(`'versions' is a reserved class property, but was found in ${i}'s class`);n.versions=r,it(i,n)}let{versions:l}=n;const a=o||l[i];s=((t,e)=>{return`${t}-${n=e,`${n}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var n})(i,a),it(s,class extends n{})}))})([ct],{"axa-icon":{"axa-icon":"8.0.0"}});const ht=t=>!(null==t),dt=new Map;[[String,""],[Boolean,!1],[Object,{}],[Array,[]],[Number,0],[Function,()=>{}]].forEach((([t,e])=>{dt.set(t,e)}));const ut=()=>{},pt=t=>{const{constructor:{properties:e}}=t;Object.keys(e).forEach((n=>{const o=e[n],{type:s,converter:i,defaultValue:r}=o;if(!s){if(!i)throw new Error(`<${t.nodeName}> property "${n}" is missing a type!`);return}let l=t[n];ht(l)||(l=s===Boolean?t.hasAttribute(n):t.getAttribute(n),ht(l)?t[n]=((t,e)=>e===Number?parseFloat(t):e===Function?ut:e===Array||e===Object?JSON.parse(t):t)(l,s):void 0===r&&"defaultValue"in o||(t[n]="defaultValue"in o?r:dt.get(s)))}))};var vt=(t,e)=>{const n=t.toLowerCase();return window.customElements.get(n)||window.customElements.define(n,e),n};const gt=(t,e)=>{return`${t}-${n=e,`${n}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var n},ft=(t,e="",n="<")=>`${n}${e}${t}`,bt=(t,e,n)=>ft(gt(t,e),n,"{"),wt=(t,e,n)=>t.map((t=>t.split(ft(e)).join(bt(e,n)).split(ft(e,"/")).join(bt(e,n,"/")))),mt=(t,e,n)=>{const o="string"==typeof e&&e;let s="";return t.forEach((t=>{const i=t instanceof HTMLElement?t.constructor:t,{tagName:r}=i,l=!o&&e[r];if(l){if(!window.customElements.get(r)&&i.versions)throw Error(`'versions' is a reserved class property, but was found in ${r}'s class`);i.versions=l,vt(r,i)}let{versions:a}=i;!a&&n&&(a=e[n.constructor.tagName],a[r]=Object.values(a)[0]);const c=o||a[r];s=gt(r,c),vt(s,class extends i{})})),s},$t=t=>(e,...n)=>{const o=t.constructor,[s,i]=(t=>{const{versions:e,tagName:n}=t,o=Object.keys(e).filter((t=>t!==n)).sort(((t,e)=>e.length-t.length));return[o,o.map((t=>e[t]))]})(o);let r=e;for(let t=0,e=s.length;t<e;t++)r=wt(r,s[t],i[t]);for(let t=0,e=r.length;t<e;t++)r[t]=r[t].split("{").join("<");return r.raw=r,H(r,...n)};const _t={};class yt extends Y{inlineStyles(t="styles"){const e=this.getRootNode(),n=_t[this.tagName]||new WeakMap,o=n.get(e)||{},s=(o.referenceCount||0)+1;if(o.referenceCount=s,n.set(e,s),_t[this.tagName]=n,1===s){this.ownerDocument!==e&&(this._rootNode=e);const n=document.createElement("style");let s=this.constructor[t];const i=this.nodeName.toLowerCase(),r=this.constructor.tagName;i!==r&&(s=s.split(r).join(i)),n.textContent=s,n.dataset.name=this.tagName.toLowerCase();(e instanceof ShadowRoot?e:document.head).appendChild(n),o.style=n}n.set(e,o),_t[this.tagName]=n}disconnectedCallback(){super.disconnectedCallback();const t=_t[this.tagName];if(!t)return;const e=this._rootNode||this.ownerDocument,n=t.get(e)||{},o=(n.referenceCount||0)-1;if(o<1){t.delete(e);const{style:o}=n;o&&o.parentNode&&o.parentNode.removeChild(o)}else n.referenceCount=o,t.set(e,n)}}const At="arrow-right",xt=!!(window||global).ShadowRoot&&ShadowRoot.toString().indexOf("native code")>-1;class Ct extends yt{static get tagName(){return"axa-button"}static get styles(){return i` | ||
${s(':host {\n display: inline-block;\n vertical-align: bottom;\n}\n\n.a-button {\n font-size: 14px;\n letter-spacing: 0.02em;\n line-height: 17px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n position: relative;\n box-sizing: border-box;\n padding: 0 30px;\n margin: 0;\n min-height: 40px;\n width: 100%;\n vertical-align: bottom;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n overflow-wrap: break-word;\n word-wrap: break-word;\n text-transform: uppercase;\n color: #fff;\n background-color: #00008f;\n border: solid 2px #00008f;\n border-bottom-color: #00005b;\n}\n.a-button:hover, .a-button:active, .a-button:focus {\n cursor: pointer;\n text-decoration: none;\n background-color: #00005b;\n border-color: #00005b;\n outline: 0;\n}\n.a-button:disabled {\n color: #999;\n background-color: #e5e5e5;\n border-color: #e5e5e5;\n border-bottom-color: #ccc;\n pointer-events: none;\n}\n.a-button__flex-wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.a-button__icon {\n display: flex;\n margin-right: 10px;\n}\n.a-button__arrow {\n display: flex;\n margin-left: 10px;\n}\n\n.a-button--large {\n min-height: 50px;\n font-size: 16px;\n letter-spacing: 0.02em;\n line-height: 24px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n}\n\n.a-button--small {\n min-height: 30px;\n font-size: 14px;\n letter-spacing: 0.02em;\n line-height: 17px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n}\n\n.a-button--motion {\n z-index: 0;\n overflow: hidden;\n transition: color 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s;\n}\n.a-button--motion::after {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: -1;\n display: block;\n width: 0.001px;\n height: 100vw;\n content: "";\n transform: translateX(-50%) translateY(-50%) rotate(45deg);\n transition: width 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s;\n background-color: #00005b;\n}\n.a-button--motion:hover, .a-button--motion:focus {\n background-color: #00008f;\n color: #fff;\n}\n.a-button--motion:hover::after, .a-button--motion:focus::after {\n width: 110%;\n background-color: #00005b;\n}\n\n.a-button--red {\n background-color: #f07662;\n border-color: #f07662;\n border-bottom-color: #ec4d33;\n}\n.a-button--red:hover, .a-button--red:active, .a-button--red:focus {\n background-color: #ec4d33;\n border-color: #ec4d33;\n}\n.a-button--red.a-button--motion::after {\n background-color: #ec4d33;\n}\n.a-button--red.a-button--motion:hover, .a-button--red.a-button--motion:focus {\n background-color: #f07662;\n color: #fff;\n}\n.a-button--red.a-button--motion:hover::after, .a-button--red.a-button--motion:focus::after {\n background-color: #ec4d33;\n}\n\n.a-button--secondary {\n background-color: transparent;\n border-bottom-color: #00008f;\n color: #00008f;\n}\n.a-button--secondary:hover, .a-button--secondary:active, .a-button--secondary:focus {\n color: #fff;\n}\n.a-button--secondary.a-button--motion {\n background-color: transparent;\n}\n\n.a-button--inverted {\n background-color: transparent;\n border-color: #fff;\n color: #fff;\n}\n.a-button--inverted:hover, .a-button--inverted:active, .a-button--inverted:focus {\n background-color: #fff;\n border-color: #fff;\n color: #00005b;\n}\n.a-button--inverted.a-button--motion {\n background-color: transparent;\n}\n.a-button--inverted.a-button--motion::after {\n background-color: #fff;\n}\n\n.a-button--inverted-blue-ocean:hover, .a-button--inverted-blue-ocean:active, .a-button--inverted-blue-ocean:focus {\n color: #4976ba;\n}\n\n.a-button--inverted-red-tosca:hover, .a-button--inverted-red-tosca:active, .a-button--inverted-red-tosca:focus {\n color: #914146;\n}\n\n.a-button--inverted-purple-logan:hover, .a-button--inverted-purple-logan:active, .a-button--inverted-purple-logan:focus {\n color: #9190ac;\n}\n\n.a-button--inverted-green-viridian:hover, .a-button--inverted-green-viridian:active, .a-button--inverted-green-viridian:focus {\n color: #668980;\n}\n\n.a-button--inverted-blue-teal:hover, .a-button--inverted-blue-teal:active, .a-button--inverted-blue-teal:focus {\n color: #027180;\n}')} | ||
`}static get blockMouseEventsCss(){return"axa-button {\n position: relative;\n}\naxa-button[disabled] {\n pointer-events: none;\n}"}static get properties(){return{type:{type:String,reflect:!0,defaultValue:"button"},variant:{type:String},icon:{type:String},size:{type:String},motionOff:{type:Boolean},disabled:{type:Boolean,reflect:!0},onClick:{type:Function,attribute:!1}}}constructor(){super(),pt(this),mt([ct],{"axa-button":{"axa-button":"8.0.0","axa-icon":"8.0.0"}},this),this.handleClick=this.handleClick.bind(this)}get isTypeSubmitOrReset(){return"submit"===this.type||"reset"===this.type}get showIcon(){return this.icon&&this.icon!==At}get showArrow(){return this.icon===At}watch(t){switch(t){case"stop":this._observer&&this._observer.disconnect();break;case"start":this._observer||(this._observer=new MutationObserver((()=>this.attachFakeButton()))),this._observer.observe(this,{childList:!0})}}attachFakeButton(){const t=document.createElement("button");t.type=this.type,t.style.display="none",this.watch("stop"),this.appendChild(t),this.watch("start"),this.fakeButton=t}firstUpdated(){this.inlineStyles("blockMouseEventsCss");const{style:t}=this;xt&&this.isTypeSubmitOrReset&&this.attachFakeButton(),t.appearance="none",t.mozAppearance="none",t.webkitAppearance="none",t.msAppearance="none",t.oAppearance="none","function"==typeof this.onclick&&(this.originalOnclick=this.onclick),this.onclick=t=>{this.handleClick(t,!0)}}handleClick(t,e=!1){const n=document.documentMode&&(t=>t.screenX||t.screenY||t.clientX||t.clientY)(t)&&xt&&this.isTypeSubmitOrReset,o=t.isTrusted&&xt&&this.isTypeSubmitOrReset;(n||o)&&(t.stopPropagation(),this.fakeButton.click());const s=this.onClick||this.originalOnclick;e||"function"!=typeof s||s(t)}render(){const{type:t,motionOff:e,disabled:n,variant:o="",icon:s="",size:i=""}=this,r={"a-button":!0,"a-button--large":"large"===i,"a-button--small":"small"===i,"a-button--motion":!e,"a-button--secondary":"secondary"===o,"a-button--red":"red"===o,"a-button--inverted":o.includes("inverted"),"a-button--inverted-blue-ocean":"inverted-blue-ocean"===o,"a-button--inverted-red-tosca":"inverted-red-tosca"===o,"a-button--inverted-purple-logan":"inverted-purple-logan"===o,"a-button--inverted-green-viridian":"inverted-green-viridian"===o,"a-button--inverted-blue-teal":"inverted-blue-teal"===o};return H` | ||
`}static get iconsMapping(){return{"arrow-left":'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M19.078 12.5a1 1 0 01-1 1h-10.5a1 1 0 110-2h10.5a1 1 0 011 1z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.202 8.219a1 1 0 01.157 1.405L8.06 12.5l2.3 2.876a1 1 0 01-1.563 1.248L5.5 12.5l3.297-4.124a1 1 0 011.405-.157z" fill="currentColor"/></svg>',"arrow-right":'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.922 11.5a1 1 0 011-1h10.5a1 1 0 110 2h-10.5a1 1 0 01-1-1z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.798 15.781a1 1 0 01-.157-1.405L15.94 11.5l-2.3-2.876a1 1 0 011.563-1.248L18.5 11.5l-3.297 4.124a1 1 0 01-1.405.157z" fill="currentColor"/></svg>',collapse:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"/></svg>',document:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"/></svg>',download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>',email:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',expand:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>',mobile:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"/></svg>',phone:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>',add:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>',search:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>',upload:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"/></svg>',"cloud-upload":'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"/></svg>',"axa-logo":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 283.467 283.467"><path fill="#00008f" d="M.003.003h283.464v283.464H.003z"/><path fill="#ff1721" d="M175.659 139.99L283.467 0h-15.923L159.38 139.99h16.279z"/><path fill="#fff" d="M216.597 202.461c4.941 13.823 15.122 49.795 19.17 52.661h-26.729a44.571 44.571 0 00-1.254-9.434c-1.153-4.111-10.821-35.214-10.821-35.214h-42.456l-6.675 9.463s8.018 25.097 8.515 26.327c.865 2.217 4.693 8.858 4.693 8.858h-25.615s-.664-3.833-.913-5.43c-.2-1.289-2.427-8.349-2.427-8.349s-5.806 6.362-7.388 9.312c-1.596 2.943-2.304 4.467-2.304 4.467h-20.04s-.668-3.833-.917-5.43c-.196-1.289-2.647-8.916-2.647-8.916s-5.61 6.812-7.207 9.756c-1.587 2.95-2.27 4.59-2.27 4.59h-19.82s5.601-5.332 7.559-7.622c3.3-3.882 15.6-19.956 15.6-19.956l-4.931-17.07H45.586s-24.023 31.567-24.97 32.543c-.957.962-7.96 11.011-8.116 12.105H0v-7.949a5.987 5.987 0 01.493-.479c.386-.283 18.213-22.412 34.59-44.233 14.717-19.029 28.526-37.535 29.737-39.297 2.934-4.263 7.163-13.467 7.163-13.467h21.781s.675 8.467 1.31 10.522c.565 1.817 13.837 45.362 14.15 45.831l7.338-9.385-12.543-38.614s-2.94-7.265-3.897-8.354h25.445a22.166 22.166 0 00.83 6.919c1.034 3.184 6.489 22.866 6.489 22.866s17.354-21.753 18.369-23.315a14.1 14.1 0 002.143-6.47H174.6s-3.881 2.837-10.683 11.44c-2.285 2.896-24.673 31.348-24.673 31.348s1.953 6.66 2.905 9.976c.26.952.44 1.597.44 1.665 0 .03.493-.576 1.343-1.665 5.776-7.32 32.05-41.772 33.643-44.722 1.284-2.382 3.173-5.092 4.282-8.041h20.683s.478 6.176 1.109 7.885zm-31.475-32.612c-3.037 6.533-20.913 28.296-20.913 28.296h28.31s-5.488-16.9-6.445-20.709a30.233 30.233 0 01-.557-7.402c0-.346-.063-.908-.395-.185zm-108.775 0c-3.036 6.533-20.912 28.296-20.912 28.296h28.31s-5.483-16.9-6.44-20.709a30.233 30.233 0 01-.557-7.402c0-.346-.068-.908-.4-.185zm42.623 65.986l7.793-10.703c-.718-.772-5.107-14.082-5.107-14.082l-7.535 9.775z"/></svg>',"axa-logo-open":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><path fill="#FF1721" d="M49.026 39.457L77.948 1.9h-4.272L44.658 39.457z"/><path d="M0 0v79.85h79.85V0H0zm77.948 77.948H1.901v-7.604h3.353c.042-.293 1.92-2.99 2.177-3.247.254-.262 6.7-8.731 6.7-8.731h11.303l1.323 4.58s-3.3 4.312-4.186 5.353c-.525.615-2.027 2.045-2.027 2.045h5.317s.183-.44.609-1.231c.428-.79 1.933-2.618 1.933-2.618s.658 2.047.71 2.392c.067.429.247 1.457.247 1.457h5.376s.19-.409.618-1.199c.424-.79 1.982-2.498 1.982-2.498s.597 1.895.65 2.24c.068.429.246 1.457.246 1.457h6.872s-1.027-1.781-1.26-2.376c-.133-.33-2.284-7.063-2.284-7.063l1.791-2.54h11.39s2.594 8.345 2.903 9.448c.202.83.315 1.678.336 2.531h7.171c-1.086-.769-3.817-10.42-5.143-14.128l-3.474-12.04c-.169-.458-.297-2.115-.297-2.115h-5.549c-.297.791-.804 1.518-1.149 2.157-.427.792-7.476 10.035-9.025 11.998-.228.292-.36.455-.36.447 0-.018-.049-.191-.118-.447-.256-.89-.78-2.676-.78-2.676s6.006-7.633 6.62-8.41c1.824-2.308 2.865-3.069 2.865-3.069h-5.687a3.783 3.783 0 01-.575 1.736c-.273.419-4.928 6.255-4.928 6.255s-1.464-5.28-1.741-6.135a5.947 5.947 0 01-.223-1.856h-6.826c.257.292 1.045 2.241 1.045 2.241l3.365 10.36-1.968 2.517c-.084-.126-3.645-11.808-3.797-12.295-.17-.551-.35-2.823-.35-2.823h-5.844s-1.135 2.47-1.922 3.613c-.325.473-4.03 5.437-7.978 10.542-4.393 5.854-9.176 11.791-9.28 11.867a1.6 1.6 0 00-.13.128V1.9h76.046v76.047zM22.64 49.503c.256 1.022 1.727 5.555 1.727 5.555h-7.595s4.796-5.838 5.61-7.59c.09-.195.108-.044.108.049a8.11 8.11 0 00.15 1.986zm9.876 11.64l2.022-2.622s1.177 3.57 1.37 3.777l-2.09 2.872-1.302-4.027zm19.304-11.64c.257 1.022 1.729 5.555 1.729 5.555h-7.595s4.796-5.838 5.61-7.59c.09-.195.106-.044.106.049a8.111 8.111 0 00.15 1.986z" fill="#00008F"/></svg>',"check-circle":'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',check:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>',"info-outline":'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h-2v2z"/></svg>',"warning-amber":'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M1 21.5L12 2.5L23 21.5H1ZM19.53 19.5L12 6.49L4.47 19.5H19.53ZM11 16.5V18.5H13V16.5H11ZM11 10.5H13V14.5H11V10.5Z" fill="currentColor"/></svg>',cloudy:'<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.34278 4.04C6.59226 1.64 9.11121 0 12 0C15.6385 0 18.6672 2.59 19.3569 6.04C21.9459 6.22 23.995 8.36 23.995 11C23.995 13.76 21.7559 16 18.9971 16H6.00251C2.69388 16 0.00500488 13.31 0.00500488 10C0.00500488 6.91 2.34403 4.36 5.34278 4.04ZM17.3978 6.43C16.888 3.86 14.6089 2 12 2C9.94086 2 8.07164 3.14 7.13204 4.97L6.63224 5.92L5.56269 6.03C3.53353 6.24 2.00417 7.95 2.00417 10C2.00417 12.21 3.79343 14 6.00251 14H18.9971C20.6464 14 21.9958 12.65 21.9958 11C21.9958 9.45 20.7764 8.15 19.217 8.04L17.6976 7.93L17.3978 6.43Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7.70521 22.7053L3.99997 19L5.41418 17.5858L9.11942 21.2911L7.70521 22.7053Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.7052 22.7053L14 19L15.4142 17.5858L19.1194 21.2911L17.7052 22.7053Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.7052 22.7053L8.99997 19L10.4142 17.5858L14.1194 21.2911L12.7052 22.7053Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M22.7052 22.7053L19 19L20.4142 17.5858L24.1194 21.2911L22.7052 22.7053Z" fill="currentColor"/></svg>',close:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>'}}static get properties(){return{icon:{type:String},size:{type:String,reflect:!0,defaultValue:"medium"},_loadedSvg:{type:String}}}constructor(){super(),(t=>{const{constructor:{properties:e}}=t;Object.keys(e).forEach((n=>{const o=e[n],{type:s,converter:i,defaultValue:r}=o;if(!s){if(!i)throw new Error(`<${t.nodeName}> property "${n}" is missing a type!`);return}let l=t[n];rt(l)||(l=s===Boolean?t.hasAttribute(n):t.getAttribute(n),rt(l)?t[n]=((t,e)=>e===Number?parseFloat(t):e===Function?at:e===Array||e===Object?JSON.parse(t):t)(l,s):void 0===r&&"defaultValue"in o||(t[n]="defaultValue"in o?r:lt.get(s)))}))})(this)}updated(){const{icon:t}=this;var e;/\.svg/.test(t)?(e=t,new Promise(((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e),o.onload=()=>t(o.responseText),o.onerror=()=>n(o.statusText),o.send()}))).then((t=>{this._loadedSvg=t})):/<svg/.test(t)?this._loadedSvg=t:this._loadedSvg=ct.iconsMapping[t]||""}render(){return this._loadedSvg&&st((t=>{const e=document.createElement("div");e.innerHTML=t;const n=e.firstElementChild;if(!n||"svg"!==n.tagName.toLowerCase())return"";if(n.getElementsByTagName("script").length)return"";for(let t=0,e=n.attributes,o=e.length;t<o;t++)if(e[t].name.startsWith("on"))return"";return t})(this._loadedSvg))}}((t,e,n)=>{const o="string"==typeof e&&e;let s="";t.forEach((t=>{const n=t instanceof HTMLElement?t.constructor:t,{tagName:i}=n,r=!o&&e[i];if(r){if(!window.customElements.get(i)&&n.versions)throw Error(`'versions' is a reserved class property, but was found in ${i}'s class`);n.versions=r,it(i,n)}let{versions:l}=n;const a=o||l[i];s=((t,e)=>{return`${t}-${n=e,`${n}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var n})(i,a),it(s,class extends n{})}))})([ct],{"axa-icon":{"axa-icon":"8.0.1"}});const ht=t=>!(null==t),dt=new Map;[[String,""],[Boolean,!1],[Object,{}],[Array,[]],[Number,0],[Function,()=>{}]].forEach((([t,e])=>{dt.set(t,e)}));const ut=()=>{},pt=t=>{const{constructor:{properties:e}}=t;Object.keys(e).forEach((n=>{const o=e[n],{type:s,converter:i,defaultValue:r}=o;if(!s){if(!i)throw new Error(`<${t.nodeName}> property "${n}" is missing a type!`);return}let l=t[n];ht(l)||(l=s===Boolean?t.hasAttribute(n):t.getAttribute(n),ht(l)?t[n]=((t,e)=>e===Number?parseFloat(t):e===Function?ut:e===Array||e===Object?JSON.parse(t):t)(l,s):void 0===r&&"defaultValue"in o||(t[n]="defaultValue"in o?r:dt.get(s)))}))};var vt=(t,e)=>{const n=t.toLowerCase();return window.customElements.get(n)||window.customElements.define(n,e),n};const gt=(t,e)=>{return`${t}-${n=e,`${n}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var n},ft=(t,e="",n="<")=>`${n}${e}${t}`,bt=(t,e,n)=>ft(gt(t,e),n,"{"),wt=(t,e,n)=>t.map((t=>t.split(ft(e)).join(bt(e,n)).split(ft(e,"/")).join(bt(e,n,"/")))),mt=(t,e,n)=>{const o="string"==typeof e&&e;let s="";return t.forEach((t=>{const i=t instanceof HTMLElement?t.constructor:t,{tagName:r}=i,l=!o&&e[r];if(l){if(!window.customElements.get(r)&&i.versions)throw Error(`'versions' is a reserved class property, but was found in ${r}'s class`);i.versions=l,vt(r,i)}let{versions:a}=i;!a&&n&&(a=e[n.constructor.tagName],a[r]=Object.values(a)[0]);const c=o||a[r];s=gt(r,c),vt(s,class extends i{})})),s},$t=t=>(e,...n)=>{const o=t.constructor,[s,i]=(t=>{const{versions:e,tagName:n}=t,o=Object.keys(e).filter((t=>t!==n)).sort(((t,e)=>e.length-t.length));return[o,o.map((t=>e[t]))]})(o);let r=e;for(let t=0,e=s.length;t<e;t++)r=wt(r,s[t],i[t]);for(let t=0,e=r.length;t<e;t++)r[t]=r[t].split("{").join("<");return r.raw=r,H(r,...n)};const _t={};class yt extends Y{inlineStyles(t="styles"){const e=this.getRootNode(),n=_t[this.tagName]||new WeakMap,o=n.get(e)||{},s=(o.referenceCount||0)+1;if(o.referenceCount=s,n.set(e,s),_t[this.tagName]=n,1===s){this.ownerDocument!==e&&(this._rootNode=e);const n=document.createElement("style");let s=this.constructor[t];const i=this.nodeName.toLowerCase(),r=this.constructor.tagName;i!==r&&(s=s.split(r).join(i)),n.textContent=s,n.dataset.name=this.tagName.toLowerCase();(e instanceof ShadowRoot?e:document.head).appendChild(n),o.style=n}n.set(e,o),_t[this.tagName]=n}disconnectedCallback(){super.disconnectedCallback();const t=_t[this.tagName];if(!t)return;const e=this._rootNode||this.ownerDocument,n=t.get(e)||{},o=(n.referenceCount||0)-1;if(o<1){t.delete(e);const{style:o}=n;o&&o.parentNode&&o.parentNode.removeChild(o)}else n.referenceCount=o,t.set(e,n)}}const At="arrow-right",xt=!!(window||global).ShadowRoot&&ShadowRoot.toString().indexOf("native code")>-1;class Ct extends yt{static get tagName(){return"axa-button"}static get styles(){return i` | ||
${s(':host {\n display: inline-block;\n vertical-align: bottom;\n}\n\n.a-button {\n font-size: 14px;\n letter-spacing: 0.02em;\n line-height: 17px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n position: relative;\n box-sizing: border-box;\n padding: 0 30px;\n margin: 0;\n min-height: 40px;\n width: 100%;\n vertical-align: bottom;\n hyphens: auto;\n overflow-wrap: break-word;\n word-wrap: break-word;\n text-transform: uppercase;\n color: #fff;\n background-color: #00008f;\n border: solid 2px #00008f;\n border-bottom-color: #00005b;\n}\n.a-button:hover, .a-button:active, .a-button:focus {\n cursor: pointer;\n text-decoration: none;\n background-color: #00005b;\n border-color: #00005b;\n outline: 0;\n}\n.a-button:disabled {\n color: #999;\n background-color: #e5e5e5;\n border-color: #e5e5e5;\n border-bottom-color: #ccc;\n pointer-events: none;\n}\n.a-button__flex-wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.a-button__icon {\n display: flex;\n margin-right: 10px;\n}\n.a-button__arrow {\n display: flex;\n margin-left: 10px;\n}\n\n.a-button--large {\n min-height: 50px;\n font-size: 16px;\n letter-spacing: 0.02em;\n line-height: 24px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n}\n\n.a-button--small {\n min-height: 30px;\n font-size: 14px;\n letter-spacing: 0.02em;\n line-height: 17px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n}\n\n.a-button--motion {\n z-index: 0;\n overflow: hidden;\n transition: color 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s;\n}\n.a-button--motion::after {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: -1;\n display: block;\n width: 0.001px;\n height: 100vw;\n content: "";\n transform: translateX(-50%) translateY(-50%) rotate(45deg);\n transition: width 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s;\n background-color: #00005b;\n}\n.a-button--motion:hover, .a-button--motion:focus {\n background-color: #00008f;\n color: #fff;\n}\n.a-button--motion:hover::after, .a-button--motion:focus::after {\n width: 110%;\n background-color: #00005b;\n}\n\n.a-button--red {\n background-color: #f07662;\n border-color: #f07662;\n border-bottom-color: #ec4d33;\n}\n.a-button--red:hover, .a-button--red:active, .a-button--red:focus {\n background-color: #ec4d33;\n border-color: #ec4d33;\n}\n.a-button--red.a-button--motion::after {\n background-color: #ec4d33;\n}\n.a-button--red.a-button--motion:hover, .a-button--red.a-button--motion:focus {\n background-color: #f07662;\n color: #fff;\n}\n.a-button--red.a-button--motion:hover::after, .a-button--red.a-button--motion:focus::after {\n background-color: #ec4d33;\n}\n\n.a-button--secondary {\n background-color: transparent;\n border-bottom-color: #00008f;\n color: #00008f;\n}\n.a-button--secondary:hover, .a-button--secondary:active, .a-button--secondary:focus {\n color: #fff;\n}\n.a-button--secondary.a-button--motion {\n background-color: transparent;\n}\n\n.a-button--inverted {\n background-color: transparent;\n border-color: #fff;\n color: #fff;\n}\n.a-button--inverted:hover, .a-button--inverted:active, .a-button--inverted:focus {\n background-color: #fff;\n border-color: #fff;\n color: #00005b;\n}\n.a-button--inverted.a-button--motion {\n background-color: transparent;\n}\n.a-button--inverted.a-button--motion::after {\n background-color: #fff;\n}\n\n.a-button--inverted-blue-ocean:hover, .a-button--inverted-blue-ocean:active, .a-button--inverted-blue-ocean:focus {\n color: #4976ba;\n}\n\n.a-button--inverted-red-tosca:hover, .a-button--inverted-red-tosca:active, .a-button--inverted-red-tosca:focus {\n color: #914146;\n}\n\n.a-button--inverted-purple-logan:hover, .a-button--inverted-purple-logan:active, .a-button--inverted-purple-logan:focus {\n color: #9190ac;\n}\n\n.a-button--inverted-green-viridian:hover, .a-button--inverted-green-viridian:active, .a-button--inverted-green-viridian:focus {\n color: #668980;\n}\n\n.a-button--inverted-blue-teal:hover, .a-button--inverted-blue-teal:active, .a-button--inverted-blue-teal:focus {\n color: #027180;\n}')} | ||
`}static get blockMouseEventsCss(){return"axa-button {\n position: relative;\n}\naxa-button[disabled] {\n pointer-events: none;\n}"}static get properties(){return{type:{type:String,reflect:!0,defaultValue:"button"},variant:{type:String},icon:{type:String},size:{type:String},motionOff:{type:Boolean},disabled:{type:Boolean,reflect:!0},onClick:{type:Function,attribute:!1}}}constructor(){super(),pt(this),mt([ct],{"axa-button":{"axa-button":"8.0.1","axa-icon":"8.0.1"}},this),this.handleClick=this.handleClick.bind(this)}get isTypeSubmitOrReset(){return"submit"===this.type||"reset"===this.type}get showIcon(){return this.icon&&this.icon!==At}get showArrow(){return this.icon===At}watch(t){switch(t){case"stop":this._observer&&this._observer.disconnect();break;case"start":this._observer||(this._observer=new MutationObserver((()=>this.attachFakeButton()))),this._observer.observe(this,{childList:!0})}}attachFakeButton(){const t=document.createElement("button");t.type=this.type,t.style.display="none",this.watch("stop"),this.appendChild(t),this.watch("start"),this.fakeButton=t}firstUpdated(){this.inlineStyles("blockMouseEventsCss");const{style:t}=this;xt&&this.isTypeSubmitOrReset&&this.attachFakeButton(),t.appearance="none",t.mozAppearance="none",t.webkitAppearance="none",t.msAppearance="none",t.oAppearance="none","function"==typeof this.onclick&&(this.originalOnclick=this.onclick),this.onclick=t=>{this.handleClick(t,!0)}}handleClick(t,e=!1){const n=document.documentMode&&(t=>t.screenX||t.screenY||t.clientX||t.clientY)(t)&&xt&&this.isTypeSubmitOrReset,o=t.isTrusted&&xt&&this.isTypeSubmitOrReset;(n||o)&&(t.stopPropagation(),this.fakeButton.click());const s=this.onClick||this.originalOnclick;e||"function"!=typeof s||s(t)}render(){const{type:t,motionOff:e,disabled:n,variant:o="",icon:s="",size:i=""}=this,r={"a-button":!0,"a-button--large":"large"===i,"a-button--small":"small"===i,"a-button--motion":!e,"a-button--secondary":"secondary"===o,"a-button--red":"red"===o,"a-button--inverted":o.includes("inverted"),"a-button--inverted-blue-ocean":"inverted-blue-ocean"===o,"a-button--inverted-red-tosca":"inverted-red-tosca"===o,"a-button--inverted-purple-logan":"inverted-purple-logan"===o,"a-button--inverted-green-viridian":"inverted-green-viridian"===o,"a-button--inverted-blue-teal":"inverted-blue-teal"===o};return H` | ||
<button | ||
@@ -62,2 +62,2 @@ type="${t}" | ||
</button> | ||
`}disconnectedCallback(){super.disconnectedCallback(),this.watch("stop")}}return mt([Ct],{"axa-button":{"axa-button":"8.0.0","axa-icon":"8.0.0"}}),Ct}(); | ||
`}disconnectedCallback(){super.disconnectedCallback(),this.watch("stop")}}return mt([Ct],{"axa-button":{"axa-button":"8.0.1","axa-icon":"8.0.1"}}),Ct}(); |
@@ -1,4 +0,4 @@ | ||
import{html as t,LitElement as n,css as e,unsafeCSS as o}from"lit";import{classMap as r}from"lit/directives/class-map.js";import a from"@axa-ch/icon";const i=t=>!(null==t),s=new Map;[[String,""],[Boolean,!1],[Object,{}],[Array,[]],[Number,0],[Function,()=>{}]].forEach((([t,n])=>{s.set(t,n)}));const c=()=>{},l=t=>{const{constructor:{properties:n}}=t;Object.keys(n).forEach((e=>{const o=n[e],{type:r,converter:a,defaultValue:l}=o;if(!r){if(!a)throw new Error(`<${t.nodeName}> property "${e}" is missing a type!`);return}let u=t[e];i(u)||(u=r===Boolean?t.hasAttribute(e):t.getAttribute(e),i(u)?t[e]=((t,n)=>n===Number?parseFloat(t):n===Function?c:n===Array||n===Object?JSON.parse(t):t)(u,r):void 0===l&&"defaultValue"in o||(t[e]="defaultValue"in o?l:s.get(r)))}))};var u=(t,n)=>{const e=t.toLowerCase();return window.customElements.get(e)||window.customElements.define(e,n),e};const d=(t,n)=>{return`${t}-${e=n,`${e}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var e},b=(t,n="",e="<")=>`${e}${n}${t}`,h=(t,n,e)=>b(d(t,n),e,"{"),p=(t,n,e)=>t.map((t=>t.split(b(n)).join(h(n,e)).split(b(n,"/")).join(h(n,e,"/")))),f=(t,n,e)=>{const o="string"==typeof n&&n;let r="";return t.forEach((t=>{const a=t instanceof HTMLElement?t.constructor:t,{tagName:i}=a,s=!o&&n[i];if(s){if(!window.customElements.get(i)&&a.versions)throw Error(`'versions' is a reserved class property, but was found in ${i}'s class`);a.versions=s,u(i,a)}let{versions:c}=a;!c&&e&&(c=n[e.constructor.tagName],c[i]=Object.values(c)[0]);const l=o||c[i];r=d(i,l),u(r,class extends a{})})),r},g=n=>(e,...o)=>{const r=n.constructor,[a,i]=(t=>{const{versions:n,tagName:e}=t,o=Object.keys(n).filter((t=>t!==e)).sort(((t,n)=>n.length-t.length));return[o,o.map((t=>n[t]))]})(r);let s=e;for(let t=0,n=a.length;t<n;t++)s=p(s,a[t],i[t]);for(let t=0,n=s.length;t<n;t++)s[t]=s[t].split("{").join("<");return s.raw=s,t(s,...o)};const v={};class m extends n{inlineStyles(t="styles"){const n=this.getRootNode(),e=v[this.tagName]||new WeakMap,o=e.get(n)||{},r=(o.referenceCount||0)+1;if(o.referenceCount=r,e.set(n,r),v[this.tagName]=e,1===r){this.ownerDocument!==n&&(this._rootNode=n);const e=document.createElement("style");let r=this.constructor[t];const a=this.nodeName.toLowerCase(),i=this.constructor.tagName;a!==i&&(r=r.split(i).join(a)),e.textContent=r,e.dataset.name=this.tagName.toLowerCase();(n instanceof ShadowRoot?n:document.head).appendChild(e),o.style=e}e.set(n,o),v[this.tagName]=e}disconnectedCallback(){super.disconnectedCallback();const t=v[this.tagName];if(!t)return;const n=this._rootNode||this.ownerDocument,e=t.get(n)||{},o=(e.referenceCount||0)-1;if(o<1){t.delete(n);const{style:o}=e;o&&o.parentNode&&o.parentNode.removeChild(o)}else e.referenceCount=o,t.set(n,e)}}const y=!!(window||global).ShadowRoot&&ShadowRoot.toString().indexOf("native code")>-1;class w extends m{static get tagName(){return"axa-button"}static get styles(){return e` | ||
${o(':host {\n display: inline-block;\n vertical-align: bottom;\n}\n\n.a-button {\n font-size: 14px;\n letter-spacing: 0.02em;\n line-height: 17px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n position: relative;\n box-sizing: border-box;\n padding: 0 30px;\n margin: 0;\n min-height: 40px;\n width: 100%;\n vertical-align: bottom;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n overflow-wrap: break-word;\n word-wrap: break-word;\n text-transform: uppercase;\n color: #fff;\n background-color: #00008f;\n border: solid 2px #00008f;\n border-bottom-color: #00005b;\n}\n.a-button:hover, .a-button:active, .a-button:focus {\n cursor: pointer;\n text-decoration: none;\n background-color: #00005b;\n border-color: #00005b;\n outline: 0;\n}\n.a-button:disabled {\n color: #999;\n background-color: #e5e5e5;\n border-color: #e5e5e5;\n border-bottom-color: #ccc;\n pointer-events: none;\n}\n.a-button__flex-wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.a-button__icon {\n display: flex;\n margin-right: 10px;\n}\n.a-button__arrow {\n display: flex;\n margin-left: 10px;\n}\n\n.a-button--large {\n min-height: 50px;\n font-size: 16px;\n letter-spacing: 0.02em;\n line-height: 24px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n}\n\n.a-button--small {\n min-height: 30px;\n font-size: 14px;\n letter-spacing: 0.02em;\n line-height: 17px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n}\n\n.a-button--motion {\n z-index: 0;\n overflow: hidden;\n transition: color 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s;\n}\n.a-button--motion::after {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: -1;\n display: block;\n width: 0.001px;\n height: 100vw;\n content: "";\n transform: translateX(-50%) translateY(-50%) rotate(45deg);\n transition: width 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s;\n background-color: #00005b;\n}\n.a-button--motion:hover, .a-button--motion:focus {\n background-color: #00008f;\n color: #fff;\n}\n.a-button--motion:hover::after, .a-button--motion:focus::after {\n width: 110%;\n background-color: #00005b;\n}\n\n.a-button--red {\n background-color: #f07662;\n border-color: #f07662;\n border-bottom-color: #ec4d33;\n}\n.a-button--red:hover, .a-button--red:active, .a-button--red:focus {\n background-color: #ec4d33;\n border-color: #ec4d33;\n}\n.a-button--red.a-button--motion::after {\n background-color: #ec4d33;\n}\n.a-button--red.a-button--motion:hover, .a-button--red.a-button--motion:focus {\n background-color: #f07662;\n color: #fff;\n}\n.a-button--red.a-button--motion:hover::after, .a-button--red.a-button--motion:focus::after {\n background-color: #ec4d33;\n}\n\n.a-button--secondary {\n background-color: transparent;\n border-bottom-color: #00008f;\n color: #00008f;\n}\n.a-button--secondary:hover, .a-button--secondary:active, .a-button--secondary:focus {\n color: #fff;\n}\n.a-button--secondary.a-button--motion {\n background-color: transparent;\n}\n\n.a-button--inverted {\n background-color: transparent;\n border-color: #fff;\n color: #fff;\n}\n.a-button--inverted:hover, .a-button--inverted:active, .a-button--inverted:focus {\n background-color: #fff;\n border-color: #fff;\n color: #00005b;\n}\n.a-button--inverted.a-button--motion {\n background-color: transparent;\n}\n.a-button--inverted.a-button--motion::after {\n background-color: #fff;\n}\n\n.a-button--inverted-blue-ocean:hover, .a-button--inverted-blue-ocean:active, .a-button--inverted-blue-ocean:focus {\n color: #4976ba;\n}\n\n.a-button--inverted-red-tosca:hover, .a-button--inverted-red-tosca:active, .a-button--inverted-red-tosca:focus {\n color: #914146;\n}\n\n.a-button--inverted-purple-logan:hover, .a-button--inverted-purple-logan:active, .a-button--inverted-purple-logan:focus {\n color: #9190ac;\n}\n\n.a-button--inverted-green-viridian:hover, .a-button--inverted-green-viridian:active, .a-button--inverted-green-viridian:focus {\n color: #668980;\n}\n\n.a-button--inverted-blue-teal:hover, .a-button--inverted-blue-teal:active, .a-button--inverted-blue-teal:focus {\n color: #027180;\n}')} | ||
`}static get blockMouseEventsCss(){return"axa-button {\n position: relative;\n}\naxa-button[disabled] {\n pointer-events: none;\n}"}static get properties(){return{type:{type:String,reflect:!0,defaultValue:"button"},variant:{type:String},icon:{type:String},size:{type:String},motionOff:{type:Boolean},disabled:{type:Boolean,reflect:!0},onClick:{type:Function,attribute:!1}}}constructor(){super(),l(this),f([a],{"axa-button":{"axa-button":"8.0.0","axa-icon":"8.0.0"}},this),this.handleClick=this.handleClick.bind(this)}get isTypeSubmitOrReset(){return"submit"===this.type||"reset"===this.type}get showIcon(){return this.icon&&"arrow-right"!==this.icon}get showArrow(){return"arrow-right"===this.icon}watch(t){switch(t){case"stop":this._observer&&this._observer.disconnect();break;case"start":this._observer||(this._observer=new MutationObserver((()=>this.attachFakeButton()))),this._observer.observe(this,{childList:!0})}}attachFakeButton(){const t=document.createElement("button");t.type=this.type,t.style.display="none",this.watch("stop"),this.appendChild(t),this.watch("start"),this.fakeButton=t}firstUpdated(){this.inlineStyles("blockMouseEventsCss");const{style:t}=this;y&&this.isTypeSubmitOrReset&&this.attachFakeButton(),t.appearance="none",t.mozAppearance="none",t.webkitAppearance="none",t.msAppearance="none",t.oAppearance="none","function"==typeof this.onclick&&(this.originalOnclick=this.onclick),this.onclick=t=>{this.handleClick(t,!0)}}handleClick(t,n=!1){const e=document.documentMode&&(t=>t.screenX||t.screenY||t.clientX||t.clientY)(t)&&y&&this.isTypeSubmitOrReset,o=t.isTrusted&&y&&this.isTypeSubmitOrReset;(e||o)&&(t.stopPropagation(),this.fakeButton.click());const r=this.onClick||this.originalOnclick;n||"function"!=typeof r||r(t)}render(){const{type:n,motionOff:e,disabled:o,variant:a="",icon:i="",size:s=""}=this,c={"a-button":!0,"a-button--large":"large"===s,"a-button--small":"small"===s,"a-button--motion":!e,"a-button--secondary":"secondary"===a,"a-button--red":"red"===a,"a-button--inverted":a.includes("inverted"),"a-button--inverted-blue-ocean":"inverted-blue-ocean"===a,"a-button--inverted-red-tosca":"inverted-red-tosca"===a,"a-button--inverted-purple-logan":"inverted-purple-logan"===a,"a-button--inverted-green-viridian":"inverted-green-viridian"===a,"a-button--inverted-blue-teal":"inverted-blue-teal"===a};return t` | ||
import{html as t,LitElement as n,css as e,unsafeCSS as o}from"lit";import{classMap as r}from"lit/directives/class-map.js";import a from"@axa-ch/icon";const i=t=>!(null==t),s=new Map;[[String,""],[Boolean,!1],[Object,{}],[Array,[]],[Number,0],[Function,()=>{}]].forEach((([t,n])=>{s.set(t,n)}));const c=()=>{},l=t=>{const{constructor:{properties:n}}=t;Object.keys(n).forEach((e=>{const o=n[e],{type:r,converter:a,defaultValue:l}=o;if(!r){if(!a)throw new Error(`<${t.nodeName}> property "${e}" is missing a type!`);return}let u=t[e];i(u)||(u=r===Boolean?t.hasAttribute(e):t.getAttribute(e),i(u)?t[e]=((t,n)=>n===Number?parseFloat(t):n===Function?c:n===Array||n===Object?JSON.parse(t):t)(u,r):void 0===l&&"defaultValue"in o||(t[e]="defaultValue"in o?l:s.get(r)))}))};var u=(t,n)=>{const e=t.toLowerCase();return window.customElements.get(e)||window.customElements.define(e,n),e};const d=(t,n)=>{return`${t}-${e=n,`${e}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var e},b=(t,n="",e="<")=>`${e}${n}${t}`,h=(t,n,e)=>b(d(t,n),e,"{"),p=(t,n,e)=>t.map((t=>t.split(b(n)).join(h(n,e)).split(b(n,"/")).join(h(n,e,"/")))),f=(t,n,e)=>{const o="string"==typeof n&&n;let r="";return t.forEach((t=>{const a=t instanceof HTMLElement?t.constructor:t,{tagName:i}=a,s=!o&&n[i];if(s){if(!window.customElements.get(i)&&a.versions)throw Error(`'versions' is a reserved class property, but was found in ${i}'s class`);a.versions=s,u(i,a)}let{versions:c}=a;!c&&e&&(c=n[e.constructor.tagName],c[i]=Object.values(c)[0]);const l=o||c[i];r=d(i,l),u(r,class extends a{})})),r},g=n=>(e,...o)=>{const r=n.constructor,[a,i]=(t=>{const{versions:n,tagName:e}=t,o=Object.keys(n).filter((t=>t!==e)).sort(((t,n)=>n.length-t.length));return[o,o.map((t=>n[t]))]})(r);let s=e;for(let t=0,n=a.length;t<n;t++)s=p(s,a[t],i[t]);for(let t=0,n=s.length;t<n;t++)s[t]=s[t].split("{").join("<");return s.raw=s,t(s,...o)};const v={};class m extends n{inlineStyles(t="styles"){const n=this.getRootNode(),e=v[this.tagName]||new WeakMap,o=e.get(n)||{},r=(o.referenceCount||0)+1;if(o.referenceCount=r,e.set(n,r),v[this.tagName]=e,1===r){this.ownerDocument!==n&&(this._rootNode=n);const e=document.createElement("style");let r=this.constructor[t];const a=this.nodeName.toLowerCase(),i=this.constructor.tagName;a!==i&&(r=r.split(i).join(a)),e.textContent=r,e.dataset.name=this.tagName.toLowerCase();(n instanceof ShadowRoot?n:document.head).appendChild(e),o.style=e}e.set(n,o),v[this.tagName]=e}disconnectedCallback(){super.disconnectedCallback();const t=v[this.tagName];if(!t)return;const n=this._rootNode||this.ownerDocument,e=t.get(n)||{},o=(e.referenceCount||0)-1;if(o<1){t.delete(n);const{style:o}=e;o&&o.parentNode&&o.parentNode.removeChild(o)}else e.referenceCount=o,t.set(n,e)}}const w=!!(window||global).ShadowRoot&&ShadowRoot.toString().indexOf("native code")>-1;class y extends m{static get tagName(){return"axa-button"}static get styles(){return e` | ||
${o(':host {\n display: inline-block;\n vertical-align: bottom;\n}\n\n.a-button {\n font-size: 14px;\n letter-spacing: 0.02em;\n line-height: 17px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n position: relative;\n box-sizing: border-box;\n padding: 0 30px;\n margin: 0;\n min-height: 40px;\n width: 100%;\n vertical-align: bottom;\n hyphens: auto;\n overflow-wrap: break-word;\n word-wrap: break-word;\n text-transform: uppercase;\n color: #fff;\n background-color: #00008f;\n border: solid 2px #00008f;\n border-bottom-color: #00005b;\n}\n.a-button:hover, .a-button:active, .a-button:focus {\n cursor: pointer;\n text-decoration: none;\n background-color: #00005b;\n border-color: #00005b;\n outline: 0;\n}\n.a-button:disabled {\n color: #999;\n background-color: #e5e5e5;\n border-color: #e5e5e5;\n border-bottom-color: #ccc;\n pointer-events: none;\n}\n.a-button__flex-wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.a-button__icon {\n display: flex;\n margin-right: 10px;\n}\n.a-button__arrow {\n display: flex;\n margin-left: 10px;\n}\n\n.a-button--large {\n min-height: 50px;\n font-size: 16px;\n letter-spacing: 0.02em;\n line-height: 24px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n}\n\n.a-button--small {\n min-height: 30px;\n font-size: 14px;\n letter-spacing: 0.02em;\n line-height: 17px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n}\n\n.a-button--motion {\n z-index: 0;\n overflow: hidden;\n transition: color 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s;\n}\n.a-button--motion::after {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: -1;\n display: block;\n width: 0.001px;\n height: 100vw;\n content: "";\n transform: translateX(-50%) translateY(-50%) rotate(45deg);\n transition: width 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s;\n background-color: #00005b;\n}\n.a-button--motion:hover, .a-button--motion:focus {\n background-color: #00008f;\n color: #fff;\n}\n.a-button--motion:hover::after, .a-button--motion:focus::after {\n width: 110%;\n background-color: #00005b;\n}\n\n.a-button--red {\n background-color: #f07662;\n border-color: #f07662;\n border-bottom-color: #ec4d33;\n}\n.a-button--red:hover, .a-button--red:active, .a-button--red:focus {\n background-color: #ec4d33;\n border-color: #ec4d33;\n}\n.a-button--red.a-button--motion::after {\n background-color: #ec4d33;\n}\n.a-button--red.a-button--motion:hover, .a-button--red.a-button--motion:focus {\n background-color: #f07662;\n color: #fff;\n}\n.a-button--red.a-button--motion:hover::after, .a-button--red.a-button--motion:focus::after {\n background-color: #ec4d33;\n}\n\n.a-button--secondary {\n background-color: transparent;\n border-bottom-color: #00008f;\n color: #00008f;\n}\n.a-button--secondary:hover, .a-button--secondary:active, .a-button--secondary:focus {\n color: #fff;\n}\n.a-button--secondary.a-button--motion {\n background-color: transparent;\n}\n\n.a-button--inverted {\n background-color: transparent;\n border-color: #fff;\n color: #fff;\n}\n.a-button--inverted:hover, .a-button--inverted:active, .a-button--inverted:focus {\n background-color: #fff;\n border-color: #fff;\n color: #00005b;\n}\n.a-button--inverted.a-button--motion {\n background-color: transparent;\n}\n.a-button--inverted.a-button--motion::after {\n background-color: #fff;\n}\n\n.a-button--inverted-blue-ocean:hover, .a-button--inverted-blue-ocean:active, .a-button--inverted-blue-ocean:focus {\n color: #4976ba;\n}\n\n.a-button--inverted-red-tosca:hover, .a-button--inverted-red-tosca:active, .a-button--inverted-red-tosca:focus {\n color: #914146;\n}\n\n.a-button--inverted-purple-logan:hover, .a-button--inverted-purple-logan:active, .a-button--inverted-purple-logan:focus {\n color: #9190ac;\n}\n\n.a-button--inverted-green-viridian:hover, .a-button--inverted-green-viridian:active, .a-button--inverted-green-viridian:focus {\n color: #668980;\n}\n\n.a-button--inverted-blue-teal:hover, .a-button--inverted-blue-teal:active, .a-button--inverted-blue-teal:focus {\n color: #027180;\n}')} | ||
`}static get blockMouseEventsCss(){return"axa-button {\n position: relative;\n}\naxa-button[disabled] {\n pointer-events: none;\n}"}static get properties(){return{type:{type:String,reflect:!0,defaultValue:"button"},variant:{type:String},icon:{type:String},size:{type:String},motionOff:{type:Boolean},disabled:{type:Boolean,reflect:!0},onClick:{type:Function,attribute:!1}}}constructor(){super(),l(this),f([a],{"axa-button":{"axa-button":"8.0.1","axa-icon":"8.0.1"}},this),this.handleClick=this.handleClick.bind(this)}get isTypeSubmitOrReset(){return"submit"===this.type||"reset"===this.type}get showIcon(){return this.icon&&"arrow-right"!==this.icon}get showArrow(){return"arrow-right"===this.icon}watch(t){switch(t){case"stop":this._observer&&this._observer.disconnect();break;case"start":this._observer||(this._observer=new MutationObserver((()=>this.attachFakeButton()))),this._observer.observe(this,{childList:!0})}}attachFakeButton(){const t=document.createElement("button");t.type=this.type,t.style.display="none",this.watch("stop"),this.appendChild(t),this.watch("start"),this.fakeButton=t}firstUpdated(){this.inlineStyles("blockMouseEventsCss");const{style:t}=this;w&&this.isTypeSubmitOrReset&&this.attachFakeButton(),t.appearance="none",t.mozAppearance="none",t.webkitAppearance="none",t.msAppearance="none",t.oAppearance="none","function"==typeof this.onclick&&(this.originalOnclick=this.onclick),this.onclick=t=>{this.handleClick(t,!0)}}handleClick(t,n=!1){const e=document.documentMode&&(t=>t.screenX||t.screenY||t.clientX||t.clientY)(t)&&w&&this.isTypeSubmitOrReset,o=t.isTrusted&&w&&this.isTypeSubmitOrReset;(e||o)&&(t.stopPropagation(),this.fakeButton.click());const r=this.onClick||this.originalOnclick;n||"function"!=typeof r||r(t)}render(){const{type:n,motionOff:e,disabled:o,variant:a="",icon:i="",size:s=""}=this,c={"a-button":!0,"a-button--large":"large"===s,"a-button--small":"small"===s,"a-button--motion":!e,"a-button--secondary":"secondary"===a,"a-button--red":"red"===a,"a-button--inverted":a.includes("inverted"),"a-button--inverted-blue-ocean":"inverted-blue-ocean"===a,"a-button--inverted-red-tosca":"inverted-red-tosca"===a,"a-button--inverted-purple-logan":"inverted-purple-logan"===a,"a-button--inverted-green-viridian":"inverted-green-viridian"===a,"a-button--inverted-blue-teal":"inverted-blue-teal"===a};return t` | ||
<button | ||
@@ -20,2 +20,2 @@ type="${n}" | ||
</button> | ||
`}disconnectedCallback(){super.disconnectedCallback(),this.watch("stop")}}f([w],{"axa-button":{"axa-button":"8.0.0","axa-icon":"8.0.0"}});export{w as default}; | ||
`}disconnectedCallback(){super.disconnectedCallback(),this.watch("stop")}}f([y],{"axa-button":{"axa-button":"8.0.1","axa-icon":"8.0.1"}});export{y as default}; |
import t from"@skatejs/val";import{html as n,LitElement as e,css as o,unsafeCSS as r}from"lit";import{classMap as a}from"lit/directives/class-map.js";import i from"@axa-ch/icon";var s=(t,n)=>{const e=t.toLowerCase();return window.customElements.get(e)||window.customElements.define(e,n),e};const c=(t,n)=>{return`${t}-${e=n,`${e}`.replace(/\./g,"-").replace(/[^A-Za-z0-9-]/g,"")}`;var e},l=(t,n="",e="<")=>`${e}${n}${t}`,u=(t,n,e)=>l(c(t,n),e,"{"),d=(t,n,e)=>t.map((t=>t.split(l(n)).join(u(n,e)).split(l(n,"/")).join(u(n,e,"/")))),b=(t,n,e)=>{const o="string"==typeof n&&n;let r="";return t.forEach((t=>{const a=t instanceof HTMLElement?t.constructor:t,{tagName:i}=a,l=!o&&n[i];if(l){if(!window.customElements.get(i)&&a.versions)throw Error(`'versions' is a reserved class property, but was found in ${i}'s class`);a.versions=l,s(i,a)}let{versions:u}=a;!u&&e&&(u=n[e.constructor.tagName],u[i]=Object.values(u)[0]);const d=o||u[i];r=c(i,d),s(r,class extends a{})})),r},p=t=>(e,...o)=>{const r=t.constructor,[a,i]=(t=>{const{versions:n,tagName:e}=t,o=Object.keys(n).filter((t=>t!==e)).sort(((t,n)=>n.length-t.length));return[o,o.map((t=>n[t]))]})(r);let s=e;for(let t=0,n=a.length;t<n;t++)s=d(s,a[t],i[t]);for(let t=0,n=s.length;t<n;t++)s[t]=s[t].split("{").join("<");return s.raw=s,n(s,...o)},h=(t,n)=>{const e={},o={};let r;return Object.keys(t).forEach((a=>{const i=t[a];let s;const c=n.properties[a]||{},{type:l}=c;switch(s=0===a.indexOf("on")&&a.charAt(2)===a.charAt(2).toUpperCase()?Function:"className"===a?"className":l,s){case"className":case Array:case Object:case Function:case Boolean:r=o;break;default:r=l?o:e}void 0!==i&&(r[a]="style"===a?(t=>Object.keys(t).reduce(((n,e)=>{let o=n;return`${o+=e.split(/(?=[A-Z])/).join("-").toLowerCase()}:${t[e]};`}),""))(i):i)})),{attrs:e,props:o}};const f=t=>!(null==t),m=new Map;[[String,""],[Boolean,!1],[Object,{}],[Array,[]],[Number,0],[Function,()=>{}]].forEach((([t,n])=>{m.set(t,n)}));const v=()=>{},g=t=>{const{constructor:{properties:n}}=t;Object.keys(n).forEach((e=>{const o=n[e],{type:r,converter:a,defaultValue:i}=o;if(!r){if(!a)throw new Error(`<${t.nodeName}> property "${e}" is missing a type!`);return}let s=t[e];f(s)||(s=r===Boolean?t.hasAttribute(e):t.getAttribute(e),f(s)?t[e]=((t,n)=>n===Number?parseFloat(t):n===Function?v:n===Array||n===Object?JSON.parse(t):t)(s,r):void 0===i&&"defaultValue"in o||(t[e]="defaultValue"in o?i:m.get(r)))}))};const y={};class w extends e{inlineStyles(t="styles"){const n=this.getRootNode(),e=y[this.tagName]||new WeakMap,o=e.get(n)||{},r=(o.referenceCount||0)+1;if(o.referenceCount=r,e.set(n,r),y[this.tagName]=e,1===r){this.ownerDocument!==n&&(this._rootNode=n);const e=document.createElement("style");let r=this.constructor[t];const a=this.nodeName.toLowerCase(),i=this.constructor.tagName;a!==i&&(r=r.split(i).join(a)),e.textContent=r,e.dataset.name=this.tagName.toLowerCase();(n instanceof ShadowRoot?n:document.head).appendChild(e),o.style=e}e.set(n,o),y[this.tagName]=e}disconnectedCallback(){super.disconnectedCallback();const t=y[this.tagName];if(!t)return;const n=this._rootNode||this.ownerDocument,e=t.get(n)||{},o=(e.referenceCount||0)-1;if(o<1){t.delete(n);const{style:o}=e;o&&o.parentNode&&o.parentNode.removeChild(o)}else e.referenceCount=o,t.set(n,e)}}const k=!!(window||global).ShadowRoot&&ShadowRoot.toString().indexOf("native code")>-1;class x extends w{static get tagName(){return"axa-button"}static get styles(){return o` | ||
${r(':host {\n display: inline-block;\n vertical-align: bottom;\n}\n\n.a-button {\n font-size: 14px;\n letter-spacing: 0.02em;\n line-height: 17px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n position: relative;\n box-sizing: border-box;\n padding: 0 30px;\n margin: 0;\n min-height: 40px;\n width: 100%;\n vertical-align: bottom;\n -webkit-hyphens: auto;\n -ms-hyphens: auto;\n hyphens: auto;\n overflow-wrap: break-word;\n word-wrap: break-word;\n text-transform: uppercase;\n color: #fff;\n background-color: #00008f;\n border: solid 2px #00008f;\n border-bottom-color: #00005b;\n}\n.a-button:hover, .a-button:active, .a-button:focus {\n cursor: pointer;\n text-decoration: none;\n background-color: #00005b;\n border-color: #00005b;\n outline: 0;\n}\n.a-button:disabled {\n color: #999;\n background-color: #e5e5e5;\n border-color: #e5e5e5;\n border-bottom-color: #ccc;\n pointer-events: none;\n}\n.a-button__flex-wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.a-button__icon {\n display: flex;\n margin-right: 10px;\n}\n.a-button__arrow {\n display: flex;\n margin-left: 10px;\n}\n\n.a-button--large {\n min-height: 50px;\n font-size: 16px;\n letter-spacing: 0.02em;\n line-height: 24px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n}\n\n.a-button--small {\n min-height: 30px;\n font-size: 14px;\n letter-spacing: 0.02em;\n line-height: 17px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n}\n\n.a-button--motion {\n z-index: 0;\n overflow: hidden;\n transition: color 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s;\n}\n.a-button--motion::after {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: -1;\n display: block;\n width: 0.001px;\n height: 100vw;\n content: "";\n transform: translateX(-50%) translateY(-50%) rotate(45deg);\n transition: width 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s;\n background-color: #00005b;\n}\n.a-button--motion:hover, .a-button--motion:focus {\n background-color: #00008f;\n color: #fff;\n}\n.a-button--motion:hover::after, .a-button--motion:focus::after {\n width: 110%;\n background-color: #00005b;\n}\n\n.a-button--red {\n background-color: #f07662;\n border-color: #f07662;\n border-bottom-color: #ec4d33;\n}\n.a-button--red:hover, .a-button--red:active, .a-button--red:focus {\n background-color: #ec4d33;\n border-color: #ec4d33;\n}\n.a-button--red.a-button--motion::after {\n background-color: #ec4d33;\n}\n.a-button--red.a-button--motion:hover, .a-button--red.a-button--motion:focus {\n background-color: #f07662;\n color: #fff;\n}\n.a-button--red.a-button--motion:hover::after, .a-button--red.a-button--motion:focus::after {\n background-color: #ec4d33;\n}\n\n.a-button--secondary {\n background-color: transparent;\n border-bottom-color: #00008f;\n color: #00008f;\n}\n.a-button--secondary:hover, .a-button--secondary:active, .a-button--secondary:focus {\n color: #fff;\n}\n.a-button--secondary.a-button--motion {\n background-color: transparent;\n}\n\n.a-button--inverted {\n background-color: transparent;\n border-color: #fff;\n color: #fff;\n}\n.a-button--inverted:hover, .a-button--inverted:active, .a-button--inverted:focus {\n background-color: #fff;\n border-color: #fff;\n color: #00005b;\n}\n.a-button--inverted.a-button--motion {\n background-color: transparent;\n}\n.a-button--inverted.a-button--motion::after {\n background-color: #fff;\n}\n\n.a-button--inverted-blue-ocean:hover, .a-button--inverted-blue-ocean:active, .a-button--inverted-blue-ocean:focus {\n color: #4976ba;\n}\n\n.a-button--inverted-red-tosca:hover, .a-button--inverted-red-tosca:active, .a-button--inverted-red-tosca:focus {\n color: #914146;\n}\n\n.a-button--inverted-purple-logan:hover, .a-button--inverted-purple-logan:active, .a-button--inverted-purple-logan:focus {\n color: #9190ac;\n}\n\n.a-button--inverted-green-viridian:hover, .a-button--inverted-green-viridian:active, .a-button--inverted-green-viridian:focus {\n color: #668980;\n}\n\n.a-button--inverted-blue-teal:hover, .a-button--inverted-blue-teal:active, .a-button--inverted-blue-teal:focus {\n color: #027180;\n}')} | ||
`}static get blockMouseEventsCss(){return"axa-button {\n position: relative;\n}\naxa-button[disabled] {\n pointer-events: none;\n}"}static get properties(){return{type:{type:String,reflect:!0,defaultValue:"button"},variant:{type:String},icon:{type:String},size:{type:String},motionOff:{type:Boolean},disabled:{type:Boolean,reflect:!0},onClick:{type:Function,attribute:!1}}}constructor(){super(),g(this),b([i],{"axa-button":{"axa-button":"8.0.0","axa-icon":"8.0.0"}},this),this.handleClick=this.handleClick.bind(this)}get isTypeSubmitOrReset(){return"submit"===this.type||"reset"===this.type}get showIcon(){return this.icon&&"arrow-right"!==this.icon}get showArrow(){return"arrow-right"===this.icon}watch(t){switch(t){case"stop":this._observer&&this._observer.disconnect();break;case"start":this._observer||(this._observer=new MutationObserver((()=>this.attachFakeButton()))),this._observer.observe(this,{childList:!0})}}attachFakeButton(){const t=document.createElement("button");t.type=this.type,t.style.display="none",this.watch("stop"),this.appendChild(t),this.watch("start"),this.fakeButton=t}firstUpdated(){this.inlineStyles("blockMouseEventsCss");const{style:t}=this;k&&this.isTypeSubmitOrReset&&this.attachFakeButton(),t.appearance="none",t.mozAppearance="none",t.webkitAppearance="none",t.msAppearance="none",t.oAppearance="none","function"==typeof this.onclick&&(this.originalOnclick=this.onclick),this.onclick=t=>{this.handleClick(t,!0)}}handleClick(t,n=!1){const e=document.documentMode&&(t=>t.screenX||t.screenY||t.clientX||t.clientY)(t)&&k&&this.isTypeSubmitOrReset,o=t.isTrusted&&k&&this.isTypeSubmitOrReset;(e||o)&&(t.stopPropagation(),this.fakeButton.click());const r=this.onClick||this.originalOnclick;n||"function"!=typeof r||r(t)}render(){const{type:t,motionOff:e,disabled:o,variant:r="",icon:i="",size:s=""}=this,c={"a-button":!0,"a-button--large":"large"===s,"a-button--small":"small"===s,"a-button--motion":!e,"a-button--secondary":"secondary"===r,"a-button--red":"red"===r,"a-button--inverted":r.includes("inverted"),"a-button--inverted-blue-ocean":"inverted-blue-ocean"===r,"a-button--inverted-red-tosca":"inverted-red-tosca"===r,"a-button--inverted-purple-logan":"inverted-purple-logan"===r,"a-button--inverted-green-viridian":"inverted-green-viridian"===r,"a-button--inverted-blue-teal":"inverted-blue-teal"===r};return n` | ||
${r(':host {\n display: inline-block;\n vertical-align: bottom;\n}\n\n.a-button {\n font-size: 14px;\n letter-spacing: 0.02em;\n line-height: 17px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n position: relative;\n box-sizing: border-box;\n padding: 0 30px;\n margin: 0;\n min-height: 40px;\n width: 100%;\n vertical-align: bottom;\n hyphens: auto;\n overflow-wrap: break-word;\n word-wrap: break-word;\n text-transform: uppercase;\n color: #fff;\n background-color: #00008f;\n border: solid 2px #00008f;\n border-bottom-color: #00005b;\n}\n.a-button:hover, .a-button:active, .a-button:focus {\n cursor: pointer;\n text-decoration: none;\n background-color: #00005b;\n border-color: #00005b;\n outline: 0;\n}\n.a-button:disabled {\n color: #999;\n background-color: #e5e5e5;\n border-color: #e5e5e5;\n border-bottom-color: #ccc;\n pointer-events: none;\n}\n.a-button__flex-wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.a-button__icon {\n display: flex;\n margin-right: 10px;\n}\n.a-button__arrow {\n display: flex;\n margin-left: 10px;\n}\n\n.a-button--large {\n min-height: 50px;\n font-size: 16px;\n letter-spacing: 0.02em;\n line-height: 24px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n}\n\n.a-button--small {\n min-height: 30px;\n font-size: 14px;\n letter-spacing: 0.02em;\n line-height: 17px;\n font-family: "Source Sans Pro", Arial, sans-serif;\n}\n\n.a-button--motion {\n z-index: 0;\n overflow: hidden;\n transition: color 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s;\n}\n.a-button--motion::after {\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: -1;\n display: block;\n width: 0.001px;\n height: 100vw;\n content: "";\n transform: translateX(-50%) translateY(-50%) rotate(45deg);\n transition: width 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s;\n background-color: #00005b;\n}\n.a-button--motion:hover, .a-button--motion:focus {\n background-color: #00008f;\n color: #fff;\n}\n.a-button--motion:hover::after, .a-button--motion:focus::after {\n width: 110%;\n background-color: #00005b;\n}\n\n.a-button--red {\n background-color: #f07662;\n border-color: #f07662;\n border-bottom-color: #ec4d33;\n}\n.a-button--red:hover, .a-button--red:active, .a-button--red:focus {\n background-color: #ec4d33;\n border-color: #ec4d33;\n}\n.a-button--red.a-button--motion::after {\n background-color: #ec4d33;\n}\n.a-button--red.a-button--motion:hover, .a-button--red.a-button--motion:focus {\n background-color: #f07662;\n color: #fff;\n}\n.a-button--red.a-button--motion:hover::after, .a-button--red.a-button--motion:focus::after {\n background-color: #ec4d33;\n}\n\n.a-button--secondary {\n background-color: transparent;\n border-bottom-color: #00008f;\n color: #00008f;\n}\n.a-button--secondary:hover, .a-button--secondary:active, .a-button--secondary:focus {\n color: #fff;\n}\n.a-button--secondary.a-button--motion {\n background-color: transparent;\n}\n\n.a-button--inverted {\n background-color: transparent;\n border-color: #fff;\n color: #fff;\n}\n.a-button--inverted:hover, .a-button--inverted:active, .a-button--inverted:focus {\n background-color: #fff;\n border-color: #fff;\n color: #00005b;\n}\n.a-button--inverted.a-button--motion {\n background-color: transparent;\n}\n.a-button--inverted.a-button--motion::after {\n background-color: #fff;\n}\n\n.a-button--inverted-blue-ocean:hover, .a-button--inverted-blue-ocean:active, .a-button--inverted-blue-ocean:focus {\n color: #4976ba;\n}\n\n.a-button--inverted-red-tosca:hover, .a-button--inverted-red-tosca:active, .a-button--inverted-red-tosca:focus {\n color: #914146;\n}\n\n.a-button--inverted-purple-logan:hover, .a-button--inverted-purple-logan:active, .a-button--inverted-purple-logan:focus {\n color: #9190ac;\n}\n\n.a-button--inverted-green-viridian:hover, .a-button--inverted-green-viridian:active, .a-button--inverted-green-viridian:focus {\n color: #668980;\n}\n\n.a-button--inverted-blue-teal:hover, .a-button--inverted-blue-teal:active, .a-button--inverted-blue-teal:focus {\n color: #027180;\n}')} | ||
`}static get blockMouseEventsCss(){return"axa-button {\n position: relative;\n}\naxa-button[disabled] {\n pointer-events: none;\n}"}static get properties(){return{type:{type:String,reflect:!0,defaultValue:"button"},variant:{type:String},icon:{type:String},size:{type:String},motionOff:{type:Boolean},disabled:{type:Boolean,reflect:!0},onClick:{type:Function,attribute:!1}}}constructor(){super(),g(this),b([i],{"axa-button":{"axa-button":"8.0.1","axa-icon":"8.0.1"}},this),this.handleClick=this.handleClick.bind(this)}get isTypeSubmitOrReset(){return"submit"===this.type||"reset"===this.type}get showIcon(){return this.icon&&"arrow-right"!==this.icon}get showArrow(){return"arrow-right"===this.icon}watch(t){switch(t){case"stop":this._observer&&this._observer.disconnect();break;case"start":this._observer||(this._observer=new MutationObserver((()=>this.attachFakeButton()))),this._observer.observe(this,{childList:!0})}}attachFakeButton(){const t=document.createElement("button");t.type=this.type,t.style.display="none",this.watch("stop"),this.appendChild(t),this.watch("start"),this.fakeButton=t}firstUpdated(){this.inlineStyles("blockMouseEventsCss");const{style:t}=this;k&&this.isTypeSubmitOrReset&&this.attachFakeButton(),t.appearance="none",t.mozAppearance="none",t.webkitAppearance="none",t.msAppearance="none",t.oAppearance="none","function"==typeof this.onclick&&(this.originalOnclick=this.onclick),this.onclick=t=>{this.handleClick(t,!0)}}handleClick(t,n=!1){const e=document.documentMode&&(t=>t.screenX||t.screenY||t.clientX||t.clientY)(t)&&k&&this.isTypeSubmitOrReset,o=t.isTrusted&&k&&this.isTypeSubmitOrReset;(e||o)&&(t.stopPropagation(),this.fakeButton.click());const r=this.onClick||this.originalOnclick;n||"function"!=typeof r||r(t)}render(){const{type:t,motionOff:e,disabled:o,variant:r="",icon:i="",size:s=""}=this,c={"a-button":!0,"a-button--large":"large"===s,"a-button--small":"small"===s,"a-button--motion":!e,"a-button--secondary":"secondary"===r,"a-button--red":"red"===r,"a-button--inverted":r.includes("inverted"),"a-button--inverted-blue-ocean":"inverted-blue-ocean"===r,"a-button--inverted-red-tosca":"inverted-red-tosca"===r,"a-button--inverted-purple-logan":"inverted-purple-logan"===r,"a-button--inverted-green-viridian":"inverted-green-viridian"===r,"a-button--inverted-blue-teal":"inverted-blue-teal"===r};return n` | ||
<button | ||
@@ -20,2 +20,2 @@ type="${t}" | ||
</button> | ||
`}disconnectedCallback(){super.disconnectedCallback(),this.watch("stop")}}b([x],{"axa-button":{"axa-button":"8.0.0","axa-icon":"8.0.0"}});var C=(n,e)=>((n,e,o)=>{const{tagName:r}=e,a=o?b([e],o):r,i=a.split("-").map((t=>t.charAt(0).toUpperCase()+t.slice(1))).join(""),s=({children:o,...r})=>{const{attrs:i,props:s}=h(r,e);return t(n)(a,{isReact:!0,attrs:i,...s},o)};return s.displayName=i,s})(n,x,e);export{C as default}; | ||
`}disconnectedCallback(){super.disconnectedCallback(),this.watch("stop")}}b([x],{"axa-button":{"axa-button":"8.0.1","axa-icon":"8.0.1"}});var C=(n,e)=>((n,e,o)=>{const{tagName:r}=e,a=o?b([e],o):r,i=a.split("-").map((t=>t.charAt(0).toUpperCase()+t.slice(1))).join(""),s=({children:o,...r})=>{const{attrs:i,props:s}=h(r,e);return t(n)(a,{isReact:!0,attrs:i,...s},o)};return s.displayName=i,s})(n,x,e);export{C as default}; |
{ | ||
"name": "@axa-ch/button", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"description": "The button component for the AXA Pattern Library", | ||
@@ -33,8 +33,8 @@ "author": "Pattern Warriors", | ||
"dependencies": { | ||
"@axa-ch/icon": "8.0.0", | ||
"@axa-ch/icon": "8.0.1", | ||
"@skatejs/val": "^0.4.0", | ||
"lit": "^2.2.1" | ||
}, | ||
"gitHead": "74ca73796f6288bb033e34457de016d201f1346a", | ||
"gitHead": "b9983a4a8ae6be391df8febb54c54d91711fd742", | ||
"main": "lib/index.js" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
65763
+ Added@axa-ch/icon@8.0.1(transitive)
+ Added@axa-ch/materials@16.0.1(transitive)
- Removed@axa-ch/icon@8.0.0(transitive)
- Removed@axa-ch/materials@16.0.0(transitive)
Updated@axa-ch/icon@8.0.1