@department-of-veterans-affairs/component-library 54.4.2 → 54.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/1214.app.bundle.js +1 -1
- package/dist/1450.app.bundle.js +1 -1
- package/dist/2222.app.bundle.js +1 -1
- package/dist/2387.app.bundle.js +1 -1
- package/dist/2858.app.bundle.js +1 -1
- package/dist/3071.app.bundle.js +1 -1
- package/dist/3156.app.bundle.js +1 -1
- package/dist/4064.app.bundle.js +1 -1
- package/dist/4117.app.bundle.js +1 -1
- package/dist/4140.app.bundle.js +1 -1
- package/dist/5019.app.bundle.js +1 -1
- package/dist/5155.app.bundle.js +1 -1
- package/dist/5306.app.bundle.js +1 -1
- package/dist/5610.app.bundle.js +1 -1
- package/dist/5830.app.bundle.js +1 -1
- package/dist/6034.app.bundle.js +1 -1
- package/dist/6246.app.bundle.js +1 -1
- package/dist/6247.app.bundle.js +1 -1
- package/dist/6527.app.bundle.js +1 -1
- package/dist/6655.app.bundle.js +1 -1
- package/dist/7531.app.bundle.js +1 -1
- package/dist/7663.app.bundle.js +1 -1
- package/dist/7821.app.bundle.js +1 -1
- package/dist/8495.app.bundle.js +1 -1
- package/dist/8735.app.bundle.js +1 -1
- package/dist/8762.app.bundle.js +1 -1
- package/dist/9288.app.bundle.js +1 -1
- package/dist/9463.app.bundle.js +1 -1
- package/dist/9670.app.bundle.js +1 -1
- package/dist/9724.app.bundle.js +1 -1
- package/dist/9794.app.bundle.js +1 -1
- package/dist/9800.app.bundle.js +1 -1
- package/dist/9966.app.bundle.js +1 -1
- package/dist/app.bundle.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-0311e4e3.js → p-169f3a43.js} +1 -1
- package/dist/components/{p-bac94659.js → p-1cee576c.js} +1 -1
- package/dist/components/{p-b92d2c38.js → p-2f76f321.js} +1 -1
- package/dist/components/{p-e1092a04.js → p-3269359a.js} +1 -1
- package/dist/components/{p-d4b7abf9.js → p-336ee68e.js} +1 -1
- package/dist/components/{p-494b538e.js → p-44ff6df8.js} +1 -1
- package/dist/components/p-4898e7aa.js +1 -0
- package/dist/components/{p-d9f21f0d.js → p-63e66cce.js} +1 -1
- package/dist/components/{p-067d7618.js → p-7216b018.js} +1 -1
- package/dist/components/{p-f3a1dcd5.js → p-79aa9cf3.js} +1 -1
- package/dist/components/{p-6e4b9401.js → p-7a223b44.js} +1 -1
- package/dist/components/p-83458742.js +1 -0
- package/dist/components/{p-3962731f.js → p-8979a1dd.js} +1 -1
- package/dist/components/{p-40738d84.js → p-8dd39312.js} +1 -1
- package/dist/components/{p-6b349d85.js → p-8fcb4dfa.js} +1 -1
- package/dist/components/{p-7129443f.js → p-9240a389.js} +1 -1
- package/dist/components/{p-dffbc03b.js → p-93249001.js} +1 -1
- package/dist/components/{p-784bed9b.js → p-9cd6282d.js} +1 -1
- package/dist/components/{p-70a619e9.js → p-c872b7c8.js} +1 -1
- package/dist/components/{p-cf580be9.js → p-d4f5e756.js} +1 -1
- package/dist/components/{p-ce1b8abc.js → p-d910987e.js} +1 -1
- package/dist/components/{p-d20739b4.js → p-ddb87324.js} +2 -2
- package/dist/components/p-f78db65e.js +1 -0
- package/dist/components/types/components.d.ts +18 -2
- package/dist/components/va-accordion.js +1 -1
- package/dist/components/va-additional-info.js +1 -1
- package/dist/components/va-alert-expandable.js +1 -1
- package/dist/components/va-alert-sign-in.js +1 -1
- package/dist/components/va-alert.js +1 -1
- package/dist/components/va-back-to-top.js +1 -1
- package/dist/components/va-banner.js +1 -1
- package/dist/components/va-breadcrumbs.js +1 -1
- package/dist/components/va-button-icon.js +1 -1
- package/dist/components/va-button-pair.js +1 -1
- package/dist/components/va-button.js +1 -1
- package/dist/components/va-card.js +1 -1
- package/dist/components/va-checkbox-group.js +1 -1
- package/dist/components/va-checkbox.js +1 -1
- package/dist/components/va-combo-box.js +1 -1
- package/dist/components/va-crisis-line-modal.js +1 -1
- package/dist/components/va-critical-action.js +1 -1
- package/dist/components/va-date.js +1 -1
- package/dist/components/va-file-input-multiple.js +1 -1
- package/dist/components/va-file-input.js +1 -1
- package/dist/components/va-header-minimal.js +1 -1
- package/dist/components/va-icon.js +1 -1
- package/dist/components/va-language-toggle.js +1 -1
- package/dist/components/va-link-action.js +1 -1
- package/dist/components/va-link.js +1 -1
- package/dist/components/va-loading-indicator.js +1 -1
- package/dist/components/va-maintenance-banner.js +1 -1
- package/dist/components/va-memorable-date.js +1 -1
- package/dist/components/va-minimal-footer.js +1 -1
- package/dist/components/va-modal.js +1 -1
- package/dist/components/va-need-help.js +1 -1
- package/dist/components/va-notification.js +1 -1
- package/dist/components/va-official-gov-banner.js +1 -1
- package/dist/components/va-omb-info.js +1 -1
- package/dist/components/va-on-this-page.js +1 -1
- package/dist/components/va-pagination.js +1 -1
- package/dist/components/va-privacy-agreement.js +1 -1
- package/dist/components/va-process-list-item.js +1 -1
- package/dist/components/va-process-list.js +1 -1
- package/dist/components/va-progress-bar.js +1 -1
- package/dist/components/va-promo-banner.js +1 -1
- package/dist/components/va-radio-option.js +1 -1
- package/dist/components/va-radio.js +1 -1
- package/dist/components/va-search-filter.js +1 -1
- package/dist/components/va-search-input.js +1 -1
- package/dist/components/va-select.js +1 -1
- package/dist/components/va-service-list-item.js +1 -1
- package/dist/components/va-sidenav-item.js +1 -1
- package/dist/components/va-sidenav-submenu.js +1 -1
- package/dist/components/va-sidenav.js +1 -1
- package/dist/components/va-statement-of-truth.js +1 -1
- package/dist/components/va-summary-box.js +1 -1
- package/dist/components/va-tab-item.js +1 -1
- package/dist/components/va-tab-panel.js +1 -1
- package/dist/components/va-table-inner.js +1 -1
- package/dist/components/va-table-row.js +1 -1
- package/dist/components/va-table.js +1 -1
- package/dist/components/va-tag-status.js +1 -1
- package/dist/components/va-telephone-input.js +1 -1
- package/dist/components/va-telephone.js +1 -1
- package/dist/components/va-text-input.js +1 -1
- package/dist/components/va-textarea.js +1 -1
- package/package.json +3 -3
- package/dist/components/p-a12014b1.js +0 -1
- package/dist/components/p-c3fdb782.js +0 -1
- package/dist/components/p-fda59844.js +0 -1
- /package/dist/components/{p-d20739b4.js.LICENSE.txt → p-ddb87324.js.LICENSE.txt} +0 -0
|
@@ -1978,6 +1978,10 @@ export namespace Components {
|
|
|
1978
1978
|
* The title of the table
|
|
1979
1979
|
*/
|
|
1980
1980
|
"tableTitle"?: string;
|
|
1981
|
+
/**
|
|
1982
|
+
* A summary that describes the composition of the table displayed below the table title
|
|
1983
|
+
*/
|
|
1984
|
+
"tableTitleSummary"?: string;
|
|
1981
1985
|
/**
|
|
1982
1986
|
* The type of table
|
|
1983
1987
|
*/
|
|
@@ -2026,6 +2030,10 @@ export namespace Components {
|
|
|
2026
2030
|
* The title of the table
|
|
2027
2031
|
*/
|
|
2028
2032
|
"tableTitle": string;
|
|
2033
|
+
/**
|
|
2034
|
+
* A summary that describes the composition of the table displayed below the table title
|
|
2035
|
+
*/
|
|
2036
|
+
"tableTitleSummary"?: string;
|
|
2029
2037
|
/**
|
|
2030
2038
|
* The type of table to be used
|
|
2031
2039
|
*/
|
|
@@ -2061,7 +2069,7 @@ export namespace Components {
|
|
|
2061
2069
|
/**
|
|
2062
2070
|
* The status variant of the tag. Determines the background color and icon.
|
|
2063
2071
|
*/
|
|
2064
|
-
"status": '
|
|
2072
|
+
"status": 'info' | 'warning' | 'success' | 'error';
|
|
2065
2073
|
/**
|
|
2066
2074
|
* The text to be displayed in the tag element.
|
|
2067
2075
|
*/
|
|
@@ -6181,6 +6189,10 @@ declare namespace LocalJSX {
|
|
|
6181
6189
|
* The title of the table
|
|
6182
6190
|
*/
|
|
6183
6191
|
"tableTitle"?: string;
|
|
6192
|
+
/**
|
|
6193
|
+
* A summary that describes the composition of the table displayed below the table title
|
|
6194
|
+
*/
|
|
6195
|
+
"tableTitleSummary"?: string;
|
|
6184
6196
|
/**
|
|
6185
6197
|
* The type of table
|
|
6186
6198
|
*/
|
|
@@ -6233,6 +6245,10 @@ declare namespace LocalJSX {
|
|
|
6233
6245
|
* The title of the table
|
|
6234
6246
|
*/
|
|
6235
6247
|
"tableTitle"?: string;
|
|
6248
|
+
/**
|
|
6249
|
+
* A summary that describes the composition of the table displayed below the table title
|
|
6250
|
+
*/
|
|
6251
|
+
"tableTitleSummary"?: string;
|
|
6236
6252
|
/**
|
|
6237
6253
|
* The type of table to be used
|
|
6238
6254
|
*/
|
|
@@ -6268,7 +6284,7 @@ declare namespace LocalJSX {
|
|
|
6268
6284
|
/**
|
|
6269
6285
|
* The status variant of the tag. Determines the background color and icon.
|
|
6270
6286
|
*/
|
|
6271
|
-
"status"?: '
|
|
6287
|
+
"status"?: 'info' | 'warning' | 'success' | 'error';
|
|
6272
6288
|
/**
|
|
6273
6289
|
* The text to be displayed in the tag element.
|
|
6274
6290
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as VaAccordion$1,d as defineCustomElement$1}from"./p-
|
|
1
|
+
import{V as VaAccordion$1,d as defineCustomElement$1}from"./p-d910987e.js";const VaAccordion=VaAccordion$1,defineCustomElement=defineCustomElement$1;export{VaAccordion,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as proxyCustomElement,H,d as createEvent,h,c as Host}from"./p-ef5c0d66.js";import{c as classnames}from"./p-a5dce9e6.js";import{d as defineCustomElement$2}from"./p-
|
|
1
|
+
import{p as proxyCustomElement,H,d as createEvent,h,c as Host}from"./p-ef5c0d66.js";import{c as classnames}from"./p-a5dce9e6.js";import{d as defineCustomElement$2}from"./p-9cd6282d.js";const vaAdditionalInfoCss="p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, \"Source Sans Pro\", \"Helvetica Neue\", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role='option']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}a{text-decoration:none;color:var(--vads-color-link);-webkit-transition-duration:0.3s;transition-duration:0.3s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-property:color, background-color, border-color;transition-property:color, background-color, border-color}a:hover{background-color:rgba(0, 0, 0, 0.05);color:inherit}a:visited{color:var(--vads-color-link-visited)}:host{display:block;font-size:1rem}:host(:not([disable-border])) a[aria-expanded='true']~#info,:host([disable-border='false']) a[aria-expanded='true']~#info{padding-left:var(--units-2);border-left:4px solid transparent;border-left-color:var(--vads-color-primary-alt-darkest)}#info{overflow:hidden}#info.closed{visibility:hidden}a{-ms-flex-align:start;align-items:flex-start;cursor:pointer;display:-ms-flexbox;display:flex}.additional-info-title{border-bottom-right-radius:1px;border-bottom:2px dotted var(--vads-color-primary-alt-darkest);color:var(--vads-color-base-darker);cursor:pointer}.closed{opacity:0;max-height:0}.open{height:auto;opacity:1;-webkit-transition:max-height 700ms 0ms, opacity 500ms 200ms, visibility 500ms 200ms;transition:max-height 700ms 0ms, opacity 500ms 200ms, visibility 500ms 200ms;max-height:var(--calc-max-height);margin-bottom:var(--units-2);margin-top:var(--units-2)}.additional-info-icon{display:inline-block;color:var(--vads-color-primary-alt-darkest);font-size:1rem;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transition:-webkit-transform 0.15s linear;transition:-webkit-transform 0.15s linear;transition:transform 0.15s linear;transition:transform 0.15s linear, -webkit-transform 0.15s linear;line-height:1;vertical-align:bottom}a[aria-expanded='true'] .additional-info-icon{-webkit-transform:rotate(270deg);transform:rotate(270deg);-webkit-transition:-webkit-transform 0.15s linear;transition:-webkit-transform 0.15s linear;transition:transform 0.15s linear;transition:transform 0.15s linear, -webkit-transform 0.15s linear}::slotted(*:first-child){margin-top:0 !important}::slotted(*:last-child){margin-bottom:0 !important}",VaAdditionalInfoStyle0=vaAdditionalInfoCss,VaAdditionalInfo$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.componentLibraryAnalytics=createEvent(this,"component-library-analytics",7),this.open=void 0,this.trigger=void 0,this.disableAnalytics=!1,this.disableBorder=!1}handleResize(){this.updateInfoMaxHeight()}toggleOpen(){this.disableAnalytics||this.componentLibraryAnalytics.emit({componentName:"va-additional-info",action:this.open?"collapse":"expand",details:{triggerText:this.trigger}}),this.open=!this.open}handleKeydown(t){" "!==t.key&&"Enter"!==t.key||(t.preventDefault(),this.toggleOpen())}updateInfoMaxHeight(){var t;const e=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.getElementById("info");if(!e)return;const i=e.scrollHeight+"px";e.style.setProperty("--calc-max-height","calc("+i+" + 1.125rem)")}componentDidRender(){requestAnimationFrame(()=>this.updateInfoMaxHeight())}render(){const t=classnames({open:this.open,closed:!this.open});return h(Host,{key:"55d487f1c1ae022603a9dbd61dbfd1f83a8d8afa"},h("a",{key:"bfa55efc97aab5fb0809dd89c4b891840e6b3d71",role:"button","aria-controls":"info","aria-expanded":this.open?"true":"false",tabIndex:0,onClick:this.toggleOpen.bind(this),onKeyDown:this.handleKeydown.bind(this)},h("div",{key:"e773fc4b5720c6cdd81c1eb53316602c298b8cbf"},h("span",{key:"c364063df56e845ea966b522e6a52c2ebc0960f6",class:"additional-info-title"},this.trigger),h("va-icon",{key:"ecad44dd464da88a67844af4eda51b47750224ed",class:"additional-info-icon",icon:"chevron_right",size:3}))),h("div",{key:"53c8dbd2478d6972e983268f94f93db41006eabd",id:"info",class:t},h("slot",{key:"b83dee0c9486de58f4281dc3b8987ab6ae708db7"})))}get el(){return this}static get style(){return VaAdditionalInfoStyle0}},[1,"va-additional-info",{trigger:[1],disableAnalytics:[4,"disable-analytics"],disableBorder:[4,"disable-border"],open:[32]},[[9,"resize","handleResize"]]]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["va-additional-info","va-icon"].forEach(t=>{switch(t){case"va-additional-info":customElements.get(t)||customElements.define(t,VaAdditionalInfo$1);break;case"va-icon":customElements.get(t)||defineCustomElement$2()}})}const VaAdditionalInfo=VaAdditionalInfo$1,defineCustomElement=defineCustomElement$1;export{VaAdditionalInfo,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as proxyCustomElement,H,d as createEvent,h,c as Host}from"./p-ef5c0d66.js";import{c as classnames}from"./p-a5dce9e6.js";import{d as defineCustomElement$2}from"./p-
|
|
1
|
+
import{p as proxyCustomElement,H,d as createEvent,h,c as Host}from"./p-ef5c0d66.js";import{c as classnames}from"./p-a5dce9e6.js";import{d as defineCustomElement$2}from"./p-9cd6282d.js";const vaAlertExpandableCss='p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}a{text-decoration:none;color:var(--vads-color-link);-webkit-transition-duration:0.3s;transition-duration:0.3s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-property:color, background-color, border-color;transition-property:color, background-color, border-color}a:hover{background-color:rgba(0, 0, 0, 0.05);color:inherit}a:visited{color:var(--vads-color-link-visited)}.usa-sr-only{position:absolute;left:-999em;right:auto}:host{display:block}:host([status=warning]){background-color:var(--vads-alert-color-background-warning-on-light)}:host([status=info]){background-color:var(--vads-alert-color-background-info-on-light)}:host([status=success]){background-color:var(--vads-alert-color-background-success-on-light)}:host([status=continue]){background-color:var(--vads-color-base-lightest)}.alert-expandable-trigger{-ms-flex-align:start;align-items:flex-start;cursor:pointer;display:-ms-flexbox;display:flex;padding:0.75rem}div.warning .alert-expandable-trigger:hover{background-color:var(--vads-color-gold-lighter)}div.info .alert-expandable-trigger:hover{background-color:var(--vads-color-primary-alt-light)}div.success .alert-expandable-trigger:hover{background-color:var(--vads-color-green-lighter)}div.continue .alert-expandable-trigger:hover{background-color:var(--vads-color-base-lighter)}.alert-expandable-title{border-bottom-right-radius:1px;border-bottom:2px dotted var(--vads-color-primary-alt-dark);color:var(--vads-color-base-darker);cursor:pointer;font-weight:600}.alert-expandable:not(.hide-icon) .alert-expandable-body{padding-left:32px;}.alert-expandable-body{overflow:hidden}.alert-expandable-body.closed{opacity:0;max-height:0;visibility:hidden;overflow:hidden}.alert-expandable-body.open{height:auto;opacity:1;-webkit-transition:max-height 700ms 0ms, opacity 500ms 200ms, visibility 500ms 200ms;transition:max-height 700ms 0ms, opacity 500ms 200ms, visibility 500ms 200ms;max-height:var(--calc-max-height)}#slot-wrap{margin:0.75rem}.alert-expandable-icon{display:inline-block;color:var(--vads-color-primary-alt-darkest);font-size:16px;-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transition:-webkit-transform 0.15s linear;transition:-webkit-transform 0.15s linear;transition:transform 0.15s linear;transition:transform 0.15s linear, -webkit-transform 0.15s linear;line-height:1;vertical-align:bottom}a[aria-expanded=true] .alert-expandable-icon{-webkit-transform:rotate(270deg);transform:rotate(270deg);-webkit-transition:-webkit-transform 0.15s linear;transition:-webkit-transform 0.15s linear;transition:transform 0.15s linear;transition:transform 0.15s linear, -webkit-transform 0.15s linear}.alert-expandable__status-icon{color:var(--vads-color-base-darker);margin-right:8px}::slotted(*:first-child){margin-top:0 !important}::slotted(*:last-child){margin-bottom:0 !important}',VaAlertExpandableStyle0=vaAlertExpandableCss,VaAlertExpandable$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.componentLibraryAnalytics=createEvent(this,"component-library-analytics",7),this.open=void 0,this.status=void 0,this.trigger=void 0,this.disableAnalytics=!1,this.iconless=!1}handleResize(){this.updateAlertBodyMaxHeight()}toggleOpen(){this.disableAnalytics||this.componentLibraryAnalytics.emit({componentName:"va-alert-expandable",action:this.open?"collapse":"expand",details:{triggerText:this.trigger}}),this.open=!this.open}handleKeydown(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this.toggleOpen())}updateAlertBodyMaxHeight(){var e;const a=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.getElementById("alert-body");if(!a)return;const t=a.scrollHeight+"px";a.style.setProperty("--calc-max-height","calc("+t+" + 2rem)")}componentDidLoad(){requestAnimationFrame(()=>this.updateAlertBodyMaxHeight())}render(){const{status:e,open:a,iconless:t}=this,o=classnames("alert-expandable",e,{"hide-icon":t}),r=classnames("alert-expandable-body",{open:a,closed:!a});return h(Host,{key:"5ea0af5f0558d6ee0624e7f92791efd94ba1c4df"},h("div",{key:"4115ea4fec5dfee79cb89b8b286d8a5b7183ed22",class:o},h("a",{key:"8776efb5c735cec192135ba64589249e225786e8",role:"button","aria-controls":"alert-body","aria-expanded":this.open?"true":"false",tabIndex:0,onClick:this.toggleOpen.bind(this),onKeyDown:this.handleKeydown.bind(this),class:"alert-expandable-trigger"},!t&&h("va-icon",{key:"f1bbccd44fa57f2644c3ca837aead419b9172db0",class:"alert-expandable__status-icon",icon:{continue:"lock",error:"info",warning:"warning",info:"info",success:"check_circle"}[e]||"info",size:3}),h("div",{key:"50c53962be3cfad3727704208544d2f748120d2e"},h("span",{key:"445835725b87dd9ab8345d65cd5f308fcd66abf4",class:"alert-expandable-title"},h("span",{key:"e9eaf60e35f3cb32eb97bdf93eb3d4e426cd2c9e",class:"usa-sr-only"},`${{continue:"Continue",error:"Error",warning:"Warning",info:"Information",success:"Success"}[e]||"Information"} Alert`," "),this.trigger),h("va-icon",{key:"9b309ac19189390a6b750aee296793f7bcb4aae1",class:"alert-expandable-icon",icon:"chevron_right",size:3}))),h("div",{key:"38c4a4ed76a166335977c226e5dde624600718d5",id:"alert-body",class:r},h("div",{key:"3d61d3a4f7f9baad1e9b20d8bc2ff12bf9942a66",id:"slot-wrap"},h("slot",{key:"dc996601268d23f3af322c18967ad19e526b8a35"})))))}get el(){return this}static get style(){return VaAlertExpandableStyle0}},[1,"va-alert-expandable",{status:[1],trigger:[1],disableAnalytics:[4,"disable-analytics"],iconless:[4],open:[32]},[[9,"resize","handleResize"]]]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["va-alert-expandable","va-icon"].forEach(e=>{switch(e){case"va-alert-expandable":customElements.get(e)||customElements.define(e,VaAlertExpandable$1);break;case"va-icon":customElements.get(e)||defineCustomElement$2()}})}const VaAlertExpandable=VaAlertExpandable$1,defineCustomElement=defineCustomElement$1;export{VaAlertExpandable,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as proxyCustomElement,H,h,c as Host}from"./p-ef5c0d66.js";import{c as classnames}from"./p-a5dce9e6.js";import{g as getHeaderLevel}from"./p-494b538e.js";import{d as defineCustomElement$3}from"./p-784bed9b.js";import{d as defineCustomElement$2}from"./p-dffbc03b.js";var AlertSignInVariants;!function(e){e.signInRequired="signInRequired",e.signInOptional="signInOptional",e.signInOptionalNoPrefill="signInOptionalNoPrefill",e.verifyIdMe="verifyIdMe",e.verifyLoginGov="verifyLoginGov",e.signInEither="signInEither"}(AlertSignInVariants||(AlertSignInVariants={}));const vaAlertSignInCss='p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.usa-alert{background-color:#f0f0f0;border-left:0.5rem solid #a9aeb1;color:#1b1b1b}.usa-alert .usa-alert__body{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;padding-bottom:1rem;padding-top:1rem;position:relative}.usa-alert .usa-alert__text{margin-bottom:0;margin-top:0}.usa-alert .usa-alert__text:only-child{padding-bottom:0;padding-top:0}.usa-alert .usa-alert__heading{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;line-height:0.9;margin-top:0;margin-bottom:0.5rem}.usa-alert>.usa-list,.usa-alert .usa-alert__body>.usa-list{padding-left:2ch}.usa-alert>.usa-list:last-child,.usa-alert .usa-alert__body>.usa-list:last-child{margin-bottom:0}.usa-alert .usa-alert__body{padding-left:1.25rem;padding-right:1.25rem}.usa-alert .usa-alert__body::before{left:1.0833333333rem}*+.usa-alert{margin-top:1rem}.usa-alert--success{background-color:#ecf3ec;border-left-color:#00a91c}.usa-alert--success .usa-alert__body{color:#1b1b1b;background-color:#ecf3ec;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--success .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--success .usa-alert__body::before{background:none;background-color:#1b1b1b;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--success .usa-alert__body>*{margin-left:2.5rem}.usa-alert--success .usa-alert__body .usa-link{color:#005ea2}.usa-alert--success .usa-alert__body .usa-link:visited{color:#54278f}.usa-alert--success .usa-alert__body .usa-link:hover,.usa-alert--success .usa-alert__body .usa-link:active{color:#1a4480}.usa-alert--warning{background-color:#faf3d1;border-left-color:#ffbe2e}.usa-alert--warning .usa-alert__body{color:#1b1b1b;background-color:#faf3d1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--warning .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--warning .usa-alert__body::before{background:none;background-color:#1b1b1b;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--warning .usa-alert__body>*{margin-left:2.5rem}.usa-alert--warning .usa-alert__body .usa-link{color:#005ea2}.usa-alert--warning .usa-alert__body .usa-link:visited{color:#54278f}.usa-alert--warning .usa-alert__body .usa-link:hover,.usa-alert--warning .usa-alert__body .usa-link:active{color:#1a4480}.usa-alert--error{background-color:#f4e3db;border-left-color:#d54309}.usa-alert--error .usa-alert__body{color:#1b1b1b;background-color:#f4e3db;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--error .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--error .usa-alert__body::before{background:none;background-color:#1b1b1b;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--error .usa-alert__body>*{margin-left:2.5rem}.usa-alert--error .usa-alert__body .usa-link{color:#005ea2}.usa-alert--error .usa-alert__body .usa-link:visited{color:#54278f}.usa-alert--error .usa-alert__body .usa-link:hover,.usa-alert--error .usa-alert__body .usa-link:active{color:#1a4480}.usa-alert--info{background-color:#e7f6f8;border-left-color:#00bde3}.usa-alert--info .usa-alert__body{color:#1b1b1b;background-color:#e7f6f8;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--info .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--info .usa-alert__body::before{background:none;background-color:#1b1b1b;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--info .usa-alert__body>*{margin-left:2.5rem}.usa-alert--info .usa-alert__body .usa-link{color:#005ea2}.usa-alert--info .usa-alert__body .usa-link:visited{color:#54278f}.usa-alert--info .usa-alert__body .usa-link:hover,.usa-alert--info .usa-alert__body .usa-link:active{color:#1a4480}.usa-alert--emergency{background-color:#9c3d10;border-left-color:#9c3d10}.usa-alert--emergency .usa-alert__body{color:white;background-color:#9c3d10;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--emergency .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 width%3D%2224%22%3E%3Cpath d%3D%22M0 0h24v24H0z%22 fill%3D%22none%22%2F%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--emergency .usa-alert__body::before{background:none;background-color:white;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--emergency .usa-alert__body>*{margin-left:2.5rem}.usa-alert--emergency .usa-alert__body .usa-link{color:#dfe1e2}.usa-alert--emergency .usa-alert__body .usa-link:visited{color:#dfe1e2}.usa-alert--emergency .usa-alert__body .usa-link:hover,.usa-alert--emergency .usa-alert__body .usa-link:active{color:#f0f0f0}.usa-alert--slim .usa-alert__body{padding-bottom:0.5rem;padding-top:0.5rem;min-height:0}.usa-alert--slim .usa-alert__body:before{height:1.5rem;top:0.5rem;width:1.5rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--slim .usa-alert__body:before{-webkit-mask-size:1.5rem;mask-size:1.5rem}}.usa-alert--slim .usa-alert__body>*{margin-left:2rem}.usa-alert--slim .usa-alert__body::before{left:1.125rem}.usa-alert--no-icon .usa-alert__body{min-height:0}.usa-alert--no-icon .usa-alert__body:before{display:none}.usa-alert--no-icon .usa-alert__body>*{margin-left:0}.usa-alert--validation .usa-checklist{margin-top:1rem}:host{display:block;position:relative}.usa-alert--info .usa-alert__body::before,.usa-alert--warning .usa-alert__body::before{-webkit-mask:none;mask:none;background:transparent}.va-alert-sign-in__lock-icon{position:absolute;top:12px;left:24px}@media screen and (max-width: 1024px){.va-alert-sign-in__lock-icon{left:12px}}:host .headline{font-size:1.33rem;margin-top:0;margin-bottom:0.5rem;font-family:var(--font-serif)}:host ul{-webkit-padding-start:1.2em;padding-inline-start:1.2em}',VaAlertSignInStyle0=vaAlertSignInCss,VaAlertSignIn$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.variant=AlertSignInVariants.signInRequired,this.headingLevel=2,this.visible=!0,this.timeLimit="15 minutes",this.noSignInLink=void 0}render(){const{visible:e}=this;let{variant:t}=this;if(Object.values(AlertSignInVariants).includes(t)||(console.error("A non-allowed variant name was provided, please check your spelling."),t=AlertSignInVariants.signInRequired),!e)return h("div",{"aria-live":"polite"});const a=classnames("usa-alert",`va-alert-sign-in--${t}`,{"usa-alert--info":t===AlertSignInVariants.signInRequired||t===AlertSignInVariants.signInOptional||t===AlertSignInVariants.signInOptionalNoPrefill,"usa-alert--warning":t!==AlertSignInVariants.signInRequired&&t!==AlertSignInVariants.signInOptional&&t!==AlertSignInVariants.signInOptionalNoPrefill}),n=getHeaderLevel(this.headingLevel),r={[AlertSignInVariants.signInEither]:()=>h("div",{class:"va-alert-sign-in__body"},h(n,{class:"headline"},"You need to sign in with a different account"),h("p",null,"We need you to sign in with an identity-verified account. This helps us protect all Veterans’ information and prevent scammers from stealing your benefits. You have 2 options: a verified"," ",h("strong",null,"Login.gov")," or a verified ",h("strong",null,"ID.me")," ","account."),h("p",null,h("strong",null,"If you already have a Login.gov or ID.me account,")," ","sign in with that account. If you still need to verify your identity for your account, we’ll help you do that now."),h("p",null,h("strong",null,"If you don’t have a Login.gov or ID.me account,")," ","create one now. We’ll help you verify your identity."),h("p",null,h("slot",{name:"LoginGovSignInButton"})),h("p",null,h("slot",{name:"IdMeSignInButton"})),h("p",null,h("va-link",{href:"https://www.va.gov/resources/creating-an-account-for-vagov",text:"Learn about creating an account",disableAnalytics:!0}))),[AlertSignInVariants.signInOptional]:()=>h("div",{class:"va-alert-sign-in__body"},h(n,{class:"headline"},"Sign in with a verified account"),h("p",null,"Here’s how signing in with an identity-verified account helps you:"),h("ul",null,h("li",null,"We can fill in some of your information for you to save you time."),h("li",null,"You can save your work in progress. You’ll have ",this.timeLimit," ","from when you start or make changes to submit your form.")),h("p",null,h("strong",null,"Don’t yet have a verified account?")," Create a"," ",h("strong",null,"Login.gov")," or ",h("strong",null,"ID.me")," account. We’ll help you verify your identity for your account now."),h("p",null,h("strong",null,"Not sure if your account is verified?")," Sign in here. If you still need to verify your identity, we’ll help you do that now."),h("p",null,h("strong",null,"Note:")," You can sign in after you start filling out your form. But you’ll lose any information you already filled in."),h("p",null,h("slot",{name:"SignInButton"})),this.noSignInLink&&h("p",null,h("va-link",{href:this.noSignInLink,text:"Start your form without signing in",disableAnalytics:!0}))),[AlertSignInVariants.signInOptionalNoPrefill]:()=>h("div",{class:"va-alert-sign-in__body"},h(n,{class:"headline"},"Sign in with a verified account"),h("p",null,"When you sign in with an identity-verified account, you can save your work in progress. You’ll have 60 days from when you start or make changes to submit your form."),h("p",null,h("strong",null,"Don’t yet have a verified account?")," Create a"," ",h("strong",null,"Login.gov")," or ",h("strong",null,"ID.me")," account. We’ll help you verify your identity for your account now."),h("p",null,h("strong",null,"Not sure if your account is verified?")," Sign in here. If you still need to verify your identity, we’ll help you do that now."),h("p",null,h("strong",null,"Note:")," You can sign in after you start filling out your form. But you’ll lose any information you already filled in."),h("p",null,h("slot",{name:"SignInButton"})),this.noSignInLink&&h("p",null,h("va-link",{href:this.noSignInLink,text:"Start your form without signing in",disableAnalytics:!0}))),[AlertSignInVariants.signInRequired]:()=>h("div",{class:"va-alert-sign-in__body"},h(n,{class:"headline"},"Sign in with a verified account"),h("p",null,"You’ll need to sign in with an identity-verified account through one of our account providers. Identity verification helps us protect all Veterans’ information and prevent scammers from stealing your benefits."),h("p",null,h("strong",null,"Don’t yet have a verified account?")," Create a"," ",h("strong",null,"Login.gov")," or ",h("strong",null,"ID.me")," account. We’ll help you verify your identity for your account now."),h("p",null,h("strong",null,"Not sure if your account is verified?")," Sign in here. If you still need to verify your identity, we’ll help you do that now."),h("p",null,h("slot",{name:"SignInButton"})),h("p",null,h("va-link",{href:"https://www.va.gov/resources/creating-an-account-for-vagov",text:"Learn about creating an account",disableAnalytics:!0}))),[AlertSignInVariants.verifyIdMe]:()=>h("div",{class:"va-alert-sign-in__body"},h(n,{class:"headline"},"Verify your identity"),h("p",null,"We need you to verify your identity for your ",h("strong",null,"ID.me")," ","account. This step helps us protect all Veterans’ information and prevent scammers from stealing your benefits."),h("p",null,"This one-time process often takes about 10 minutes. You’ll need to provide certain personal information and identification."),h("p",null,h("slot",{name:"IdMeVerifyButton"})),h("p",null,h("va-link",{href:"https://www.va.gov/resources/verifying-your-identity-on-vagov/",text:"Learn more about verifying your identity",disableAnalytics:!0}))),[AlertSignInVariants.verifyLoginGov]:()=>h("div",{class:"va-alert-sign-in__body"},h(n,{class:"headline"},"Verify your identity"),h("p",null,"We need you to verify your identity for your"," ",h("strong",null,"Login.gov")," account. This step helps us protect all Veterans’ information and prevent scammers from stealing your benefits."),h("p",null,"This one-time process often takes about 10 minutes. You’ll need to provide certain personal information and identification."),h("p",null,h("slot",{name:"LoginGovVerifyButton"})),h("p",null,h("va-link",{href:"https://www.va.gov/resources/verifying-your-identity-on-vagov/",text:"Learn more about verifying your identity",disableAnalytics:!0})))}[t];return h(Host,null,h("div",{role:this.el.getAttribute("data-role"),class:a,"aria-label":this.el.getAttribute("data-label")},h("div",{class:"usa-alert__body"},h("div",null,h("va-icon",{class:"va-alert-sign-in__lock-icon",icon:"lock",size:4}),h(r,null)))))}get el(){return this}static get style(){return VaAlertSignInStyle0}},[1,"va-alert-sign-in",{variant:[1],headingLevel:[2,"heading-level"],visible:[4],timeLimit:[1,"time-limit"],noSignInLink:[1,"no-sign-in-link"]}]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["va-alert-sign-in","va-icon","va-link"].forEach(e=>{switch(e){case"va-alert-sign-in":customElements.get(e)||customElements.define(e,VaAlertSignIn$1);break;case"va-icon":customElements.get(e)||defineCustomElement$3();break;case"va-link":customElements.get(e)||defineCustomElement$2()}})}const VaAlertSignIn=VaAlertSignIn$1,defineCustomElement=defineCustomElement$1;export{VaAlertSignIn,defineCustomElement};
|
|
1
|
+
import{p as proxyCustomElement,H,h,c as Host}from"./p-ef5c0d66.js";import{c as classnames}from"./p-a5dce9e6.js";import{g as getHeaderLevel}from"./p-44ff6df8.js";import{d as defineCustomElement$3}from"./p-9cd6282d.js";import{d as defineCustomElement$2}from"./p-93249001.js";var AlertSignInVariants;!function(e){e.signInRequired="signInRequired",e.signInOptional="signInOptional",e.signInOptionalNoPrefill="signInOptionalNoPrefill",e.verifyIdMe="verifyIdMe",e.verifyLoginGov="verifyLoginGov",e.signInEither="signInEither"}(AlertSignInVariants||(AlertSignInVariants={}));const vaAlertSignInCss='p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.usa-alert{background-color:#f0f0f0;border-left:0.5rem solid #a9aeb1;color:#1b1b1b}.usa-alert .usa-alert__body{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5;padding-bottom:1rem;padding-top:1rem;position:relative}.usa-alert .usa-alert__text{margin-bottom:0;margin-top:0}.usa-alert .usa-alert__text:only-child{padding-bottom:0;padding-top:0}.usa-alert .usa-alert__heading{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.46rem;line-height:0.9;margin-top:0;margin-bottom:0.5rem}.usa-alert>.usa-list,.usa-alert .usa-alert__body>.usa-list{padding-left:2ch}.usa-alert>.usa-list:last-child,.usa-alert .usa-alert__body>.usa-list:last-child{margin-bottom:0}.usa-alert .usa-alert__body{padding-left:1.25rem;padding-right:1.25rem}.usa-alert .usa-alert__body::before{left:1.0833333333rem}*+.usa-alert{margin-top:1rem}.usa-alert--success{background-color:#ecf3ec;border-left-color:#00a91c}.usa-alert--success .usa-alert__body{color:#1b1b1b;background-color:#ecf3ec;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--success .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--success .usa-alert__body::before{background:none;background-color:#1b1b1b;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--success .usa-alert__body>*{margin-left:2.5rem}.usa-alert--success .usa-alert__body .usa-link{color:#005ea2}.usa-alert--success .usa-alert__body .usa-link:visited{color:#54278f}.usa-alert--success .usa-alert__body .usa-link:hover,.usa-alert--success .usa-alert__body .usa-link:active{color:#1a4480}.usa-alert--warning{background-color:#faf3d1;border-left-color:#ffbe2e}.usa-alert--warning .usa-alert__body{color:#1b1b1b;background-color:#faf3d1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--warning .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--warning .usa-alert__body::before{background:none;background-color:#1b1b1b;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--warning .usa-alert__body>*{margin-left:2.5rem}.usa-alert--warning .usa-alert__body .usa-link{color:#005ea2}.usa-alert--warning .usa-alert__body .usa-link:visited{color:#54278f}.usa-alert--warning .usa-alert__body .usa-link:hover,.usa-alert--warning .usa-alert__body .usa-link:active{color:#1a4480}.usa-alert--error{background-color:#f4e3db;border-left-color:#d54309}.usa-alert--error .usa-alert__body{color:#1b1b1b;background-color:#f4e3db;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--error .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--error .usa-alert__body::before{background:none;background-color:#1b1b1b;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--error .usa-alert__body>*{margin-left:2.5rem}.usa-alert--error .usa-alert__body .usa-link{color:#005ea2}.usa-alert--error .usa-alert__body .usa-link:visited{color:#54278f}.usa-alert--error .usa-alert__body .usa-link:hover,.usa-alert--error .usa-alert__body .usa-link:active{color:#1a4480}.usa-alert--info{background-color:#e7f6f8;border-left-color:#00bde3}.usa-alert--info .usa-alert__body{color:#1b1b1b;background-color:#e7f6f8;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--info .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--info .usa-alert__body::before{background:none;background-color:#1b1b1b;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--info .usa-alert__body>*{margin-left:2.5rem}.usa-alert--info .usa-alert__body .usa-link{color:#005ea2}.usa-alert--info .usa-alert__body .usa-link:visited{color:#54278f}.usa-alert--info .usa-alert__body .usa-link:hover,.usa-alert--info .usa-alert__body .usa-link:active{color:#1a4480}.usa-alert--emergency{background-color:#9c3d10;border-left-color:#9c3d10}.usa-alert--emergency .usa-alert__body{color:white;background-color:#9c3d10;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:3.3333333333rem}.usa-alert--emergency .usa-alert__body::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22 width%3D%2224%22%3E%3Cpath d%3D%22M0 0h24v24H0z%22 fill%3D%22none%22%2F%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2rem 2rem;display:inline-block;height:2rem;width:2rem;content:"";display:block;position:absolute;top:0.6666666667rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--emergency .usa-alert__body::before{background:none;background-color:white;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2rem 2rem;mask-size:2rem 2rem}}.usa-alert--emergency .usa-alert__body>*{margin-left:2.5rem}.usa-alert--emergency .usa-alert__body .usa-link{color:#dfe1e2}.usa-alert--emergency .usa-alert__body .usa-link:visited{color:#dfe1e2}.usa-alert--emergency .usa-alert__body .usa-link:hover,.usa-alert--emergency .usa-alert__body .usa-link:active{color:#f0f0f0}.usa-alert--slim .usa-alert__body{padding-bottom:0.5rem;padding-top:0.5rem;min-height:0}.usa-alert--slim .usa-alert__body:before{height:1.5rem;top:0.5rem;width:1.5rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-alert--slim .usa-alert__body:before{-webkit-mask-size:1.5rem;mask-size:1.5rem}}.usa-alert--slim .usa-alert__body>*{margin-left:2rem}.usa-alert--slim .usa-alert__body::before{left:1.125rem}.usa-alert--no-icon .usa-alert__body{min-height:0}.usa-alert--no-icon .usa-alert__body:before{display:none}.usa-alert--no-icon .usa-alert__body>*{margin-left:0}.usa-alert--validation .usa-checklist{margin-top:1rem}:host{display:block;position:relative}.usa-alert--info .usa-alert__body::before,.usa-alert--warning .usa-alert__body::before{-webkit-mask:none;mask:none;background:transparent}.va-alert-sign-in__lock-icon{position:absolute;top:12px;left:24px}@media screen and (max-width: 1024px){.va-alert-sign-in__lock-icon{left:12px}}:host .headline{font-size:1.33rem;margin-top:0;margin-bottom:0.5rem;font-family:var(--font-serif)}:host ul{-webkit-padding-start:1.2em;padding-inline-start:1.2em}',VaAlertSignInStyle0=vaAlertSignInCss,VaAlertSignIn$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.variant=AlertSignInVariants.signInRequired,this.headingLevel=2,this.visible=!0,this.timeLimit="15 minutes",this.noSignInLink=void 0}render(){const{visible:e}=this;let{variant:t}=this;if(Object.values(AlertSignInVariants).includes(t)||(console.error("A non-allowed variant name was provided, please check your spelling."),t=AlertSignInVariants.signInRequired),!e)return h("div",{"aria-live":"polite"});const a=classnames("usa-alert",`va-alert-sign-in--${t}`,{"usa-alert--info":t===AlertSignInVariants.signInRequired||t===AlertSignInVariants.signInOptional||t===AlertSignInVariants.signInOptionalNoPrefill,"usa-alert--warning":t!==AlertSignInVariants.signInRequired&&t!==AlertSignInVariants.signInOptional&&t!==AlertSignInVariants.signInOptionalNoPrefill}),n=getHeaderLevel(this.headingLevel),r={[AlertSignInVariants.signInEither]:()=>h("div",{class:"va-alert-sign-in__body"},h(n,{class:"headline"},"You need to sign in with a different account"),h("p",null,"We need you to sign in with an identity-verified account. This helps us protect all Veterans’ information and prevent scammers from stealing your benefits. You have 2 options: a verified"," ",h("strong",null,"Login.gov")," or a verified ",h("strong",null,"ID.me")," ","account."),h("p",null,h("strong",null,"If you already have a Login.gov or ID.me account,")," ","sign in with that account. If you still need to verify your identity for your account, we’ll help you do that now."),h("p",null,h("strong",null,"If you don’t have a Login.gov or ID.me account,")," ","create one now. We’ll help you verify your identity."),h("p",null,h("slot",{name:"LoginGovSignInButton"})),h("p",null,h("slot",{name:"IdMeSignInButton"})),h("p",null,h("va-link",{href:"https://www.va.gov/resources/creating-an-account-for-vagov",text:"Learn about creating an account",disableAnalytics:!0}))),[AlertSignInVariants.signInOptional]:()=>h("div",{class:"va-alert-sign-in__body"},h(n,{class:"headline"},"Sign in with a verified account"),h("p",null,"Here’s how signing in with an identity-verified account helps you:"),h("ul",null,h("li",null,"We can fill in some of your information for you to save you time."),h("li",null,"You can save your work in progress. You’ll have ",this.timeLimit," ","from when you start or make changes to submit your form.")),h("p",null,h("strong",null,"Don’t yet have a verified account?")," Create a"," ",h("strong",null,"Login.gov")," or ",h("strong",null,"ID.me")," account. We’ll help you verify your identity for your account now."),h("p",null,h("strong",null,"Not sure if your account is verified?")," Sign in here. If you still need to verify your identity, we’ll help you do that now."),h("p",null,h("strong",null,"Note:")," You can sign in after you start filling out your form. But you’ll lose any information you already filled in."),h("p",null,h("slot",{name:"SignInButton"})),this.noSignInLink&&h("p",null,h("va-link",{href:this.noSignInLink,text:"Start your form without signing in",disableAnalytics:!0}))),[AlertSignInVariants.signInOptionalNoPrefill]:()=>h("div",{class:"va-alert-sign-in__body"},h(n,{class:"headline"},"Sign in with a verified account"),h("p",null,"When you sign in with an identity-verified account, you can save your work in progress. You’ll have 60 days from when you start or make changes to submit your form."),h("p",null,h("strong",null,"Don’t yet have a verified account?")," Create a"," ",h("strong",null,"Login.gov")," or ",h("strong",null,"ID.me")," account. We’ll help you verify your identity for your account now."),h("p",null,h("strong",null,"Not sure if your account is verified?")," Sign in here. If you still need to verify your identity, we’ll help you do that now."),h("p",null,h("strong",null,"Note:")," You can sign in after you start filling out your form. But you’ll lose any information you already filled in."),h("p",null,h("slot",{name:"SignInButton"})),this.noSignInLink&&h("p",null,h("va-link",{href:this.noSignInLink,text:"Start your form without signing in",disableAnalytics:!0}))),[AlertSignInVariants.signInRequired]:()=>h("div",{class:"va-alert-sign-in__body"},h(n,{class:"headline"},"Sign in with a verified account"),h("p",null,"You’ll need to sign in with an identity-verified account through one of our account providers. Identity verification helps us protect all Veterans’ information and prevent scammers from stealing your benefits."),h("p",null,h("strong",null,"Don’t yet have a verified account?")," Create a"," ",h("strong",null,"Login.gov")," or ",h("strong",null,"ID.me")," account. We’ll help you verify your identity for your account now."),h("p",null,h("strong",null,"Not sure if your account is verified?")," Sign in here. If you still need to verify your identity, we’ll help you do that now."),h("p",null,h("slot",{name:"SignInButton"})),h("p",null,h("va-link",{href:"https://www.va.gov/resources/creating-an-account-for-vagov",text:"Learn about creating an account",disableAnalytics:!0}))),[AlertSignInVariants.verifyIdMe]:()=>h("div",{class:"va-alert-sign-in__body"},h(n,{class:"headline"},"Verify your identity"),h("p",null,"We need you to verify your identity for your ",h("strong",null,"ID.me")," ","account. This step helps us protect all Veterans’ information and prevent scammers from stealing your benefits."),h("p",null,"This one-time process often takes about 10 minutes. You’ll need to provide certain personal information and identification."),h("p",null,h("slot",{name:"IdMeVerifyButton"})),h("p",null,h("va-link",{href:"https://www.va.gov/resources/verifying-your-identity-on-vagov/",text:"Learn more about verifying your identity",disableAnalytics:!0}))),[AlertSignInVariants.verifyLoginGov]:()=>h("div",{class:"va-alert-sign-in__body"},h(n,{class:"headline"},"Verify your identity"),h("p",null,"We need you to verify your identity for your"," ",h("strong",null,"Login.gov")," account. This step helps us protect all Veterans’ information and prevent scammers from stealing your benefits."),h("p",null,"This one-time process often takes about 10 minutes. You’ll need to provide certain personal information and identification."),h("p",null,h("slot",{name:"LoginGovVerifyButton"})),h("p",null,h("va-link",{href:"https://www.va.gov/resources/verifying-your-identity-on-vagov/",text:"Learn more about verifying your identity",disableAnalytics:!0})))}[t];return h(Host,null,h("div",{role:this.el.getAttribute("data-role"),class:a,"aria-label":this.el.getAttribute("data-label")},h("div",{class:"usa-alert__body"},h("div",null,h("va-icon",{class:"va-alert-sign-in__lock-icon",icon:"lock",size:4}),h(r,null)))))}get el(){return this}static get style(){return VaAlertSignInStyle0}},[1,"va-alert-sign-in",{variant:[1],headingLevel:[2,"heading-level"],visible:[4],timeLimit:[1,"time-limit"],noSignInLink:[1,"no-sign-in-link"]}]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["va-alert-sign-in","va-icon","va-link"].forEach(e=>{switch(e){case"va-alert-sign-in":customElements.get(e)||customElements.define(e,VaAlertSignIn$1);break;case"va-icon":customElements.get(e)||defineCustomElement$3();break;case"va-link":customElements.get(e)||defineCustomElement$2()}})}const VaAlertSignIn=VaAlertSignIn$1,defineCustomElement=defineCustomElement$1;export{VaAlertSignIn,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as VaAlert$1,d as defineCustomElement$1}from"./p-
|
|
1
|
+
import{V as VaAlert$1,d as defineCustomElement$1}from"./p-9240a389.js";const VaAlert=VaAlert$1,defineCustomElement=defineCustomElement$1;export{VaAlert,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as proxyCustomElement,H,h,c as Host}from"./p-ef5c0d66.js";import{c as classnames}from"./p-a5dce9e6.js";import{d as defineCustomElement$2}from"./p-784bed9b.js";!function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(){for(var t=window.document,e=i(t);e;)e=i(t=e.ownerDocument);return t}(),e=[],o=null,n=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return o||(o=function(t,o){n=t&&o?u(t,o):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach(function(t){t._checkForIntersections()})}),o},s._resetCrossOriginUpdater=function(){o=null,n=null},s.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,o){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==o[e-1]})},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var o=e.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=o.setInterval(n,this.POLL_INTERVAL):(a(o,"resize",n,!0),a(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(s=new o.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push(function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),c(t,"resize",n,!0)),c(e,"scroll",n,!0),s&&s.disconnect()});var l=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=l){var d=i(e);d&&this._monitorIntersections(d.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var o=this._monitoringDocuments.indexOf(e);if(-1!=o){var n=this.root&&(this.root.ownerDocument||this.root)||t,r=this._observationTargets.some(function(t){var o=t.element.ownerDocument;if(o==e)return!0;for(;o&&o!=n;){var r=i(o);if((o=r&&r.ownerDocument)==e)return!0}return!1});if(!r){var s=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),s(),e!=n){var a=i(e);a&&this._unmonitorIntersections(a.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!o||n){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(n){var i=n.element,s=d(i),a=this._rootContainsTarget(i),c=n.entry,l=t&&a&&this._computeTargetAndRootIntersection(i,s,e),h=null;this._rootContainsTarget(i)?o&&!this.root||(h=e):h={top:0,bottom:0,left:0,right:0,width:0,height:0};var u=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:h,intersectionRect:l});c?t&&a?this._hasCrossedThreshold(c,u)&&this._queuedEntries.push(u):c&&c.isIntersecting&&this._queuedEntries.push(u):this._queuedEntries.push(u)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s=i,a=f(e),c=!1;!c&&a;){var h=null,p=1==a.nodeType?window.getComputedStyle(a):{};if("none"==p.display)return null;if(a==this.root||9==a.nodeType)if(c=!0,a==this.root||a==t)o&&!this.root?!n||0==n.width&&0==n.height?(a=null,h=null,s=null):h=n:h=r;else{var m=f(a),b=m&&d(m),v=m&&this._computeTargetAndRootIntersection(m,b,r);b&&v?(a=m,h=u(b,v)):(a=null,s=null)}else{var g=a.ownerDocument;a!=g.body&&a!=g.documentElement&&"visible"!=p.overflow&&(h=d(a))}if(h&&(s=l(h,s)),!s)break;a=a&&f(a)}return s}},s.prototype._getRootRect=function(){var e;if(this.root&&!m(this.root))e=d(this.root);else{var o=m(this.root)?this.root:t,n=o.documentElement,i=o.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,o){return"px"==e.unit?e.value:e.value*(o%2?t.width:t.height)/100}),o={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return o.width=o.right-o.left,o.height=o.bottom-o.top,o},s.prototype._hasCrossedThreshold=function(t,e){var o=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(o!==n)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==o||r==n||r<o!=r<n)return!0}},s.prototype._rootIsInDom=function(){return!this.root||p(t,this.root)},s.prototype._rootContainsTarget=function(e){var o=this.root&&(this.root.ownerDocument||this.root)||t;return p(o,e)&&(!this.root||o==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=h(t.rootBounds),this.boundingClientRect=h(t.boundingClientRect),this.intersectionRect=h(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,o=e.width*e.height,n=this.intersectionRect,i=n.width*n.height;this.intersectionRatio=o?Number((i/o).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var o,n,i,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(o=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout(function(){o(),i=null},n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(t,e,o,n){"function"==typeof t.addEventListener?t.addEventListener(e,o,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,o)}function c(t,e,o,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,o,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,o)}function l(t,e){var o=Math.max(t.top,e.top),n=Math.min(t.bottom,e.bottom),i=Math.max(t.left,e.left),r=Math.min(t.right,e.right),s=r-i,a=n-o;return s>=0&&a>=0&&{top:o,bottom:n,left:i,right:r,width:s,height:a}||null}function d(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function u(t,e){var o=e.top-t.top,n=e.left-t.left;return{top:o,left:n,height:e.height,width:e.width,bottom:o+e.height,right:n+e.width}}function p(t,e){for(var o=e;o;){if(o==t)return!0;o=f(o)}return!1}function f(e){var o=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(o&&o.assignedSlot&&(o=o.assignedSlot.parentNode),o&&11==o.nodeType&&o.host?o.host:o)}function m(t){return t&&9===t.nodeType}}();const vaBackToTopCss="p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, \"Source Sans Pro\", \"Helvetica Neue\", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}@-webkit-keyframes slideInUp{from{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);visibility:visible}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes slideInUp{from{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);visibility:visible}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{from{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}@keyframes slideOutDown{from{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role='option']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-radius:5px;color:var(--vads-button-color-text-primary-alt-on-light);cursor:pointer;display:inline-block;font-family:var(--font-source-sans);font-size:1rem;font-weight:700;line-height:1;padding:0.625rem 1.25rem;text-align:center;text-decoration:none}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role='option']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}#marginWrapper{display:block;width:100%;height:44px;margin-top:2.5rem;margin-bottom:1.25rem}div{position:fixed;bottom:0;width:100%}.reveal-point{position:absolute;width:1px;height:1px;top:var(--reveal-breakpoint, 37.5rem);left:0;}a{border-bottom-right-radius:0;border-top-right-radius:0;bottom:0;color:var(--vads-color-link);right:0;background:rgba(255, 255, 255, 0.9);height:48px;width:48px;margin-bottom:0.313rem;opacity:0;padding:0;pointer-events:none;position:absolute;-webkit-transition:background-color 0.25s ease-in;transition:background-color 0.25s ease-in}a:not([disabled]):active,a:not([disabled]):focus{border-radius:5px;outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}a:not([disabled]):hover{border-radius:5px;background-color:var(--vads-color-gray-cool-light);color:var(--vads-color-primary-darker)}div a{display:none}div.reveal a{display:inherit;border-bottom-left-radius:5px;border-top-left-radius:5px;text-decoration:none;pointer-events:auto;opacity:1;-webkit-animation:slideInUp 0.25s;animation:slideInUp 0.25s}div.reveal a>span{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}div:not(.reveal) a{-webkit-animation:slideOutDown 0.25s;animation:slideOutDown 0.25s}@media (prefers-reduced-motion){a{-webkit-transition:none;transition:none}div.reveal a{-webkit-animation:none;animation:none}div:not(.reveal) a{-webkit-animation:none;animation:none}}a>span{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;width:100%}a span.text{display:none;font-weight:700}a span.sr-only{visibility:visible}div.docked{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse}div:not(.docked){max-width:var(--undocked-width)}div:not(.docked):not(.reveal){position:relative}div.docked a{position:relative}va-icon{margin-right:0px}@media (min-width: 768px){a{height:44px;width:44px;padding:0 1rem;text-decoration:none;width:auto}a span.text{color:var(--vads-color-link);display:inline-block;text-decoration:underline}a span.sr-only{visibility:hidden}va-icon{margin-right:4px}}",VaBackToTopStyle0=vaBackToTopCss,VaBackToTop$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.revealed=!1,this.isDocked=!1}componentDidLoad(){new IntersectionObserver(t=>{this.isDocked=t[0].isIntersecting||t[0].boundingClientRect.y<0},{threshold:1}).observe(this.el),new IntersectionObserver(t=>{this.revealed=t[0].boundingClientRect.y<0}).observe(this.revealPixel)}navigateToTop(t){t.preventDefault();const e=document.querySelector("h1");return e&&(e.setAttribute("tabindex","-1"),e.focus(),e.addEventListener("blur",()=>e.removeAttribute("tabindex"))),window.scrollTo(0,0)}render(){const t=this.el.getBoundingClientRect().width;return this.el.style.setProperty("--undocked-width",`${t}px`),h(Host,{key:"bd004d092bc68aea2786b9a8e40cd62c974ad440"},h("span",{key:"e47bd35d3a5a00d602eb552c3fcce8bdb2587c15",id:"marginWrapper"},h("span",{key:"af22c249d82cbeea13d9685d8a0c00eed607e90a",class:"reveal-point",ref:t=>this.revealPixel=t}),h("div",{key:"dd0d1f753715f49fb5393e42d19af3fd7deef117",class:classnames({docked:this.isDocked,reveal:this.revealed})},h("a",{key:"da20f05e0cde591bb4d1009dda179eac849dff64",href:"#ds-back-to-top",onClick:this.navigateToTop.bind(this)},h("span",{key:"14134a3f5a6b2e5a894aeda3da9972afa97a4e9b"},h("va-icon",{key:"489c861c78b56199b9cd7e6a02ebfaac9576773d",icon:"arrow_upward",size:3}),h("span",{key:"47caa561588233ca2ed1e06c7450037c70526afd",class:"sr-only"},"Back to top")," ",h("span",{key:"d8dab206a17ca5238a3a0de1f66c1602a1b275b4",class:"text"},"Back to top"))))))}get el(){return this}static get style(){return VaBackToTopStyle0}},[1,"va-back-to-top",{revealed:[32],isDocked:[32]}]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["va-back-to-top","va-icon"].forEach(t=>{switch(t){case"va-back-to-top":customElements.get(t)||customElements.define(t,VaBackToTop$1);break;case"va-icon":customElements.get(t)||defineCustomElement$2()}})}const VaBackToTop=VaBackToTop$1,defineCustomElement=defineCustomElement$1;export{VaBackToTop,defineCustomElement};
|
|
1
|
+
import{p as proxyCustomElement,H,h,c as Host}from"./p-ef5c0d66.js";import{c as classnames}from"./p-a5dce9e6.js";import{d as defineCustomElement$2}from"./p-9cd6282d.js";!function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(){for(var t=window.document,e=i(t);e;)e=i(t=e.ownerDocument);return t}(),e=[],o=null,n=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return o||(o=function(t,o){n=t&&o?u(t,o):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach(function(t){t._checkForIntersections()})}),o},s._resetCrossOriginUpdater=function(){o=null,n=null},s.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,o){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==o[e-1]})},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var o=e.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=o.setInterval(n,this.POLL_INTERVAL):(a(o,"resize",n,!0),a(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(s=new o.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push(function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),c(t,"resize",n,!0)),c(e,"scroll",n,!0),s&&s.disconnect()});var l=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=l){var d=i(e);d&&this._monitorIntersections(d.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var o=this._monitoringDocuments.indexOf(e);if(-1!=o){var n=this.root&&(this.root.ownerDocument||this.root)||t,r=this._observationTargets.some(function(t){var o=t.element.ownerDocument;if(o==e)return!0;for(;o&&o!=n;){var r=i(o);if((o=r&&r.ownerDocument)==e)return!0}return!1});if(!r){var s=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),s(),e!=n){var a=i(e);a&&this._unmonitorIntersections(a.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!o||n){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(n){var i=n.element,s=d(i),a=this._rootContainsTarget(i),c=n.entry,l=t&&a&&this._computeTargetAndRootIntersection(i,s,e),h=null;this._rootContainsTarget(i)?o&&!this.root||(h=e):h={top:0,bottom:0,left:0,right:0,width:0,height:0};var u=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:h,intersectionRect:l});c?t&&a?this._hasCrossedThreshold(c,u)&&this._queuedEntries.push(u):c&&c.isIntersecting&&this._queuedEntries.push(u):this._queuedEntries.push(u)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s=i,a=f(e),c=!1;!c&&a;){var h=null,p=1==a.nodeType?window.getComputedStyle(a):{};if("none"==p.display)return null;if(a==this.root||9==a.nodeType)if(c=!0,a==this.root||a==t)o&&!this.root?!n||0==n.width&&0==n.height?(a=null,h=null,s=null):h=n:h=r;else{var m=f(a),b=m&&d(m),v=m&&this._computeTargetAndRootIntersection(m,b,r);b&&v?(a=m,h=u(b,v)):(a=null,s=null)}else{var g=a.ownerDocument;a!=g.body&&a!=g.documentElement&&"visible"!=p.overflow&&(h=d(a))}if(h&&(s=l(h,s)),!s)break;a=a&&f(a)}return s}},s.prototype._getRootRect=function(){var e;if(this.root&&!m(this.root))e=d(this.root);else{var o=m(this.root)?this.root:t,n=o.documentElement,i=o.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,o){return"px"==e.unit?e.value:e.value*(o%2?t.width:t.height)/100}),o={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return o.width=o.right-o.left,o.height=o.bottom-o.top,o},s.prototype._hasCrossedThreshold=function(t,e){var o=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(o!==n)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==o||r==n||r<o!=r<n)return!0}},s.prototype._rootIsInDom=function(){return!this.root||p(t,this.root)},s.prototype._rootContainsTarget=function(e){var o=this.root&&(this.root.ownerDocument||this.root)||t;return p(o,e)&&(!this.root||o==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=h(t.rootBounds),this.boundingClientRect=h(t.boundingClientRect),this.intersectionRect=h(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,o=e.width*e.height,n=this.intersectionRect,i=n.width*n.height;this.intersectionRatio=o?Number((i/o).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var o,n,i,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(o=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout(function(){o(),i=null},n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(t,e,o,n){"function"==typeof t.addEventListener?t.addEventListener(e,o,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,o)}function c(t,e,o,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,o,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,o)}function l(t,e){var o=Math.max(t.top,e.top),n=Math.min(t.bottom,e.bottom),i=Math.max(t.left,e.left),r=Math.min(t.right,e.right),s=r-i,a=n-o;return s>=0&&a>=0&&{top:o,bottom:n,left:i,right:r,width:s,height:a}||null}function d(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function u(t,e){var o=e.top-t.top,n=e.left-t.left;return{top:o,left:n,height:e.height,width:e.width,bottom:o+e.height,right:n+e.width}}function p(t,e){for(var o=e;o;){if(o==t)return!0;o=f(o)}return!1}function f(e){var o=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(o&&o.assignedSlot&&(o=o.assignedSlot.parentNode),o&&11==o.nodeType&&o.host?o.host:o)}function m(t){return t&&9===t.nodeType}}();const vaBackToTopCss="p,a,ol,ul,li,dl,dt,dd,form,label,button{font-family:Source Sans Pro Web, \"Source Sans Pro\", \"Helvetica Neue\", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}@-webkit-keyframes slideInUp{from{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);visibility:visible}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes slideInUp{from{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);visibility:visible}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}.slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{from{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}@keyframes slideOutDown{from{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}.slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role='option']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-radius:5px;color:var(--vads-button-color-text-primary-alt-on-light);cursor:pointer;display:inline-block;font-family:var(--font-source-sans);font-size:1rem;font-weight:700;line-height:1;padding:0.625rem 1.25rem;text-align:center;text-decoration:none}.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role='option']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}#marginWrapper{display:block;width:100%;height:44px;margin-top:2.5rem;margin-bottom:1.25rem}div{position:fixed;bottom:0;width:100%}.reveal-point{position:absolute;width:1px;height:1px;top:var(--reveal-breakpoint, 37.5rem);left:0;}a{border-bottom-right-radius:0;border-top-right-radius:0;bottom:0;color:var(--vads-color-link);right:0;background:rgba(255, 255, 255, 0.9);height:48px;width:48px;margin-bottom:0.313rem;opacity:0;padding:0;pointer-events:none;position:absolute;-webkit-transition:background-color 0.25s ease-in;transition:background-color 0.25s ease-in}a:not([disabled]):active,a:not([disabled]):focus{border-radius:5px;outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px}a:not([disabled]):hover{border-radius:5px;background-color:var(--vads-color-gray-cool-light);color:var(--vads-color-primary-darker)}div a{display:none}div.reveal a{display:inherit;border-bottom-left-radius:5px;border-top-left-radius:5px;text-decoration:none;pointer-events:auto;opacity:1;-webkit-animation:slideInUp 0.25s;animation:slideInUp 0.25s}div.reveal a>span{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}div:not(.reveal) a{-webkit-animation:slideOutDown 0.25s;animation:slideOutDown 0.25s}@media (prefers-reduced-motion){a{-webkit-transition:none;transition:none}div.reveal a{-webkit-animation:none;animation:none}div:not(.reveal) a{-webkit-animation:none;animation:none}}a>span{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;width:100%}a span.text{display:none;font-weight:700}a span.sr-only{visibility:visible}div.docked{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse}div:not(.docked){max-width:var(--undocked-width)}div:not(.docked):not(.reveal){position:relative}div.docked a{position:relative}va-icon{margin-right:0px}@media (min-width: 768px){a{height:44px;width:44px;padding:0 1rem;text-decoration:none;width:auto}a span.text{color:var(--vads-color-link);display:inline-block;text-decoration:underline}a span.sr-only{visibility:hidden}va-icon{margin-right:4px}}",VaBackToTopStyle0=vaBackToTopCss,VaBackToTop$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.revealed=!1,this.isDocked=!1}componentDidLoad(){new IntersectionObserver(t=>{this.isDocked=t[0].isIntersecting||t[0].boundingClientRect.y<0},{threshold:1}).observe(this.el),new IntersectionObserver(t=>{this.revealed=t[0].boundingClientRect.y<0}).observe(this.revealPixel)}navigateToTop(t){t.preventDefault();const e=document.querySelector("h1");return e&&(e.setAttribute("tabindex","-1"),e.focus(),e.addEventListener("blur",()=>e.removeAttribute("tabindex"))),window.scrollTo(0,0)}render(){const t=this.el.getBoundingClientRect().width;return this.el.style.setProperty("--undocked-width",`${t}px`),h(Host,{key:"bd004d092bc68aea2786b9a8e40cd62c974ad440"},h("span",{key:"e47bd35d3a5a00d602eb552c3fcce8bdb2587c15",id:"marginWrapper"},h("span",{key:"af22c249d82cbeea13d9685d8a0c00eed607e90a",class:"reveal-point",ref:t=>this.revealPixel=t}),h("div",{key:"dd0d1f753715f49fb5393e42d19af3fd7deef117",class:classnames({docked:this.isDocked,reveal:this.revealed})},h("a",{key:"da20f05e0cde591bb4d1009dda179eac849dff64",href:"#ds-back-to-top",onClick:this.navigateToTop.bind(this)},h("span",{key:"14134a3f5a6b2e5a894aeda3da9972afa97a4e9b"},h("va-icon",{key:"489c861c78b56199b9cd7e6a02ebfaac9576773d",icon:"arrow_upward",size:3}),h("span",{key:"47caa561588233ca2ed1e06c7450037c70526afd",class:"sr-only"},"Back to top")," ",h("span",{key:"d8dab206a17ca5238a3a0de1f66c1602a1b275b4",class:"text"},"Back to top"))))))}get el(){return this}static get style(){return VaBackToTopStyle0}},[1,"va-back-to-top",{revealed:[32],isDocked:[32]}]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["va-back-to-top","va-icon"].forEach(t=>{switch(t){case"va-back-to-top":customElements.get(t)||customElements.define(t,VaBackToTop$1);break;case"va-icon":customElements.get(t)||defineCustomElement$2()}})}const VaBackToTop=VaBackToTop$1,defineCustomElement=defineCustomElement$1;export{VaBackToTop,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as proxyCustomElement,H,d as createEvent,h,c as Host}from"./p-ef5c0d66.js";import{d as defineCustomElement$3}from"./p-
|
|
1
|
+
import{p as proxyCustomElement,H,d as createEvent,h,c as Host}from"./p-ef5c0d66.js";import{d as defineCustomElement$3}from"./p-9240a389.js";import{d as defineCustomElement$2}from"./p-9cd6282d.js";const vaBannerCss=".usa-sr-only{position:absolute;left:-999em;right:auto}:is(va-alert)>:is(h1,h2,h3,h4,h5,h6){font-size:1.33rem;margin-top:-2px;margin-bottom:8px;line-height:var(--vads-font-line-height-2)}",VaBannerStyle0=vaBannerCss,DISMISSED_BANNERS_KEY="DISMISSED_BANNERS",VaBanner$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.componentLibraryAnalytics=createEvent(this,"component-library-analytics",7),this.prepareBannerID=()=>this.dismissedBannerId&&this.dismissedBannerId.length?this.dismissedBannerId:`${this.headline}:${this.el.innerHTML}`,this.dismiss=()=>{const e=this.prepareBannerID();if(!this.dismissedBanners.includes(e)&&this.showClose){if(!this.disableAnalytics&&this.el.shadowRoot){const e={componentName:"va-banner",action:"close",details:{headline:this.headline}};this.componentLibraryAnalytics.emit(e)}const s=[...this.dismissedBanners,e];(this.windowSession?window.sessionStorage:window.localStorage).setItem("DISMISSED_BANNERS",JSON.stringify(s)),this.dismissedBanners=s}},this.disableAnalytics=!1,this.showClose=!1,this.headline=void 0,this.type="info",this.visible=!0,this.windowSession=!1,this.dataLabel=void 0,this.dismissedBannerId=void 0,this.dismissedBanners=[]}componentWillLoad(){if(this.showClose){const e=(this.windowSession?window.sessionStorage:window.localStorage).getItem("DISMISSED_BANNERS");this.dismissedBanners=e?JSON.parse(e):[]}}render(){var e;const s=this.showClose&&(null===(e=this.dismissedBanners)||void 0===e?void 0:e.includes(this.prepareBannerID()));if(!this.visible||s)return null;const t=this.showClose?this.dismiss:void 0,i=this.dataLabel||`${this.type[0].toUpperCase()}${this.type.slice(1)} banner`;return h(Host,null,h("va-alert",{id:"va-banner-alert",visible:!0,"full-width":!0,closeable:this.showClose,onCloseEvent:t,status:this.type,"data-role":"region","data-label":i},h("h3",{slot:"headline"},this.headline),h("slot",null)))}get el(){return this}static get style(){return VaBannerStyle0}},[1,"va-banner",{disableAnalytics:[4,"disable-analytics"],showClose:[4,"show-close"],headline:[1],type:[1],visible:[4],windowSession:[4,"window-session"],dataLabel:[1,"data-label"],dismissedBannerId:[1,"dismissed-banner-id"],dismissedBanners:[32]}]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["va-banner","va-alert","va-icon"].forEach(e=>{switch(e){case"va-banner":customElements.get(e)||customElements.define(e,VaBanner$1);break;case"va-alert":customElements.get(e)||defineCustomElement$3();break;case"va-icon":customElements.get(e)||defineCustomElement$2()}})}const VaBanner=VaBanner$1,defineCustomElement=defineCustomElement$1;export{VaBanner,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as proxyCustomElement,H,d as createEvent,h,c as Host}from"./p-ef5c0d66.js";import{d as deepEquals}from"./p-494b538e.js";import{c as classnames}from"./p-a5dce9e6.js";const vaBreadcrumbsCss='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}.usa-icon{display:inline-block;fill:currentColor;height:1em;position:relative;width:1em}.usa-icon--size-3{height:1.5rem;width:1.5rem}.usa-icon--size-4{height:2rem;width:2rem}.usa-icon--size-5{height:2.5rem;width:2.5rem}.usa-icon--size-6{height:3rem;width:3rem}.usa-icon--size-7{height:3.5rem;width:3.5rem}.usa-icon--size-8{height:4rem;width:4rem}.usa-icon--size-9{height:4.5rem;width:4.5rem}.usa-breadcrumb{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;color:#1b1b1b;background-color:white;padding-left:0;padding-right:0}@media all and (min-width: 30em){.usa-breadcrumb{padding-bottom:1rem;padding-top:1rem}}@media all and (min-width: 30em){.usa-breadcrumb:not(.usa-breadcrumb--wrap) .usa-breadcrumb__list{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}}.usa-breadcrumb__list{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;display:block;padding:0.25rem;margin-left:-0.25rem;margin-right:-0.25rem}.usa-breadcrumb__list>li{margin-bottom:0;max-width:unset}.usa-breadcrumb__list-item{position:absolute;left:-999em;right:auto;display:inline}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item{white-space:normal}.usa-breadcrumb__list-item:nth-last-child(2){position:static}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link{color:#005ea2;text-decoration:underline;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;font-weight:normal;-ms-flex-pack:normal;justify-content:normal;text-align:left;margin:0;padding:0;width:auto;padding-left:calc(2ex + 0px);text-indent:calc((2ex + 0px) * -1);color:#005ea2;display:inline-block;padding-bottom:1rem;padding-top:1rem}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:visited{color:#54278f}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:hover{color:#1a4480}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:active{color:#162e51}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled.usa-button--hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true].usa-button--hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled.usa-button--active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true].usa-button--active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:focus,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:focus,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled.usa-focus,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true].usa-focus,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true],.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--hover{color:#1a4480}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--active{color:#162e51}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true],.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:focus{color:#757575}}@media (max-width: 29.99em) and (forced-colors: active){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true],.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:focus{color:GrayText}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2ex 2ex;display:inline-block;height:2ex;width:2ex;content:"";vertical-align:baseline;margin-right:0rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link::before{background:none;background-color:#71767a;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2ex 2ex;mask-size:2ex 2ex}}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:visited{color:#54278f}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:active{color:#1a4480}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:before{bottom:-0.2em;height:2ex;position:relative}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:active{text-decoration:none}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link span{text-decoration:underline}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link::before{margin-right:0px}}@media all and (min-width: 30em){.usa-breadcrumb__list-item{position:static}.usa-breadcrumb__list-item:not(:last-child)::after{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2ex 2ex;display:inline-block;height:2ex;width:2ex;content:"";vertical-align:baseline;margin-left:0rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-breadcrumb__list-item:not(:last-child)::after{background:none;background-color:#71767a;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2ex 2ex;mask-size:2ex 2ex}}.usa-breadcrumb__list-item:not(:last-child)::after{bottom:-0.2em;margin-left:0px;margin-right:0px;height:2ex;position:relative}}.usa-breadcrumb__link{color:#005ea2;display:inline;text-decoration:none}.usa-breadcrumb__link:visited{color:#54278f}.usa-breadcrumb__link:hover,.usa-breadcrumb__link:active{color:#1a4480}.usa-breadcrumb__link span{text-decoration:underline}@media all and (min-width: 30em){.usa-breadcrumb--wrap{line-height:1.4}}.usa-breadcrumb--wrap .usa-breadcrumb__list-item{display:inline-block}:host{display:block}.usa-breadcrumb__link span{pointer-events:none}@media screen and (max-width: 480px){.usa-breadcrumb__list-item:not(:nth-last-child(2)){display:none}}.usa-breadcrumb{padding-top:20px;padding-bottom:32px}@media (min-width: 768px){.usa-breadcrumb{padding-bottom:48px}}.usa-breadcrumb__link{color:var(--vads-color-link)}.usa-breadcrumb__link:hover{color:var(--vads-color-primary-dark)}.usa-breadcrumb__link{color:var(--vads-color-link)}.usa-breadcrumb__link:hover{color:var(--vads-color-primary-dark)}.usa-breadcrumb__list-item:not(:last-child)::after{background:var(--vads-color-gray-medium)}@media (max-width: 480px){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link{padding-top:0;padding-bottom:0}}.usa-current a{font-weight:bold}',VaBreadcrumbsStyle0=vaBreadcrumbsCss,VaBreadcrumbs$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.componentLibraryAnalytics=createEvent(this,"component-library-analytics",7),this.routeChange=createEvent(this,"routeChange",7),this.label="Breadcrumb",this.wrapping=!1,this.breadcrumbList=void 0,this.homeVeteransAffairs=!0,this.currentPageRedirect=!1,this.formattedBreadcrumbs=[],this.disableAnalytics=!1}updateBreadCrumbList(e){const a=e.map(e=>Object.assign({},e)),t=a[0];t&&this.homeVeteransAffairs&&(t.label="VA.gov home"),deepEquals(this.formattedBreadcrumbs,a)||(this.formattedBreadcrumbs=a)}getClickLevel(e){return Array.from(this.el.shadowRoot.querySelectorAll("a")).findIndex(a=>a.isEqualNode(e))+1}fireAnalyticsEvent(e){if(!this.disableAnalytics){const a=e.target;if("A"===(null==a?void 0:a.tagName)){const e={componentName:"va-breadcrumbs",action:"linkClick",details:{clickLabel:a.innerText.trim(),clickLevel:this.getClickLevel(a),totalLevels:this.el.shadowRoot.querySelectorAll("a").length+1}};this.componentLibraryAnalytics.emit(e)}}}handleAnchorNode(e,a,t){const r=document.createElement("li");r.classList.add("va-breadcrumbs-li"),a===t.length-1&&e.setAttribute("aria-current","page"),e.parentNode.replaceChild(r,e),r.appendChild(e)}handleListNode(e,a,t){e.classList.add("va-breadcrumbs-li");const r=e.querySelector("a");r&&a===t.length-1&&r.setAttribute("aria-current","page")}validateBreadcrumbs(e){let a;if(Array.isArray(e))a=e;else{if("string"!=typeof e)return!1;try{a=JSON.parse(e)}catch(e){return!1}}return!(!Array.isArray(a)||!a.every(e=>"object"==typeof e&&e.hasOwnProperty("label")&&e.hasOwnProperty("href")))&&a}validateAndFormatBreadcrumbs(){var e;if(!(null===(e=this.breadcrumbList)||void 0===e?void 0:e.length))return;let a=this.validateBreadcrumbs(this.breadcrumbList);a&&this.updateBreadCrumbList(a)}componentDidLoad(){var e;const a=null===(e=this.el.shadowRoot.querySelector("slot"))||void 0===e?void 0:e.assignedNodes();a&&a.forEach((e,t)=>{"LI"===e.nodeName?this.handleListNode(e,t,a):"A"===e.nodeName&&this.handleAnchorNode(e,t,a)})}componentWillLoad(){this.validateAndFormatBreadcrumbs()}componentDidUpdate(){this.validateAndFormatBreadcrumbs()}handleSlotChange(){var e;const a=null===(e=this.el.shadowRoot.querySelector("slot"))||void 0===e?void 0:e.assignedNodes().filter(e=>"LI"===e.nodeName);a&&a.forEach((e,t)=>{if("LI"===e.nodeName){e.classList.add("usa-breadcrumb__list-item");const r=e.querySelector("a");0===t&&r&&this.homeVeteransAffairs&&(r.innerText="VA.gov home"),(null==r?void 0:r.getAttribute("aria-current"))&&t!==a.length-1&&r.removeAttribute("aria-current");const i=document.createElement("span");if(i.textContent=r.textContent,r.innerHTML="",r.appendChild(i),t===a.length-1){const a=document.createElement("span");a.textContent=r.textContent,e.classList.add("usa-current"),e.replaceChild(a,r),null==e||e.setAttribute("aria-current","page")}}})}handleRouteChange(e,a){e.preventDefault(),this.routeChange.emit({href:a})}handleClick(e,a){const{href:t,isRouterLink:r}=a;r&&this.handleRouteChange(e,t),this.fireAnalyticsEvent(e)}render(){const{label:e,wrapping:a}=this,t=classnames({"usa-breadcrumb":!0,"usa-breadcrumb--wrap":a});return h(Host,{key:"6619628e96af9526d218b6623d446f9f2289db0c"},h("nav",{key:"8ab1f50f166c03572d91d8a33dcfcda1cbe386cb","aria-label":e,class:t},h("ol",{key:"56472ddf58e9e7755f74b2e0f298adabd85d0c0a",role:"list",class:"usa-breadcrumb__list"},this.formattedBreadcrumbs.map((e,a)=>h("li",{class:"usa-breadcrumb__list-item "+(a===this.formattedBreadcrumbs.length-1?"usa-current":""),"aria-current":a===this.formattedBreadcrumbs.length-1?"page":void 0},this.currentPageRedirect||a!==this.formattedBreadcrumbs.length-1?h("a",{class:"usa-breadcrumb__link",href:e.href,onClick:a=>this.handleClick(a,e),lang:e.lang||"en-US",hreflang:e.lang||"en-US"},h("span",null,e.label)):h("a",{class:"usa-breadcrumb__link",href:"#content",onClick:e=>this.fireAnalyticsEvent(e),lang:e.lang||"en-US",hreflang:e.lang||"en-US"},h("span",null,e.label)))))))}get el(){return this}static get style(){return VaBreadcrumbsStyle0}},[1,"va-breadcrumbs",{label:[1],wrapping:[4],breadcrumbList:[1,"breadcrumb-list"],homeVeteransAffairs:[4,"home-veterans-affairs"],currentPageRedirect:[4,"current-page-redirect"],disableAnalytics:[4,"disable-analytics"],formattedBreadcrumbs:[32]}]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["va-breadcrumbs"].forEach(e=>{"va-breadcrumbs"===e&&(customElements.get(e)||customElements.define(e,VaBreadcrumbs$1))})}const VaBreadcrumbs=VaBreadcrumbs$1,defineCustomElement=defineCustomElement$1;export{VaBreadcrumbs,defineCustomElement};
|
|
1
|
+
import{p as proxyCustomElement,H,d as createEvent,h,c as Host}from"./p-ef5c0d66.js";import{d as deepEquals}from"./p-44ff6df8.js";import{c as classnames}from"./p-a5dce9e6.js";const vaBreadcrumbsCss='button:not([disabled]):focus,select:not([disabled]):focus,a:not([disabled]):focus,h1:focus,input:not([disabled]):focus,textarea:not([disabled]):focus,#form-question [role=\'option\']:focus,*[tabindex]:focus,a.va-sidenav-submenu__link:focus{outline:2px solid var(--vads-color-action-focus-on-light);outline-offset:2px;z-index:2}.usa-icon{display:inline-block;fill:currentColor;height:1em;position:relative;width:1em}.usa-icon--size-3{height:1.5rem;width:1.5rem}.usa-icon--size-4{height:2rem;width:2rem}.usa-icon--size-5{height:2.5rem;width:2.5rem}.usa-icon--size-6{height:3rem;width:3rem}.usa-icon--size-7{height:3.5rem;width:3.5rem}.usa-icon--size-8{height:4rem;width:4rem}.usa-icon--size-9{height:4.5rem;width:4.5rem}.usa-breadcrumb{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;color:#1b1b1b;background-color:white;padding-left:0;padding-right:0}@media all and (min-width: 30em){.usa-breadcrumb{padding-bottom:1rem;padding-top:1rem}}@media all and (min-width: 30em){.usa-breadcrumb:not(.usa-breadcrumb--wrap) .usa-breadcrumb__list{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}}.usa-breadcrumb__list{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;display:block;padding:0.25rem;margin-left:-0.25rem;margin-right:-0.25rem}.usa-breadcrumb__list>li{margin-bottom:0;max-width:unset}.usa-breadcrumb__list-item{position:absolute;left:-999em;right:auto;display:inline}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item{white-space:normal}.usa-breadcrumb__list-item:nth-last-child(2){position:static}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link{color:#005ea2;text-decoration:underline;background-color:transparent;border:0;border-radius:0;-webkit-box-shadow:none;box-shadow:none;font-weight:normal;-ms-flex-pack:normal;justify-content:normal;text-align:left;margin:0;padding:0;width:auto;padding-left:calc(2ex + 0px);text-indent:calc((2ex + 0px) * -1);color:#005ea2;display:inline-block;padding-bottom:1rem;padding-top:1rem}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:visited{color:#54278f}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:hover{color:#1a4480}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:active{color:#162e51}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled.usa-button--hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true].usa-button--hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled.usa-button--active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true].usa-button--active,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:focus,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:focus,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled.usa-focus,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true].usa-focus,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true],.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--hover{color:#1a4480}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link.usa-button--active{color:#162e51}.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true],.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:focus{color:#757575}}@media (max-width: 29.99em) and (forced-colors: active){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true],.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:disabled:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link[aria-disabled=true]:focus{color:GrayText}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link::before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2ex 2ex;display:inline-block;height:2ex;width:2ex;content:"";vertical-align:baseline;margin-right:0rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link::before{background:none;background-color:#71767a;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2ex 2ex;mask-size:2ex 2ex}}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:visited{color:#54278f}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:active{color:#1a4480}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:before{bottom:-0.2em;height:2ex;position:relative}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:hover,.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link:active{text-decoration:none}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link span{text-decoration:underline}}@media all and (max-width: 29.99em){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link::before{margin-right:0px}}@media all and (min-width: 30em){.usa-breadcrumb__list-item{position:static}.usa-breadcrumb__list-item:not(:last-child)::after{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:2ex 2ex;display:inline-block;height:2ex;width:2ex;content:"";vertical-align:baseline;margin-left:0rem}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-breadcrumb__list-item:not(:last-child)::after{background:none;background-color:#71767a;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));mask-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2224%22 height%3D%2224%22 viewBox%3D%220 0 24 24%22%3E%3Cpath d%3D%22M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:2ex 2ex;mask-size:2ex 2ex}}.usa-breadcrumb__list-item:not(:last-child)::after{bottom:-0.2em;margin-left:0px;margin-right:0px;height:2ex;position:relative}}.usa-breadcrumb__link{color:#005ea2;display:inline;text-decoration:none}.usa-breadcrumb__link:visited{color:#54278f}.usa-breadcrumb__link:hover,.usa-breadcrumb__link:active{color:#1a4480}.usa-breadcrumb__link span{text-decoration:underline}@media all and (min-width: 30em){.usa-breadcrumb--wrap{line-height:1.4}}.usa-breadcrumb--wrap .usa-breadcrumb__list-item{display:inline-block}:host{display:block}.usa-breadcrumb__link span{pointer-events:none}@media screen and (max-width: 480px){.usa-breadcrumb__list-item:not(:nth-last-child(2)){display:none}}.usa-breadcrumb{padding-top:20px;padding-bottom:32px}@media (min-width: 768px){.usa-breadcrumb{padding-bottom:48px}}.usa-breadcrumb__link{color:var(--vads-color-link)}.usa-breadcrumb__link:hover{color:var(--vads-color-primary-dark)}.usa-breadcrumb__link{color:var(--vads-color-link)}.usa-breadcrumb__link:hover{color:var(--vads-color-primary-dark)}.usa-breadcrumb__list-item:not(:last-child)::after{background:var(--vads-color-gray-medium)}@media (max-width: 480px){.usa-breadcrumb__list-item:nth-last-child(2) .usa-breadcrumb__link{padding-top:0;padding-bottom:0}}.usa-current a{font-weight:bold}',VaBreadcrumbsStyle0=vaBreadcrumbsCss,VaBreadcrumbs$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.componentLibraryAnalytics=createEvent(this,"component-library-analytics",7),this.routeChange=createEvent(this,"routeChange",7),this.label="Breadcrumb",this.wrapping=!1,this.breadcrumbList=void 0,this.homeVeteransAffairs=!0,this.currentPageRedirect=!1,this.formattedBreadcrumbs=[],this.disableAnalytics=!1}updateBreadCrumbList(e){const a=e.map(e=>Object.assign({},e)),t=a[0];t&&this.homeVeteransAffairs&&(t.label="VA.gov home"),deepEquals(this.formattedBreadcrumbs,a)||(this.formattedBreadcrumbs=a)}getClickLevel(e){return Array.from(this.el.shadowRoot.querySelectorAll("a")).findIndex(a=>a.isEqualNode(e))+1}fireAnalyticsEvent(e){if(!this.disableAnalytics){const a=e.target;if("A"===(null==a?void 0:a.tagName)){const e={componentName:"va-breadcrumbs",action:"linkClick",details:{clickLabel:a.innerText.trim(),clickLevel:this.getClickLevel(a),totalLevels:this.el.shadowRoot.querySelectorAll("a").length+1}};this.componentLibraryAnalytics.emit(e)}}}handleAnchorNode(e,a,t){const r=document.createElement("li");r.classList.add("va-breadcrumbs-li"),a===t.length-1&&e.setAttribute("aria-current","page"),e.parentNode.replaceChild(r,e),r.appendChild(e)}handleListNode(e,a,t){e.classList.add("va-breadcrumbs-li");const r=e.querySelector("a");r&&a===t.length-1&&r.setAttribute("aria-current","page")}validateBreadcrumbs(e){let a;if(Array.isArray(e))a=e;else{if("string"!=typeof e)return!1;try{a=JSON.parse(e)}catch(e){return!1}}return!(!Array.isArray(a)||!a.every(e=>"object"==typeof e&&e.hasOwnProperty("label")&&e.hasOwnProperty("href")))&&a}validateAndFormatBreadcrumbs(){var e;if(!(null===(e=this.breadcrumbList)||void 0===e?void 0:e.length))return;let a=this.validateBreadcrumbs(this.breadcrumbList);a&&this.updateBreadCrumbList(a)}componentDidLoad(){var e;const a=null===(e=this.el.shadowRoot.querySelector("slot"))||void 0===e?void 0:e.assignedNodes();a&&a.forEach((e,t)=>{"LI"===e.nodeName?this.handleListNode(e,t,a):"A"===e.nodeName&&this.handleAnchorNode(e,t,a)})}componentWillLoad(){this.validateAndFormatBreadcrumbs()}componentDidUpdate(){this.validateAndFormatBreadcrumbs()}handleSlotChange(){var e;const a=null===(e=this.el.shadowRoot.querySelector("slot"))||void 0===e?void 0:e.assignedNodes().filter(e=>"LI"===e.nodeName);a&&a.forEach((e,t)=>{if("LI"===e.nodeName){e.classList.add("usa-breadcrumb__list-item");const r=e.querySelector("a");0===t&&r&&this.homeVeteransAffairs&&(r.innerText="VA.gov home"),(null==r?void 0:r.getAttribute("aria-current"))&&t!==a.length-1&&r.removeAttribute("aria-current");const i=document.createElement("span");if(i.textContent=r.textContent,r.innerHTML="",r.appendChild(i),t===a.length-1){const a=document.createElement("span");a.textContent=r.textContent,e.classList.add("usa-current"),e.replaceChild(a,r),null==e||e.setAttribute("aria-current","page")}}})}handleRouteChange(e,a){e.preventDefault(),this.routeChange.emit({href:a})}handleClick(e,a){const{href:t,isRouterLink:r}=a;r&&this.handleRouteChange(e,t),this.fireAnalyticsEvent(e)}render(){const{label:e,wrapping:a}=this,t=classnames({"usa-breadcrumb":!0,"usa-breadcrumb--wrap":a});return h(Host,{key:"6619628e96af9526d218b6623d446f9f2289db0c"},h("nav",{key:"8ab1f50f166c03572d91d8a33dcfcda1cbe386cb","aria-label":e,class:t},h("ol",{key:"56472ddf58e9e7755f74b2e0f298adabd85d0c0a",role:"list",class:"usa-breadcrumb__list"},this.formattedBreadcrumbs.map((e,a)=>h("li",{class:"usa-breadcrumb__list-item "+(a===this.formattedBreadcrumbs.length-1?"usa-current":""),"aria-current":a===this.formattedBreadcrumbs.length-1?"page":void 0},this.currentPageRedirect||a!==this.formattedBreadcrumbs.length-1?h("a",{class:"usa-breadcrumb__link",href:e.href,onClick:a=>this.handleClick(a,e),lang:e.lang||"en-US",hreflang:e.lang||"en-US"},h("span",null,e.label)):h("a",{class:"usa-breadcrumb__link",href:"#content",onClick:e=>this.fireAnalyticsEvent(e),lang:e.lang||"en-US",hreflang:e.lang||"en-US"},h("span",null,e.label)))))))}get el(){return this}static get style(){return VaBreadcrumbsStyle0}},[1,"va-breadcrumbs",{label:[1],wrapping:[4],breadcrumbList:[1,"breadcrumb-list"],homeVeteransAffairs:[4,"home-veterans-affairs"],currentPageRedirect:[4,"current-page-redirect"],disableAnalytics:[4,"disable-analytics"],formattedBreadcrumbs:[32]}]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["va-breadcrumbs"].forEach(e=>{"va-breadcrumbs"===e&&(customElements.get(e)||customElements.define(e,VaBreadcrumbs$1))})}const VaBreadcrumbs=VaBreadcrumbs$1,defineCustomElement=defineCustomElement$1;export{VaBreadcrumbs,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as VaButtonIcon$1,d as defineCustomElement$1}from"./p-
|
|
1
|
+
import{V as VaButtonIcon$1,d as defineCustomElement$1}from"./p-3269359a.js";const VaButtonIcon=VaButtonIcon$1,defineCustomElement=defineCustomElement$1;export{VaButtonIcon,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as proxyCustomElement,H,d as createEvent,h,c as Host}from"./p-ef5c0d66.js";import{d as defineCustomElement$3}from"./p-
|
|
1
|
+
import{p as proxyCustomElement,H,d as createEvent,h,c as Host}from"./p-ef5c0d66.js";import{d as defineCustomElement$3}from"./p-7a223b44.js";import{d as defineCustomElement$2}from"./p-9cd6282d.js";const vaButtonPairCss='.usa-button-group{margin-bottom:0;margin-top:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style-type:none;margin-left:-0.25rem;margin-right:-0.25rem;padding-left:0}@media all and (min-width: 30em){.usa-button-group{-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch;-ms-flex-direction:row;flex-direction:row}}.usa-button-group .usa-button-group{height:100%}@media all and (min-width: 30em){.usa-button-group .usa-button-group .usa-button-group__item{margin-top:0;margin-bottom:0}}.usa-button-group .usa-button-group--segmented .usa-button-group__item{margin-top:0;margin-bottom:0}.usa-button-group__item{margin:0.25rem}@media all and (min-width: 30em){.usa-button-group__item:last-child{margin-right:0}}.usa-button-group__item .usa-button{height:100%;margin-left:0;margin-right:0}.usa-button-group--segmented{-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;margin-left:0;margin-right:0}@media all and (min-width: 30em){.usa-button-group--segmented{-ms-flex-pack:start;justify-content:flex-start}}.usa-button-group--segmented .usa-button{position:relative;width:calc(100% + 2px)}@media all and (min-width: 30em){.usa-button-group--segmented .usa-button{width:auto}}.usa-button-group--segmented .usa-button:hover,.usa-button-group--segmented .usa-button:active{z-index:2}.usa-button-group--segmented .usa-button:focus{z-index:3}.usa-button-group--segmented .usa-button-group__item{margin-left:0;margin-right:0;width:100%}@media all and (min-width: 30em){.usa-button-group--segmented .usa-button-group__item{width:auto}}.usa-button-group--segmented .usa-button-group__item:first-child>.usa-button{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:-1px}.usa-button-group--segmented .usa-button-group__item:last-child>.usa-button{border-top-left-radius:0;border-bottom-left-radius:0;margin-right:0;margin-left:-2px;width:calc(100% + 2px)}@media all and (min-width: 30em){.usa-button-group--segmented .usa-button-group__item:last-child>.usa-button{margin-left:-1px;width:auto}}.usa-button-group--segmented .usa-button-group__item:where(:not(:first-child):not(:last-child))>.usa-button{border-radius:0;margin-right:-1px;margin-left:-1px}.usa-button-group--segmented .usa-button-group__item:where(:not(:last-child)) .usa-button::before{border-right:1px solid #1a4480;bottom:0;content:"";display:block;height:100%;position:absolute;right:1px;top:0;width:1px;z-index:3}.usa-button-group--segmented .usa-button-group__item:where(:not(:last-child)) .usa-button--secondary::before{border-right-color:#b50909}.usa-button-group--segmented .usa-button-group__item:where(:not(:last-child)) .usa-button--accent-cool::before{border-right-color:#28a0cb}.usa-button-group--segmented .usa-button-group__item:where(:not(:last-child)) .usa-button--base::before{border-right-color:#565c65}.usa-button-group--segmented .usa-button-group__item:where(:not(:last-child)) [class*=usa-button]:disabled::before,.usa-button-group--segmented .usa-button-group__item:where(:not(:last-child)) [class*=usa-button][aria-disabled=true]::before{border-right-color:white}.usa-button-group--segmented .usa-button-group__item:where(:not(:last-child)) .usa-button:active::before,.usa-button-group--segmented .usa-button-group__item:where(:not(:last-child)) .usa-button--outline::before{display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host va-button::part(button){margin-right:0}@media (max-width: 480px){:host va-button{display:block}.usa-button-group{margin:0 auto;width:100%}}',VaButtonPairStyle0=vaButtonPairCss,VaButtonPair$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.primaryClick=createEvent(this,"primaryClick",7),this.secondaryClick=createEvent(this,"secondaryClick",7),this.componentLibraryAnalytics=createEvent(this,"component-library-analytics",7),this.handlePrimaryClick=t=>{this.primaryClick.emit(t)},this.handleSecondaryClick=t=>{this.secondaryClick.emit(t)},this.getLeftButtonText=()=>this.leftButtonText?this.leftButtonText:this.continue?"Back":this.update?"Update":"Yes",this.getRightButtonText=()=>this.rightButtonText?this.rightButtonText:this.continue?"Continue":this.update?"Cancel":"No",this.continue=!1,this.disableAnalytics=!1,this.primaryLabel=void 0,this.secondaryLabel=void 0,this.submit=void 0,this.update=!1,this.leftButtonText=void 0,this.rightButtonText=void 0}handleButtonAnalytics(t){var e;if("va-button-pair"!==t.detail.componentName&&(t.stopPropagation(),!this.disableAnalytics)){const o={componentName:"va-button-pair",action:"click",details:Object.assign({type:null,label:null},null===(e=t.detail)||void 0===e?void 0:e.details)};this.componentLibraryAnalytics.emit(o)}}render(){const{continue:t,disableAnalytics:e,handlePrimaryClick:o,handleSecondaryClick:a,primaryLabel:n,secondaryLabel:i,submit:u}=this;return h(Host,null,t?h("ul",{class:"usa-button-group"},h("li",{class:"usa-button-group__item"},h("va-button",{back:!0,"disable-analytics":e,label:i,onClick:a,text:this.getLeftButtonText()})),h("li",{class:"usa-button-group__item"},h("va-button",{continue:!0,"disable-analytics":e,label:n,onClick:o,text:this.getRightButtonText(),submit:u}))):h("ul",{class:"usa-button-group"},h("li",{class:"usa-button-group__item"},h("va-button",{"disable-analytics":e,label:n,onClick:o,text:this.getLeftButtonText(),submit:u})),h("li",{class:"usa-button-group__item"},h("va-button",{"disable-analytics":e,label:i,onClick:a,secondary:!0,text:this.getRightButtonText()}))))}static get style(){return VaButtonPairStyle0}},[1,"va-button-pair",{continue:[4],disableAnalytics:[4,"disable-analytics"],primaryLabel:[1,"primary-label"],secondaryLabel:[1,"secondary-label"],submit:[1],update:[4],leftButtonText:[1,"left-button-text"],rightButtonText:[1,"right-button-text"]},[[0,"component-library-analytics","handleButtonAnalytics"]]]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["va-button-pair","va-button","va-icon"].forEach(t=>{switch(t){case"va-button-pair":customElements.get(t)||customElements.define(t,VaButtonPair$1);break;case"va-button":customElements.get(t)||defineCustomElement$3();break;case"va-icon":customElements.get(t)||defineCustomElement$2()}})}const VaButtonPair=VaButtonPair$1,defineCustomElement=defineCustomElement$1;export{VaButtonPair,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as VaButton$1,d as defineCustomElement$1}from"./p-
|
|
1
|
+
import{V as VaButton$1,d as defineCustomElement$1}from"./p-7a223b44.js";const VaButton=VaButton$1,defineCustomElement=defineCustomElement$1;export{VaButton,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as VaCard$1,d as defineCustomElement$1}from"./p-
|
|
1
|
+
import{V as VaCard$1,d as defineCustomElement$1}from"./p-1cee576c.js";const VaCard=VaCard$1,defineCustomElement=defineCustomElement$1;export{VaCard,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as VaCheckboxGroup$1,d as defineCustomElement$1}from"./p-
|
|
1
|
+
import{V as VaCheckboxGroup$1,d as defineCustomElement$1}from"./p-336ee68e.js";const VaCheckboxGroup=VaCheckboxGroup$1,defineCustomElement=defineCustomElement$1;export{VaCheckboxGroup,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as VaCheckbox$1,d as defineCustomElement$1}from"./p-
|
|
1
|
+
import{V as VaCheckbox$1,d as defineCustomElement$1}from"./p-7216b018.js";const VaCheckbox=VaCheckbox$1,defineCustomElement=defineCustomElement$1;export{VaCheckbox,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as VaComboBox$1,d as defineCustomElement$1}from"./p-
|
|
1
|
+
import{V as VaComboBox$1,d as defineCustomElement$1}from"./p-ddb87324.js";const VaComboBox=VaComboBox$1,defineCustomElement=defineCustomElement$1;export{VaComboBox,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as VACrisisLineModal,d as defineCustomElement$1}from"./p-
|
|
1
|
+
import{V as VACrisisLineModal,d as defineCustomElement$1}from"./p-2f76f321.js";const VaCrisisLineModal=VACrisisLineModal,defineCustomElement=defineCustomElement$1;export{VaCrisisLineModal,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as VaCriticalAction$1,d as defineCustomElement$1}from"./p-
|
|
1
|
+
import{V as VaCriticalAction$1,d as defineCustomElement$1}from"./p-63e66cce.js";const VaCriticalAction=VaCriticalAction$1,defineCustomElement=defineCustomElement$1;export{VaCriticalAction,defineCustomElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as proxyCustomElement,H,d as createEvent,h,F as Fragment,c as Host}from"./p-ef5c0d66.js";import"./p-6a3cf3d7.js";import{v as validate,z as zeroPadStart,d as daysForSelectedMonth,g as getErrorParameters,m as months}from"./p-
|
|
1
|
+
import{p as proxyCustomElement,H,d as createEvent,h,F as Fragment,c as Host}from"./p-ef5c0d66.js";import"./p-6a3cf3d7.js";import{v as validate,z as zeroPadStart,d as daysForSelectedMonth,g as getErrorParameters,m as months}from"./p-c872b7c8.js";import{d as defineCustomElement$4}from"./p-9cd6282d.js";import{d as defineCustomElement$3}from"./p-79aa9cf3.js";import{d as defineCustomElement$2}from"./p-d4f5e756.js";import{i as instance}from"./p-a836c3e1.js";const vaDateCss='.sr-only{border:0;clip:rect(0, 0, 0, 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}.hint-text{color:#71767A;display:block;font-size:1.06rem}#error-message{margin-bottom:0.75rem}#error-message,#input-error-message{color:var(--vads-color-secondary-dark);display:block;font-weight:700;font-size:1.06rem}:host([error]:not([error=""])),:host(.va-form-group--error){border-left:0.3rem solid var(--vads-color-secondary-dark);padding-left:1.25rem;position:relative}@media screen and (min-width: 1024px){:host([error]:not([error=""])),:host(.va-form-group--error){margin-left:-1.4375rem;}}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])),:host(.va-form-group--error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1024px){:host([error]:not([error=""])),:host(.va-form-group--error){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap,:host(.va-form-group--error[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1023px){:host([error]:not([error=""])[use-forms-pattern=multiple]),:host(.va-form-group--error[use-forms-pattern=multiple]){padding-left:0}}.usa-label--required{color:var(--vads-color-secondary-dark)}.usa-error-message{color:var(--vads-color-secondary-dark)}:host{display:block;font-family:var(--font-source-sans);margin-top:1.875rem}fieldset{border:none;margin:0;padding:0}legend{border:0;font-size:1.06rem;padding:0}span.required{color:var(--vads-color-secondary-dark)}#error-message{color:var(--vads-color-secondary-dark);display:block;margin-bottom:0}.date-container{display:-ms-flexbox;display:flex;margin-top:12px;-ms-flex-wrap:wrap;flex-wrap:wrap;row-gap:12px}:host([error]:not([error=""])) .date-container{padding-top:0}.select-month{width:8.125rem;margin-right:0.9375rem}.select-day{width:5rem;margin-right:0.9375rem}.input-year{width:5rem}va-select::part(label),va-text-input::part(label){margin-top:0;margin-bottom:12px}va-text-input::part(validation){display:none}',VaDateStyle0=vaDateCss,VaDate$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.dateChange=createEvent(this,"dateChange",7),this.dateBlur=createEvent(this,"dateBlur",7),this.componentLibraryAnalytics=createEvent(this,"component-library-analytics",7),this.dayTouched=!1,this.monthTouched=!1,this.yearTouched=!1,this.handleDateBlur=e=>{const[t,r,a]=(this.value||"").split("-").map(e=>Number(e));if(validate({component:this,year:t,month:r,day:a,yearTouched:this.yearTouched,monthTouched:this.monthTouched,dayTouched:this.dayTouched,monthSelect:!0,monthYearOnly:this.monthYearOnly,monthOptional:this.monthOptional}),!this.error&&(this.setValue(t,r,a),this.dateBlur.emit(e),this.enableAnalytics)){const e={componentName:"va-date",action:"blur",details:{year:t,month:r,day:a,"month-year-only":this.monthYearOnly}};this.componentLibraryAnalytics.emit(e)}},this.handleDateChange=e=>{const t=e.target;let[r,a,o]=(this.value||"").split("-");t.classList.contains("select-month")&&(a=t.value),t.classList.contains("select-day")&&(o=t.value),t.classList.contains("input-year")&&(r=t.value),this.setValue(parseInt(r),parseInt(a),parseInt(o)),this.dateChange.emit(e)},this.handleMonthBlur=()=>{this.monthTouched=!0},this.handleDayBlur=()=>{this.dayTouched=!0},this.handleYearBlur=()=>{this.yearTouched=!0},this.required=!1,this.label=void 0,this.name=void 0,this.hint=void 0,this.error=void 0,this.monthYearOnly=!1,this.monthOptional=!1,this.value=void 0,this.invalidDay=!1,this.invalidMonth=!1,this.invalidYear=!1,this.enableAnalytics=!1}setValue(e,t,r){const a=`${e||""}-${t?zeroPadStart(t):""}-${r?zeroPadStart(r):""}`.replace(/-+$/,"");this.value=a||null}render(){const{required:e,label:t,name:r,error:a,handleDateBlur:o,handleDateChange:n,monthYearOnly:s,value:i,hint:l}=this,[d,m,u]=(i||"").split("-").map(e=>parseInt(e)),p=Array.from({length:daysForSelectedMonth(d,m)},(e,t)=>t+1);return h(Host,{onBlur:o},h("fieldset",null,h("legend",null,t," ",e&&h("span",{class:"required"},"(*Required)")),l&&h("span",{class:"hint-text"},l),h("slot",null),h("span",{id:"error-message",role:"alert"},a&&h(Fragment,null,h("span",{class:"sr-only"},"Error")," ",instance.t(a,(e=>getErrorParameters(e,d,m))(a)))),h("div",{class:"date-container"},h("va-select",{label:"Month","aria-describedby":a?"error-message":void 0,name:`${r}Month`,value:null==m?void 0:m.toString(),onVaSelect:n,onBlur:this.handleMonthBlur,invalid:this.invalidMonth,class:"select-month",required:e,hideRequiredText:!0,error:this.monthTouched&&this.invalidMonth?a:null,showError:!1},months&&months.map(e=>h("option",{value:e.value},e.label))),!s&&h("va-select",{label:"Day","aria-describedby":a?"error-message":void 0,name:`${r}Day`,value:null==u?void 0:u.toString(),onVaSelect:n,onBlur:this.handleDayBlur,invalid:this.invalidDay,class:"select-day",required:e,hideRequiredText:!0,error:this.dayTouched&&this.invalidDay?this.error:null,showError:!1},p.map(e=>h("option",{value:e},e))),h("va-text-input",{label:"Year","aria-describedby":a?"error-message":void 0,name:`${r}Year`,maxlength:4,pattern:"[0-9]{4}",value:d?d.toString():"",invalid:this.invalidYear,onInput:n,onBlur:this.handleYearBlur,required:e,hideRequiredText:!0,error:this.yearTouched&&this.invalidYear?a:null,"show-input-error":"false",class:"input-year",inputmode:"numeric",type:"text","aria-label":"Please enter four digits for the year"}))))}get el(){return this}static get style(){return VaDateStyle0}},[1,"va-date",{required:[4],label:[1],name:[1],hint:[1],error:[1537],monthYearOnly:[4,"month-year-only"],monthOptional:[4,"month-optional"],value:[1537],invalidDay:[1028,"invalid-day"],invalidMonth:[1028,"invalid-month"],invalidYear:[1028,"invalid-year"],enableAnalytics:[4,"enable-analytics"]}]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["va-date","va-icon","va-select","va-text-input"].forEach(e=>{switch(e){case"va-date":customElements.get(e)||customElements.define(e,VaDate$1);break;case"va-icon":customElements.get(e)||defineCustomElement$4();break;case"va-select":customElements.get(e)||defineCustomElement$3();break;case"va-text-input":customElements.get(e)||defineCustomElement$2()}})}const VaDate=VaDate$1,defineCustomElement=defineCustomElement$1;export{VaDate,defineCustomElement};
|