diff --git a/libs/features/spectrum-web-components/dist/dialog.js b/libs/features/spectrum-web-components/dist/dialog.js index f5d9c78e96..123e5027fd 100644 --- a/libs/features/spectrum-web-components/dist/dialog.js +++ b/libs/features/spectrum-web-components/dist/dialog.js @@ -1,45 +1,45 @@ /* eslint-disable */ /* Generated by Milo */ -import{html as g,nothing as f}from"/libs/features/spectrum-web-components/dist/base.js";import{property as h,query as C}from"/libs/features/spectrum-web-components/dist/base.js";import"/libs/features/spectrum-web-components/dist/divider.js";import"/libs/features/spectrum-web-components/dist/button.js";import"/libs/features/spectrum-web-components/dist/button-group.js";import"/libs/features/spectrum-web-components/dist/icons-workflow.js";import{ObserveSlotPresence as P}from"/libs/features/spectrum-web-components/dist/shared.js";import{css as T}from"/libs/features/spectrum-web-components/dist/base.js";var B=T` +import{html as p,nothing as v}from"/libs/features/spectrum-web-components/dist/base.js";import{property as f,query as P}from"/libs/features/spectrum-web-components/dist/base.js";import"/libs/features/spectrum-web-components/dist/divider.js";import"/libs/features/spectrum-web-components/dist/button.js";import"/libs/features/spectrum-web-components/dist/button-group.js";import"/libs/features/spectrum-web-components/dist/icons-workflow.js";import{ObserveSlotPresence as G}from"/libs/features/spectrum-web-components/dist/shared.js";import{css as T}from"/libs/features/spectrum-web-components/dist/base.js";var B=T` :host{--spectrum-dialog-fullscreen-header-text-size:28px;--spectrum-dialog-min-inline-size:288px;--spectrum-dialog-confirm-small-width:400px;--spectrum-dialog-confirm-medium-width:480px;--spectrum-dialog-confirm-large-width:640px;--spectrum-dialog-confirm-divider-block-spacing-start:var(--spectrum-spacing-300);--spectrum-dialog-confirm-divider-block-spacing-end:var(--spectrum-spacing-200);--spectrum-dialog-confirm-description-text-color:var(--spectrum-gray-800);--spectrum-dialog-confirm-title-text-color:var(--spectrum-gray-900);--spectrum-dialog-confirm-description-text-line-height:var(--spectrum-line-height-100);--spectrum-dialog-confirm-title-text-line-height:var(--spectrum-line-height-100);--spectrum-dialog-heading-font-weight:var(--spectrum-heading-sans-serif-font-weight);--spectrum-dialog-confirm-description-padding:var(--spectrum-spacing-50);--spectrum-dialog-confirm-description-margin:calc(var(--spectrum-spacing-50)*-1);--spectrum-dialog-confirm-footer-padding-top:var(--spectrum-spacing-600);--spectrum-dialog-confirm-gap-size:var(--spectrum-component-pill-edge-to-text-100);--spectrum-dialog-confirm-buttongroup-padding-top:var(--spectrum-spacing-600);--spectrum-dialog-confirm-close-button-size:var(--spectrum-component-height-100);--spectrum-dialog-confirm-close-button-padding:calc(26px - var(--spectrum-component-bottom-to-text-300));--spectrum-dialog-confirm-divider-height:var(--spectrum-spacing-50);box-sizing:border-box;min-inline-size:var(--mod-dialog-min-inline-size,var(--spectrum-dialog-min-inline-size));max-height:inherit;outline:none;inline-size:fit-content;max-inline-size:100%;display:flex}:host([size=s]){inline-size:var(--mod-dialog-confirm-small-width,var(--spectrum-dialog-confirm-small-width))}:host([size=m]){inline-size:var(--mod-dialog-confirm-medium-width,var(--spectrum-dialog-confirm-medium-width))}:host([size=l]){inline-size:var(--mod-dialog-confirm-large-width,var(--spectrum-dialog-confirm-large-width))}::slotted([slot=hero]){height:var(--mod-dialog-confirm-hero-height,var(--spectrum-dialog-confirm-hero-height));border-top-left-radius:var(--mod-dialog-confirm-border-radius,var(--spectrum-dialog-confirm-border-radius));border-top-right-radius:var(--mod-dialog-confirm-border-radius,var(--spectrum-dialog-confirm-border-radius));background-position:50%;background-size:cover;grid-area:hero;overflow:hidden}.grid{grid-template-columns:var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid))auto 1fr auto minmax(0,auto)var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid));grid-template-rows:auto var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid))auto auto 1fr auto var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid));grid-template-areas:"hero hero hero hero hero hero"". . . . . ."".heading header header header."".divider divider divider divider."".content content content content."".footer footer buttonGroup buttonGroup."". . . . . .";inline-size:100%;display:grid}::slotted([slot=heading]){font-size:var(--mod-dialog-confirm-title-text-size,var(--spectrum-dialog-confirm-title-text-size));font-weight:var(--mod-dialog-heading-font-weight,var(--spectrum-dialog-heading-font-weight));line-height:var(--mod-dialog-confirm-title-text-line-height,var(--spectrum-dialog-confirm-title-text-line-height));color:var(--mod-dialog-confirm-title-text-color,var(--spectrum-dialog-confirm-title-text-color));outline:none;grid-area:heading;margin:0;padding-inline-end:var(--mod-dialog-confirm-gap-size,var(--spectrum-dialog-confirm-gap-size))}.no-header::slotted([slot=heading]){grid-area:heading-start/heading-start/header-end/header-end;padding-inline-end:0}.header{box-sizing:border-box;outline:none;grid-area:header;justify-content:flex-end;align-items:center;display:flex}.divider{grid-area:divider;inline-size:100%;margin-block-start:var(--mod-dialog-confirm-divider-block-spacing-end,var(--spectrum-dialog-confirm-divider-block-spacing-end));margin-block-end:var(--mod-dialog-confirm-divider-block-spacing-start,var(--spectrum-dialog-confirm-divider-block-spacing-start))}:host([mode=fullscreen]) [name=heading]+.divider{margin-block-end:calc(var(--mod-dialog-confirm-divider-block-spacing-start,var(--spectrum-dialog-confirm-divider-block-spacing-start)) - var(--mod-dialog-confirm-description-padding,var(--spectrum-dialog-confirm-description-padding))*2)}:host([no-divider]) .divider{display:none}:host([no-divider]) ::slotted([slot=heading]){padding-block-end:calc(var(--mod-dialog-confirm-divider-block-spacing-end,var(--spectrum-dialog-confirm-divider-block-spacing-end)) + var(--mod-dialog-confirm-divider-block-spacing-start,var(--spectrum-dialog-confirm-divider-block-spacing-start)) + var(--mod-dialog-confirm-divider-height,var(--spectrum-dialog-confirm-divider-height)))}.content{box-sizing:border-box;-webkit-overflow-scrolling:touch;font-size:var(--mod-dialog-confirm-description-text-size,var(--spectrum-dialog-confirm-description-text-size));font-weight:var(--mod-dialog-confirm-description-font-weight,var(--spectrum-regular-font-weight));line-height:var(--mod-dialog-confirm-description-text-line-height,var(--spectrum-dialog-confirm-description-text-line-height));color:var(--mod-dialog-confirm-description-text-color,var(--spectrum-dialog-confirm-description-text-color));padding:calc(var(--mod-dialog-confirm-description-padding,var(--spectrum-dialog-confirm-description-padding))*2);margin:0 var(--mod-dialog-confirm-description-margin,var(--spectrum-dialog-confirm-description-margin));outline:none;grid-area:content;overflow-y:auto}.footer{outline:none;flex-wrap:wrap;grid-area:footer;padding-block-start:var(--mod-dialog-confirm-footer-padding-top,var(--spectrum-dialog-confirm-footer-padding-top));display:flex}.footer>*,.footer>.spectrum-Button+.spectrum-Button{margin-bottom:0}.button-group{grid-area:buttonGroup;justify-content:flex-end;padding-block-start:var(--mod-dialog-confirm-buttongroup-padding-top,var(--spectrum-dialog-confirm-buttongroup-padding-top));padding-inline-start:var(--mod-dialog-confirm-gap-size,var(--spectrum-dialog-confirm-gap-size));display:flex}.button-group.button-group--noFooter{grid-area:footer-start/footer-start/buttonGroup-end/buttonGroup-end}:host([dismissable]) .grid{grid-template-columns:var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid))auto 1fr auto minmax(0,auto)minmax(0,var(--mod-dialog-confirm-close-button-size,var(--spectrum-dialog-confirm-close-button-size)))var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid));grid-template-rows:auto var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid))auto auto 1fr auto var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid));grid-template-areas:"hero hero hero hero hero hero hero"". . . . .closeButton closeButton"".heading header header typeIcon closeButton closeButton"".divider divider divider divider divider."".content content content content content."".footer footer buttonGroup buttonGroup buttonGroup."". . . . . . ."}:host([dismissable]) .grid .button-group{display:none}:host([dismissable]) .grid .footer{color:var(--mod-dialog-confirm-description-text-color,var(--spectrum-dialog-confirm-description-text-color));grid-area:footer/footer/buttonGroup/buttonGroup}.close-button{grid-area:closeButton;place-self:start end;margin-block-start:var(--mod-dialog-confirm-close-button-padding,var(--spectrum-dialog-confirm-close-button-padding));margin-inline-end:var(--mod-dialog-confirm-close-button-padding,var(--spectrum-dialog-confirm-close-button-padding))}:host([mode=fullscreen]){inline-size:100%;height:100%}:host([mode=fullscreenTakeover]){inline-size:100%;border-radius:0;height:100%}:host([mode=fullscreen]),:host([mode=fullscreenTakeover]){max-height:none;max-inline-size:none}:host([mode=fullscreen]) .grid,:host([mode=fullscreenTakeover]) .grid{grid-template-columns:var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid))1fr auto auto var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid));grid-template-rows:var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid))auto auto 1fr var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid));grid-template-areas:". . . . ."".heading header buttonGroup."".divider divider divider."".content content content."". . . . .";display:grid}:host([mode=fullscreen]) ::slotted([slot=heading]),:host([mode=fullscreenTakeover]) ::slotted([slot=heading]){font-size:var(--mod-dialog-fullscreen-header-text-size,var(--spectrum-dialog-fullscreen-header-text-size))}:host([mode=fullscreen]) .content,:host([mode=fullscreenTakeover]) .content{max-height:none}:host([mode=fullscreen]) .footer,:host([mode=fullscreen]) .button-group,:host([mode=fullscreenTakeover]) .footer,:host([mode=fullscreenTakeover]) .button-group{padding-block-start:0}:host([mode=fullscreen]) .footer,:host([mode=fullscreenTakeover]) .footer{display:none}:host([mode=fullscreen]) .button-group,:host([mode=fullscreenTakeover]) .button-group{grid-area:buttonGroup;align-self:start}@media screen and (width<=700px){.grid{grid-template-columns:var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid))auto 1fr auto minmax(0,auto)var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid));grid-template-rows:auto var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid))auto auto auto 1fr auto var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid));grid-template-areas:"hero hero hero hero hero hero"". . . . . ."".heading heading heading heading."".header header header header."".divider divider divider divider."".content content content content."".footer footer buttonGroup buttonGroup."". . . . . ."}:host([dismissable]) .grid{grid-template-columns:var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid))auto 1fr auto minmax(0,auto)minmax(0,var(--mod-dialog-confirm-close-button-size,var(--spectrum-dialog-confirm-close-button-size)))var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid));grid-template-rows:auto var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid))auto auto auto 1fr auto var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid));grid-template-areas:"hero hero hero hero hero hero hero"". . . . .closeButton closeButton"".heading heading heading heading closeButton closeButton"".header header header header header."".divider divider divider divider divider."".content content content content content."".footer footer buttonGroup buttonGroup buttonGroup."". . . . . . ."}.header{justify-content:flex-start}:host([mode=fullscreen]) .grid,:host([mode=fullscreenTakeover]) .grid{grid-template-columns:var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid))1fr var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid));grid-template-rows:var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid))auto auto auto 1fr auto var(--mod-dialog-confirm-padding-grid,var(--spectrum-dialog-confirm-padding-grid));grid-template-areas:". . ."".heading."".header."".divider."".content."".buttonGroup."". . .";display:grid}:host([mode=fullscreen]) .button-group,:host([mode=fullscreenTakeover]) .button-group{padding-block-start:var(--mod-dialog-confirm-buttongroup-padding-top,var(--spectrum-dialog-confirm-buttongroup-padding-top))}:host([mode=fullscreen]) ::slotted([slot=heading]),:host([mode=fullscreenTakeover]) ::slotted([slot=heading]){font-size:var(--mod-dialog-confirm-title-text-size,var(--spectrum-dialog-confirm-title-text-size))}}@media (forced-colors:active){:host{border:solid}}:host{--swc-alert-dialog-error-icon-color:var(--spectrum-negative-visual-color)}.content{overflow:hidden}.footer{color:var(--spectrum-dialog-confirm-description-text-color,var(--spectrum-gray-800))}.type-icon{color:var(--mod-alert-dialog-error-icon-color,var(--swc-alert-dialog-error-icon-color));grid-area:typeIcon}.content[tabindex]{overflow:auto}::slotted(img[slot=hero]){width:100%;height:auto}.grid{grid-template-areas:"hero hero hero hero hero hero"". . . . . ."".heading heading heading typeIcon."".divider divider divider divider."".content content content content."".footer footer buttonGroup buttonGroup."". . . . . ."} -`,w=B;import{AlertDialog as G}from"/libs/features/spectrum-web-components/dist/alert-dialog.js";import{classMap as D}from"/libs/features/spectrum-web-components/dist/base.js";var E=Object.defineProperty,L=Object.getOwnPropertyDescriptor,p=(d,o,t,r)=>{for(var i=r>1?void 0:r?L(o,t):o,s=d.length-1,l;s>=0;s--)(l=d[s])&&(i=(r?l(o,t,i):l(i))||i);return r&&i&&E(o,t,i),i},m=class extends P(G,['[slot="hero"]','[slot="footer"]','[slot="button"]']){constructor(){super(...arguments),this.error=!1,this.dismissable=!1,this.dismissLabel="Close",this.noDivider=!1}static get styles(){return[w]}get hasFooter(){return this.getSlotContentPresence('[slot="footer"]')}get hasButtons(){return this.getSlotContentPresence('[slot="button"]')}get hasHero(){return this.getSlotContentPresence('[slot="hero"]')}close(){this.dispatchEvent(new Event("close",{bubbles:!0,composed:!0,cancelable:!0}))}renderHero(){return g` +`,w=B;import{AlertDialog as D}from"/libs/features/spectrum-web-components/dist/alert-dialog.js";import{classMap as L}from"/libs/features/spectrum-web-components/dist/base.js";var E=Object.defineProperty,C=Object.getOwnPropertyDescriptor,u=(a,o,t,r)=>{for(var i=r>1?void 0:r?C(o,t):o,n=a.length-1,d;n>=0;n--)(d=a[n])&&(i=(r?d(o,t,i):d(i))||i);return r&&i&&E(o,t,i),i},c=class extends G(D,['[slot="hero"]','[slot="footer"]','[slot="button"]']){constructor(){super(...arguments),this.error=!1,this.dismissable=!1,this.noDivider=!1}static get styles(){return[w]}get hasFooter(){return this.getSlotContentPresence('[slot="footer"]')}get hasButtons(){return this.getSlotContentPresence('[slot="button"]')}get hasHero(){return this.getSlotContentPresence('[slot="hero"]')}close(){this.dispatchEvent(new Event("close",{bubbles:!0,composed:!0,cancelable:!0}))}renderHero(){return p` - `}renderFooter(){return g` + `}renderFooter(){return p` - `}renderButtons(){let o={"button-group":!0,"button-group--noFooter":!this.hasFooter};return g` - + `}renderButtons(){let o={"button-group":!0,"button-group--noFooter":!this.hasFooter};return p` + - `}renderDismiss(){return g` + `}renderDismiss(){return p` - `}render(){return g` + `}render(){return p`
${this.renderHero()} ${this.renderHeading()} - ${this.error?g` + ${this.error?p` - `:f} - ${this.noDivider?f:g` + `:v} + ${this.noDivider?v:p` `} ${this.renderContent()} - ${this.hasFooter?this.renderFooter():f} - ${this.hasButtons?this.renderButtons():f} - ${this.dismissable?this.renderDismiss():f} + ${this.hasFooter?this.renderFooter():v} + ${this.hasButtons?this.renderButtons():v} + ${this.dismissable?this.renderDismiss():v}
- `}shouldUpdate(o){return o.has("mode")&&this.mode&&(this.dismissable=!1),o.has("dismissable")&&this.dismissable&&(this.dismissable=!this.mode),super.shouldUpdate(o)}firstUpdated(o){super.firstUpdated(o),this.setAttribute("role","dialog")}};p([C(".close-button")],m.prototype,"closeButton",2),p([h({type:Boolean,reflect:!0})],m.prototype,"error",2),p([h({type:Boolean,reflect:!0})],m.prototype,"dismissable",2),p([h({type:String,reflect:!0,attribute:"dismiss-label"})],m.prototype,"dismissLabel",2),p([h({type:Boolean,reflect:!0,attribute:"no-divider"})],m.prototype,"noDivider",2),p([h({type:String,reflect:!0})],m.prototype,"mode",2),p([h({type:String,reflect:!0})],m.prototype,"size",2);import{defineElement as S}from"/libs/features/spectrum-web-components/dist/base.js";S("sp-dialog",m);import{html as u,nothing as v}from"/libs/features/spectrum-web-components/dist/base.js";import{property as n}from"/libs/features/spectrum-web-components/dist/base.js";import{ifDefined as x}from"/libs/features/spectrum-web-components/dist/base.js";import"/libs/features/spectrum-web-components/dist/underlay.js";import"/libs/features/spectrum-web-components/dist/button.js";import{html as z,nothing as H,SpectrumElement as I}from"/libs/features/spectrum-web-components/dist/base.js";import{property as y}from"/libs/features/spectrum-web-components/dist/base.js";import"/libs/features/spectrum-web-components/dist/underlay.js";import"/libs/features/spectrum-web-components/dist/button.js";import{css as O}from"/libs/features/spectrum-web-components/dist/base.js";var F=O` + `}shouldUpdate(o){return o.has("mode")&&this.mode&&(this.dismissable=!1),o.has("dismissable")&&this.dismissable&&(this.dismissable=!this.mode),super.shouldUpdate(o)}firstUpdated(o){super.firstUpdated(o),this.setAttribute("role","dialog")}};u([P(".close-button")],c.prototype,"closeButton",2),u([f({type:Boolean,reflect:!0})],c.prototype,"error",2),u([f({type:Boolean,reflect:!0})],c.prototype,"dismissable",2),u([f({type:Boolean,reflect:!0,attribute:"no-divider"})],c.prototype,"noDivider",2),u([f({type:String,reflect:!0})],c.prototype,"mode",2),u([f({type:String,reflect:!0})],c.prototype,"size",2);import{defineElement as S}from"/libs/features/spectrum-web-components/dist/base.js";S("sp-dialog",c);import{html as g,nothing as h}from"/libs/features/spectrum-web-components/dist/base.js";import{property as m}from"/libs/features/spectrum-web-components/dist/base.js";import{ifDefined as x}from"/libs/features/spectrum-web-components/dist/base.js";import"/libs/features/spectrum-web-components/dist/underlay.js";import"/libs/features/spectrum-web-components/dist/button.js";import{html as z,nothing as H,SpectrumElement as I}from"/libs/features/spectrum-web-components/dist/base.js";import{property as y}from"/libs/features/spectrum-web-components/dist/base.js";import"/libs/features/spectrum-web-components/dist/underlay.js";import"/libs/features/spectrum-web-components/dist/button.js";import{css as O}from"/libs/features/spectrum-web-components/dist/base.js";var F=O` :host{box-sizing:border-box;visibility:hidden;pointer-events:none;z-index:2;transition:visibility 0s linear var(--mod-modal-transition-animation-duration,var(--spectrum-modal-transition-animation-duration));justify-content:center;align-items:center;block-size:stretch;inline-size:100vw;display:flex;position:fixed;top:0;left:0}:host([open]){visibility:visible}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]){inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%;margin-top:0}} `,k=F;import{css as j}from"/libs/features/spectrum-web-components/dist/base.js";var U=j` .modal{pointer-events:none;visibility:hidden;opacity:0;transition:transform var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,opacity var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,visibility 0s linear var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))}:host([open]) .modal{pointer-events:auto;visibility:visible;opacity:1;transition-delay:var(--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0,0s))}:host{--spectrum-modal-confirm-exit-animation-delay:var(--spectrum-animation-duration-0);--spectrum-modal-fullscreen-margin:32px;--spectrum-modal-max-height:90vh;--spectrum-modal-max-width:90%;--spectrum-modal-background-color:var(--spectrum-gray-100);--spectrum-modal-confirm-border-radius:var(--spectrum-corner-radius-100);--spectrum-modal-confirm-exit-animation-duration:var(--spectrum-animation-duration-100);--spectrum-modal-confirm-entry-animation-duration:var(--spectrum-animation-duration-500);--spectrum-modal-confirm-entry-animation-delay:var(--spectrum-animation-duration-200);--spectrum-modal-transition-animation-duration:var(--spectrum-animation-duration-100)}.modal{transform:translateY(var(--mod-modal-confirm-entry-animation-distance,var(--spectrum-modal-confirm-entry-animation-distance)));z-index:2;max-block-size:var(--mod-modal-max-height,var(--spectrum-modal-max-height));max-inline-size:var(--mod-modal-max-width,var(--spectrum-modal-max-width));background:var(--mod-modal-background-color,var(--spectrum-modal-background-color));border-radius:var(--mod-modal-confirm-border-radius,var(--spectrum-modal-confirm-border-radius));pointer-events:auto;transition:opacity var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))var(--spectrum-animation-ease-in)var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)),visibility 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))),transform 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration)));outline:none;overflow:hidden}:host([open]) .modal{transition:transform var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)),opacity var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay));transform:translateY(0)}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]) .modal{inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%}}.fullscreen{max-inline-size:none;max-height:none;position:fixed;inset-block-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-block-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin))}.fullscreenTakeover{box-sizing:border-box;max-inline-size:none;border:none;border-radius:0;max-height:none;position:fixed;inset:0}.fullscreenTakeover,:host([open]) .fullscreenTakeover{transform:none}:host{--spectrum-dialog-confirm-exit-animation-duration:var(--swc-test-duration);--spectrum-dialog-confirm-entry-animation-duration:var(--swc-test-duration);--spectrum-modal-confirm-entry-animation-distance:var(--spectrum-dialog-confirm-entry-animation-distance);height:100dvh}.modal{overflow:visible} -`,$=U;import{FocusVisiblePolyfillMixin as V}from"/libs/features/spectrum-web-components/dist/shared.js";import{firstFocusableIn as N}from"/libs/features/spectrum-web-components/dist/shared.js";var M=Object.defineProperty,q=Object.getOwnPropertyDescriptor,b=(d,o,t,r)=>{for(var i=r>1?void 0:r?q(o,t):o,s=d.length-1,l;s>=0;s--)(l=d[s])&&(i=(r?l(o,t,i):l(i))||i);return r&&i&&M(o,t,i),i},c=class extends V(I){constructor(){super(...arguments),this.dismissable=!1,this.open=!1,this.responsive=!1,this.transitionPromise=Promise.resolve(),this.resolveTransitionPromise=()=>{},this.underlay=!1,this.animating=!1}static get styles(){return[k,$]}get dialog(){return this.shadowRoot.querySelector("slot").assignedElements()[0]||this}async focus(){if(this.shadowRoot){let o=N(this.dialog);o?(o.updateComplete&&await o.updateComplete,o.focus()):this.dialog.focus()}else super.focus()}overlayWillCloseCallback(){return this.open?(this.close(),!0):this.animating}dismiss(){this.dismissable&&this.close()}handleClose(o){o.stopPropagation(),this.close()}close(){this.open=!1}dispatchClosed(){this.dispatchEvent(new Event("close",{bubbles:!0}))}handleTransitionEvent(o){this.dispatchEvent(new TransitionEvent(o.type,{bubbles:!0,composed:!0,propertyName:o.propertyName}))}handleUnderlayTransitionend(o){!this.open&&o.propertyName==="visibility"&&this.resolveTransitionPromise(),this.handleTransitionEvent(o)}handleModalTransitionend(o){(this.open||!this.underlay)&&this.resolveTransitionPromise(),this.handleTransitionEvent(o)}update(o){o.has("open")&&o.get("open")!==void 0&&(this.animating=!0,this.transitionPromise=new Promise(t=>{this.resolveTransitionPromise=()=>{this.animating=!1,t()}}),this.open||this.dispatchClosed()),super.update(o)}renderDialog(){return z` +`,$=U;import{FocusVisiblePolyfillMixin as V}from"/libs/features/spectrum-web-components/dist/shared.js";import{firstFocusableIn as N}from"/libs/features/spectrum-web-components/dist/shared.js";var M=Object.defineProperty,q=Object.getOwnPropertyDescriptor,b=(a,o,t,r)=>{for(var i=r>1?void 0:r?q(o,t):o,n=a.length-1,d;n>=0;n--)(d=a[n])&&(i=(r?d(o,t,i):d(i))||i);return r&&i&&M(o,t,i),i},s=class extends V(I){constructor(){super(...arguments),this.dismissable=!1,this.open=!1,this.responsive=!1,this.transitionPromise=Promise.resolve(),this.resolveTransitionPromise=()=>{},this.underlay=!1,this.animating=!1}static get styles(){return[k,$]}get dialog(){return this.shadowRoot.querySelector("slot").assignedElements()[0]||this}async focus(){if(this.shadowRoot){let o=N(this.dialog);o?(o.updateComplete&&await o.updateComplete,o.focus()):this.dialog.focus()}else super.focus()}overlayWillCloseCallback(){return this.open?(this.close(),!0):this.animating}dismiss(){this.dismissable&&this.close()}handleClose(o){o.stopPropagation(),this.close()}close(){this.open=!1}dispatchClosed(){this.dispatchEvent(new Event("close",{bubbles:!0}))}handleTransitionEvent(o){this.dispatchEvent(new TransitionEvent(o.type,{bubbles:!0,composed:!0,propertyName:o.propertyName}))}handleUnderlayTransitionend(o){!this.open&&o.propertyName==="visibility"&&this.resolveTransitionPromise(),this.handleTransitionEvent(o)}handleModalTransitionend(o){(this.open||!this.underlay)&&this.resolveTransitionPromise(),this.handleTransitionEvent(o)}update(o){o.has("open")&&o.get("open")!==void 0&&(this.animating=!0,this.transitionPromise=new Promise(t=>{this.resolveTransitionPromise=()=>{this.animating=!1,t()}}),this.open||this.dispatchClosed()),super.update(o)}renderDialog(){return z` `}render(){return z` ${this.underlay?z` @@ -60,36 +60,35 @@ import{html as g,nothing as f}from"/libs/features/spectrum-web-components/dist/b > ${this.renderDialog()} - `}updated(o){o.has("open")&&this.open&&"updateComplete"in this.dialog&&"shouldManageTabOrderForScrolling"in this.dialog&&this.dialog.updateComplete.then(()=>{this.dialog.shouldManageTabOrderForScrolling()})}async getUpdateComplete(){let o=await super.getUpdateComplete();return await this.transitionPromise,o}};b([y({type:Boolean,reflect:!0})],c.prototype,"dismissable",2),b([y({type:Boolean,reflect:!0})],c.prototype,"open",2),b([y({type:String,reflect:!0})],c.prototype,"mode",2),b([y({type:Boolean})],c.prototype,"responsive",2),b([y({type:Boolean})],c.prototype,"underlay",2);var R=Object.defineProperty,A=Object.getOwnPropertyDescriptor,a=(d,o,t,r)=>{for(var i=r>1?void 0:r?A(o,t):o,s=d.length-1,l;s>=0;s--)(l=d[s])&&(i=(r?l(o,t,i):l(i))||i);return r&&i&&R(o,t,i),i},e=class extends c{constructor(){super(...arguments),this.error=!1,this.cancelLabel="",this.confirmLabel="",this.dismissLabel="Close",this.footer="",this.hero="",this.heroLabel="",this.noDivider=!1,this.secondaryLabel="",this.headline=""}static get styles(){return[...super.styles]}get dialog(){return this.shadowRoot.querySelector("sp-dialog")}clickSecondary(){this.dispatchEvent(new Event("secondary",{bubbles:!0}))}clickCancel(){this.dispatchEvent(new Event("cancel",{bubbles:!0}))}clickConfirm(){this.dispatchEvent(new Event("confirm",{bubbles:!0}))}renderDialog(){let o=this.noDivider||!this.headline||this.headlineVisibility==="none";return u` + `}updated(o){o.has("open")&&this.open&&"updateComplete"in this.dialog&&"shouldManageTabOrderForScrolling"in this.dialog&&this.dialog.updateComplete.then(()=>{this.dialog.shouldManageTabOrderForScrolling()})}async getUpdateComplete(){let o=await super.getUpdateComplete();return await this.transitionPromise,o}};b([y({type:Boolean,reflect:!0})],s.prototype,"dismissable",2),b([y({type:Boolean,reflect:!0})],s.prototype,"open",2),b([y({type:String,reflect:!0})],s.prototype,"mode",2),b([y({type:Boolean})],s.prototype,"responsive",2),b([y({type:Boolean})],s.prototype,"underlay",2);var R=Object.defineProperty,A=Object.getOwnPropertyDescriptor,l=(a,o,t,r)=>{for(var i=r>1?void 0:r?A(o,t):o,n=a.length-1,d;n>=0;n--)(d=a[n])&&(i=(r?d(o,t,i):d(i))||i);return r&&i&&R(o,t,i),i},e=class extends s{constructor(){super(...arguments),this.error=!1,this.cancelLabel="",this.confirmLabel="",this.footer="",this.hero="",this.heroLabel="",this.noDivider=!1,this.secondaryLabel="",this.headline=""}static get styles(){return[...super.styles]}get dialog(){return this.shadowRoot.querySelector("sp-dialog")}clickSecondary(){this.dispatchEvent(new Event("secondary",{bubbles:!0}))}clickCancel(){this.dispatchEvent(new Event("cancel",{bubbles:!0}))}clickConfirm(){this.dispatchEvent(new Event("confirm",{bubbles:!0}))}renderDialog(){let o=this.noDivider||!this.headline||this.headlineVisibility==="none";return g` - ${this.hero?u` + ${this.hero?g` ${x(this.heroLabel?this.heroLabel:void - `:v} - ${this.headline?u` + `:h} + ${this.headline?g`

${this.headline}

- `:v} + `:h} - ${this.footer?u` + ${this.footer?g`
${this.footer}
- `:v} - ${this.cancelLabel?u` + `:h} + ${this.cancelLabel?g` ${this.cancelLabel} - `:v} - ${this.secondaryLabel?u` + `:h} + ${this.secondaryLabel?g` ${this.secondaryLabel} - `:v} - ${this.confirmLabel?u` + `:h} + ${this.confirmLabel?g` ${this.confirmLabel} - `:v} + `:h}
- `}};a([n({type:Boolean,reflect:!0})],e.prototype,"error",2),a([n({attribute:"cancel-label"})],e.prototype,"cancelLabel",2),a([n({attribute:"confirm-label"})],e.prototype,"confirmLabel",2),a([n({attribute:"dismiss-label"})],e.prototype,"dismissLabel",2),a([n()],e.prototype,"footer",2),a([n()],e.prototype,"hero",2),a([n({attribute:"hero-label"})],e.prototype,"heroLabel",2),a([n({type:Boolean,reflect:!0,attribute:"no-divider"})],e.prototype,"noDivider",2),a([n({type:String,reflect:!0})],e.prototype,"size",2),a([n({attribute:"secondary-label"})],e.prototype,"secondaryLabel",2),a([n()],e.prototype,"headline",2),a([n({type:String,attribute:"headline-visibility"})],e.prototype,"headlineVisibility",2);import{defineElement as Y}from"/libs/features/spectrum-web-components/dist/base.js";Y("sp-dialog-wrapper",e);import{defineElement as W}from"/libs/features/spectrum-web-components/dist/base.js";W("sp-dialog-base",c); + `}};l([m({type:Boolean,reflect:!0})],e.prototype,"error",2),l([m({attribute:"cancel-label"})],e.prototype,"cancelLabel",2),l([m({attribute:"confirm-label"})],e.prototype,"confirmLabel",2),l([m()],e.prototype,"footer",2),l([m()],e.prototype,"hero",2),l([m({attribute:"hero-label"})],e.prototype,"heroLabel",2),l([m({type:Boolean,reflect:!0,attribute:"no-divider"})],e.prototype,"noDivider",2),l([m({type:String,reflect:!0})],e.prototype,"size",2),l([m({attribute:"secondary-label"})],e.prototype,"secondaryLabel",2),l([m()],e.prototype,"headline",2),l([m({type:String,attribute:"headline-visibility"})],e.prototype,"headlineVisibility",2);import{defineElement as Y}from"/libs/features/spectrum-web-components/dist/base.js";Y("sp-dialog-wrapper",e);import{defineElement as W}from"/libs/features/spectrum-web-components/dist/base.js";W("sp-dialog-base",s);