@aurodesignsystem-dev/auro-slideshow 0.0.0-pr80.0 → 0.0.0-pr80.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -35
- package/custom-elements.json +69 -52
- package/demo/api.md +104 -91
- package/demo/api.min.js +119 -69
- package/demo/index.md +15 -15
- package/demo/index.min.js +119 -69
- package/demo/readme.md +22 -22
- package/dist/auro-slideshow-1sJeRJNM.js +156 -0
- package/dist/index.d.ts +128 -94
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +11 -11
- package/dist/auro-slideshow-Di9AtYIy.js +0 -133
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import{css as e,LitElement as t,html as s,nothing as a}from"lit";import{unsafeStatic as o,literal as i,html as r}from"lit/static-html.js";import{classMap as n}from"lit/directives/class-map.js";import{ifDefined as l}from"lit/directives/if-defined.js";function c(e){return"number"==typeof e}function d(e){return"string"==typeof e}function h(e){return"boolean"==typeof e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function p(e){return Math.abs(e)}function m(e){return Math.sign(e)}function b(e,t){return p(e-t)}function g(e){return w(e).map(Number)}function f(e){return e[v(e)]}function v(e){return Math.max(0,e.length-1)}function x(e,t){return t===v(e)}function y(e,t=0){return Array.from(Array(e),(e,s)=>t+s)}function w(e){return Object.keys(e)}function z(e,t){return[e,t].reduce((e,t)=>(w(t).forEach(s=>{const a=e[s],o=t[s],i=u(a)&&u(o);e[s]=i?z(a,o):o}),e),{})}function S(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function k(){let e=[];const t={add:function(s,a,o,i={passive:!0}){let r;if("addEventListener"in s)s.addEventListener(a,o,i),r=()=>s.removeEventListener(a,o,i);else{const e=s;e.addListener(o),r=()=>e.removeListener(o)}return e.push(r),t},clear:function(){e=e.filter(e=>e())}};return t}function A(e,t,s,a){const o=k(),i=1e3/60;let r=null,n=0,l=0;function c(e){if(!l)return;r||(r=e,s(),s());const o=e-r;for(r=e,n+=o;n>=i;)s(),n-=i;a(n/i),l&&(l=t.requestAnimationFrame(c))}function d(){t.cancelAnimationFrame(l),r=null,n=0,l=0}return{init:function(){o.add(e,"visibilitychange",()=>{e.hidden&&(r=null,n=0)})},destroy:function(){d(),o.clear()},start:function(){l||(l=t.requestAnimationFrame(c))},stop:d,update:s,render:a}}function _(e=0,t=0){const s=p(e-t);function a(t){return t<e}function o(e){return e>t}function i(e){return a(e)||o(e)}return{length:s,max:t,min:e,constrain:function(s){return i(s)?a(s)?e:t:s},reachedAny:i,reachedMax:o,reachedMin:a,removeOffset:function(e){return s?e-s*Math.ceil((e-t)/s):e}}}function B(e,t,s){const{constrain:a}=_(0,e),o=e+1;let i=r(t);function r(e){return s?p((o+e)%o):a(e)}function n(){return i}function l(){return B(e,n(),s)}const c={get:n,set:function(e){return i=r(e),c},add:function(e){return l().set(n()+e)},clone:l};return c}function C(e,t,s,a,o,i,r,n,l,c,d,u,g,f,v,x,y,w,z){const{cross:A,direction:B}=e,C=["INPUT","SELECT","TEXTAREA"],I={passive:!1},M=k(),N=k(),q=_(50,225).constrain(f.measure(20)),O={mouse:300,touch:400},L={mouse:500,touch:600},F=v?43:25;let R=!1,T=0,E=0,H=!1,U=!1,D=!1,$=!1;function P(e){if(!S(e,a)&&e.touches.length>=2)return W(e);const t=i.readPoint(e),s=i.readPoint(e,A),r=b(t,T),l=b(s,E);if(!U&&!$){if(!e.cancelable)return W(e);if(U=r>l,!U)return W(e)}const d=i.pointerMove(e);r>x&&(D=!0),c.useFriction(.3).useDuration(.75),n.start(),o.add(B(d)),e.preventDefault()}function W(e){const t=d.byDistance(0,!1).index!==u.get(),s=i.pointerUp(e)*(v?L:O)[$?"mouse":"touch"],a=function(e,t){const s=u.add(-1*m(e)),a=d.byDistance(e,!v).distance;return v||p(e)<q?a:y&&t?.5*a:d.byIndex(s.get(),0).distance}(B(s),t),o=function(e,t){if(0===e||0===t)return 0;if(p(e)<=p(t))return 0;const s=b(p(e),p(t));return p(s/e)}(s,a),r=F-10*o,n=w+o/50;U=!1,H=!1,N.clear(),c.useDuration(r).useFriction(n),l.distance(a,!v),$=!1,g.emit("pointerUp")}function V(e){D&&(e.stopPropagation(),e.preventDefault(),D=!1)}return{init:function(e){if(!z)return;function n(n){(h(z)||z(e,n))&&function(e){const n=S(e,a);if($=n,D=v&&n&&!e.buttons&&R,R=b(o.get(),r.get())>=2,n&&0!==e.button)return;if(function(e){const t=e.nodeName||"";return C.includes(t)}(e.target))return;H=!0,i.pointerDown(e),c.useFriction(0).useDuration(0),o.set(r),function(){const e=$?s:t;N.add(e,"touchmove",P,I).add(e,"touchend",W).add(e,"mousemove",P,I).add(e,"mouseup",W)}(),T=i.readPoint(e),E=i.readPoint(e,A),g.emit("pointerDown")}(n)}const l=t;M.add(l,"dragstart",e=>e.preventDefault(),I).add(l,"touchmove",()=>{},I).add(l,"touchend",()=>{}).add(l,"touchstart",n).add(l,"mousedown",n).add(l,"touchcancel",W).add(l,"contextmenu",W).add(l,"click",V,!0)},destroy:function(){M.clear(),N.clear()},pointerDown:function(){return H}}}function I(e,t){let s,a;function o(e){return e.timeStamp}function i(s,a){const o="client"+("x"===(a||e.scroll)?"X":"Y");return(S(s,t)?s:s.touches[0])[o]}return{pointerDown:function(e){return s=e,a=e,i(e)},pointerMove:function(e){const t=i(e)-i(a),r=o(e)-o(s)>170;return a=e,r&&(s=e),t},pointerUp:function(e){if(!s||!a)return 0;const t=i(a)-i(s),r=o(e)-o(s),n=o(e)-o(a)>170,l=t/r;return r&&!n&&p(l)>.1?l:0},readPoint:i}}function M(e,t,s,a,o,i,r){const n=[e].concat(a);let l,c,d=[],u=!1;function m(e){return o.measureSize(r.measure(e))}return{init:function(o){i&&(c=m(e),d=a.map(m),l=new ResizeObserver(s=>{(h(i)||i(o,s))&&function(s){for(const i of s){if(u)return;const s=i.target===e,r=a.indexOf(i.target),n=s?c:d[r];if(p(m(s?e:a[r])-n)>=.5){o.reInit(),t.emit("resize");break}}}(s)}),s.requestAnimationFrame(()=>{n.forEach(e=>l.observe(e))}))},destroy:function(){u=!0,l&&l.disconnect()}}}function N(e,t,s,a,o){const i=o.measure(10),r=o.measure(50),n=_(.1,.99);let l=!1;function c(){return!l&&(!!e.reachedAny(s.get())&&!!e.reachedAny(t.get()))}return{shouldConstrain:c,constrain:function(o){if(!c())return;const l=e.reachedMin(t.get())?"min":"max",d=p(e[l]-t.get()),h=s.get()-t.get(),u=n.constrain(d/r);s.subtract(h*u),!o&&p(h)<i&&(s.set(e.constrain(s.get())),a.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}function q(e,t,s,a){const o=t.min+.1,i=t.max+.1,{reachedMin:r,reachedMax:n}=_(o,i);const l={loop:function(t){if(!function(e){return 1===e?n(s.get()):-1===e&&r(s.get())}(t))return;const o=e*(-1*t);a.forEach(e=>e.add(o))}};return l}function O(e,t,s,a,o){const{reachedAny:i,removeOffset:r,constrain:n}=a;function l(e){return e.concat().sort((e,t)=>p(e)-p(t))[0]}function c(t,a){const o=[t,t+s,t-s];if(!e)return t;if(!a)return l(o);const i=o.filter(e=>m(e)===a);return i.length?l(i):f(o)-s}return{byDistance:function(s,a){const l=o.get()+s,{index:d,distance:h}=function(s){const a=e?r(s):n(s),o=t.map((e,t)=>({diff:c(e-a,0),index:t})).sort((e,t)=>p(e.diff)-p(t.diff)),{index:i}=o[0];return{index:i,distance:a}}(l),u=!e&&i(l);return!a||u?{index:d,distance:s}:{index:d,distance:s+c(t[d]-h,0)}},byIndex:function(e,s){return{index:e,distance:c(t[e]-o.get(),s)}},shortcut:c}}function L(e,t,s,a,o,i,r,n){const l={passive:!0,capture:!0};let d=0;function u(e){"Tab"===e.code&&(d=(new Date).getTime())}return{init:function(p){n&&(i.add(document,"keydown",u,!1),t.forEach((t,u)=>{i.add(t,"focus",t=>{(h(n)||n(p,t))&&function(t){if((new Date).getTime()-d>10)return;r.emit("slideFocusStart"),e.scrollLeft=0;const i=s.findIndex(e=>e.includes(t));c(i)&&(o.useDuration(0),a.index(i,0),r.emit("slideFocus"))}(u)},l)}))}}}function F(e){let t=e;function s(e){return c(e)?e:e.get()}return{get:function(){return t},set:function(e){t=s(e)},add:function(e){t+=s(e)},subtract:function(e){t-=s(e)}}}function R(e,t){const s="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},a=t.style;let o=null,i=!1;return{clear:function(){i||(a.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(i)return;const r=(n=e.direction(t),Math.round(100*n)/100);var n;r!==o&&(a.transform=s(r),o=r)},toggleActive:function(e){i=!e}}}function T(e,t,s,a,o,i,r,n,l){const c=g(o),d=g(o).reverse(),h=function(){const e=r[0];return m(p(d,e),s,!1)}().concat(function(){const e=t-r[0]-1;return m(p(c,e),-s,!0)}());function u(e,t){return e.reduce((e,t)=>e-o[t],t)}function p(e,t){return e.reduce((e,s)=>u(e,t)>0?e.concat([s]):e,[])}function m(o,r,c){const d=function(e){return i.map((s,o)=>({start:s-a[o]+.5+e,end:s+t-.5+e}))}(r);return o.map(t=>{const a=c?0:-s,o=c?s:0,i=c?"end":"start",r=d[t][i];return{index:t,loopPoint:r,slideLocation:F(-1),translate:R(e,l[t]),target:()=>n.get()>r?a:o}})}return{canLoop:function(){return h.every(({index:e})=>u(c.filter(t=>t!==e),t)<=.1)},clear:function(){h.forEach(e=>e.translate.clear())},loop:function(){h.forEach(e=>{const{target:t,translate:s,slideLocation:a}=e,o=t();o!==a.get()&&(s.to(o),a.set(o))})},loopPoints:h}}function E(e,t,s){let a,o=!1;return{init:function(i){s&&(a=new MutationObserver(e=>{o||(h(s)||s(i,e))&&function(e){for(const s of e)if("childList"===s.type){i.reInit(),t.emit("slidesChanged");break}}(e)}),a.observe(e,{childList:!0}))},destroy:function(){a&&a.disconnect(),o=!0}}}function H(e,t,s,a){const o={};let i,r=null,n=null,l=!1;return{init:function(){i=new IntersectionObserver(e=>{l||(e.forEach(e=>{const s=t.indexOf(e.target);o[s]=e}),r=null,n=null,s.emit("slidesInView"))},{root:e.parentElement,threshold:a}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),l=!0},get:function(e=!0){if(e&&r)return r;if(!e&&n)return n;const t=function(e){return w(o).reduce((t,s)=>{const a=parseInt(s),{isIntersecting:i}=o[a];return(e&&i||!e&&!i)&&t.push(a),t},[])}(e);return e&&(r=t),e||(n=t),t}}}function U(e,t,s,a,o,i,r,n,l){const{startEdge:d,endEdge:h,direction:u}=e,m=c(s);return{groupSlides:function(e){return m?function(e,t){return g(e).filter(e=>e%t===0).map(s=>e.slice(s,s+t))}(e,s):function(e){return e.length?g(e).reduce((s,c,m)=>{const b=f(s)||0,g=0===b,x=c===v(e),y=o[d]-i[b][d],w=o[d]-i[c][h],z=!a&&g?u(r):0,S=p(w-(!a&&x?u(n):0)-(y+z));return m&&S>t+l&&s.push(c),x&&s.push(e.length),s},[]).map((t,s,a)=>{const o=Math.max(a[s-1]||0);return e.slice(o,t)}):[]}(e)}}}function D(e,t,s,a,o,i,r){const{align:n,axis:l,direction:c,startIndex:h,loop:u,duration:w,dragFree:z,dragThreshold:S,inViewThreshold:D,slidesToScroll:$,skipSnaps:P,containScroll:W,watchResize:V,watchSlides:j,watchDrag:G,watchFocus:Q}=i,K={measure:function(e){const{offsetTop:t,offsetLeft:s,offsetWidth:a,offsetHeight:o}=e;return{top:t,right:s+a,bottom:t+o,left:s,width:a,height:o}}},X=K.measure(t),Y=s.map(K.measure),Z=function(e,t){const s="rtl"===t,a="y"===e,o=!a&&s?-1:1;return{scroll:a?"y":"x",cross:a?"x":"y",startEdge:a?"top":s?"right":"left",endEdge:a?"bottom":s?"left":"right",measureSize:function(e){const{height:t,width:s}=e;return a?t:s},direction:function(e){return e*o}}}(l,c),J=Z.measureSize(X),ee=function(e){return{measure:function(t){return e*(t/100)}}}(J),te=function(e,t){const s={start:function(){return 0},center:function(e){return a(e)/2},end:a};function a(e){return t-e}return{measure:function(a,o){return d(e)?s[e](a):e(t,a,o)}}}(n,J),se=!u&&!!W,ae=u||!!W,{slideSizes:oe,slideSizesWithGaps:ie,startGap:re,endGap:ne}=function(e,t,s,a,o,i){const{measureSize:r,startEdge:n,endEdge:l}=e,c=s[0]&&o,d=function(){if(!c)return 0;const e=s[0];return p(t[n]-e[n])}(),h=function(){if(!c)return 0;const e=i.getComputedStyle(f(a));return parseFloat(e.getPropertyValue(`margin-${l}`))}(),u=s.map(r),m=s.map((e,t,s)=>{const a=!t,o=x(s,t);return a?u[t]+d:o?u[t]+h:s[t+1][n]-e[n]}).map(p);return{slideSizes:u,slideSizesWithGaps:m,startGap:d,endGap:h}}(Z,X,Y,s,ae,o),le=U(Z,J,$,u,X,Y,re,ne,2),{snaps:ce,snapsAligned:de}=function(e,t,s,a,o){const{startEdge:i,endEdge:r}=e,{groupSlides:n}=o,l=n(a).map(e=>f(e)[r]-e[0][i]).map(p).map(t.measure),c=a.map(e=>s[i]-e[i]).map(e=>-p(e)),d=n(c).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:c,snapsAligned:d}}(Z,te,X,Y,le),he=-f(ce)+f(ie),{snapsContained:ue,scrollContainLimit:pe}=function(e,t,s,a,o){const i=_(-t+e,0),r=s.map((e,t)=>{const{min:a,max:o}=i,r=i.constrain(e),n=!t,c=x(s,t);return n?o:c||l(a,r)?a:l(o,r)?o:r}).map(e=>parseFloat(e.toFixed(3))),n=function(){const e=r[0],t=f(r);return _(r.lastIndexOf(e),r.indexOf(t)+1)}();function l(e,t){return b(e,t)<=1}return{snapsContained:function(){if(t<=e+o)return[i.max];if("keepSnaps"===a)return r;const{min:s,max:l}=n;return r.slice(s,l)}(),scrollContainLimit:n}}(J,he,de,W,2),me=se?ue:de,{limit:be}=function(e,t,s){const a=t[0];return{limit:_(s?a-e:f(t),a)}}(he,me,u),ge=B(v(me),h,u),fe=ge.clone(),ve=g(s),xe=A(a,o,()=>(({dragHandler:e,scrollBody:t,scrollBounds:s,options:{loop:a}})=>{a||s.constrain(e.pointerDown()),t.seek()})(Oe),e=>(({scrollBody:e,translate:t,location:s,offsetLocation:a,previousLocation:o,scrollLooper:i,slideLooper:r,dragHandler:n,animation:l,eventHandler:c,scrollBounds:d,options:{loop:h}},u)=>{const p=e.settled(),m=!d.shouldConstrain(),b=h?p:p&&m,g=b&&!n.pointerDown();g&&l.stop();const f=s.get()*u+o.get()*(1-u);a.set(f),h&&(i.loop(e.direction()),r.loop()),t.to(a.get()),g&&c.emit("settle"),b||c.emit("scroll")})(Oe,e)),ye=me[ge.get()],we=F(ye),ze=F(ye),Se=F(ye),ke=F(ye),Ae=function(e,t,s,a,o,i){let r=0,n=0,l=o,c=i,d=e.get(),h=0;function u(e){return l=e,g}function b(e){return c=e,g}const g={direction:function(){return n},duration:function(){return l},velocity:function(){return r},seek:function(){const t=a.get()-e.get();let o=0;return l?(s.set(e),r+=t/l,r*=c,d+=r,e.add(r),o=d-h):(r=0,s.set(a),e.set(a),o=t),n=m(o),h=d,g},settled:function(){return p(a.get()-t.get())<.001},useBaseFriction:function(){return b(i)},useBaseDuration:function(){return u(o)},useFriction:b,useDuration:u};return g}(we,Se,ze,ke,w,.68),_e=O(u,me,he,be,ke),Be=function(e,t,s,a,o,i,r){function n(o){const n=o.distance,l=o.index!==t.get();i.add(n),n&&(a.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(s.set(t.get()),t.set(o.index),r.emit("select"))}return{distance:function(e,t){n(o.byDistance(e,t))},index:function(e,s){const a=t.clone().set(e);n(o.byIndex(a.get(),s))}}}(xe,ge,fe,Ae,_e,ke,r),Ce=function(e){const{max:t,length:s}=e;return{get:function(e){return s?(e-t)/-s:0}}}(be),Ie=k(),Me=H(t,s,r,D),{slideRegistry:Ne}=function(e,t,s,a,o,i){const{groupSlides:r}=o,{min:n,max:l}=a;return{slideRegistry:function(){const a=r(i),o=!e||"keepSnaps"===t;return 1===s.length?[i]:o?a:a.slice(n,l).map((e,t,s)=>{const a=!t,o=x(s,t);return a?y(f(s[0])+1):o?y(v(i)-f(s)[0]+1,f(s)[0]):e})}()}}(se,W,me,pe,le,ve),qe=L(e,s,Ne,Be,Ae,Ie,r,Q),Oe={ownerDocument:a,ownerWindow:o,eventHandler:r,containerRect:X,slideRects:Y,animation:xe,axis:Z,dragHandler:C(Z,e,a,o,ke,I(Z,o),we,xe,Be,Ae,_e,ge,r,ee,z,S,P,.68,G),eventStore:Ie,percentOfView:ee,index:ge,indexPrevious:fe,limit:be,location:we,offsetLocation:Se,previousLocation:ze,options:i,resizeHandler:M(t,r,o,s,Z,V,K),scrollBody:Ae,scrollBounds:N(be,Se,ke,Ae,ee),scrollLooper:q(he,be,Se,[we,Se,ze,ke]),scrollProgress:Ce,scrollSnapList:me.map(Ce.get),scrollSnaps:me,scrollTarget:_e,scrollTo:Be,slideLooper:T(Z,J,he,oe,ie,ce,me,Se,s),slideFocus:qe,slidesHandler:E(t,r,j),slidesInView:Me,slideIndexes:ve,slideRegistry:Ne,slidesToScroll:le,target:ke,translate:R(Z,t)};return Oe}const $={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function P(e){function t(e,t){return z(e,t||{})}const s={mergeOptions:t,optionsAtMedia:function(s){const a=s.breakpoints||{},o=w(a).filter(t=>e.matchMedia(t).matches).map(e=>a[e]).reduce((e,s)=>t(e,s),{});return t(s,o)},optionsMediaQueries:function(t){return t.map(e=>w(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}};return s}function W(e,t,s){const a=e.ownerDocument,o=a.defaultView,i=P(o),r=function(e){let t=[];return{init:function(s,a){return t=a.filter(({options:t})=>!1!==e.optionsAtMedia(t).active),t.forEach(t=>t.init(s,e)),a.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){t=t.filter(e=>e.destroy())}}}(i),n=k(),l=function(){let e,t={};function s(e){return t[e]||[]}const a={init:function(t){e=t},emit:function(t){return s(t).forEach(s=>s(e,t)),a},off:function(e,o){return t[e]=s(e).filter(e=>e!==o),a},on:function(e,o){return t[e]=s(e).concat([o]),a},clear:function(){t={}}};return a}(),{mergeOptions:c,optionsAtMedia:h,optionsMediaQueries:u}=i,{on:p,off:m,emit:b}=l,g=C;let f,v,x,y,w=!1,z=c($,W.globalOptions),S=c(z),A=[];function _(t){const s=D(e,x,y,a,o,t,l);if(t.loop&&!s.slideLooper.canLoop()){return _(Object.assign({},t,{loop:!1}))}return s}function B(t,s){w||(z=c(z,t),S=h(z),A=s||A,function(){const{container:t,slides:s}=S,a=d(t)?e.querySelector(t):t;x=a||e.children[0];const o=d(s)?x.querySelectorAll(s):s;y=[].slice.call(o||x.children)}(),f=_(S),u([z,...A.map(({options:e})=>e)]).forEach(e=>n.add(e,"change",C)),S.active&&(f.translate.to(f.location.get()),f.animation.init(),f.slidesInView.init(),f.slideFocus.init(q),f.eventHandler.init(q),f.resizeHandler.init(q),f.slidesHandler.init(q),f.options.loop&&f.slideLooper.loop(),x.offsetParent&&y.length&&f.dragHandler.init(q),v=r.init(q,A)))}function C(e,t){const s=N();I(),B(c({startIndex:s},e),t),l.emit("reInit")}function I(){f.dragHandler.destroy(),f.eventStore.clear(),f.translate.clear(),f.slideLooper.clear(),f.resizeHandler.destroy(),f.slidesHandler.destroy(),f.slidesInView.destroy(),f.animation.destroy(),r.destroy(),n.clear()}function M(e,t,s){S.active&&!w&&(f.scrollBody.useBaseFriction().useDuration(!0===t?0:S.duration),f.scrollTo.index(e,s||0))}function N(){return f.index.get()}const q={canScrollNext:function(){return f.index.add(1).get()!==N()},canScrollPrev:function(){return f.index.add(-1).get()!==N()},containerNode:function(){return x},internalEngine:function(){return f},destroy:function(){w||(w=!0,n.clear(),I(),l.emit("destroy"),l.clear())},off:m,on:p,emit:b,plugins:function(){return v},previousScrollSnap:function(){return f.indexPrevious.get()},reInit:g,rootNode:function(){return e},scrollNext:function(e){M(f.index.add(1).get(),e,-1)},scrollPrev:function(e){M(f.index.add(-1).get(),e,1)},scrollProgress:function(){return f.scrollProgress.get(f.offsetLocation.get())},scrollSnapList:function(){return f.scrollSnapList},scrollTo:M,selectedScrollSnap:N,slideNodes:function(){return y},slidesInView:function(){return f.slidesInView.get()},slidesNotInView:function(){return f.slidesInView.get(!1)}};return B(t,s),setTimeout(()=>l.emit("init"),0),q}W.globalOptions=void 0;const V={direction:"forward",speed:2,startDelay:1e3,active:!0,breakpoints:{},playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,rootNode:null};function j(e={}){let t,s,a,o,i,r=0,n=!1,l=!1;function c(){if(a)return;if(n)return;s.emit("autoScroll:play");const e=s.internalEngine(),{ownerWindow:i}=e;r=i.setTimeout(()=>{e.scrollBody=function(e){const{location:a,previousLocation:o,offsetLocation:i,target:r,scrollTarget:n,index:l,indexPrevious:c,limit:{reachedMin:h,reachedMax:u,constrain:p},options:{loop:m}}=e,b="forward"===t.direction?-1:1,g=()=>S;let f=0,v=0,x=a.get(),y=0,w=!1;function z(){let e=0;o.set(a),f=b*t.speed,x+=f,a.add(f),r.set(a),e=x-y,v=Math.sign(e),y=x;const g=n.byDistance(0,!1).index;l.get()!==g&&(c.set(l.get()),l.set(g),s.emit("select"));const z="forward"===t.direction?h(i.get()):u(i.get());if(!m&&z){w=!0;const e=p(a.get());a.set(e),r.set(a),d()}return S}const S={direction:()=>v,duration:()=>-1,velocity:()=>f,settled:()=>w,seek:z,useBaseFriction:g,useBaseDuration:g,useFriction:g,useDuration:g};return S}(e),e.animation.start()},o),n=!0}function d(){if(a)return;if(!n)return;s.emit("autoScroll:stop");const e=s.internalEngine(),{ownerWindow:t}=e;e.scrollBody=i,t.clearTimeout(r),r=0,n=!1}function h(){l||d()}function u(){l||g()}function p(){l=!0,d()}function m(){l=!1,c()}function b(){s.off("settle",b),c()}function g(){s.on("settle",b)}return{name:"autoScroll",options:e,init:function(r,n){s=r;const{mergeOptions:l,optionsAtMedia:b}=n,g=l(V,j.globalOptions),f=l(g,e);if(t=b(f),s.scrollSnapList().length<=1)return;o=t.startDelay,a=!1,i=s.internalEngine().scrollBody;const{eventStore:v}=s.internalEngine(),x=!!s.internalEngine().options.watchDrag,y=function(e,t){const s=e.rootNode();return t&&t(s)||s}(s,t.rootNode);x&&s.on("pointerDown",h),x&&!t.stopOnInteraction&&s.on("pointerUp",u),t.stopOnMouseEnter&&v.add(y,"mouseenter",p),t.stopOnMouseEnter&&!t.stopOnInteraction&&v.add(y,"mouseleave",m),t.stopOnFocusIn&&s.on("slideFocusStart",d),t.stopOnFocusIn&&!t.stopOnInteraction&&v.add(s.containerNode(),"focusout",c),t.playOnInit&&c()},destroy:function(){s.off("pointerDown",h).off("pointerUp",u).off("slideFocusStart",d).off("settle",b),d(),a=!0,n=!1},play:function(e){void 0!==e&&(o=e),c()},stop:function(){n&&d()},reset:function(){n&&(d(),g())},isPlaying:function(){return n}}}j.globalOptions=void 0;const G={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function Q(e={}){let t,s,a,o,i=null,r=0,n=!1,l=!1,c=!1,d=!1;function h(){a||(m()?c=!0:(n||s.emit("autoplay:play"),function(){const{ownerWindow:e}=s.internalEngine();e.clearTimeout(r),r=e.setTimeout(x,o[s.selectedScrollSnap()]),i=(new Date).getTime(),s.emit("autoplay:timerset")}(),n=!0))}function u(){a||(n&&s.emit("autoplay:stop"),function(){const{ownerWindow:e}=s.internalEngine();e.clearTimeout(r),r=0,i=null,s.emit("autoplay:timerstopped")}(),n=!1)}function p(){if(m())return c=n,u();c&&h()}function m(){const{ownerDocument:e}=s.internalEngine();return"hidden"===e.visibilityState}function b(){l||u()}function g(){l||h()}function f(){l=!0,u()}function v(){l=!1,h()}function x(){const{index:e}=s.internalEngine(),a=e.clone().add(1).get(),o=s.scrollSnapList().length-1,i=t.stopOnLastSnap&&a===o;if(s.canScrollNext()?s.scrollNext(d):s.scrollTo(0,d),s.emit("autoplay:select"),i)return u();h()}return{name:"autoplay",options:e,init:function(i,r){s=i;const{mergeOptions:n,optionsAtMedia:l}=r,c=n(G,Q.globalOptions),m=n(c,e);if(t=l(m),s.scrollSnapList().length<=1)return;d=t.jump,a=!1,o=function(e,t){const s=e.scrollSnapList();return"number"==typeof t?s.map(()=>t):t(s,e)}(s,t.delay);const{eventStore:x,ownerDocument:y}=s.internalEngine(),w=!!s.internalEngine().options.watchDrag,z=function(e,t){const s=e.rootNode();return t&&t(s)||s}(s,t.rootNode);x.add(y,"visibilitychange",p),w&&s.on("pointerDown",b),w&&!t.stopOnInteraction&&s.on("pointerUp",g),t.stopOnMouseEnter&&x.add(z,"mouseenter",f),t.stopOnMouseEnter&&!t.stopOnInteraction&&x.add(z,"mouseleave",v),t.stopOnFocusIn&&s.on("slideFocusStart",u),t.stopOnFocusIn&&!t.stopOnInteraction&&x.add(s.containerNode(),"focusout",h),t.playOnInit&&h()},destroy:function(){s.off("pointerDown",b).off("pointerUp",g).off("slideFocusStart",u),u(),a=!0,n=!1},play:function(e){void 0!==e&&(d=e),h()},stop:function(){n&&u()},reset:function(){n&&h()},isPlaying:function(){return n},timeUntilNext:function(){return i?o[s.selectedScrollSnap()]-((new Date).getTime()-i):null}}}Q.globalOptions=void 0;const K={active:!0,breakpoints:{},snapped:"is-snapped",inView:"is-in-view",draggable:"is-draggable",dragging:"is-dragging",loop:"is-loop"};function X(e){return(Array.isArray(e)?e:[e]).filter(Boolean)}function Y(e,t){e&&t.length&&e.classList.remove(...t)}function Z(e,t){e&&t.length&&e.classList.add(...t)}function J(e={}){let t,s,a,o,i=[],r=[];const n=["select"],l=["pointerDown","pointerUp"],c=["slidesInView"],d={snapped:[],inView:[],draggable:[],dragging:[],loop:[]};function h(e,t){("pointerDown"===t?Z:Y)(a,d.dragging)}function u(e=[],t=[],s){const a=t.map(e=>o[e]),i=e.map(e=>o[e]);return a.forEach(e=>Y(e,s)),i.forEach(e=>Z(e,s)),e}function p(){const{slideRegistry:e}=s.internalEngine(),t=e[s.selectedScrollSnap()];i=u(t,i,d.snapped)}function m(){const e=s.slidesInView();r=u(e,r,d.inView)}return{name:"classNames",options:e,init:function(i,r){s=i;const{mergeOptions:u,optionsAtMedia:b}=r,g=u(K,J.globalOptions),f=u(g,e);t=b(f),a=s.rootNode(),o=s.slideNodes();const{watchDrag:v,loop:x}=s.internalEngine().options,y=!!v;t.loop&&x&&(d.loop=X(t.loop),Z(a,d.loop)),t.draggable&&y&&(d.draggable=X(t.draggable),Z(a,d.draggable)),t.dragging&&(d.dragging=X(t.dragging),l.forEach(e=>s.on(e,h))),t.snapped&&(d.snapped=X(t.snapped),n.forEach(e=>s.on(e,p)),p()),t.inView&&(d.inView=X(t.inView),c.forEach(e=>s.on(e,m)),m())},destroy:function(){l.forEach(e=>s.off(e,h)),n.forEach(e=>s.off(e,p)),c.forEach(e=>s.off(e,m)),Y(a,d.loop),Y(a,d.draggable),Y(a,d.dragging),u([],i,d.snapped),u([],r,d.inView),Object.keys(d).forEach(e=>{d[e]=[]})}}}J.globalOptions=void 0;class ee{generateElementName(e,t){let s=e;return s+="-",s+=t.replace(/[.]/g,"_"),s}generateTag(e,t,s){const a=this.generateElementName(e,t),r=i`${o(a)}`;return customElements.get(a)||customElements.define(a,class extends s{}),r}}class te{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{})}closestElement(e,t=this,s=(t,a=t&&t.closest(e))=>t&&t!==document&&t!==window?a||s(t.getRootNode().host):null){return s(t)}handleComponentTagRename(e,t){const s=t.toLowerCase();e.tagName.toLowerCase()!==s&&e.setAttribute(s,!0)}elementMatch(e,t){const s=t.toLowerCase();return e.tagName.toLowerCase()===s||e.hasAttribute(s)}getSlotText(e,t){const s=e.shadowRoot?.querySelector(`slot[name="${t}"]`);return(s?.assignedNodes({flatten:!0})||[]).map(e=>e.textContent?.trim()).join(" ").trim()||null}}class se{generateElementName(e,t){let s=e;return s+="-",s+=t.replace(/[.]/g,"_"),s}generateTag(e,t,s){const a=this.generateElementName(e,t),r=i`${o(a)}`;return customElements.get(a)||customElements.define(a,class extends s{}),r}}class ae{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{})}closestElement(e,t=this,s=(t,a=t&&t.closest(e))=>t&&t!==document&&t!==window?a||s(t.getRootNode().host):null){return s(t)}handleComponentTagRename(e,t){const s=t.toLowerCase();e.tagName.toLowerCase()!==s&&e.setAttribute(s,!0)}elementMatch(e,t){const s=t.toLowerCase();return e.tagName.toLowerCase()===s||e.hasAttribute(s)}getSlotText(e,t){const s=e.shadowRoot?.querySelector(`slot[name="${t}"]`),a=(s?.assignedNodes({flatten:!0})||[]).map(e=>e.textContent?.trim()).join(" ").trim();return a||null}}class oe{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{})}closestElement(e,t=this,s=(t,a=t&&t.closest(e))=>t&&t!==document&&t!==window?a||s(t.getRootNode().host):null){return s(t)}handleComponentTagRename(e,t){const s=t.toLowerCase();e.tagName.toLowerCase()!==s&&e.setAttribute(s,!0)}elementMatch(e,t){const s=t.toLowerCase();return e.tagName.toLowerCase()===s||e.hasAttribute(s)}getSlotText(e,t){const s=e.shadowRoot?.querySelector(`slot[name="${t}"]`);return(s?.assignedNodes({flatten:!0})||[]).map(e=>e.textContent?.trim()).join(" ").trim()||null}}var ie=e`:host{color:var(--ds-auro-loader-color)}:host>.loader-shape>span{border-color:var(--ds-auro-loader-border-color);background-color:var(--ds-auro-loader-background-color)}:host([onlight]),:host([appearance=brand]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]),:host([appearance=inverse]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>.loader-shape>span{--ds-auro-loader-background-color: transparent}:host([orbit])>.loader-shape>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>.loader-shape>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
2
|
+
`,re=e`.body-default{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-default-font-size, 1rem);font-variant-ligatures:none;font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-default-emphasized-font-size, 1rem);font-variant-ligatures:none;font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-lg-font-size, 1.125rem);font-variant-ligatures:none;font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-lg-emphasized-font-size, 1.125rem);font-variant-ligatures:none;font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-sm-font-size, .875rem);font-variant-ligatures:none;font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-sm-emphasized-font-size, .875rem);font-variant-ligatures:none;font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-xs-font-size, .75rem);font-variant-ligatures:none;font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-xs-emphasized-font-size, .75rem);font-variant-ligatures:none;font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-variant-ligatures:none;font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, .875rem)}.body-2xs,.body-2xs-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-emphasized-font-size, .625rem);font-variant-ligatures:none;font-weight:var(--wcss-body-2xs-emphasized-weight, );line-height:var(--wcss-body-2xs-emphasized-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-variant-ligatures:none;font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-variant-ligatures:none;font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-variant-ligatures:none;font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-variant-ligatures:none;font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-variant-ligatures:none;font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-variant-ligatures:none;font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-xs-weight, 300);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-2xs-weight, 300);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host{position:relative;display:inline-flex;flex-direction:column;align-items:center}:host([message-position=top]){flex-direction:column-reverse}:host([message-position=left]){flex-direction:row-reverse}:host([message-position=right]){flex-direction:row}:host([has-message]){gap:var(--ds-auro-loader-message-spacing)}.loader-shape{position:relative;display:inline-block;width:2rem;height:2rem;flex-shrink:0;font-size:0}.loader-shape>span{position:absolute;top:0;left:0;display:inline-block;width:2rem;height:2rem;box-sizing:border-box;border-width:0;border-style:solid;border-radius:100%;float:none}:host([xs])>.loader-shape{width:1.2rem;height:1.2rem}:host([xs])>.loader-shape>span{width:1.2rem;height:1.2rem}:host([sm])>.loader-shape{width:3rem;height:3rem}:host([sm])>.loader-shape>span{width:3rem;height:3rem}:host([md])>.loader-shape{width:5rem;height:5rem}:host([md])>.loader-shape>span{width:5rem;height:5rem}:host([lg])>.loader-shape{width:8rem;height:8rem}:host([lg])>.loader-shape>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]){position:relative}:host([pulse])>.loader-shape{position:relative;width:calc(3rem + var(--margin) * 6);height:calc(1rem + var(--margin) * 2)}:host([pulse])>.loader-shape>span{position:relative;width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse])>.loader-shape>span:nth-child(1){animation-delay:-.4s}:host([pulse])>.loader-shape>span:nth-child(2){animation-delay:-.2s}:host([pulse])>.loader-shape>span:nth-child(3){animation-delay:0ms}:host([pulse][xs])>.loader-shape{width:calc(1.95rem + var(--margin-xs) * 6);height:calc(.65rem + var(--margin-xs) * 2)}:host([pulse][xs])>.loader-shape>span{width:.65rem;height:.65rem;margin:var(--margin-xs)}:host([pulse][sm])>.loader-shape{width:calc(6rem + var(--margin-sm) * 6);height:calc(2rem + var(--margin-sm) * 2)}:host([pulse][sm])>.loader-shape>span{width:2rem;height:2rem;margin:var(--margin-sm)}:host([pulse][md])>.loader-shape{width:calc(9rem + var(--margin-md) * 6);height:calc(3rem + var(--margin-md) * 2)}:host([pulse][md])>.loader-shape>span{width:3rem;height:3rem;margin:var(--margin-md)}:host([pulse][lg])>.loader-shape{width:calc(15rem + var(--margin-lg) * 6);height:calc(5rem + var(--margin-lg) * 2)}:host([pulse][lg])>.loader-shape>span{width:5rem;height:5rem;margin:var(--margin-lg)}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]){opacity:1}:host([orbit])>.loader-shape>span{border-width:5px;opacity:1}:host([orbit])>.loader-shape>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>.loader-shape>span{border-width:8px}:host([orbit][md])>.loader-shape>span{border-width:13px}:host([orbit][lg])>.loader-shape>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>.loader-shape>svg{width:100%;height:100%;animation:rotate 2s linear infinite;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{animation:ringworm 1.5s ease-in-out infinite;stroke-dashoffset:0;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;display:block;overflow:hidden;width:100%;height:0;font-size:unset}:host([laser])>.no-animation,:host([laser])>.message-region{display:none}:host([laser])>.loader-shape>span{position:fixed;z-index:100;width:100%;height:.25rem;border-radius:0}:host([laser])>.loader-shape>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>.loader-shape>span:nth-child(2){width:50%;border-color:currentcolor;animation:laser 2s linear infinite;opacity:1}:host([laser][sm])>.loader-shape>span:nth-child(2){width:20%}:host([laser][md])>.loader-shape>span:nth-child(2){width:30%}:host([laser][lg])>.loader-shape>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>.loader-shape>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}.message-region{min-width:0;color:var(--ds-auro-loader-message-color)}.message-list{padding:0;margin:0}slot[name=message]::slotted([hidden]){display:none!important}:host>.no-animation{display:none;min-width:0}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>.loader-shape{display:none}:host>.loader-shape>span{opacity:1}:host>.no-animation{display:block}:host([has-default-content])>.message-region{display:none}:host([has-message]:not([has-default-content]))>.no-animation{display:none}}
|
|
3
|
+
`,ne=e`:host{--ds-auro-loader-background-color: currentcolor;--ds-auro-loader-border-color: currentcolor;--ds-auro-loader-color: currentcolor;--ds-auro-loader-message-color: currentcolor;--ds-auro-loader-message-spacing: .5rem}
|
|
4
|
+
`;const le=5e3,ce="bottom",de=new Set(["top","right","bottom","left"]);function he(e){const t=Number(e);return Number.isFinite(t)&&t>0&&t<=2147483647}let ue=class e extends t{constructor(){super(),this._initializeDefaults(),this._advanceMessage=this._advanceMessage.bind(this),this._handleReducedMotionChange=this._handleReducedMotionChange.bind(this)}_initializeDefaults(){this.orbit=!1,this.ringworm=!1,this.laser=!1,this.pulse=!1,this.appearance="default",this.messageInterval=le,this.messagePosition=ce,this.keys=[0,1,2,3,4,5,6,7,8,9],this.mdCount=3,this.smCount=2,this.runtimeUtils=new oe,this._messages=[],this._activeMessageIndex=0,this._messageCycleTimer=void 0,this._prefersReducedMotion=!1}static get properties(){return{appearance:{type:String,reflect:!0},laser:{type:Boolean,reflect:!0},messageInterval:{type:Number,reflect:!0,attribute:"message-interval",converter:{fromAttribute:e=>Number(e),toAttribute:e=>e===le?null:String(e)}},messagePosition:{type:String,reflect:!0,attribute:"message-position",converter:{fromAttribute:e=>e,toAttribute:e=>e===ce?null:e}},lg:{type:Boolean,reflect:!0},md:{type:Boolean,reflect:!0},onDark:{type:Boolean,reflect:!0,attribute:"ondark"},onLight:{type:Boolean,reflect:!0,attribute:"onlight"},orbit:{type:Boolean,reflect:!0},pulse:{type:Boolean,reflect:!0},ringworm:{type:Boolean,reflect:!0},sm:{type:Boolean,reflect:!0},xs:{type:Boolean,reflect:!0}}}static get styles(){return[re,ie,ne]}static register(t="auro-loader"){oe.prototype.registerComponent(t,e)}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-loader")}connectedCallback(){super.connectedCallback(),"function"==typeof window.matchMedia&&(this._reducedMotionQuery=window.matchMedia("(prefers-reduced-motion: reduce)"),this._prefersReducedMotion=this._reducedMotionQuery.matches,this._reducedMotionQuery.addEventListener("change",this._handleReducedMotionChange)),this._startMessageCycle()}disconnectedCallback(){super.disconnectedCallback(),this._stopMessageCycle(),this._reducedMotionQuery?.removeEventListener("change",this._handleReducedMotionChange)}willUpdate(e){super.willUpdate(e),e.has("messageInterval")&&(this.messageInterval=he(this.messageInterval)?Number(this.messageInterval):le),e.has("messagePosition")&&!de.has(this.messagePosition)&&(this.messagePosition=ce)}updated(e){super.updated(e),(e.has("messageInterval")&&this._messageCycleTimer||e.has("laser"))&&this._startMessageCycle()}defineTemplate(){let e=Array.from(Array(this.mdCount).keys());return this.orbit||this.laser?e=Array.from(Array(this.smCount).keys()):this.ringworm&&(e=Array.from(Array(0).keys())),e}handleDefaultSlotChange(e){const t=e.target,s=(t.assignedNodes().length?t.assignedNodes({flatten:!0}):[]).some(e=>e.nodeType!==Node.TEXT_NODE||""!==e.textContent.trim());this.toggleAttribute("has-default-content",s)}handleMessageSlotChange(e){this._messages=e.target.assignedElements({flatten:!0}),this.toggleAttribute("has-message",this._messages.length>0),this._activeMessageIndex=0,this._syncMessageVisibility(),this._startMessageCycle()}_syncMessageVisibility(){this._messages.forEach((e,t)=>{e.hidden=t!==this._activeMessageIndex})}_advanceMessage(){0!==this._messages.length&&(this._activeMessageIndex=(this._activeMessageIndex+1)%this._messages.length,this._syncMessageVisibility())}_stopMessageCycle(){clearInterval(this._messageCycleTimer),this._messageCycleTimer=void 0}_startMessageCycle(){if(this._stopMessageCycle(),this.isConnected&&this._messages.length>1&&!this._prefersReducedMotion&&!this.laser){const e=he(this.messageInterval)?this.messageInterval:le;this._messageCycleTimer=setInterval(this._advanceMessage,e)}}_handleReducedMotionChange(e){this._prefersReducedMotion=e.matches,this._startMessageCycle()}getFontSize(){return this.lg||this.md?"body-lg":this.sm?"body-default":this.xs?"body-xs":"body-sm"}render(){const e=this.getFontSize();return s`
|
|
5
|
+
<div class="loader-shape">
|
|
6
|
+
${this.defineTemplate().map(e=>s`
|
|
7
|
+
<span part="element" class="loader node-${e}"></span>
|
|
8
|
+
`)}
|
|
9
|
+
|
|
10
|
+
${this.ringworm?s`
|
|
11
|
+
<svg part="element" class="circular" viewBox="25 25 50 50">
|
|
12
|
+
<circle class="path" cx="50" cy="50" r="20" fill="none"/>
|
|
13
|
+
</svg>`:""}
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<div class="no-animation ${e}">
|
|
17
|
+
<slot @slotchange="${this.handleDefaultSlotChange}">Loading...</slot>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div class="message-region ${e}" part="message" role="status" aria-live="polite" aria-atomic="false">
|
|
21
|
+
<div class="message-list">
|
|
22
|
+
<slot name="message" @slotchange="${this.handleMessageSlotChange}"></slot>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
`}};const pe=new WeakMap,me=new WeakMap,be=(e,t,s)=>{const a=me.get(e);if(!a)return;const o=a.targets.get(t);o&&(o.delete(s),0===o.size&&a.targets.delete(t));let i=!1;for(const e of a.targets.values())if(e.has(s)){i=!0;break}i||a.matchers.delete(s),0!==a.targets.size&&0!==a.matchers.size||ve(e)},ge=({host:e,target:t,matcher:s,removeOriginal:a=!0})=>{const o=e.getAttributeNames().filter(e=>s(e)).reduce((t,s)=>(t[s]=e.getAttribute(s),t),{});Object.entries(o).forEach(([o,i])=>{ye(e,t,s,o,i),t.setAttribute(o,i),a&&e.removeAttribute(o)})},fe=e=>{if(pe.has(e))return pe.get(e);const t=new MutationObserver(t=>{const s=me.get(e);s&&t.filter(e=>"attributes"===e.type).forEach(t=>{const a=t.attributeName;for(const t of s.matchers)if(t(a))for(const[a,o]of s.targets.entries())if(o.has(t)){const{removeOriginal:s}=o.get(t);ge({host:e,target:a,matcher:t,removeOriginal:s})}})});return t.observe(e,{attributes:!0}),pe.set(e,t),t},ve=e=>{pe.has(e)&&(pe.get(e).disconnect(),pe.delete(e)),me.has(e)&&me.delete(e)},xe=(e,t,s)=>{const a=me.get(e);if(!a)return;const o=a.targets.get(t);return o?o.get(s):void 0},ye=(e,t,s,a,o)=>{const i=xe(e,t,s);i&&i.currentAttributes.set(a,o)},we=(e,t,s,a)=>{const o=xe(e,t,s);if(o)return o.currentAttributes.get(a)},ze=(e,t,s)=>{const a=xe(e,t,s);return a?Array.from(a.currentAttributes.entries()):[]},Se={"aria-":e=>e.startsWith("aria-"),role:e=>e.match(/^role$/)},ke=({host:e,target:t,removeOriginal:s=!0})=>(({host:e,target:t,match:s,removeOriginal:a=!0})=>{if("object"!=typeof e||!(e instanceof HTMLElement))throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');if("object"!=typeof t||!(t instanceof HTMLElement))throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');if("function"!=typeof s)throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');if("boolean"!=typeof a)throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');return(({host:e,target:t,matcher:s,removeOriginal:a=!0})=>{me.has(e)||me.set(e,{matchers:new Set,targets:new Map});const o=me.get(e);return o.matchers.add(s),o.targets.has(t)||o.targets.set(t,new Map),o.targets.get(t).set(s,{removeOriginal:a,currentAttributes:new Map}),ge({host:e,target:t,matcher:s,removeOriginal:a}),fe(e),{cleanup:()=>be(e,t,s),getObservedAttributes:()=>ze(e,t,s),getObservedAttribute:a=>we(e,t,s,a)}})({host:e,target:t,matcher:s,removeOriginal:a})})({host:e,target:t,match:e=>{for(const t in Se)if(Se[t](e))return!0;return!1},removeOriginal:s});class Ae extends t{attributeWatcher;static get properties(){return{layout:{type:String,attribute:"layout",reflect:!0},shape:{type:String,attribute:"shape",reflect:!0},size:{type:String,attribute:"size",reflect:!0},appearance:{type:String,reflect:!0},onDark:{type:Boolean,attribute:"ondark",reflect:!0},wrapper:{attribute:!1,reflect:!1}}}constructor(){super(),this.onDark=!1,this.appearance="default"}resetShapeClasses(){this.shape&&this.size&&this.wrapper&&(this.wrapper.classList.forEach(e=>{e.startsWith("shape-")&&this.wrapper.classList.remove(e)}),this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`))}resetLayoutClasses(){this.layout&&this.wrapper&&(this.wrapper.classList.forEach(e=>{e.startsWith("layout-")&&this.wrapper.classList.remove(e)}),this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`))}updateComponentArchitecture(){this.resetLayoutClasses(),this.resetShapeClasses()}bindWrapper(){const e=this.shadowRoot.querySelector(".wrapper");return!(e===this.wrapper&&this.attributeWatcher||(this.releaseWrapper(),this.wrapper=e,this.attributeWatcher=e?ke({host:this,target:e}):null,0))}releaseWrapper(){if(!this.attributeWatcher)return;const e=this.attributeWatcher.getObservedAttributes();this.attributeWatcher.cleanup(),this.attributeWatcher=null;for(const[t,s]of e)this.setAttribute(t,s)}updated(e){(this.bindWrapper()||e.has("layout")||e.has("shape")||e.has("size"))&&this.updateComponentArchitecture()}firstUpdated(){super.firstUpdated(),this.bindWrapper()}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.bindWrapper()}disconnectedCallback(){super.disconnectedCallback(),this.releaseWrapper()}render(){try{return this.renderLayout()}catch(e){throw console.error("Failed to get the defined layout",e),e}}}var _e=e`[auro-loader]{color:var(--ds-auro-button-loader-color, #ffffff)}.auro-button{border-color:var(--ds-auro-button-border-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image),var(--ds-auro-button-container-image));color:var(--ds-auro-button-text-color)}:host(:focus-within) .auro-button{outline-color:var(--ds-auro-button-border-inset-color)}:host(:not([disabled]):is([data-hover],[data-active])){--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-hover, #00274a)}:host([disabled]){--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-disabled, #acc9e2);--ds-auro-button-text-color: var(--ds-advanced-color-button-primary-text-disabled, #ffffff)}:host([variant=secondary]){--ds-auro-button-container-color: var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image: var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color: var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color: var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color: var(--ds-advanced-color-button-secondary-text, #01426a)}:host([variant=secondary]:not([disabled]):is([data-hover],[data-active])){--ds-auro-button-container-color: var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image: var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color: var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color: var(--ds-advanced-color-button-secondary-text-hover, #00274a)}:host([variant=secondary]:focus-within){--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused, #01426a)}:host([variant=secondary][disabled]){--ds-auro-button-container-color: var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image: var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color: var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([variant=tertiary]){--ds-auro-button-container-color: var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, .05));--ds-auro-button-container-image: var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, .05));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color: var(--ds-advanced-color-button-tertiary-text, #01426a)}:host([variant=tertiary]) .auro-button{background-image:none}:host([variant=tertiary]:not([disabled]):is([data-hover],[data-active])){--ds-auro-button-container-color: var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, .1));--ds-auro-button-container-image: var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, .1));--ds-auro-button-border-color: transparent}:host([variant=tertiary]:focus-within){--ds-auro-button-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused, #01426a)}:host([variant=tertiary][disabled]){--ds-auro-button-container-color: var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, .05));--ds-auro-button-container-image: var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, .05));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([variant=ghost]){--ds-auro-button-container-color: transparent;--ds-auro-button-container-image: transparent;--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-advanced-color-button-ghost-text, #01426a);--ds-auro-button-loader-color: var(--ds-advanced-color-button-ghost-text, #01426a)}:host([variant=ghost]:not([disabled]):is([data-hover],[data-active])){--ds-auro-button-container-color: var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, .05));--ds-auro-button-container-image: var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, .05));--ds-auro-button-border-color: transparent}:host([variant=ghost]:focus-within){--ds-auro-button-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused, #01426a)}:host([variant=ghost][disabled]){--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([variant=flat]) .auro-button{border-color:transparent;background-color:transparent;background-image:none;color:var(--ds-advanced-color-button-flat-text, #676767)}:host([variant=flat]) .auro-button:active:not(:disabled),:host([variant=flat]) .auro-button:hover:not(:disabled){border-color:transparent;background-color:transparent;background-image:none;color:var(--ds-advanced-color-button-flat-text-hover, #525252)}:host([variant=flat]) .auro-button:disabled{border-color:transparent;background-color:transparent;background-image:none;color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0)}:host([variant=flat]:focus-within){--ds-auro-button-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused, #01426a)}:host([onDark]),:host([appearance=inverse]){--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-loader-color: var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-text-color: var(--ds-advanced-color-button-primary-text-inverse, #01426a)}:host([ondark]:not([disabled]):is([data-hover],[data-active])),:host([appearance=inverse]:not([disabled]):is([data-hover],[data-active])){--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}:host([ondark]:focus-within),:host([appearance=inverse]:focus-within){--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused, #01426a)}:host([ondark][disabled]),:host([appearance=inverse][disabled]){--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, .75));--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, .75));--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, .75));--ds-auro-button-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([ondark][variant=secondary]),:host([appearance=inverse][variant=secondary]){--ds-auro-button-container-color: transparent;--ds-auro-button-container-image: transparent;--ds-auro-button-border-color: var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color: var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color: var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}:host([ondark][variant=secondary]:not([disabled]):is([data-hover],[data-active])),:host([appearance=inverse][variant=secondary]:not([disabled]):is([data-hover],[data-active])){--ds-auro-button-text-color: var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-container-color: var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, .1));--ds-auro-button-container-image: var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, .1))}:host([ondark][variant=secondary]:focus-within),:host([appearance=inverse][variant=secondary]:focus-within){--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([ondark][variant=secondary][disabled]),:host([appearance=inverse][variant=secondary][disabled]){--ds-auro-button-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color: var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}:host([ondark][variant=tertiary]),:host([appearance=inverse][variant=tertiary]){--ds-auro-button-container-color: var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, .05));--ds-auro-button-container-image: var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, .05));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color: var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}:host([ondark][variant=tertiary]:not([disabled]):is([data-hover],[data-active])),:host([appearance=inverse][variant=tertiary]:not([disabled]):is([data-hover],[data-active])){--ds-auro-button-container-color: var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, .1));--ds-auro-button-container-image: var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, .1))}:host([ondark][variant=tertiary]:focus-within),:host([appearance=inverse][variant=tertiary]:focus-within){--ds-auro-button-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([ondark][variant=tertiary][disabled]),:host([appearance=inverse][variant=tertiary][disabled]){--ds-auro-button-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([ondark][variant=ghost]),:host([appearance=inverse][variant=ghost]){--ds-auro-button-container-color: transparent;--ds-auro-button-container-image: transparent;--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-advanced-color-button-ghost-text-inverse, #ffffff);--ds-auro-button-loader-color: var(--ds-advanced-color-button-ghost-text-inverse, #ffffff)}:host([ondark][variant=ghost]:not([disabled]):is([data-hover],[data-active])),:host([appearance=inverse][variant=ghost]:not([disabled]):is([data-hover],[data-active])){--ds-auro-button-container-color: var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, .05));--ds-auro-button-container-image: var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, .05));--ds-auro-button-border-color: transparent}:host([ondark][variant=ghost]:focus-within),:host([appearance=inverse][variant=ghost]:focus-within){border-color:transparent;--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([ondark][variant=ghost][disabled]),:host([appearance=inverse][variant=ghost][disabled]){--ds-auro-button-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([ondark][variant=flat]) .auro-button,:host([appearance=inverse][variant=flat]) .auro-button{border-color:transparent;background-color:transparent;background-image:none;color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff)}:host([ondark][variant=flat]) .auro-button:active:not(:disabled),:host([ondark][variant=flat]) .auro-button:hover:not(:disabled),:host([appearance=inverse][variant=flat]) .auro-button:active:not(:disabled),:host([appearance=inverse][variant=flat]) .auro-button:hover:not(:disabled){border-color:transparent;background-color:transparent;background-image:none;color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad)}:host([ondark][variant=flat]) .auro-button:disabled,:host([appearance=inverse][variant=flat]) .auro-button:disabled{border-color:transparent;background-color:transparent;background-image:none;color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894)}:host([ondark][variant=flat]:focus-within),:host([appearance=inverse][variant=flat]:focus-within){--ds-auro-button-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}
|
|
26
|
+
`,Be=e`.shape-rounded-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:6px}.shape-rounded-xl.simple{border-width:0px;min-height:72px;max-height:72px;box-shadow:none}.shape-rounded-xl.thin{border-width:1px;min-height:70px;max-height:70px}.shape-rounded-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-circle-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:50%;min-width:72px;max-width:72px;padding:0}.shape-circle-xl.simple{border-width:0px;min-height:72px;max-height:72px;box-shadow:none}.shape-circle-xl.thin{border-width:1px;min-height:70px;max-height:70px}.shape-circle-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-square-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:6px;min-width:72px;max-width:72px;padding:0}.shape-square-xl.simple{border-width:0px;min-height:72px;max-height:72px;box-shadow:none}.shape-square-xl.thin{border-width:1px;min-height:70px;max-height:70px}.shape-square-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:28px}.shape-pill-lg.simple{border-width:0px;min-height:56px;max-height:56px;box-shadow:none}.shape-pill-lg.thin{border-width:1px;min-height:54px;max-height:54px}.shape-pill-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-left-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:28px 0 0 28px}.shape-pill-left-lg.simple{border-width:0px;min-height:56px;max-height:56px;box-shadow:none}.shape-pill-left-lg.thin{border-width:1px;min-height:54px;max-height:54px}.shape-pill-left-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-right-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:0 28px 28px 0}.shape-pill-right-lg.simple{border-width:0px;min-height:56px;max-height:56px;box-shadow:none}.shape-pill-right-lg.thin{border-width:1px;min-height:54px;max-height:54px}.shape-pill-right-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-circle-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:50%;min-width:56px;max-width:56px;padding:0}.shape-circle-lg.simple{border-width:0px;min-height:56px;max-height:56px;box-shadow:none}.shape-circle-lg.thin{border-width:1px;min-height:54px;max-height:54px}.shape-circle-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-square-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:6px;min-width:56px;max-width:56px;padding:0}.shape-square-lg.simple{border-width:0px;min-height:56px;max-height:56px;box-shadow:none}.shape-square-lg.thin{border-width:1px;min-height:54px;max-height:54px}.shape-square-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-rounded-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:6px}.shape-rounded-md.simple{border-width:0px;min-height:48px;max-height:48px;box-shadow:none}.shape-rounded-md.thin{border-width:1px;min-height:46px;max-height:46px}.shape-rounded-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:24px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:24px 0 0 24px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:0 24px 24px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-circle-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:50%;min-width:48px;max-width:48px;padding:0}.shape-circle-md.simple{border-width:0px;min-height:48px;max-height:48px;box-shadow:none}.shape-circle-md.thin{border-width:1px;min-height:46px;max-height:46px}.shape-circle-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-square-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:6px;min-width:48px;max-width:48px;padding:0}.shape-square-md.simple{border-width:0px;min-height:48px;max-height:48px;box-shadow:none}.shape-square-md.thin{border-width:1px;min-height:46px;max-height:46px}.shape-square-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-rounded-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:6px}.shape-rounded-sm.simple{border-width:0px;min-height:36px;max-height:36px;box-shadow:none}.shape-rounded-sm.thin{border-width:1px;min-height:34px;max-height:34px}.shape-rounded-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-pill-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:18px}.shape-pill-sm.simple{border-width:0px;min-height:36px;max-height:36px;box-shadow:none}.shape-pill-sm.thin{border-width:1px;min-height:34px;max-height:34px}.shape-pill-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-pill-left-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:18px 0 0 18px}.shape-pill-left-sm.simple{border-width:0px;min-height:36px;max-height:36px;box-shadow:none}.shape-pill-left-sm.thin{border-width:1px;min-height:34px;max-height:34px}.shape-pill-left-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-pill-right-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:0 18px 18px 0}.shape-pill-right-sm.simple{border-width:0px;min-height:36px;max-height:36px;box-shadow:none}.shape-pill-right-sm.thin{border-width:1px;min-height:34px;max-height:34px}.shape-pill-right-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-circle-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:50%;min-width:36px;max-width:36px;padding:0}.shape-circle-sm.simple{border-width:0px;min-height:36px;max-height:36px;box-shadow:none}.shape-circle-sm.thin{border-width:1px;min-height:34px;max-height:34px}.shape-circle-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-square-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:6px;min-width:36px;max-width:36px;padding:0}.shape-square-sm.simple{border-width:0px;min-height:36px;max-height:36px;box-shadow:none}.shape-square-sm.thin{border-width:1px;min-height:34px;max-height:34px}.shape-square-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-rounded-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:4px}.shape-rounded-xs.simple{border-width:0px;min-height:24px;max-height:24px;box-shadow:none}.shape-rounded-xs.thin{border-width:1px;min-height:22px;max-height:22px}.shape-rounded-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-pill-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:12px}.shape-pill-xs.simple{border-width:0px;min-height:24px;max-height:24px;box-shadow:none}.shape-pill-xs.thin{border-width:1px;min-height:22px;max-height:22px}.shape-pill-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-pill-left-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:12px 0 0 12px}.shape-pill-left-xs.simple{border-width:0px;min-height:24px;max-height:24px;box-shadow:none}.shape-pill-left-xs.thin{border-width:1px;min-height:22px;max-height:22px}.shape-pill-left-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-pill-right-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:0 12px 12px 0}.shape-pill-right-xs.simple{border-width:0px;min-height:24px;max-height:24px;box-shadow:none}.shape-pill-right-xs.thin{border-width:1px;min-height:22px;max-height:22px}.shape-pill-right-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-circle-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:50%;min-width:24px;max-width:24px;padding:0}.shape-circle-xs.simple{border-width:0px;min-height:24px;max-height:24px;box-shadow:none}.shape-circle-xs.thin{border-width:1px;min-height:22px;max-height:22px}.shape-circle-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-square-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:6px;min-width:24px;max-width:24px;padding:0}.shape-square-xs.simple{border-width:0px;min-height:24px;max-height:24px;box-shadow:none}.shape-square-xs.thin{border-width:1px;min-height:22px;max-height:22px}.shape-square-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}
|
|
27
|
+
`,Ce=e`:focus:not(:focus-visible){outline:3px solid transparent}.body-default{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-default-font-size, 1rem);font-variant-ligatures:none;font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-default-emphasized-font-size, 1rem);font-variant-ligatures:none;font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-lg-font-size, 1.125rem);font-variant-ligatures:none;font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-lg-emphasized-font-size, 1.125rem);font-variant-ligatures:none;font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-sm-font-size, .875rem);font-variant-ligatures:none;font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-sm-emphasized-font-size, .875rem);font-variant-ligatures:none;font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-xs-font-size, .75rem);font-variant-ligatures:none;font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-xs-emphasized-font-size, .75rem);font-variant-ligatures:none;font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-variant-ligatures:none;font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, .875rem)}.body-2xs,.body-2xs-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-emphasized-font-size, .625rem);font-variant-ligatures:none;font-weight:var(--wcss-body-2xs-emphasized-weight, );line-height:var(--wcss-body-2xs-emphasized-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-variant-ligatures:none;font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-variant-ligatures:none;font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-variant-ligatures:none;font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-variant-ligatures:none;font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-variant-ligatures:none;font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-variant-ligatures:none;font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-xs-weight, 300);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-2xs-weight, 300);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}:host([size=xs][shape=rounded]) ::slotted(auro-icon),:host([size=xs][shape=rounded]) ::slotted([auro-icon]),:host([size=xs][shape=rounded]) ::slotted(svg),:host([size=xs][shape=rounded]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-200, 1rem)}:host([size=xs][shape=rounded][variant=primary]) .auro-button:focus,:host([size=xs][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=rounded][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=xs][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=xs][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=xs][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill]) ::slotted(auro-icon),:host([size=xs][shape=pill]) ::slotted([auro-icon]),:host([size=xs][shape=pill]) ::slotted(svg),:host([size=xs][shape=pill]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-200, 1rem)}:host([size=xs][shape=pill][variant=primary]) .auro-button:focus,:host([size=xs][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=pill][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=xs][shape=pill][variant=secondary]) .auro-button:focus,:host([size=xs][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill][variant=ghost]) .auro-button:focus,:host([size=xs][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-left]) ::slotted(auro-icon),:host([size=xs][shape=pill-left]) ::slotted([auro-icon]),:host([size=xs][shape=pill-left]) ::slotted(svg),:host([size=xs][shape=pill-left]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-200, 1rem)}:host([size=xs][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=xs][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=xs][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=xs][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=xs][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-right]) ::slotted(auro-icon),:host([size=xs][shape=pill-right]) ::slotted([auro-icon]),:host([size=xs][shape=pill-right]) ::slotted(svg),:host([size=xs][shape=pill-right]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-200, 1rem)}:host([size=xs][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=xs][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=xs][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=xs][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=xs][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle]) ::slotted(auro-icon),:host([size=xs][shape=circle]) ::slotted([auro-icon]),:host([size=xs][shape=circle]) ::slotted(svg),:host([size=xs][shape=circle]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xs][shape=circle][variant=primary]) .auro-button:focus,:host([size=xs][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=circle][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=xs][shape=circle][variant=secondary]) .auro-button:focus,:host([size=xs][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle][variant=flat]) .auro-button:focus,:host([size=xs][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle][variant=ghost]) .auro-button:focus,:host([size=xs][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square]) ::slotted(auro-icon),:host([size=xs][shape=square]) ::slotted([auro-icon]),:host([size=xs][shape=square]) ::slotted(svg),:host([size=xs][shape=square]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xs][shape=square][variant=primary]) .auro-button:focus,:host([size=xs][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=square][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=xs][shape=square][variant=secondary]) .auro-button:focus,:host([size=xs][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square][variant=flat]) .auro-button:focus,:host([size=xs][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square][variant=ghost]) .auro-button:focus,:host([size=xs][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=rounded]) ::slotted(auro-icon),:host([size=sm][shape=rounded]) ::slotted([auro-icon]),:host([size=sm][shape=rounded]) ::slotted(svg),:host([size=sm][shape=rounded]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=rounded][variant=primary]) .auro-button:focus,:host([size=sm][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=rounded][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=sm][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=sm][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=sm][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill]) ::slotted(auro-icon),:host([size=sm][shape=pill]) ::slotted([auro-icon]),:host([size=sm][shape=pill]) ::slotted(svg),:host([size=sm][shape=pill]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=pill][variant=primary]) .auro-button:focus,:host([size=sm][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=pill][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=sm][shape=pill][variant=secondary]) .auro-button:focus,:host([size=sm][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill][variant=ghost]) .auro-button:focus,:host([size=sm][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-left]) ::slotted(auro-icon),:host([size=sm][shape=pill-left]) ::slotted([auro-icon]),:host([size=sm][shape=pill-left]) ::slotted(svg),:host([size=sm][shape=pill-left]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=sm][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=sm][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=sm][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=sm][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-right]) ::slotted(auro-icon),:host([size=sm][shape=pill-right]) ::slotted([auro-icon]),:host([size=sm][shape=pill-right]) ::slotted(svg),:host([size=sm][shape=pill-right]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=sm][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=sm][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=sm][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=sm][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle]) ::slotted(auro-icon),:host([size=sm][shape=circle]) ::slotted([auro-icon]),:host([size=sm][shape=circle]) ::slotted(svg),:host([size=sm][shape=circle]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=circle][variant=primary]) .auro-button:focus,:host([size=sm][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=circle][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=sm][shape=circle][variant=secondary]) .auro-button:focus,:host([size=sm][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle][variant=flat]) .auro-button:focus,:host([size=sm][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle][variant=ghost]) .auro-button:focus,:host([size=sm][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square]) ::slotted(auro-icon),:host([size=sm][shape=square]) ::slotted([auro-icon]),:host([size=sm][shape=square]) ::slotted(svg),:host([size=sm][shape=square]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=square][variant=primary]) .auro-button:focus,:host([size=sm][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=square][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=sm][shape=square][variant=secondary]) .auro-button:focus,:host([size=sm][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square][variant=flat]) .auro-button:focus,:host([size=sm][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square][variant=ghost]) .auro-button:focus,:host([size=sm][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=rounded]) ::slotted(auro-icon),:host([size=md][shape=rounded]) ::slotted([auro-icon]),:host([size=md][shape=rounded]) ::slotted(svg),:host([size=md][shape=rounded]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=rounded][variant=primary]) .auro-button:focus,:host([size=md][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=md][shape=rounded][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=md][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=md][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=md][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=md][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill]) ::slotted(auro-icon),:host([size=md][shape=pill]) ::slotted([auro-icon]),:host([size=md][shape=pill]) ::slotted(svg),:host([size=md][shape=pill]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=pill][variant=primary]) .auro-button:focus,:host([size=md][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=md][shape=pill][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=md][shape=pill][variant=secondary]) .auro-button:focus,:host([size=md][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=md][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill][variant=ghost]) .auro-button:focus,:host([size=md][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-left]) ::slotted(auro-icon),:host([size=md][shape=pill-left]) ::slotted([auro-icon]),:host([size=md][shape=pill-left]) ::slotted(svg),:host([size=md][shape=pill-left]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=md][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=md][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=md][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=md][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=md][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=md][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-right]) ::slotted(auro-icon),:host([size=md][shape=pill-right]) ::slotted([auro-icon]),:host([size=md][shape=pill-right]) ::slotted(svg),:host([size=md][shape=pill-right]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=md][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=md][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=md][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=md][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=md][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=md][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle]) ::slotted(auro-icon),:host([size=md][shape=circle]) ::slotted([auro-icon]),:host([size=md][shape=circle]) ::slotted(svg),:host([size=md][shape=circle]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=circle][variant=primary]) .auro-button:focus,:host([size=md][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=md][shape=circle][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=md][shape=circle][variant=secondary]) .auro-button:focus,:host([size=md][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=md][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle][variant=flat]) .auro-button:focus,:host([size=md][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle][variant=ghost]) .auro-button:focus,:host([size=md][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square]) ::slotted(auro-icon),:host([size=md][shape=square]) ::slotted([auro-icon]),:host([size=md][shape=square]) ::slotted(svg),:host([size=md][shape=square]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=square][variant=primary]) .auro-button:focus,:host([size=md][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square][variant=primary]) .auro-button:focus:after,:host([size=md][shape=square][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=md][shape=square][variant=secondary]) .auro-button:focus,:host([size=md][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square][variant=tertiary]) .auro-button:focus,:host([size=md][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square][variant=flat]) .auro-button:focus,:host([size=md][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square][variant=ghost]) .auro-button:focus,:host([size=md][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=rounded]) ::slotted(auro-icon),:host([size=lg][shape=rounded]) ::slotted([auro-icon]),:host([size=lg][shape=rounded]) ::slotted(svg),:host([size=lg][shape=rounded]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=lg][shape=rounded][variant=primary]) .auro-button:focus,:host([size=lg][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=rounded][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=lg][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=lg][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=lg][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill]) ::slotted(auro-icon),:host([size=lg][shape=pill]) ::slotted([auro-icon]),:host([size=lg][shape=pill]) ::slotted(svg),:host([size=lg][shape=pill]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=lg][shape=pill][variant=primary]) .auro-button:focus,:host([size=lg][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=pill][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=lg][shape=pill][variant=secondary]) .auro-button:focus,:host([size=lg][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill][variant=ghost]) .auro-button:focus,:host([size=lg][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-left]) ::slotted(auro-icon),:host([size=lg][shape=pill-left]) ::slotted([auro-icon]),:host([size=lg][shape=pill-left]) ::slotted(svg),:host([size=lg][shape=pill-left]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=lg][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=lg][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=lg][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=lg][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=lg][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-right]) ::slotted(auro-icon),:host([size=lg][shape=pill-right]) ::slotted([auro-icon]),:host([size=lg][shape=pill-right]) ::slotted(svg),:host([size=lg][shape=pill-right]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=lg][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=lg][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=lg][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=lg][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=lg][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle]) ::slotted(auro-icon),:host([size=lg][shape=circle]) ::slotted([auro-icon]),:host([size=lg][shape=circle]) ::slotted(svg),:host([size=lg][shape=circle]) ::slotted(img){--ds-auro-icon-size: calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, .25rem))}:host([size=lg][shape=circle][variant=primary]) .auro-button:focus,:host([size=lg][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4.33px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=circle][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=lg][shape=circle][variant=secondary]) .auro-button:focus,:host([size=lg][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle][variant=flat]) .auro-button:focus,:host([size=lg][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle][variant=ghost]) .auro-button:focus,:host([size=lg][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square]) ::slotted(auro-icon),:host([size=lg][shape=square]) ::slotted([auro-icon]),:host([size=lg][shape=square]) ::slotted(svg),:host([size=lg][shape=square]) ::slotted(img){--ds-auro-icon-size: calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, .25rem))}:host([size=lg][shape=square][variant=primary]) .auro-button:focus,:host([size=lg][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4.33px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=square][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=lg][shape=square][variant=secondary]) .auro-button:focus,:host([size=lg][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square][variant=flat]) .auro-button:focus,:host([size=lg][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square][variant=ghost]) .auro-button:focus,:host([size=lg][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=rounded]) ::slotted(auro-icon),:host([size=xl][shape=rounded]) ::slotted([auro-icon]),:host([size=xl][shape=rounded]) ::slotted(svg),:host([size=xl][shape=rounded]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xl][shape=rounded][variant=primary]) .auro-button:focus,:host([size=xl][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=rounded][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=xl][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=xl][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=xl][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill]) ::slotted(auro-icon),:host([size=xl][shape=pill]) ::slotted([auro-icon]),:host([size=xl][shape=pill]) ::slotted(svg),:host([size=xl][shape=pill]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xl][shape=pill][variant=primary]) .auro-button:focus,:host([size=xl][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=pill][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=xl][shape=pill][variant=secondary]) .auro-button:focus,:host([size=xl][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill][variant=ghost]) .auro-button:focus,:host([size=xl][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-left]) ::slotted(auro-icon),:host([size=xl][shape=pill-left]) ::slotted([auro-icon]),:host([size=xl][shape=pill-left]) ::slotted(svg),:host([size=xl][shape=pill-left]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xl][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=xl][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=xl][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=xl][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=xl][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-right]) ::slotted(auro-icon),:host([size=xl][shape=pill-right]) ::slotted([auro-icon]),:host([size=xl][shape=pill-right]) ::slotted(svg),:host([size=xl][shape=pill-right]) ::slotted(img){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xl][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=xl][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=xl][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=xl][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=xl][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle]) ::slotted(auro-icon),:host([size=xl][shape=circle]) ::slotted([auro-icon]),:host([size=xl][shape=circle]) ::slotted(svg),:host([size=xl][shape=circle]) ::slotted(img){--ds-auro-icon-size: calc(var(--ds-size-400, 2rem) + var(--ds-size-50, .25rem))}:host([size=xl][shape=circle][variant=primary]) .auro-button:focus,:host([size=xl][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=circle][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=xl][shape=circle][variant=secondary]) .auro-button:focus,:host([size=xl][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle][variant=flat]) .auro-button:focus,:host([size=xl][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle][variant=ghost]) .auro-button:focus,:host([size=xl][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square]) ::slotted(auro-icon),:host([size=xl][shape=square]) ::slotted([auro-icon]),:host([size=xl][shape=square]) ::slotted(svg),:host([size=xl][shape=square]) ::slotted(img){--ds-auro-icon-size: calc(var(--ds-size-400, 2rem) + var(--ds-size-50, .25rem))}:host([size=xl][shape=square][variant=primary]) .auro-button:focus,:host([size=xl][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=square][variant=primary]) .auro-button:focus-visible:after{position:absolute;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);box-sizing:content-box;border:1px solid var(--ds-auro-button-border-color);border-radius:inherit;content:""}:host([size=xl][shape=square][variant=secondary]) .auro-button:focus,:host([size=xl][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square][variant=flat]) .auro-button:focus,:host([size=xl][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square][variant=ghost]) .auro-button:focus,:host([size=xl][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([shape=square]) ::slotted(svg),:host([shape=square]) ::slotted(img),:host([shape=circle]) ::slotted(svg),:host([shape=circle]) ::slotted(img){width:var(--ds-auro-icon-size);height:var(--ds-auro-icon-size);object-fit:contain}:host([shape=square]) .textSlot,:host([shape=circle]) .textSlot{fill:currentcolor}:host([size=xs]) .inset .contentWrapper{overflow:hidden;margin-inline:var(--ds-size-150, .75rem);text-overflow:ellipsis;white-space:nowrap}:host([size=sm]) .inset .contentWrapper{overflow:hidden;margin-inline:var(--ds-size-200, 1rem);text-overflow:ellipsis;white-space:nowrap}:host([size=md]) .inset .contentWrapper{overflow:hidden;margin-inline:var(--ds-size-300, 1.5rem);text-overflow:ellipsis;white-space:nowrap}:host([size=lg]) .inset .contentWrapper{overflow:hidden;margin-inline:var(--ds-size-400, 2rem);text-overflow:ellipsis;white-space:nowrap}:host([size=xl]) .inset .contentWrapper{overflow:hidden;margin-inline:var(--ds-size-500, 2.5rem);text-overflow:ellipsis;white-space:nowrap}.textSlot.iconOnly{gap:0}:host([variant=flat]){display:inline-block}::slotted(svg){vertical-align:middle}.textSlot{display:inline-flex;align-items:center;gap:var(--ds-size-100, .5rem)}.contentWrapper{font-size:0}slot{pointer-events:none}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}:host{display:inline-block;overflow:hidden}.auro-button{position:relative;display:flex;overflow:hidden;box-sizing:content-box;flex-direction:row;align-items:center;justify-content:center;padding:0 var(--ds-size-300, 1.5rem);margin:0;cursor:pointer;gap:var(--ds-size-100, .5rem);outline:none;padding-block:unset;padding-inline:unset;text-overflow:ellipsis;-webkit-touch-callout:none;transition:padding .3s ease-out;-webkit-user-select:none;user-select:none;white-space:nowrap}.auro-button:focus,.auro-button:focus-visible{outline:none}.auro-button:active{transform:scale(.95)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}:host([fluid]){display:block}:host([fluid]) .auro-button:not(.thin):not(.simple){width:calc(100% - 4px)}:host([fluid]) .auro-button.thin{width:calc(100% - 2px)}:host([fluid]) .auro-button.simple{width:100%}:host([static]) .auro-button{display:inline-flex;cursor:default;pointer-events:none}:host([static]) .auro-button .contentWrapper{display:inline-flex}
|
|
28
|
+
`,Ie=e`:host{--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color: var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color: var(--ds-advanced-color-button-primary-text, #ffffff)}
|
|
29
|
+
`;const Me=["circle","square"],Ne="auro-icon, [auro-icon], svg, img";class qe extends Ae{static get formAssociated(){return!0}constructor(){super(),this.autofocus=!1,this.disabled=!1,this.loading=!1,this.static=!1,this.size="md",this.shape="rounded",this.fluid=!1,this.loadingText="Loading...",this.variant="primary",this.runtimeUtils=new ae,"function"==typeof this.attachInternals?this.internals=this.attachInternals():(this.internals=null,console.warn("This browser does not support form association features. Some form-related functionality may not work as expected. Consider using a polyfill or handling click events manually."));const e=new se;this.loaderTag=e.generateTag("auro-loader","6.3.0",ue),this.buttonHref=void 0,this.buttonTarget=void 0,this.buttonRel=void 0,this.lightDomObserver=new MutationObserver(e=>{e.some(e=>"characterData"!==e.type||this.isInAriaLabelSlot(e.target))&&this.requestUpdate()})}static get styles(){return[Ie,Ce,_e,Be]}static get properties(){return{...Ae.properties,layout:{type:Boolean,attribute:!1,reflect:!1},shape:{type:String,attribute:"shape",reflect:!0},size:{type:String,attribute:"size",reflect:!0},autofocus:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},fluid:{type:Boolean,reflect:!0},loading:{type:Boolean,reflect:!0},loadingText:{type:String,attribute:"loadingtext"},tIndex:{type:Number,attribute:"tindex",reflect:!0},tabindex:{type:String,reflect:!1},title:{type:String,reflect:!0},type:{type:String,reflect:!0},variant:{type:String,reflect:!0},buttonHref:{type:String,attribute:"buttonhref"},buttonTarget:{type:String,attribute:"buttontarget"},buttonRel:{type:String,attribute:"buttonrel"},static:{type:Boolean,reflect:!0}}}static register(e="auro-button"){ae.prototype.registerComponent(e,qe)}focus(e){this.static||this.renderRoot?.querySelector("button, a")?.focus(e)}surfaceSubmitEvent(){this.form&&this.form.requestSubmit()}get form(){return this.internals?this.internals.form:null}get showText(){return!Me.includes(this.shape)}get currentAriaLabel(){if(this.attributeWatcher)return this.attributeWatcher.getObservedAttribute("aria-label")||void 0}get currentAriaLabelledBy(){if(this.attributeWatcher)return this.attributeWatcher.getObservedAttribute("aria-labelledby")||void 0}get iconOnly(){return Me.includes(this.shape)}get slottedIcons(){return[...this.children].filter(e=>!e.slot&&(e.matches(Ne)||e.querySelector(Ne)))}renderIconOnlyStyle(e){const t=[...this.children],s=e.map(e=>`:not(:nth-child(${t.indexOf(e)+1}))`).join("");return r`
|
|
30
|
+
<style>
|
|
31
|
+
.iconOnly ::slotted(${s}) {
|
|
32
|
+
position: absolute;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
width: 1px;
|
|
35
|
+
height: 1px;
|
|
36
|
+
padding: 0;
|
|
37
|
+
border: 0;
|
|
38
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
41
|
+
`}getFontSize(){return(this.iconOnly?{xs:"heading-xs",sm:"heading-sm",md:"heading-sm",lg:"heading-md",xl:"heading-lg"}:{xs:"body-xs",sm:"body-sm",md:"body-default",lg:"body-lg",xl:"body-lg"})[this.size]||"body-default"}get _renderTag(){return this.static?i`span`:this.buttonHref?i`a`:i`button`}firstUpdated(){super.firstUpdated(),this.runtimeUtils.handleComponentTagRename(this,"auro-button")}connectedCallback(){super.connectedCallback(),this.lightDomObserver.observe(this,{attributeFilter:["auro-icon"],characterData:!0,childList:!0,subtree:!0})}disconnectedCallback(){super.disconnectedCallback(),this.lightDomObserver.disconnect()}isInAriaLabelSlot(e){const t=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement,s=t?.closest('[slot="ariaLabel"], [slot="ariaLabel.loading"]');return s?.parentElement===this}onAriaLabelSlotChange(){this.requestUpdate()}onDefaultSlotChange(){this.requestUpdate()}generateAriaLabel(){return this.loading?this.runtimeUtils.getSlotText(this,"ariaLabel.loading")||this.loadingText:this.runtimeUtils.getSlotText(this,"ariaLabel")||this.currentAriaLabel}onPointerEvent(e){switch(e.type){case"pointerenter":this.toggleAttribute("data-hover",!0);break;case"pointerleave":this.toggleAttribute("data-hover",!1);break;case"pointerdown":this.toggleAttribute("data-active",!0);break;case"pointerup":case"blur":this.toggleAttribute("data-active",!1)}}renderLayoutDefault(){const e=this.getFontSize(),t=this.buttonHref?"link":"button",s={"auro-button":!0,inset:this.showText,wrapper:!0,loading:this.loading,simple:!["secondary"].includes(this.variant),thin:["secondary"].includes(this.variant)},a={contentWrapper:!0,loading:this.loading},o=this.slottedIcons,i=this.iconOnly&&o.length>0,c={textSlot:!0,iconOnly:i,[e]:this.showText||0===o.length},d=this.tIndex??this.tabindex;return r`
|
|
42
|
+
${i?this.renderIconOnlyStyle(o):void 0}
|
|
43
|
+
|
|
44
|
+
<!-- Hidden slots for aria labels -->
|
|
45
|
+
<slot name="ariaLabel" hidden @slotchange="${this.onAriaLabelSlotChange}"></slot>
|
|
46
|
+
<slot name="ariaLabel.loading" hidden @slotchange="${this.onAriaLabelSlotChange}"></slot>
|
|
47
|
+
|
|
48
|
+
<${this._renderTag}
|
|
49
|
+
part="${t}"
|
|
50
|
+
aria-label="${l(this.generateAriaLabel())}"
|
|
51
|
+
aria-labelledby="${l(this.loading?void 0:this.currentAriaLabelledBy||void 0)}"
|
|
52
|
+
tabindex="${l(this.static?void 0:d)}"
|
|
53
|
+
?autofocus="${this.autofocus}"
|
|
54
|
+
class=${n(s)}
|
|
55
|
+
?disabled="${this.disabled||this.loading}"
|
|
56
|
+
?onDark="${this.onDark}"
|
|
57
|
+
title="${l(this.title?this.title:void 0)}"
|
|
58
|
+
name="${l(this.name?this.name:void 0)}"
|
|
59
|
+
type="${l(this.type?this.type:void 0)}"
|
|
60
|
+
variant="${l(this.variant?this.variant:void 0)}"
|
|
61
|
+
@click="${this.static||"submit"!==this.type?void 0:this.surfaceSubmitEvent}"
|
|
62
|
+
@pointerenter="${this.onPointerEvent}"
|
|
63
|
+
@pointerleave="${this.onPointerEvent}"
|
|
64
|
+
@pointerdown="${this.onPointerEvent}"
|
|
65
|
+
@pointerup="${this.onPointerEvent}"
|
|
66
|
+
@blur="${this.onPointerEvent}"
|
|
67
|
+
href="${l(this.buttonHref||void 0)}"
|
|
68
|
+
target="${l(this.buttonTarget||void 0)}"
|
|
69
|
+
rel="${l(this.buttonRel||void 0)}"
|
|
70
|
+
>
|
|
71
|
+
${l(this.loading?r`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>`:void 0)}
|
|
72
|
+
|
|
73
|
+
<span class="${n(a)}" part="contentWrapper">
|
|
74
|
+
<span class="${n(c)}" part="text">
|
|
75
|
+
<slot @slotchange="${this.onDefaultSlotChange}"></slot>
|
|
76
|
+
</span>
|
|
77
|
+
</span>
|
|
78
|
+
</${this._renderTag}>
|
|
79
|
+
`}renderLayout(){return this.renderLayoutDefault()}}var Oe='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="chevron-left__desc" class="ico_squareLarge" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="chevron-left__desc">Directional indicator; left.</desc><path d="m14.395 6.345.084.073a.75.75 0 0 1 .072.977l-.072.084-4.47 4.47 4.47 4.47a.75.75 0 0 1 .072.976l-.072.084a.75.75 0 0 1-.977.072l-.084-.072-4.823-4.823a1 1 0 0 1 0-1.415l4.823-4.823a.75.75 0 0 1 .977-.073"/></svg>',Le='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="chevron-right__desc" class="ico_squareLarge" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="chevron-right__desc">Directional indicator; right.</desc><path d="m9.605 17.551-.084-.072a.75.75 0 0 1-.072-.977l.072-.084 4.47-4.47-4.47-4.47a.75.75 0 0 1-.072-.976l.072-.084a.75.75 0 0 1 .977-.073l.084.073 4.823 4.823a1 1 0 0 1 0 1.415l-4.823 4.823a.75.75 0 0 1-.977.072"/></svg>',Fe='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="pause__desc" class="ico_squareLarge" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="pause__desc">two vertical parallel lines</desc><path fill-rule="evenodd" d="M6 .5A1.5 1.5 0 0 1 7.5 2v20a1.5 1.5 0 0 1-3 0V2A1.5 1.5 0 0 1 6 .5m12 0A1.5 1.5 0 0 1 19.5 2v20a1.5 1.5 0 0 1-3 0V2A1.5 1.5 0 0 1 18 .5" clip-rule="evenodd"/></svg>',Re='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="play-filled__desc" class="ico_squareLarge" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="play-filled__desc">solid triangle pointing right</desc><path fill-rule="evenodd" d="m6.977 1.02.348.163 15.555 8.889c1.369.782 1.483 2.656.342 3.62l-.342.239-15.555 8.888c-1.368.782-3.044-.07-3.293-1.547L4 20.89V3.112C4 1.537 5.57.505 6.977 1.021" clip-rule="evenodd"/></svg>';class Te{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{})}closestElement(e,t=this,s=(t,a=t&&t.closest(e))=>t&&t!==document&&t!==window?a||s(t.getRootNode().host):null){return s(t)}handleComponentTagRename(e,t){const s=t.toLowerCase();e.tagName.toLowerCase()!==s&&e.setAttribute(s,!0)}elementMatch(e,t){const s=t.toLowerCase();return e.tagName.toLowerCase()===s||e.hasAttribute(s)}getSlotText(e,t){const s=e.shadowRoot?.querySelector(`slot[name="${t}"]`);return(s?.assignedNodes({flatten:!0})||[]).map(e=>e.textContent?.trim()).join(" ").trim()||null}}class Ee extends t{static get properties(){return{hidden:{type:Boolean,reflect:!0},hiddenVisually:{type:Boolean,reflect:!0},hiddenAudible:{type:Boolean,reflect:!0}}}hideAudible(e){return e?"true":"false"}}const He=new Map,Ue=(e,t={})=>{const s=t.responseParser||(e=>e.text());return He.has(e)||He.set(e,fetch(e).then(s)),He.get(e)};var De=e`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem)!important;width:var(--ds-auro-icon-size, 1.5rem)!important;height:var(--ds-auro-icon-size, 1.5rem)!important}.componentWrapper{display:flex;line-height:var(--ds-auro-icon-size)}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.svgWrapper [part=svg]{display:flex}.labelWrapper{margin-left:var(--ds-size-50, .25rem)}.labelWrapper ::slotted(*){line-height:inherit!important}
|
|
80
|
+
`;class $e extends Ee{constructor(){super(),this._initializeDefaults()}_initializeDefaults(){this.onDark=!1,this.appearance="default"}static get properties(){return{...Ee.properties,onDark:{type:Boolean,attribute:"ondark",reflect:!0},appearance:{type:String,reflect:!0},svg:{attribute:!1}}}static get styles(){return De}async fetchIcon(e,t){let s="";return s="logos"===e?await Ue(`${this.uri}/${e}/${t}.svg`):await Ue(`${this.uri}/icons/${e}/${t}.svg`),(new DOMParser).parseFromString(s,"text/html").body.querySelector("svg")}async firstUpdated(){await this.loadIcon()}async loadIcon(){this._loadId=(this._loadId||0)+1;const e=this._loadId;if(this.customSvg)return;let t;try{if(this.category&&this.name&&(t=await this.fetchIcon(this.category,this.name)),!t){const e=this.name?.startsWith("tail-")?'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" style="min-width:100%;height:auto;fill:currentColor" viewBox="0 0 142 138" part="svg"><title id="tail-DEFAULT__title">Airplane tail default image with light gray color</title><path fill="url(#paint0_linear_9225_2069)" fill-rule="evenodd" d="M124.093 14.665a3.26 3.26 0 0 1 3.208 3.829L101.097 119.85c-.47 1.087-2.211 3.398-5.692 3.471l-.106.001-80.65.013A659230 659230 0 0 1 99.08 17.412c1.214-1.497 3.275-2.722 5.372-2.747z" clip-rule="evenodd"/><defs><linearGradient id="paint0_linear_9225_2069" x1="114.823" x2="60.061" y1="14.665" y2="123.335" gradientUnits="userSpaceOnUse"><stop offset=".5" stop-color="#707984"/><stop offset=".5" stop-color="#646E7B"/></linearGradient></defs></svg>':'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error-stroke__desc" class="ico_squareLarge" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error-stroke__desc">triangle with exclamation mark.</desc><path d="M12 15.34c-.41 0-.75-.34-.75-.75V9.33c0-.41.34-.75.75-.75s.75.34.75.75v5.26c0 .41-.34.75-.75.75m.87 1.62c0-.48-.39-.88-.88-.88s-.88.39-.88.88.39.88.88.88.88-.39.88-.88M11.98 4.5 3.5 18.97h16.99zm0-1.5c.5 0 1 .25 1.29.74l8.51 14.47c.59 1-.13 2.26-1.29 2.26H3.5c-1.16 0-1.88-1.26-1.29-2.26l8.48-14.47c.29-.49.79-.74 1.29-.74"/></svg>';t=(new DOMParser).parseFromString(e,"text/html").body.querySelector("svg")}}catch(e){t=void 0}e===this._loadId&&(this._sourceSvg=t,this.svg=t?this.prepareSvg(t):void 0)}prepareSvg(e){return e}}e`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}:host{display:inline-block;--ds-auro-icon-size: 100%;width:100%;height:100%}:host .logo{color:var(--ds-auro-alaska-color)}:host([onDark]),:host([appearance=inverse]){--ds-auro-alaska-color: #FFF}
|
|
81
|
+
`;var Pe=e`:host{--ds-auro-icon-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color: #02426D;--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}
|
|
82
|
+
`,We=e`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]),:host(:not([appearance=inverse])[variant=accent1]){--ds-auro-icon-color: var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]),:host(:not([appearance=inverse])[variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]),:host(:not([appearance=inverse])[variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]),:host(:not([appearance=inverse])[variant=statusDefault]){--ds-auro-icon-color: var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]),:host(:not([appearance=inverse])[variant=statusInfo]){--ds-auro-icon-color: var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]),:host(:not([appearance=inverse])[variant=statusSuccess]){--ds-auro-icon-color: var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]),:host(:not([appearance=inverse])[variant=statusWarning]){--ds-auro-icon-color: var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]),:host(:not([appearance=inverse])[variant=statusError]){--ds-auro-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]),:host(:not([appearance=inverse])[variant=statusInfoSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]),:host(:not([appearance=inverse])[variant=statusSuccessSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]),:host(:not([appearance=inverse])[variant=statusWarningSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]),:host(:not([appearance=inverse])[variant=statusErrorSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]),:host(:not([appearance=inverse])[variant=fareBasicEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]),:host(:not([appearance=inverse])[variant=fareBusiness]){--ds-auro-icon-color: var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]),:host(:not([appearance=inverse])[variant=fareEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]),:host(:not([appearance=inverse])[variant=fareFirst]){--ds-auro-icon-color: var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]),:host(:not([appearance=inverse])[variant=farePremiumEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]),:host(:not([appearance=inverse])[variant=tierOneWorldEmerald]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]),:host(:not([appearance=inverse])[variant=tierOneWorldSapphire]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]),:host(:not([appearance=inverse])[variant=tierOneWorldRuby]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]),:host([appearance=inverse]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]),:host([appearance=inverse][variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]),:host([appearance=inverse][variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]),:host([appearance=inverse][variant=statusError]){--ds-auro-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}
|
|
83
|
+
`;class Ve extends $e{constructor(){super(),this._initializeDefaults()}_initializeDefaults(){super._initializeDefaults(),this.variant=void 0,this.uri="https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist",this.runtimeUtils=new Te}static get properties(){return{...$e.properties,ariaHidden:{type:String,attribute:"ariahidden",reflect:!0},category:{type:String,reflect:!0},customColor:{type:Boolean,attribute:"customcolor",reflect:!0},customSvg:{type:Boolean,attribute:"customsvg"},label:{type:Boolean,reflect:!0},name:{type:String,reflect:!0},variant:{type:String,reflect:!0}}}static get styles(){return[$e.styles,Pe,De,We]}static register(e="auro-icon"){Te.prototype.registerComponent(e,Ve)}connectedCallback(){super.connectedCallback(),this.runtimeUtils.handleComponentTagRename(this,"auro-icon")}exposeCssParts(){this.setAttribute("exportparts","svg:iconSvg")}prepareSvg(e){if(!this.hasAttribute("ariaHidden")||"false"===this.ariaHidden)return e;const t=e.cloneNode(!0),s=t.querySelector("desc");return s&&(s.remove(),t.removeAttribute("aria-labelledby")),t}updated(e){super.updated(e),this._hasRendered?e.has("category")||e.has("name")||e.has("customSvg")?this.loadIcon():e.has("ariaHidden")&&this._sourceSvg&&(this.svg=this.prepareSvg(this._sourceSvg)):this._hasRendered=!0}render(){const e={labelWrapper:!0,util_displayHiddenVisually:!this.label};return s`
|
|
84
|
+
<div class="componentWrapper">
|
|
85
|
+
<div
|
|
86
|
+
class="${n({svgWrapper:!0})}"
|
|
87
|
+
title="${l(this.title||void 0)}">
|
|
88
|
+
<span aria-hidden="${l(this.ariaHidden||!0)}" part="svg">
|
|
89
|
+
${this.customSvg?s`
|
|
90
|
+
<slot name="svg"></slot>
|
|
91
|
+
`:s`
|
|
92
|
+
${this.svg}
|
|
93
|
+
`}
|
|
94
|
+
</span>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<div class="${n(e)}" part="label">
|
|
98
|
+
<slot></slot>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
`}}var je=e`.body-default{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-default-font-size, 1rem);font-variant-ligatures:none;font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-default-emphasized-font-size, 1rem);font-variant-ligatures:none;font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-lg-font-size, 1.125rem);font-variant-ligatures:none;font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-lg-emphasized-font-size, 1.125rem);font-variant-ligatures:none;font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-sm-font-size, .875rem);font-variant-ligatures:none;font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-sm-emphasized-font-size, .875rem);font-variant-ligatures:none;font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-xs-font-size, .75rem);font-variant-ligatures:none;font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-xs-emphasized-font-size, .75rem);font-variant-ligatures:none;font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-variant-ligatures:none;font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, .875rem)}.body-2xs,.body-2xs-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-emphasized-font-size, .625rem);font-variant-ligatures:none;font-weight:var(--wcss-body-2xs-emphasized-weight, );line-height:var(--wcss-body-2xs-emphasized-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-variant-ligatures:none;font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-variant-ligatures:none;font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-variant-ligatures:none;font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-variant-ligatures:none;font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-variant-ligatures:none;font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-variant-ligatures:none;font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-xs-weight, 300);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-2xs-weight, 300);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{--border-size: 6px;--border-radius: 24px;--dot-animation-time: .3s}.container{display:flex;width:100%;flex-direction:column;align-items:flex-start}.slideshow-wrapper{position:relative;display:flex;width:100%;overflow:hidden;align-items:center;justify-content:start;padding:var(--border-size);box-sizing:border-box}.embla{max-width:100%;margin:0;--slide-size: 100%;--slide-spacing: 1rem}.embla__container{display:flex;gap:var(--slide-spacing)}.embla__slide{transform:translateZ(0);min-width:0;flex:0 0 var(--slide-size);border-radius:var(--border-radius);box-sizing:border-box;overflow:hidden;filter:brightness(100%);transition:filter .5s ease-in-out}.embla__slide:focus-visible{outline:unset;box-shadow:0 0 0 2px var(--ds-advanced-color-state-focused-inverse, #ffffff),0 0 0 var(--border-size) var(--ds-advanced-color-state-focused, #01426a)}.embla__slide:not(.in-view){filter:brightness(65%)}:host([autoScroll]) .embla__slide{filter:unset}.scroll-prev,.scroll-next{position:absolute;display:none;top:50%;transform:translateY(-50%);z-index:10}.scroll-prev{left:8px}.scroll-next{right:8px}.slideshow-wrapper:hover .scroll-prev:not([disabled]),.slideshow-wrapper:hover .scroll-next:not([disabled]){display:block}.pagination-container{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;width:100%;margin-top:40px;gap:14px;padding-inline:var(--border-size);box-sizing:border-box}.embla__dots{display:flex;gap:16px}.embla__dot{width:12px;height:12px;border-radius:50%;border:none;background-color:var(--ds-advanced-color-button-primary-background-inactive, #cfe0ef);mix-blend-mode:multiply;position:relative;cursor:pointer;transition:all var(--dot-animation-time) ease-in-out}.embla__dot:hover:not(.embla__dot--selected){background-color:var(--ds-advanced-color-button-primary-background-inactive-hover, #89b2d4)}.embla__dot:before{content:"";width:24px;height:24px;position:absolute;cursor:pointer;top:50%;left:50%;transform:translate(-50%,-50%)}.embla__dot--selected{width:52px;height:12px;border-radius:1.8rem;background-color:var(--ds-advanced-color-button-primary-background, #01426a)}.embla__dot--selected:before{width:64px}.embla__progress{width:52px;height:12px;border-radius:1.8rem;border:none;background-color:var(--ds-advanced-color-button-primary-background-inactive, #cfe0ef);mix-blend-mode:multiply;position:relative;overflow:hidden;cursor:pointer;align-self:center;justify-self:center;transition:all var(--dot-animation-time) ease-in-out}.embla__progress:hover:not(.stopped){background-color:var(--ds-advanced-color-button-primary-background-inactive-hover, #89b2d4)}.embla__progress__bar{border-radius:inherit;background-color:var(--ds-advanced-color-button-primary-background, #01426a);position:absolute;width:100%;top:0;bottom:0;left:-100%;animation-delay:var(--dot-animation-time);animation-name:autoplay-progress;animation-timing-function:linear;animation-iteration-count:1;animation-play-state:running}.embla__progress--paused .embla__progress__bar{animation-play-state:paused}.stopped{background-color:var(--ds-advanced-color-button-primary-background, #01426a)}@keyframes autoplay-progress{0%{transform:translateZ(0)}to{transform:translate3d(100%,0,0)}}:host([loop]) .embla__container{gap:unset}:host([loop]) .embla__slide{margin-right:var(--slide-spacing)}:host([fullBleed]) .slideshow-wrapper{overflow:visible}:host([fullBleed]) .embla{width:100vw;position:relative;left:50%;transform:translate(-50%);max-width:none}:host([fullBleed]) .embla__slide{max-width:calc(var(--slideshow-width) - var(--border-size) * 2)}:host([fullBleed]:not([autoscroll])) .embla__slide:not(.active){filter:brightness(65%)}
|
|
102
|
+
`;class Ge extends t{constructor(){super(),this._initializeDefaults()}_initializeDefaults(){this.autoplay=!1,this.delay=7e3,this.autoScroll=!1,this.scrollSpeed=.75,this.startDelay=1e3,this.playOnInit=!1,this.loop=!1,this.navigation=!1,this.pagination=!1,this.playLabel="Play slideshow",this.pauseLabel="Pause slideshow",this.fullBleed=!1,this.playBtnLabel="Play slideshow",this.isPlaying=!1,this.embla=null,this.slides=[],this.isHovered=!1,this.isStopped=!0,this.runtimeUtils=new te;const e=new ee;this.buttonTag=e.generateTag("auro-button","13.0.3",qe),this.iconTag=e.generateTag("auro-icon","9.2.1",Ve)}static register(e="auro-slideshow"){te.prototype.registerComponent(e,Ge)}static get styles(){return[je]}static get properties(){return{autoplay:{type:Boolean,reflect:!0},autoScroll:{attribute:"autoscroll",type:Boolean,reflect:!0},playOnInit:{attribute:"playoninit",type:Boolean,reflect:!0},delay:{type:Number,reflect:!0},scrollSpeed:{attribute:"scrollspeed",type:Number,reflect:!0},startDelay:{attribute:"startdelay",type:Number,reflect:!0},playLabel:{attribute:"playlabel",type:String,reflect:!0},pauseLabel:{attribute:"pauselabel",type:String,reflect:!0},loop:{type:Boolean,reflect:!0},navigation:{type:Boolean,reflect:!0},pagination:{type:Boolean,reflect:!0},isPlaying:{type:Boolean,attribute:!1},fullBleed:{attribute:"fullbleed",type:Boolean,reflect:!0}}}get _slot(){return this.shadowRoot.querySelector("slot:not([name])")}get _playBtn(){return this.shadowRoot.querySelector(".play-pause")}get _prevBtn(){return this.shadowRoot.querySelector(".scroll-prev")}get _nextBtn(){return this.shadowRoot.querySelector(".scroll-next")}get _dotsNode(){return this.shadowRoot.querySelector(".embla__dots")}get _progressNode(){return this.shadowRoot.querySelector(".embla__progress")}get _slideshowWrapperNode(){return this.shadowRoot.querySelector(".slideshow-wrapper")}get _slideshowPaddingSize(){return Number.parseFloat(getComputedStyle(this._slideshowWrapperNode).paddingLeft)||0}play(){this.autoplay?this.embla?.plugins()?.autoplay.play():this.autoScroll&&this.embla?.plugins()?.autoScroll.play()}stop(){this.autoplay?this.embla?.plugins()?.autoplay.stop():this.autoScroll&&this.embla?.plugins()?.autoScroll.stop()}scrollPrev(){this.embla.scrollPrev()}scrollNext(){this.embla.scrollNext()}get _customAlign(){return this.fullBleed&&this._slideshowWrapperNode?()=>this._slideshowWrapperNode.getBoundingClientRect().left+this._slideshowPaddingSize:()=>0}_createWidthProp=()=>{if(this._slideshowWrapperNode){const{width:e}=this._slideshowWrapperNode.getBoundingClientRect();this.style.setProperty("--slideshow-width",`${e}px`)}};initializeEmbla(){const e=this.shadowRoot.querySelector(".embla"),t={loop:this.loop,align:this.fullBleed?this._customAlign:"start",inViewThreshold:.5},s={playOnInit:this.playOnInit,delay:this.delay,stopOnLastSnap:!this.loop},a={playOnInit:this.playOnInit,speed:this.scrollSpeed,startDelay:this.startDelay},o=[J({snapped:"active",inView:"in-view",loop:"",draggable:"",dragging:""})];this.autoplay&&this.autoScroll&&(console.warn("Autoplay and AutoScroll are not meant to be used together. AutoScroll has been disabled."),this.autoScroll=!1),this.autoplay&&o.push(Q(s)),this.autoScroll&&!this.isTouchDevice()&&o.push(j(a)),this.embla=W(e,t,o),this.pagination&&this.addDotBtnsAndClickHandlers(this.embla,this._dotsNode,this.stopOnInteraction),this.navigation&&!this.isTouchDevice()&&this.embla.on("select",this.toggleNavBtnsState).on("init",this.toggleNavBtnsState).on("reInit",this.toggleNavBtnsState),this.autoplay&&this.embla.on("autoplay:stop",this.togglePlayButtonOnStop).on("autoplay:play",this.togglePlayButtonOnPlay).on("init",this.togglePlayButtonOnStop),this.autoScroll&&!this.isTouchDevice()&&this.embla.on("autoScroll:stop",this.togglePlayButtonOnStop).on("autoScroll:play",this.togglePlayButtonOnPlay).on("init",this.togglePlayButtonOnStop),this.fullBleed&&this.embla.on("init",this._createWidthProp).on("resize",this._createWidthProp)}updateSlides(){if(this._slot){this.slides=Array.from(this._slot.assignedElements()),this.slides.forEach((e,t)=>{e.classList.add("embla__slide"),e.addEventListener("keydown",this.handleKeydown),0===t?e.setAttribute("tabindex","0"):e.setAttribute("tabindex","-1")});this.shadowRoot.querySelector(".embla__container").replaceChildren(...this.slides)}}toggleTabIndex=()=>{const e=this.slides[this.embla.selectedScrollSnap()];this.slides.forEach(e=>{e.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0")};togglePlayButtonOnStop=()=>{this.isPlaying=!1,this.playBtnLabel=this.runtimeUtils.getSlotText(this,"ariaLabel.slideshow.play")||this.playLabel};togglePlayButtonOnPlay=()=>{this.isPlaying=!0,this.playBtnLabel=this.runtimeUtils.getSlotText(this,"ariaLabel.slideshow.pause")||this.pauseLabel};toggleNavBtnsState=()=>{this.embla.canScrollPrev()?this._prevBtn.removeAttribute("disabled"):this._prevBtn.setAttribute("disabled",""),this.embla.canScrollNext()?this._nextBtn.removeAttribute("disabled"):this._nextBtn.setAttribute("disabled","")};stopOnInteraction=()=>{this.isPlaying&&(this.stop(),this.togglePlayButtonOnStop(),this.isStopped=!0)};isTouchDevice(){return window.matchMedia("(pointer: coarse)").matches}handleSlotChange(){this.updateSlides(),this.embla?this.embla.reInit():this.initializeEmbla(),this.embla.on("select",this.toggleTabIndex),(this.autoplay||this.autoScroll&&!this.isTouchDevice())&&(this.isPlaying=!0,this.playOnInit&&(this.isStopped=!1))}handleNavClick(e){"prev"===e&&this.scrollPrev(),"next"===e&&this.scrollNext(),this.stopOnInteraction()}handleKeydown=e=>{const t=()=>{setTimeout(()=>{this.slides[this.embla.selectedScrollSnap()].focus()},200)};"ArrowLeft"===e.key?(e.preventDefault(),this.scrollPrev(),t()):"ArrowRight"===e.key&&(e.preventDefault(),this.scrollNext(),t())};handlePlayClick(){this.isPlaying?(this.stop(),this.togglePlayButtonOnStop(),this.isStopped=!0):(this.play(),this.togglePlayButtonOnPlay(),this.isStopped=!1)}handleMouseEnter=()=>{this.isPlaying&&(this.stop(),this.isHovered=!0)};handleMouseLeave=()=>{this.isPlaying||this.isStopped||!this.isHovered||(this.play(),this.isHovered=!1)};addDotBtnsAndClickHandlers=(e,t)=>{let s=[];const a=()=>{const a=e.scrollSnapList().map((t,s)=>{const a=document.createElement("button");return a.className="embla__dot",a.type="button",a.tabIndex=-1,a.setAttribute("aria-label",`Go to slide ${s+1}`),a.addEventListener("click",()=>{e.scrollTo(s),this.stopOnInteraction()},!1),a});t.replaceChildren(...a),s=a},o=()=>{const t=e.selectedScrollSnap();s[t]&&s[t].classList.toggle("stopped",!this.isPlaying)},i=()=>{const t=e.previousScrollSnap(),a=e.selectedScrollSnap();if(this.autoplay){const i=document.createElement("div");i.className="embla__progress__bar",s[t]&&(s[t].className="embla__dot",s[t].replaceChildren()),s[a]&&(s[a].className="embla__progress",s[a].replaceChildren(i),this.isPlaying||s[a].classList.add("stopped")),this.addAutoplayProgressListeners(this.embla,this._progressNode),e.on("autoplay:play",o).on("autoplay:stop",o)}else s[t]&&s[t].classList.remove("embla__dot--selected"),s[a]&&s[a].classList.add("embla__dot--selected")};return e.on("init",a).on("reInit",a).on("init",i).on("reInit",i).on("select",i),()=>{t.replaceChildren()}};addAutoplayProgressListeners=(e,t)=>{const s=t.querySelector(".embla__progress__bar");let a="";const o=e=>{this._progressNode.classList.remove("embla__progress--paused");const t=e?.plugins()?.autoplay;if(!t)return;const o=t.timeUntilNext();if(null!==o){if(!a){const e=window.getComputedStyle(s);a=e.animationName}s.style.animationName="none",s.style.transform="translate3d(0,0,0)",window.requestAnimationFrame(()=>{window.setTimeout(()=>{s.style.animationName=a,s.style.animationDuration=`${o}ms`},0)})}},i=e=>{this._progressNode.classList.add("embla__progress--paused");e?.plugins()};return e.on("autoplay:timerset",o).on("autoplay:timerstopped",i).emit("autoplay:timerset"),()=>{e.off("autoplay:timerset",o).off("autoplay:timerstopped",i)}};disconnectedCallback(){super.disconnectedCallback(),this.embla&&(this.embla.off("select",this.toggleTabIndex),this.navigation&&!this.isTouchDevice()&&this.embla.off("select",this.toggleNavBtnsState).off("init",this.toggleNavBtnsState).off("reInit",this.toggleNavBtnsState),this.autoplay&&this.embla.off("autoplay:stop",this.togglePlayButtonOnStop).off("autoplay:play",this.togglePlayButtonOnPlay),this.autoScroll&&!this.isTouchDevice()&&this.embla.off("autoScroll:stop",this.togglePlayButtonOnStop).off("autoScroll:play",this.togglePlayButtonOnPlay),this.embla.destroy(),this.embla=null),this.slides.forEach(e=>{e.removeEventListener("keydown",this.handleKeydown)}),this.slides=[]}generateIconHtml(e,t){const s=(new DOMParser).parseFromString(e,"text/html").body.firstChild;return s.setAttribute("slot","svg"),r`<${this.iconTag} style="--ds-auro-icon-size: inherit" customColor customSvg ?hidden="${t}">${s}</${this.iconTag}>`}renderNavigationControls(){return r`
|
|
103
|
+
<${this.buttonTag}
|
|
104
|
+
aria-label="${this.runtimeUtils.getSlotText(this,"ariaLabel.scroll.left")||"Previous slide"}"
|
|
105
|
+
class="scroll-prev"
|
|
106
|
+
shape="circle"
|
|
107
|
+
appearance="inverse"
|
|
108
|
+
size="lg"
|
|
109
|
+
@click=${()=>this.handleNavClick("prev")}
|
|
110
|
+
part="prev-button">
|
|
111
|
+
${this.generateIconHtml(Oe)}
|
|
112
|
+
</${this.buttonTag}>
|
|
113
|
+
<${this.buttonTag}
|
|
114
|
+
aria-label="${this.runtimeUtils.getSlotText(this,"ariaLabel.scroll.right")||"Next slide"}"
|
|
115
|
+
class="scroll-next"
|
|
116
|
+
shape="circle"
|
|
117
|
+
appearance="inverse"
|
|
118
|
+
size="lg"
|
|
119
|
+
@click=${()=>this.handleNavClick("next")}
|
|
120
|
+
part="next-button">
|
|
121
|
+
${this.generateIconHtml(Le)}
|
|
122
|
+
</${this.buttonTag}>`}renderPlayButton(){return r`
|
|
123
|
+
<${this.buttonTag}
|
|
124
|
+
aria-label="${this.playBtnLabel}"
|
|
125
|
+
class="play-pause"
|
|
126
|
+
shape="circle"
|
|
127
|
+
@click=${()=>this.handlePlayClick()}
|
|
128
|
+
part="play-pause-button"
|
|
129
|
+
>
|
|
130
|
+
${this.generateIconHtml(Re,this.isPlaying)}
|
|
131
|
+
${this.generateIconHtml(Fe,!this.isPlaying)}
|
|
132
|
+
</${this.buttonTag}>
|
|
133
|
+
`}renderPaginationContainer(){return r`
|
|
134
|
+
<div class="pagination-container">
|
|
135
|
+
${this.autoplay||this.autoScroll&&!this.isTouchDevice()?this.renderPlayButton():a}
|
|
136
|
+
${this.pagination?r`<div class="embla__dots"></div>`:a}
|
|
137
|
+
</div>
|
|
138
|
+
`}render(){return r`
|
|
139
|
+
<!-- Hidden slots for aria labels -->
|
|
140
|
+
<slot name="ariaLabel.scroll.left" hidden @slotchange="${this.requestUpdate}"></slot>
|
|
141
|
+
<slot name="ariaLabel.scroll.right" hidden @slotchange="${this.requestUpdate}"></slot>
|
|
142
|
+
<slot name="ariaLabel.slideshow.play" hidden @slotchange="${this.requestUpdate}"></slot>
|
|
143
|
+
<slot name="ariaLabel.slideshow.pause" hidden @slotchange="${this.requestUpdate}"></slot>
|
|
144
|
+
|
|
145
|
+
<div class="container">
|
|
146
|
+
<div class="slideshow-wrapper">
|
|
147
|
+
${this.navigation&&!this.isTouchDevice()?this.renderNavigationControls():a}
|
|
148
|
+
<div class="embla">
|
|
149
|
+
<div class="embla__container" @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave}>
|
|
150
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
${this.pagination||this.autoplay||this.autoScroll&&!this.isTouchDevice()?this.renderPaginationContainer():a}
|
|
155
|
+
</div>
|
|
156
|
+
`}}export{Ge as A};
|