@department-of-veterans-affairs/component-library 51.3.0 → 51.4.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/Modal.js +1 -1
- package/README.md +1 -1
- package/contacts.js +1 -1
- package/dist/12.app.bundle.js +1 -1
- package/dist/2205.app.bundle.js +1 -1
- package/dist/2236.app.bundle.js +1 -1
- package/dist/272.app.bundle.js +1 -1
- package/dist/2923.app.bundle.js +1 -1
- package/dist/3589.app.bundle.js +1 -1
- package/dist/4780.app.bundle.js +1 -1
- package/dist/5341.app.bundle.js +1 -1
- package/dist/5663.app.bundle.js +1 -1
- package/dist/606.app.bundle.js +1 -1
- package/dist/6555.app.bundle.js +1 -1
- package/dist/6650.app.bundle.js +1 -1
- package/dist/6696.app.bundle.js +1 -1
- package/dist/7166.app.bundle.js +1 -1
- package/dist/7372.app.bundle.js +1 -1
- package/dist/{7747.app.bundle.js → 7731.app.bundle.js} +1 -1
- package/dist/8255.app.bundle.js +1 -1
- package/dist/8913.app.bundle.js +1 -1
- package/dist/9496.app.bundle.js +1 -1
- package/dist/app.bundle.js +1 -1
- package/dist/components/i18n-setup.js +1 -1
- package/dist/components/i18next.js +1 -1
- package/dist/components/va-file-input-multiple.js +1 -1
- package/dist/components/va-file-input2.js +1 -1
- package/dist/components/va-on-this-page.js +1 -1
- package/dist/components/va-sidenav.js +1 -1
- package/format-date.js +1 -1
- package/package.json +2 -3
- package/test-helpers.js +1 -1
package/dist/4780.app.bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 4780.app.bundle.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4569,4780,7508],{4569:function(e,t,r){r.r(t),r.d(t,{c:function(){return o}});var a,i={exports:{}};a=i,function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var o=typeof i;if("string"===o||"number"===o)r.push(i);else if(Array.isArray(i)){if(i.length){var n=t.apply(null,i);n&&r.push(n)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&r.push(s);else r.push(i.toString())}}return r.join(" ")}a.exports?(t.default=t,a.exports=t):window.classNames=t}();var o=i.exports},7508:function(e,t,r){function a(e){return!Number.isNaN(parseFloat(e))}function i(e,t,r){void 0===r&&(r="slot");var a=e.shadowRoot.querySelector(r).assignedNodes();return null!==t?Array.from(a).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(a)}function o(e){return 1===e?"":"s"}function n(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(o(t)," allowed");var r;if(e.length<=t){var a=t-e.length;r="".concat(a," character").concat(o(a)," left")}else a=e.length-t,r="".concat(a," character").concat(o(a)," over limit");return r}function s(e,t){return Array.from({length:t-e+1},(function(t,r){return e+r}))}r.r(t),r.d(t,{S:function(){return c},a:function(){return i},b:function(){return a},c:function(){return m},d:function(){return b},e:function(){return n},f:function(){return f},g:function(){return d},i:function(){return p},m:function(){return s},s:function(){return l}}),r(7911);var u=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,t){var r=function(e,t){if("string"!=typeof e)return[];if(!t||!u(t))return[];var r=t.shadowRoot.querySelectorAll(e);return Array.from(r)}(e,t);return"string"!=typeof e||u(t)&&t.matches(e)&&r.push(t),r}var c={_entity:/[&<>"'/]/g,_entities:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},getEntity:function(e){return c._entities[e]},escapeHTML:function(e){for(var t="",r=0;r<e.length;r++)t+=e[r],r+1<arguments.length&&(t+=String(arguments[r+1]||"").replace(c._entity,c.getEntity));return t}};function d(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function f(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function p(e){return e&&"false"!==e||!1}function h(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function b(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(h(e)||h(t)){if(!h(e)||!h(t))return!1;var i=Array.prototype.slice;return b(i.call(e),i.call(t),r,a)}if(e.constructor!==t.constructor)return!1;var o=Object.keys(e),n=Object.keys(t);if(0===o.length&&0===n.length)return!0;if(o.length!==n.length)return!1;for(var s=r.length;s--;)if(r[s]===e)return a[s]===t;r.push(e),a.push(t),o.sort(),n.sort();for(var u=o.length-1;u>=0;u--)if(o[u]!==n[u])return!1;for(var l=void 0,c=o.length-1;c>=0;c--)if(!b(e[l=o[c]],t[l],r,a))return!1;return r.pop(),a.pop(),!0}function m(e,t){void 0===t&&(t=!0);var r=["a","i","e","o"];t&&r.push("u");var a=e.charAt(0).toLowerCase();return r.includes(a)?"an":"a"}},4780:function(e,t,r){r.r(t),r.d(t,{va_select:function(){return s}});var a=r(7911),i=r(4569),o=(r(7470),r(7508)),n=r(3244),s=function(){function e(e){(0,a.r)(this,e),this.vaKeyDown=(0,a.c)(this,"vaKeyDown",7),this.vaSelect=(0,a.c)(this,"vaSelect",7),this.vaSelectBlur=(0,a.c)(this,"vaSelectBlur",7),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.required=!1,this.label=void 0,this.name=void 0,this.value=void 0,this.error=void 0,this.reflectInputError=!1,this.invalid=!1,this.enableAnalytics=!1,this.hint=void 0,this.messageAriaDescribedby=void 0,this.width=void 0,this.fullWidth=!1,this.showError=!0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.options=void 0}return e.prototype.connectedCallback=function(){var e=this;n.i.on("languageChanged",(function(){(0,a.f)(e.el)}))},e.prototype.disconnectedCallback=function(){n.i.off("languageChanged")},e.prototype.handleKeyDown=function(){this.vaKeyDown.emit()},e.prototype.handleBlur=function(e){var t=e.target;this.value=t.value,this.vaSelectBlur.emit({value:this.value})},e.prototype.handleChange=function(e){var t=e.target;if(this.value=t.value,this.enableAnalytics){var r={componentName:"va-select",action:"change",details:{label:this.label,selectLabel:this.value}};this.componentLibraryAnalytics.emit(r)}this.vaSelect.emit({value:this.value})},e.prototype.populateOptions=function(){var e=this.value,t=(0,o.a)(this.el,null,"#select-container slot").filter((function(e){var t=e.nodeName.toLowerCase();return"option"===t||"optgroup"===t}));this.options=t.map((function(t){return"optgroup"===t.nodeName.toLowerCase()?(0,a.h)("optgroup",{label:t.label},Array.from(t.children).map((function(t){return(0,a.h)("option",{value:t.value,selected:e===t.value},t.text)}))):"option"===t.nodeName.toLowerCase()?(0,a.h)("option",{value:t.value,selected:e===t.value},t.textContent):void 0}))},e.prototype.handleValueChange=function(){this.populateOptions()},e.prototype.render=function(){var e,t=this,r=this,s=r.error,u=r.reflectInputError,l=r.invalid,c=r.label,d=r.required,f=r.name,p=r.hint,h=r.messageAriaDescribedby,b=r.width,m=r.fullWidth,g=r.showError,v=r.useFormsPattern,y=r.formHeadingLevel,w=r.formHeading,x="input-error-message",k="".concat(h?"input-message":""," ").concat(s?x:""," ").concat(p?"input-hint":"").trim()||null,C=(0,i.c)({"usa-label":!0,"usa-label--error":s}),A=(0,i.c)(((e={"usa-select":!0,"usa-input--error":s||u})["usa-input--".concat(b)]=b,e["va-select--full-width"]=m,e)),S=null;if(["single","multiple"].includes(v)){var z=(0,o.g)(y);S=(0,a.h)(a.F,{key:"10c05d6a54144fe907e25c529991bd73036aba45"},w&&(0,a.h)(z,{key:"a3e06fa9131123f9688624c94031f5a23ecf45c1",id:"form-question",part:"form-header"},w),(0,a.h)("div",{key:"bb86c3f5b0db8bcc1c6b9cf8e60e9b901ebe486e",id:"form-description"},(0,a.h)("slot",{key:"15ddee9d2c5bfc9ec364fc085f714549a7079dce",name:"form-description"})))}return(0,a.h)(a.H,{key:"872f983de6ab5909e0dca6bcd3a1c60b7e566136"},S,c&&(0,a.h)("label",{key:"3683d4f1bddd678a64b84899594ce595ff350d6d",htmlFor:"options",class:C,part:"label"},c,d&&(0,a.h)("span",{key:"861633d37df60fdf014c4e42b1fbefa1be8532c9",class:"usa-label--required"}," ",n.i.t("required"))),p&&(0,a.h)("span",{key:"c1879fe7f6876a4d61c01d0ec0d34fdc50607517",class:"usa-hint",id:"input-hint"},p),(0,a.h)("span",{key:"2f2f39eea70ca1573f532b9e88d4e42dcafb5c5a",id:x,role:"alert"},g&&s&&(0,a.h)(a.F,{key:"e3455c3e6fdb2654d46dc37c2c1cf6447474785d"},(0,a.h)("span",{key:"5b8e927c06154a3f41d14ad4208a0f7f5e5cb5e7",class:"usa-sr-only"},n.i.t("error")),(0,a.h)("span",{key:"d7cc8dca74f59cebceb6b763d64bd2617f3914cb",class:"usa-error-message"},s))),(0,a.h)("div",{key:"2a3d29d233966d1103d156e88d74612e4f1097b6",id:"select-container"},(0,a.h)("slot",{key:"88149f54959d5682ab83c03ff975a5ada09e4d08",onSlotchange:function(){return t.populateOptions()}}),(0,a.h)("select",{key:"480511c1fc9553836a20efd0edfd1ff790f9c555",class:A,"aria-describedby":k,"aria-invalid":l||s?"true":"false",id:"options",name:f,required:d||null,onKeyDown:function(){return t.handleKeyDown()},onChange:function(e){return t.handleChange(e)},onBlur:function(e){return t.handleBlur(e)},part:"select"},(0,a.h)("option",{key:"0",value:"",selected:!0},n.i.t("select")),this.options)),(0,o.i)(h)&&(0,a.h)("span",{key:"eb5767634fce34470f49fb82efb5be4554a0e05a",id:"input-message",class:"usa-sr-only dd-privacy-hidden"},h))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{value:["handleValueChange"]}},enumerable:!1,configurable:!0}),e}();s.style='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-select,.usa-hint,.usa-input{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-select,.usa-input{border-width:1px;border-color:#565c65;border-style:solid;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;margin-top:0.5rem;max-width:30rem;padding:0.5rem;width:100%}.usa-sr-only{position:absolute;left:-999em;right:auto}.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-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-input:disabled,.usa-input[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#454545}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:0;color:GrayText}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:2px solid GrayText}}.usa-input--error{border-width:0.25rem;border-color:#b50909;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-input--success{border-width:0.25rem;border-color:#00a91c;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-select{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 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:white;background-position:right 0.5rem center;background-size:1.25rem;padding-right:2rem}.usa-select::-ms-expand{display:none}.usa-select:-webkit-autofill{-webkit-appearance:menulist;appearance:menulist}.usa-select:-moz-focusring{color:transparent;text-shadow:0 0 0 black}.usa-select[multiple]{height:auto;background-image:none;padding-right:0}.usa-select option{overflow:hidden;text-overflow:ellipsis}.usa-select:disabled,.usa-select[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-select:disabled:hover,.usa-select:disabled:active,.usa-select:disabled:focus,.usa-select:disabled.usa-focus,.usa-select[aria-disabled=true]:hover,.usa-select[aria-disabled=true]:active,.usa-select[aria-disabled=true]:focus,.usa-select[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-select:disabled,.usa-select[aria-disabled=true]{border:0;color:GrayText}.usa-select:disabled:hover,.usa-select:disabled:active,.usa-select:disabled:focus,.usa-select:disabled.usa-focus,.usa-select[aria-disabled=true]:hover,.usa-select[aria-disabled=true]:active,.usa-select[aria-disabled=true]:focus,.usa-select[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-select:disabled,.usa-select[aria-disabled=true]{border:2px solid GrayText}}@media (forced-colors: active){.usa-select{-webkit-appearance:listbox;-moz-appearance:listbox;appearance:listbox;background-image:none;padding-right:0}}:host .usa-input--2xs{max-width:5ex}:host .usa-input--xs{max-width:9ex}:host .usa-input--sm,:host .usa-input--small{max-width:13ex}:host .usa-input--md,:host .usa-input--medium{max-width:20ex}:host .usa-input--lg{max-width:30ex}:host .usa-input--xl{max-width:40ex}:host .usa-input--2xl{max-width:50ex}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;font-family:var(--font-source-sans);color:var(--vads-color-base)}:host([inert]) select{border:0;background:none}.usa-select{margin-bottom:0}::slotted(option),::slotted(optgroup){display:none}.va-select--full-width{max-width:100%;width:100%}'}}]);
|
|
2
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4569,4780,7508],{4569:function(e,t,r){r.r(t),r.d(t,{c:function(){return o}});var a,i={exports:{}};a=i,function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var o=typeof i;if("string"===o||"number"===o)r.push(i);else if(Array.isArray(i)){if(i.length){var n=t.apply(null,i);n&&r.push(n)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var s in i)e.call(i,s)&&i[s]&&r.push(s);else r.push(i.toString())}}return r.join(" ")}a.exports?(t.default=t,a.exports=t):window.classNames=t}();var o=i.exports},7508:function(e,t,r){function a(e){return!Number.isNaN(parseFloat(e))}function i(e,t,r){void 0===r&&(r="slot");var a=e.shadowRoot.querySelector(r).assignedNodes();return null!==t?Array.from(a).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(a)}function o(e){return 1===e?"":"s"}function n(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(o(t)," allowed");var r;if(e.length<=t){var a=t-e.length;r="".concat(a," character").concat(o(a)," left")}else a=e.length-t,r="".concat(a," character").concat(o(a)," over limit");return r}function s(e,t){return Array.from({length:t-e+1},(function(t,r){return e+r}))}r.r(t),r.d(t,{S:function(){return c},a:function(){return i},b:function(){return a},c:function(){return m},d:function(){return b},e:function(){return n},f:function(){return f},g:function(){return d},i:function(){return p},m:function(){return s},s:function(){return l}}),r(7911);var u=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,t){var r=function(e,t){if("string"!=typeof e)return[];if(!t||!u(t))return[];var r=t.shadowRoot.querySelectorAll(e);return Array.from(r)}(e,t);return"string"!=typeof e||u(t)&&t.matches(e)&&r.push(t),r}var c={_entity:/[&<>"'/]/g,_entities:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},getEntity:function(e){return c._entities[e]},escapeHTML:function(e){for(var t="",r=0;r<e.length;r++)t+=e[r],r+1<arguments.length&&(t+=String(arguments[r+1]||"").replace(c._entity,c.getEntity));return t}};function d(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function f(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function p(e){return e&&"false"!==e||!1}function h(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function b(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(h(e)||h(t)){if(!h(e)||!h(t))return!1;var i=Array.prototype.slice;return b(i.call(e),i.call(t),r,a)}if(e.constructor!==t.constructor)return!1;var o=Object.keys(e),n=Object.keys(t);if(0===o.length&&0===n.length)return!0;if(o.length!==n.length)return!1;for(var s=r.length;s--;)if(r[s]===e)return a[s]===t;r.push(e),a.push(t),o.sort(),n.sort();for(var u=o.length-1;u>=0;u--)if(o[u]!==n[u])return!1;for(var l=void 0,c=o.length-1;c>=0;c--)if(!b(e[l=o[c]],t[l],r,a))return!1;return r.pop(),a.pop(),!0}function m(e,t){void 0===t&&(t=!0);var r=["a","i","e","o"];t&&r.push("u");var a=e.charAt(0).toLowerCase();return r.includes(a)?"an":"a"}},4780:function(e,t,r){r.r(t),r.d(t,{va_select:function(){return s}});var a=r(7911),i=r(4569),o=(r(5384),r(7508)),n=r(4665),s=function(){function e(e){(0,a.r)(this,e),this.vaKeyDown=(0,a.c)(this,"vaKeyDown",7),this.vaSelect=(0,a.c)(this,"vaSelect",7),this.vaSelectBlur=(0,a.c)(this,"vaSelectBlur",7),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.required=!1,this.label=void 0,this.name=void 0,this.value=void 0,this.error=void 0,this.reflectInputError=!1,this.invalid=!1,this.enableAnalytics=!1,this.hint=void 0,this.messageAriaDescribedby=void 0,this.width=void 0,this.fullWidth=!1,this.showError=!0,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.options=void 0}return e.prototype.connectedCallback=function(){var e=this;n.i.on("languageChanged",(function(){(0,a.f)(e.el)}))},e.prototype.disconnectedCallback=function(){n.i.off("languageChanged")},e.prototype.handleKeyDown=function(){this.vaKeyDown.emit()},e.prototype.handleBlur=function(e){var t=e.target;this.value=t.value,this.vaSelectBlur.emit({value:this.value})},e.prototype.handleChange=function(e){var t=e.target;if(this.value=t.value,this.enableAnalytics){var r={componentName:"va-select",action:"change",details:{label:this.label,selectLabel:this.value}};this.componentLibraryAnalytics.emit(r)}this.vaSelect.emit({value:this.value})},e.prototype.populateOptions=function(){var e=this.value,t=(0,o.a)(this.el,null,"#select-container slot").filter((function(e){var t=e.nodeName.toLowerCase();return"option"===t||"optgroup"===t}));this.options=t.map((function(t){return"optgroup"===t.nodeName.toLowerCase()?(0,a.h)("optgroup",{label:t.label},Array.from(t.children).map((function(t){return(0,a.h)("option",{value:t.value,selected:e===t.value},t.text)}))):"option"===t.nodeName.toLowerCase()?(0,a.h)("option",{value:t.value,selected:e===t.value},t.textContent):void 0}))},e.prototype.handleValueChange=function(){this.populateOptions()},e.prototype.render=function(){var e,t=this,r=this,s=r.error,u=r.reflectInputError,l=r.invalid,c=r.label,d=r.required,f=r.name,p=r.hint,h=r.messageAriaDescribedby,b=r.width,m=r.fullWidth,g=r.showError,v=r.useFormsPattern,y=r.formHeadingLevel,w=r.formHeading,x="input-error-message",k="".concat(h?"input-message":""," ").concat(s?x:""," ").concat(p?"input-hint":"").trim()||null,C=(0,i.c)({"usa-label":!0,"usa-label--error":s}),A=(0,i.c)(((e={"usa-select":!0,"usa-input--error":s||u})["usa-input--".concat(b)]=b,e["va-select--full-width"]=m,e)),S=null;if(["single","multiple"].includes(v)){var z=(0,o.g)(y);S=(0,a.h)(a.F,{key:"10c05d6a54144fe907e25c529991bd73036aba45"},w&&(0,a.h)(z,{key:"a3e06fa9131123f9688624c94031f5a23ecf45c1",id:"form-question",part:"form-header"},w),(0,a.h)("div",{key:"bb86c3f5b0db8bcc1c6b9cf8e60e9b901ebe486e",id:"form-description"},(0,a.h)("slot",{key:"15ddee9d2c5bfc9ec364fc085f714549a7079dce",name:"form-description"})))}return(0,a.h)(a.H,{key:"872f983de6ab5909e0dca6bcd3a1c60b7e566136"},S,c&&(0,a.h)("label",{key:"3683d4f1bddd678a64b84899594ce595ff350d6d",htmlFor:"options",class:C,part:"label"},c,d&&(0,a.h)("span",{key:"861633d37df60fdf014c4e42b1fbefa1be8532c9",class:"usa-label--required"}," ",n.i.t("required"))),p&&(0,a.h)("span",{key:"c1879fe7f6876a4d61c01d0ec0d34fdc50607517",class:"usa-hint",id:"input-hint"},p),(0,a.h)("span",{key:"2f2f39eea70ca1573f532b9e88d4e42dcafb5c5a",id:x,role:"alert"},g&&s&&(0,a.h)(a.F,{key:"e3455c3e6fdb2654d46dc37c2c1cf6447474785d"},(0,a.h)("span",{key:"5b8e927c06154a3f41d14ad4208a0f7f5e5cb5e7",class:"usa-sr-only"},n.i.t("error")),(0,a.h)("span",{key:"d7cc8dca74f59cebceb6b763d64bd2617f3914cb",class:"usa-error-message"},s))),(0,a.h)("div",{key:"2a3d29d233966d1103d156e88d74612e4f1097b6",id:"select-container"},(0,a.h)("slot",{key:"88149f54959d5682ab83c03ff975a5ada09e4d08",onSlotchange:function(){return t.populateOptions()}}),(0,a.h)("select",{key:"480511c1fc9553836a20efd0edfd1ff790f9c555",class:A,"aria-describedby":k,"aria-invalid":l||s?"true":"false",id:"options",name:f,required:d||null,onKeyDown:function(){return t.handleKeyDown()},onChange:function(e){return t.handleChange(e)},onBlur:function(e){return t.handleBlur(e)},part:"select"},(0,a.h)("option",{key:"0",value:"",selected:!0},n.i.t("select")),this.options)),(0,o.i)(h)&&(0,a.h)("span",{key:"eb5767634fce34470f49fb82efb5be4554a0e05a",id:"input-message",class:"usa-sr-only dd-privacy-hidden"},h))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{value:["handleValueChange"]}},enumerable:!1,configurable:!0}),e}();s.style='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-select,.usa-hint,.usa-input{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-select,.usa-input{border-width:1px;border-color:#565c65;border-style:solid;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;color:#1b1b1b;display:block;height:2.5rem;margin-top:0.5rem;max-width:30rem;padding:0.5rem;width:100%}.usa-sr-only{position:absolute;left:-999em;right:auto}.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-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-input:disabled,.usa-input[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#454545}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:0;color:GrayText}.usa-input:disabled:hover,.usa-input:disabled:active,.usa-input:disabled:focus,.usa-input:disabled.usa-focus,.usa-input[aria-disabled=true]:hover,.usa-input[aria-disabled=true]:active,.usa-input[aria-disabled=true]:focus,.usa-input[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-input:disabled,.usa-input[aria-disabled=true]{border:2px solid GrayText}}.usa-input--error{border-width:0.25rem;border-color:#b50909;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-input--success{border-width:0.25rem;border-color:#00a91c;border-style:solid;padding-top:calc(0.5rem - 0.25rem);padding-bottom:calc(0.5rem - 0.25rem)}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-select{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 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:white;background-position:right 0.5rem center;background-size:1.25rem;padding-right:2rem}.usa-select::-ms-expand{display:none}.usa-select:-webkit-autofill{-webkit-appearance:menulist;appearance:menulist}.usa-select:-moz-focusring{color:transparent;text-shadow:0 0 0 black}.usa-select[multiple]{height:auto;background-image:none;padding-right:0}.usa-select option{overflow:hidden;text-overflow:ellipsis}.usa-select:disabled,.usa-select[aria-disabled=true]{color:#454545;background-color:#c9c9c9;cursor:not-allowed;opacity:1}.usa-select:disabled:hover,.usa-select:disabled:active,.usa-select:disabled:focus,.usa-select:disabled.usa-focus,.usa-select[aria-disabled=true]:hover,.usa-select[aria-disabled=true]:active,.usa-select[aria-disabled=true]:focus,.usa-select[aria-disabled=true].usa-focus{color:#454545;background-color:#c9c9c9}@media (forced-colors: active){.usa-select:disabled,.usa-select[aria-disabled=true]{border:0;color:GrayText}.usa-select:disabled:hover,.usa-select:disabled:active,.usa-select:disabled:focus,.usa-select:disabled.usa-focus,.usa-select[aria-disabled=true]:hover,.usa-select[aria-disabled=true]:active,.usa-select[aria-disabled=true]:focus,.usa-select[aria-disabled=true].usa-focus{color:GrayText}}@media (forced-colors: active){.usa-select:disabled,.usa-select[aria-disabled=true]{border:2px solid GrayText}}@media (forced-colors: active){.usa-select{-webkit-appearance:listbox;-moz-appearance:listbox;appearance:listbox;background-image:none;padding-right:0}}:host .usa-input--2xs{max-width:5ex}:host .usa-input--xs{max-width:9ex}:host .usa-input--sm,:host .usa-input--small{max-width:13ex}:host .usa-input--md,:host .usa-input--medium{max-width:20ex}:host .usa-input--lg{max-width:30ex}:host .usa-input--xl{max-width:40ex}:host .usa-input--2xl{max-width:50ex}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;font-family:var(--font-source-sans);color:var(--vads-color-base)}:host([inert]) select{border:0;background:none}.usa-select{margin-bottom:0}::slotted(option),::slotted(optgroup){display:none}.va-select--full-width{max-width:100%;width:100%}'}}]);
|
package/dist/5341.app.bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 5341.app.bundle.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4569,5341,7508],{4569:function(t,e,a){a.r(e),a.d(e,{c:function(){return r}});var o,n={exports:{}};o=n,function(){var t={}.hasOwnProperty;function e(){for(var a=[],o=0;o<arguments.length;o++){var n=arguments[o];if(n){var r=typeof n;if("string"===r||"number"===r)a.push(n);else if(Array.isArray(n)){if(n.length){var i=e.apply(null,n);i&&a.push(i)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var s in n)t.call(n,s)&&n[s]&&a.push(s);else a.push(n.toString())}}return a.join(" ")}o.exports?(e.default=e,o.exports=e):window.classNames=e}();var r=n.exports},7508:function(t,e,a){function o(t){return!Number.isNaN(parseFloat(t))}function n(t,e,a){void 0===a&&(a="slot");var o=t.shadowRoot.querySelector(a).assignedNodes();return null!==e?Array.from(o).filter((function(t){return t.nodeName.toLowerCase()===e})):Array.from(o)}function r(t){return 1===t?"":"s"}function i(t,e){if(void 0===t||""===t)return"".concat(e," character").concat(r(e)," allowed");var a;if(t.length<=e){var o=e-t.length;a="".concat(o," character").concat(r(o)," left")}else o=t.length-e,a="".concat(o," character").concat(r(o)," over limit");return a}function s(t,e){return Array.from({length:e-t+1},(function(e,a){return t+a}))}a.r(e),a.d(e,{S:function(){return l},a:function(){return n},b:function(){return o},c:function(){return b},d:function(){return p},e:function(){return i},f:function(){return h},g:function(){return u},i:function(){return g},m:function(){return s},s:function(){return d}}),a(7911);var c=function(t){return t&&"object"==typeof t&&1===t.nodeType};function d(t,e){var a=function(t,e){if("string"!=typeof t)return[];if(!e||!c(e))return[];var a=e.shadowRoot.querySelectorAll(t);return Array.from(a)}(t,e);return"string"!=typeof t||c(e)&&e.matches(t)&&a.push(e),a}var l={_entity:/[&<>"'/]/g,_entities:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},getEntity:function(t){return l._entities[t]},escapeHTML:function(t){for(var e="",a=0;a<t.length;a++)e+=t[a],a+1<arguments.length&&(e+=String(arguments[a+1]||"").replace(l._entity,l.getEntity));return e}};function u(t){var e;return(e="string"==typeof t?parseInt(t,10):Math.floor(t))>=1&&e<=6?"h".concat(e):null}function h(t){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(t.tagName)}function g(t){return t&&"false"!==t||!1}function v(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function p(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(t===e)return!0;if("function"==typeof t||"function"==typeof e)return!0;if("object"!=typeof t||"object"!=typeof e)return!1;if(null===t||null===e)return!1;if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(t instanceof RegExp&&e instanceof RegExp)return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(v(t)||v(e)){if(!v(t)||!v(e))return!1;var n=Array.prototype.slice;return p(n.call(t),n.call(e),a,o)}if(t.constructor!==e.constructor)return!1;var r=Object.keys(t),i=Object.keys(e);if(0===r.length&&0===i.length)return!0;if(r.length!==i.length)return!1;for(var s=a.length;s--;)if(a[s]===t)return o[s]===e;a.push(t),o.push(e),r.sort(),i.sort();for(var c=r.length-1;c>=0;c--)if(r[c]!==i[c])return!1;for(var d=void 0,l=r.length-1;l>=0;l--)if(!p(t[d=r[l]],e[d],a,o))return!1;return a.pop(),o.pop(),!0}function b(t,e){void 0===e&&(e=!0);var a=["a","i","e","o"];e&&a.push("u");var o=t.charAt(0).toLowerCase();return a.includes(o)?"an":"a"}},5341:function(t,e,a){a.r(e),a.d(e,{va_accordion:function(){return s},va_accordion_item:function(){return c}});var o=a(7911),n=a(7508),r=(a(7470),a(4569)),i=a(3244),s=function(){function t(t){var e=this;(0,o.r)(this,t),this.componentLibraryAnalytics=(0,o.c)(this,"component-library-analytics",7),this.accordionExpandCollapseAll=(0,o.c)(this,"accordionExpandCollapseAll",7),this.expandCollapseAll=function(t){e.expanded=t;var a=t?"allOpen":"allClosed";e.accordionExpandCollapseAll.emit({status:a}),(0,n.a)(e.el,"va-accordion-item").forEach((function(e){e.setAttribute("open","".concat(t))}))},this.expanded=!1,this.openSingle=!1,this.disableAnalytics=!1,this.sectionHeading=null}return t.prototype.itemToggledHandler=function(t){var e,a=t.target.closest("va-accordion-item");if(this.el===a.parentElement){var o,r,i=a.querySelector('[slot="headline"]');i?(o=null==i?void 0:i.innerHTML,r=parseInt(null===(e=null==i?void 0:i.tagName)||void 0===e?void 0:e.toLowerCase().split("")[1])):(o=a.header,r=a.level),this.openSingle&&(0,n.a)(this.el,"va-accordion-item").filter((function(t){return t!==a})).forEach((function(t){return t.setAttribute("open","false")}));var s="false"!==a.getAttribute("open")&&a.hasAttribute("open");if(!this.disableAnalytics){var c={componentName:"va-accordion",action:s?"collapse":"expand",details:{header:o||a.header,subheader:a.subheader,level:r||a.level,sectionHeading:this.sectionHeading}};this.componentLibraryAnalytics.emit(c)}a.setAttribute("open",s?"false":"true"),this.isScrolledIntoView(a)||a.scrollIntoView(),this.accordionsOpened()}},t.prototype.accordionsOpened=function(t){void 0===t&&(t="every");var e=function(t,e,a){if(a||2===arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}([],this.el.children,!0).filter((function(t){return"va-accordion-item"===t.tagName.toLowerCase()})).map((function(t){return t.open}));return e[t]((function(t){return!0===t}))?this.expanded=!0:e[t]((function(t){return!1===t}))?this.expanded=!1:void 0},t.prototype.isScrolledIntoView=function(t){var e=null==t?void 0:t.getBoundingClientRect().top;return!(!e&&0!==e)&&e>=0&&e<=window.innerHeight},t.prototype.connectedCallback=function(){var t=this;i.i.on("languageChanged",(function(){(0,o.f)(t.el)}))},t.prototype.disconnectedCallback=function(){i.i.off("languageChanged")},t.prototype.componentWillLoad=function(){this.accordionsOpened("some")},t.prototype.render=function(){var t=this,e=this.openSingle,a=this.el.classList.contains("va-search-filter__accordion"),n=(0,r.c)({"usa-accordion":!0});return(0,o.h)(o.H,{key:"47c72860448fedd40a07b75261ea1df1c47dd705"},(0,o.h)("div",{key:"349cf9e3590c784e06e108bf307a72e7acbc1df4",class:n,ref:function(e){return t.accordionContainer=e}},e||a?null:(0,o.h)("button",{"aria-expanded":"".concat(this.expanded),class:"va-accordion__button","data-testid":"expand-all-accordions",ref:function(e){return t.expandCollapseBtn=e},onClick:function(){return t.expandCollapseAll(!t.expanded)},"aria-label":this.expanded?i.i.t("collapse-all-aria-label"):i.i.t("expand-all-aria-label")},this.expanded?"".concat(i.i.t("collapse-all")," -"):"".concat(i.i.t("expand-all")," +")),(0,o.h)("slot",{key:"5da19cc7907e92204649762713ad6a18e80da710"})))},Object.defineProperty(t.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),t}();s.style='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-accordion{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;color:#1b1b1b;margin:0;padding:0;width:100%;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.usa-accordion>li{margin-bottom:0;max-width:unset}.usa-accordion>ul li ul{list-style:disc}.usa-accordion>ul li ul>li>ul{list-style:circle}.usa-accordion>ul li ul>li>ul>li>ul{list-style:square}.usa-accordion+.usa-accordion,.usa-accordion+.usa-accordion--bordered{margin-top:0.5rem}.usa-accordion--bordered .usa-accordion__content{border-bottom:0.25rem solid #f0f0f0;border-left:0.25rem solid #f0f0f0;border-right:0.25rem solid #f0f0f0;padding-bottom:1rem}.usa-accordion--bordered .usa-accordion__heading{margin-bottom:0}.usa-accordion__heading,.usa-prose .usa-accordion__heading{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:0.9;margin:0}.usa-accordion__heading:not(:first-child),.usa-prose .usa-accordion__heading:not(:first-child){margin-top:0.5rem}.usa-accordion__content{color:#1b1b1b;background-color:white;margin-top:0;overflow:auto;padding:1rem 1.25rem calc(1rem - 0.25rem) 1.25rem}.usa-accordion__content>*:first-child{margin-top:0}.usa-accordion__content>*:last-child{margin-bottom:0}.usa-accordion__button{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;color:#1b1b1b;background-color:#f0f0f0;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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-position:right 1.25rem center;background-size:1.5rem;cursor:pointer;display:inline-block;font-weight:700;margin:0;padding:1rem 3.5rem 1rem 1.25rem;text-decoration:none;width:100%}.usa-accordion__button:visited{color:#54278f}.usa-accordion__button:hover{color:#1a4480}.usa-accordion__button:active{color:#162e51}.usa-accordion__button:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-accordion__button:hover,.usa-accordion__button.usa-button--hover,.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button:disabled.usa-button--hover,.usa-accordion__button[aria-disabled=true].usa-button--hover,.usa-accordion__button:active,.usa-accordion__button.usa-button--active,.usa-accordion__button:disabled:active,.usa-accordion__button[aria-disabled=true]:active,.usa-accordion__button:disabled.usa-button--active,.usa-accordion__button[aria-disabled=true].usa-button--active,.usa-accordion__button:disabled:focus,.usa-accordion__button[aria-disabled=true]:focus,.usa-accordion__button:disabled.usa-focus,.usa-accordion__button[aria-disabled=true].usa-focus,.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-accordion__button.usa-button--hover{color:#1a4480}.usa-accordion__button.usa-button--active{color:#162e51}.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button[aria-disabled=true]:focus{color:GrayText}}.usa-accordion__button:hover{color:#1b1b1b;background-color:#dfe1e2;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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;text-decoration:none}@media (forced-colors: active){.usa-accordion__button{border:2px solid transparent;position:relative}.usa-accordion__button::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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;height:100%;position:absolute;right:1.25rem;top:0;content:""}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-accordion__button::before{background:none;background-color:ButtonText;-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%22M19 13H5v-2h14v2z%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%22M19 13H5v-2h14v2z%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%22M19 13H5v-2h14v2z%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%22M19 13H5v-2h14v2z%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:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}}.usa-accordion__button[aria-expanded=false]{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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-size:1.5rem}.usa-accordion__button[aria-expanded=false]:hover{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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat}@media (forced-colors: active){.usa-accordion__button[aria-expanded=false]::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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;height:100%;position:absolute;right:1.25rem;top:0}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-accordion__button[aria-expanded=false]::before{background:none;background-color:ButtonText;-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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%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:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}}button.va-accordion__button{border:none;color:var(--vads-color-link);background:transparent;padding:0.625rem;cursor:pointer;font-family:inherit;font-weight:bold;float:right}@media print{button.va-accordion__button{display:none}}';var c=function(){function t(t){(0,o.r)(this,t),this.accordionItemToggled=(0,o.c)(this,"accordionItemToggled",7),this.expandButton=null,this.header=void 0,this.headerSrOnly=void 0,this.subheader=null,this.open=!1,this.level=2,this.bordered=!1,this.slotHeader=null,this.slotTag=null}return t.prototype.toggleOpen=function(t){this.accordionItemToggled.emit(t)},t.prototype.populateStateValues=function(){var t=this;(0,n.a)(this.el,null).forEach((function(e){t.slotHeader=e.innerHTML,t.slotTag=e.tagName.toLowerCase()}))},t.prototype.componentDidLoad=function(){this.el.id&&this.el.id===window.location.hash.slice(1)&&this.expandButton&&(this.open=!0,this.el.setAttribute("open","true"),this.el.scrollIntoView())},t.prototype.render=function(){var t=this,e=this,a=e.bordered,n=e.header,i=e.subheader,s=e.level,c=e.open,d=e.headerSrOnly,l=(0,r.c)({"usa-accordion--bordered":a});return(0,o.h)(o.H,null,(0,o.h)("div",{class:l},(0,o.h)((function(){var e=t.el.querySelector('[slot="headline"]'),a=null==e?void 0:e.innerHTML,r=e&&e.tagName.includes("H")?e.tagName.toLowerCase():"h".concat(s);return(0,o.h)(r,{class:"usa-accordion__heading"},(0,o.h)("button",{type:"button",class:"usa-accordion__button","aria-expanded":c?"true":"false","aria-controls":"content",onClick:t.toggleOpen.bind(t),ref:function(e){t.expandButton=e},part:"accordion-header"},(0,o.h)("span",{class:"va-accordion__header"},(0,o.h)("slot",{name:"icon"}),t.slotHeader||n||a,d&&(0,o.h)("span",{class:"usa-sr-only"}," ",d)),t.subheader&&(0,o.h)("span",{class:"va-accordion__subheader"},(0,o.h)("slot",{name:"subheader-icon"}),i)))}),null),(0,o.h)("slot",{name:"headline",onSlotchange:function(){return t.populateStateValues()}}),(0,o.h)("div",{id:"content",class:"usa-accordion__content usa-prose",hidden:!c,part:"accordion-content"},(0,o.h)("slot",null))))},Object.defineProperty(t.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),t}();c.style='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-sr-only{position:absolute;left:-999em;right:auto}.usa-accordion{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;color:#1b1b1b;margin:0;padding:0;width:100%;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.usa-accordion>li{margin-bottom:0;max-width:unset}.usa-accordion>ul li ul{list-style:disc}.usa-accordion>ul li ul>li>ul{list-style:circle}.usa-accordion>ul li ul>li>ul>li>ul{list-style:square}.usa-accordion+.usa-accordion,.usa-accordion+.usa-accordion--bordered{margin-top:0.5rem}.usa-accordion--bordered .usa-accordion__content{border-bottom:0.25rem solid #f0f0f0;border-left:0.25rem solid #f0f0f0;border-right:0.25rem solid #f0f0f0;padding-bottom:1rem}.usa-accordion--bordered .usa-accordion__heading{margin-bottom:0}.usa-accordion__heading,.usa-prose .usa-accordion__heading{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:0.9;margin:0}.usa-accordion__heading:not(:first-child),.usa-prose .usa-accordion__heading:not(:first-child){margin-top:0.5rem}.usa-accordion__content{color:#1b1b1b;background-color:white;margin-top:0;overflow:auto;padding:1rem 1.25rem calc(1rem - 0.25rem) 1.25rem}.usa-accordion__content>*:first-child{margin-top:0}.usa-accordion__content>*:last-child{margin-bottom:0}.usa-accordion__button{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;color:#1b1b1b;background-color:#f0f0f0;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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-position:right 1.25rem center;background-size:1.5rem;cursor:pointer;display:inline-block;font-weight:700;margin:0;padding:1rem 3.5rem 1rem 1.25rem;text-decoration:none;width:100%}.usa-accordion__button:visited{color:#54278f}.usa-accordion__button:hover{color:#1a4480}.usa-accordion__button:active{color:#162e51}.usa-accordion__button:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-accordion__button:hover,.usa-accordion__button.usa-button--hover,.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button:disabled.usa-button--hover,.usa-accordion__button[aria-disabled=true].usa-button--hover,.usa-accordion__button:active,.usa-accordion__button.usa-button--active,.usa-accordion__button:disabled:active,.usa-accordion__button[aria-disabled=true]:active,.usa-accordion__button:disabled.usa-button--active,.usa-accordion__button[aria-disabled=true].usa-button--active,.usa-accordion__button:disabled:focus,.usa-accordion__button[aria-disabled=true]:focus,.usa-accordion__button:disabled.usa-focus,.usa-accordion__button[aria-disabled=true].usa-focus,.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-accordion__button.usa-button--hover{color:#1a4480}.usa-accordion__button.usa-button--active{color:#162e51}.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button[aria-disabled=true]:focus{color:GrayText}}.usa-accordion__button:hover{color:#1b1b1b;background-color:#dfe1e2;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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;text-decoration:none}@media (forced-colors: active){.usa-accordion__button{border:2px solid transparent;position:relative}.usa-accordion__button::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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;height:100%;position:absolute;right:1.25rem;top:0;content:""}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-accordion__button::before{background:none;background-color:ButtonText;-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%22M19 13H5v-2h14v2z%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%22M19 13H5v-2h14v2z%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%22M19 13H5v-2h14v2z%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%22M19 13H5v-2h14v2z%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:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}}.usa-accordion__button[aria-expanded=false]{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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-size:1.5rem}.usa-accordion__button[aria-expanded=false]:hover{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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat}@media (forced-colors: active){.usa-accordion__button[aria-expanded=false]::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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;height:100%;position:absolute;right:1.25rem;top:0}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-accordion__button[aria-expanded=false]::before{background:none;background-color:ButtonText;-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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%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:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}}:host{display:block}:host(:not(:last-child)){margin-bottom:0.5rem}:host(:last-child){margin-bottom:0.3125rem}button{font:inherit;line-height:1.15}::slotted([slot=headline]){display:none}::slotted([slot=icon]),::slotted([slot=subheader-icon]){width:0.625rem;margin-right:0.938rem}::slotted([slot=subheader-icon]){margin-top:0.2rem}.va-accordion__header,.va-accordion__subheader{display:block}.va-accordion__header ::slotted([slot=icon]),.va-accordion__subheader ::slotted([slot=subheader-icon]){margin-right:15px;width:inherit;vertical-align:text-top}.va-accordion__subheader{font-weight:400;font-size:16px;line-height:26px;margin-top:2px}.usa-prose>::slotted(p){line-height:1.5;max-width:64ex}:host(:not([open])) #content,:host([open=false]) #content{display:none}@media print{:host(:not([open])) #content,:host([open=false]) #content{display:block}}'}}]);
|
|
2
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4569,5341,7508],{4569:function(t,e,a){a.r(e),a.d(e,{c:function(){return r}});var o,n={exports:{}};o=n,function(){var t={}.hasOwnProperty;function e(){for(var a=[],o=0;o<arguments.length;o++){var n=arguments[o];if(n){var r=typeof n;if("string"===r||"number"===r)a.push(n);else if(Array.isArray(n)){if(n.length){var i=e.apply(null,n);i&&a.push(i)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var s in n)t.call(n,s)&&n[s]&&a.push(s);else a.push(n.toString())}}return a.join(" ")}o.exports?(e.default=e,o.exports=e):window.classNames=e}();var r=n.exports},7508:function(t,e,a){function o(t){return!Number.isNaN(parseFloat(t))}function n(t,e,a){void 0===a&&(a="slot");var o=t.shadowRoot.querySelector(a).assignedNodes();return null!==e?Array.from(o).filter((function(t){return t.nodeName.toLowerCase()===e})):Array.from(o)}function r(t){return 1===t?"":"s"}function i(t,e){if(void 0===t||""===t)return"".concat(e," character").concat(r(e)," allowed");var a;if(t.length<=e){var o=e-t.length;a="".concat(o," character").concat(r(o)," left")}else o=t.length-e,a="".concat(o," character").concat(r(o)," over limit");return a}function s(t,e){return Array.from({length:e-t+1},(function(e,a){return t+a}))}a.r(e),a.d(e,{S:function(){return l},a:function(){return n},b:function(){return o},c:function(){return b},d:function(){return p},e:function(){return i},f:function(){return h},g:function(){return u},i:function(){return g},m:function(){return s},s:function(){return d}}),a(7911);var c=function(t){return t&&"object"==typeof t&&1===t.nodeType};function d(t,e){var a=function(t,e){if("string"!=typeof t)return[];if(!e||!c(e))return[];var a=e.shadowRoot.querySelectorAll(t);return Array.from(a)}(t,e);return"string"!=typeof t||c(e)&&e.matches(t)&&a.push(e),a}var l={_entity:/[&<>"'/]/g,_entities:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},getEntity:function(t){return l._entities[t]},escapeHTML:function(t){for(var e="",a=0;a<t.length;a++)e+=t[a],a+1<arguments.length&&(e+=String(arguments[a+1]||"").replace(l._entity,l.getEntity));return e}};function u(t){var e;return(e="string"==typeof t?parseInt(t,10):Math.floor(t))>=1&&e<=6?"h".concat(e):null}function h(t){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(t.tagName)}function g(t){return t&&"false"!==t||!1}function v(t){return"[object Arguments]"===Object.prototype.toString.call(t)}function p(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(t===e)return!0;if("function"==typeof t||"function"==typeof e)return!0;if("object"!=typeof t||"object"!=typeof e)return!1;if(null===t||null===e)return!1;if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(t instanceof RegExp&&e instanceof RegExp)return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(v(t)||v(e)){if(!v(t)||!v(e))return!1;var n=Array.prototype.slice;return p(n.call(t),n.call(e),a,o)}if(t.constructor!==e.constructor)return!1;var r=Object.keys(t),i=Object.keys(e);if(0===r.length&&0===i.length)return!0;if(r.length!==i.length)return!1;for(var s=a.length;s--;)if(a[s]===t)return o[s]===e;a.push(t),o.push(e),r.sort(),i.sort();for(var c=r.length-1;c>=0;c--)if(r[c]!==i[c])return!1;for(var d=void 0,l=r.length-1;l>=0;l--)if(!p(t[d=r[l]],e[d],a,o))return!1;return a.pop(),o.pop(),!0}function b(t,e){void 0===e&&(e=!0);var a=["a","i","e","o"];e&&a.push("u");var o=t.charAt(0).toLowerCase();return a.includes(o)?"an":"a"}},5341:function(t,e,a){a.r(e),a.d(e,{va_accordion:function(){return s},va_accordion_item:function(){return c}});var o=a(7911),n=a(7508),r=(a(5384),a(4569)),i=a(4665),s=function(){function t(t){var e=this;(0,o.r)(this,t),this.componentLibraryAnalytics=(0,o.c)(this,"component-library-analytics",7),this.accordionExpandCollapseAll=(0,o.c)(this,"accordionExpandCollapseAll",7),this.expandCollapseAll=function(t){e.expanded=t;var a=t?"allOpen":"allClosed";e.accordionExpandCollapseAll.emit({status:a}),(0,n.a)(e.el,"va-accordion-item").forEach((function(e){e.setAttribute("open","".concat(t))}))},this.expanded=!1,this.openSingle=!1,this.disableAnalytics=!1,this.sectionHeading=null}return t.prototype.itemToggledHandler=function(t){var e,a=t.target.closest("va-accordion-item");if(this.el===a.parentElement){var o,r,i=a.querySelector('[slot="headline"]');i?(o=null==i?void 0:i.innerHTML,r=parseInt(null===(e=null==i?void 0:i.tagName)||void 0===e?void 0:e.toLowerCase().split("")[1])):(o=a.header,r=a.level),this.openSingle&&(0,n.a)(this.el,"va-accordion-item").filter((function(t){return t!==a})).forEach((function(t){return t.setAttribute("open","false")}));var s="false"!==a.getAttribute("open")&&a.hasAttribute("open");if(!this.disableAnalytics){var c={componentName:"va-accordion",action:s?"collapse":"expand",details:{header:o||a.header,subheader:a.subheader,level:r||a.level,sectionHeading:this.sectionHeading}};this.componentLibraryAnalytics.emit(c)}a.setAttribute("open",s?"false":"true"),this.isScrolledIntoView(a)||a.scrollIntoView(),this.accordionsOpened()}},t.prototype.accordionsOpened=function(t){void 0===t&&(t="every");var e=function(t,e,a){if(a||2===arguments.length)for(var o,n=0,r=e.length;n<r;n++)!o&&n in e||(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))}([],this.el.children,!0).filter((function(t){return"va-accordion-item"===t.tagName.toLowerCase()})).map((function(t){return t.open}));return e[t]((function(t){return!0===t}))?this.expanded=!0:e[t]((function(t){return!1===t}))?this.expanded=!1:void 0},t.prototype.isScrolledIntoView=function(t){var e=null==t?void 0:t.getBoundingClientRect().top;return!(!e&&0!==e)&&e>=0&&e<=window.innerHeight},t.prototype.connectedCallback=function(){var t=this;i.i.on("languageChanged",(function(){(0,o.f)(t.el)}))},t.prototype.disconnectedCallback=function(){i.i.off("languageChanged")},t.prototype.componentWillLoad=function(){this.accordionsOpened("some")},t.prototype.render=function(){var t=this,e=this.openSingle,a=this.el.classList.contains("va-search-filter__accordion"),n=(0,r.c)({"usa-accordion":!0});return(0,o.h)(o.H,{key:"47c72860448fedd40a07b75261ea1df1c47dd705"},(0,o.h)("div",{key:"349cf9e3590c784e06e108bf307a72e7acbc1df4",class:n,ref:function(e){return t.accordionContainer=e}},e||a?null:(0,o.h)("button",{"aria-expanded":"".concat(this.expanded),class:"va-accordion__button","data-testid":"expand-all-accordions",ref:function(e){return t.expandCollapseBtn=e},onClick:function(){return t.expandCollapseAll(!t.expanded)},"aria-label":this.expanded?i.i.t("collapse-all-aria-label"):i.i.t("expand-all-aria-label")},this.expanded?"".concat(i.i.t("collapse-all")," -"):"".concat(i.i.t("expand-all")," +")),(0,o.h)("slot",{key:"5da19cc7907e92204649762713ad6a18e80da710"})))},Object.defineProperty(t.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),t}();s.style='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-accordion{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;color:#1b1b1b;margin:0;padding:0;width:100%;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.usa-accordion>li{margin-bottom:0;max-width:unset}.usa-accordion>ul li ul{list-style:disc}.usa-accordion>ul li ul>li>ul{list-style:circle}.usa-accordion>ul li ul>li>ul>li>ul{list-style:square}.usa-accordion+.usa-accordion,.usa-accordion+.usa-accordion--bordered{margin-top:0.5rem}.usa-accordion--bordered .usa-accordion__content{border-bottom:0.25rem solid #f0f0f0;border-left:0.25rem solid #f0f0f0;border-right:0.25rem solid #f0f0f0;padding-bottom:1rem}.usa-accordion--bordered .usa-accordion__heading{margin-bottom:0}.usa-accordion__heading,.usa-prose .usa-accordion__heading{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:0.9;margin:0}.usa-accordion__heading:not(:first-child),.usa-prose .usa-accordion__heading:not(:first-child){margin-top:0.5rem}.usa-accordion__content{color:#1b1b1b;background-color:white;margin-top:0;overflow:auto;padding:1rem 1.25rem calc(1rem - 0.25rem) 1.25rem}.usa-accordion__content>*:first-child{margin-top:0}.usa-accordion__content>*:last-child{margin-bottom:0}.usa-accordion__button{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;color:#1b1b1b;background-color:#f0f0f0;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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-position:right 1.25rem center;background-size:1.5rem;cursor:pointer;display:inline-block;font-weight:700;margin:0;padding:1rem 3.5rem 1rem 1.25rem;text-decoration:none;width:100%}.usa-accordion__button:visited{color:#54278f}.usa-accordion__button:hover{color:#1a4480}.usa-accordion__button:active{color:#162e51}.usa-accordion__button:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-accordion__button:hover,.usa-accordion__button.usa-button--hover,.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button:disabled.usa-button--hover,.usa-accordion__button[aria-disabled=true].usa-button--hover,.usa-accordion__button:active,.usa-accordion__button.usa-button--active,.usa-accordion__button:disabled:active,.usa-accordion__button[aria-disabled=true]:active,.usa-accordion__button:disabled.usa-button--active,.usa-accordion__button[aria-disabled=true].usa-button--active,.usa-accordion__button:disabled:focus,.usa-accordion__button[aria-disabled=true]:focus,.usa-accordion__button:disabled.usa-focus,.usa-accordion__button[aria-disabled=true].usa-focus,.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-accordion__button.usa-button--hover{color:#1a4480}.usa-accordion__button.usa-button--active{color:#162e51}.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button[aria-disabled=true]:focus{color:GrayText}}.usa-accordion__button:hover{color:#1b1b1b;background-color:#dfe1e2;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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;text-decoration:none}@media (forced-colors: active){.usa-accordion__button{border:2px solid transparent;position:relative}.usa-accordion__button::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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;height:100%;position:absolute;right:1.25rem;top:0;content:""}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-accordion__button::before{background:none;background-color:ButtonText;-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%22M19 13H5v-2h14v2z%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%22M19 13H5v-2h14v2z%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%22M19 13H5v-2h14v2z%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%22M19 13H5v-2h14v2z%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:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}}.usa-accordion__button[aria-expanded=false]{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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-size:1.5rem}.usa-accordion__button[aria-expanded=false]:hover{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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat}@media (forced-colors: active){.usa-accordion__button[aria-expanded=false]::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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;height:100%;position:absolute;right:1.25rem;top:0}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-accordion__button[aria-expanded=false]::before{background:none;background-color:ButtonText;-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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%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:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}}button.va-accordion__button{border:none;color:var(--vads-color-link);background:transparent;padding:0.625rem;cursor:pointer;font-family:inherit;font-weight:bold;float:right}@media print{button.va-accordion__button{display:none}}';var c=function(){function t(t){(0,o.r)(this,t),this.accordionItemToggled=(0,o.c)(this,"accordionItemToggled",7),this.expandButton=null,this.header=void 0,this.headerSrOnly=void 0,this.subheader=null,this.open=!1,this.level=2,this.bordered=!1,this.slotHeader=null,this.slotTag=null}return t.prototype.toggleOpen=function(t){this.accordionItemToggled.emit(t)},t.prototype.populateStateValues=function(){var t=this;(0,n.a)(this.el,null).forEach((function(e){t.slotHeader=e.innerHTML,t.slotTag=e.tagName.toLowerCase()}))},t.prototype.componentDidLoad=function(){this.el.id&&this.el.id===window.location.hash.slice(1)&&this.expandButton&&(this.open=!0,this.el.setAttribute("open","true"),this.el.scrollIntoView())},t.prototype.render=function(){var t=this,e=this,a=e.bordered,n=e.header,i=e.subheader,s=e.level,c=e.open,d=e.headerSrOnly,l=(0,r.c)({"usa-accordion--bordered":a});return(0,o.h)(o.H,null,(0,o.h)("div",{class:l},(0,o.h)((function(){var e=t.el.querySelector('[slot="headline"]'),a=null==e?void 0:e.innerHTML,r=e&&e.tagName.includes("H")?e.tagName.toLowerCase():"h".concat(s);return(0,o.h)(r,{class:"usa-accordion__heading"},(0,o.h)("button",{type:"button",class:"usa-accordion__button","aria-expanded":c?"true":"false","aria-controls":"content",onClick:t.toggleOpen.bind(t),ref:function(e){t.expandButton=e},part:"accordion-header"},(0,o.h)("span",{class:"va-accordion__header"},(0,o.h)("slot",{name:"icon"}),t.slotHeader||n||a,d&&(0,o.h)("span",{class:"usa-sr-only"}," ",d)),t.subheader&&(0,o.h)("span",{class:"va-accordion__subheader"},(0,o.h)("slot",{name:"subheader-icon"}),i)))}),null),(0,o.h)("slot",{name:"headline",onSlotchange:function(){return t.populateStateValues()}}),(0,o.h)("div",{id:"content",class:"usa-accordion__content usa-prose",hidden:!c,part:"accordion-content"},(0,o.h)("slot",null))))},Object.defineProperty(t.prototype,"el",{get:function(){return(0,o.g)(this)},enumerable:!1,configurable:!0}),t}();c.style='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-sr-only{position:absolute;left:-999em;right:auto}.usa-accordion{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;color:#1b1b1b;margin:0;padding:0;width:100%;font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.5}.usa-accordion>li{margin-bottom:0;max-width:unset}.usa-accordion>ul li ul{list-style:disc}.usa-accordion>ul li ul>li>ul{list-style:circle}.usa-accordion>ul li ul>li>ul>li>ul{list-style:square}.usa-accordion+.usa-accordion,.usa-accordion+.usa-accordion--bordered{margin-top:0.5rem}.usa-accordion--bordered .usa-accordion__content{border-bottom:0.25rem solid #f0f0f0;border-left:0.25rem solid #f0f0f0;border-right:0.25rem solid #f0f0f0;padding-bottom:1rem}.usa-accordion--bordered .usa-accordion__heading{margin-bottom:0}.usa-accordion__heading,.usa-prose .usa-accordion__heading{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:0.9;margin:0}.usa-accordion__heading:not(:first-child),.usa-prose .usa-accordion__heading:not(:first-child){margin-top:0.5rem}.usa-accordion__content{color:#1b1b1b;background-color:white;margin-top:0;overflow:auto;padding:1rem 1.25rem calc(1rem - 0.25rem) 1.25rem}.usa-accordion__content>*:first-child{margin-top:0}.usa-accordion__content>*:last-child{margin-bottom:0}.usa-accordion__button{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;color:#1b1b1b;background-color:#f0f0f0;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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-position:right 1.25rem center;background-size:1.5rem;cursor:pointer;display:inline-block;font-weight:700;margin:0;padding:1rem 3.5rem 1rem 1.25rem;text-decoration:none;width:100%}.usa-accordion__button:visited{color:#54278f}.usa-accordion__button:hover{color:#1a4480}.usa-accordion__button:active{color:#162e51}.usa-accordion__button:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-accordion__button:hover,.usa-accordion__button.usa-button--hover,.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button:disabled.usa-button--hover,.usa-accordion__button[aria-disabled=true].usa-button--hover,.usa-accordion__button:active,.usa-accordion__button.usa-button--active,.usa-accordion__button:disabled:active,.usa-accordion__button[aria-disabled=true]:active,.usa-accordion__button:disabled.usa-button--active,.usa-accordion__button[aria-disabled=true].usa-button--active,.usa-accordion__button:disabled:focus,.usa-accordion__button[aria-disabled=true]:focus,.usa-accordion__button:disabled.usa-focus,.usa-accordion__button[aria-disabled=true].usa-focus,.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-accordion__button.usa-button--hover{color:#1a4480}.usa-accordion__button.usa-button--active{color:#162e51}.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-accordion__button:disabled,.usa-accordion__button[aria-disabled=true],.usa-accordion__button:disabled:hover,.usa-accordion__button[aria-disabled=true]:hover,.usa-accordion__button[aria-disabled=true]:focus{color:GrayText}}.usa-accordion__button:hover{color:#1b1b1b;background-color:#dfe1e2;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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;text-decoration:none}@media (forced-colors: active){.usa-accordion__button{border:2px solid transparent;position:relative}.usa-accordion__button::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%22M19 13H5v-2h14v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;height:100%;position:absolute;right:1.25rem;top:0;content:""}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-accordion__button::before{background:none;background-color:ButtonText;-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%22M19 13H5v-2h14v2z%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%22M19 13H5v-2h14v2z%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%22M19 13H5v-2h14v2z%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%22M19 13H5v-2h14v2z%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:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}}.usa-accordion__button[aria-expanded=false]{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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat;background-size:1.5rem}.usa-accordion__button[aria-expanded=false]:hover{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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), -webkit-gradient(linear, left top, left bottom, from(transparent), to(transparent));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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E"), linear-gradient(transparent, transparent);background-repeat:no-repeat}@media (forced-colors: active){.usa-accordion__button[aria-expanded=false]::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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-position:center center;background-size:1.5rem 1.5rem;display:inline-block;height:1.5rem;width:1.5rem;height:100%;position:absolute;right:1.25rem;top:0}@supports ((-webkit-mask: url("")) or (mask: url(""))){.usa-accordion__button[aria-expanded=false]::before{background:none;background-color:ButtonText;-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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%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%22M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z%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:1.5rem 1.5rem;mask-size:1.5rem 1.5rem}}}:host{display:block}:host(:not(:last-child)){margin-bottom:0.5rem}:host(:last-child){margin-bottom:0.3125rem}button{font:inherit;line-height:1.15}::slotted([slot=headline]){display:none}::slotted([slot=icon]),::slotted([slot=subheader-icon]){width:0.625rem;margin-right:0.938rem}::slotted([slot=subheader-icon]){margin-top:0.2rem}.va-accordion__header,.va-accordion__subheader{display:block}.va-accordion__header ::slotted([slot=icon]),.va-accordion__subheader ::slotted([slot=subheader-icon]){margin-right:15px;width:inherit;vertical-align:text-top}.va-accordion__subheader{font-weight:400;font-size:16px;line-height:26px;margin-top:2px}.usa-prose>::slotted(p){line-height:1.5;max-width:64ex}:host(:not([open])) #content,:host([open=false]) #content{display:none}@media print{:host(:not([open])) #content,:host([open=false]) #content{display:block}}'}}]);
|
package/dist/5663.app.bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 5663.app.bundle.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4569,5663,7508,7747],{7747:function(e,r,t){t.r(r),t.d(r,{a:function(){return w},b:function(){return b},d:function(){return g},f:function(){return v},g:function(){return p},i:function(){return y},m:function(){return u},v:function(){return c},z:function(){return x}}),t(3244),t(7911);var a=(new Date).getFullYear()+100,o=1900,n=12,i=1,s=1,u=[{label:"January",value:1},{label:"February",value:2},{label:"March",value:3},{label:"April",value:4},{label:"May",value:5},{label:"June",value:6},{label:"July",value:7},{label:"August",value:8},{label:"September",value:9},{label:"October",value:10},{label:"November",value:11},{label:"December",value:12}],l=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"],h=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"],d={1:h,2:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29"],3:h,4:l,5:h,6:l,7:h,8:h,9:l,10:h,11:l,12:h},m=["year-range","day-range","month-range","date-error","month-select"];function f(e){return e?"month-select":"month-range"}function c(e){var r=e.component,t=e.year,u=e.month,l=e.day,h=e.monthYearOnly,d=e.yearTouched,c=e.monthTouched,p=e.dayTouched,v=e.monthSelect,b=e.monthOptional,w=g(t,u);r.invalidYear=!1,r.invalidMonth=!1,r.invalidDay=!1;var y=!(h&&b);if(y&&isNaN(u)&&c)return r.invalidMonth=!0,void(r.error=f(v));if(!h&&isNaN(l)&&p)return r.invalidDay=!0,void(r.error="day-range");if(isNaN(t)&&d)return r.invalidYear=!0,void(r.error="year-range");if(r.required&&(!t||y&&!u||!h&&!l)){if(y&&c&&!u)return r.invalidMonth=!0,void(r.error="date-error");if(p&&!l&&!h)return r.invalidDay=!0,void(r.error="date-error");if(d&&!t)return r.invalidYear=!0,void(r.error="date-error")}return y&&!u&&c?(r.invalidMonth=!0,void(r.error=f(v))):l||h||!p?!t&&d?(r.invalidYear=!0,void(r.error="year-range")):y&&u&&(u<i||u>n)&&c?(r.invalidMonth=!0,void(r.error=f(v))):l&&!h&&(l<s||l>w)&&p?(r.invalidDay=!0,void(r.error="day-range")):t&&(t<o||t>a)&&d?(r.invalidYear=!0,void(r.error="year-range")):void(r.invalidYear||r.invalidMonth||r.invalidDay||r.error&&!m.includes(r.error)||(r.error=null)):(r.invalidDay=!0,void(r.error="day-range"))}function p(e,r,t){var i=g(r,t);switch(e){case"month-range":case"month-select":return{start:1,end:n};case"day-range":return{start:1,end:i};case"year-range":return{start:o,end:a};default:return null}}var g=function(e,r){var t;return e&&r?new Date(e,r,0).getDate():(null===(t=d[r])||void 0===t?void 0:t.length)||31},v=function(e,r,t){if(void 0===r&&(r={dateStyle:"full",timeStyle:"short"}),void 0===t&&(t="America/New_York"),e&&e instanceof Date)return e.toLocaleString("en-US",Object.assign(Object.assign({},r),{timeZone:t}))},b=function(e,r){if(e&&e instanceof Date&&r&&r instanceof Date)return e.getTime()>r.getTime()},w=function(e,r){if(e&&e instanceof Date&&r&&r instanceof Date)return e.getTime()<r.getTime()},y=function(e,r){if(e&&e instanceof Date&&r&&r instanceof Date)return e.getFullYear()===r.getFullYear()&&e.getMonth()===r.getMonth()&&e.getDay()===r.getDay()},x=function(e){return"00".concat((e||"").toString()).slice(-2)}},4569:function(e,r,t){t.r(r),t.d(r,{c:function(){return n}});var a,o={exports:{}};a=o,function(){var e={}.hasOwnProperty;function r(){for(var t=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var n=typeof o;if("string"===n||"number"===n)t.push(o);else if(Array.isArray(o)){if(o.length){var i=r.apply(null,o);i&&t.push(i)}}else if("object"===n)if(o.toString===Object.prototype.toString)for(var s in o)e.call(o,s)&&o[s]&&t.push(s);else t.push(o.toString())}}return t.join(" ")}a.exports?(r.default=r,a.exports=r):window.classNames=r}();var n=o.exports},7508:function(e,r,t){function a(e){return!Number.isNaN(parseFloat(e))}function o(e,r,t){void 0===t&&(t="slot");var a=e.shadowRoot.querySelector(t).assignedNodes();return null!==r?Array.from(a).filter((function(e){return e.nodeName.toLowerCase()===r})):Array.from(a)}function n(e){return 1===e?"":"s"}function i(e,r){if(void 0===e||""===e)return"".concat(r," character").concat(n(r)," allowed");var t;if(e.length<=r){var a=r-e.length;t="".concat(a," character").concat(n(a)," left")}else a=e.length-r,t="".concat(a," character").concat(n(a)," over limit");return t}function s(e,r){return Array.from({length:r-e+1},(function(r,t){return e+t}))}t.r(r),t.d(r,{S:function(){return h},a:function(){return o},b:function(){return a},c:function(){return g},d:function(){return p},e:function(){return i},f:function(){return m},g:function(){return d},i:function(){return f},m:function(){return s},s:function(){return l}}),t(7911);var u=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,r){var t=function(e,r){if("string"!=typeof e)return[];if(!r||!u(r))return[];var t=r.shadowRoot.querySelectorAll(e);return Array.from(t)}(e,r);return"string"!=typeof e||u(r)&&r.matches(e)&&t.push(r),t}var h={_entity:/[&<>"'/]/g,_entities:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},getEntity:function(e){return h._entities[e]},escapeHTML:function(e){for(var r="",t=0;t<e.length;t++)r+=e[t],t+1<arguments.length&&(r+=String(arguments[t+1]||"").replace(h._entity,h.getEntity));return r}};function d(e){var r;return(r="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&r<=6?"h".concat(r):null}function m(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function f(e){return e&&"false"!==e||!1}function c(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function p(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===r)return!0;if("function"==typeof e||"function"==typeof r)return!0;if("object"!=typeof e||"object"!=typeof r)return!1;if(null===e||null===r)return!1;if(e instanceof Date&&r instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp&&r instanceof RegExp)return e.source===r.source&&e.global===r.global&&e.multiline===r.multiline&&e.lastIndex===r.lastIndex&&e.ignoreCase===r.ignoreCase;if(c(e)||c(r)){if(!c(e)||!c(r))return!1;var o=Array.prototype.slice;return p(o.call(e),o.call(r),t,a)}if(e.constructor!==r.constructor)return!1;var n=Object.keys(e),i=Object.keys(r);if(0===n.length&&0===i.length)return!0;if(n.length!==i.length)return!1;for(var s=t.length;s--;)if(t[s]===e)return a[s]===r;t.push(e),a.push(r),n.sort(),i.sort();for(var u=n.length-1;u>=0;u--)if(n[u]!==i[u])return!1;for(var l=void 0,h=n.length-1;h>=0;h--)if(!p(e[l=n[h]],r[l],t,a))return!1;return t.pop(),a.pop(),!0}function g(e,r){void 0===r&&(r=!0);var t=["a","i","e","o"];r&&t.push("u");var a=e.charAt(0).toLowerCase();return t.includes(a)?"an":"a"}},5663:function(e,r,t){t.r(r),t.d(r,{va_memorable_date:function(){return u}});var a=t(7911),o=t(7747),n=t(7508),i=(t(7470),t(4569)),s=t(3244),u=function(){function e(e){var r=this;(0,a.r)(this,e),this.dateChange=(0,a.c)(this,"dateChange",7),this.dateBlur=(0,a.c)(this,"dateBlur",7),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.dayTouched=!1,this.monthTouched=!1,this.yearTouched=!1,this.handleDateBlur=function(e){var t,a=r,n=a.currentYear,i=a.currentMonth,s=a.currentDay,u=Number(n||t),l=Number(i||t),h=Number(s||t);if((0,o.v)({component:r,year:u,month:l,day:h,yearTouched:r.yearTouched,monthTouched:r.monthTouched,dayTouched:r.dayTouched,monthSelect:r.monthSelect}),!r.error&&(r.value=n||i||s?[n,i?(0,o.z)(l):"",s?(0,o.z)(h):""].join("-"):"",r.dateBlur.emit(e),r.enableAnalytics)){var d={componentName:"va-memorable-date",action:"blur",details:{label:r.label,year:u,month:l,day:h}};r.componentLibraryAnalytics.emit(d)}},this.handleMonthChange=function(e){var t=e.target;r.currentMonth=t.value,r.handleDateChange(e)},this.handleDayChange=function(e){var t=e.target;r.currentDay=t.value,r.handleDateChange(e)},this.handleYearChange=function(e){var t=e.target;r.currentYear=t.value,r.handleDateChange(e)},this.handleDateChange=function(e){var t=r,a=t.currentYear,o=t.currentMonth,n=t.currentDay;r.value=a||o||n?[a||"",o||"",n||""].join("-"):"",r.dateChange.emit(e)},this.handleMonthBlur=function(){r.monthTouched=!0},this.handleDayBlur=function(){r.dayTouched=!0},this.handleYearBlur=function(){r.yearTouched=!0},this.required=!1,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.monthSelect=!1,this.label=void 0,this.name=void 0,this.hint=void 0,this.error=void 0,this.value=void 0,this.customDayErrorMessage=void 0,this.customMonthErrorMessage=void 0,this.customYearErrorMessage=void 0,this.invalidDay=!1,this.invalidMonth=!1,this.invalidYear=!1,this.enableAnalytics=!1}return e.prototype.connectedCallback=function(){var e=this;s.i.on("languageChanged",(function(){(0,a.f)(e.el)}))},e.prototype.disconnectedCallback=function(){s.i.off("languageChanged")},e.prototype.componentWillLoad=function(){var e=(this.value||"").split("-"),r=e[0],t=e[1],a=e[2];this.currentYear=r,this.currentMonth=t,this.currentDay=a},e.prototype.render=function(){var e=this,r=this,t=r.required,u=r.label,l=r.name,h=r.hint,d=r.error,m=r.handleDateBlur,f=r.monthSelect,c=r.useFormsPattern,p=r.formHeadingLevel,g=r.formHeading,v=this,b=v.currentYear,w=v.currentMonth,y=v.currentDay,x=["dateHint",h?"hint":""].filter(Boolean).join(" "),S=f?s.i.t("date-hint-with-select"):s.i.t("date-hint"),M=function(e){return s.i.t(e,function(e){var r=parseInt(b,10),t=parseInt(w,10);return(0,o.g)(e,r,t)}(e))},D="".concat(c&&g?"form-question":""," ").concat(c?"form-description":""," ").concat(c&&u?"input-label":"").trim()||null,T=null;if("single"===c||"multiple"===c){var N=(0,n.g)(p);T=(0,a.h)(a.F,null,g&&(0,a.h)(N,{id:"form-question",part:"form-header"},g),(0,a.h)("div",{id:"form-description"},(0,a.h)("slot",{name:"form-description"})))}var z=f?(0,a.h)("div",{class:"usa-form-group usa-form-group--month usa-form-group--select"},(0,a.h)("va-select",{label:s.i.t("month"),name:l?"".concat(l,"Month"):"Month","aria-describedby":x,"aria-labelledby":D,invalid:this.invalidMonth,onVaSelect:this.handleMonthChange,onBlur:this.handleMonthBlur,class:"usa-form-group--month-select",reflectInputError:"month-range"===d,value:w?String(parseInt(w,10)):w,error:this.invalidMonth?M(d):null,showError:!1},o.m&&o.m.map((function(e){return(0,a.h)("option",{value:e.value,selected:e.value===parseInt(w,10)},e.label)})))):(0,a.h)("div",{class:"usa-form-group usa-form-group--month"},(0,a.h)("va-text-input",{label:s.i.t("month"),name:l?"".concat(l,"Month"):"Month",maxlength:2,pattern:"[0-9]*","aria-describedby":x,"aria-labelledby":D,invalid:this.invalidMonth,value:null==w?void 0:w.toString(),onInput:this.handleMonthChange,onBlur:this.handleMonthBlur,class:"usa-form-group--month-input memorable-date-input",reflectInputError:"month-range"===d,inputmode:"numeric",type:"text",error:this.invalidMonth?M(d):null,"show-input-error":"false"})),C=(0,i.c)({"usa-legend":!0,"usa-label--error":d});return(0,a.h)(a.H,{onBlur:m},T,(0,a.h)("div",{class:"input-wrap"},(0,a.h)("fieldset",{class:"usa-form usa-fieldset"},(0,a.h)("legend",{class:C,id:"input-label",part:"legend"},u,t&&(0,a.h)("span",{class:"usa-label--required"}," ",s.i.t("required")),h&&(0,a.h)("div",{class:"usa-hint",id:"hint"},h),(0,a.h)("span",{class:"usa-hint",id:"dateHint"},S)),(0,a.h)("span",{id:"error-message",role:"alert"},d&&(0,a.h)(a.F,null,(0,a.h)("span",{class:"usa-sr-only"},s.i.t("error")),(0,a.h)("span",{class:"usa-error-message"},function(r){var t="";return e.invalidDay?t=e.customDayErrorMessage:e.invalidMonth?t=e.customMonthErrorMessage:e.invalidYear&&(t=e.customYearErrorMessage),t||M(r)}(d)))),(0,a.h)("slot",null),(0,a.h)("div",{class:"usa-memorable-date"},z,(0,a.h)("div",{class:"usa-form-group usa-form-group--day"},(0,a.h)("va-text-input",{label:s.i.t("day"),name:l?"".concat(l,"Day"):"Day",maxlength:2,pattern:"[0-9]*","aria-describedby":x,invalid:this.invalidDay,value:null==y?void 0:y.toString(),onInput:this.handleDayChange,onBlur:this.handleDayBlur,class:"usa-form-group--day-input memorable-date-input",reflectInputError:"day-range"===d,inputmode:"numeric",type:"text",error:this.invalidDay?M(d):null,"show-input-error":"false"})),(0,a.h)("div",{class:"usa-form-group usa-form-group--year"},(0,a.h)("va-text-input",{label:s.i.t("year"),name:l?"".concat(l,"Year"):"Year",maxlength:4,pattern:"[0-9]*","aria-describedby":x,invalid:this.invalidYear,value:null==b?void 0:b.toString(),onInput:this.handleYearChange,onBlur:this.handleYearBlur,class:"usa-form-group--year-input memorable-date-input",reflectInputError:"year-range"===d,inputmode:"numeric",type:"text",error:this.invalidYear?M(d):null,"show-input-error":"false"}))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),e}();u.style='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}#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=\'\'])){border-left:0.3rem solid var(--vads-color-secondary-dark);padding-left:1.25rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=\'\'])){margin-left:-1.4375rem;}}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint,.usa-fieldset{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-form{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}@media all and (min-width: 30em){.usa-form{max-width:20rem}}.usa-form abbr[title=required]{text-decoration:none}.usa-form .usa-input,.usa-form .usa-range,.usa-form .usa-select,.usa-form .usa-textarea{max-width:none}.usa-form .usa-input--2xs,.usa-form .usa-input-group--2xs{max-width:5ex}.usa-form .usa-input--xs,.usa-form .usa-input-group--xs{max-width:9ex}.usa-form .usa-input--sm,.usa-form .usa-input--small,.usa-form .usa-input-group--sm,.usa-form .usa-input-group--small{max-width:13ex}.usa-form .usa-input--md,.usa-form .usa-input--medium,.usa-form .usa-input-group--md,.usa-form .usa-input-group--medium{max-width:20ex}.usa-form .usa-input--lg,.usa-form .usa-input-group--lg{max-width:30ex}.usa-form .usa-input--xl,.usa-form .usa-input-group--xl{max-width:40ex}.usa-form .usa-input--2xl,.usa-form .usa-input-group--2xl{max-width:50ex}.usa-form .usa-button{margin-top:0.5rem}@media all and (min-width: 30em){.usa-form .usa-button{margin-top:1.5rem}}.usa-form a:where(:not(.usa-button)){color:#005ea2;text-decoration:underline}.usa-form a:where(:not(.usa-button)):visited{color:#54278f}.usa-form a:where(:not(.usa-button)):hover{color:#1a4480}.usa-form a:where(:not(.usa-button)):active{color:#162e51}.usa-form a:where(:not(.usa-button)):focus{outline:0.25rem solid #2491ff;outline-offset:0rem}@media all and (min-width: 30em){.usa-form--large{max-width:30rem}}.usa-show-password{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;cursor:pointer}.usa-show-password:visited{color:#54278f}.usa-show-password:hover{color:#1a4480}.usa-show-password:active{color:#162e51}.usa-show-password:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-show-password:hover,.usa-show-password.usa-button--hover,.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password:disabled.usa-button--hover,.usa-show-password[aria-disabled=true].usa-button--hover,.usa-show-password:active,.usa-show-password.usa-button--active,.usa-show-password:disabled:active,.usa-show-password[aria-disabled=true]:active,.usa-show-password:disabled.usa-button--active,.usa-show-password[aria-disabled=true].usa-button--active,.usa-show-password:disabled:focus,.usa-show-password[aria-disabled=true]:focus,.usa-show-password:disabled.usa-focus,.usa-show-password[aria-disabled=true].usa-focus,.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-show-password.usa-button--hover{color:#1a4480}.usa-show-password.usa-button--active{color:#162e51}.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password[aria-disabled=true]:focus{color:GrayText}}.usa-form__note,.usa-show-password{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:0.93rem;line-height:1.3;float:right;margin:0.25rem 0 1rem}.usa-fieldset{border:none;margin:0;padding:0}.usa-legend{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-legend--large{font-size:2.13rem;font-weight:700;margin-top:1rem}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-form-group{margin-top:1.5rem}.usa-form-group .usa-label:first-child{margin-top:0}.usa-form-group--error{border-left-width:0.25rem;border-left-color:#b50909;border-left-style:solid;padding-left:1rem;position:relative}@media all and (min-width: 64em){.usa-form-group--error{margin-left:-1.25rem}}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-memorable-date{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.usa-memorable-date [type=number]{-moz-appearance:textfield}.usa-memorable-date [type=number]::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none}.usa-memorable-date [type=number]::-webkit-contacts-auto-fill-button{visibility:hidden;display:none !important;pointer-events:none;height:0;width:0;margin:0}.usa-memorable-date .usa-form-group{margin-top:1rem}.usa-form-group--day,.usa-form-group--month,.usa-form-group--year{-ms-flex:0 1 auto;flex:0 1 auto;margin-right:1rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.usa-form-group--day input,.usa-form-group--month input{width:3rem}.usa-form-group--month select{width:15rem}.usa-form-group--year input{width:4.5rem}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;font-family:var(--font-source-sans);margin-top:24px}#error-message{margin-bottom:0}.usa-hint{display:block}slot:not([name])::slotted(*){margin-bottom:0.5rem}va-select::part(label),va-text-input::part(label){margin-top:0;margin-bottom:12px}va-text-input::part(validation){display:none}.usa-memorable-date{margin-top:16px;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.usa-memorable-date .usa-form-group{margin-top:0px}.usa-form-group--month{margin-right:16px}.usa-form-group--month-input{width:48px}.usa-form-group--month-select{width:15rem}.usa-form-group--day-input{width:3rem}.usa-form-group--year-input{width:4.5rem}@media (max-width: 480px){.usa-form-group--month-select{width:100%}.usa-form-group--select{-ms-flex:0 1 50%;flex:0 1 50%;width:50%}}'}}]);
|
|
2
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[4569,5663,7508,7731],{7731:function(e,r,t){t.r(r),t.d(r,{a:function(){return w},b:function(){return b},d:function(){return g},f:function(){return v},g:function(){return p},i:function(){return y},m:function(){return u},v:function(){return c},z:function(){return x}}),t(4665),t(7911);var a=(new Date).getFullYear()+100,o=1900,n=12,i=1,s=1,u=[{label:"January",value:1},{label:"February",value:2},{label:"March",value:3},{label:"April",value:4},{label:"May",value:5},{label:"June",value:6},{label:"July",value:7},{label:"August",value:8},{label:"September",value:9},{label:"October",value:10},{label:"November",value:11},{label:"December",value:12}],l=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"],h=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"],d={1:h,2:["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29"],3:h,4:l,5:h,6:l,7:h,8:h,9:l,10:h,11:l,12:h},m=["year-range","day-range","month-range","date-error","month-select"];function f(e){return e?"month-select":"month-range"}function c(e){var r=e.component,t=e.year,u=e.month,l=e.day,h=e.monthYearOnly,d=e.yearTouched,c=e.monthTouched,p=e.dayTouched,v=e.monthSelect,b=e.monthOptional,w=g(t,u);r.invalidYear=!1,r.invalidMonth=!1,r.invalidDay=!1;var y=!(h&&b);if(y&&isNaN(u)&&c)return r.invalidMonth=!0,void(r.error=f(v));if(!h&&isNaN(l)&&p)return r.invalidDay=!0,void(r.error="day-range");if(isNaN(t)&&d)return r.invalidYear=!0,void(r.error="year-range");if(r.required&&(!t||y&&!u||!h&&!l)){if(y&&c&&!u)return r.invalidMonth=!0,void(r.error="date-error");if(p&&!l&&!h)return r.invalidDay=!0,void(r.error="date-error");if(d&&!t)return r.invalidYear=!0,void(r.error="date-error")}return y&&!u&&c?(r.invalidMonth=!0,void(r.error=f(v))):l||h||!p?!t&&d?(r.invalidYear=!0,void(r.error="year-range")):y&&u&&(u<i||u>n)&&c?(r.invalidMonth=!0,void(r.error=f(v))):l&&!h&&(l<s||l>w)&&p?(r.invalidDay=!0,void(r.error="day-range")):t&&(t<o||t>a)&&d?(r.invalidYear=!0,void(r.error="year-range")):void(r.invalidYear||r.invalidMonth||r.invalidDay||r.error&&!m.includes(r.error)||(r.error=null)):(r.invalidDay=!0,void(r.error="day-range"))}function p(e,r,t){var i=g(r,t);switch(e){case"month-range":case"month-select":return{start:1,end:n};case"day-range":return{start:1,end:i};case"year-range":return{start:o,end:a};default:return null}}var g=function(e,r){var t;return e&&r?new Date(e,r,0).getDate():(null===(t=d[r])||void 0===t?void 0:t.length)||31},v=function(e,r,t){if(void 0===r&&(r={dateStyle:"full",timeStyle:"short"}),void 0===t&&(t="America/New_York"),e&&e instanceof Date)return e.toLocaleString("en-US",Object.assign(Object.assign({},r),{timeZone:t}))},b=function(e,r){if(e&&e instanceof Date&&r&&r instanceof Date)return e.getTime()>r.getTime()},w=function(e,r){if(e&&e instanceof Date&&r&&r instanceof Date)return e.getTime()<r.getTime()},y=function(e,r){if(e&&e instanceof Date&&r&&r instanceof Date)return e.getFullYear()===r.getFullYear()&&e.getMonth()===r.getMonth()&&e.getDay()===r.getDay()},x=function(e){return"00".concat((e||"").toString()).slice(-2)}},4569:function(e,r,t){t.r(r),t.d(r,{c:function(){return n}});var a,o={exports:{}};a=o,function(){var e={}.hasOwnProperty;function r(){for(var t=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var n=typeof o;if("string"===n||"number"===n)t.push(o);else if(Array.isArray(o)){if(o.length){var i=r.apply(null,o);i&&t.push(i)}}else if("object"===n)if(o.toString===Object.prototype.toString)for(var s in o)e.call(o,s)&&o[s]&&t.push(s);else t.push(o.toString())}}return t.join(" ")}a.exports?(r.default=r,a.exports=r):window.classNames=r}();var n=o.exports},7508:function(e,r,t){function a(e){return!Number.isNaN(parseFloat(e))}function o(e,r,t){void 0===t&&(t="slot");var a=e.shadowRoot.querySelector(t).assignedNodes();return null!==r?Array.from(a).filter((function(e){return e.nodeName.toLowerCase()===r})):Array.from(a)}function n(e){return 1===e?"":"s"}function i(e,r){if(void 0===e||""===e)return"".concat(r," character").concat(n(r)," allowed");var t;if(e.length<=r){var a=r-e.length;t="".concat(a," character").concat(n(a)," left")}else a=e.length-r,t="".concat(a," character").concat(n(a)," over limit");return t}function s(e,r){return Array.from({length:r-e+1},(function(r,t){return e+t}))}t.r(r),t.d(r,{S:function(){return h},a:function(){return o},b:function(){return a},c:function(){return g},d:function(){return p},e:function(){return i},f:function(){return m},g:function(){return d},i:function(){return f},m:function(){return s},s:function(){return l}}),t(7911);var u=function(e){return e&&"object"==typeof e&&1===e.nodeType};function l(e,r){var t=function(e,r){if("string"!=typeof e)return[];if(!r||!u(r))return[];var t=r.shadowRoot.querySelectorAll(e);return Array.from(t)}(e,r);return"string"!=typeof e||u(r)&&r.matches(e)&&t.push(r),t}var h={_entity:/[&<>"'/]/g,_entities:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},getEntity:function(e){return h._entities[e]},escapeHTML:function(e){for(var r="",t=0;t<e.length;t++)r+=e[t],t+1<arguments.length&&(r+=String(arguments[t+1]||"").replace(h._entity,h.getEntity));return r}};function d(e){var r;return(r="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&r<=6?"h".concat(r):null}function m(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function f(e){return e&&"false"!==e||!1}function c(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function p(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===r)return!0;if("function"==typeof e||"function"==typeof r)return!0;if("object"!=typeof e||"object"!=typeof r)return!1;if(null===e||null===r)return!1;if(e instanceof Date&&r instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp&&r instanceof RegExp)return e.source===r.source&&e.global===r.global&&e.multiline===r.multiline&&e.lastIndex===r.lastIndex&&e.ignoreCase===r.ignoreCase;if(c(e)||c(r)){if(!c(e)||!c(r))return!1;var o=Array.prototype.slice;return p(o.call(e),o.call(r),t,a)}if(e.constructor!==r.constructor)return!1;var n=Object.keys(e),i=Object.keys(r);if(0===n.length&&0===i.length)return!0;if(n.length!==i.length)return!1;for(var s=t.length;s--;)if(t[s]===e)return a[s]===r;t.push(e),a.push(r),n.sort(),i.sort();for(var u=n.length-1;u>=0;u--)if(n[u]!==i[u])return!1;for(var l=void 0,h=n.length-1;h>=0;h--)if(!p(e[l=n[h]],r[l],t,a))return!1;return t.pop(),a.pop(),!0}function g(e,r){void 0===r&&(r=!0);var t=["a","i","e","o"];r&&t.push("u");var a=e.charAt(0).toLowerCase();return t.includes(a)?"an":"a"}},5663:function(e,r,t){t.r(r),t.d(r,{va_memorable_date:function(){return u}});var a=t(7911),o=t(7731),n=t(7508),i=(t(5384),t(4569)),s=t(4665),u=function(){function e(e){var r=this;(0,a.r)(this,e),this.dateChange=(0,a.c)(this,"dateChange",7),this.dateBlur=(0,a.c)(this,"dateBlur",7),this.componentLibraryAnalytics=(0,a.c)(this,"component-library-analytics",7),this.dayTouched=!1,this.monthTouched=!1,this.yearTouched=!1,this.handleDateBlur=function(e){var t,a=r,n=a.currentYear,i=a.currentMonth,s=a.currentDay,u=Number(n||t),l=Number(i||t),h=Number(s||t);if((0,o.v)({component:r,year:u,month:l,day:h,yearTouched:r.yearTouched,monthTouched:r.monthTouched,dayTouched:r.dayTouched,monthSelect:r.monthSelect}),!r.error&&(r.value=n||i||s?[n,i?(0,o.z)(l):"",s?(0,o.z)(h):""].join("-"):"",r.dateBlur.emit(e),r.enableAnalytics)){var d={componentName:"va-memorable-date",action:"blur",details:{label:r.label,year:u,month:l,day:h}};r.componentLibraryAnalytics.emit(d)}},this.handleMonthChange=function(e){var t=e.target;r.currentMonth=t.value,r.handleDateChange(e)},this.handleDayChange=function(e){var t=e.target;r.currentDay=t.value,r.handleDateChange(e)},this.handleYearChange=function(e){var t=e.target;r.currentYear=t.value,r.handleDateChange(e)},this.handleDateChange=function(e){var t=r,a=t.currentYear,o=t.currentMonth,n=t.currentDay;r.value=a||o||n?[a||"",o||"",n||""].join("-"):"",r.dateChange.emit(e)},this.handleMonthBlur=function(){r.monthTouched=!0},this.handleDayBlur=function(){r.dayTouched=!0},this.handleYearBlur=function(){r.yearTouched=!0},this.required=!1,this.useFormsPattern=void 0,this.formHeadingLevel=3,this.formHeading=void 0,this.monthSelect=!1,this.label=void 0,this.name=void 0,this.hint=void 0,this.error=void 0,this.value=void 0,this.customDayErrorMessage=void 0,this.customMonthErrorMessage=void 0,this.customYearErrorMessage=void 0,this.invalidDay=!1,this.invalidMonth=!1,this.invalidYear=!1,this.enableAnalytics=!1}return e.prototype.connectedCallback=function(){var e=this;s.i.on("languageChanged",(function(){(0,a.f)(e.el)}))},e.prototype.disconnectedCallback=function(){s.i.off("languageChanged")},e.prototype.componentWillLoad=function(){var e=(this.value||"").split("-"),r=e[0],t=e[1],a=e[2];this.currentYear=r,this.currentMonth=t,this.currentDay=a},e.prototype.render=function(){var e=this,r=this,t=r.required,u=r.label,l=r.name,h=r.hint,d=r.error,m=r.handleDateBlur,f=r.monthSelect,c=r.useFormsPattern,p=r.formHeadingLevel,g=r.formHeading,v=this,b=v.currentYear,w=v.currentMonth,y=v.currentDay,x=["dateHint",h?"hint":""].filter(Boolean).join(" "),S=f?s.i.t("date-hint-with-select"):s.i.t("date-hint"),M=function(e){return s.i.t(e,function(e){var r=parseInt(b,10),t=parseInt(w,10);return(0,o.g)(e,r,t)}(e))},D="".concat(c&&g?"form-question":""," ").concat(c?"form-description":""," ").concat(c&&u?"input-label":"").trim()||null,T=null;if("single"===c||"multiple"===c){var N=(0,n.g)(p);T=(0,a.h)(a.F,null,g&&(0,a.h)(N,{id:"form-question",part:"form-header"},g),(0,a.h)("div",{id:"form-description"},(0,a.h)("slot",{name:"form-description"})))}var z=f?(0,a.h)("div",{class:"usa-form-group usa-form-group--month usa-form-group--select"},(0,a.h)("va-select",{label:s.i.t("month"),name:l?"".concat(l,"Month"):"Month","aria-describedby":x,"aria-labelledby":D,invalid:this.invalidMonth,onVaSelect:this.handleMonthChange,onBlur:this.handleMonthBlur,class:"usa-form-group--month-select",reflectInputError:"month-range"===d,value:w?String(parseInt(w,10)):w,error:this.invalidMonth?M(d):null,showError:!1},o.m&&o.m.map((function(e){return(0,a.h)("option",{value:e.value,selected:e.value===parseInt(w,10)},e.label)})))):(0,a.h)("div",{class:"usa-form-group usa-form-group--month"},(0,a.h)("va-text-input",{label:s.i.t("month"),name:l?"".concat(l,"Month"):"Month",maxlength:2,pattern:"[0-9]*","aria-describedby":x,"aria-labelledby":D,invalid:this.invalidMonth,value:null==w?void 0:w.toString(),onInput:this.handleMonthChange,onBlur:this.handleMonthBlur,class:"usa-form-group--month-input memorable-date-input",reflectInputError:"month-range"===d,inputmode:"numeric",type:"text",error:this.invalidMonth?M(d):null,"show-input-error":"false"})),C=(0,i.c)({"usa-legend":!0,"usa-label--error":d});return(0,a.h)(a.H,{onBlur:m},T,(0,a.h)("div",{class:"input-wrap"},(0,a.h)("fieldset",{class:"usa-form usa-fieldset"},(0,a.h)("legend",{class:C,id:"input-label",part:"legend"},u,t&&(0,a.h)("span",{class:"usa-label--required"}," ",s.i.t("required")),h&&(0,a.h)("div",{class:"usa-hint",id:"hint"},h),(0,a.h)("span",{class:"usa-hint",id:"dateHint"},S)),(0,a.h)("span",{id:"error-message",role:"alert"},d&&(0,a.h)(a.F,null,(0,a.h)("span",{class:"usa-sr-only"},s.i.t("error")),(0,a.h)("span",{class:"usa-error-message"},function(r){var t="";return e.invalidDay?t=e.customDayErrorMessage:e.invalidMonth?t=e.customMonthErrorMessage:e.invalidYear&&(t=e.customYearErrorMessage),t||M(r)}(d)))),(0,a.h)("slot",null),(0,a.h)("div",{class:"usa-memorable-date"},z,(0,a.h)("div",{class:"usa-form-group usa-form-group--day"},(0,a.h)("va-text-input",{label:s.i.t("day"),name:l?"".concat(l,"Day"):"Day",maxlength:2,pattern:"[0-9]*","aria-describedby":x,invalid:this.invalidDay,value:null==y?void 0:y.toString(),onInput:this.handleDayChange,onBlur:this.handleDayBlur,class:"usa-form-group--day-input memorable-date-input",reflectInputError:"day-range"===d,inputmode:"numeric",type:"text",error:this.invalidDay?M(d):null,"show-input-error":"false"})),(0,a.h)("div",{class:"usa-form-group usa-form-group--year"},(0,a.h)("va-text-input",{label:s.i.t("year"),name:l?"".concat(l,"Year"):"Year",maxlength:4,pattern:"[0-9]*","aria-describedby":x,invalid:this.invalidYear,value:null==b?void 0:b.toString(),onInput:this.handleYearChange,onBlur:this.handleYearBlur,class:"usa-form-group--year-input memorable-date-input",reflectInputError:"year-range"===d,inputmode:"numeric",type:"text",error:this.invalidYear?M(d):null,"show-input-error":"false"}))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,a.g)(this)},enumerable:!1,configurable:!0}),e}();u.style='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}#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=\'\'])){border-left:0.3rem solid var(--vads-color-secondary-dark);padding-left:1.25rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=\'\'])){margin-left:-1.4375rem;}}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint,.usa-fieldset{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-form{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}@media all and (min-width: 30em){.usa-form{max-width:20rem}}.usa-form abbr[title=required]{text-decoration:none}.usa-form .usa-input,.usa-form .usa-range,.usa-form .usa-select,.usa-form .usa-textarea{max-width:none}.usa-form .usa-input--2xs,.usa-form .usa-input-group--2xs{max-width:5ex}.usa-form .usa-input--xs,.usa-form .usa-input-group--xs{max-width:9ex}.usa-form .usa-input--sm,.usa-form .usa-input--small,.usa-form .usa-input-group--sm,.usa-form .usa-input-group--small{max-width:13ex}.usa-form .usa-input--md,.usa-form .usa-input--medium,.usa-form .usa-input-group--md,.usa-form .usa-input-group--medium{max-width:20ex}.usa-form .usa-input--lg,.usa-form .usa-input-group--lg{max-width:30ex}.usa-form .usa-input--xl,.usa-form .usa-input-group--xl{max-width:40ex}.usa-form .usa-input--2xl,.usa-form .usa-input-group--2xl{max-width:50ex}.usa-form .usa-button{margin-top:0.5rem}@media all and (min-width: 30em){.usa-form .usa-button{margin-top:1.5rem}}.usa-form a:where(:not(.usa-button)){color:#005ea2;text-decoration:underline}.usa-form a:where(:not(.usa-button)):visited{color:#54278f}.usa-form a:where(:not(.usa-button)):hover{color:#1a4480}.usa-form a:where(:not(.usa-button)):active{color:#162e51}.usa-form a:where(:not(.usa-button)):focus{outline:0.25rem solid #2491ff;outline-offset:0rem}@media all and (min-width: 30em){.usa-form--large{max-width:30rem}}.usa-show-password{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;cursor:pointer}.usa-show-password:visited{color:#54278f}.usa-show-password:hover{color:#1a4480}.usa-show-password:active{color:#162e51}.usa-show-password:focus{outline:0.25rem solid #2491ff;outline-offset:0rem}.usa-show-password:hover,.usa-show-password.usa-button--hover,.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password:disabled.usa-button--hover,.usa-show-password[aria-disabled=true].usa-button--hover,.usa-show-password:active,.usa-show-password.usa-button--active,.usa-show-password:disabled:active,.usa-show-password[aria-disabled=true]:active,.usa-show-password:disabled.usa-button--active,.usa-show-password[aria-disabled=true].usa-button--active,.usa-show-password:disabled:focus,.usa-show-password[aria-disabled=true]:focus,.usa-show-password:disabled.usa-focus,.usa-show-password[aria-disabled=true].usa-focus,.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password.usa-button--disabled{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;text-decoration:underline}.usa-show-password.usa-button--hover{color:#1a4480}.usa-show-password.usa-button--active{color:#162e51}.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password[aria-disabled=true]:focus{color:#757575}@media (forced-colors: active){.usa-show-password:disabled,.usa-show-password[aria-disabled=true],.usa-show-password:disabled:hover,.usa-show-password[aria-disabled=true]:hover,.usa-show-password[aria-disabled=true]:focus{color:GrayText}}.usa-form__note,.usa-show-password{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:0.93rem;line-height:1.3;float:right;margin:0.25rem 0 1rem}.usa-fieldset{border:none;margin:0;padding:0}.usa-legend{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-legend--large{font-size:2.13rem;font-weight:700;margin-top:1rem}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-form-group{margin-top:1.5rem}.usa-form-group .usa-label:first-child{margin-top:0}.usa-form-group--error{border-left-width:0.25rem;border-left-color:#b50909;border-left-style:solid;padding-left:1rem;position:relative}@media all and (min-width: 64em){.usa-form-group--error{margin-left:-1.25rem}}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-memorable-date{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.usa-memorable-date [type=number]{-moz-appearance:textfield}.usa-memorable-date [type=number]::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none}.usa-memorable-date [type=number]::-webkit-contacts-auto-fill-button{visibility:hidden;display:none !important;pointer-events:none;height:0;width:0;margin:0}.usa-memorable-date .usa-form-group{margin-top:1rem}.usa-form-group--day,.usa-form-group--month,.usa-form-group--year{-ms-flex:0 1 auto;flex:0 1 auto;margin-right:1rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.usa-form-group--day input,.usa-form-group--month input{width:3rem}.usa-form-group--month select{width:15rem}.usa-form-group--year input{width:4.5rem}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}:host{display:block;font-family:var(--font-source-sans);margin-top:24px}#error-message{margin-bottom:0}.usa-hint{display:block}slot:not([name])::slotted(*){margin-bottom:0.5rem}va-select::part(label),va-text-input::part(label){margin-top:0;margin-bottom:12px}va-text-input::part(validation){display:none}.usa-memorable-date{margin-top:16px;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.usa-memorable-date .usa-form-group{margin-top:0px}.usa-form-group--month{margin-right:16px}.usa-form-group--month-input{width:48px}.usa-form-group--month-select{width:15rem}.usa-form-group--day-input{width:3rem}.usa-form-group--year-input{width:4.5rem}@media (max-width: 480px){.usa-form-group--month-select{width:100%}.usa-form-group--select{-ms-flex:0 1 50%;flex:0 1 50%;width:50%}}'}}]);
|
package/dist/606.app.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[606],{606:function(e,t,r){r.r(t),r.d(t,{va_sidenav:function(){return a}});var n=r(7911),a=function(){function e(e){var t=this;(0,n.r)(this,e),this.isDesktop=window.innerWidth>640,this.iconBackgroundColorStyle=function(){return{backgroundColor:"var(--".concat(t.iconBackgroundColor,")")}},this.ariaLabel="Related pages menu",this.header=void 0,this.iconName=void 0,this.iconBackgroundColor="vads-color-primary"}return e.prototype.handleResize=function(){this.isDesktop=window.innerWidth>640,(0,n.f)(this)},e.prototype.setOnlyOneCurrentPage=function(){this.el.querySelectorAll("va-sidenav-item[current-page], va-sidenav-submenu[current-page]").forEach((function(e,t){t>0&&e.setAttribute("current-page","false")}))},e.prototype.setupCurrentPageObserver=function(){var e=this;this.mutationObserver=new MutationObserver((function(t){var r=t.filter((function(e){return"attributes"===e.type&&"current-page"===e.attributeName}));if(r.length>0){var n=r[0].target;"true"===n.getAttribute("current-page")&&e.el.querySelectorAll("va-sidenav-item[current-page], va-sidenav-submenu[current-page]").forEach((function(e){e!==n&&e.removeAttribute("current-page")}))}})),this.mutationObserver.observe(this.el,{attributes:!0,attributeFilter:["current-page"],subtree:!0})},e.prototype.componentWillLoad=function(){this.setOnlyOneCurrentPage()},e.prototype.componentDidLoad=function(){this.setupCurrentPageObserver()},e.prototype.disconnectedCallback=function(){this.mutationObserver&&this.mutationObserver.disconnect()},e.prototype.render=function(){return this.isDesktop?(0,n.h)(n.H,null,(0,n.h)("nav",{"aria-label":this.ariaLabel},this.header&&(0,n.h)("
|
|
1
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[606],{606:function(e,t,r){r.r(t),r.d(t,{va_sidenav:function(){return a}});var n=r(7911),a=function(){function e(e){var t=this;(0,n.r)(this,e),this.isDesktop=window.innerWidth>640,this.iconBackgroundColorStyle=function(){return{backgroundColor:"var(--".concat(t.iconBackgroundColor,")")}},this.ariaLabel="Related pages menu",this.header=void 0,this.iconName=void 0,this.iconBackgroundColor="vads-color-primary"}return e.prototype.handleResize=function(){this.isDesktop=window.innerWidth>640,(0,n.f)(this)},e.prototype.setOnlyOneCurrentPage=function(){this.el.querySelectorAll("va-sidenav-item[current-page], va-sidenav-submenu[current-page]").forEach((function(e,t){t>0&&e.setAttribute("current-page","false")}))},e.prototype.setupCurrentPageObserver=function(){var e=this;this.mutationObserver=new MutationObserver((function(t){var r=t.filter((function(e){return"attributes"===e.type&&"current-page"===e.attributeName}));if(r.length>0){var n=r[0].target;"true"===n.getAttribute("current-page")&&e.el.querySelectorAll("va-sidenav-item[current-page], va-sidenav-submenu[current-page]").forEach((function(e){e!==n&&e.removeAttribute("current-page")}))}})),this.mutationObserver.observe(this.el,{attributes:!0,attributeFilter:["current-page"],subtree:!0})},e.prototype.componentWillLoad=function(){this.setOnlyOneCurrentPage()},e.prototype.componentDidLoad=function(){this.setupCurrentPageObserver()},e.prototype.disconnectedCallback=function(){this.mutationObserver&&this.mutationObserver.disconnect()},e.prototype.render=function(){return this.isDesktop?(0,n.h)(n.H,null,(0,n.h)("nav",{"aria-label":this.ariaLabel},this.header&&(0,n.h)("span",{class:"va-sidenav__header"},this.iconName?(0,n.h)("span",{class:"va-sidenav__icon-background",style:this.iconBackgroundColorStyle()},(0,n.h)("va-icon",{icon:this.iconName})):null,this.header),(0,n.h)("div",{role:"list",class:"va-sidenav__list"},(0,n.h)("slot",null)))):(0,n.h)(n.H,null,(0,n.h)("va-accordion",{"open-single":!0},(0,n.h)("va-accordion-item",{bordered:!0,header:this.ariaLabel},(0,n.h)("nav",{"aria-label":this.ariaLabel},(0,n.h)("div",{role:"list",class:"va-sidenav__list"},(0,n.h)("slot",null))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,n.g)(this)},enumerable:!1,configurable:!0}),e}();a.style=":host{display:block}.va-sidenav__list{margin-bottom:0;margin-top:0;list-style-type:none;padding-left:0;font-size:var(--vads-font-size-source-sans-normalized);line-height:var(--vads-font-line-height-2);border-top:1px solid var(--vads-color-base-lighter)}.va-sidenav__header{-ms-flex-align:center;align-items:center;color:var(--vads-color-base);display:-ms-flexbox;display:flex;font-family:var(--font-serif);font-size:var(--font-size-h4);font-weight:var(--font-weight-bold);margin-bottom:12px;margin-top:0}.va-sidenav__header .va-sidenav__icon-background{font-size:24px}.va-sidenav__icon-background{color:var(--vads-color-white);border-radius:50%;width:40px;height:40px;margin-right:8px;position:relative}.va-sidenav__icon-background va-icon{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}va-accordion-item::part(accordion-header){padding-left:1.4rem}"}}]);
|
package/dist/6555.app.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[6555,7508],{7508:function(e,t,a){function i(e){return!Number.isNaN(parseFloat(e))}function n(e,t,a){void 0===a&&(a="slot");var i=e.shadowRoot.querySelector(a).assignedNodes();return null!==t?Array.from(i).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(i)}function r(e){return 1===e?"":"s"}function o(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(r(t)," allowed");var a;if(e.length<=t){var i=t-e.length;a="".concat(i," character").concat(r(i)," left")}else i=e.length-t,a="".concat(i," character").concat(r(i)," over limit");return a}function s(e,t){return Array.from({length:t-e+1},(function(t,a){return e+a}))}a.r(t),a.d(t,{S:function(){return d},a:function(){return n},b:function(){return i},c:function(){return b},d:function(){return m},e:function(){return o},f:function(){return h},g:function(){return f},i:function(){return u},m:function(){return s},s:function(){return c}}),a(7911);var l=function(e){return e&&"object"==typeof e&&1===e.nodeType};function c(e,t){var a=function(e,t){if("string"!=typeof e)return[];if(!t||!l(t))return[];var a=t.shadowRoot.querySelectorAll(e);return Array.from(a)}(e,t);return"string"!=typeof e||l(t)&&t.matches(e)&&a.push(t),a}var d={_entity:/[&<>"'/]/g,_entities:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},getEntity:function(e){return d._entities[e]},escapeHTML:function(e){for(var t="",a=0;a<e.length;a++)t+=e[a],a+1<arguments.length&&(t+=String(arguments[a+1]||"").replace(d._entity,d.getEntity));return t}};function f(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function h(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function u(e){return e&&"false"!==e||!1}function p(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function m(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(p(e)||p(t)){if(!p(e)||!p(t))return!1;var n=Array.prototype.slice;return m(n.call(e),n.call(t),a,i)}if(e.constructor!==t.constructor)return!1;var r=Object.keys(e),o=Object.keys(t);if(0===r.length&&0===o.length)return!0;if(r.length!==o.length)return!1;for(var s=a.length;s--;)if(a[s]===e)return i[s]===t;a.push(e),i.push(t),r.sort(),o.sort();for(var l=r.length-1;l>=0;l--)if(r[l]!==o[l])return!1;for(var c=void 0,d=r.length-1;d>=0;d--)if(!m(e[c=r[d]],t[c],a,i))return!1;return a.pop(),i.pop(),!0}function b(e,t){void 0===t&&(t=!0);var a=["a","i","e","o"];t&&a.push("u");var i=e.charAt(0).toLowerCase();return a.includes(i)?"an":"a"}},6555:function(e,t,a){a.r(t),a.d(t,{va_file_input:function(){return P}});var i=a(7911),n=(a(7470),a(7508)),r=a(3244),o="usa",s="".concat(o,"-file-input"),l=".".concat(s),c="".concat(o,"-file-input__input"),d="".concat(o,"-file-input__target"),f=".".concat(c),h="".concat(o,"-file-input__box"),u="".concat(o,"-file-input__instructions"),p="".concat(o,"-file-input__preview"),m="".concat(o,"-file-input__preview-heading"),b="".concat(o,"-file-input--disabled"),g="".concat(o,"-file-input__choose"),v="".concat(o,"-file-input__accepted-files-message"),y="".concat(o,"-file-input__drag-text"),x="".concat(o,"-file-input--drag"),w="is-loading",k="has-invalid-file",S="".concat(o,"-file-input__preview-image"),A="".concat(S,"--generic"),z="".concat(S,"--pdf"),T="".concat(S,"--word"),C="".concat(S,"--video"),F="".concat(S,"--excel"),L="".concat(o,"-sr-only"),_="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",M=Boolean(!0),E="",q="",H=function(e){var t=e.charCodeAt(0);return 32===t?"-":t>=65&&t<=90?"img_".concat(e.toLowerCase()):"__000".concat(t.toString(16).slice(-4))},N=function(e){return e.hasAttribute("multiple")?"files":"file"},B=function(e){var t=e.hasAttribute("aria-disabled")||e.hasAttribute("disabled"),a=function(e){var t=document.createElement("div"),a=document.createElement("div"),i=document.createElement("div");return e.classList.remove(s),e.classList.add(c),t.classList.add(s),i.classList.add(h),a.classList.add(d),a.prepend(i),e.parentNode.insertBefore(a,e),e.parentNode.insertBefore(t,a),a.appendChild(e),t.appendChild(a),a}(e),i=function(e){var t=e.closest(l),a=N(e),i=document.createElement("div"),r="Drag ".concat(a," here or"),o="choose from folder";return E="".concat(r," ").concat(o),i.classList.add(u),i.setAttribute("aria-hidden","true"),e.setAttribute("aria-label",E),i.innerHTML=n.S.escapeHTML('<span class="'.concat(y,'">').concat(r,'</span> <span class="').concat(g,'">').concat(o,"</span>")),e.parentNode.insertBefore(i,e),(/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.querySelector(".".concat(y)).outerHTML=""),i}(e),r=function(e){var t=e.closest(l);if(!t)throw new Error("Element is missing outer ".concat(l));var a=t.querySelector(f);return{dropZoneEl:t,inputEl:a}}(e).dropZoneEl;return t?r.classList.add(b):function(e){var t=document.createElement("div"),a=N(e),i=e.closest(l),n=e.closest(".".concat(d));q="No ".concat(a," selected."),t.classList.add(L),t.setAttribute("aria-live","polite"),t.textContent=q,i.insertBefore(t,n)}(e),{instructions:i,dropTarget:a}},R=function(e,t){var a=e.querySelectorAll(".".concat(p)),i=e.querySelector(".".concat(m)),n=e.querySelector(".".concat(v));i&&(i.outerHTML=""),n&&(n.outerHTML="",e.classList.remove(k)),null!==a&&(t&&t.removeAttribute("hidden"),Array.prototype.forEach.call(a,(function(e){e.parentNode.removeChild(e)})))},j=function(e,t,a,i){!function(e,t,a,i){var n=t.getAttribute("accept");i.classList.remove(k);var r=function(e,t){var a=!1;return e.indexOf(t)>=0&&(a=!0),a};if(n){for(var o=n.split(","),s=document.createElement("div"),l=!0,c=e.target.files||e.dataTransfer.files,d=0;d<c.length;d+=1){var f=c[d];if(!l)break;for(var h=0;h<o.length;h+=1){var u=o[h];if(l=f.name.indexOf(u)>0||r(f.type,u.replace(/\*/g,""))){M=!0;break}}}l||(R(i,a),t.value="",i.insertBefore(s,t),s.textContent=t.dataset.errormessage||"This is not a valid file type.",s.classList.add(v),i.classList.add(k),M=!1,e.preventDefault(),e.stopPropagation())}}(e,t,a,i),!0===M&&function(e,t,a,i){var r=t.getAttribute("multiple")?e.target.files:[e.target.files[0]],o=i.closest(".".concat(s)).querySelector(".".concat(L)),l=[];R(i,a);for(var c=function(e){var t,o=new FileReader,s=r[e].name;l.push(s),o.onloadstart=function(){t=function(e){return"".concat(e,"-").concat(Math.floor(Date.now()/1e3))}(function(e){return e.replace(/[^a-z0-9]/g,H)}(s)),a.insertAdjacentHTML("afterend",n.S.escapeHTML('<div class="'.concat(p,'" aria-hidden="true">\n <img id="').concat(t,'" src="').concat(_,'" alt="" class="').concat(S," ").concat(w,'"/>').concat(s,"\n <div>")))},o.onloadend=function(){var e=i.querySelector("#".concat(t));s.indexOf(".pdf")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(z,'")')):s.indexOf(".doc")>0||s.indexOf(".pages")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(T,'")')):s.indexOf(".xls")>0||s.indexOf(".numbers")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(F,'")')):s.indexOf(".mov")>0||s.indexOf(".mp4")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(C,'")')):e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(A,'")')),e.classList.remove(w),e.src=o.result},r[e]&&o.readAsDataURL(r[e])},f=0;f<r.length;f+=1)c(f);0===r.length?t.setAttribute("aria-label",E):function(e,t){var a=document.createElement("div"),i=e.closest(".".concat(d)),r=i.querySelector(".".concat(u)),o="Change file",s="";1===t.length?s=n.S.escapeHTML('Selected file <span class="usa-file-input__choose">'.concat(o,"</span>")):t.length>1&&(o="Change files",s=n.S.escapeHTML("".concat(t.length,' files selected <span class="usa-file-input__choose">').concat(o,"</span>"))),r.setAttribute("hidden","true"),a.classList.add(m),a.innerHTML=s,i.insertBefore(a,r),e.setAttribute("aria-label",o)}(t,r),function(e,t,a){var i=e,n=q;1===t.length?n="You have selected the file: ".concat(a):t.length>1&&(n="You have selected ".concat(t.length," files: ").concat(a.join(", "))),setTimeout((function(){i.textContent=n}),1e3)}(o,r,l)}(e,t,a,i)},O={".txt":"text/plain",".pdf":"application/pdf",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".odt":"application/vnd.oasis.opendocument.text",".rtf":"application/rtf",".csv":"text/csv",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".ppt":"application/vnd.ms-powerpoint",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png",".gif":"image/gif",".bmp":"image/bmp",".webp":"image/webp",".tif":"image/tiff",".tiff":"image/tiff",".svg":"image/svg+xml",".mp3":"audio/mpeg",".wav":"audio/wav",".ogg":"audio/ogg",".m4a":"audio/mp4",".aac":"audio/aac",".mp4":"video/mp4",".avi":"video/x-msvideo",".mov":"video/quicktime",".wmv":"video/x-ms-wmv",".flv":"video/x-flv",".mkv":"video/x-matroska",".webm":"video/webm",".zip":"application/zip",".rar":"application/x-rar-compressed",".7z":"application/x-7z-compressed",".tar":"application/x-tar",".gz":"application/gzip",".json":"application/json",".xml":"application/xml",".html":"text/html",".htm":"text/html",".css":"text/css",".js":"application/javascript"},P=function(){function e(e){var t=this;(0,i.r)(this,e),this.vaChange=(0,i.c)(this,"vaChange",7),this.vaPasswordChange=(0,i.c)(this,"vaPasswordChange",7),this.componentLibraryAnalytics=(0,i.c)(this,"component-library-analytics",7),this.uploadStatus="idle",this.chooseFileString="choose from folder",this.dragFileString="Drag a file here or ",this.handleChange=function(e){t.resetVisualState=!1;var a=e.target;a.files&&a.files.length>0&&t.handleFile(a.files[0]),a.value=""},this.handleDrop=function(e){e.preventDefault(),e.stopPropagation();var a=e.dataTransfer.files;a.length>0&&t.handleFile(a[0])},this.handleFile=function(e,a){if(void 0===a&&(a=!0),t.accept){var i=t.normalizeAcceptProp(t.accept);if(!t.isAcceptedFileType(e.type,i))return t.removeFile(!1),void(t.internalError="This is not a valid file type.")}return 0===e.size?(t.internalError="The file you selected is empty. Files must be larger than 0B.",void t.resetState()):e.size>t.maxFileSize?(t.internalError="\n We can't upload your file because it's too big. Files must be less than ".concat(t.formatFileSize(t.maxFileSize),"."),void t.resetState()):e.size<t.minFileSize?(t.internalError="We can't upload your file because it's too small. Files must be at least ".concat(t.formatFileSize(t.minFileSize),"."),void t.resetState()):(t.uploadedFile=null,t.file=e,a&&t.vaChange.emit({files:[t.file]}),t.uploadStatus="success",t.internalError=null,t.generateFileContents(t.file),t.updateStatusMessage("You have selected the file: ".concat(t.file.name)),t.el.focus(),void(t.enableAnalytics&&t.componentLibraryAnalytics.emit({componentName:"va-file-input",action:"change",details:{label:t.label}})))},this.removeFile=function(e){void 0===e&&(e=!0),t.closeModal(),t.uploadStatus="idle",t.internalError=null,e&&t.vaChange.emit({files:[]}),t.file=null,t.uploadedFile=null,t.updateStatusMessage("File removed. No file selected."),t.el.focus()},this.openModal=function(){t.el.shadowRoot.querySelector("va-modal").setAttribute("status","warning"),t.showModal=!0},this.closeModal=function(){t.showModal=!1,setTimeout((function(){t.fileInputRef.focus()}),0)},this.changeFile=function(){t.fileInputRef&&t.fileInputRef.click()},this.formatFileSize=function(e){var t=["B","KB","MB","GB","TB"];if(0===e)return"0 B";var a=Math.floor(Math.log(e)/Math.log(1024));if(0===a)return"".concat(e," ").concat(t[a]);var i=(e/Math.pow(1024,a)).toFixed(a<2?0:1);return"".concat(i," ").concat(t[a])},this.normalizeAcceptProp=function(e){return e.split(",").map((function(e){return(e=e.trim()).startsWith(".")?O[e]:e}))},this.isAcceptedFileType=function(e,t){for(var a=0,i=t;a<i.length;a++){var n=i[a];if(n===e)return!0;if(n.endsWith("/*")&&e.startsWith(n.slice(0,-1)))return!0}return!1},this.renderLabelOrHeader=function(e,t,a){var n=t?(0,i.h)("span",{class:"required"}," ",r.i.t("required")):null;if(a&&a>=1&&a<=6){var o="h".concat(a);return(0,i.h)("div",{class:"label-header"},(0,i.h)(o,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,n))}return(0,i.h)("div",{class:"label-header"},(0,i.h)("label",{htmlFor:"fileInputField",part:"label",class:"usa-label"},e,n))},this.file=void 0,this.fileContents=void 0,this.internalError=void 0,this.showModal=!1,this.showSeparator=!0,this.label=void 0,this.name=void 0,this.buttonText=void 0,this.value=void 0,this.required=!1,this.accept=void 0,this.error=void 0,this.hint=void 0,this.statusText=void 0,this.uploadMessage=null,this.enableAnalytics=!1,this.headerSize=void 0,this.headless=!1,this.readOnly=!1,this.encrypted=!1,this.uploadedFile=void 0,this.maxFileSize=1/0,this.minFileSize=0,this.percentUploaded=null,this.passwordError=void 0,this.resetVisualState=!1}return e.prototype.handleValueChange=function(e){var t=this;setTimeout((function(){t.updateStatusMessage(e)}))},e.prototype.percentHandler=function(e){e>=100&&this.resetState()},e.prototype.handleError=function(e){e&&this.resetState()},e.prototype.resetState=function(){this.fileContents=null,this.uploadStatus="idle",this.percentUploaded=null,(0,i.f)(this.el)},e.prototype.updateStatusMessage=function(e){var t=this;setTimeout((function(){var a=t.el.shadowRoot.querySelector("#statusMessage");a&&(a.textContent=e)}),1e3)},e.prototype.generateFileContents=function(e){var t=this;if(e){var a=new FileReader;this.fileType=e.type,a.onloadend=function(){t.fileContents=a.result},this.fileType&&("application/pdf"===this.fileType||this.fileType.startsWith("image/"))&&a.readAsDataURL(e)}},e.prototype.componentWillRender=function(){var e=!!this.el.querySelector(":scope > *"),t=!(!this.value&&!this.file||this.readOnly);this.showSeparator=e||t},e.prototype.componentDidLoad=function(){!function(e){(0,n.s)(l,e).forEach((function(e){var t=B(e),a=t.instructions,i=t.dropTarget;i.addEventListener("dragover",(function(){this.classList.add(x)}),!1),i.addEventListener("dragleave",(function(){this.classList.remove(x)}),!1),i.addEventListener("drop",(function(t){t.preventDefault(),this.classList.remove(x);var n=t.dataTransfer;if(t.target.files=n.files,!(n.files.length>1)){j(t,e,a,i);var r=new CustomEvent("change",{detail:{files:n.files}});e.dispatchEvent(r)}}),!1),e.addEventListener("input",(function(t){return j(t,e,a,i)}),!1)}))}(this.el)},e.prototype.connectedCallback=function(){this.el.addEventListener("change",this.handleChange)},e.prototype.disconnectedCallback=function(){this.el.removeEventListener("change",this.handleChange)},e.prototype.getDefaultUploadMessage=function(){return(0,i.h)("span",null,this.dragFileString,(0,i.h)("span",{class:"file-input-choose-text"},this.chooseFileString))},e.prototype.handlePasswordChange=function(e){this.vaPasswordChange.emit({password:e.target.value})},e.prototype.render=function(){var e=this,t=this,a=t.label,n=t.name,o=t.required,s=t.accept,l=t.error,c=t.hint,d=t.file,f=t.uploadStatus,h=t.dragFileString,u=t.chooseFileString,p=t.uploadMessage,m=t.headerSize,b=t.fileContents,g=t.fileType,v=t.headless,y=t.value,x=t.readOnly,w=t.encrypted,k=t.statusText,S=t.uploadedFile,A=t.percentUploaded,z=t.passwordError,T=t.resetVisualState;y&&!this.file&&this.handleFile(y,!1);var C=l||this.internalError,F="".concat(c?"input-hint-message":""," ").concat(C?"input-error-message":"").trim()||null,L="file-input-target ".concat(C?"file-input-target-error":"").trim(),_=(0,i.h)("div",{key:"0ba4f1b07bf71702d3c009a564c31a0cbda42d00",class:"thumbnail-container"},(0,i.h)("svg",{key:"17f77585c4980081c3b50d20fa64ab3ec5d31d69",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"#07648d",width:"40px",height:"40px"},(0,i.h)("path",{key:"7d51920b90ca18ac6dcde81c854dd955e3436060",d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"})));l?_=(0,i.h)("div",{key:"2448d7fdce3bc76b49ceaa72a33fddf2322f5cab",class:"thumbnail-container"},(0,i.h)("va-icon",{key:"d07fc7841535c7e5859aec7974d5f9cdf7607825",icon:"error",size:3,class:"thumbnail-preview thumbnail-error"})):b&&(g.startsWith("image/")?_=(0,i.h)("div",{key:"8f490b7395bbf487269d055ff2bb9da70b8e426d",class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("img",{key:"af93e9a4d390bc2fe7f8ee79e87b2ba12c233c8f",class:"thumbnail-preview",src:b,alt:"image"})):"application/pdf"===g&&(_=(0,i.h)("div",{key:"22014a42479666e381aa4f64e6d12567e7c19bd8",class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("object",{key:"e462949648a918fe00762ad165acb888ffd2ece9",class:"thumbnail-preview",data:b,type:"application/pdf"}))));var M=v?"headless-selected-files-wrapper":"selected-files-wrapper",E="usa-hint"+(v?" usa-sr-only":""),q=null!==A&&A<100,H="file-status-label";return q&&(H="".concat(H," uploading-status")),(0,i.h)(i.H,{key:"7d253c4ad42da6875edf8ef049645a1a3b49eebf",class:{"has-error":!!C}},!x&&(0,i.h)("span",{key:"7021e55cd2bbedf6af02d1f513f3c2701884e55c",class:{"usa-sr-only":!!v}},a&&this.renderLabelOrHeader(a,o,m)),c&&!x&&(0,i.h)("div",{key:"6622aac52e6b1be43030b4876cf49f2f066d4164",class:E,id:"input-hint-message"},c),(0,i.h)("div",{key:"bcf5e22ead3af8eb8f22447f1d3445595ee4e2e0",class:"file-input-wrapper",onDrop:this.handleDrop},(0,i.h)("input",{key:"83009dec11a4c8e473d2b640a8f656dae0c4ba67",id:"fileInputField",class:"file-input","aria-label":"".concat(a).concat(o?" "+r.i.t("required"):"",". ").concat(h).concat(u),style:{visibility:"success"===this.uploadStatus||S?"hidden":"unset"},type:"file",ref:function(t){return e.fileInputRef=t},name:n,accept:s,"aria-describedby":F,onChange:this.handleChange}),"idle"===f&&(!S||T)&&(0,i.h)("div",{key:"a78108c5d97259840b1552a7398dd3e021604901"},(0,i.h)("span",{key:"575ef5a846fcf1e452172f34c1c2ece5ed627364",id:"file-input-error-alert",role:"alert"},C&&(0,i.h)(i.F,{key:"789e7490933fe0ba0ca8176edeb0d149e4fd3935"},(0,i.h)("span",{key:"5509b84567e638a6db301371cc372e7c9907c714",class:"usa-sr-only"},r.i.t("error")),(0,i.h)("span",{key:"084096c61f148d3e556c920c0c5a00db7531952f",class:"usa-error-message"},C))),(0,i.h)("div",{key:"1723caf5827884c35e654093a246ae75071ed17e",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),(0,i.h)("div",{key:"a0be5187a9ecae0445449e60185d2f2c19d32526",class:L},(0,i.h)("div",{key:"d9eab9e1bb721a1f520ad473ed5c9b963fa597fe",class:"file-input-box"}),(0,i.h)("div",{key:"068b66442b3923be0733022f3b3d473041a5a15b",class:"file-input-instructions"},p||this.getDefaultUploadMessage()))),!T&&("idle"!==f||S)&&(0,i.h)("div",{key:"05017f4217ce8eb4429d88abd531dc07f6b361e4",class:M},!v&&(0,i.h)("div",{key:"e91ef46b351a709aaac7817980153bf6ad1814f9",class:"selected-files-label"},x?"Files you uploaded":"Selected files"),(0,i.h)("div",{key:"48fd42f25102184a12cfdfcaee500a3aade78528",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),(0,i.h)("va-card",{key:"4bf0435ce687700831d1330db3b40e910b76a197",class:"va-card"},(0,i.h)("div",{key:"86a10d691a6bdfe591bc8f1674b5f4c32867b4c1",class:"file-info-section"},_,(0,i.h)("div",{key:"f494b9130126b0059fd53deb7dbb70ec8f1203d5",class:"file-info-group vads-u-line-height--2"},(0,i.h)("span",{key:"10fa6909381cc27da81bf1ae53b193ee19352b6e",class:"file-label"},d?d.name:S.name),C&&(0,i.h)("span",{key:"68e20992dc2c0531f7aec0bc380a27b871df11ac",id:"input-error-message",role:"alert"},(0,i.h)("span",{key:"bc8a416d10786b6c9ef0f8bc4dbc1f5262abe359",class:"usa-sr-only"},r.i.t("error")),(0,i.h)("span",{key:"75bafd31d1187d576021e2bcf1d3b34748f15a8f","aria-live":"polite",class:"usa-error-message"},C)),!q&&(0,i.h)("span",{key:"2210e1e49afeabefe7a7e026a934a7774281def2",class:"file-size-label"},this.formatFileSize(d?d.size:S.size)),(0,i.h)("span",{key:"2ac795ef2250f06cf7f154fdcdcf873ec4c1678b",class:H,"aria-live":"polite"},q?"Uploading...":k))),(d||y||S)&&(0,i.h)("div",{key:"eb8e7d6ca1e7111239c4351219b2f608219bc866"},this.showSeparator&&(0,i.h)("hr",{key:"2577220314f9cbd9e80f1881175cd5d8ce417885",class:"separator"}),w&&(0,i.h)("va-text-input",{key:"eddfce5dac7dfd7ceb5f07af044f9d01464db246",onInput:function(t){e.handlePasswordChange(t)},label:"File password",required:!0,error:z}),(0,i.h)("div",{key:"62b0ba0d836c390c6100d0afbd13c0146bc4f65e",class:"additional-info-slot"},(0,i.h)("slot",{key:"89c2a3dcb4b37e292a72009d460bd605cb10f642"})),x?null:q?(0,i.h)(i.F,null,(0,i.h)("va-progress-bar",{percent:A}),(0,i.h)("va-button-icon",{buttonType:"cancel",onClick:this.resetState.bind(this)})):(0,i.h)(i.F,null,(0,i.h)("div",{class:"file-button-section"},(0,i.h)("va-button-icon",{buttonType:"change-file",onClick:this.changeFile,label:"Change file","aria-label":"change file ".concat(d?d.name:S.name)}),(0,i.h)("va-button-icon",{buttonType:"delete",onClick:this.openModal,"aria-label":"delete file ".concat(d?d.name:S.name),label:"Delete"})),(0,i.h)("va-modal",{modalTitle:"Delete this file?",visible:this.showModal,primaryButtonText:"Yes, remove this",secondaryButtonText:"No, keep this",onCloseEvent:this.closeModal,onPrimaryButtonClick:function(){return e.removeFile(!0)},onSecondaryButtonClick:this.closeModal},"We'll delete the uploaded file"," ",(0,i.h)("span",{class:"file-label"},d?d.name:S.name))))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,i.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{statusText:["handleValueChange"],percentUploaded:["percentHandler"],resetVisualState:["handleError"]}},enumerable:!1,configurable:!0}),e}();P.style='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}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}[hidden]{display:none}:host{display:block;font-family:var(--font-source-sans);font-size:16.96px;}:host .label-header{color:var(--vads-color-base);font-weight:var(--font-weight-normal)}:host .label-header-tag{margin:0;display:inline-block}:host .file-input-wrapper{display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host .file-input{cursor:pointer;height:100%;width:100%;max-width:none;top:0;left:0;z-index:1;margin:0;position:absolute;text-indent:-999em;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target{border:1px dashed var(--vads-color-action-border-base-active-on-dark);display:block;margin-top:0.3125rem;position:relative;text-align:center;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target.file-input-target-error{border:2px dashed var(--vads-color-secondary-dark)}:host .file-input-box{background:var(--vads-color-white);height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}:host .file-input-instructions{font-size:1.06rem;padding:1.25rem 0.625rem;pointer-events:none;position:relative;z-index:3}:host .file-input-choose-text{color:var(--vads-color-link);text-decoration:underline;font-weight:var(--font-weight-normal)}:host .file-icon{color:var(--vads-color-primary-alt-darkest)}:host .selected-files-wrapper{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light)}:host .selected-files-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;border-bottom:1px solid var(--vads-color-white);margin-bottom:8px;padding:8px}:host .va-card{margin:8px}:host .file-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;padding:0 8px;display:block;width:100%;word-wrap:break-word;word-break:break-word;overflow:hidden}:host #input-error-message{padding:0 8px;width:100%}:host .file-size-label,:host .file-status-label{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:1.06rem;padding:0 8px;display:block}:host .file-status-label{font-style:italic}:host .file-info-section{padding:0 8px 8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .file-button-section{margin-top:8px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row}:host .file-button-section>va-button-icon{font-size:1.06rem}@media screen and (max-width: 320px){:host .file-button-section{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}:host .separator{border:0;border-top:1px solid var(--vads-color-base-lighter);margin:0}:host .vads-u-line-height--2{line-height:1.15}:host .thumbnail-container{height:40px;width:40px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .thumbnail-preview{max-width:40px;width:auto;max-height:40px;height:auto}:host .thumbnail-error{color:#b21d38}:host va-progress-bar{font-size:var(--vads-font-size-root);display:block;margin-left:16px}:host .uploading-status{font-style:var(--font-style-italic)}:host(.has-error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host(.has-error){margin-left:-0.9rem}}.required{color:var(--vads-color-secondary-dark);margin-left:0.25rem}h1 .required,h2 .required,h3 .required,h4 .required,h5 .required,h6 .required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}'}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_department_of_veterans_affairs_component_library=self.webpackChunk_department_of_veterans_affairs_component_library||[]).push([[6555,7508],{7508:function(e,t,a){function i(e){return!Number.isNaN(parseFloat(e))}function n(e,t,a){void 0===a&&(a="slot");var i=e.shadowRoot.querySelector(a).assignedNodes();return null!==t?Array.from(i).filter((function(e){return e.nodeName.toLowerCase()===t})):Array.from(i)}function r(e){return 1===e?"":"s"}function o(e,t){if(void 0===e||""===e)return"".concat(t," character").concat(r(t)," allowed");var a;if(e.length<=t){var i=t-e.length;a="".concat(i," character").concat(r(i)," left")}else i=e.length-t,a="".concat(i," character").concat(r(i)," over limit");return a}function s(e,t){return Array.from({length:t-e+1},(function(t,a){return e+a}))}a.r(t),a.d(t,{S:function(){return d},a:function(){return n},b:function(){return i},c:function(){return b},d:function(){return m},e:function(){return o},f:function(){return h},g:function(){return f},i:function(){return u},m:function(){return s},s:function(){return c}}),a(7911);var l=function(e){return e&&"object"==typeof e&&1===e.nodeType};function c(e,t){var a=function(e,t){if("string"!=typeof e)return[];if(!t||!l(t))return[];var a=t.shadowRoot.querySelectorAll(e);return Array.from(a)}(e,t);return"string"!=typeof e||l(t)&&t.matches(e)&&a.push(t),a}var d={_entity:/[&<>"'/]/g,_entities:{"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},getEntity:function(e){return d._entities[e]},escapeHTML:function(e){for(var t="",a=0;a<e.length;a++)t+=e[a],a+1<arguments.length&&(t+=String(arguments[a+1]||"").replace(d._entity,d.getEntity));return t}};function f(e){var t;return(t="string"==typeof e?parseInt(e,10):Math.floor(e))>=1&&t<=6?"h".concat(t):null}function h(e){return["VA-BUTTON","VA-LINK","BUTTON","A"].includes(e.tagName)}function u(e){return e&&"false"!==e||!1}function p(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function m(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(e===t)return!0;if("function"==typeof e||"function"==typeof t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(p(e)||p(t)){if(!p(e)||!p(t))return!1;var n=Array.prototype.slice;return m(n.call(e),n.call(t),a,i)}if(e.constructor!==t.constructor)return!1;var r=Object.keys(e),o=Object.keys(t);if(0===r.length&&0===o.length)return!0;if(r.length!==o.length)return!1;for(var s=a.length;s--;)if(a[s]===e)return i[s]===t;a.push(e),i.push(t),r.sort(),o.sort();for(var l=r.length-1;l>=0;l--)if(r[l]!==o[l])return!1;for(var c=void 0,d=r.length-1;d>=0;d--)if(!m(e[c=r[d]],t[c],a,i))return!1;return a.pop(),i.pop(),!0}function b(e,t){void 0===t&&(t=!0);var a=["a","i","e","o"];t&&a.push("u");var i=e.charAt(0).toLowerCase();return a.includes(i)?"an":"a"}},6555:function(e,t,a){a.r(t),a.d(t,{va_file_input:function(){return O}});var i=a(7911),n=(a(5384),a(7508)),r=a(4665),o="usa",s="".concat(o,"-file-input"),l=".".concat(s),c="".concat(o,"-file-input__input"),d="".concat(o,"-file-input__target"),f=".".concat(c),h="".concat(o,"-file-input__box"),u="".concat(o,"-file-input__instructions"),p="".concat(o,"-file-input__preview"),m="".concat(o,"-file-input__preview-heading"),b="".concat(o,"-file-input--disabled"),g="".concat(o,"-file-input__choose"),v="".concat(o,"-file-input__accepted-files-message"),y="".concat(o,"-file-input__drag-text"),x="".concat(o,"-file-input--drag"),w="is-loading",k="has-invalid-file",S="".concat(o,"-file-input__preview-image"),A="".concat(S,"--generic"),z="".concat(S,"--pdf"),T="".concat(S,"--word"),C="".concat(S,"--video"),L="".concat(S,"--excel"),F="".concat(o,"-sr-only"),_="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",E=Boolean(!0),M="",q="",H=function(e){var t=e.charCodeAt(0);return 32===t?"-":t>=65&&t<=90?"img_".concat(e.toLowerCase()):"__000".concat(t.toString(16).slice(-4))},N=function(e){return e.hasAttribute("multiple")?"files":"file"},R=function(e){var t=e.hasAttribute("aria-disabled")||e.hasAttribute("disabled"),a=function(e){var t=document.createElement("div"),a=document.createElement("div"),i=document.createElement("div");return e.classList.remove(s),e.classList.add(c),t.classList.add(s),i.classList.add(h),a.classList.add(d),a.prepend(i),e.parentNode.insertBefore(a,e),e.parentNode.insertBefore(t,a),a.appendChild(e),t.appendChild(a),a}(e),i=function(e){var t=e.closest(l),a=N(e),i=document.createElement("div"),r="Drag ".concat(a," here or"),o="choose from folder";return M="".concat(r," ").concat(o),i.classList.add(u),i.setAttribute("aria-hidden","true"),e.setAttribute("aria-label",M),i.innerHTML=n.S.escapeHTML('<span class="'.concat(y,'">').concat(r,'</span> <span class="').concat(g,'">').concat(o,"</span>")),e.parentNode.insertBefore(i,e),(/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.querySelector(".".concat(y)).outerHTML=""),i}(e),r=function(e){var t=e.closest(l);if(!t)throw new Error("Element is missing outer ".concat(l));var a=t.querySelector(f);return{dropZoneEl:t,inputEl:a}}(e).dropZoneEl;return t?r.classList.add(b):function(e){var t=document.createElement("div"),a=N(e),i=e.closest(l),n=e.closest(".".concat(d));q="No ".concat(a," selected."),t.classList.add(F),t.setAttribute("aria-live","polite"),t.textContent=q,i.insertBefore(t,n)}(e),{instructions:i,dropTarget:a}},B=function(e,t){var a=e.querySelectorAll(".".concat(p)),i=e.querySelector(".".concat(m)),n=e.querySelector(".".concat(v));i&&(i.outerHTML=""),n&&(n.outerHTML="",e.classList.remove(k)),null!==a&&(t&&t.removeAttribute("hidden"),Array.prototype.forEach.call(a,(function(e){e.parentNode.removeChild(e)})))},I=function(e,t,a,i){!function(e,t,a,i){var n=t.getAttribute("accept");i.classList.remove(k);var r=function(e,t){var a=!1;return e.indexOf(t)>=0&&(a=!0),a};if(n){for(var o=n.split(","),s=document.createElement("div"),l=!0,c=e.target.files||e.dataTransfer.files,d=0;d<c.length;d+=1){var f=c[d];if(!l)break;for(var h=0;h<o.length;h+=1){var u=o[h];if(l=f.name.indexOf(u)>0||r(f.type,u.replace(/\*/g,""))){E=!0;break}}}l||(B(i,a),t.value="",i.insertBefore(s,t),s.textContent=t.dataset.errormessage||"This is not a valid file type.",s.classList.add(v),i.classList.add(k),E=!1,e.preventDefault(),e.stopPropagation())}}(e,t,a,i),!0===E&&function(e,t,a,i){var r=t.getAttribute("multiple")?e.target.files:[e.target.files[0]],o=i.closest(".".concat(s)).querySelector(".".concat(F)),l=[];B(i,a);for(var c=function(e){var t,o=new FileReader,s=r[e].name;l.push(s),o.onloadstart=function(){t=function(e){return"".concat(e,"-").concat(Math.floor(Date.now()/1e3))}(function(e){return e.replace(/[^a-z0-9]/g,H)}(s)),a.insertAdjacentHTML("afterend",n.S.escapeHTML('<div class="'.concat(p,'" aria-hidden="true">\n <img id="').concat(t,'" src="').concat(_,'" alt="" class="').concat(S," ").concat(w,'"/>').concat(s,"\n <div>")))},o.onloadend=function(){var e=i.querySelector("#".concat(t));s.indexOf(".pdf")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(z,'")')):s.indexOf(".doc")>0||s.indexOf(".pages")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(T,'")')):s.indexOf(".xls")>0||s.indexOf(".numbers")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(L,'")')):s.indexOf(".mov")>0||s.indexOf(".mp4")>0?e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(C,'")')):e.setAttribute("onerror",'this.onerror=null;this.src="'.concat(_,'"; this.classList.add("').concat(A,'")')),e.classList.remove(w),e.src=o.result},r[e]&&o.readAsDataURL(r[e])},f=0;f<r.length;f+=1)c(f);0===r.length?t.setAttribute("aria-label",M):function(e,t){var a=document.createElement("div"),i=e.closest(".".concat(d)),r=i.querySelector(".".concat(u)),o="Change file",s="";1===t.length?s=n.S.escapeHTML('Selected file <span class="usa-file-input__choose">'.concat(o,"</span>")):t.length>1&&(o="Change files",s=n.S.escapeHTML("".concat(t.length,' files selected <span class="usa-file-input__choose">').concat(o,"</span>"))),r.setAttribute("hidden","true"),a.classList.add(m),a.innerHTML=s,i.insertBefore(a,r),e.setAttribute("aria-label",o)}(t,r),function(e,t,a){var i=e,n=q;1===t.length?n="You have selected the file: ".concat(a):t.length>1&&(n="You have selected ".concat(t.length," files: ").concat(a.join(", "))),setTimeout((function(){i.textContent=n}),1e3)}(o,r,l)}(e,t,a,i)},j={".txt":"text/plain",".pdf":"application/pdf",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".odt":"application/vnd.oasis.opendocument.text",".rtf":"application/rtf",".csv":"text/csv",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".ppt":"application/vnd.ms-powerpoint",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png",".gif":"image/gif",".bmp":"image/bmp",".webp":"image/webp",".tif":"image/tiff",".tiff":"image/tiff",".svg":"image/svg+xml",".mp3":"audio/mpeg",".wav":"audio/wav",".ogg":"audio/ogg",".m4a":"audio/mp4",".aac":"audio/aac",".mp4":"video/mp4",".avi":"video/x-msvideo",".mov":"video/quicktime",".wmv":"video/x-ms-wmv",".flv":"video/x-flv",".mkv":"video/x-matroska",".webm":"video/webm",".zip":"application/zip",".rar":"application/x-rar-compressed",".7z":"application/x-7z-compressed",".tar":"application/x-tar",".gz":"application/gzip",".json":"application/json",".xml":"application/xml",".html":"text/html",".htm":"text/html",".css":"text/css",".js":"application/javascript"},O=function(){function e(e){var t=this;(0,i.r)(this,e),this.vaChange=(0,i.c)(this,"vaChange",7),this.vaPasswordChange=(0,i.c)(this,"vaPasswordChange",7),this.componentLibraryAnalytics=(0,i.c)(this,"component-library-analytics",7),this.uploadStatus="idle",this.chooseFileString="choose from folder",this.dragFileString="Drag a file here or ",this.FILE_PREVIEW_SIZE_LIMIT=5242880,this.handleChange=function(e){t.resetVisualState=!1;var a=e.target;a.files&&a.files.length>0&&t.handleFile(a.files[0]),a.value=""},this.handleDrop=function(e){e.preventDefault(),e.stopPropagation();var a=e.dataTransfer.files;a.length>0&&t.handleFile(a[0])},this.handleFile=function(e,a){if(void 0===a&&(a=!0),t.accept){var i=t.normalizeAcceptProp(t.accept);if(!t.isAcceptedFileType(e.type,i))return t.removeFile(!1),void(t.internalError="This is not a valid file type.")}return 0===e.size?(t.internalError="The file you selected is empty. Files must be larger than 0B.",void t.resetState()):e.size>t.maxFileSize?(t.internalError="\n We can't upload your file because it's too big. Files must be less than ".concat(t.formatFileSize(t.maxFileSize),"."),void t.resetState()):e.size<t.minFileSize?(t.internalError="We can't upload your file because it's too small. Files must be at least ".concat(t.formatFileSize(t.minFileSize),"."),void t.resetState()):(t.uploadedFile=null,t.file=e,a&&t.vaChange.emit({files:[t.file]}),t.uploadStatus="success",t.internalError=null,e.size<t.FILE_PREVIEW_SIZE_LIMIT&&t.generateFileContents(t.file),t.updateStatusMessage("You have selected the file: ".concat(t.file.name)),t.el.focus(),void(t.enableAnalytics&&t.componentLibraryAnalytics.emit({componentName:"va-file-input",action:"change",details:{label:t.label}})))},this.removeFile=function(e){void 0===e&&(e=!0),t.closeModal(),t.uploadStatus="idle",t.internalError=null,e&&t.vaChange.emit({files:[]}),t.file=null,t.uploadedFile=null,t.updateStatusMessage("File removed. No file selected."),t.el.focus()},this.openModal=function(){t.el.shadowRoot.querySelector("va-modal").setAttribute("status","warning"),t.showModal=!0},this.closeModal=function(){t.showModal=!1,setTimeout((function(){t.fileInputRef.focus()}),0)},this.changeFile=function(){t.fileInputRef&&t.fileInputRef.click()},this.formatFileSize=function(e){var t=["B","KB","MB","GB","TB"];if(0===e)return"0 B";var a=Math.floor(Math.log(e)/Math.log(1024));if(0===a)return"".concat(e," ").concat(t[a]);var i=(e/Math.pow(1024,a)).toFixed(a<2?0:1);return"".concat(i," ").concat(t[a])},this.normalizeAcceptProp=function(e){return e.split(",").map((function(e){return(e=e.trim()).startsWith(".")?j[e]:e}))},this.isAcceptedFileType=function(e,t){for(var a=0,i=t;a<i.length;a++){var n=i[a];if(n===e)return!0;if(n.endsWith("/*")&&e.startsWith(n.slice(0,-1)))return!0}return!1},this.renderLabelOrHeader=function(e,t,a){var n=t?(0,i.h)("span",{class:"required"}," ",r.i.t("required")):null;if(a&&a>=1&&a<=6){var o="h".concat(a);return(0,i.h)("div",{class:"label-header"},(0,i.h)(o,{htmlFor:"fileInputField",part:"label",class:"label-header-tag"},e,n))}return(0,i.h)("div",{class:"label-header"},(0,i.h)("label",{htmlFor:"fileInputField",part:"label",class:"usa-label"},e,n))},this.file=void 0,this.fileContents=void 0,this.internalError=void 0,this.showModal=!1,this.showSeparator=!0,this.label=void 0,this.name=void 0,this.buttonText=void 0,this.value=void 0,this.required=!1,this.accept=void 0,this.error=void 0,this.hint=void 0,this.statusText=void 0,this.uploadMessage=null,this.enableAnalytics=!1,this.headerSize=void 0,this.headless=!1,this.readOnly=!1,this.encrypted=!1,this.uploadedFile=void 0,this.maxFileSize=1/0,this.minFileSize=0,this.percentUploaded=null,this.passwordError=void 0,this.resetVisualState=!1}return e.prototype.handleValueChange=function(e){var t=this;setTimeout((function(){t.updateStatusMessage(e)}))},e.prototype.percentHandler=function(e){e>=100&&this.resetState()},e.prototype.handleError=function(e){e&&this.resetState()},e.prototype.resetState=function(){this.fileContents=null,this.uploadStatus="idle",this.percentUploaded=null,(0,i.f)(this.el)},e.prototype.updateStatusMessage=function(e){var t=this;setTimeout((function(){var a=t.el.shadowRoot.querySelector("#statusMessage");a&&(a.textContent=e)}),1e3)},e.prototype.generateFileContents=function(e){var t=this;if(e){var a=new FileReader;this.fileType=e.type,a.onloadend=function(){t.fileContents=a.result},this.fileType&&("application/pdf"===this.fileType||this.fileType.startsWith("image/"))&&a.readAsDataURL(e)}},e.prototype.componentWillRender=function(){var e=!!this.el.querySelector(":scope > *"),t=!(!this.value&&!this.file||this.readOnly);this.showSeparator=e||t},e.prototype.componentDidLoad=function(){!function(e){(0,n.s)(l,e).forEach((function(e){var t=R(e),a=t.instructions,i=t.dropTarget;i.addEventListener("dragover",(function(){this.classList.add(x)}),!1),i.addEventListener("dragleave",(function(){this.classList.remove(x)}),!1),i.addEventListener("drop",(function(t){t.preventDefault(),this.classList.remove(x);var n=t.dataTransfer;if(t.target.files=n.files,!(n.files.length>1)){I(t,e,a,i);var r=new CustomEvent("change",{detail:{files:n.files}});e.dispatchEvent(r)}}),!1),e.addEventListener("input",(function(t){return I(t,e,a,i)}),!1)}))}(this.el)},e.prototype.connectedCallback=function(){this.el.addEventListener("change",this.handleChange)},e.prototype.disconnectedCallback=function(){this.el.removeEventListener("change",this.handleChange)},e.prototype.getDefaultUploadMessage=function(){return(0,i.h)("span",null,this.dragFileString,(0,i.h)("span",{class:"file-input-choose-text"},this.chooseFileString))},e.prototype.handlePasswordChange=function(e){this.vaPasswordChange.emit({password:e.target.value})},e.prototype.render=function(){var e=this,t=this,a=t.label,n=t.name,o=t.required,s=t.accept,l=t.error,c=t.hint,d=t.file,f=t.uploadStatus,h=t.dragFileString,u=t.chooseFileString,p=t.uploadMessage,m=t.headerSize,b=t.fileContents,g=t.fileType,v=t.headless,y=t.value,x=t.readOnly,w=t.encrypted,k=t.statusText,S=t.uploadedFile,A=t.percentUploaded,z=t.passwordError,T=t.resetVisualState;y&&!this.file&&this.handleFile(y,!1);var C=l||this.internalError,L="".concat(c?"input-hint-message":""," ").concat(C?"input-error-message":"").trim()||null,F="file-input-target ".concat(C?"file-input-target-error":"").trim(),_=(0,i.h)("div",{key:"a8147f8da0cb8b080f33d487afba34d00a375ba5",class:"thumbnail-container"},(0,i.h)("svg",{key:"9adc7d012279d6d1c387473ec20bdd30398d594a",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"#07648d",width:"40px",height:"40px"},(0,i.h)("path",{key:"6122c0411f084eda2039356f9e8c2464ddf4782e",d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"})));l?_=(0,i.h)("div",{key:"f74993cb63fea2aaadb69feab51e3d6c5eec135a",class:"thumbnail-container"},(0,i.h)("va-icon",{key:"fd79026cb78d04036aa7abd4f11b72f3c5146972",icon:"error",size:3,class:"thumbnail-preview thumbnail-error"})):b&&(g.startsWith("image/")?_=(0,i.h)("div",{key:"bb009cbbb587c00d29dad4cc135b4c6effd81d4a",class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("img",{key:"2a572be0dc1579962b4ccf96365de48cdcab697d",class:"thumbnail-preview",src:b,alt:"image"})):"application/pdf"===g&&(_=(0,i.h)("div",{key:"f0318c876c0c48cff42e5fdf5781388b37dd7c5e",class:"thumbnail-container","aria-hidden":"true"},(0,i.h)("object",{key:"fac0943836f9f502ca82b029260ee60a4be06dfc",class:"thumbnail-preview",data:b,type:"application/pdf"}))));var E=v?"headless-selected-files-wrapper":"selected-files-wrapper",M="usa-hint"+(v?" usa-sr-only":""),q=null!==A&&A<100,H="file-status-label";return q&&(H="".concat(H," uploading-status")),(0,i.h)(i.H,{key:"37781c9877d7f5c181df4dbc42adaa501044da54",class:{"has-error":!!C}},!x&&(0,i.h)("span",{key:"4cafef4d3360af3e1e20b5abee7116427678d1d7",class:{"usa-sr-only":!!v}},a&&this.renderLabelOrHeader(a,o,m)),c&&!x&&(0,i.h)("div",{key:"c0d30f964f241573f83e3178049425e6fb74bc65",class:M,id:"input-hint-message"},c),(0,i.h)("div",{key:"d7c4321d873eef1f4cf50a82955674d2d62db8ac",class:"file-input-wrapper",onDrop:this.handleDrop},(0,i.h)("input",{key:"fcdfc42a3a71d2c5495a54e7c4b39dd491095ea5",id:"fileInputField",class:"file-input","aria-label":"".concat(a).concat(o?" "+r.i.t("required"):"",". ").concat(h).concat(u),style:{visibility:"success"===this.uploadStatus||S?"hidden":"unset"},type:"file",ref:function(t){return e.fileInputRef=t},name:n,accept:s,"aria-describedby":L,onChange:this.handleChange}),"idle"===f&&(!S||T)&&(0,i.h)("div",{key:"758b3ade629346c31843f28b2d0a3f21d0987a3f"},(0,i.h)("span",{key:"130f00af6b61bbaeffe7f82ca11fec45365d5f04",id:"file-input-error-alert",role:"alert"},C&&(0,i.h)(i.F,{key:"70681de5a0f6f56a447b75ca76fb39602ec43f09"},(0,i.h)("span",{key:"1f15abf78d104092a9c25c3a5b9ea2f6b8e28a92",class:"usa-sr-only"},r.i.t("error")),(0,i.h)("span",{key:"f1d535d569c6c1e5e217e087032a209b5f7d3bce",class:"usa-error-message"},C))),(0,i.h)("div",{key:"c4003675c5243e6db58660159faa275a1c46ec5e",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),(0,i.h)("div",{key:"d90c463c57946bb09419da3f39e364d10024fab8",class:F},(0,i.h)("div",{key:"efdc66ddc32316bf8223bd171761cac515837c6f",class:"file-input-box"}),(0,i.h)("div",{key:"56a57c1e586ddad014a52c54e79e722f48523f6a",class:"file-input-instructions"},p||this.getDefaultUploadMessage()))),!T&&("idle"!==f||S)&&(0,i.h)("div",{key:"e0dec646ae39cc6cbbe358f0ea376b032522ecb9",class:E},!v&&(0,i.h)("div",{key:"350a72c12e41fb2f3b6185f4e384bf18a62e1c1b",class:"selected-files-label"},x?"Files you uploaded":"Selected files"),(0,i.h)("div",{key:"6d99979169229ac6d3793bdcc287ffc52c2a5d77",class:"usa-sr-only","aria-live":"polite",id:"statusMessage"}),(0,i.h)("va-card",{key:"f8e12be2be5e1cdd9cb85ea879ba11c9ec794299",class:"va-card"},(0,i.h)("div",{key:"830095c8b6eed03024d24f8afc523b84b4ec2275",class:"file-info-section"},_,(0,i.h)("div",{key:"55c5c74f081461a461593ebda2d87c828e8a4ccb",class:"file-info-group vads-u-line-height--2"},(0,i.h)("span",{key:"ffaac7a0b5faae4cb7b80ead605f5a01f8b942b2",class:"file-label"},d?d.name:S.name),C&&(0,i.h)("span",{key:"08d6db853f80afef3771c1d95d39555f26c41dbc",id:"input-error-message",role:"alert"},(0,i.h)("span",{key:"022ac299251482dfb5573b893e8bc2e258777d95",class:"usa-sr-only"},r.i.t("error")),(0,i.h)("span",{key:"76e7aaac76ce6fb4546547461380c4563cec6e13","aria-live":"polite",class:"usa-error-message"},C)),!q&&(0,i.h)("span",{key:"5a0d65be1cd32bf27a29ea54acf8b11286ccd9b6",class:"file-size-label"},this.formatFileSize(d?d.size:S.size)),(0,i.h)("span",{key:"5c449f21a0bf5f2370901414da78d996fdbad733",class:H,"aria-live":"polite"},q?"Uploading...":k))),(d||y||S)&&(0,i.h)("div",{key:"0019699b466d8378d34de9501fb54e509db14e6e"},this.showSeparator&&(0,i.h)("hr",{key:"cfdd71b6c6f6cf29199d31eb4ec59833d3e3835d",class:"separator"}),w&&(0,i.h)("va-text-input",{key:"1db7bf8bfd8039c9dd042029887a87b27f4ce7e0",onInput:function(t){e.handlePasswordChange(t)},label:"File password",required:!0,error:z}),(0,i.h)("div",{key:"c996bde181bd3301abacb7595708872293cd1565",class:"additional-info-slot"},(0,i.h)("slot",{key:"b79a5b765a7d004ee98c399a93b2ce405ee9a051"})),x?null:q?(0,i.h)(i.F,null,(0,i.h)("va-progress-bar",{percent:A}),(0,i.h)("va-button-icon",{buttonType:"cancel",onClick:this.resetState.bind(this)})):(0,i.h)(i.F,null,(0,i.h)("div",{class:"file-button-section"},(0,i.h)("va-button-icon",{buttonType:"change-file",onClick:this.changeFile,label:"Change file","aria-label":"change file ".concat(d?d.name:S.name)}),(0,i.h)("va-button-icon",{buttonType:"delete",onClick:this.openModal,"aria-label":"delete file ".concat(d?d.name:S.name),label:"Delete"})),(0,i.h)("va-modal",{modalTitle:"Delete this file?",visible:this.showModal,primaryButtonText:"Yes, remove this",secondaryButtonText:"No, keep this",onCloseEvent:this.closeModal,onPrimaryButtonClick:function(){return e.removeFile(!0)},onSecondaryButtonClick:this.closeModal},"We'll delete the uploaded file"," ",(0,i.h)("span",{class:"file-label"},d?d.name:S.name))))))))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,i.g)(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e,"watchers",{get:function(){return{statusText:["handleValueChange"],percentUploaded:["percentHandler"],resetVisualState:["handleError"]}},enumerable:!1,configurable:!0}),e}();O.style='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}h1{margin-top:0}h1,h2,h3,h4,h5,h6{margin-bottom:0;margin-top:0;clear:both}*+h1,*+h2,*+h3,*+h4,*+h5,*+h6{margin-top:1.5em}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:1em}h1{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:2.44rem;line-height:1.2;font-weight:700}h2{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.95rem;line-height:1.2;font-weight:700}h3{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:1.34rem;line-height:1.2;font-weight:700}h4{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.98rem;line-height:1.2;font-weight:700}h5{font-family:Merriweather Web, Georgia, Cambria, Times New Roman, Times, serif;font-size:0.91rem;line-height:1.2;font-weight:700}h6{font-family:Source Sans Pro Web, Helvetica Neue, Helvetica, Roboto, Arial, sans-serif;font-size:0.87rem;line-height:1.1;font-weight:normal;letter-spacing:0.025em;text-transform:uppercase}h1,h2,h3,h4,h5{font-family:Bitter, Georgia, Cambria, "Times New Roman", Times, serif;font-weight:700}h6{font-family:"Source Sans Pro Web", "Source Sans Pro", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;font-weight:700}h1{margin-top:0;font-size:2.5rem}h2{font-size:1.875rem}h3{font-size:1.25rem}h4{font-size:1.0625rem}h5{font-size:0.9375rem}h6{font-size:0.9375rem}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}@media (max-width: 481px){h1{font-size:30px}h2{font-size:24px}}h6{margin:0.5em 0 0;text-transform:none;font-weight:700}:host legend :is(h1,h2,h3,h4,h5,h6),:host label :is(h1,h2,h3,h4,h5,h6){display:inline;margin:0px}:host legend :is(h1,h2,h3,h4,h5),:host label :is(h1,h2,h3,h4,h5){font-family:var(--font-serif)}:host h1+*,:host h2+*,:host h3+*,:host h4+*,:host h5+*,:host h6+*{margin-top:unset}:host #form-question{margin-bottom:1rem}.usa-hint{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3}.usa-label{font-family:Source Sans Pro Web, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans;font-size:1.06rem;line-height:1.3;display:block;font-weight:normal;margin-top:1.5rem;max-width:30rem}.usa-label--error{font-weight:700;margin-top:0}.usa-label--required{color:#b50909}.usa-hint{color:#71767a}.usa-hint--required{color:#b50909}.usa-sr-only{position:absolute;left:-999em;right:auto}.usa-error-message{padding-bottom:0.25rem;padding-top:0.25rem;color:#b50909;display:block;font-weight:700}.usa-error-message{font-size:1.06rem}:host([error]:not([error=""])){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}:host([error]:not([error=""])[use-forms-pattern=multiple]){border-left:none}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host([error]:not([error=""])){margin-left:-0.9rem}:host([error]:not([error=""])[use-forms-pattern=multiple]) .input-wrap{margin-left:-0.9rem}}@media screen and (max-width: 1008px){:host([error]:not([error=""])[use-forms-pattern=multiple]){padding-left:0}}[hidden]{display:none}:host{display:block;font-family:var(--font-source-sans);font-size:16.96px;}:host .label-header{color:var(--vads-color-base);font-weight:var(--font-weight-normal)}:host .label-header-tag{margin:0;display:inline-block}:host .file-input-wrapper{display:block;max-width:30rem;width:100%;position:relative;margin:8px 0}:host .file-input{cursor:pointer;height:100%;width:100%;max-width:none;top:0;left:0;z-index:1;margin:0;position:absolute;text-indent:-999em;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target{border:1px dashed var(--vads-color-action-border-base-active-on-dark);display:block;margin-top:0.3125rem;position:relative;text-align:center;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}:host .file-input-target.file-input-target-error{border:2px dashed var(--vads-color-secondary-dark)}:host .file-input-box{background:var(--vads-color-white);height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:2}:host .file-input-instructions{font-size:1.06rem;padding:1.25rem 0.625rem;pointer-events:none;position:relative;z-index:3}:host .file-input-choose-text{color:var(--vads-color-link);text-decoration:underline;font-weight:var(--font-weight-normal)}:host .file-icon{color:var(--vads-color-primary-alt-darkest)}:host .selected-files-wrapper{background-color:var(--vads-color-primary-lighter);border:1px solid var(--vads-color-base-light)}:host .selected-files-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;border-bottom:1px solid var(--vads-color-white);margin-bottom:8px;padding:8px}:host .va-card{margin:8px}:host .file-label{color:var(--vads-color-base);font-weight:var(--font-weight-bold);font-size:1.06rem;padding:0 8px;display:block;width:100%;word-wrap:break-word;word-break:break-word;overflow:hidden}:host #input-error-message{padding:0 8px;width:100%}:host .file-size-label,:host .file-status-label{color:var(--vads-color-base-dark);font-weight:var(--font-weight-normal);font-size:1.06rem;padding:0 8px;display:block}:host .file-status-label{font-style:italic}:host .file-info-section{padding:0 8px 8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .file-button-section{margin-top:8px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row}:host .file-button-section>va-button-icon{font-size:1.06rem}@media screen and (max-width: 320px){:host .file-button-section{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start}}:host .separator{border:0;border-top:1px solid var(--vads-color-base-lighter);margin:0}:host .vads-u-line-height--2{line-height:1.15}:host .thumbnail-container{height:40px;width:40px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .thumbnail-preview{max-width:40px;width:auto;max-height:40px;height:auto}:host .thumbnail-error{color:#b21d38}:host va-progress-bar{font-size:var(--vads-font-size-root);display:block;margin-left:16px}:host .uploading-status{font-style:var(--font-style-italic)}:host(.has-error){border-left:0.25rem solid #b50909;padding-left:1rem;position:relative}@media screen and (min-width: 1008px){:host(.has-error){margin-left:-0.9rem}}.required{color:var(--vads-color-secondary-dark);margin-left:0.25rem}h1 .required,h2 .required,h3 .required,h4 .required,h5 .required,h6 .required{font-family:var(--font-source-sans);font-size:initial;font-weight:initial}'}}]);
|