@aurodesignsystem/auro-dialog 4.2.1 → 4.2.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.
@@ -1,4 +1,4 @@
1
- import{css as e,LitElement as t,html as o}from"lit";import{classMap as s}from"lit/directives/class-map.js";import{ifDefined as a}from"lit/directives/if-defined.js";import{unsafeStatic as r,literal as i,html as n}from"lit/static-html.js";class l{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{})}closestElement(e,t=this,o=(t,s=t&&t.closest(e))=>t&&t!==document&&t!==window?s||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,!0)}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}getSlotText(e,t){const o=e.shadowRoot?.querySelector(`slot[name="${t}"]`);return(o?.assignedNodes({flatten:!0})||[]).map(e=>e.textContent?.trim()).join(" ").trim()||null}}class d{generateElementName(e,t){let o=e;return o+="-",o+=t.replace(/[.]/g,"_"),o}generateTag(e,t,o){const s=this.generateElementName(e,t),a=i`${r(s)}`;return customElements.get(s)||customElements.define(s,class extends o{}),a}}const c=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[role="tab"]:not([disabled])','[role="link"]:not([disabled])','[role="button"]:not([disabled])','[tabindex]:not([tabindex="-1"])','[contenteditable]:not([contenteditable="false"])'],h=["auro-checkbox","auro-radio","auro-dropdown","auro-button","auro-combobox","auro-input","auro-counter","auro-select","auro-datepicker","auro-hyperlink","auro-accordion"];function u(e){const t=e.getAttribute("tabindex");if(null==t)return null;const o=Number.parseInt(t,10);return Number.isNaN(o)?null:o}function p(e){const t=[],o=e=>{if(e.nodeType===Node.ELEMENT_NODE){if(function(e){const t=e.tagName.toLowerCase();return!(!h.some(o=>e.hasAttribute(o)||t===o)||e.hasAttribute("disabled")||t.match("hyperlink")&&!e.hasAttribute("href"))}(e))return void t.push(e);for(const o of c)if(e.matches?.(o)){t.push(e);break}if(e.shadowRoot&&e.shadowRoot.children&&Array.from(e.shadowRoot.children).forEach(e=>{o(e)}),"SLOT"===e.tagName){const t=e.assignedNodes({flatten:!0});for(const e of t)o(e)}else e.children&&Array.from(e.children).forEach(e=>{o(e)})}};o(e);const s=[],a=new Set;for(const e of t)a.has(e)||(a.add(e),s.push(e));const r=s.filter(e=>{const t=u(e);return null!==t&&t>0});r.sort((e,t)=>(u(e)??0)-(u(t)??0));const i=s.filter(e=>{const t=u(e);return null===t||0===t});return[...r,...i]}class b{constructor(e,t=!1){if(!(e&&e instanceof HTMLElement))throw new Error("FocusTrap requires a valid HTMLElement.");this.container=e,this.tabDirection="forward",this.controlTabOrder=t,this._init()}_init(){"inert"in HTMLElement.prototype&&(this.container.inert=!1,this.container.setAttribute("data-focus-trap-container",!0)),this.container.addEventListener("keydown",this._onKeydown)}_getActiveElements(){let{activeElement:e}=document;const t=[e];for(;e?.shadowRoot?.activeElement;)t.push(e.shadowRoot.activeElement),e=e.shadowRoot.activeElement;return t}_getNextFocusIndex(e,t,o){if(this.controlTabOrder){let o=e+("forward"===this.tabDirection?1:-1);return o<0&&(o=t.length-1),o>=t.length&&(o=0),o}const s=o.includes(t[0])||o.includes(this.container),a=o.includes(t[t.length-1]);return"backward"===this.tabDirection&&s?t.length-1:"forward"===this.tabDirection&&a?0:null}_handleTabKey(e){const t=this._getFocusableElements();if(!t.length)return;this.tabDirection=e.shiftKey?"backward":"forward";const o=this._getActiveElements();let s=t.findIndex(e=>o.includes(e));-1===s&&(s=0);const a=this._getNextFocusIndex(s,t,o);null!==a&&(e.preventDefault(),t[a].focus())}_onKeydown=e=>{"Tab"===e.key&&this._handleTabKey(e)};_getFocusableElements(){return p(this.container)}focusFirstElement(){const e=this._getFocusableElements();e.length&&e[0].focus()}focusLastElement(){const e=this._getFocusableElements();e.length&&e[e.length-1].focus()}disconnect(){this.container.hasAttribute("data-focus-trap-container")&&this.container.removeAttribute("data-focus-trap-container"),this.container.removeEventListener("keydown",this._onKeydown)}}const m=["start","end"],g=["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-"+m[0],t+"-"+m[1]),[]),v=Math.min,f=Math.max,x=Math.round,y=Math.floor,w=e=>({x:e,y:e}),z={left:"right",right:"left",bottom:"top",top:"bottom"};function k(e,t){return"function"==typeof e?e(t):e}function S(e){return e.split("-")[0]}function A(e){return e.split("-")[1]}function T(e){return"x"===e?"y":"x"}function E(e){return"y"===e?"height":"width"}function B(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function C(e){return T(B(e))}function H(e,t,o){void 0===o&&(o=!1);const s=A(e),a=C(e),r=E(a);let i="x"===a?s===(o?"end":"start")?"right":"left":"start"===s?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=M(i)),[i,M(i)]}function _(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const R=["left","right"],F=["right","left"],L=["top","bottom"],I=["bottom","top"];function q(e,t,o,s){const a=A(e);let r=function(e,t,o){switch(e){case"top":case"bottom":return o?t?F:R:t?R:F;case"left":case"right":return t?L:I;default:return[]}}(S(e),"start"===o,s);return a&&(r=r.map(e=>e+"-"+a),t&&(r=r.concat(r.map(_)))),r}function M(e){const t=S(e);return z[t]+e.slice(t.length)}function N(e){const{x:t,y:o,width:s,height:a}=e;return{width:s,height:a,top:o,left:t,right:t+s,bottom:o+a,x:t,y:o}}function P(e,t,o){let{reference:s,floating:a}=e;const r=B(t),i=C(t),n=E(i),l=S(t),d="y"===r,c=s.x+s.width/2-a.width/2,h=s.y+s.height/2-a.height/2,u=s[n]/2-a[n]/2;let p;switch(l){case"top":p={x:c,y:s.y-a.height};break;case"bottom":p={x:c,y:s.y+s.height};break;case"right":p={x:s.x+s.width,y:h};break;case"left":p={x:s.x-a.width,y:h};break;default:p={x:s.x,y:s.y}}const b=A(t);return b&&(p[i]+=u*("end"===b?1:-1)*(o&&d?-1:1)),p}async function D(e,t){var o;void 0===t&&(t={});const{x:s,y:a,platform:r,rects:i,elements:n,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=k(t,e),b=function(e){return"number"!=typeof e?function(e){var t,o,s,a;return{top:null!=(t=e.top)?t:0,right:null!=(o=e.right)?o:0,bottom:null!=(s=e.bottom)?s:0,left:null!=(a=e.left)?a:0}}(e):{top:e,right:e,bottom:e,left:e}}(p),m=n[u?"floating"===h?"reference":"floating":h],g=N(await r.getClippingRect({element:null==(o=await(null==r.isElement?void 0:r.isElement(m)))||o?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(n.floating)),boundary:d,rootBoundary:c,strategy:l})),v="floating"===h?{x:s,y:a,width:i.floating.width,height:i.floating.height}:i.reference,f=await(null==r.getOffsetParent?void 0:r.getOffsetParent(n.floating)),x=await(null==r.isElement?void 0:r.isElement(f))&&await(null==r.getScale?void 0:r.getScale(f))||{x:1,y:1},y=N(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:v,offsetParent:f,strategy:l}):v);return{top:(g.top-y.top+b.top)/x.y,bottom:(y.bottom-g.bottom+b.bottom)/x.y,left:(g.left-y.left+b.left)/x.x,right:(y.right-g.right+b.right)/x.x}}const U=new Set(["left","top"]);function O(){return"undefined"!=typeof window}function $(e){return X(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function V(e){var t;return null==(t=(X(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function X(e){return!!O()&&(e instanceof Node||e instanceof W(e).Node)}function G(e){return!!O()&&(e instanceof Element||e instanceof W(e).Element)}function j(e){return!!O()&&(e instanceof HTMLElement||e instanceof W(e).HTMLElement)}function K(e){return!(!O()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof W(e).ShadowRoot)}function Q(e){const{overflow:t,overflowX:o,overflowY:s,display:a}=ie(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+o)&&"inline"!==a&&"contents"!==a}function Y(e){return/^(table|td|th)$/.test($(e))}function Z(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const J=/transform|translate|scale|rotate|perspective|filter/,ee=/paint|layout|strict|content/,te=e=>!!e&&"none"!==e;let oe;function se(e){const t=G(e)?ie(e):e;return te(t.transform)||te(t.translate)||te(t.scale)||te(t.rotate)||te(t.perspective)||!ae()&&(te(t.backdropFilter)||te(t.filter))||J.test(t.willChange||"")||ee.test(t.contain||"")}function ae(){return null==oe&&(oe="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),oe}function re(e){return/^(html|body|#document)$/.test($(e))}function ie(e){return W(e).getComputedStyle(e)}function ne(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function le(e){if("html"===$(e))return e;const t=e.assignedSlot||e.parentNode||K(e)&&e.host||V(e);return K(t)?t.host:t}function de(e){const t=le(e);return re(t)?(e.ownerDocument||e).body:j(t)&&Q(t)?t:de(t)}function ce(e,t,o){var s;void 0===t&&(t=[]),void 0===o&&(o=!0);const a=de(e),r=a===(null==(s=e.ownerDocument)?void 0:s.body),i=W(a);if(r){const e=he(i);return t.concat(i,i.visualViewport||[],Q(a)?a:[],e&&o?ce(e):[])}return t.concat(a,ce(a,[],o))}function he(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ue(e){const t=ie(e);let o=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=j(e),r=a?e.offsetWidth:o,i=a?e.offsetHeight:s,n=x(o)!==r||x(s)!==i;return n&&(o=r,s=i),{width:o,height:s,$:n}}function pe(e){return G(e)?e:e.contextElement}function be(e){const t=pe(e);if(!j(t))return w(1);const o=t.getBoundingClientRect(),{width:s,height:a,$:r}=ue(t);let i=(r?x(o.width):o.width)/s,n=(r?x(o.height):o.height)/a;return i&&Number.isFinite(i)||(i=1),n&&Number.isFinite(n)||(n=1),{x:i,y:n}}const me=w(0);function ge(e){const t=W(e);return ae()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:me}function ve(e,t,o,s){void 0===t&&(t=!1),void 0===o&&(o=!1);const a=e.getBoundingClientRect(),r=pe(e);let i=w(1);t&&(s?G(s)&&(i=be(s)):i=be(e));const n=function(e,t,o){return void 0===t&&(t=!1),!!o&&t&&o===W(e)}(r,o,s)?ge(r):w(0);let l=(a.left+n.x)/i.x,d=(a.top+n.y)/i.y,c=a.width/i.x,h=a.height/i.y;if(r&&s){const e=W(r),t=G(s)?W(s):s;let o=e,a=he(o);for(;a&&t!==o;){const e=be(a),t=a.getBoundingClientRect(),s=ie(a),r=t.left+(a.clientLeft+parseFloat(s.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(s.paddingTop))*e.y;l*=e.x,d*=e.y,c*=e.x,h*=e.y,l+=r,d+=i,o=W(a),a=he(o)}}return N({width:c,height:h,x:l,y:d})}function fe(e,t){const o=ne(e).scrollLeft;return t?t.left+o:ve(V(e)).left+o}function xe(e,t){const o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-fe(e,o),y:o.top+t.scrollTop}}function ye(e,t,o){let s;if("viewport"===t||"layoutViewport"===t)s=function(e,t,o){void 0===o&&(o="viewport");const s="layoutViewport"===o,a=W(e),r=V(e),i=a.visualViewport;let n=r.clientWidth,l=r.clientHeight,d=0,c=0;if(i){const e=!ae()||"fixed"===t;s?e||(d=-i.offsetLeft,c=-i.offsetTop):(n=i.width,l=i.height,e&&(d=i.offsetLeft,c=i.offsetTop))}if(fe(r)<=0){const e=r.ownerDocument,t=e.body,o=getComputedStyle(t),s="CSS1Compat"===e.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-s),i="stable both-edges"===getComputedStyle(r).scrollbarGutter?a/2:a;i<=25&&(n-=i)}return{width:n,height:l,x:d,y:c}}(e,o,t);else if("document"===t)s=function(e){const t=ne(e),o=e.ownerDocument.body,s=f(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=f(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-t.scrollLeft+fe(e);const i=-t.scrollTop;return"rtl"===ie(o).direction&&(r+=f(e.clientWidth,o.clientWidth)-s),{width:s,height:a,x:r,y:i}}(V(e));else if(G(t))s=function(e,t){const o=ve(e,!0,"fixed"===t),s=o.top+e.clientTop,a=o.left+e.clientLeft,r=be(e);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:a*r.x,y:s*r.y}}(t,o);else{const o=ge(e);s={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return N(s)}function we(e,t,o){const s=j(t),a=V(t),r="fixed"===o,i=ve(e,!0,r,t);let n={scrollLeft:0,scrollTop:0};const l=w(0);if((s||!r)&&(("body"!==$(t)||Q(a))&&(n=ne(t)),s)){const e=ve(t,!0,r,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!s&&a&&(l.x=fe(a));const d=!a||s||r?w(0):xe(a,n);return{x:i.left+n.scrollLeft-l.x-d.x,y:i.top+n.scrollTop-l.y-d.y,width:i.width,height:i.height}}function ze(e){return"static"===ie(e).position}function ke(e,t){if(!j(e)||"fixed"===ie(e).position)return null;if(t)return t(e);let o=e.offsetParent;return V(e)===o&&(o=o.ownerDocument.body),o}function Se(e,t){const o=W(e);if(Z(e))return o;if(!j(e)){let t=le(e);for(;t&&!re(t);){if(G(t)&&!ze(t))return t;t=le(t)}return o}let s=ke(e,t);for(;s&&Y(s)&&ze(s);)s=ke(s,t);return s&&re(s)&&ze(s)&&!se(s)?o:s||function(e){let t=le(e);for(;j(t)&&!re(t);){if(se(t))return t;if(Z(t))return null;t=le(t)}return null}(e)||o}const Ae={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:o,offsetParent:s,strategy:a}=e;const r="fixed"===a,i=V(s),n=!!t&&Z(t.floating);if(s===i||n&&r)return o;let l={scrollLeft:0,scrollTop:0},d=w(1);const c=w(0),h=j(s);if((h||!r)&&(("body"!==$(s)||Q(i))&&(l=ne(s)),h)){const e=ve(s);d=be(s),c.x=e.x+s.clientLeft,c.y=e.y+s.clientTop}const u=!i||h||r?w(0):xe(i,l);return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-l.scrollLeft*d.x+c.x+u.x,y:o.y*d.y-l.scrollTop*d.y+c.y+u.y}},getDocumentElement:V,getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:s,strategy:a}=e;const r=[..."clippingAncestors"===o?Z(t)?[]:function(e,t){const o=t.get(e);if(o)return o;let s=ce(e,[],!1).filter(e=>G(e)&&"body"!==$(e)),a=null;const r="fixed"===ie(e).position;let i=r?le(e):e;for(;G(i)&&!re(i);){const e=ie(i),t=se(i),o=a?a.position:r?"fixed":"";t||"fixed"!==o&&("absolute"!==o||"static"!==e.position)?a=e:s=s.filter(e=>e!==i),i=le(i)}return t.set(e,s),s}(t,this._c):[].concat(o),s],i=ye(t,r[0],a);let n=i.top,l=i.right,d=i.bottom,c=i.left;for(let e=1;e<r.length;e++){const o=ye(t,r[e],a);n=f(o.top,n),l=v(o.right,l),d=v(o.bottom,d),c=f(o.left,c)}return{width:l-c,height:d-n,x:c,y:n}},getOffsetParent:Se,getElementRects:async function(e){const t=this.getOffsetParent||Se,o=this.getDimensions,s=await o(e.floating);return{reference:we(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:o}=ue(e);return{width:t,height:o}},getScale:be,isElement:G,isRTL:function(e){return"rtl"===ie(e).direction}};function Te(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ee(e,t,o,s){void 0===s&&(s={});const{ancestorScroll:a=!0,ancestorResize:r=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:n="function"==typeof IntersectionObserver,animationFrame:l=!1}=s,d=pe(e),c=a||r?[...d?ce(d):[],...t?ce(t):[]]:[];c.forEach(e=>{a&&e.addEventListener("scroll",o),r&&e.addEventListener("resize",o)});const h=d&&n?function(e,t,o){let s,a=null;const r=V(e);function i(){var e;clearTimeout(s),null==(e=a)||e.disconnect(),a=null}function n(o,l){void 0===o&&(o=!1),void 0===l&&(l=1),i();const d=e.getBoundingClientRect(),{left:c,top:h,width:u,height:p}=d;if(o||t(),!u||!p)return;const b={rootMargin:-y(h)+"px "+-y(r.clientWidth-(c+u))+"px "+-y(r.clientHeight-(h+p))+"px "+-y(c)+"px",threshold:f(0,v(1,l))||1};let m=!0;function g(t){const o=t[0].intersectionRatio;if(!Te(d,e.getBoundingClientRect()))return n();if(o!==l){if(!m)return n();o?n(!1,o):s=setTimeout(()=>{n(!1,1e-7)},1e3)}m=!1}try{a=new IntersectionObserver(g,{...b,root:r.ownerDocument})}catch(e){a=new IntersectionObserver(g,b)}a.observe(e)}const l=W(e),d=()=>n(o);return l.addEventListener("resize",d),n(!0),()=>{l.removeEventListener("resize",d),i()}}(d,o,r):null;let u,p=-1,b=null;i&&(b=new ResizeObserver(e=>{let[s]=e;s&&s.target===d&&b&&t&&(b.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),o()}),d&&!l&&b.observe(d),t&&b.observe(t));let m=l?ve(e):null;return l&&function t(){const s=ve(e);m&&!Te(m,s)&&o();m=s,u=requestAnimationFrame(t)}(),o(),()=>{var e;c.forEach(e=>{a&&e.removeEventListener("scroll",o),r&&e.removeEventListener("resize",o)}),null==h||h(),null==(e=b)||e.disconnect(),b=null,l&&cancelAnimationFrame(u)}}const Be=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var o,s;const{x:a,y:r,placement:i,middlewareData:n}=t,l=await async function(e,t){const{placement:o,platform:s,elements:a}=e,r=await(null==s.isRTL?void 0:s.isRTL(a.floating)),i=S(o),n=A(o),l="y"===B(o),d=U.has(i)?-1:1,c=r&&l?-1:1,h=k(t,e);let{mainAxis:u,crossAxis:p,alignmentAxis:b}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return n&&"number"==typeof b&&(p="end"===n?-1*b:b),l?{x:p*c,y:u*d}:{x:u*d,y:p*c}}(t,e);return i===(null==(o=n.offset)?void 0:o.placement)&&null!=(s=n.arrow)&&s.alignmentOffset?{}:{x:a+l.x,y:r+l.y,data:{...l,placement:i}}}}},Ce=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,s,a;const{rects:r,middlewareData:i,placement:n,platform:l,elements:d}=t,{crossAxis:c=!1,alignment:h,allowedPlacements:u=g,autoAlignment:p=!0,...b}=k(e,t),m=void 0!==h||u===g?function(e,t,o){return(e?[...o.filter(t=>A(t)===e),...o.filter(t=>A(t)!==e)]:o.filter(e=>S(e)===e)).filter(o=>!e||A(o)===e||!!t&&_(o)!==o)}(h||null,p,u):u,v=(null==(o=i.autoPlacement)?void 0:o.index)||0,f=m[v];if(null==f)return{};if(n!==f)return{reset:{placement:m[0]}};const x=await l.detectOverflow(t,b),y=H(f,r,await(null==l.isRTL?void 0:l.isRTL(d.floating))),w=[x[S(f)],x[y[0]],x[y[1]]],z=[...(null==(s=i.autoPlacement)?void 0:s.overflows)||[],{placement:f,overflows:w}],T=m[v+1];if(T)return{data:{index:v+1,overflows:z},reset:{placement:T}};const E=z.map(e=>{const t=A(e.placement);return[e.placement,t&&c?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),B=E.filter(e=>e[2].slice(0,A(e[0])?2:3).every(e=>e<=0)),C=(null==(a=B[0])?void 0:a[0])||E[0][0];return C!==n?{data:{index:v+1,overflows:z},reset:{placement:C}}:{}}}},He=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:s,placement:a,platform:r}=t,{mainAxis:i=!0,crossAxis:n=!1,limiter:l={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...d}=k(e,t),c={x:o,y:s},h=await r.detectOverflow(t,d),u=B(a),p=T(u);let b=c[p],m=c[u];const g=(e,t)=>{return o=t+h["y"===e?"top":"left"],s=t,a=t-h["y"===e?"bottom":"right"],f(o,v(s,a));var o,s,a};i&&(b=g(p,b)),n&&(m=g(u,m));const x=l.fn({...t,[p]:b,[u]:m});return{...x,data:{x:x.x-o,y:x.y-s,enabled:{[p]:i,[u]:n}}}}}},_e=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o,s;const{placement:a,middlewareData:r,rects:i,initialPlacement:n,platform:l,elements:d}=t,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:m=!0,...g}=k(e,t);if(null!=(o=r.arrow)&&o.alignmentOffset)return{};const v=S(a),f=B(n),x=S(n)===n,y=await(null==l.isRTL?void 0:l.isRTL(d.floating)),w=u||(x||!m?[M(n)]:function(e){const t=M(e);return[_(e),t,_(t)]}(n)),z="none"!==b;!u&&z&&w.push(...q(n,m,b,y));const A=[n,...w],T=await l.detectOverflow(t,g),E=[];let C=(null==(s=r.flip)?void 0:s.overflows)||[];if(c&&E.push(T[v]),h){const e=H(a,i,y);E.push(T[e[0]],T[e[1]])}if(C=[...C,{placement:a,overflows:E}],!E.every(e=>e<=0)){var R,F;const e=((null==(R=r.flip)?void 0:R.index)||0)+1,t=A[e];if(t){if(!("alignment"===h&&f!==B(t))||C.every(e=>B(e.placement)!==f||e.overflows[0]>0))return{data:{index:e,overflows:C},reset:{placement:t}}}let o=null==(F=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:F.placement;if(!o)switch(p){case"bestFit":{var L;const e=null==(L=C.filter(e=>{if(z){const t=B(e.placement);return t===f||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:L[0];e&&(o=e);break}case"initialPlacement":o=n}if(a!==o)return{reset:{placement:o}}}return{}}}},Re=(e,t,o)=>{const s=new Map,a=null!=o?o:{},r={...Ae,...a.platform,_c:s};return(async(e,t,o)=>{const{placement:s="bottom",strategy:a="absolute",middleware:r=[],platform:i}=o,n=i.detectOverflow?i:{...i,detectOverflow:D},l=await(null==i.isRTL?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:h}=P(d,s,l),u=s,p=0;const b={};for(let o=0;o<r.length;o++){const m=r[o];if(!m)continue;const{name:g,fn:v}=m,{x:f,y:x,data:y,reset:w}=await v({x:c,y:h,initialPlacement:s,placement:u,strategy:a,middlewareData:b,rects:d,platform:n,elements:{reference:e,floating:t}});c=null!=f?f:c,h=null!=x?x:h,b[g]={...b[g],...y},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(u=w.placement),w.rects&&(d=!0===w.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):w.rects),({x:c,y:h}=P(d,u,l))),o=-1)}return{x:c,y:h,placement:u,strategy:a,middlewareData:b}})(e,t,{...a,platform:r})};class Fe{static isMousePressed=!1;static isMousePressHandlerInitialized=!1;static setupMousePressChecker(){if(!Fe.isMousePressHandlerInitialized&&window&&window.addEventListener){Fe.isMousePressHandlerInitialized=!0,Fe._mousePressedTimeout||(Fe._mousePressedTimeout=null);const e=e=>{const t="mousedown"===e.type;t?(null!==Fe._mousePressedTimeout&&(clearTimeout(Fe._mousePressedTimeout),Fe._mousePressedTimeout=null),Fe.isMousePressed||(Fe.isMousePressed=!0)):Fe.isMousePressed&&!t&&(Fe._mousePressedTimeout=setTimeout(()=>{Fe.isMousePressed=!1,Fe._mousePressedTimeout=null},0))};window.addEventListener("mousedown",e),window.addEventListener("mouseup",e)}}static openingQueue=[];static get topOpeningFloatingUI(){const e=document.expandedAuroFormkitDropdown||document.expandedAuroFloater;return e&&e.element.isPopoverVisible?e:(document.expandedAuroFormkitDropdown=null,document.expandedAuroFloater=null,Fe.openingQueue.length>0?Fe.openingQueue[Fe.openingQueue.length-1]:null)}constructor(e,t){this.element=e,this.behavior=t,this.focusHandler=null,this.clickHandler=null,this.keyDownHandler=null,this.touchHandler=null,this.enableKeyboardHandling=!0,this.configureTrial=0,this.eventPrefix=void 0,this.id=void 0,this.showing=!1,this.strategy=void 0}mirrorSize(){const e=this.element;if(e&&e.bibSizer&&e.matchWidth&&e.bib?.shadowRoot){const t=window.getComputedStyle(e.bibSizer),o=e.bib.shadowRoot.querySelector(".container");if(!o)return;"0px"!==t.width&&(o.style.width=t.width),"0px"!==t.height&&(o.style.height=t.height),o.style.maxWidth=t.maxWidth,o.style.maxHeight=t.maxHeight}}getPositioningStrategy(){const e=this.element;if(!e)return"floating";const t=e.bib?.mobileFullscreenBreakpoint||e.floaterConfig?.fullscreenBreakpoint;switch(this.behavior){case"tooltip":return"floating";case"dialog":case"drawer":if(t){const e=window.matchMedia(`(max-width: ${t})`).matches;return this.element.expanded=e,this.element.nested?"cover":e||this.element.modal?"fullscreen":"dialog"}return"dialog";case"dropdown":case void 0:case null:if(t){if(window.matchMedia(`(max-width: ${t})`).matches)return"fullscreen"}return"floating";default:return this.behavior}}position(){const e=this.element;if(!e)return;const t=this.getPositioningStrategy();if(this.configureBibStrategy(t),"floating"===t){if(!e.trigger||!e.bib)return;this.mirrorSize();const t=[Be(e.floaterConfig?.offset||0),...e.floaterConfig?.shift?[He()]:[],...e.floaterConfig?.flip?[_e()]:[],...e.floaterConfig?.autoPlacement?[Ce()]:[]];Re(e.trigger,e.bib,{strategy:e.floaterConfig?.strategy||"fixed",placement:e.floaterConfig?.placement,middleware:t||[]}).then(({x:e,y:t})=>{const o=this.element;o?.bib&&Object.assign(o.bib.style,{left:`${e}px`,top:`${t}px`})})}else if("cover"===t){if(!e.parentNode||!e.bib)return;Re(e.parentNode,e.bib,{placement:"bottom-start"}).then(({x:e,y:t})=>{const o=this.element;o?.bib&&o.parentNode&&Object.assign(o.bib.style,{left:`${e}px`,top:t-o.parentNode.offsetHeight+"px",width:`${o.parentNode.offsetWidth}px`,height:`${o.parentNode.offsetHeight}px`})})}}lockScroll(e=!0){const t=this.element;if(!t?.bib)return;const o=(t.bib?.shadowRoot||t.bib||t).querySelector("dialog");o&&(e?o.setAttribute("aria-modal","true"):o.removeAttribute("aria-modal")),e?this._scrollLocked||(this._scrollLocked=!0,this._savedScrollY=window.scrollY,this._savedScrollStyles={rootScrollbarGutter:document.documentElement.style.scrollbarGutter,rootOverflow:document.documentElement.style.overflow,bodyOverflow:document.body.style.overflow,bodyPosition:document.body.style.position,bodyTop:document.body.style.top,bodyWidth:document.body.style.width,bibTransform:t?.bib?.style.transform},document.documentElement.style.scrollbarGutter="stable",document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top=`-${this._savedScrollY}px`,document.body.style.width="100%",window.visualViewport&&(this._viewportRafId=void 0,this._viewportHandler=()=>{void 0===this._viewportRafId&&(this._viewportRafId=requestAnimationFrame(()=>{this._viewportRafId=void 0,t?.bib&&(t.bib.style.transform=`translateY(${window.visualViewport.offsetTop}px)`)}))},window.visualViewport.addEventListener("resize",this._viewportHandler),window.visualViewport.addEventListener("scroll",this._viewportHandler),this._viewportHandler()),this.lockTouchScroll(!0)):this._scrollLocked&&(this._viewportHandler&&window.visualViewport&&(window.visualViewport.removeEventListener("resize",this._viewportHandler),window.visualViewport.removeEventListener("scroll",this._viewportHandler),this._viewportHandler=void 0),void 0!==this._viewportRafId&&(cancelAnimationFrame(this._viewportRafId),this._viewportRafId=void 0),document.documentElement.style.scrollbarGutter=this._savedScrollStyles?.rootScrollbarGutter??"",document.documentElement.style.overflow=this._savedScrollStyles?.rootOverflow??"",document.body.style.overflow=this._savedScrollStyles?.bodyOverflow??"",document.body.style.position=this._savedScrollStyles?.bodyPosition??"",document.body.style.top=this._savedScrollStyles?.bodyTop??"",document.body.style.width=this._savedScrollStyles?.bodyWidth??"",t?.bib&&(t.bib.style.transform=this._savedScrollStyles?.bibTransform??""),window.scrollTo(0,this._savedScrollY||0),this._savedScrollY=void 0,this._savedScrollStyles=void 0,this._scrollLocked=!1,this.lockTouchScroll(!1))}lockTouchScroll(e=!0){if(e){if(this._boundTouchMoveHandler)return;this._boundTouchMoveHandler=e=>{e.composedPath().some(e=>e!==document&&e!==document.documentElement&&e!==document.body&&(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth))||e.preventDefault()},document.addEventListener("touchmove",this._boundTouchMoveHandler,{passive:!1})}else this._boundTouchMoveHandler&&(document.removeEventListener("touchmove",this._boundTouchMoveHandler,{passive:!1}),this._boundTouchMoveHandler=void 0)}configureBibStrategy(e){const t=this.element;if(!t?.bib)return;if("fullscreen"===e||"dialog"===e){t.isBibFullscreen=!0,t.bib.setAttribute("isfullscreen",""),t.bib.style.position="fixed",t.bib.style.top="0px",t.bib.style.left="0px",t.bib.style.width="",t.bib.style.height="",t.style.contain="";const o=t.bib.shadowRoot?.querySelector(".container");o?(o.style.width="",o.style.height="",o.style.maxWidth="",o.style.maxHeight="",this.configureTrial=0):this.configureTrial<10&&(this.configureTrial+=1,setTimeout(()=>{this.configureBibStrategy(e)},0)),t.isPopoverVisible&&this.lockScroll("fullscreen"===e)}else t.bib.style.position="",t.bib.removeAttribute("isfullscreen"),t.isBibFullscreen=!1,t.style.contain="layout";const o=this.strategy&&this.strategy!==e;if(this.strategy=e,o){const o=new CustomEvent(this.eventPrefix?`${this.eventPrefix}-strategy-change`:"strategy-change",{detail:{value:e},composed:!0});t.dispatchEvent(o)}}updateState(){const e=this.element;if(!e)return;if(!e.isPopoverVisible){this.cleanupHideHandlers();try{e.cleanup?.()}catch(e){}}}handleFocusLoss(){const e=this.element;if(e?.bib&&!Fe.isMousePressed&&!(e.noHideOnThisFocusLoss||e.hasAttribute("noHideOnThisFocusLoss")||e.matches(":focus")||e.matches(":focus-within"))){try{let t=document.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;const o=[e,e.trigger,e.bib].filter(Boolean);let s=t;for(;s;){if(o.includes(s))return;s=s.parentElement||s.getRootNode&&s.getRootNode().host||null}}catch(e){}e.bib.hasAttribute("isfullscreen")||this.hideBib("focusloss")}}setupHideHandlers(){this.element&&(this.focusHandler=()=>this.handleFocusLoss(),this.clickHandler=e=>{const t=this.element;if(t?.bib&&!t.bib.hasAttribute("isfullscreen")&&(!e.composedPath().includes(t.trigger)&&!e.composedPath().includes(t.bib)||t.bib.backdrop&&e.composedPath().includes(t.bib.backdrop))){const e=document.expandedAuroFormkitDropdown||document.expandedAuroFloater;e&&e.element.isPopoverVisible?(e.hideBib(),document.expandedAuroFormkitDropdown=null,document.expandedAuroFloater=this):this.hideBib("click")}},this.keyDownHandler=e=>{const t=this.element;if(t&&"Escape"===e.key&&t.isPopoverVisible){const e=document.expandedAuroFormkitDropdown||document.expandedAuroFloater;if(e&&e!==this&&e.element.isPopoverVisible)return;this.hideBib("keydown")}},"drawer"!==this.behavior&&"dialog"!==this.behavior&&document.addEventListener("focusin",this.focusHandler),this.enableKeyboardHandling&&document.addEventListener("keydown",this.keyDownHandler),setTimeout(()=>{window.addEventListener("click",this.clickHandler)},0),this.touchHandler=e=>{const t=this.element;if(!t?.bib)return;if(t.bib.hasAttribute("isfullscreen"))return;const o=e.composedPath();o.includes(t.trigger)||o.includes(t.bib)||this.hideBib("click")},window.addEventListener("touchstart",this.touchHandler,{passive:!0}))}cleanupHideHandlers(){this.focusHandler&&(document.removeEventListener("focusin",this.focusHandler),this.focusHandler=null),this.clickHandler&&(window.removeEventListener("click",this.clickHandler),this.clickHandler=null),this.touchHandler&&(window.removeEventListener("touchstart",this.touchHandler),this.touchHandler=null),this.keyDownHandler&&(document.removeEventListener("keydown",this.keyDownHandler),this.keyDownHandler=null)}handleUpdate(e){e.has("isPopoverVisible")&&this.updateState()}updateCurrentExpandedDropdown(){if(!this.element)return;const e=document.expandedAuroFormkitDropdown||document.expandedAuroFloater;e&&e!==this&&e.element.isPopoverVisible&&e.eventPrefix===this.eventPrefix&&e.hideBib(),document.expandedAuroFloater=this}showBib(){const e=this.element;if(e&&e.bib&&(e.trigger||e.parentNode)&&!e.disabled&&!this.showing){this.updateCurrentExpandedDropdown(),e.triggerChevron?.setAttribute("data-expanded",!0),this.showing||(e.modal?(this.keyDownHandler&&document.removeEventListener("keydown",this.keyDownHandler),this.keyDownHandler=t=>{"Escape"===t.key&&e.isPopoverVisible&&(t.preventDefault(),t.stopImmediatePropagation())},document.addEventListener("keydown",this.keyDownHandler)):this.setupHideHandlers(),this.showing=!0,e.isPopoverVisible=!0,this.position(),this.dispatchEventDropdownToggle()),e.cleanup=Ee(e.trigger||e.parentNode,e.bib,()=>{this.position()});const t=Fe.openingQueue.indexOf(this);t>-1&&Fe.openingQueue.splice(t,1),Fe.openingQueue.push(this)}}hideBib(e="unknown"){const t=this.element;if(!t)return;if(t.disabled)return;if(t.noToggle&&"click"===e)return;this.lockScroll(!1),t.triggerChevron?.removeAttribute("data-expanded"),t.isPopoverVisible&&(t.isPopoverVisible=!1),this.showing&&(this.cleanupHideHandlers(),this.showing=!1,this.dispatchEventDropdownToggle(e)),document.expandedAuroFloater=null;const o=Fe.openingQueue.indexOf(this);o>-1&&Fe.openingQueue.splice(o,1)}dispatchEventDropdownToggle(e){const t=this.element;if(!t)return;const o=new CustomEvent(this.eventPrefix?`${this.eventPrefix}-toggled`:"toggled",{detail:{expanded:this.showing,eventType:e||"unknown"},composed:!0});t.dispatchEvent(o)}handleClick(){const e=this.element;if(!e)return;e.isPopoverVisible?this.hideBib("click"):this.showBib();const t=new CustomEvent(this.eventPrefix?`${this.eventPrefix}-triggerClick`:"triggerClick",{composed:!0,detail:{expanded:e.isPopoverVisible}});e.dispatchEvent(t)}handleEvent(e){const t=this.element;if(t&&!t.disableEventShow)switch(e.type){case"keydown":{const t=e.composedPath()[0];"Enter"!==e.key&&(" "!==e.key||t&&"INPUT"===t.tagName)||(e.preventDefault(),this.handleClick());break}case"mouseenter":t.hoverToggle&&this.showBib();break;case"mouseleave":t.hoverToggle&&this.hideBib("mouseleave");break;case"focus":t.focusShow&&this.showBib();break;case"blur":setTimeout(()=>this.handleFocusLoss(),0);break;case"click":document.activeElement===document.body&&e.currentTarget.focus(),this.handleClick()}}handleTriggerTabIndex(){const e=this.element;if(!e)return;const t=e.querySelectorAll('[slot="trigger"]')[0];if(!t)return;const o=t.tagName.toLowerCase();["a","button",'input:not([type="hidden"])',"select","textarea",'[tabindex]:not([tabindex="-1"])',"auro-button","auro-input","auro-hyperlink"].forEach(s=>{o!==s?t.querySelector(s)&&(e.tabIndex=-1):e.tabIndex=-1})}regenerateBibId(){const e=this.element;e&&(this.id=e.getAttribute("id"),this.id||(this.id=window.crypto.randomUUID(),e.setAttribute("id",this.id)),e.bib?.setAttribute("id",`${this.id}-floater-bib`))}configure(e,t,o=!0){Fe.setupMousePressChecker(),this.enableKeyboardHandling=o,this.eventPrefix=t,this.element!==e&&(this.element=e);const s=this.element;s&&(this.behavior!==s.behavior&&(this.behavior=s.behavior),s.trigger&&this.disconnect(),s.trigger=s.triggerElement||s.shadowRoot?.querySelector("#trigger")||s.trigger,s.bib=s.shadowRoot?.querySelector("#bib")||s.bib,s.bibSizer=s.shadowRoot?.querySelector("#bibSizer"),s.triggerChevron=s.shadowRoot?.querySelector("#showStateIcon"),s.floaterConfig&&(s.hoverToggle=s.floaterConfig.hoverToggle),this.regenerateBibId(),this.handleTriggerTabIndex(),this.handleEvent=this.handleEvent.bind(this),s.trigger&&(this.enableKeyboardHandling&&s.trigger.addEventListener("keydown",this.handleEvent),s.trigger.addEventListener("click",this.handleEvent),s.trigger.addEventListener("mouseenter",this.handleEvent),s.trigger.addEventListener("mouseleave",this.handleEvent),s.trigger.addEventListener("focus",this.handleEvent),s.trigger.addEventListener("blur",this.handleEvent)))}disconnect(){this.cleanupHideHandlers();const e=this.element;e&&(e.cleanup?.(),e.bib&&e.shadowRoot&&e.shadowRoot.append(e.bib),e.trigger&&(e.trigger.removeEventListener("keydown",this.handleEvent),e.trigger.removeEventListener("click",this.handleEvent),e.trigger.removeEventListener("mouseenter",this.handleEvent),e.trigger.removeEventListener("mouseleave",this.handleEvent),e.trigger.removeEventListener("focus",this.handleEvent),e.trigger.removeEventListener("blur",this.handleEvent)))}}class Le{generateElementName(e,t){let o=e;return o+="-",o+=t.replace(/[.]/g,"_"),o}generateTag(e,t,o){const s=this.generateElementName(e,t),a=i`${r(s)}`;return customElements.get(s)||customElements.define(s,class extends o{}),a}}class Ie{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{})}closestElement(e,t=this,o=(t,s=t&&t.closest(e))=>t&&t!==document&&t!==window?s||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,!0)}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}getSlotText(e,t){const o=e.shadowRoot?.querySelector(`slot[name="${t}"]`),s=(o?.assignedNodes({flatten:!0})||[]).map(e=>e.textContent?.trim()).join(" ").trim();return s||null}}class qe{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{})}closestElement(e,t=this,o=(t,s=t&&t.closest(e))=>t&&t!==document&&t!==window?s||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,!0)}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}}var Me=e`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]),: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])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
1
+ import{css as e,LitElement as t,html as o}from"lit";import{classMap as s}from"lit/directives/class-map.js";import{ifDefined as a}from"lit/directives/if-defined.js";import{unsafeStatic as r,literal as i,html as n}from"lit/static-html.js";class l{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{})}closestElement(e,t=this,o=(t,s=t&&t.closest(e))=>t&&t!==document&&t!==window?s||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,!0)}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}getSlotText(e,t){const o=e.shadowRoot?.querySelector(`slot[name="${t}"]`);return(o?.assignedNodes({flatten:!0})||[]).map(e=>e.textContent?.trim()).join(" ").trim()||null}}class d{generateElementName(e,t){let o=e;return o+="-",o+=t.replace(/[.]/g,"_"),o}generateTag(e,t,o){const s=this.generateElementName(e,t),a=i`${r(s)}`;return customElements.get(s)||customElements.define(s,class extends o{}),a}}const c=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[role="tab"]:not([disabled])','[role="link"]:not([disabled])','[role="button"]:not([disabled])','[tabindex]:not([tabindex="-1"])','[contenteditable]:not([contenteditable="false"])'],h=["auro-checkbox","auro-radio","auro-dropdown","auro-button","auro-combobox","auro-input","auro-counter","auro-select","auro-datepicker","auro-hyperlink","auro-accordion"];function u(e){const t=e.getAttribute("tabindex");if(null==t)return null;const o=Number.parseInt(t,10);return Number.isNaN(o)?null:o}function p(e){const t=[],o=e=>{if(e.nodeType===Node.ELEMENT_NODE){if(function(e){const t=e.tagName.toLowerCase();return!(!h.some(o=>e.hasAttribute(o)||t===o)||e.hasAttribute("disabled")||t.match("hyperlink")&&!e.hasAttribute("href"))}(e))return void t.push(e);for(const o of c)if(e.matches?.(o)){t.push(e);break}if(e.shadowRoot&&e.shadowRoot.children&&Array.from(e.shadowRoot.children).forEach(e=>{o(e)}),"SLOT"===e.tagName){const t=e.assignedNodes({flatten:!0});for(const e of t)o(e)}else e.children&&Array.from(e.children).forEach(e=>{o(e)})}};o(e);const s=[],a=new Set;for(const e of t)a.has(e)||(a.add(e),s.push(e));const r=s.filter(e=>{const t=u(e);return null!==t&&t>0});r.sort((e,t)=>(u(e)??0)-(u(t)??0));const i=s.filter(e=>{const t=u(e);return null===t||0===t});return[...r,...i]}class b{constructor(e,t=!1){if(!(e&&e instanceof HTMLElement))throw new Error("FocusTrap requires a valid HTMLElement.");this.container=e,this.tabDirection="forward",this.controlTabOrder=t,this._init()}_init(){"inert"in HTMLElement.prototype&&(this.container.inert=!1,this.container.setAttribute("data-focus-trap-container",!0)),this.container.addEventListener("keydown",this._onKeydown)}_getActiveElements(){let{activeElement:e}=document;const t=[e];for(;e?.shadowRoot?.activeElement;)t.push(e.shadowRoot.activeElement),e=e.shadowRoot.activeElement;return t}_getNextFocusIndex(e,t,o){if(this.controlTabOrder){let o=e+("forward"===this.tabDirection?1:-1);return o<0&&(o=t.length-1),o>=t.length&&(o=0),o}const s=o.includes(t[0])||o.includes(this.container),a=o.includes(t[t.length-1]);return"backward"===this.tabDirection&&s?t.length-1:"forward"===this.tabDirection&&a?0:null}_handleTabKey(e){const t=this._getFocusableElements();if(!t.length)return;this.tabDirection=e.shiftKey?"backward":"forward";const o=this._getActiveElements();let s=t.findIndex(e=>o.includes(e));-1===s&&(s=0);const a=this._getNextFocusIndex(s,t,o);null!==a&&(e.preventDefault(),t[a].focus())}_onKeydown=e=>{"Tab"===e.key&&this._handleTabKey(e)};_getFocusableElements(){return p(this.container)}focusFirstElement(){const e=this._getFocusableElements();e.length&&e[0].focus()}focusLastElement(){const e=this._getFocusableElements();e.length&&e[e.length-1].focus()}disconnect(){this.container.hasAttribute("data-focus-trap-container")&&this.container.removeAttribute("data-focus-trap-container"),this.container.removeEventListener("keydown",this._onKeydown)}}const m=["start","end"],g=["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-"+m[0],t+"-"+m[1]),[]),f=Math.min,v=Math.max,x=Math.round,y=Math.floor,w=e=>({x:e,y:e}),z={left:"right",right:"left",bottom:"top",top:"bottom"};function k(e,t){return"function"==typeof e?e(t):e}function S(e){return e.split("-")[0]}function A(e){return e.split("-")[1]}function T(e){return"x"===e?"y":"x"}function E(e){return"y"===e?"height":"width"}function B(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function _(e){return T(B(e))}function H(e,t,o){void 0===o&&(o=!1);const s=A(e),a=_(e),r=E(a);let i="x"===a?s===(o?"end":"start")?"right":"left":"start"===s?"bottom":"top";return t.reference[r]>t.floating[r]&&(i=M(i)),[i,M(i)]}function C(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const R=["left","right"],F=["right","left"],L=["top","bottom"],I=["bottom","top"];function q(e,t,o,s){const a=A(e);let r=function(e,t,o){switch(e){case"top":case"bottom":return o?t?F:R:t?R:F;case"left":case"right":return t?L:I;default:return[]}}(S(e),"start"===o,s);return a&&(r=r.map(e=>e+"-"+a),t&&(r=r.concat(r.map(C)))),r}function M(e){const t=S(e);return z[t]+e.slice(t.length)}function N(e){const{x:t,y:o,width:s,height:a}=e;return{width:s,height:a,top:o,left:t,right:t+s,bottom:o+a,x:t,y:o}}function P(e,t,o){let{reference:s,floating:a}=e;const r=B(t),i=_(t),n=E(i),l=S(t),d="y"===r,c=s.x+s.width/2-a.width/2,h=s.y+s.height/2-a.height/2,u=s[n]/2-a[n]/2;let p;switch(l){case"top":p={x:c,y:s.y-a.height};break;case"bottom":p={x:c,y:s.y+s.height};break;case"right":p={x:s.x+s.width,y:h};break;case"left":p={x:s.x-a.width,y:h};break;default:p={x:s.x,y:s.y}}const b=A(t);return b&&(p[i]+=u*("end"===b?1:-1)*(o&&d?-1:1)),p}async function D(e,t){var o;void 0===t&&(t={});const{x:s,y:a,platform:r,rects:i,elements:n,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=k(t,e),b=function(e){return"number"!=typeof e?function(e){var t,o,s,a;return{top:null!=(t=e.top)?t:0,right:null!=(o=e.right)?o:0,bottom:null!=(s=e.bottom)?s:0,left:null!=(a=e.left)?a:0}}(e):{top:e,right:e,bottom:e,left:e}}(p),m=n[u?"floating"===h?"reference":"floating":h],g=N(await r.getClippingRect({element:null==(o=await(null==r.isElement?void 0:r.isElement(m)))||o?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(n.floating)),boundary:d,rootBoundary:c,strategy:l})),f="floating"===h?{x:s,y:a,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==r.getOffsetParent?void 0:r.getOffsetParent(n.floating)),x=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},y=N(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:f,offsetParent:v,strategy:l}):f);return{top:(g.top-y.top+b.top)/x.y,bottom:(y.bottom-g.bottom+b.bottom)/x.y,left:(g.left-y.left+b.left)/x.x,right:(y.right-g.right+b.right)/x.x}}const U=new Set(["left","top"]);function O(){return"undefined"!=typeof window}function $(e){return X(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function V(e){var t;return null==(t=(X(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function X(e){return!!O()&&(e instanceof Node||e instanceof W(e).Node)}function G(e){return!!O()&&(e instanceof Element||e instanceof W(e).Element)}function j(e){return!!O()&&(e instanceof HTMLElement||e instanceof W(e).HTMLElement)}function K(e){return!(!O()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof W(e).ShadowRoot)}function Q(e){const{overflow:t,overflowX:o,overflowY:s,display:a}=ie(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+o)&&"inline"!==a&&"contents"!==a}function Y(e){return/^(table|td|th)$/.test($(e))}function Z(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const J=/transform|translate|scale|rotate|perspective|filter/,ee=/paint|layout|strict|content/,te=e=>!!e&&"none"!==e;let oe;function se(e){const t=G(e)?ie(e):e;return te(t.transform)||te(t.translate)||te(t.scale)||te(t.rotate)||te(t.perspective)||!ae()&&(te(t.backdropFilter)||te(t.filter))||J.test(t.willChange||"")||ee.test(t.contain||"")}function ae(){return null==oe&&(oe="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),oe}function re(e){return/^(html|body|#document)$/.test($(e))}function ie(e){return W(e).getComputedStyle(e)}function ne(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function le(e){if("html"===$(e))return e;const t=e.assignedSlot||e.parentNode||K(e)&&e.host||V(e);return K(t)?t.host:t}function de(e){const t=le(e);return re(t)?(e.ownerDocument||e).body:j(t)&&Q(t)?t:de(t)}function ce(e,t,o){var s;void 0===t&&(t=[]),void 0===o&&(o=!0);const a=de(e),r=a===(null==(s=e.ownerDocument)?void 0:s.body),i=W(a);if(r){const e=he(i);return t.concat(i,i.visualViewport||[],Q(a)?a:[],e&&o?ce(e):[])}return t.concat(a,ce(a,[],o))}function he(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ue(e){const t=ie(e);let o=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=j(e),r=a?e.offsetWidth:o,i=a?e.offsetHeight:s,n=x(o)!==r||x(s)!==i;return n&&(o=r,s=i),{width:o,height:s,$:n}}function pe(e){return G(e)?e:e.contextElement}function be(e){const t=pe(e);if(!j(t))return w(1);const o=t.getBoundingClientRect(),{width:s,height:a,$:r}=ue(t);let i=(r?x(o.width):o.width)/s,n=(r?x(o.height):o.height)/a;return i&&Number.isFinite(i)||(i=1),n&&Number.isFinite(n)||(n=1),{x:i,y:n}}const me=w(0);function ge(e){const t=W(e);return ae()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:me}function fe(e,t,o,s){void 0===t&&(t=!1),void 0===o&&(o=!1);const a=e.getBoundingClientRect(),r=pe(e);let i=w(1);t&&(s?G(s)&&(i=be(s)):i=be(e));const n=function(e,t,o){return void 0===t&&(t=!1),!!o&&t&&o===W(e)}(r,o,s)?ge(r):w(0);let l=(a.left+n.x)/i.x,d=(a.top+n.y)/i.y,c=a.width/i.x,h=a.height/i.y;if(r&&s){const e=W(r),t=G(s)?W(s):s;let o=e,a=he(o);for(;a&&t!==o;){const e=be(a),t=a.getBoundingClientRect(),s=ie(a),r=t.left+(a.clientLeft+parseFloat(s.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(s.paddingTop))*e.y;l*=e.x,d*=e.y,c*=e.x,h*=e.y,l+=r,d+=i,o=W(a),a=he(o)}}return N({width:c,height:h,x:l,y:d})}function ve(e,t){const o=ne(e).scrollLeft;return t?t.left+o:fe(V(e)).left+o}function xe(e,t){const o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-ve(e,o),y:o.top+t.scrollTop}}function ye(e,t,o){let s;if("viewport"===t||"layoutViewport"===t)s=function(e,t,o){void 0===o&&(o="viewport");const s="layoutViewport"===o,a=W(e),r=V(e),i=a.visualViewport;let n=r.clientWidth,l=r.clientHeight,d=0,c=0;if(i){const e=!ae()||"fixed"===t;s?e||(d=-i.offsetLeft,c=-i.offsetTop):(n=i.width,l=i.height,e&&(d=i.offsetLeft,c=i.offsetTop))}if(ve(r)<=0){const e=r.ownerDocument,t=e.body,o=getComputedStyle(t),s="CSS1Compat"===e.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-s),i="stable both-edges"===getComputedStyle(r).scrollbarGutter?a/2:a;i<=25&&(n-=i)}return{width:n,height:l,x:d,y:c}}(e,o,t);else if("document"===t)s=function(e){const t=ne(e),o=e.ownerDocument.body,s=v(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=v(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-t.scrollLeft+ve(e);const i=-t.scrollTop;return"rtl"===ie(o).direction&&(r+=v(e.clientWidth,o.clientWidth)-s),{width:s,height:a,x:r,y:i}}(V(e));else if(G(t))s=function(e,t){const o=fe(e,!0,"fixed"===t),s=o.top+e.clientTop,a=o.left+e.clientLeft,r=be(e);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:a*r.x,y:s*r.y}}(t,o);else{const o=ge(e);s={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return N(s)}function we(e,t,o){const s=j(t),a=V(t),r="fixed"===o,i=fe(e,!0,r,t);let n={scrollLeft:0,scrollTop:0};const l=w(0);if((s||!r)&&(("body"!==$(t)||Q(a))&&(n=ne(t)),s)){const e=fe(t,!0,r,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!s&&a&&(l.x=ve(a));const d=!a||s||r?w(0):xe(a,n);return{x:i.left+n.scrollLeft-l.x-d.x,y:i.top+n.scrollTop-l.y-d.y,width:i.width,height:i.height}}function ze(e){return"static"===ie(e).position}function ke(e,t){if(!j(e)||"fixed"===ie(e).position)return null;if(t)return t(e);let o=e.offsetParent;return V(e)===o&&(o=o.ownerDocument.body),o}function Se(e,t){const o=W(e);if(Z(e))return o;if(!j(e)){let t=le(e);for(;t&&!re(t);){if(G(t)&&!ze(t))return t;t=le(t)}return o}let s=ke(e,t);for(;s&&Y(s)&&ze(s);)s=ke(s,t);return s&&re(s)&&ze(s)&&!se(s)?o:s||function(e){let t=le(e);for(;j(t)&&!re(t);){if(se(t))return t;if(Z(t))return null;t=le(t)}return null}(e)||o}const Ae={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:o,offsetParent:s,strategy:a}=e;const r="fixed"===a,i=V(s),n=!!t&&Z(t.floating);if(s===i||n&&r)return o;let l={scrollLeft:0,scrollTop:0},d=w(1);const c=w(0),h=j(s);if((h||!r)&&(("body"!==$(s)||Q(i))&&(l=ne(s)),h)){const e=fe(s);d=be(s),c.x=e.x+s.clientLeft,c.y=e.y+s.clientTop}const u=!i||h||r?w(0):xe(i,l);return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-l.scrollLeft*d.x+c.x+u.x,y:o.y*d.y-l.scrollTop*d.y+c.y+u.y}},getDocumentElement:V,getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:s,strategy:a}=e;const r=[..."clippingAncestors"===o?Z(t)?[]:function(e,t){const o=t.get(e);if(o)return o;let s=ce(e,[],!1).filter(e=>G(e)&&"body"!==$(e)),a=null;const r="fixed"===ie(e).position;let i=r?le(e):e;for(;G(i)&&!re(i);){const e=ie(i),t=se(i),o=a?a.position:r?"fixed":"";t||"fixed"!==o&&("absolute"!==o||"static"!==e.position)?a=e:s=s.filter(e=>e!==i),i=le(i)}return t.set(e,s),s}(t,this._c):[].concat(o),s],i=ye(t,r[0],a);let n=i.top,l=i.right,d=i.bottom,c=i.left;for(let e=1;e<r.length;e++){const o=ye(t,r[e],a);n=v(o.top,n),l=f(o.right,l),d=f(o.bottom,d),c=v(o.left,c)}return{width:l-c,height:d-n,x:c,y:n}},getOffsetParent:Se,getElementRects:async function(e){const t=this.getOffsetParent||Se,o=this.getDimensions,s=await o(e.floating);return{reference:we(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:o}=ue(e);return{width:t,height:o}},getScale:be,isElement:G,isRTL:function(e){return"rtl"===ie(e).direction}};function Te(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ee(e,t,o,s){void 0===s&&(s={});const{ancestorScroll:a=!0,ancestorResize:r=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:n="function"==typeof IntersectionObserver,animationFrame:l=!1}=s,d=pe(e),c=a||r?[...d?ce(d):[],...t?ce(t):[]]:[];c.forEach(e=>{a&&e.addEventListener("scroll",o),r&&e.addEventListener("resize",o)});const h=d&&n?function(e,t,o){let s,a=null;const r=V(e);function i(){var e;clearTimeout(s),null==(e=a)||e.disconnect(),a=null}function n(o,l){void 0===o&&(o=!1),void 0===l&&(l=1),i();const d=e.getBoundingClientRect(),{left:c,top:h,width:u,height:p}=d;if(o||t(),!u||!p)return;const b={rootMargin:-y(h)+"px "+-y(r.clientWidth-(c+u))+"px "+-y(r.clientHeight-(h+p))+"px "+-y(c)+"px",threshold:v(0,f(1,l))||1};let m=!0;function g(t){const o=t[0].intersectionRatio;if(!Te(d,e.getBoundingClientRect()))return n();if(o!==l){if(!m)return n();o?n(!1,o):s=setTimeout(()=>{n(!1,1e-7)},1e3)}m=!1}try{a=new IntersectionObserver(g,{...b,root:r.ownerDocument})}catch(e){a=new IntersectionObserver(g,b)}a.observe(e)}const l=W(e),d=()=>n(o);return l.addEventListener("resize",d),n(!0),()=>{l.removeEventListener("resize",d),i()}}(d,o,r):null;let u,p=-1,b=null;i&&(b=new ResizeObserver(e=>{let[s]=e;s&&s.target===d&&b&&t&&(b.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),o()}),d&&!l&&b.observe(d),t&&b.observe(t));let m=l?fe(e):null;return l&&function t(){const s=fe(e);m&&!Te(m,s)&&o();m=s,u=requestAnimationFrame(t)}(),o(),()=>{var e;c.forEach(e=>{a&&e.removeEventListener("scroll",o),r&&e.removeEventListener("resize",o)}),null==h||h(),null==(e=b)||e.disconnect(),b=null,l&&cancelAnimationFrame(u)}}const Be=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var o,s;const{x:a,y:r,placement:i,middlewareData:n}=t,l=await async function(e,t){const{placement:o,platform:s,elements:a}=e,r=await(null==s.isRTL?void 0:s.isRTL(a.floating)),i=S(o),n=A(o),l="y"===B(o),d=U.has(i)?-1:1,c=r&&l?-1:1,h=k(t,e);let{mainAxis:u,crossAxis:p,alignmentAxis:b}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return n&&"number"==typeof b&&(p="end"===n?-1*b:b),l?{x:p*c,y:u*d}:{x:u*d,y:p*c}}(t,e);return i===(null==(o=n.offset)?void 0:o.placement)&&null!=(s=n.arrow)&&s.alignmentOffset?{}:{x:a+l.x,y:r+l.y,data:{...l,placement:i}}}}},_e=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,s,a;const{rects:r,middlewareData:i,placement:n,platform:l,elements:d}=t,{crossAxis:c=!1,alignment:h,allowedPlacements:u=g,autoAlignment:p=!0,...b}=k(e,t),m=void 0!==h||u===g?function(e,t,o){return(e?[...o.filter(t=>A(t)===e),...o.filter(t=>A(t)!==e)]:o.filter(e=>S(e)===e)).filter(o=>!e||A(o)===e||!!t&&C(o)!==o)}(h||null,p,u):u,f=(null==(o=i.autoPlacement)?void 0:o.index)||0,v=m[f];if(null==v)return{};if(n!==v)return{reset:{placement:m[0]}};const x=await l.detectOverflow(t,b),y=H(v,r,await(null==l.isRTL?void 0:l.isRTL(d.floating))),w=[x[S(v)],x[y[0]],x[y[1]]],z=[...(null==(s=i.autoPlacement)?void 0:s.overflows)||[],{placement:v,overflows:w}],T=m[f+1];if(T)return{data:{index:f+1,overflows:z},reset:{placement:T}};const E=z.map(e=>{const t=A(e.placement);return[e.placement,t&&c?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),B=E.filter(e=>e[2].slice(0,A(e[0])?2:3).every(e=>e<=0)),_=(null==(a=B[0])?void 0:a[0])||E[0][0];return _!==n?{data:{index:f+1,overflows:z},reset:{placement:_}}:{}}}},He=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:s,placement:a,platform:r}=t,{mainAxis:i=!0,crossAxis:n=!1,limiter:l={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...d}=k(e,t),c={x:o,y:s},h=await r.detectOverflow(t,d),u=B(a),p=T(u);let b=c[p],m=c[u];const g=(e,t)=>{return o=t+h["y"===e?"top":"left"],s=t,a=t-h["y"===e?"bottom":"right"],v(o,f(s,a));var o,s,a};i&&(b=g(p,b)),n&&(m=g(u,m));const x=l.fn({...t,[p]:b,[u]:m});return{...x,data:{x:x.x-o,y:x.y-s,enabled:{[p]:i,[u]:n}}}}}},Ce=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o,s;const{placement:a,middlewareData:r,rects:i,initialPlacement:n,platform:l,elements:d}=t,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:m=!0,...g}=k(e,t);if(null!=(o=r.arrow)&&o.alignmentOffset)return{};const f=S(a),v=B(n),x=S(n)===n,y=await(null==l.isRTL?void 0:l.isRTL(d.floating)),w=u||(x||!m?[M(n)]:function(e){const t=M(e);return[C(e),t,C(t)]}(n)),z="none"!==b;!u&&z&&w.push(...q(n,m,b,y));const A=[n,...w],T=await l.detectOverflow(t,g),E=[];let _=(null==(s=r.flip)?void 0:s.overflows)||[];if(c&&E.push(T[f]),h){const e=H(a,i,y);E.push(T[e[0]],T[e[1]])}if(_=[..._,{placement:a,overflows:E}],!E.every(e=>e<=0)){var R,F;const e=((null==(R=r.flip)?void 0:R.index)||0)+1,t=A[e];if(t){if(!("alignment"===h&&v!==B(t))||_.every(e=>B(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:_},reset:{placement:t}}}let o=null==(F=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:F.placement;if(!o)switch(p){case"bestFit":{var L;const e=null==(L=_.filter(e=>{if(z){const t=B(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:L[0];e&&(o=e);break}case"initialPlacement":o=n}if(a!==o)return{reset:{placement:o}}}return{}}}},Re=(e,t,o)=>{const s=new Map,a=null!=o?o:{},r={...Ae,...a.platform,_c:s};return(async(e,t,o)=>{const{placement:s="bottom",strategy:a="absolute",middleware:r=[],platform:i}=o,n=i.detectOverflow?i:{...i,detectOverflow:D},l=await(null==i.isRTL?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:h}=P(d,s,l),u=s,p=0;const b={};for(let o=0;o<r.length;o++){const m=r[o];if(!m)continue;const{name:g,fn:f}=m,{x:v,y:x,data:y,reset:w}=await f({x:c,y:h,initialPlacement:s,placement:u,strategy:a,middlewareData:b,rects:d,platform:n,elements:{reference:e,floating:t}});c=null!=v?v:c,h=null!=x?x:h,b[g]={...b[g],...y},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(u=w.placement),w.rects&&(d=!0===w.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):w.rects),({x:c,y:h}=P(d,u,l))),o=-1)}return{x:c,y:h,placement:u,strategy:a,middlewareData:b}})(e,t,{...a,platform:r})};class Fe{static isMousePressed=!1;static isMousePressHandlerInitialized=!1;static setupMousePressChecker(){if(!Fe.isMousePressHandlerInitialized&&window&&window.addEventListener){Fe.isMousePressHandlerInitialized=!0,Fe._mousePressedTimeout||(Fe._mousePressedTimeout=null);const e=e=>{const t="mousedown"===e.type;t?(null!==Fe._mousePressedTimeout&&(clearTimeout(Fe._mousePressedTimeout),Fe._mousePressedTimeout=null),Fe.isMousePressed||(Fe.isMousePressed=!0)):Fe.isMousePressed&&!t&&(Fe._mousePressedTimeout=setTimeout(()=>{Fe.isMousePressed=!1,Fe._mousePressedTimeout=null},0))};window.addEventListener("mousedown",e),window.addEventListener("mouseup",e)}}static openingQueue=[];static get topOpeningFloatingUI(){const e=document.expandedAuroFormkitDropdown||document.expandedAuroFloater;return e&&e.element.isPopoverVisible?e:(document.expandedAuroFormkitDropdown=null,document.expandedAuroFloater=null,Fe.openingQueue.length>0?Fe.openingQueue[Fe.openingQueue.length-1]:null)}constructor(e,t){this.element=e,this.behavior=t,this.focusHandler=null,this.clickHandler=null,this.keyDownHandler=null,this.touchHandler=null,this.enableKeyboardHandling=!0,this.configureTrial=0,this.eventPrefix=void 0,this.id=void 0,this.showing=!1,this.strategy=void 0}mirrorSize(){const e=this.element;if(e&&e.bibSizer&&e.matchWidth&&e.bib?.shadowRoot){const t=window.getComputedStyle(e.bibSizer),o=e.bib.shadowRoot.querySelector(".container");if(!o)return;"0px"!==t.width&&(o.style.width=t.width),"0px"!==t.height&&(o.style.height=t.height),o.style.maxWidth=t.maxWidth,o.style.maxHeight=t.maxHeight}}getPositioningStrategy(){const e=this.element;if(!e)return"floating";const t=e.bib?.mobileFullscreenBreakpoint||e.floaterConfig?.fullscreenBreakpoint;switch(this.behavior){case"tooltip":return"floating";case"dialog":case"drawer":if(t){const e=window.matchMedia(`(max-width: ${t})`).matches;return this.element.expanded=e,this.element.nested?"cover":e||this.element.modal?"fullscreen":"dialog"}return"dialog";case"dropdown":case void 0:case null:if(t){if(window.matchMedia(`(max-width: ${t})`).matches)return"fullscreen"}return"floating";default:return this.behavior}}position(){const e=this.element;if(!e)return;const t=this.getPositioningStrategy();if(this.configureBibStrategy(t),"floating"===t){if(!e.trigger||!e.bib)return;this.mirrorSize();const t=[Be(e.floaterConfig?.offset||0),...e.floaterConfig?.shift?[He()]:[],...e.floaterConfig?.flip?[Ce()]:[],...e.floaterConfig?.autoPlacement?[_e()]:[]];Re(e.trigger,e.bib,{strategy:e.floaterConfig?.strategy||"fixed",placement:e.floaterConfig?.placement,middleware:t||[]}).then(({x:e,y:t})=>{const o=this.element;o?.bib&&Object.assign(o.bib.style,{left:`${e}px`,top:`${t}px`})})}else if("cover"===t){if(!e.parentNode||!e.bib)return;Re(e.parentNode,e.bib,{placement:"bottom-start"}).then(({x:e,y:t})=>{const o=this.element;o?.bib&&o.parentNode&&Object.assign(o.bib.style,{left:`${e}px`,top:t-o.parentNode.offsetHeight+"px",width:`${o.parentNode.offsetWidth}px`,height:`${o.parentNode.offsetHeight}px`})})}}mirrorAriaModal(e){const t=this.element,o=t?.bib?(t.bib?.shadowRoot||t.bib||t).querySelector("dialog"):void 0;o&&(e?"true"!==o.getAttribute("aria-modal")&&o.setAttribute("aria-modal","true"):o.removeAttribute("aria-modal"))}lockScroll(e=!0){const t=this.element;e&&!t?.bib||(e?(this.mirrorAriaModal(!0),this._scrollLocked||(this._scrollLocked=!0,this._savedScrollY=window.scrollY,this._savedScrollStyles={rootScrollbarGutter:document.documentElement.style.scrollbarGutter,rootOverflow:document.documentElement.style.overflow,bodyOverflow:document.body.style.overflow,bodyPosition:document.body.style.position,bodyTop:document.body.style.top,bodyWidth:document.body.style.width,bibTransform:t?.bib?.style.transform},document.documentElement.style.scrollbarGutter="stable",document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top=`-${this._savedScrollY}px`,document.body.style.width="100%",window.visualViewport&&(this._viewportRafId=void 0,this._viewportHandler=()=>{void 0===this._viewportRafId&&(this._viewportRafId=requestAnimationFrame(()=>{this._viewportRafId=void 0,t?.bib&&(t.bib.style.transform=`translateY(${window.visualViewport.offsetTop}px)`)}))},window.visualViewport.addEventListener("resize",this._viewportHandler),window.visualViewport.addEventListener("scroll",this._viewportHandler),this._viewportHandler()),this.lockTouchScroll(!0))):this._scrollLocked&&(this.mirrorAriaModal(!1),this._viewportHandler&&window.visualViewport&&(window.visualViewport.removeEventListener("resize",this._viewportHandler),window.visualViewport.removeEventListener("scroll",this._viewportHandler),this._viewportHandler=void 0),void 0!==this._viewportRafId&&(cancelAnimationFrame(this._viewportRafId),this._viewportRafId=void 0),document.documentElement.style.scrollbarGutter=this._savedScrollStyles?.rootScrollbarGutter??"",document.documentElement.style.overflow=this._savedScrollStyles?.rootOverflow??"",document.body.style.overflow=this._savedScrollStyles?.bodyOverflow??"",document.body.style.position=this._savedScrollStyles?.bodyPosition??"",document.body.style.top=this._savedScrollStyles?.bodyTop??"",document.body.style.width=this._savedScrollStyles?.bodyWidth??"",t?.bib&&(t.bib.style.transform=this._savedScrollStyles?.bibTransform??""),window.scrollTo(0,this._savedScrollY||0),this._savedScrollY=void 0,this._savedScrollStyles=void 0,this._scrollLocked=!1,this.lockTouchScroll(!1)))}lockTouchScroll(e=!0){if(e){if(this._boundTouchMoveHandler)return;this._boundTouchMoveHandler=e=>{e.composedPath().some(e=>e!==document&&e!==document.documentElement&&e!==document.body&&(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth))||e.preventDefault()},document.addEventListener("touchmove",this._boundTouchMoveHandler,{passive:!1})}else this._boundTouchMoveHandler&&(document.removeEventListener("touchmove",this._boundTouchMoveHandler,{passive:!1}),this._boundTouchMoveHandler=void 0)}configureBibStrategy(e){const t=this.element;if(!t?.bib)return;if("fullscreen"===e||"dialog"===e){t.isBibFullscreen=!0,t.bib.setAttribute("isfullscreen",""),t.bib.style.position="fixed",t.bib.style.top="0px",t.bib.style.left="0px",t.bib.style.width="",t.bib.style.height="",t.style.contain="";const o=t.bib.shadowRoot?.querySelector(".container");o?(o.style.width="",o.style.height="",o.style.maxWidth="",o.style.maxHeight="",this.configureTrial=0):this.configureTrial<10&&(this.configureTrial+=1,this._configureRetryId=setTimeout(()=>{this._configureRetryId=void 0,this.configureBibStrategy(e)},0)),t.isPopoverVisible&&this.lockScroll(!0)}else this.lockScroll(!1),t.bib.style.position="",t.bib.removeAttribute("isfullscreen"),t.isBibFullscreen=!1,t.style.contain="layout";const o=this.strategy&&this.strategy!==e;if(this.strategy=e,o){const o=new CustomEvent(this.eventPrefix?`${this.eventPrefix}-strategy-change`:"strategy-change",{detail:{value:e},composed:!0});t.dispatchEvent(o)}}updateState(){const e=this.element;if(!e)return;if(!e.isPopoverVisible){this.cleanupHideHandlers();try{e.cleanup?.()}catch(e){}}}handleFocusLoss(){const e=this.element;if(e?.bib&&!Fe.isMousePressed&&!(e.noHideOnThisFocusLoss||e.hasAttribute("noHideOnThisFocusLoss")||e.matches(":focus")||e.matches(":focus-within"))){try{let t=document.activeElement;for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;const o=[e,e.trigger,e.bib].filter(Boolean);let s=t;for(;s;){if(o.includes(s))return;s=s.parentElement||s.getRootNode&&s.getRootNode().host||null}}catch(e){}e.bib.hasAttribute("isfullscreen")||this.hideBib("focusloss")}}setupDismissHandlers(){const e=this.element;e&&(e.modal?(this.keyDownHandler&&document.removeEventListener("keydown",this.keyDownHandler),this.keyDownHandler=t=>{"Escape"===t.key&&e.isPopoverVisible&&(t.preventDefault(),t.stopImmediatePropagation())},document.addEventListener("keydown",this.keyDownHandler)):this.setupHideHandlers())}setupHideHandlers(){this.element&&(this.focusHandler=()=>this.handleFocusLoss(),this.clickHandler=e=>{const t=this.element;if(t?.bib&&!t.bib.hasAttribute("isfullscreen")&&(!e.composedPath().includes(t.trigger)&&!e.composedPath().includes(t.bib)||t.bib.backdrop&&e.composedPath().includes(t.bib.backdrop))){const e=document.expandedAuroFormkitDropdown||document.expandedAuroFloater;e&&e.element.isPopoverVisible?(e.hideBib(),document.expandedAuroFormkitDropdown=null,document.expandedAuroFloater=this):this.hideBib("click")}},this.keyDownHandler=e=>{const t=this.element;if(t&&"Escape"===e.key&&t.isPopoverVisible){const e=document.expandedAuroFormkitDropdown||document.expandedAuroFloater;if(e&&e!==this&&e.element.isPopoverVisible)return;this.hideBib("keydown")}},"drawer"!==this.behavior&&"dialog"!==this.behavior&&document.addEventListener("focusin",this.focusHandler),this.enableKeyboardHandling&&document.addEventListener("keydown",this.keyDownHandler),setTimeout(()=>{window.addEventListener("click",this.clickHandler)},0),this.touchHandler=e=>{const t=this.element;if(!t?.bib)return;if(t.bib.hasAttribute("isfullscreen"))return;const o=e.composedPath();o.includes(t.trigger)||o.includes(t.bib)||this.hideBib("click")},window.addEventListener("touchstart",this.touchHandler,{passive:!0}))}cleanupHideHandlers(){this.focusHandler&&(document.removeEventListener("focusin",this.focusHandler),this.focusHandler=null),this.clickHandler&&(window.removeEventListener("click",this.clickHandler),this.clickHandler=null),this.touchHandler&&(window.removeEventListener("touchstart",this.touchHandler),this.touchHandler=null),this.keyDownHandler&&(document.removeEventListener("keydown",this.keyDownHandler),this.keyDownHandler=null)}handleUpdate(e){e.has("isPopoverVisible")&&this.updateState()}updateCurrentExpandedDropdown(){if(!this.element)return;const e=document.expandedAuroFormkitDropdown||document.expandedAuroFloater;e&&e!==this&&e.element.isPopoverVisible&&e.eventPrefix===this.eventPrefix&&e.hideBib(),document.expandedAuroFloater=this}showBib(){const e=this.element;if(e&&e.bib&&(e.trigger||e.parentNode)&&!e.disabled&&!this.showing){this.updateCurrentExpandedDropdown(),e.triggerChevron?.setAttribute("data-expanded",!0),this.showing||(this.setupDismissHandlers(),this.showing=!0,e.isPopoverVisible=!0,this.position(),this.dispatchEventDropdownToggle()),e.cleanup=Ee(e.trigger||e.parentNode,e.bib,()=>{this.position()});const t=Fe.openingQueue.indexOf(this);t>-1&&Fe.openingQueue.splice(t,1),Fe.openingQueue.push(this)}}hideBib(e="unknown"){const t=this.element;if(!t)return;if(t.disabled)return;if(t.noToggle&&"click"===e)return;this.lockScroll(!1),t.triggerChevron?.removeAttribute("data-expanded"),t.isPopoverVisible&&(t.isPopoverVisible=!1),this.showing&&(this.cleanupHideHandlers(),this.showing=!1,this.dispatchEventDropdownToggle(e)),document.expandedAuroFloater=null;const o=Fe.openingQueue.indexOf(this);o>-1&&Fe.openingQueue.splice(o,1)}dispatchEventDropdownToggle(e){const t=this.element;if(!t)return;const o=new CustomEvent(this.eventPrefix?`${this.eventPrefix}-toggled`:"toggled",{detail:{expanded:this.showing,eventType:e||"unknown"},composed:!0});t.dispatchEvent(o)}handleClick(){const e=this.element;if(!e)return;e.isPopoverVisible?this.hideBib("click"):this.showBib();const t=new CustomEvent(this.eventPrefix?`${this.eventPrefix}-triggerClick`:"triggerClick",{composed:!0,detail:{expanded:e.isPopoverVisible}});e.dispatchEvent(t)}handleEvent(e){const t=this.element;if(t&&!t.disableEventShow)switch(e.type){case"keydown":{const t=e.composedPath()[0];"Enter"!==e.key&&(" "!==e.key||t&&"INPUT"===t.tagName)||(e.preventDefault(),this.handleClick());break}case"mouseenter":t.hoverToggle&&this.showBib();break;case"mouseleave":t.hoverToggle&&this.hideBib("mouseleave");break;case"focus":t.focusShow&&this.showBib();break;case"blur":setTimeout(()=>this.handleFocusLoss(),0);break;case"click":document.activeElement===document.body&&e.currentTarget.focus(),this.handleClick()}}handleTriggerTabIndex(){const e=this.element;if(!e)return;const t=e.querySelectorAll('[slot="trigger"]')[0];if(!t)return;const o=t.tagName.toLowerCase();["a","button",'input:not([type="hidden"])',"select","textarea",'[tabindex]:not([tabindex="-1"])',"auro-button","auro-input","auro-hyperlink"].forEach(s=>{o!==s?t.querySelector(s)&&(e.tabIndex=-1):e.tabIndex=-1})}regenerateBibId(){const e=this.element;e&&(this.id=e.getAttribute("id"),this.id||(this.id=function(){let e;if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)e=crypto.randomUUID();else if("undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues){const t=new Uint8Array(16);crypto.getRandomValues(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;const o=Array.from(t).map(e=>e.toString(16).padStart(2,"0"));e=`${o.slice(0,4).join("")}-${o.slice(4,6).join("")}-${o.slice(6,8).join("")}-${o.slice(8,10).join("")}-${o.slice(10).join("")}`}else{let t=(new Date).getTime();e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const o=t%16|0;return t=(t-o)/16||(new Date).getTime(),("x"===e?o:3&o|8).toString(16)})}return/^[0-9]/.test(e)?`a${e.slice(1)}`:e}(),e.setAttribute("id",this.id)),e.bib?.setAttribute("id",`${this.id}-floater-bib`))}configure(e,t,o=!0){Fe.setupMousePressChecker(),this.enableKeyboardHandling=o,this.eventPrefix=t;const s=this.element===e;s||(this.element?.trigger&&this.disconnect({teardown:!0}),this.showing=!1,this.element=e);const a=this.element;a&&(this.behavior!==a.behavior&&(this.behavior=a.behavior),s&&a.trigger&&this.disconnect({teardown:!1}),a.trigger=a.triggerElement||a.shadowRoot?.querySelector("#trigger")||a.trigger,a.bib=a.shadowRoot?.querySelector("#bib")||a.bib,a.bibSizer=a.shadowRoot?.querySelector("#bibSizer"),a.triggerChevron=a.shadowRoot?.querySelector("#showStateIcon"),a.floaterConfig&&(a.hoverToggle=a.floaterConfig.hoverToggle),this.regenerateBibId(),this.handleTriggerTabIndex(),this.handleEvent=this.handleEvent.bind(this),a.trigger&&(this.enableKeyboardHandling&&a.trigger.addEventListener("keydown",this.handleEvent),a.trigger.addEventListener("click",this.handleEvent),a.trigger.addEventListener("mouseenter",this.handleEvent),a.trigger.addEventListener("mouseleave",this.handleEvent),a.trigger.addEventListener("focus",this.handleEvent),a.trigger.addEventListener("blur",this.handleEvent)),s&&this.showing&&(this.setupDismissHandlers(),a.bib&&(a.trigger||a.parentNode)&&(a.cleanup=Ee(a.trigger||a.parentNode,a.bib,()=>{this.position()}))))}disconnect({teardown:e=!0}={}){this.cleanupHideHandlers(),void 0!==this._configureRetryId&&(clearTimeout(this._configureRetryId),this._configureRetryId=void 0),e&&this.lockScroll(!1);const t=this.element;t&&(t.cleanup?.(),t.bib&&t.shadowRoot&&t.shadowRoot.append(t.bib),t.trigger&&(t.trigger.removeEventListener("keydown",this.handleEvent),t.trigger.removeEventListener("click",this.handleEvent),t.trigger.removeEventListener("mouseenter",this.handleEvent),t.trigger.removeEventListener("mouseleave",this.handleEvent),t.trigger.removeEventListener("focus",this.handleEvent),t.trigger.removeEventListener("blur",this.handleEvent)))}}class Le{generateElementName(e,t){let o=e;return o+="-",o+=t.replace(/[.]/g,"_"),o}generateTag(e,t,o){const s=this.generateElementName(e,t),a=i`${r(s)}`;return customElements.get(s)||customElements.define(s,class extends o{}),a}}class Ie{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{})}closestElement(e,t=this,o=(t,s=t&&t.closest(e))=>t&&t!==document&&t!==window?s||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,!0)}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}getSlotText(e,t){const o=e.shadowRoot?.querySelector(`slot[name="${t}"]`),s=(o?.assignedNodes({flatten:!0})||[]).map(e=>e.textContent?.trim()).join(" ").trim();return s||null}}class qe{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{})}closestElement(e,t=this,o=(t,s=t&&t.closest(e))=>t&&t!==document&&t!==window?s||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,!0)}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}}var Me=e`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]),: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])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
2
2
  `,Ne=e`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0;box-sizing:border-box}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:calc(1rem + var(--margin) * 2)}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(1.95rem + var(--margin-xs) * 6);height:calc(.65rem + var(--margin-xs) * 2)}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:calc(2rem + var(--margin-sm) * 2)}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:calc(3rem + var(--margin-md) * 2)}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:calc(5rem + var(--margin-lg) * 2)}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
3
3
  `,Pe=e`:host{--ds-auro-loader-background-color: currentcolor;--ds-auro-loader-border-color: currentcolor;--ds-auro-loader-color: currentcolor}
4
4
  `;class De extends t{constructor(){super(),this.appearance="default",this.keys=[0,1,2,3,4,5,6,7,8,9],this.mdCount=3,this.smCount=2,this.runtimeUtils=new qe,this.orbit=!1,this.ringworm=!1,this.laser=!1,this.pulse=!1}static get properties(){return{appearance:{type:String,reflect:!0},laser:{type:Boolean,reflect:!0},orbit:{type:Boolean,reflect:!0},pulse:{type:Boolean,reflect:!0},ringworm:{type:Boolean,reflect:!0}}}static get styles(){return[Ne,Me,Pe]}static register(e="auro-loader"){qe.prototype.registerComponent(e,De)}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-loader")}connectedCallback(){super.connectedCallback()}defineTemplate(){let e=Array.from(Array(this.mdCount).keys());return this.orbit||this.laser?e=Array.from(Array(this.smCount).keys()):this.ringworm&&(e=Array.from(Array(0).keys())),e}render(){return o`
@@ -77,9 +77,9 @@ import{css as e,LitElement as t,html as o}from"lit";import{classMap as s}from"li
77
77
  </div>
78
78
  `}}var mt=e`dialog.container .wrapper{background:var(--ds-auro-dialog-container-color);color:var(--ds-auro-dialog-text-color)}dialog.container::backdrop{background:var(--ds-auro-dialog-overlay-open-background-color)}dialog.container:not([popover])::backdrop{background:var(--ds-auro-dialog-overlay-modal-background-color)}@media screen and (min-width:768px){dialog.container{box-shadow:var(--ds-auro-dialog-boxshadow-color)}}.dialog-header--action{border:2px solid transparent;border-radius:var(--ds-border-radius, .375rem);background-color:transparent}
79
79
  `,gt=e`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{font-size:var(--wcss-body-default-emphasized-font-size, 1rem);font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{font-size:var(--wcss-body-lg-emphasized-font-size, 1.125rem);font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{font-size:var(--wcss-body-sm-emphasized-font-size, .875rem);font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{font-size:var(--wcss-body-xs-emphasized-font-size, .75rem);font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.body-2xs{font-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, .875rem)}.body-2xs,.body-2xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{font-size:var(--wcss-body-2xs-emphasized-font-size, .625rem);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-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 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-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-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{--insetPaddingXl: 0 var(--ds-size-400, 2rem) var(--ds-size-400, 2rem) var(--ds-size-400, 2rem);--insetPaddingXxl: 0 var(--ds-size-600, 3rem) var(--ds-size-600, 3rem) var(--ds-size-600, 3rem);--insetPaddingXxxl: 0 var(--ds-size-800, 4rem) var(--ds-size-800, 4rem) var(--ds-size-800, 4rem)}[auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.dialogOverlay{position:fixed;z-index:-1;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.dialogOverlay--open{z-index:var(--ds-depth-overlay);pointer-events:unset;transition:background .3s cubic-bezier(.4,0,.2,0)}.dialogOverlay--modal{z-index:var(--ds-depth-overlay);transition:background .3s cubic-bezier(.4,0,.5,0)}.bib{position:fixed;inset:0;visibility:hidden;overflow:hidden}.bib dialog.container{display:inline-block;width:100%;max-width:none;height:100%;max-height:none;padding:0;border-width:medium;border-style:none;border-color:currentcolor;border-image:initial;margin:0;background-color:transparent;outline:none;transform:translateZ(0);overflow:hidden}:host([open]) .bib{visibility:visible}.dialog{position:fixed;z-index:-1;top:unset;right:0;bottom:-100%;left:0;box-sizing:border-box;display:flex;flex-direction:column;overflow:visible;width:calc(100% - var(--insetPaddingXl) - var(--insetPaddingXl));max-height:90%;padding:var(--insetPaddingXl);opacity:0;border:0;margin:0;max-width:none;transition:opacity .3s ease-in-out,visibility .3s ease-in-out,bottom .3s ease-in-out}.dialog--open{z-index:var(--ds-depth-modal, 300);visibility:visible;bottom:0;opacity:1}@media screen and (min-width:768px){.dialog{top:10%;bottom:unset;left:0;right:0;max-width:80%;max-height:80%;margin:auto;padding:var(--insetPaddingXxxl);opacity:0;width:calc(100% - var(--insetPaddingXxxl) - var(--insetPaddingXxxl));height:auto;overflow:visible}.dialog--open{opacity:1}}@media screen and (min-width:1024px){.dialog{max-width:986px}}.dialog-footer{padding-top:var(--ds-size-400, 2rem)}@media screen and (min-width:768px){.dialog-footer ::slotted(*){display:flex;justify-content:flex-end}}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;padding-top:var(--ds-size-800, 4rem);margin-bottom:var(--ds-size-300, 1.5rem)}.dialog-header--action{margin:0;padding:0}.dialog-header--action:hover{cursor:pointer}.dialog-header .heading{flex:1;margin-block:0}.dialog-content{flex:1;overflow:auto;overscroll-behavior:contain;margin:calc(-1 * var(--ds-size-100));padding:var(--ds-size-100)}::slotted([slot=content]){position:relative}:host([unformatted]) .dialog-header--action{position:absolute;top:var(--ds-size-400, 2rem);bottom:unset;right:var(--ds-size-400, 2rem)}@media screen and (min-width:768px){:host([unformatted]) .dialog-header--action{top:var(--ds-size-800, 4rem);bottom:unset;right:var(--ds-size-800, 4rem)}}:host([sm]) .dialog{max-height:30%}@media screen and (min-width:768px){:host([sm]) .dialog{top:10%;bottom:unset;max-width:40%;max-height:80%;padding:var(--insetPaddingXxl)}}@media screen and (min-width:1024px){:host([sm]) .dialog{max-width:740px}}:host([md]) .dialog{max-height:50%}@media screen and (min-width:768px){:host([md]) .dialog{top:10%;bottom:unset;max-width:70%;max-height:80%}}@media screen and (min-width:1024px){:host([md]) .dialog{top:10%;bottom:unset;max-width:986px}}@media screen and (min-width:768px){:host([sm][lg]) .dialog,:host([md][lg]) .dialog{max-height:80%}}:host([sm][lg]) .dialog,:host([md][lg]) .dialog{max-height:90%}:host([unformatted]) .dialog{padding:0}
80
- `,vt=e`[unformatted] .unformattedWrapper{padding:var(--ds-size-400, 2rem)}@media screen and (min-width:768px){[unformatted] .unformattedWrapper{padding:var(--ds-size-800, 4rem);padding-top:var(--ds-size-400, 2rem)}}
81
- `,ft=e`:host{--ds-auro-dialog-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dialog-boxshadow-color: var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, .2));--ds-auro-dialog-overlay-modal-background-color: var(--ds-advanced-color-shared-scrim, rgba(0, 0, 0, .5));--ds-auro-dialog-overlay-open-background-color: var(--ds-advanced-color-shared-scrim, rgba(0, 0, 0, .5));--ds-auro-dialog-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}
82
- `;class xt extends t{constructor(){super(),this._initializeDefaults()}_initializeDefaults(){this.modal=!1,this.unformatted=!1,this.closeButtonAppearance="default",this.isPopoverVisible=!1,this.isBibFullscreen=!1,this.floater=new Fe(this,"dialog");const e=new d;this.buttonTag=e.generateTag("auro-button","12.3.2",rt),this.iconTag=e.generateTag("auro-icon","9.2.0",bt),this.runtimeUtils=new l}static get properties(){return{closeButtonAppearance:{type:String,attribute:"close-button-appearance",reflect:!0},lg:{type:Boolean,reflect:!0},md:{type:Boolean,reflect:!0},modal:{type:Boolean},onDark:{type:Boolean,reflect:!0},isPopoverVisible:{type:Boolean,reflect:!0,attribute:"open"},isBibFullscreen:{type:Boolean,reflect:!0},sm:{type:Boolean,reflect:!0},triggerElement:{type:Object,attribute:!1},unformatted:{type:Boolean,reflect:!0}}}get open(){return this.isPopoverVisible}set open(e){this.isPopoverVisible=Boolean(e)}get floaterConfig(){if(!xt._mobileBreakpointValue){const e=getComputedStyle(document.documentElement);xt._mobileBreakpointValue=e.getPropertyValue("--ds-grid-breakpoint-md").trim()}return{prefix:"auroDialog",fullscreenBreakpoint:xt._mobileBreakpointValue}}get behavior(){return"dialog"}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-dialog");const e=this.shadowRoot.querySelector("#footer"),t=this.shadowRoot.querySelector("#footerWrapper");this.dialog=this.shadowRoot.getElementById("dialog"),this.unformatted||0!==e.assignedNodes().length||t.classList.remove("dialog-footer"),this.floater.configure(this,this.floaterConfig.prefix),this.addEventListener("auroDialog-toggled",e=>{e.detail.expanded||this.dispatchToggleEvent()}),this.dialog.addEventListener("cancel",e=>{e.preventDefault(),this.modal||this.hide()}),this.dialog.addEventListener("click",e=>{e.target===this.dialog&&(this.modal||Fe.topOpeningFloatingUI===this.floater&&this.hide())})}updated(e){this.floater.handleUpdate(e),e.has("isPopoverVisible")&&(this.isPopoverVisible?this.floater.showing||this.show():this.floater.showing&&this.hide()),e.has("triggerElement")&&this.floater.configure(this,this.floaterConfig.prefix)}disconnectedCallback(){super.disconnectedCallback(),this._hidePopoverTimerId&&(clearTimeout(this._hidePopoverTimerId),this._hidePopoverTimerId=void 0),this._focusFallbackTimerId&&(clearTimeout(this._focusFallbackTimerId),this._focusFallbackTimerId=void 0),this.focusTrap&&(this.focusTrap.disconnect(),this.focusTrap=void 0),this._focusTrapActivated=!1,this.floater.disconnect()}openDialog(){this.defaultTrigger=document.activeElement||this.triggerElement,this._hidePopoverTimerId&&(clearTimeout(this._hidePopoverTimerId),this._hidePopoverTimerId=void 0),this.modal?this.dialog.showModal():this.dialog.showPopover(),this._focusFallbackTimerId&&(clearTimeout(this._focusFallbackTimerId),this._focusFallbackTimerId=void 0),this.focusTrap&&this.focusTrap.disconnect(),this.focusTrap=new b(this.dialog),this._focusTrapActivated=!1,this._focusFallbackTimerId=setTimeout(()=>{this._focusFallbackTimerId=void 0,this.isPopoverVisible&&this.focusTrap&&!this._focusTrapActivated&&(this.focusTrap.focusFirstElement(),this._focusTrapActivated=!0)},350)}onDialogTransitionEnd(){this._focusFallbackTimerId&&(clearTimeout(this._focusFallbackTimerId),this._focusFallbackTimerId=void 0),this.isPopoverVisible&&this.focusTrap&&!this._focusTrapActivated&&(this.focusTrap.focusFirstElement(),this._focusTrapActivated=!0)}closeDialog(){this._focusFallbackTimerId&&(clearTimeout(this._focusFallbackTimerId),this._focusFallbackTimerId=void 0),this._focusTrapActivated=!1,this.focusTrap&&(this.focusTrap.disconnect(),this.focusTrap=void 0),this.modal?this.dialog?.open&&this.dialog.close():this._hidePopoverTimerId||(this._hidePopoverTimerId=setTimeout(()=>{this.dialog?.hidePopover?.(),this._hidePopoverTimerId=void 0},300)),this.defaultTrigger&&(this.defaultTrigger.focus(),this.defaultTrigger=void 0)}dispatchToggleEvent(){const e=new Event("toggle",{bubbles:!0,cancelable:!1});this.dispatchEvent(e)}handleCloseButtonClick(){this.hide()}focus(){this.isPopoverVisible&&this.dialog.focus()}show(){this.floater.showBib(),this.openDialog()}hide(){this.floater.hideBib(),this.closeDialog()}static get styles(){return[gt,vt,mt,ft]}getCloseButton(){return this.modal?n``:n`
80
+ `,ft=e`[unformatted] .unformattedWrapper{padding:var(--ds-size-400, 2rem)}@media screen and (min-width:768px){[unformatted] .unformattedWrapper{padding:var(--ds-size-800, 4rem);padding-top:var(--ds-size-400, 2rem)}}
81
+ `,vt=e`:host{--ds-auro-dialog-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dialog-boxshadow-color: var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, .2));--ds-auro-dialog-overlay-modal-background-color: var(--ds-advanced-color-shared-scrim, rgba(0, 0, 0, .5));--ds-auro-dialog-overlay-open-background-color: var(--ds-advanced-color-shared-scrim, rgba(0, 0, 0, .5));--ds-auro-dialog-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}
82
+ `;class xt extends t{constructor(){super(),this._initializeDefaults()}_initializeDefaults(){this.modal=!1,this.unformatted=!1,this.closeButtonAppearance="default",this.isPopoverVisible=!1,this.isBibFullscreen=!1,this.floater=new Fe(this,"dialog"),this._floaterTornDown=!1;const e=new d;this.buttonTag=e.generateTag("auro-button","12.3.2",rt),this.iconTag=e.generateTag("auro-icon","9.2.0",bt),this.runtimeUtils=new l}static get properties(){return{closeButtonAppearance:{type:String,attribute:"close-button-appearance",reflect:!0},lg:{type:Boolean,reflect:!0},md:{type:Boolean,reflect:!0},modal:{type:Boolean},onDark:{type:Boolean,reflect:!0,attribute:"ondark"},isPopoverVisible:{type:Boolean,reflect:!0,attribute:"open"},isBibFullscreen:{type:Boolean,reflect:!0,attribute:"isbibfullscreen"},sm:{type:Boolean,reflect:!0},triggerElement:{type:Object,attribute:!1},unformatted:{type:Boolean,reflect:!0}}}get open(){return this.isPopoverVisible}set open(e){this.isPopoverVisible=Boolean(e)}get floaterConfig(){if(!xt._mobileBreakpointValue){const e=getComputedStyle(document.documentElement);xt._mobileBreakpointValue=e.getPropertyValue("--ds-grid-breakpoint-md").trim()}return{prefix:"auroDialog",fullscreenBreakpoint:xt._mobileBreakpointValue}}get behavior(){return"dialog"}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-dialog");const e=this.shadowRoot.querySelector("#footer"),t=this.shadowRoot.querySelector("#footerWrapper");this.dialog=this.shadowRoot.getElementById("dialog"),this.unformatted||0!==e.assignedNodes().length||t.classList.remove("dialog-footer"),this._configureFloater(),this.addEventListener("auroDialog-toggled",e=>{e.detail.expanded||this.dispatchToggleEvent()}),this.dialog.addEventListener("cancel",e=>{e.preventDefault(),this.modal||this.hide()}),this.dialog.addEventListener("click",e=>{e.target===this.dialog&&(this.modal||Fe.topOpeningFloatingUI===this.floater&&this.hide())})}updated(e){this.floater.handleUpdate(e),e.has("isPopoverVisible")&&(this.isPopoverVisible?this.floater.showing||this.show():this.floater.showing&&this.hide()),e.has("triggerElement")&&this._configureFloater()}_configureFloater(){this._floaterTornDown=!1,this.floater.configure(this,this.floaterConfig.prefix)}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this._floaterTornDown&&this._configureFloater()}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||this._teardown()})}_teardown(){this._floaterTornDown||(this._floaterTornDown=!0,this._hidePopoverTimerId&&(clearTimeout(this._hidePopoverTimerId),this._hidePopoverTimerId=void 0),this._focusFallbackTimerId&&(clearTimeout(this._focusFallbackTimerId),this._focusFallbackTimerId=void 0),this.focusTrap&&(this.focusTrap.disconnect(),this.focusTrap=void 0),this._focusTrapActivated=!1,this.floater.disconnect())}openDialog(){this.defaultTrigger=document.activeElement||this.triggerElement,this._hidePopoverTimerId&&(clearTimeout(this._hidePopoverTimerId),this._hidePopoverTimerId=void 0),this.modal?this.dialog.showModal():this.dialog.showPopover(),this._focusFallbackTimerId&&(clearTimeout(this._focusFallbackTimerId),this._focusFallbackTimerId=void 0),this.focusTrap&&this.focusTrap.disconnect(),this.focusTrap=new b(this.dialog),this._focusTrapActivated=!1,this._focusFallbackTimerId=setTimeout(()=>{this._focusFallbackTimerId=void 0,this.isPopoverVisible&&this.focusTrap&&!this._focusTrapActivated&&(this.focusTrap.focusFirstElement(),this._focusTrapActivated=!0)},350)}onDialogTransitionEnd(){this._focusFallbackTimerId&&(clearTimeout(this._focusFallbackTimerId),this._focusFallbackTimerId=void 0),this.isPopoverVisible&&this.focusTrap&&!this._focusTrapActivated&&(this.focusTrap.focusFirstElement(),this._focusTrapActivated=!0)}closeDialog(){this._focusFallbackTimerId&&(clearTimeout(this._focusFallbackTimerId),this._focusFallbackTimerId=void 0),this._focusTrapActivated=!1,this.focusTrap&&(this.focusTrap.disconnect(),this.focusTrap=void 0),this.modal?this.dialog?.open&&this.dialog.close():this._hidePopoverTimerId||(this._hidePopoverTimerId=setTimeout(()=>{this.dialog?.hidePopover?.(),this._hidePopoverTimerId=void 0},300)),this.defaultTrigger&&(this.defaultTrigger.focus(),this.defaultTrigger=void 0)}dispatchToggleEvent(){const e=new Event("toggle",{bubbles:!0,cancelable:!1});this.dispatchEvent(e)}handleCloseButtonClick(){this.hide()}focus(){this.isPopoverVisible&&this.dialog.focus()}show(){this.floater.showBib(),this.openDialog()}hide(){this.floater.hideBib(),this.closeDialog()}static get styles(){return[gt,ft,mt,vt]}getCloseButton(){return this.modal?n``:n`
83
83
  <${this.buttonTag}
84
84
  aria-label="${this.runtimeUtils.getSlotText(this,"ariaLabel.dialog.close")||"Close"}"
85
85
  variant="ghost"
package/dist/index.d.ts CHANGED
@@ -83,6 +83,8 @@ export type AuroDialogProps = {
83
83
  /** Defines whether the close button should be light colored for use on dark backgrounds. */
84
84
  closeButtonAppearance?: AuroDialog["closeButtonAppearance"];
85
85
  /** If true, the dialog bib is in fullscreen mode. */
86
+ isbibfullscreen?: AuroDialog["isBibFullscreen"];
87
+ /** If true, the dialog bib is in fullscreen mode. */
86
88
  isBibFullscreen?: AuroDialog["isBibFullscreen"];
87
89
  /** Sets dialog box to large style. Adding both lg and sm/md will set the dialog to lg for mobile and sm/md for desktop.
88
90
  Must be used in conjunction with sm or md to have an effect. */
@@ -91,8 +93,6 @@ Must be used in conjunction with sm or md to have an effect. */
91
93
  md?: AuroDialog["md"];
92
94
  /** Modal dialog restricts the user to take an action (no default close actions). */
93
95
  modal?: AuroDialog["modal"];
94
- /** DEPRECATED - use `close-button-appearance="inverse" instead. */
95
- onDark?: AuroDialog["onDark"];
96
96
  /** Sets state of dialog to open. */
97
97
  open?: AuroDialog["isPopoverVisible"];
98
98
  /** Sets state of dialog to open. */
@@ -101,6 +101,10 @@ Must be used in conjunction with sm or md to have an effect. */
101
101
  sm?: AuroDialog["sm"];
102
102
  /** Unformatted dialog window, edge-to-edge fill for content. */
103
103
  unformatted?: AuroDialog["unformatted"];
104
+ /** @deprecated Use `close-button-appearance="inverse"` instead. - DEPRECATED - use `close-button-appearance="inverse" instead. */
105
+ ondark?: AuroDialog["onDark"];
106
+ /** @deprecated Use `close-button-appearance="inverse"` instead. - DEPRECATED - use `close-button-appearance="inverse" instead. */
107
+ onDark?: AuroDialog["onDark"];
104
108
  /** The element to focus when the dialog is closed. If not set, defaults to the value of document.activeElement when the dialog is opened. */
105
109
  triggerElement?: AuroDialog["triggerElement"];
106
110
 
@@ -114,6 +118,8 @@ export type AuroDialogSolidJsProps = {
114
118
  /** Defines whether the close button should be light colored for use on dark backgrounds. */
115
119
  "prop:closeButtonAppearance"?: AuroDialog["closeButtonAppearance"];
116
120
  /** If true, the dialog bib is in fullscreen mode. */
121
+ "bool:isbibfullscreen"?: AuroDialog["isBibFullscreen"];
122
+ /** If true, the dialog bib is in fullscreen mode. */
117
123
  "prop:isBibFullscreen"?: AuroDialog["isBibFullscreen"];
118
124
  /** Sets dialog box to large style. Adding both lg and sm/md will set the dialog to lg for mobile and sm/md for desktop.
119
125
  Must be used in conjunction with sm or md to have an effect. */
@@ -122,8 +128,6 @@ Must be used in conjunction with sm or md to have an effect. */
122
128
  "prop:md"?: AuroDialog["md"];
123
129
  /** Modal dialog restricts the user to take an action (no default close actions). */
124
130
  "prop:modal"?: AuroDialog["modal"];
125
- /** DEPRECATED - use `close-button-appearance="inverse" instead. */
126
- "prop:onDark"?: AuroDialog["onDark"];
127
131
  /** Sets state of dialog to open. */
128
132
  "bool:open"?: AuroDialog["isPopoverVisible"];
129
133
  /** Sets state of dialog to open. */
@@ -132,6 +136,10 @@ Must be used in conjunction with sm or md to have an effect. */
132
136
  "prop:sm"?: AuroDialog["sm"];
133
137
  /** Unformatted dialog window, edge-to-edge fill for content. */
134
138
  "prop:unformatted"?: AuroDialog["unformatted"];
139
+ /** @deprecated Use `close-button-appearance="inverse"` instead. - DEPRECATED - use `close-button-appearance="inverse" instead. */
140
+ "bool:ondark"?: AuroDialog["onDark"];
141
+ /** @deprecated Use `close-button-appearance="inverse"` instead. - DEPRECATED - use `close-button-appearance="inverse" instead. */
142
+ "prop:onDark"?: AuroDialog["onDark"];
135
143
  /** The element to focus when the dialog is closed. If not set, defaults to the value of document.activeElement when the dialog is opened. */
136
144
  "prop:triggerElement"?: AuroDialog["triggerElement"];
137
145
  /** Event fires when the element is closed */
@@ -152,15 +160,15 @@ export type CustomElements = {
152
160
  * Component attributes and properties that can be applied to the element or by using JavaScript.
153
161
  *
154
162
  * - `close-button-appearance`/`closeButtonAppearance`: Defines whether the close button should be light colored for use on dark backgrounds.
155
- * - `isBibFullscreen`: If true, the dialog bib is in fullscreen mode.
163
+ * - `isbibfullscreen`/`isBibFullscreen`: If true, the dialog bib is in fullscreen mode.
156
164
  * - `lg`: Sets dialog box to large style. Adding both lg and sm/md will set the dialog to lg for mobile and sm/md for desktop.
157
165
  * Must be used in conjunction with sm or md to have an effect.
158
166
  * - `md`: Sets dialog box to medium style. Adding both md and lg will set the dialog to md for desktop and lg for mobile.
159
167
  * - `modal`: Modal dialog restricts the user to take an action (no default close actions).
160
- * - `onDark`: DEPRECATED - use `close-button-appearance="inverse" instead.
161
168
  * - `open`/`isPopoverVisible`: Sets state of dialog to open.
162
169
  * - `sm`: Sets dialog box to small style. Adding both sm and lg will set the dialog to sm for desktop and lg for mobile.
163
170
  * - `unformatted`: Unformatted dialog window, edge-to-edge fill for content.
171
+ * - `ondark`/`onDark`: DEPRECATED - use `close-button-appearance="inverse" instead.
164
172
  * - `behavior`: undefined (property only) (readonly)
165
173
  * - `open`: undefined (property only)
166
174
  * - `triggerElement`: The element to focus when the dialog is closed. If not set, defaults to the value of document.activeElement when the dialog is opened. (property only)
@@ -212,15 +220,15 @@ export type CustomElementsSolidJs = {
212
220
  * Component attributes and properties that can be applied to the element or by using JavaScript.
213
221
  *
214
222
  * - `close-button-appearance`/`closeButtonAppearance`: Defines whether the close button should be light colored for use on dark backgrounds.
215
- * - `isBibFullscreen`: If true, the dialog bib is in fullscreen mode.
223
+ * - `isbibfullscreen`/`isBibFullscreen`: If true, the dialog bib is in fullscreen mode.
216
224
  * - `lg`: Sets dialog box to large style. Adding both lg and sm/md will set the dialog to lg for mobile and sm/md for desktop.
217
225
  * Must be used in conjunction with sm or md to have an effect.
218
226
  * - `md`: Sets dialog box to medium style. Adding both md and lg will set the dialog to md for desktop and lg for mobile.
219
227
  * - `modal`: Modal dialog restricts the user to take an action (no default close actions).
220
- * - `onDark`: DEPRECATED - use `close-button-appearance="inverse" instead.
221
228
  * - `open`/`isPopoverVisible`: Sets state of dialog to open.
222
229
  * - `sm`: Sets dialog box to small style. Adding both sm and lg will set the dialog to sm for desktop and lg for mobile.
223
230
  * - `unformatted`: Unformatted dialog window, edge-to-edge fill for content.
231
+ * - `ondark`/`onDark`: DEPRECATED - use `close-button-appearance="inverse" instead.
224
232
  * - `behavior`: undefined (property only) (readonly)
225
233
  * - `open`: undefined (property only)
226
234
  * - `triggerElement`: The element to focus when the dialog is closed. If not set, defaults to the value of document.activeElement when the dialog is opened. (property only)
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export{A as AuroDialog}from"./auro-dialog-T9I85UZL.js";import"lit";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"lit/static-html.js";
1
+ export{A as AuroDialog}from"./auro-dialog-FFeXiEB1.js";import"lit";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"lit/static-html.js";
@@ -1 +1 @@
1
- import{A as i}from"./auro-dialog-T9I85UZL.js";import"lit";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"lit/static-html.js";i.register();
1
+ import{A as i}from"./auro-dialog-FFeXiEB1.js";import"lit";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"lit/static-html.js";i.register();
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "================================================================================"
8
8
  ],
9
9
  "name": "@aurodesignsystem/auro-dialog",
10
- "version": "4.2.1",
10
+ "version": "4.2.2",
11
11
  "description": "auro-dialog HTML custom element",
12
12
  "repository": {
13
13
  "type": "git",
@@ -28,7 +28,7 @@
28
28
  "@aurodesignsystem/auro-cli": "^3.7.1",
29
29
  "@aurodesignsystem/auro-config": "^1.3.1",
30
30
  "@aurodesignsystem/auro-icon": "^9.2.0",
31
- "@aurodesignsystem/auro-library": "^5.13.3",
31
+ "@aurodesignsystem/auro-library": "^5.14.3",
32
32
  "@aurodesignsystem/design-tokens": "^9.3.2",
33
33
  "@aurodesignsystem/webcorestylesheets": "^11.1.3",
34
34
  "husky": "^9.1.7"